updated code

This commit is contained in:
saravanakumar_kandasami 2017-05-10 19:04:07 +05:30
parent 7ca468b955
commit 743cffffd6
4 changed files with 35 additions and 73 deletions

View File

@ -19,9 +19,9 @@ class requisitionform extends BaseController
parent::__construct();
$this->load->model('requistion_model');
$this->load->library('session');
$this->load->library('form_validation');
$this->load->library('session');
$this->load->library('form_validation');
$this->load->library('pagination');
$this->isLoggedIn();
}
/**

View File

@ -0,0 +1,6 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-05-10 13:16:23 --> Severity: Notice --> Undefined variable: searchText C:\xampp\htdocs\siddharth_application\application\views\requisitionlisting.php 36
ERROR - 2017-05-10 13:17:54 --> Severity: Notice --> Undefined variable: searchText C:\xampp\htdocs\siddharth_application\application\views\requisitionlisting.php 36
ERROR - 2017-05-10 13:18:59 --> Severity: Notice --> Undefined variable: searchText C:\xampp\htdocs\siddharth_application\application\views\requisitionlisting.php 36
ERROR - 2017-05-10 13:19:59 --> Severity: Notice --> Undefined variable: searchText C:\xampp\htdocs\siddharth_application\application\views\requisitionlisting.php 36

View File

@ -15,8 +15,6 @@ $(function() {
maxDate :new Date(year+3,1,1),
dateFormat: 'yy', changeYear: true,
});
$("#EditYear").datepicker({
minDate : new Date(year-SIAStartYear,1,1),
@ -24,7 +22,6 @@ $(function() {
dateFormat: 'yy', changeYear: true,
});
//$('#selectDistriList').multiSelect();
@ -45,24 +42,17 @@ $(function() {
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Siddharth Industries - Add Cost List</center>
</h1>
</section>
<center>Siddharth Industries - Add Cost List</center>
</h1>
</section>
<section class="content">
<div style="text-align:right;">
<a href="<?php echo base_url() ?>costListing" class="btn btn-info" value="Back">Back</a>
</div>
<br>
<br>
<div class="row">
<!-- left column -->
<div class="col-md-12">
<div class="col-md-12">
<div class="box box-primary">
<!-- form start -->

View File

@ -23,48 +23,25 @@
</div>
<div class="col-md-3">
<label>Request Type</label>
<div>
<?php
$options = array("-1"=>'Select Request Type');
//print_r( $options);
if(!empty($RequestType))
{
foreach ($RequestType as $RID):
<div class="form-group">
$options[$RID->ConfigValue] = $RID->ConfigValue;
endforeach;
}
echo form_dropdown('RequestType', $options,set_value('ConfigValue'),'id="RequestType"' ,'class = "form-control select2"','required="true"','disabled=disabled');
?>
<?php
$data = array('name' => 'RequestType','value' => set_value('ConfigValue'),'id'=>'RequestTypee', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="col-md-3">
<label>Requested By</label>
<div>
<?php
$options = array("-1"=>'Select Requested By');
//print_r( $options);
if(!empty($EmpList))
{
foreach ($EmpList as $EID):
$options[$EID->EmpID] = $EID->EmpID.' '.' - '.' '.$EID->FirstName.' . '.' '.$EID->LastName;
endforeach;
}
echo form_dropdown('EmpID', $options,set_value('EmpID'),'id="EmpID"' ,'class = "form-control"','disabled=disabled');
?>
<div class="form-group">
<?php
$data = array('name' => 'EmpID','value' => set_value('EmpID'),'id'=>'EmpID', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
@ -91,26 +68,15 @@
<div class="col-md-3">
<label>Cost Center Name</label>
<div>
<?php
$options = array("-1"=>'Select Cost Center Name');
//print_r( $options);
if(!empty($Cost))
{
foreach ($Cost as $SID):
// echo $SID->ConfigValue;
$Budget[$SID->CostCenterCode] = $SID->CostCenterCode;
endforeach;
}
echo form_dropdown('CostCenter', $options,set_value('CostCenter'),'id="CostCenter"' ,'class = "form-control"', 'disabled=disabled');
?>
<div class="form-group">
<?php
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-3">
<label>Available Budget Amount</label>
<div class="form-group">