?
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_document.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('training','viewintrainingsearch','search_document','view_document','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new document</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('training/addintraining/insert_document/view_document/1',$attributes); $document_categories=$this->mastermodel->getdatas('document_category','document_category_id'); ?> <ul> <li> <label for="data">Document Name</label> <?php $data = array( 'name' => 'document_name', 'id' => 'document_name', 'class' =>'required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Category Name</label> <select name="document_category_id" id="document_category_id" class="required" > <option value="">Select</option> <?php foreach($document_categories as $list) { ?> <option value="<?=$list['document_category_id'];?>"><?=$list['document_category_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">Document Description</label> <?php $data = array( 'name' => 'description', 'id' => 'description' ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="data">Upload Document</label> <?php $data = array( 'name' => 'file_path', 'id' => 'file_path' ); echo form_upload($data).form_error($data); ?> </li> <li> <input type="hidden" name="tab_name" value="document"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>