?
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/edit_tool_list.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <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">Updating tool list</span> </div> <fieldset> <?php $trade_list=$this->mastermodel->getdatas('trade','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('master/addinmaster/update_tool_list/view_tool_list/1',$attributes); ?> <ul> <li> <label for="data">Trade Name</label> <select disabled name="" id="trade_id" class="required">> <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> <input type="hidden" name="trade_id" value="<?=$viewinfo->trade_id;?>"/> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Tool Name</th> <th>Shelf Life (in Days)</th> <th>Remind before (in Days)</th> <th>Alert?</th> </tr> <?php $i=0; foreach($tool_list as $tool) { $i++; ?> <tr> <td> <input type="text" class="required" name="tool_name<?=$i;?>" value="<?=$tool['tool_name'];?>"/> <input type="hidden" name="tool_id<?=$i;?>" value="<?=$tool['tool_id'];?>"/> </td> <td><input type="text" class="required number" name="tool_shelf_life<?=$i;?>" value="<?=$tool['tool_shelf_life'];?>"/></td> <td><input type="text" style="width:30px;" class="number" name="tool_remind_before<?=$i;?>" value="<?=$tool['tool_remind_before'];?>"/></td> <td><input style="width:15px;" type="checkbox" name="tool_alert<?=$i;?>" <?php if($tool['tool_alert']==1){echo "checked";}?> /></td> </tr> <?php } ?> </table> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Tool Name</th> <th>Shelf Life (in Days)</th> <th>Remind before (in Days)</th> <th width="20%"> <input type="button" style="width:150px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </th> </tr> <tr> <td><input type="text" name="tool_name_"></td> <td><input type="text" class="number" name="tool_shelf_life_"></td> <td><input type="text" style="width:30px;" class="number" name="tool_remind_before_"></td> <td><input style="width:15px;" type="checkbox" name="tool_alert_" /></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> <input type="hidden" name="tab_name" value="tool_list"/> <input type="hidden" name="tab_id" value="<?=$id;?>"/> <input type="hidden" name="tab_field" value="tool_list_id"/> <input type="hidden" name="resfunction" value="search_tool_list"/> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>