?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Training/ |
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/sgms/application/views/Training/add_training_proposal.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('training','viewintrainingsearch','search_training_proposal','view_training_proposal','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new training proposal</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('training/addintraining/insert_training_proposal/view_training_proposal/1',$attributes); $training_proposal_details = $this->mastermodel->getdatas('training_proposal_details','training_id'); $activities = $this->mastermodel->get_data('activity','2','activity_category_id'); $categories = $this->mastermodel->getdatas('expense_category','expense_category_id'); ?> <ul> <li> <label for="data">Project</label> <select name="activity_id" id="activity_id" class="required" onchange="get_training_code(this)" > <option value="">Select</option> <?php foreach($activities as $list) { ?> <option value="<?=$list['activity_id'];?>"><?=$list['activity_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">Training Code</label> <?php $data = array( 'name' => 'training_code', 'id' => 'training_code', 'class' => 'required', 'readonly' => 'true' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Training Title</label> <?php $data = array( 'name' => 'training_title', 'id' => 'training_title', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Training Date</label> <?php $data = array( 'name' => 'training_date', 'id' => 'training_date', 'class' =>'required calfocus' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data"> Trainer Name</label> <?php $data = array( 'name' => 'trainer', 'id' => 'trainer', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data"> Venue</label> <?php $data = array( 'name' => 'venue', 'id' => 'venue', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks' ); echo form_textarea($data).form_error($data); ?> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Expense Category</th> <th>Description</th> <th>Amount</th> <th width="10%"> <input type="button" style="width:70px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </th> </tr> <tr> <td> <select name="expense_category_id" id="expense_category_id"> <option value="">Select</option> <?php foreach($categories as $list) { ?> <option value="<?=$list['expense_category_id'];?>"><?=$list['expense_category_name'];?></option> <?php } ?> </select> </td> <td><textarea style="width:160px;" name="description"></textarea></td> <td><input type="text" class="auto small" name="amount" ></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> </li> <li> <input type="hidden" name="training_id" id="training_id" /> <input type="hidden" name="tab_name" value="training_proposal"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>