Location: PHPKode > projects > CoreAsset > coreasset/templates/view_asset_tmp.tpl
        <td vAlign="top" width="1" background="images/divider.gif">
        <img src="images/divider.gif" valign="top" width="1" height="3"></td>
        <td vAlign="top" width="700">
        <table cellSpacing="0" cellPadding="0" width="550" align="center" border="0">
          <tr>
            <td>
            <table cellSpacing="0" cellPadding="0" width="158" border="0">
              <tr>
                <td>
                <img title alt src="images/label-left.gif" width="8" height="30"></td>
                <td class="label" align="middle" width="142" bgColor="#CCCCCC">
                View Asset</td>
                <td>
                <img title alt src="images/label-right.gif" width="8" height="30"></td>
              </tr>
            </table>
            </td>
          </tr>
          <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">

            {if $status < 4}
            <table borderColor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">
              <form name="f1" action="?act=edit" method="post" onSubmit="return validate();">

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Manufacturer</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="asset_manufacturer"  type="text" size="20" class="text" value="{$asset_manufacturer}"></td>
                </tr>
                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Model</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <input name="asset_model" type="text" size="20" class="text" value="{$asset_model}"></td>
                </tr>
                

                <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 disabled></td>
                </tr>

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Price</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="asset_price" type="text" size="20" class="text" value="{$asset_price}"></td>
                </tr>

                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Vendor Name</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <input name="vendor_id" type="hidden" size="20" value="{$vendor_id}">
                  <input name="vendor_name" type="text" size="20" value="{$vendor_name}"  class="text" readonly disabled></td>
                </tr>

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Equipment Name</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <div id="serial_no">
				  <table width="100%" align="center" id="tbl_serial">
				  
				  <input name="equi_id" type="hidden" size="20" value="{$equi_id}">
				  {section name=i loop=$equipment_name}
				  	  <tr><td><input type="text" value="{$equipment_name[i]}"  class="text" disabled="disabled"></td>
				  	  <td class="txtbox_bgcolor">Serial:</td>
				  	 <td><input type="text" name="serial[]" size="20"  class="text" value="{$serial_no[i]}"/></td>
					 </tr>
				  {/section}
				                     <!--<select name="equipment_name" multiple disabled>
                  /*{section name=index loop=$equipment_name}*/
                          <option value="">{$equipment_name[index]}</option>
                  /*{/section}*/
                  </select>-->        
				  </table>
				  </div>
                  
                  </td>
                </tr>

                <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Decription</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <textarea name="asset_description" rows="10" cols="30">{$asset_description}</textarea>
                  </td>
                </tr>

                <tr>
                  <td class="txtbox_bgcolor" width="20%">
                  &nbsp;Receive Date</td>
                  <td class="txtbox_bgcolor" width="33%">
                  <input name="receive_date"  type="text" size="20" class="text" readonly value="{$receive_date}">

                  <a href="javascript:cal4.popup();"><img src="images/calender.gif" border="0" alt="Click to pickup..."></a>
                  </td>
                </tr>
                 <tr>
                  <td class="alttxtbox_bgcolor" width="20%">
                  &nbsp;Issue to User</td>
                  <td class="alttxtbox_bgcolor" width="33%">
                  <select name="issued_userid">
                          <option value="-1">-- Don't issue now --</option>
                   {section name=index loop=$userid}
                   <option value="{$userid[index]}" {if $u_id==$userid[index] } selected {/if}>{$full_name[index]}</option>
                   {/section}
                  </select>                  </td>
                </tr>
                <tr>
                <input name="asset_tag"  type="hidden"  value="{$asset_tag}">

                <tr>
                  <td class="btn_bg" colSpan="2">
                  <input type="image" src="images/edit_asset.gif" name="add"></td>
                </tr>
              </form>
            </table>

            {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>
    </td>
  </tr>
{include file="foot.tpl"}

{literal}
<script language="Javascript">
function validate()
{
 if(document.f1.asset_manufacturer.value=="")
 {
  alert("Please Enter Company Name !");
  document.f1.asset_manufacturer.focus();
  return false;
 }

 if(document.f1.asset_model.value=="")
 {
  alert("Please Enter Model !");
  document.f1.asset_model.focus();
  return false;
 }

 if(document.f1.asset_serial.value=="")
 {
  alert("Please Enter Serial !");
  document.f1.asset_serial.focus();
  return false;
 }

 if(document.f1.asset_price.value=="")
 {
  alert("Please Enter Price !");
  document.f1.asset_price.focus();
  return false;
 }

 if(document.f1.receive_date.value=="")
 {
  alert("Please Select Receive Date !");
  document.f1.receive_date.focus();
  return false;
 }
}
</script>
<script language="JavaScript" src="js/calendar.js"></script>
<script language="JavaScript">
var cal4 = new calendar1(document.f1.elements['receive_date']);
		cal4.year_scroll = true;
</script>
{/literal}
Return current item: CoreAsset