コード例 #1
0
$var = true;
/*$var=!$var;
print '<tr '.$bc[$var].'>'."\n";
print '<td style="padding:5px;">'.$langs->trans('GroupToValidateCP').'</td>'."\n";
print '<td style="padding:5px;">'.$cp->selectUserGroup('userGroup').'</td>'."\n";
print '</tr>'."\n";
*/
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td style="padding:5px;">' . $langs->trans('DelayForSubmitCP') . '</td>' . "\n";
print '<td style="padding:5px;"><input class="flat" type="text" name="delayForRequest" value="' . $cp->getConfCP('delayForRequest') . '" size="2" /> ' . $langs->trans('DurationDays') . '</td>' . "\n";
print '</tr>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td style="padding:5px;">' . $langs->trans('AlertValidatorDelayCP') . '</td>' . "\n";
print '<td style="padding:5px;"><input class="flat" type="checkbox" name="AlertValidatorDelay" ' . $cp->getCheckOption('AlertValidatorDelay') . '/></td>' . "\n";
print '</tr>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td style="padding:5px;">' . $langs->trans('AlertValidorSoldeCP') . '</td>' . "\n";
print '<td style="padding:5px;"><input class="flat" type="checkbox" name="AlertValidatorSolde" ' . $cp->getCheckOption('AlertValidatorSolde') . '/></td>' . "\n";
print '</tr>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td style="padding:5px;">' . $langs->trans('nbHolidayEveryMonthCP') . '</td>' . "\n";
print '<td style="padding:5px;"><input class="flat" type="text" name="nbHolidayEveryMonth" value="' . $cp->getConfCP('nbHolidayEveryMonth') . '" size="5"/> ' . $langs->trans('DurationDays') . '</td>' . "\n";
print '</tr>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td style="padding:5px;">' . $langs->trans('nbHolidayDeductedCP') . '</td>' . "\n";
print '<td style="padding:5px;"><input class="flat" type="text" name="nbHolidayDeducted" value="' . $cp->getConfCP('nbHolidayDeducted') . '" size="2"/> ' . $langs->trans('DurationDays') . '</td>' . "\n";