diff --git a/application/controllers/assetdetails.php b/application/controllers/assetdetails.php index f9ce432f..4b8a2117 100644 --- a/application/controllers/assetdetails.php +++ b/application/controllers/assetdetails.php @@ -129,7 +129,7 @@ class assetdetails extends BaseController $this->session->set_flashdata('error', 'Asset Not Create'); } - redirect('assetdetails/assetListing'); + redirect('assetListing'); } } @@ -198,7 +198,7 @@ class assetdetails extends BaseController $SupplierName = $this->input->post('SupplierName'); $DateOfPurchase = $this->input->post('DateOfPurchase'); $DateOfCommission = $this->input->post('DateOfCommission'); - $Createdby = $this->input->post('Createdby'); + $Createdby = $this->input->post('Createdby'); $AssetValue = $this->input->post('AssetValue'); $asset = array(); @@ -218,8 +218,8 @@ class assetdetails extends BaseController { $this->session->set_flashdata('error', 'Asset updation failed'); } - echo $asset; - // redirect('assetListing'); + //echo success; + redirect('assetListing'); } } diff --git a/application/views/addasset.php b/application/views/addasset.php index 46185754..8b18a628 100644 --- a/application/views/addasset.php +++ b/application/views/addasset.php @@ -93,7 +93,7 @@
- +
@@ -103,7 +103,7 @@
- + +
diff --git a/application/views/addsupplier.php b/application/views/addsupplier.php index 74baa8b3..1f49a230 100644 --- a/application/views/addsupplier.php +++ b/application/views/addsupplier.php @@ -83,7 +83,7 @@
- +
@@ -126,18 +126,21 @@
- + + -
@@ -170,7 +173,7 @@ @@ -310,5 +313,12 @@ function validatenumbers() { } } - + function Validate() +{ +if($("option:selected", $("#PaymentTerms")).val() == '0') + { + alert('Please Select Payment Terms'); + return (true); + } +} diff --git a/application/views/editOldRawmaterial.php b/application/views/editOldRawmaterial.php index 8eec53f3..a90bd796 100644 --- a/application/views/editOldRawmaterial.php +++ b/application/views/editOldRawmaterial.php @@ -56,7 +56,7 @@ if(!empty($userRecords))
- +
diff --git a/application/views/editOldasset.php b/application/views/editOldasset.php index 79d48e81..444ca810 100644 --- a/application/views/editOldasset.php +++ b/application/views/editOldasset.php @@ -9,11 +9,9 @@ $User = ''; $SupplierName = ''; $DateOfPurchase = ''; $DateOfCommission = ''; +$CreatedDate = ''; $AssetValue = ''; $Createdby = ''; - - - if(!empty($asset)) { foreach ($asset as $uf) @@ -21,27 +19,21 @@ if(!empty($asset)) $Asset_Code = $uf->Asset_Code; $Asset_Name = $uf->Asset_Name; $Description = $uf->Description; - $Department = $uf->Department; + $Department = $uf->Department; $Location = $uf->Location; $User = $uf->User; $SupplierName = $uf->SupplierName; $DateOfPurchase = $uf->DateOfPurchase; $DateOfCommission = $uf->DateOfCommission; - $Createdby = $uf->Createdby; + $CreatedDate = $uf->CreatedDate; $AssetValue = $uf->AssetValue; - + $Createdby = $uf->Createdby; } } ?> -
@@ -49,11 +41,12 @@ function demo(){
Asset Details
+
- Back + Back

@@ -65,42 +58,34 @@ function demo(){
-

Edit Asset Details

+

Edit Asset Details

-
+
-
- - - - -
+ + +
- -
+
-
- +
-
-
- - -
+
+
+
-
- - +
-
- -
-
+
+ +
-
- +
-
- -
-
-
-
- - -
-
-
- - +
+
+ + +
+
+ + -
-
-
+
+
max= value="" class="form-control" placeholder="" />
- -
+
max= value="" class="form-control" placeholder="" />
-
+
- - - + + + +
- -
-
+
+
+ +
- +
+ load->helper('form'); + $error = $this->session->flashdata('error'); + if($error) + { + ?> +
+ + session->flashdata('error'); ?> +
+ + session->flashdata('success'); + if($success) + { + ?> +
+ + session->flashdata('success'); ?> +
+ + +
+
+ ', '
'); ?> +
+
+
+ +
+
+ \ No newline at end of file diff --git a/application/views/editOldsupplier.php b/application/views/editOldsupplier.php index 5bfa5b76..cf5573a2 100644 --- a/application/views/editOldsupplier.php +++ b/application/views/editOldsupplier.php @@ -201,14 +201,14 @@ function demo(){

Before - name="PaymentDays" value="before"/> + name="PaymentDays" value="before"/>
After - name="PaymentDays" value="after"/> + name="PaymentDays" value="after"/>