?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/hr/application/views/Master/edit_general_item.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_general_item','view_general_item','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Item</span> </div> <fieldset> <?php $size_list=$this->mastermodel->get_data('general_item_size',$id,'item_id'); $sizetext=""; foreach ($size_list as $size) { $sizetext .= $size['size']."\n"; } $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('master/addinmaster/update_item/view_general_item/1',$attributes); ?> <ul> <li> <label for="data">Item Name</label> <?php $data = array( 'name' => 'item_name', 'id' => 'item_name', 'class' =>'required', 'value' => $viewinfo->item_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Item Size (add new size in new row)</label> <?php $data = array( 'name' => 'item_size', 'id' => 'item_size', 'value' => $sizetext ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="data">Shelf Life (in days)</label> <?php $data = array( 'name' => 'item_shelf_life', 'id' => 'item_shelf_life', 'class' =>'required number', 'value' => $viewinfo->item_shelf_life ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Remind before (in Days)</label> <?php $data = array( 'name' => 'item_remind_before', 'id' => 'item_remind_before', 'class' =>'number', 'value' => $viewinfo->item_remind_before ); echo form_input($data).form_error($data); ?> <input type="hidden" name="tab_name" value="general_item"/> <input type="hidden" name="tab_id" value="<?=$id;?>"/> <input type="hidden" name="tab_field" value="item_id"/> <input type="hidden" name="resfunction" value="search_general_item"/> </li> <li> <label for="data">Alert?</label> <input type="checkbox" name="item_alert" <?php if($viewinfo->item_alert==1){echo "checked";}?> /> </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>