{include file="head.tpl"}
{include file="left.tpl"}
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td height="21" valign="top">
<form name="f1" method="POST" action="?act=add" onsubmit="return validate();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/corner9.gif" width="5" height="21"></td>
<td width="99%" class="header"><span class="whitetext">
Search Equipment Section
</span></td>
<td><img src="images/corner10.gif" width="5" height="21"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="border3side" valign="top" height="100%"><table width="100%" height="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td valign="top">
<!-- ####################### Paste the Table to Table from here ############## -->
<table cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
<tr>
<td>
{if $mes!=""}
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td class="txt" colspan="5"><font color="RED">{$mes}</font></td>
</tr>
<tr>
<td class="txt" colspan="5"> </td>
</tr>
</table>
{/if}
<tr><td valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td class="title_heading" align="left" bgColor="#cccccc" width="60%" >
Search Equipment by Assigned User
<select name="user_user" class="text">
<option value="select">:: Select User ::</option>
{section name="ind" loop="$userr_id"}
<option value="{$userr_id[ind]}"{if $usr_id == $userr_id[ind]}selected{/if}>{$login[ind]}</option>
{/section}
</select></td> <td class="title_heading" align="left" colspan="5" bgColor="#cccccc" width="40%" >
<input type="image" src="images/go_btn.gif" name="go">
</td>
</tr>
<tr>
<td class="txt" colspan="5"> </td>
</tr>
</table>
{if $set == 1}
<table width="100%" border="0" cellPadding="0" cellSpacing="1" id="tbl_disp">
<tr class="text">
<td colspan="6" align="center"><font color="#FF0000"></font></td>
</tr>
<tr>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Equipment</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Price($)</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Serial No</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Model</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Manufacturer</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Asset Nickname</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000"> Warranty</font></td>
</tr>
{if $num > 0}
{section name=index loop=$serial_id}
<tr>
<td class="list_item" align="left" width="10%" bgColor="#B5D3DE" height="23"> {$equipment_name[index]}</td> <td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {$equip_price[index]}</td>
<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {$serial_no[index]}</td>
<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {$equipment_model[index]}</td>
<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {$manufacturer[index]}</td>
<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {$asset_nickname[index]}</td>
<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23"> {if $mmssgg[index] == 0}<font color="#FF0000">Warranty Over!</font>{else}{$expiry_date[index]}{/if}</td>
</tr>
{/section}
{elseif ($num==0) and ($num!="")}
<tr>
<td class="txt" colspan="10"align="center" width="25%" height="23"><font color="RED">Sorry ! You have no such Privillage</font></td>
</tr>
<tr>
<td class="txt" align="center" valign="MIDDLE" width="20%" colspan="10"height="24">
</td>
</tr>
{else}
<tr>
<td class="txt" colspan="9" align="center" width="25%" height="23"><font color="RED">Sorry ! No Asset Still Added</font></td>
</tr>
{/if}
</table>
</td></tr>
{else}
<tr>
<td class="txt" colspan="9" align="center" width="25%" height="23"><font color="RED">Please Select The User!</font></td>
</tr>
{/if}
<tr>
<td class="title_heading" align="left" bgColor="#cccccc" height="23" colspan="9">
</tr>
</table>
</td></tr>
</table>
</form>
</td></tr></table>
{literal}
<script type="text/javascript">
function validate()
{
/*if(document.f1.user_user.value=="select")
{
alert("Please Select User");
document.f1.user_user.focus();
return false;
}*/
}
</script>
{/literal}