$name = trim($name); $worktype = trim($worktype); $company = trim($company); $year = trim($year); $branch = trim($branch); $location = trim($location); if ($name != "" || $worktype != "" || $year != "" || $branch != "" || $company != "" || $location != "") { $srch = TRUE; $fil = array(); $name != "" && ($fil['name'] = $name); $worktype != "" && ($fil['work_type'] = $worktype); $company != "" && ($fil['company'] = $company); $year != "" && ($fil['year'] = $year); $branch != "" && ($fil['branch'] = $branch); $location != "" && ($fil['location'] = $location); $res =& XMEC::search($fil); } ?> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> <TITLE></TITLE> </HEAD> <BODY bgcolor="#ffffff"> <P> <Form method=GET action=xmec_search.php> <TABLE border=0 cellPadding=1 cellSpacing=1 width="615">
<?php $__me =& XMEC::getUser(); if (!$__me->isAdmin()) { exit; } $res =& XMEC::search($search_fil, $search_start, $search_count); $no_links = 5; // half the no. of navigation links (1 2 3...) ?> <!-- Box starts --> <TABLE width = 90% align=center cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD width=4 height=4><IMG height=4 src="images/corner.gif" width=4></TD> <TD align=left background=images/tb_top.gif height=4><IMG height=4 src="images/tb_left_topt.gif" width=8></TD> <TD align=right background=images/tb_top.gif height=4><IMG height=4 src="images/tb_right_topt.gif" width=8></TD> <TD width=4 height=4><IMG height=4 src="images/corner.gif" width=4></TD> </TR> <TR> <TD vAlign=top width=4 background=images/tb_left.gif height="50%"><IMG height=6 src="images/tb_left_topb.gif" width=3></TD> <TD colSpan=2 rowSpan=2> <!--contents starts--> <TABLE border=0 cellPadding=0 cellSpacing=3 width=100%> <?php $total = $res['total']; if ($res['total'] > $search_count) { $rem = (int) (($res['total'] + $search_count - 1) / $search_count); $current = (int) (($search_start + $search_count - 1) / $search_count);