Ejemplo n.º 1
0
	<?php 
echo drawHeaderRow("Percentages Report (without Vacation)", 2);
?>
	<form method="post" action="<?php 
echo $_josh["request"]["path_query"];
?>
">
	<tr>
		<td class="left">Start Date</td>
		<td><?php 
echo draw_form_select_month("start", "1/2005", false, false, "field", false, true);
?>
</td>
	</tr>
	<tr>
		<td class="left">End Date</nobr></td>
		<td><?php 
echo draw_form_select_month("end", "1/2005", false, false, "field", false, true);
?>
</td>
	</tr>
	<tr>
		<td colspan="2" class="bottom"><?php 
echo draw_form_submit("run report");
?>
</td>
	</tr>
	</form>
</table>	
<?php 
echo drawBottom();
Ejemplo n.º 2
0
function drawTicketFilter()
{
    global $total, $default, $pageName, $_GET;
    $target = isset($_GET["id"]) ? $pageName . "?id=" . $_GET["id"] : $pageName . "?";
    return draw_javascript('
		function goToMonth(str) {
			if (str == "") {
				location.href=\'' . $target . '\';
			} else {
				arr = str.split("/");
				location.href=\'' . $target . '&month=\' + arr[0] + \'&year=\' + arr[1];
			}
			return true;
		}
	') . draw_div_class('message', 'Filter by month:&nbsp;' . draw_form_select_month("month", $total["month"] . "/" . $total["year"], $default, false, "sleek", "goToMonth(this.value)", true));
    return $return;
}