Location: PHPKode > projects > CoreAsset > coreasset/templates/manage_equipment.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 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><!--<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>-->
		<td>	
          </tr>
          <tr>
            <!--<td 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="4"><font color="RED">{$mes}</font></td>
              </tr>
              <tr>
                <td class="txt"  colspan="4">&nbsp;</td>
              </tr>
            </table>
            {/if}

            <table  cellSpacing="1" cellPadding="0" width="100%" border="0">

              <form name="f1" action="?act=edit" method="post">

                <tr>
                  <td class="title_heading" align="left" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Equipment Name</font></td>
                  <td class="title_heading" align="left" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Model Number</font></td>
                  <td class="title_heading" align="center" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Edit | Delete</font></td>
                </tr>

                {if $num > 0}
                {section name=index loop=$equipment_id}
                  <tr>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$equipment_name[index]}</td>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$equipment_model[index]}</td>
                    <td align="center" class="list_item" width="25%" bgColor="#B5D3DE" height="23">&nbsp;<a href="edit_equip.php?hd83___2y8dh328f____8hhdiw___jd9={$equipment_id[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> | 
					{if $status_equip[index] > 0}
						<img src="images/delete.gif" border="0" title="Already Added to Purchase Order, Can Not Delete">
					{else}
					<a href="manage_equipment.php?hd83___2y8dh328f____8hhdiw___jd9={$equipment_id[index]}" onClick="return conf();"><img src="images/delete.gif" border="0" title="Click to Delete"></a>
					{/if}
					</td>
                  </tr>
                {/section}
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="4" height="30">
                  <a href="add_equip.php"><img src="images/add_eqp.gif" border="0" title="Click to Add Equipment"></a>
                  </td>
                </tr>
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td  colspan="4" align="center" width="25%"  height="23"><font color="RED">Sorry ! You have no such Privillage</font></td>
                  </tr>
                  <tr>
                    <td  align="center" valign="MIDDLE" width="20%" colSpan="4" height="24">&nbsp;
                    
                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td  colspan="4" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Equipment still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="4" height="30">
                  <a href="add_equip.php"><img src="images/add_eqp.gif" border="0" title="Click to Add Equipment"></a>
                  </td>
                </tr>
                {/if}
				<!--<tr>
                  <td class="btn_bg" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="4" height="30">
                  <a href="add_book.php"><img src="images/add_eqp.gif" border="0" title="Click to Add book"></a>
                  </td>
                </tr>-->
              </form>

            </table>
            </td>
          </tr>
          <!--<tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="4" alt src="images/blank.gif" width="1"></td>
          </tr>-->
          </table>
        </td>
      </tr>
    </table>



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

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

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

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