Location: PHPKode > projects > CoreAsset > coreasset/templates/manage_category.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 Category 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 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 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%"  height="23"><font color="#000000">&nbsp;Category Name</font></td>
                  <td class="title_heading" align="center" width="25%"  height="23"><font color="#000000">&nbsp;Edit | Delete</font></td>
                </tr>

                {if $num > 0}
                {section name=index loop=$category_id}
                  <tr>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$category_name[index]}</td>
                    <td align="center" class="list_item" width="25%" bgColor="#B5D3DE" height="23">&nbsp;<a href="edit_category.php?hd83___2y8dh328f____8hhdiw___jd9={$category_id[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> | <a href="manage_category.php?hd83___2y8dh328f____8hhdiw___jd9={$category_id[index]}"
					onClick="return conf({$po_num[index]},{$asset_num[index]});">
					<img src="images/delete.gif" border="0" title="Click to Dlete"></a>
					
					</td>
                  </tr>
                {/section}
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%"  colSpan="4" height="30">
                  <a href="add_category.php"><img src="images/add_category.gif" border="0" title="Click to Add Category"></a>
                  </td>
                </tr>
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td class="txt" colspan="4" 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="4" height="24">&nbsp;
                    
                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td class="txt" colspan="4" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Category still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%" colSpan="4" height="30">
                  <a href="add_category.php"><img src="images/add_category.gif" border="0" title="Click to Add category"></a>
                  </td>
                </tr>
                {/if}
              </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(no_of_po,no_of_asset)
{
//alert(no_of_po);alert(no_of_asset);
  if(no_of_po>0 || no_of_asset>0)
    input_box=confirm("Purchase Order/Asset exists against this category, Are you sure you want to delete it ?");
  else
	input_box=confirm("Are you sure? The the Category will be Deleted !");

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

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