mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpcs
This commit is contained in:
parent
4c44f3c109
commit
001010d5e3
|
|
@ -85,8 +85,8 @@ if (! empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is usele
|
|||
{
|
||||
print '<form method="post" action="'.DOL_URL_ROOT.'/contrat/list.php">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder nohover centpercent">';
|
||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||
print '<tr class="oddeven">';
|
||||
|
|
@ -257,7 +257,7 @@ if (! empty($conf->contrat->enabled) && $user->rights->contrat->lire)
|
|||
{
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<th colspan="3">'.$langs->trans("DraftContracts").($num?' <span class="badge">'.$num.'</span>':'').'</th></tr>';
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ if (! empty($conf->fournisseur->enabled))
|
|||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<th colspan="2">'.$langs->trans("DraftOrders").'</th></tr>';
|
||||
|
|
|
|||
|
|
@ -375,11 +375,11 @@ while ($i < min($num, $limit))
|
|||
print $opensurvey_static->getNomUrl(1);
|
||||
print '</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
// Title
|
||||
print '<td>'.dol_htmlentities($obj->titre).'</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
// Type
|
||||
print '<td>';
|
||||
$type=($obj->format=='A')?'classic':'date';
|
||||
|
|
@ -387,7 +387,7 @@ while ($i < min($num, $limit))
|
|||
print ' '.$langs->trans($type=='classic'?"TypeClassic":"TypeDate");
|
||||
print '</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
print '<td>';
|
||||
// Author
|
||||
if ($obj->fk_user_creat) {
|
||||
|
|
@ -403,19 +403,19 @@ while ($i < min($num, $limit))
|
|||
}
|
||||
print '</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
// Nb of voters
|
||||
print'<td class="right">'.$nbuser.'</td>'."\n";
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
print '<td class="center">'.dol_print_date($db->jdate($obj->date_fin), 'day');
|
||||
if ($db->jdate($obj->date_fin) < $now && $obj->status == Opensurveysondage::STATUS_VALIDATED) { print img_warning($langs->trans("Expired")); }
|
||||
print '</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
print'<td class="center">'.$opensurvey_static->getLibStatut(5).'</td>'."\n";
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
// Extra fields
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
||||
// Fields from hook
|
||||
|
|
@ -432,7 +432,7 @@ while ($i < min($num, $limit))
|
|||
}
|
||||
print '</td>';
|
||||
if (! $i) $totalarray['nbfield']++;
|
||||
|
||||
|
||||
print '</tr>'."\n";
|
||||
$i++;
|
||||
}
|
||||
|
|
@ -476,7 +476,7 @@ if (in_array('builddoc', $arrayofmassactions) && ($nbtotalofrecords === '' || $n
|
|||
$filedir=$diroutputmassaction;
|
||||
$genallowed=$permissiontoread;
|
||||
$delallowed=$permissiontoadd;
|
||||
|
||||
|
||||
print $formfile->showdocuments('massfilesarea_mymodule', '', $filedir, $urlsource, 0, $delallowed, '', 1, 1, 0, 48, 1, $param, $title, '', '', '', null, $hidegeneratedfilelistifempty);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user