Location: PHPKode > projects > CoreAsset > coreasset/templates/search_asset_by_user.tpl
{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">&nbsp;</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%" >
	      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Search Equipment by Assigned User&nbsp;&nbsp;&nbsp;
	      
	      <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%" >
	      &nbsp;
		   <input type="image" src="images/go_btn.gif" name="go">
		  </td>
              </tr>
              <tr>
                <td class="txt"  colspan="5">&nbsp;</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">&nbsp;Equipment</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Price($)</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Serial No</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Model</font></td>

<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Manufacturer</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Asset Nickname</font></td>
<td class="title_heading" align="left" width="10%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;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">&nbsp;{$equipment_name[index]}</td>            <td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{$equip_price[index]}</td>
			<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{$serial_no[index]}</td>
			<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{$equipment_model[index]}</td>
			<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{$manufacturer[index]}</td>
			<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{$asset_nickname[index]}</td>
			
			<td class="list_item" align="left" width="15%" bgColor="#B5D3DE" height="23">&nbsp;{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">&nbsp;
                    
                    </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}
Return current item: CoreAsset