diff --git a/application/controllers/purchaseorderform.php b/application/controllers/purchaseorderform.php index d0449774..ce63c541 100644 --- a/application/controllers/purchaseorderform.php +++ b/application/controllers/purchaseorderform.php @@ -39,24 +39,14 @@ class purchaseorderform extends BaseController $this->loadViews("Purchaseorder", $this->global, NULL); } - function servicepo() + function alternatepo() { - $this->global['pageTitle'] = 'Siddharth : Service PO'; + $this->global['pageTitle'] = 'Siddharth : Alternate PO'; - $this->loadViews("servicepo", $this->global, NULL); - - } - function importpo() - { - - - - $this->global['pageTitle'] = 'Siddharth : Import PO'; - - $this->loadViews("importpo", $this->global, NULL); + $this->loadViews("alterpurchaseorder", $this->global, NULL); } diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php new file mode 100644 index 00000000..79053462 --- /dev/null +++ b/application/views/alterpurchaseorder.php @@ -0,0 +1,584 @@ + + +
+ + +
+ +
+

Alternate Purchase Order

+
+ +
+
+
+
+ +
+ 'Request Type'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' , 'required="true"' ,'multiple="true"'); + + ?> +
+
+
+ +
+ 'Department Name'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' , 'required="true"' ,'multiple="true"'); + + ?> +
+
+
+ +
+ 'Cost Center Name'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + 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'); + echo form_input($data); + ?> +
+
+
+
+
+ +
+ 'SupplierName'); + //print_r( $options); + + if(!empty($POType)) + { + foreach ($SupplierName as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + 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'); + echo form_input($data); + ?> +
+
+
+ +
+ 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+
+
+
+ +
+ +
+
+ + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 SNoItem NameQuantityUOMRateTax %Total
 1001Waste SandTon100HighNo Change
 2002ResinLitre50HighChange
 3003ResinLitre100HighChange
+
+ +
+ 'Comments','value' => set_value('Comments'),'id'=>'Comments', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+
+ +
+ 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true' ,'readonly' => 'true'); + echo form_input($data); + ?> +
+
+
+ + + +
+ +
+
+
+ +
\ No newline at end of file diff --git a/application/views/includes/header.php b/application/views/includes/header.php index 34e8c407..bdd76fc3 100644 --- a/application/views/includes/header.php +++ b/application/views/includes/header.php @@ -295,6 +295,12 @@ Purchase Order form +
  • + + + Alternate Purchase Order + +