ofaj
Julio 10 years ago
parent 93fcf76a19
commit 9319addead
  1. 2
      plugin/ticket/src/myticket.php
  2. 7
      plugin/ticket/src/ticket.class.php
  3. 5
      plugin/ticket/src/ticket_details.php
  4. 10
      src/Chamilo/ContactBundle/Form/Type/ContactType.php

@ -403,7 +403,6 @@ if ($isAdmin) {
}
}
if ($isAdmin) {
$table->set_header(0, $plugin->get_lang('TicketNum'), true);
$table->set_header(1, $plugin->get_lang('Date'), true);
@ -414,7 +413,6 @@ if ($isAdmin) {
$table->set_header(6, $plugin->get_lang('Status'), true);
$table->set_header(7, $plugin->get_lang('Message'), true);
$table->set_header(8, get_lang('Actions'), true);
$table->set_header(9, get_lang('Description'), true, array("style" => "width:200px"));
} else {
echo '<center><h1>' . $plugin->get_lang('MyTickets') . '</h1></center>';
echo '<center><p>' . $plugin->get_lang('MsgWelcome') . '</p></center>';

@ -829,6 +829,7 @@ class TicketManager
status.name AS col7,
ticket.total_messages AS col8,
msg.message AS col9,
msg.subject AS subject,
ticket.request_user AS user_id,
ticket.assigned_last_user AS responsible
FROM $table_support_tickets ticket,
@ -1052,7 +1053,7 @@ class TicketManager
}
$ticket = array(
$row['col0'],
$row['col0'].' '.$row['subject'],
api_format_date($row['col1'], '%d/%m/%y - %I:%M:%S %p'),
api_format_date($row['col2'], '%d/%m/%y - %I:%M:%S %p'),
$row['col3'],
@ -1061,7 +1062,7 @@ class TicketManager
$row['col7'],
$row['col8'],
$actions,
$row['col9']
//$row['col9']
);
} else {
$actions = "";
@ -1069,7 +1070,7 @@ class TicketManager
'synthese_view.gif', get_lang('Info')
) . '</a>&nbsp;&nbsp;';
$row['col0'] = Display::return_icon(
$img_source, get_lang('Info')
$img_source, get_lang('Info')
) . '<a href="ticket_details.php?ticket_id=' . $row['col0'] . '">' . $row['ticket_code'] . '</a>';
$now = api_strtotime(api_get_utc_datetime());
$last_edit_date = api_strtotime($row['sys_lastedit_datetime']);

@ -330,7 +330,7 @@ if (!isset($_POST['compose'])) {
$admins = UserManager::get_user_list_like(array("status" => "1"), array("username"), true);
foreach ($admins as $admin) {
$select_admins.= "<option value = '" . $admin['user_id'] . "' " . (($user_id == $admin['user_id']) ? ("selected='selected'") : "") . ">" . $admin['lastname'] . " ," . $admin['firstname'] . "</option>";
$select_admins.= "<option value = '" . $admin['user_id'] . "' " . (($user_id == $admin['user_id']) ? ("selected='selected'") : "") . ">" . $admin['lastname'] . ", " . $admin['firstname'] . "</option>";
}
$select_admins .= "</select>";
echo '<div id="dialog-form" title="' . $plugin->get_lang('AssignTicket') . '" >';
@ -457,10 +457,8 @@ function show_form_send_message()
);
}
$form->addElement('file', 'attach_1', get_lang('FilesAttachment'));
$form->addLabel('', '<span id="filepaths"><div id="filepath_1"></div></span>');
$form->addLabel('',
'<span id="link-more-attach">
<span class="btn btn-success" onclick="return add_image_form()">' . get_lang('AddOneMoreFile') . '</span>
@ -468,7 +466,6 @@ function show_form_send_message()
('.sprintf(get_lang('MaximunFileSizeX'), format_file_size(api_get_setting('message_max_upload_filesize'))).')
');
$form->addElement('html', '<br/>');
$form->addElement(
'button',

@ -26,13 +26,17 @@ class ContactType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('category', EntityType::class, ['class' => 'Chamilo\ContactBundle\Entity\Category'])
->add('firstname')
->add(
'category',
EntityType::class,
['class' => 'Chamilo\ContactBundle\Entity\Category']
)
->add('firstname')
->add('lastname')
->add('email')
->add('subject')
->add('message', 'textarea')
->add('save', SubmitType::class, ['attr' => ['class' => 'btn btn-primary']])
->add('send', SubmitType::class, ['attr' => ['class' => 'btn btn-primary']])
;
}

Loading…
Cancel
Save