?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Master/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Master/single_tool_list.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_tool_list','view_tool_list','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Tool Information</span> <span class="heading-right"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('master','edit_page','<?=$id;?>','tool_list','tool_id','edit_tool_list')" alt="" /> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('tool_list',<?=$viewinfo->trade_id;?>,'trade_id','master','viewinmastersearch','search_tool_list','view_tool_list','','')" alt="Delete" align = "center"/> </span> </div> <fieldset> <?php $trade_list=$this->mastermodel->get_data('trade','1','trade_training','trade_id'); $tool_list=$this->mastermodel->get_data('tool_list',$viewinfo->trade_id ,'trade_id','tool_id'); $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes);?> <ul> <li> <label for="data">Trade Name</label> <select name="trade_id" id="trade_id" class="required" disabled> <option value="">Select</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'";if($viewinfo->trade_id == $trade['trade_id']){echo "selected";} echo ">" . $trade['trade_name'] . "</option>"; } ?> </select> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="20%;"> <tr> <th>Tool Name</th> <th>Shelf Life (in Days)</th> <th>Remind before (in Days)</th> </tr> <?php foreach($tool_list as $tool) { ?> <tr> <td><?=$tool['tool_name'];?></td> <td><?=$tool['tool_shelf_life'];?></td> <td><?=$tool['tool_remind_before'];?></td> </tr> <?php } ?> </table> </li> </ul> <?php echo form_close();?> </fieldset>