replace html code by html5 in ticket
This commit is contained in:
parent
f83f746123
commit
404f497ca4
@ -447,7 +447,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
|
||||
print $langs->trans('Progression') . '</td><td class="left">';
|
||||
print '</td>';
|
||||
if ($action != 'progression' && $object->fk_statut < 8 && !$user->societe_id) {
|
||||
print '<td align="right"><a href="' . $url_page_current . '?action=progression&track_id=' . $object->track_id . '">' . img_edit($langs->trans('Modify')) . '</a></td>';
|
||||
print '<td class="right"><a href="' . $url_page_current . '?action=progression&track_id=' . $object->track_id . '">' . img_edit($langs->trans('Modify')) . '</a></td>';
|
||||
}
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="5">';
|
||||
@ -604,7 +604,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
|
||||
<div class="tagtd">' . $langs->trans("Contacts") . '</div>
|
||||
<div class="tagtd">' . $langs->trans("ContactType") . '</div>
|
||||
<div class="tagtd">' . $langs->trans("Phone") . '</div>
|
||||
<div class="tagtd" align="center">' . $langs->trans("Status") . '</div>';
|
||||
<div class="tagtd center">' . $langs->trans("Status") . '</div>';
|
||||
print '</div><!-- tagtr -->';
|
||||
|
||||
// Contact list
|
||||
@ -620,7 +620,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
|
||||
$var = !$var;
|
||||
print '<div class="tagtr ' . ($var ? 'pair' : 'impair') . '">';
|
||||
|
||||
print '<div class="tagtd" align="left">';
|
||||
print '<div class="tagtd left">';
|
||||
if ($tab[$i]['source'] == 'internal') {
|
||||
echo $langs->trans("User");
|
||||
}
|
||||
@ -630,7 +630,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
print '<div class="tagtd" align="left">';
|
||||
print '<div class="tagtd left">';
|
||||
|
||||
if ($tab[$i]['socid'] > 0) {
|
||||
$companystatic->fetch($tab[$i]['socid']);
|
||||
@ -672,7 +672,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
|
||||
}
|
||||
print '</div>';
|
||||
|
||||
print '<div class="tagtd" align="center">';
|
||||
print '<div class="tagtd center">';
|
||||
if ($object->statut >= 0) {
|
||||
echo '<a href="contact.php?track_id=' . $object->track_id . '&action=swapstatut&ligne=' . $tab[$i]['rowid'] . '">';
|
||||
}
|
||||
|
||||
@ -553,7 +553,7 @@ $parameters=array('arrayfields'=>$arrayfields);
|
||||
$reshook=$hookmanager->executeHooks('printFieldListOption', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Action column
|
||||
print '<td class="liste_titre" align="right">';
|
||||
print '<td class="liste_titre right">';
|
||||
$searchpicto=$form->showFilterButtons();
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
@ -580,7 +580,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||
$parameters=array('arrayfields'=>$arrayfields,'param'=>$param,'sortfield'=>$sortfield,'sortorder'=>$sortorder);
|
||||
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', 'align="center"', $sortfield, $sortorder, 'maxwidthsearch ')."\n";
|
||||
print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'maxwidthsearch center ')."\n";
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
||||
@ -646,7 +646,7 @@ while ($i < min($num, $limit))
|
||||
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Action column
|
||||
print '<td class="nowrap" align="center">';
|
||||
print '<td class="nowrap center">';
|
||||
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
||||
{
|
||||
$selected=0;
|
||||
@ -669,7 +669,7 @@ if (isset($totalarray['pos']))
|
||||
while ($i < $totalarray['nbfield'])
|
||||
{
|
||||
$i++;
|
||||
if (! empty($totalarray['pos'][$i])) print '<td align="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
if (! empty($totalarray['pos'][$i])) print '<td class="right">'.price($totalarray['val'][$totalarray['pos'][$i]]).'</td>';
|
||||
else
|
||||
{
|
||||
if ($i == 1)
|
||||
|
||||
@ -260,16 +260,16 @@ if (! in_array($nowyear, $arrayyears)) $arrayyears[$nowyear]=$nowyear;
|
||||
arsort($arrayyears);
|
||||
print $form->selectarray('year', $arrayyears, $year, 0);
|
||||
print '</td></tr>';
|
||||
print '<tr><td align="center" colspan="2"><input type="submit" name="submit" class="button" value="'.$langs->trans("Refresh").'"></td></tr>';
|
||||
print '<tr><td class="center" colspan="2"><input type="submit" name="submit" class="button" value="'.$langs->trans("Refresh").'"></td></tr>';
|
||||
print '</table>';
|
||||
print '</form>';
|
||||
print '<br><br>';
|
||||
|
||||
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre" height="24">';
|
||||
print '<td align="center">'.$langs->trans("Year").'</td>';
|
||||
print '<td class="center">'.$langs->trans("Year").'</td>';
|
||||
print '<td class="right">'.$langs->trans("NbOfTickets").'</td>';
|
||||
print '<td class="right">%</td>';
|
||||
//print '<td class="right">'.$langs->trans("AmountTotal").'</td>';
|
||||
@ -287,7 +287,7 @@ foreach ($data as $val)
|
||||
$oldyear--;
|
||||
|
||||
print '<tr class="oddeven" height="24">';
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.'&mode='.$mode.($socid>0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$oldyear.'</a></td>';
|
||||
print '<td class="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.'&mode='.$mode.($socid>0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$oldyear.'</a></td>';
|
||||
print '<td class="right">0</td>';
|
||||
print '<td class="right"></td>';
|
||||
//print '<td class="right">0</td>';
|
||||
@ -299,7 +299,7 @@ foreach ($data as $val)
|
||||
|
||||
|
||||
print '<tr class="oddeven" height="24">';
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&mode='.$mode.($socid>0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$year.'</a></td>';
|
||||
print '<td class="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&mode='.$mode.($socid>0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$year.'</a></td>';
|
||||
print '<td class="right">'.$val['nb'].'</td>';
|
||||
print '<td class="right" style="'.(($val['nb_diff'] >= 0) ? 'color: green;':'color: red;').'">'.round($val['nb_diff']).'</td>';
|
||||
//print '<td class="right">'.price(price2num($val['total'], 'MT'), 1).'</td>';
|
||||
@ -318,7 +318,7 @@ print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||
|
||||
|
||||
// Show graphs
|
||||
print '<table class="border" width="100%"><tr class="pair nohover"><td align="center">';
|
||||
print '<table class="border centpercent"><tr class="pair nohover"><td class="center">';
|
||||
if ($mesg) { print $mesg; }
|
||||
else {
|
||||
print $px1->show();
|
||||
|
||||
@ -37,9 +37,9 @@ print load_fiche_titre($langs->trans('RelatedTickets'));
|
||||
<table class="noborder" width="100%">
|
||||
<tr class="liste_titre">
|
||||
<td><?php echo $langs->trans("Subject"); ?></td>
|
||||
<td align="center"><?php echo $langs->trans("DateCreation"); ?></td>
|
||||
<td align="center"><?php echo $langs->trans("Customer"); ?></td>
|
||||
<td align="center"><?php echo $langs->trans("Status"); ?></td>
|
||||
<td class="center"><?php echo $langs->trans("DateCreation"); ?></td>
|
||||
<td class="center"><?php echo $langs->trans("Customer"); ?></td>
|
||||
<td class="center"><?php echo $langs->trans("Status"); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($linkedObjectBlock as $object) {
|
||||
@ -50,13 +50,13 @@ foreach ($linkedObjectBlock as $object) {
|
||||
<?php echo img_object($langs->trans("ShowTicket"), "ticket") . ' ' . (! empty($object->subject) ? ' '.$object->subject : ''); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center"><?php echo dol_print_date($object->datec, 'day'); ?></td>
|
||||
<td class="center"><?php echo dol_print_date($object->datec, 'day'); ?></td>
|
||||
<?php
|
||||
$object->socid = $object->fk_soc;
|
||||
$object->fetch_thirdparty();
|
||||
?>
|
||||
<td align="center"><?php echo $object->thirdparty->getNomUrl(1); ?></td>
|
||||
<td align="center"><?php echo $object->getLibstatut(2); ?></td>
|
||||
<td class="center"><?php echo $object->thirdparty->getNomUrl(1); ?></td>
|
||||
<td class="center"><?php echo $object->getLibstatut(2); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user