Location: PHPKode > projects > CoreAsset > coreasset/templates/manage_asset.tpl
{include file="head.tpl"}
{include file="left.tpl"}

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center"  >
<tr>
<td height="21"><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">

 Manage Asset 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><!--<img title alt src="images/blank.gif" width="1" height="1"></td>
          </tr>-->
          <!--<tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="3" alt src="images/blank.gif" width="1" valign="top"></td>
          </tr>-->
          <tr>
            <!--<td width="559" style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb; padding-left: 18px; padding-right: 23px; padding-top: 11px" vAlign="top" bgColor="#ededed" height="180">-->
			<td>
            {if $mes!=""}
            <table borderColor="#ffffff" 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}
            <form name="f1" action="?act=edit" method="post">
            <table  cellSpacing="1" cellPadding="2" width="100%" border="0">

              

                <tr>
                  <td class="title_heading" width="10%"><font color="#000000">&nbsp;Tag</font></td>
<!--                  <td class="title_heading" width="10%">&nbsp;Company</td>
-->                  <!--<td class="title_heading" width="10%">&nbsp;Serial</td>-->
                  <td class="title_heading" width="15%"><font color="#000000">&nbsp;Price($)</font></td>
                  <td class="title_heading" width="15%" nowrap><font color="#000000">&nbsp;Type</font></td>
                  <td class="title_heading" width="15%"><font color="#000000">&nbsp;Vendor</font></td>
				   <td class="title_heading" width="15%"><font color="#000000">&nbsp;Nickname</font></td>
                  <td class="title_heading" width="20%"><font color="#000000">&nbsp;View | Edit | Del {*| History*}</font></td>
                </tr>
				{if $num - $num_of_book> 0}
                {section name=index loop=$asset_tag}
				{if $cat_id[index] != $cat_id_book}
                  <tr>
				   
                    <td class="list_item" width="10%">&nbsp;{$asset_tag[index]}</td>
                    <td class="list_item" width="15%">&nbsp;{$asset_price[index]}</td>
                    <td class="list_item" width="15%" nowrap>{$equipment_name[index]}</td>
                    <td class="list_item" width="15%">&nbsp;{$vendor_name[index]}</td>
					<td class="list_item" width="15%">&nbsp;{$asset_nickname[index]}</td>
                    <td class="list_item" width="25%">&nbsp;&nbsp;
					<a href="show_asset.php?hd83___2y8dh328f____8hhdiw___jd9={$asset_tag[index]}"><img src="images/view_detail.gif" border="0" title="Click To View Asset Details" /></a> &nbsp;&nbsp;&nbsp;|&nbsp; 
					<a href="edit_asset.php?hd83___2y8dh328f____8hhdiw___jd9={$asset_tag[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> &nbsp;| &nbsp;<a href="manage_asset.php?hd83___2y8dh328f____8hhdiw___jd9={$asset_tag[index]}" onClick="return conf();"><img src="images/delete.gif" border="0" title="Click to Dlete"></a>
					{*
					<!-- History Starts -->
					&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:void(0)" 
onclick="window.open('show_asset_history.php?hd83___2y8dh328f____8hhdiw___jd9={$asset_tag[index]}','external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=900, height=500, screenX=25,screenY=25,left=25,top=25'); return false;"><img src="images/history_icon.gif" border="0" title="View History"/></a>
					<!-- History Ends-->
					*}
					</td>
                  </tr>
				  {/if}
                {/section}
                <tr>
                  <td class="btn_bg1" width="20%" colSpan="10">
                  <a href="manage_purchase.php"><img src="images/add_asset.gif" border="0" title="Click to Add Asset"></a>
                  </td>
                </tr>
                {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="10"align="center" width="25%"  height="23"><font color="RED">Sorry ! No Asset Still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" width="20%" colSpan="10">
                  <a href="manage_purchase.php"><img src="images/add_asset.gif" border="0" title="Click to Add Asset"></a>
                  </td>
                </tr>
                {/if}
              

            </table>
			
			
		<table  cellSpacing="0" cellPadding="0" width="100%" border="0">
		
		      <tr>
		      <td  colspan="4"  >&nbsp;</td></tr>
			  </tr>
			  <tr>
			  <td class="txtbox_bgcolor" colspan="4"  >&nbsp;</td>
			  <td class="txtbox_bgcolor">Asset List For Book/s </td>
			  </tr>	
              <tr> 
			  <td  colspan="4"  >&nbsp;</td>
			  </tr>
	  </table>		  
			  
		  <table  cellSpacing="1" cellPadding="0" width="100%" border="0">
               

                <tr>
                  <td class="title_heading" width="10%"><font color="#000000">&nbsp;Tag</font></td>
<!--                  <td class="title_heading" width="10%">&nbsp;Company</td>
-->                  <!--<td class="title_heading" width="10%">&nbsp;Serial</td>-->
                  <td class="title_heading" width="15%"><font color="#000000">&nbsp;Price($)</font></td>
                  <td class="title_heading" width="15%"><font color="#000000">&nbsp;Book/s </font></td>
                 <!-- <td class="title_heading" width="15%">&nbsp;Vendor</td>-->
                  <td class="title_heading" width="20%"><font color="#000000">&nbsp;Edit | Del</font></td>
                </tr>
				
				{if $num_of_book > 0}
				
                {section name=indx loop=$tag_book}
				
                  <tr>
				    <td class="list_item" width="10%">&nbsp;{$tag_book[indx]}</td>
                    <td class="list_item" width="15%">&nbsp;{$price_book[indx]}</td>
                    
					 <td class="list_item"align="left" width="20%" height="23">{$arr_book[indx]} </td>
                     <td class="list_item" width="25%">&nbsp;<a href="edit_asset_book.php?hd83___2y8dh328f____8hhdiw___jd9={$tag_book[indx]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> | <a href="manage_asset.php?hd83___2y8dh328f____8hhdiw___jd9={$tag_book[indx]}" onClick="return conf();"><img src="images/delete.gif" border="0" title="Click to Delete"></a></td>
                  </tr>
				  
                {/section}
                <tr>
                  <td class="btn_bg1" width="20%" colSpan="10">
                  <a href="manage_purchase.php"><img src="images/add_asset.gif" border="0" title="Click to Add Asset"></a>
                  </td>
                </tr>
                {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="10"align="center" width="25%"  height="23"><font color="RED">Sorry ! No Book Still Added as Asset</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" width="20%" colSpan="10">
                  <a href="manage_purchase.php"><img src="images/add_asset.gif" border="0" title="Click to Add Asset"></a>
                  </td>
                </tr>
                {/if}
              

            </table>
			</form>
            </td>
          </tr>
          	
          </table>
        </td>
      </tr>
    </table>



<!-- ########################      End Here ##########################-->

{include file="foot.tpl"}
{literal}
<script language="Javascript">
function conf()
{
	input_box=confirm("Are you sure? The the Asset will be Deleted !");

	if (input_box==true)
	{
		return true;
	}

	else
	{
		return false;
	}
}
</script>
{/literal}
Return current item: CoreAsset