Skip to content

Commit

Permalink
Merge pull request #12373 from frederic34/cleaning
Browse files Browse the repository at this point in the history
fix phpcs
  • Loading branch information
eldy committed Nov 7, 2019
2 parents f1ebfb1 + 001010d commit 0a0343f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions htdocs/contrat/index.php
Expand Up @@ -85,8 +85,8 @@
{
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">';
Expand Down Expand Up @@ -257,7 +257,7 @@
{
$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>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/index.php
Expand Up @@ -226,7 +226,7 @@
$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>';
Expand Down
18 changes: 9 additions & 9 deletions htdocs/opensurvey/list.php
Expand Up @@ -375,19 +375,19 @@
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';
print img_picto('', dol_buildpath('/opensurvey/img/'.($type == 'classic'?'chart-32.png':'calendar-32.png'), 1), 'width="16"', 1);
print ' '.$langs->trans($type=='classic'?"TypeClassic":"TypeDate");
print '</td>';
if (! $i) $totalarray['nbfield']++;

print '<td>';
// Author
if ($obj->fk_user_creat) {
Expand All @@ -403,19 +403,19 @@
}
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
Expand All @@ -432,7 +432,7 @@
}
print '</td>';
if (! $i) $totalarray['nbfield']++;

print '</tr>'."\n";
$i++;
}
Expand Down Expand Up @@ -476,7 +476,7 @@
$filedir=$diroutputmassaction;
$genallowed=$permissiontoread;
$delallowed=$permissiontoadd;

print $formfile->showdocuments('massfilesarea_mymodule', '', $filedir, $urlsource, 0, $delallowed, '', 1, 1, 0, 48, 1, $param, $title, '', '', '', null, $hidegeneratedfilelistifempty);
}

Expand Down

0 comments on commit 0a0343f

Please sign in to comment.