Example #1
0
 print '<input class="flat" type="text" size="1" maxlength="2" name="month" value="' . $month . '">';
 //print '&nbsp;'.$langs->trans('Year').': ';
 $syear = $year;
 $formother->select_year($syear, 'year', 1, 20, 5);
 print '</td>';
 print '<td class="liste_titre" colspan="1">&nbsp;</td>';
 // Amount
 print '<td class="liste_titre" align="right">';
 print '<input class="flat" type="text" size="6" name="search_montant_ht" value="' . $search_montant_ht . '">';
 print '</td>';
 // Author
 print '<td class="liste_titre" align="center">';
 print '<input class="flat" size="6" type="text" name="search_author" value="' . $search_author . '">';
 print '</td>';
 print '<td class="liste_titre" align="right">';
 $formpropal->selectProposalStatus($viewstatut, 1);
 print '</td>';
 print '<td class="liste_titre" align="right">';
 print '<input type="image" name="button_search" class="liste_titre" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
 print '<input type="image" name="button_removefilter" class="liste_titre" src="' . img_picto($langs->trans("RemoveFilter"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
 print '</td>';
 print "</tr>\n";
 $var = true;
 $total = 0;
 $subtotal = 0;
 while ($i < min($num, $limit)) {
     $objp = $db->fetch_object($result);
     $now = dol_now();
     $var = !$var;
     print '<tr ' . $bc[$var] . '>';
     print '<td class="nowrap">';
Example #2
0
print '<form name="stats" method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
print '<input type="hidden" name="mode" value="' . $mode . '">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td class="liste_titre" colspan="2">' . $langs->trans("Filter") . '</td></tr>';
// Company
print '<tr><td align="left">' . $langs->trans("ThirdParty") . '</td><td align="left">';
$filter = 's.client in (1,2,3)';
print $form->select_company($socid, 'socid', $filter, 1);
print '</td></tr>';
// User
print '<tr><td align="left">' . $langs->trans("CreatedBy") . '</td><td align="left">';
print $form->select_dolusers($userid, 'userid', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
print '</td></tr>';
// Status
print '<tr><td align="left">' . $langs->trans("Status") . '</td><td align="left">';
$formpropal->selectProposalStatus($object_statut, 0, 1);
print '</td></tr>';
// Year
print '<tr><td align="left">' . $langs->trans("Year") . '</td><td align="left">';
if (!in_array($year, $arrayyears)) {
    $arrayyears[$year] = $year;
}
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 '</table>';
print '</form>';