Mostly visual fixes. Added Addresses to Edit Enquiry

This commit is contained in:
Karl Cordes 2009-01-20 15:15:37 +11:00
parent 379fefbdfa
commit ddd4b6ebdd
30 changed files with 67 additions and 43 deletions

View file

@ -30,7 +30,6 @@ class CustomersController extends AppController {
if (!empty($this->data)) {
if($this->Customer->saveAll($this->data, array('validate'=>'first')) ) {
$newcustomerid = $this->Customer->id;
$this->Session->setFlash(__('The Customer has been saved', true));

View file

@ -32,7 +32,7 @@ class EnquiriesController extends AppController {
$states = $this->Enquiry->State->find('list');
$countries = $this->Enquiry->Country->find('list');
$principles = $this->Enquiry->Principle->find('list');
$principles = $this->Enquiry->Principle->find('list', array('order' => 'Principle.name asc'));
$statuses = $this->Enquiry->Status->find('list');
$user_id = $this->Auth->user('id');
$this->set(compact('user_id','users', 'customers', 'states', 'countries', 'principles', 'statuses'));
@ -237,6 +237,26 @@ class EnquiriesController extends AppController {
$principle = $this->Enquiry->Principle->findById($enquiry['Enquiry']['principle_id']);
$statuses = $this->Enquiry->Status->find('list');
$customerAddresses = $this->Enquiry->BillingAddress->find('all', array('conditions'=>array('BillingAddress.customer_id' => $customer['Customer']['id'])));
$this->set('billing_addresses', $customerAddresses);
$this->set('shipping_addresses', $customerAddresses);
/* Feels like an ugly hack. But it gets the desired effect and it will do for now */
if(isset($customerAddresses[0]['BillingAddress'])) {
foreach ($customerAddresses as $address) {
$i = $address['BillingAddress']['id'];
$billing_address_list[$i] = $address['BillingAddress']['address'].'<br>'.$address['BillingAddress']['city'].' '.$address['State']['name'].' '.$address['BillingAddress']['postcode'].'<br>'.up($address['Country']['name']).'<br><br>';
}
$this->set('billing_addresses_list', $billing_address_list);
$this->set('shipping_addresses_list', $billing_address_list);
}
else {
$this->set('billing_addresses_list', 'No Addresses exist for this Customer. Please add one');
$this->set('shipping_addresses_list', 'No Addresses exist for this Customer. Please add one');
}
$this->set(compact('enquiry', 'users','customer','contacts','state','country','principle','statuses', 'addresses'));
}
@ -251,5 +271,7 @@ class EnquiriesController extends AppController {
}
}
}
?>

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:7:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:7:"primary";}s:9:"parent_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:5:"model";a:4:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;}s:11:"foreign_key";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:5:"alias";a:4:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;}s:3:"lft";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:4:"rght";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:8:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:7:"address";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:4:"city";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:8:"state_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:10:"country_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:11:"customer_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:4:"type";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:8:"postcode";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:50;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:7:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:7:"primary";}s:9:"parent_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:5:"model";a:4:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;}s:11:"foreign_key";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:5:"alias";a:4:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;}s:3:"lft";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}s:4:"rght";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:10;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:7:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:7:"primary";}s:6:"aro_id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;s:3:"key";s:5:"index";}s:6:"aco_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:10;}s:7:"_create";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:2;}s:5:"_read";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:2;}s:7:"_update";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:2;}s:7:"_delete";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:2;}}

View file

@ -1,2 +1,2 @@
1232335884
a:9:{s:11:"customer_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:10:"first_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:9:"last_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"email";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"phone";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:3:"fax";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"notes";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}
1232423851
a:10:{s:11:"customer_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:10:"first_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:9:"last_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"email";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"phone";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:3:"fax";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"notes";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:6:"mobile";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:3:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:11:"currency_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:4:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:6:"symbol";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:5;}s:7:"iso4217";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;}}

View file

@ -1,2 +1,2 @@
1232335884
a:4:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:3:"abn";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}s:7:"created";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}
1232423851
a:4:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:3:"abn";a:4:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;}s:7:"created";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:16:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:7:"created";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:5:"title";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:7:"user_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:11:"customer_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:10:"contact_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:8:"state_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:10:"country_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:12:"principle_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:9:"status_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:8:"comments";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"principle_code";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;}s:3:"gst";a:4:{s:4:"type";s:7:"boolean";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:1;}s:18:"billing_address_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}s:19:"shipping_address_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}s:6:"posted";a:4:{s:4:"type";s:7:"boolean";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:1;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:2:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:8:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:4:"code";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:7:"address";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:4:"city";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"state";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:10:"country_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:11:"currency_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:5:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:10:"product_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:5:"title";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:11:"description";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:10:"cost_price";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:14:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:12:"principle_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:5:"title";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:11:"description";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:21:"principle_part_number";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:15:"cmc_part_number";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:14:"costprice_each";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"our_discount";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"packing_each";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:20:"shipping_weight_each";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:18:"shipping_cost_each";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:4:"duty";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:9:"target_gp";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"sellprice_each";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:31:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:10:"itemnumber";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;}s:6:"option";a:4:{s:4:"type";s:7:"boolean";s:4:"null";b:0;s:7:"default";s:1:"0";s:6:"length";i:1;}s:8:"quantity";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:9:"costprice";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:11:"currency_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;}s:11:"ourdiscount";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:7:"packing";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"shippingweight";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"shippingcost";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"exchangerate";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:4:"duty";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:7:"finance";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:4:"misc";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"grosssellprice";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"grossgpdollars";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:17:"grossgppercentage";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"netgpdollars";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"netgppercent";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:8:"targetgp";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:5:"title";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:500;}s:11:"description";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:17:"total_landed_cost";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:20:"fob_countryof_export";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:8:"quote_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:10:"product_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:8:"discount";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:14:"discountamount";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:18:"grosssellpriceeach";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:16:"netsellpriceeach";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:12:"netsellprice";a:4:{s:4:"type";s:5:"float";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:23:{i:0;s:4:"acos";i:1;s:9:"addresses";i:2;s:4:"aros";i:3;s:9:"aros_acos";i:4;s:13:"cake_sessions";i:5;s:8:"contacts";i:6;s:9:"countries";i:7;s:10:"currencies";i:8;s:9:"customers";i:9;s:9:"enquiries";i:10;s:6:"groups";i:11;s:12:"job_products";i:12;s:4:"jobs";i:13;s:9:"jobstatus";i:14;s:18:"principle_contacts";i:15;s:10:"principles";i:16;s:15:"product_options";i:17;s:8:"products";i:18;s:14:"quote_products";i:19;s:6:"quotes";i:20;s:6:"states";i:21;s:8:"statuses";i:22;s:5:"users";}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:11:{s:7:"created";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:8:"modified";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:10:"enquiry_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:50;}s:8:"revision";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}s:10:"first_page";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:11:"attachments";a:4:{s:4:"type";s:4:"text";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}s:13:"delivery_time";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:400;}s:13:"payment_terms";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:400;}s:10:"days_valid";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:5;}s:11:"date_issued";a:4:{s:4:"type";s:4:"date";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:4:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:9:"shortform";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:7:"enqform";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:3;}}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:2:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:8:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:8:"username";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:50;}s:8:"password";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:60;}s:10:"first_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:9:"last_name";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:5:"email";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:9:"job_title";a:4:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;}s:8:"group_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}

View file

@ -1,2 +1,2 @@
1232335884
1232423851
a:10:{s:4:"libs";a:1:{i:0;s:31:"/var/www/quotenik1.2/cake/libs/";}s:5:"model";a:1:{i:0;s:37:"/var/www/quotenik1.2/cake/libs/model/";}s:8:"behavior";a:1:{i:0;s:47:"/var/www/quotenik1.2/cake/libs/model/behaviors/";}s:10:"controller";a:1:{i:0;s:42:"/var/www/quotenik1.2/cake/libs/controller/";}s:9:"component";a:1:{i:0;s:53:"/var/www/quotenik1.2/cake/libs/controller/components/";}s:4:"view";a:1:{i:0;s:36:"/var/www/quotenik1.2/cake/libs/view/";}s:6:"helper";a:1:{i:0;s:44:"/var/www/quotenik1.2/cake/libs/view/helpers/";}s:4:"cake";a:1:{i:0;s:26:"/var/www/quotenik1.2/cake/";}s:6:"vendor";a:1:{i:0;s:29:"/var/www/quotenik1.2/vendors/";}s:5:"shell";a:1:{i:0;s:39:"/var/www/quotenik1.2/cake/console/libs/";}}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:1:{s:11:"LC_MESSAGES";a:2:{s:0:"";a:1:{s:7:"default";a:0:{}}s:5:"en-us";a:1:{s:7:"default";a:0:{}}}}

View file

@ -1,2 +1,2 @@
1232335885
1232423851
a:12:{s:30:"/var/www/quotenik1.2/cake/libs";a:24:{i:0;s:30:"/var/www/quotenik1.2/cake/libs";i:1;s:41:"/var/www/quotenik1.2/cake/libs/controller";i:2;s:52:"/var/www/quotenik1.2/cake/libs/controller/components";i:3;s:36:"/var/www/quotenik1.2/cake/libs/cache";i:4;s:36:"/var/www/quotenik1.2/cake/libs/model";i:5;s:46:"/var/www/quotenik1.2/cake/libs/model/behaviors";i:6;s:48:"/var/www/quotenik1.2/cake/libs/model/datasources";i:7;s:52:"/var/www/quotenik1.2/cake/libs/model/datasources/dbo";i:8;s:35:"/var/www/quotenik1.2/cake/libs/view";i:9;s:42:"/var/www/quotenik1.2/cake/libs/view/errors";i:10;s:41:"/var/www/quotenik1.2/cake/libs/view/pages";i:11;s:44:"/var/www/quotenik1.2/cake/libs/view/elements";i:12;s:50:"/var/www/quotenik1.2/cake/libs/view/elements/email";i:13;s:55:"/var/www/quotenik1.2/cake/libs/view/elements/email/text";i:14;s:55:"/var/www/quotenik1.2/cake/libs/view/elements/email/html";i:15;s:43:"/var/www/quotenik1.2/cake/libs/view/layouts";i:16;s:47:"/var/www/quotenik1.2/cake/libs/view/layouts/xml";i:17;s:46:"/var/www/quotenik1.2/cake/libs/view/layouts/js";i:18;s:49:"/var/www/quotenik1.2/cake/libs/view/layouts/email";i:19;s:54:"/var/www/quotenik1.2/cake/libs/view/layouts/email/text";i:20;s:54:"/var/www/quotenik1.2/cake/libs/view/layouts/email/html";i:21;s:47:"/var/www/quotenik1.2/cake/libs/view/layouts/rss";i:22;s:45:"/var/www/quotenik1.2/cake/libs/view/scaffolds";i:23;s:43:"/var/www/quotenik1.2/cake/libs/view/helpers";}s:36:"/var/www/quotenik1.2/cake/libs/model";a:4:{i:0;s:36:"/var/www/quotenik1.2/cake/libs/model";i:1;s:46:"/var/www/quotenik1.2/cake/libs/model/behaviors";i:2;s:48:"/var/www/quotenik1.2/cake/libs/model/datasources";i:3;s:52:"/var/www/quotenik1.2/cake/libs/model/datasources/dbo";}s:46:"/var/www/quotenik1.2/cake/libs/model/behaviors";a:1:{i:0;s:46:"/var/www/quotenik1.2/cake/libs/model/behaviors";}s:41:"/var/www/quotenik1.2/cake/libs/controller";a:2:{i:0;s:41:"/var/www/quotenik1.2/cake/libs/controller";i:1;s:52:"/var/www/quotenik1.2/cake/libs/controller/components";}s:52:"/var/www/quotenik1.2/cake/libs/controller/components";a:1:{i:0;s:52:"/var/www/quotenik1.2/cake/libs/controller/components";}s:35:"/var/www/quotenik1.2/cake/libs/view";a:16:{i:0;s:35:"/var/www/quotenik1.2/cake/libs/view";i:1;s:42:"/var/www/quotenik1.2/cake/libs/view/errors";i:2;s:41:"/var/www/quotenik1.2/cake/libs/view/pages";i:3;s:44:"/var/www/quotenik1.2/cake/libs/view/elements";i:4;s:50:"/var/www/quotenik1.2/cake/libs/view/elements/email";i:5;s:55:"/var/www/quotenik1.2/cake/libs/view/elements/email/text";i:6;s:55:"/var/www/quotenik1.2/cake/libs/view/elements/email/html";i:7;s:43:"/var/www/quotenik1.2/cake/libs/view/layouts";i:8;s:47:"/var/www/quotenik1.2/cake/libs/view/layouts/xml";i:9;s:46:"/var/www/quotenik1.2/cake/libs/view/layouts/js";i:10;s:49:"/var/www/quotenik1.2/cake/libs/view/layouts/email";i:11;s:54:"/var/www/quotenik1.2/cake/libs/view/layouts/email/text";i:12;s:54:"/var/www/quotenik1.2/cake/libs/view/layouts/email/html";i:13;s:47:"/var/www/quotenik1.2/cake/libs/view/layouts/rss";i:14;s:45:"/var/www/quotenik1.2/cake/libs/view/scaffolds";i:15;s:43:"/var/www/quotenik1.2/cake/libs/view/helpers";}s:43:"/var/www/quotenik1.2/cake/libs/view/helpers";a:1:{i:0;s:43:"/var/www/quotenik1.2/cake/libs/view/helpers";}s:36:"/var/www/quotenik1.2/app/controllers";a:2:{i:0;s:36:"/var/www/quotenik1.2/app/controllers";i:1;s:47:"/var/www/quotenik1.2/app/controllers/components";}s:47:"/var/www/quotenik1.2/app/controllers/components";a:1:{i:0;s:47:"/var/www/quotenik1.2/app/controllers/components";}s:31:"/var/www/quotenik1.2/app/models";a:3:{i:0;s:31:"/var/www/quotenik1.2/app/models";i:1;s:41:"/var/www/quotenik1.2/app/models/behaviors";i:2;s:43:"/var/www/quotenik1.2/app/models/datasources";}s:41:"/var/www/quotenik1.2/app/models/behaviors";a:1:{i:0;s:41:"/var/www/quotenik1.2/app/models/behaviors";}s:38:"/var/www/quotenik1.2/app/views/helpers";a:1:{i:0;s:38:"/var/www/quotenik1.2/app/views/helpers";}}

View file

@ -1,2 +1,2 @@
1232335885
a:6:{s:4:"Core";a:15:{s:6:"Router";s:41:"/var/www/quotenik1.2/cake/libs/router.php";s:9:"Component";s:55:"/var/www/quotenik1.2/cake/libs/controller/component.php";s:12:"Overloadable";s:47:"/var/www/quotenik1.2/cake/libs/overloadable.php";s:6:"Helper";s:46:"/var/www/quotenik1.2/cake/libs/view/helper.php";s:13:"ClassRegistry";s:49:"/var/www/quotenik1.2/cake/libs/class_registry.php";s:4:"View";s:44:"/var/www/quotenik1.2/cake/libs/view/view.php";s:10:"Controller";s:56:"/var/www/quotenik1.2/cake/libs/controller/controller.php";s:10:"Dispatcher";s:40:"/var/www/quotenik1.2/cake/dispatcher.php";s:17:"ConnectionManager";s:59:"/var/www/quotenik1.2/cake/libs/model/connection_manager.php";s:10:"Validation";s:45:"/var/www/quotenik1.2/cake/libs/validation.php";s:8:"Behavior";s:49:"/var/www/quotenik1.2/cake/libs/model/behavior.php";s:6:"String";s:41:"/var/www/quotenik1.2/cake/libs/string.php";s:5:"Model";s:46:"/var/www/quotenik1.2/cake/libs/model/model.php";s:4:"l10n";s:39:"/var/www/quotenik1.2/cake/libs/l10n.php";s:4:"i18n";s:39:"/var/www/quotenik1.2/cake/libs/i18n.php";}s:10:"Controller";a:2:{s:13:"AppController";s:60:"/var/www/quotenik1.2/cake/libs/controller/app_controller.php";s:19:"CustomersController";s:61:"/var/www/quotenik1.2/app/controllers/customers_controller.php";}s:9:"Component";a:3:{s:16:"SessionComponent";s:64:"/var/www/quotenik1.2/cake/libs/controller/components/session.php";s:13:"AuthComponent";s:61:"/var/www/quotenik1.2/cake/libs/controller/components/auth.php";s:23:"RequestHandlerComponent";s:72:"/var/www/quotenik1.2/cake/libs/controller/components/request_handler.php";}s:5:"Model";a:16:{s:8:"AppModel";s:50:"/var/www/quotenik1.2/cake/libs/model/app_model.php";s:8:"Customer";s:44:"/var/www/quotenik1.2/app/models/customer.php";s:7:"Address";s:43:"/var/www/quotenik1.2/app/models/address.php";s:5:"State";s:41:"/var/www/quotenik1.2/app/models/state.php";s:7:"Enquiry";s:43:"/var/www/quotenik1.2/app/models/enquiry.php";s:4:"User";s:40:"/var/www/quotenik1.2/app/models/user.php";s:5:"Group";s:41:"/var/www/quotenik1.2/app/models/group.php";s:7:"Contact";s:43:"/var/www/quotenik1.2/app/models/contact.php";s:7:"Country";s:43:"/var/www/quotenik1.2/app/models/country.php";s:8:"Currency";s:44:"/var/www/quotenik1.2/app/models/currency.php";s:9:"Principle";s:45:"/var/www/quotenik1.2/app/models/principle.php";s:7:"Product";s:43:"/var/www/quotenik1.2/app/models/product.php";s:13:"ProductOption";s:50:"/var/www/quotenik1.2/app/models/product_option.php";s:12:"QuoteProduct";s:49:"/var/www/quotenik1.2/app/models/quote_product.php";s:5:"Quote";s:41:"/var/www/quotenik1.2/app/models/quote.php";s:6:"Status";s:42:"/var/www/quotenik1.2/app/models/status.php";}s:8:"Behavior";a:2:{s:11:"AclBehavior";s:54:"/var/www/quotenik1.2/cake/libs/model/behaviors/acl.php";s:12:"TreeBehavior";s:55:"/var/www/quotenik1.2/cake/libs/model/behaviors/tree.php";}s:6:"Helper";a:6:{s:9:"AppHelper";s:58:"/var/www/quotenik1.2/cake/libs/view/helpers/app_helper.php";s:10:"HtmlHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/html.php";s:10:"FormHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/form.php";s:10:"TimeHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/time.php";s:16:"JavascriptHelper";s:58:"/var/www/quotenik1.2/cake/libs/view/helpers/javascript.php";s:13:"SessionHelper";s:55:"/var/www/quotenik1.2/cake/libs/view/helpers/session.php";}}
1232423851
a:6:{s:4:"Core";a:15:{s:6:"Router";s:41:"/var/www/quotenik1.2/cake/libs/router.php";s:9:"Component";s:55:"/var/www/quotenik1.2/cake/libs/controller/component.php";s:12:"Overloadable";s:47:"/var/www/quotenik1.2/cake/libs/overloadable.php";s:6:"Helper";s:46:"/var/www/quotenik1.2/cake/libs/view/helper.php";s:13:"ClassRegistry";s:49:"/var/www/quotenik1.2/cake/libs/class_registry.php";s:4:"View";s:44:"/var/www/quotenik1.2/cake/libs/view/view.php";s:10:"Controller";s:56:"/var/www/quotenik1.2/cake/libs/controller/controller.php";s:10:"Dispatcher";s:40:"/var/www/quotenik1.2/cake/dispatcher.php";s:17:"ConnectionManager";s:59:"/var/www/quotenik1.2/cake/libs/model/connection_manager.php";s:10:"Validation";s:45:"/var/www/quotenik1.2/cake/libs/validation.php";s:8:"Behavior";s:49:"/var/www/quotenik1.2/cake/libs/model/behavior.php";s:6:"String";s:41:"/var/www/quotenik1.2/cake/libs/string.php";s:5:"Model";s:46:"/var/www/quotenik1.2/cake/libs/model/model.php";s:4:"l10n";s:39:"/var/www/quotenik1.2/cake/libs/l10n.php";s:4:"i18n";s:39:"/var/www/quotenik1.2/cake/libs/i18n.php";}s:10:"Controller";a:2:{s:13:"AppController";s:60:"/var/www/quotenik1.2/cake/libs/controller/app_controller.php";s:18:"ContactsController";s:60:"/var/www/quotenik1.2/app/controllers/contacts_controller.php";}s:9:"Component";a:3:{s:16:"SessionComponent";s:64:"/var/www/quotenik1.2/cake/libs/controller/components/session.php";s:13:"AuthComponent";s:61:"/var/www/quotenik1.2/cake/libs/controller/components/auth.php";s:23:"RequestHandlerComponent";s:72:"/var/www/quotenik1.2/cake/libs/controller/components/request_handler.php";}s:5:"Model";a:16:{s:8:"AppModel";s:50:"/var/www/quotenik1.2/cake/libs/model/app_model.php";s:7:"Contact";s:43:"/var/www/quotenik1.2/app/models/contact.php";s:8:"Customer";s:44:"/var/www/quotenik1.2/app/models/customer.php";s:7:"Address";s:43:"/var/www/quotenik1.2/app/models/address.php";s:5:"State";s:41:"/var/www/quotenik1.2/app/models/state.php";s:7:"Enquiry";s:43:"/var/www/quotenik1.2/app/models/enquiry.php";s:4:"User";s:40:"/var/www/quotenik1.2/app/models/user.php";s:5:"Group";s:41:"/var/www/quotenik1.2/app/models/group.php";s:7:"Country";s:43:"/var/www/quotenik1.2/app/models/country.php";s:8:"Currency";s:44:"/var/www/quotenik1.2/app/models/currency.php";s:9:"Principle";s:45:"/var/www/quotenik1.2/app/models/principle.php";s:7:"Product";s:43:"/var/www/quotenik1.2/app/models/product.php";s:13:"ProductOption";s:50:"/var/www/quotenik1.2/app/models/product_option.php";s:12:"QuoteProduct";s:49:"/var/www/quotenik1.2/app/models/quote_product.php";s:5:"Quote";s:41:"/var/www/quotenik1.2/app/models/quote.php";s:6:"Status";s:42:"/var/www/quotenik1.2/app/models/status.php";}s:8:"Behavior";a:2:{s:11:"AclBehavior";s:54:"/var/www/quotenik1.2/cake/libs/model/behaviors/acl.php";s:12:"TreeBehavior";s:55:"/var/www/quotenik1.2/cake/libs/model/behaviors/tree.php";}s:6:"Helper";a:6:{s:9:"AppHelper";s:58:"/var/www/quotenik1.2/cake/libs/view/helpers/app_helper.php";s:10:"HtmlHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/html.php";s:10:"FormHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/form.php";s:16:"JavascriptHelper";s:58:"/var/www/quotenik1.2/cake/libs/view/helpers/javascript.php";s:10:"TimeHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/time.php";s:13:"SessionHelper";s:55:"/var/www/quotenik1.2/cake/libs/view/helpers/session.php";}}

View file

@ -498,3 +498,11 @@
2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/add.ctp, line 33]
2009-01-17 17:03:45 Notice: Notice (8): Undefined index: Contact in [APP/controllers/customers_controller.php, line 31]
2009-01-17 17:08:44 Notice: Notice (8): Undefined index: postcode in [APP/controllers/enquiries_controller.php, line 70]
2009-01-20 13:32:56 Notice: Notice (8): Uninitialized string offset: -1 in [APP/controllers/customers_controller.php, line 34]
2009-01-20 13:32:56 Notice: Notice (8): Uninitialized string offset: -2 in [APP/controllers/customers_controller.php, line 34]
2009-01-20 14:45:16 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/edit.ctp, line 14]
2009-01-20 14:45:16 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
2009-01-20 14:45:16 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/edit.ctp, line 15]
2009-01-20 14:45:43 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/edit.ctp, line 14]
2009-01-20 14:45:43 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
2009-01-20 14:45:43 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/edit.ctp, line 15]

View file

@ -446,3 +446,5 @@
2009-01-12 11:10:53 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
2009-01-12 11:30:38 Warning: Warning (512): <span style = "color:Red;text-align:left"><b>SQL Error:</b> 1048: Column 'abn' cannot be null</span> in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
2009-01-12 11:30:38 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:111) in [CORE/cake/libs/controller/controller.php, line 615]
2009-01-20 14:45:16 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
2009-01-20 14:45:43 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]

View file

@ -1,21 +1,12 @@
<div class="contacts view">
<h2><?php __('Contact: '. $contact['Contact']['first_name'].' '.$contact['Contact']['last_name']);?></h2>
<h2><?php __('Contact: '. $contact['Contact']['first_name'].' '.$contact['Contact']['last_name']);?><?php echo $html->image('system-users.png'); ?></h2>
<dl><?php $i = 0; $class = ' class="altrow"';?>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Customer'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $html->link($contact['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $contact['Customer']['id'])); ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $contact['Contact']['id']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $contact['Contact']['name']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('First Name'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $contact['Contact']['first_name']; ?>

View file

@ -25,7 +25,7 @@
</div>
<div class="related">
<h3><?php __('Contacts from this Customer');?></h3>
<h3><?php __('Contacts');?><?php echo $html->image('system-users.png'); ?></h3>
<?php if (!empty($customer['Contact'])):?>
<table cellpadding = "0" cellspacing = "0">
<tr>
@ -61,14 +61,14 @@
<div class="actions">
<ul>
<li><?php echo $html->link(__('New Contact for this Customer', true), array('controller'=> 'contacts', 'action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?> </li>
<li><?php echo $html->link(__('New Contact for this Customer', true), array('controller'=> 'contacts', 'action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?><?php echo $html->link($html->image('contact-new.png'), array('controller'=> 'contacts', 'action'=>'add_to_customer/customerid:'.$customer['Customer']['id']), null, null, false); ?> </li>
</ul>
</div>
</div>
<div class="related">
<h3><?php __('Addresses for this Customer');?></h3>
<h3><?php __('Addresses');?></h3>
<?php if (!empty($customer['Address'])) {
echo $this->element('address_table', $addresses);
}
@ -83,7 +83,7 @@
</div>
</div>
<div class="related">
<h3><?php __('Enquiries from this Customer');?></h3>
<h3><?php __('Enquiries');?></h3>
<?php if (!empty($customer['Enquiry'])) {
echo $this->element('enquiry_table', $enquiries);
}

View file

@ -11,6 +11,8 @@
echo $form->input('State.name', array('label'=>'State','readonly'=>'readonly', 'value'=>$state['State']['name']));
echo $form->input('Country.name', array('label'=>'Country','readonly'=>'readonly', 'value'=>$country['Country']['name']));
echo $form->input('gst', array('label' => 'Is GST Applicable', 'options' => array('1' => 'Yes', '0' => 'No')));
echo $form->input('billing_address_id', array('div' => 'addressradio', 'legend' => 'Billing Address', 'options' => $billing_addresses_list, 'type' => 'radio'));
echo $form->input('shipping_address_id', array('div' => 'addressradio','legend' => 'Shipping Address', 'options' => $shipping_addresses_list, 'type' => 'radio'));
echo $form->input('status_id');
echo $form->input('comments');
echo $form->input('posted', array('label' => 'This quote been sent hard copy via Post'));