diff --git a/application/controllers/requisitionlist.php b/application/controllers/requisitionlist.php index 788a0886..0c7773b5 100644 --- a/application/controllers/requisitionlist.php +++ b/application/controllers/requisitionlist.php @@ -35,6 +35,7 @@ class requisitionlist extends BaseController $this->loadViews("requisitionlist", $this->global, NULL); } + function pageNotFound() { diff --git a/application/controllers/requisitionlistapproval.php b/application/controllers/requisitionlistapproval.php new file mode 100644 index 00000000..97eb3491 --- /dev/null +++ b/application/controllers/requisitionlistapproval.php @@ -0,0 +1,55 @@ +load->model('purchaseorder_model'); + + $this->load->library('session'); + $this->load->library('form_validation'); + + $this->isLoggedIn(); + } + + /** + * This function used to load the first screen of the user + */ + public function index() + { + $this->global['pageTitle'] = 'Siddharth : Requisition Approval List'; + + + $this->loadViews("requisitionlistapproval", $this->global, NULL); + + } + + function requisitionlistapproval() + { + $this->global['pageTitle'] = 'Siddharth : Requisition Approval List'; + + $this->loadViews("requisitionlistapproval", $this->global, NULL); + } + + function pageNotFound() + { + $this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found'; + + $this->loadViews("404", $this->global, NULL, NULL); + } +} + +?> \ No newline at end of file diff --git a/application/logs/log-2017-04-24.php b/application/logs/log-2017-04-24.php index 84e42028..313ae8a9 100644 --- a/application/logs/log-2017-04-24.php +++ b/application/logs/log-2017-04-24.php @@ -10,3 +10,7 @@ ERROR - 2017-04-24 07:31:29 --> Severity: Notice --> Undefined index: PayOn C:\ ERROR - 2017-04-24 07:57:35 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 ERROR - 2017-04-24 07:57:35 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 ERROR - 2017-04-24 07:57:35 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 +ERROR - 2017-04-24 08:42:59 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 +ERROR - 2017-04-24 08:42:59 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 +ERROR - 2017-04-24 08:42:59 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 +ERROR - 2017-04-24 08:42:59 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 79 diff --git a/application/logs/log-2017-04-26.php b/application/logs/log-2017-04-26.php new file mode 100644 index 00000000..2fc0f3f0 --- /dev/null +++ b/application/logs/log-2017-04-26.php @@ -0,0 +1,3 @@ + + +ERROR - 2017-04-26 06:23:53 --> Severity: Notice --> Undefined property: stdClass::$userId C:\xampp\htdocs\siddharth_application\application\views\POlist.php 71 diff --git a/application/logs/log-2017-04-27.php b/application/logs/log-2017-04-27.php new file mode 100644 index 00000000..7fc2cb91 --- /dev/null +++ b/application/logs/log-2017-04-27.php @@ -0,0 +1,27 @@ + + +ERROR - 2017-04-27 08:18:50 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. + C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:18:50 --> Unable to connect to the database +ERROR - 2017-04-27 08:32:06 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:32:06 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:32:07 --> Unable to connect to the database +ERROR - 2017-04-27 08:32:21 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:32:21 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:32:21 --> Unable to connect to the database +ERROR - 2017-04-27 08:36:41 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:36:41 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:36:41 --> Unable to connect to the database +ERROR - 2017-04-27 08:55:16 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. + C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 08:55:16 --> Unable to connect to the database +ERROR - 2017-04-27 08:55:23 --> Severity: Notice --> Undefined property: stdClass::$userId C:\xampp\htdocs\siddharth_application\application\views\POlist.php 71 +ERROR - 2017-04-27 09:02:49 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlist' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:03:35 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlist' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:04:51 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlist' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:05:05 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlist' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:05:45 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlist' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:06:27 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'requisitionlistapproval' does not have a method 'index' C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php 360 +ERROR - 2017-04-27 09:13:15 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. + C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2017-04-27 09:13:15 --> Unable to connect to the database diff --git a/application/third_party/dompdf/lib/fonts/log.htm b/application/third_party/dompdf/lib/fonts/log.htm index a7fe565d..09d431cf 100644 --- a/application/third_party/dompdf/lib/fonts/log.htm +++ b/application/third_party/dompdf/lib/fonts/log.htm @@ -1 +1 @@ -2,048 KB 323.2479 ms
\ No newline at end of file +2,048 KB 505.0690 ms
\ No newline at end of file diff --git a/application/views/importpo.php b/application/views/importpo.php index 225189e4..04e3f8ab 100644 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -164,7 +164,7 @@ endforeach; } - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'required="true"'); ?> diff --git a/application/views/includes/header.php b/application/views/includes/header.php index 33f27656..34e8c407 100644 --- a/application/views/includes/header.php +++ b/application/views/includes/header.php @@ -22,6 +22,7 @@ + @@ -80,6 +81,10 @@ } .box-header{padding:20px ! important} + + select{ + width: 100%; + padding: 2%;} @@ -221,7 +226,7 @@ { ?>
  • - Requisition + Requisition Approval
  • Purchase Order form -
  • - - - Service Purchase Order - -
  • -
  • - - - Import Purchase Order - -
  • + .table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {border: 1px solid #333;} +
    -
    +

    Purchase Order

    +
    +
    -
    +
    'Requistion No'); //print_r( $options); @@ -28,13 +50,13 @@ endforeach; } - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' , 'required="true"' ,'multiple="true"'); ?>
    - +
    'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); @@ -44,16 +66,23 @@
    -
    + +
    -
    +
    +
    -
    +
    'Supplier'); //print_r( $options); @@ -68,12 +97,13 @@ endforeach; } - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'required="true"'); ?>
    -
    + +
    -
    - +
    + +
    + 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
    +
    +
    +
    'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); @@ -99,9 +138,11 @@
    - + + -
    - + @@ -529,7 +1372,7 @@
    'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); echo form_input($data); ?>
    diff --git a/application/views/requisitionform.php b/application/views/requisitionform.php index 89e5f369..6650d710 100644 --- a/application/views/requisitionform.php +++ b/application/views/requisitionform.php @@ -6,57 +6,57 @@
    -
    +

    Requisition Form

    -
    - 'Select Request Type'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; +
    + 'Select Request Type'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - ?> - -
    + endforeach; + } + + echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + + ?> + +
    -
    - 'Select Request By'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; +
    + 'Select Request By'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - - ?> - -
    + endforeach; + } + + echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + + + ?> + +
    @@ -89,7 +89,7 @@
    -
    +
    'Cost Center Name'); //print_r( $options); @@ -144,7 +144,7 @@
    -
    +
    'Material Code'); //print_r( $options); @@ -176,7 +176,7 @@
    -
    +
    'UOM'); //print_r( $options); @@ -207,7 +207,7 @@
    -
    +
    'Low / High / Medium'); //print_r( $options); diff --git a/application/views/requisitionlist.php b/application/views/requisitionlist.php index f4e7c9da..c04626ae 100644 --- a/application/views/requisitionlist.php +++ b/application/views/requisitionlist.php @@ -1,102 +1,83 @@
    -
    -

    Requisition List

    +
    +

    Requisition List

    -
    - -
    - 'Select Request Type'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - ?> - -
    -
    - -
    - 'Select Request Type'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + +
    + 'Select Department Name'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - ?> - -
    -
    -
    - -
    - 'Select Request Type'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + endforeach; + } + + echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - endforeach; - } - - echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); - - ?> - -
    + ?> + +
    -
    - -
    - 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
    +
    + +
    + 'Select Status'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + + ?> + +
    +
    + +
    +
    + +
    + 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
    +
    +
    + +
    + 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
    -
    - -
    - 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
    @@ -108,6 +89,156 @@

    + + +
     R NoRequisition No Item Name Quantity UOM
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    S NoItem CodeItem DescriptionUOMQuantity
    1 R001Wasted SandTon100
    2 R002ResinLiter200
    + +
    + +
    + +
    + + +
    +
    + +
    @@ -117,45 +248,33 @@
    - - - - - - + + + - - - - - - - + + + + - - - - - - - + + + + - - - - - - - + + + + diff --git a/application/views/requisitionlistapproval.php b/application/views/requisitionlistapproval.php new file mode 100644 index 00000000..540b5fa5 --- /dev/null +++ b/application/views/requisitionlistapproval.php @@ -0,0 +1,260 @@ + +
    + + +
    + +
    +

    Requisition Approval List

    +
    +
    +
    +
    + +
    + 'Select Status'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"'); + + ?> + +
    +
    + +
    +
    + +
    + 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
    +
    +
    + +
    + 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
    +
    +
    +
    +
    +
    + +
    +
    + + + +

    + + +
      Requisition NumberMaterial NameQuantityDepartmentRequested DateStatusPriorityRequisition DateStatus
     1001Waste SandTon100HighNo Change12/3/2017Pending
     2002ResinLitre50HighChange25/4/2017Pending
     3003ResinLitre100HighChange39/4/2017Pending
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    S NoItem CodeItem DescriptionUOMQuantity
    1 R001Wasted SandTon100
    2 R002ResinLiter200
    + +
    + +
    + +
    + + +
    +
    + + + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     Requisition NumberRequisition DateStatus
     12/3/2017Pending
     25/4/2017Pending
     39/4/2017Pending
    + + +
    + + + +
    +
    +
    +
    + +
    +
    \ No newline at end of file