?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/www/savoyglobal.net/sgms/application/views/Master/edit_activity.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_activity','view_activity','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating project</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('master/addinmaster/update/view_activity/1',$attributes); $activity_categories=$this->mastermodel->getdatas('activity_category','activity_category_id'); ?> <ul> <li> <label for="data">Project</label> <?php $data = array( 'name' => 'activity_name', 'id' => 'activity_name', 'class' => 'required', 'value' => $viewinfo->activity_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Type of Activity</label> <select name="activity_category_id" id="activity_category_id" class="required" onchange="get_activity_code(this);"> <option value="">Select</option> <?php foreach($activity_categories as $list) { ?> <option value="<?=$list['activity_category_id'];?>" <?php if($list['activity_category_id']==$viewinfo->activity_category_id){echo "selected";} ?>><?=$list['activity_category_name'];?></option> <?php } ?> </select> </li> <li> <li> <label for="data">Project Code</label> <?php $data = array( 'name' => 'activity_code', 'id' => 'activity_code', 'class' =>'required', 'value' => $viewinfo->activity_code, 'readonly' => 'true' ); echo form_input($data).form_error($data); ?> <input type="hidden" name="tab_name" value="activity"/> <input type="hidden" name="tab_id" value="<?=$id;?>"/> <input type="hidden" name="tab_field" value="activity_id"/> <input type="hidden" name="resfunction" value="search_activity"/> </li> <li><label for="submit"> </label> <button type="submit" id="submit" class="clickimage"onclick="addformdata('validateform')">Update</button> </li> </ul> <?php echo form_close();?> </fieldset>