Location: PHPKode > projects > CoreAsset > coreasset/templates/add_asset_book.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">

 Add Asset
</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 $status < 4}
			<form name="f1" action="?act=add" method="post" onSubmit="return conf();">
            <table borderColor="#cccccc" cellSpacing="1" cellPadding="0" width="100%" border="0">
              

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                   &nbsp;Category</td>
                  <td class="txtbox_bgcolor" width="33%"><input name="cat_name" type="text"   readonly class="text" id="cat_name" value="{$cat_name_book}"/>
                    <input name="cat_id" type="hidden"   id="cat_id"value="{$cat_id_book}"/>			</td>
                </tr>
                
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Purchase Order No.</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  
                  <input name="po_no" type="text" size="20" class="text" value="{$po_no}" readonly></td>
                </tr>

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Total Price(for {$pcs} book/s)</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="asset_price" type="text" size="20" class="text" value="{$total_price}" readonly /></td>
                </tr>

                

                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">&nbsp;Book/s name </td>
                  <td class="alttxtbox_bgcolor" width="33%">
				 <!-- <textarea  name="book" rows="5" readonly="readonly">{$a}</textarea>-->
				 <select name="book" multiple disabled>
				 {section name=count loop=$a}
				 <option value="">{$a[count]}</option>
				 {/section}
				 </select>
				  </td>
                </tr>
               <!-- <tr>
				<td class="alttxtbox_bgcolor" width="20%">&nbsp;Book/s name </td>
				<td>
				<select name="book" id="book" multiple="multiple"  disabled="disabled">
				  <option value="0" selected="selected">{$a} </option>
				   </select>
				  </td></tr>-->
                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Decription</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <textarea name="asset_description" rows="10" cols="30"></textarea>				  </td>
                </tr>

               
                <tr>
				   <td class="btn_bg" colSpan="1">
                  <td class="btn_bg" colSpan="1">
                  <input type="image" src="images/add_asset.gif" name="add" title="add asset"></td>
                </tr>
            </table>
            </form>
            {else}
            <table borderColor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">
                <tr>
                  <td class="txt" align="center" width="20%" bgColor="#cccccc" height="23">
                  <font color="RED">{$mes}</font>
                  </td>
                </tr>
             </table>
            {/if}
            </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()
{
 return confirm("Are you sure? The Asset will be added !");
}
</script>

{/literal}
Return current item: CoreAsset