commit 4b7d215043734ff5fa15054d18d08d54cabdb8ed
Author: Karl Cordes
Date: Tue Jan 13 16:13:18 2009 +1100
First Commit using git. Will stick with git. it seems good
diff --git a/.gnitignore b/.gnitignore
new file mode 100644
index 00000000..d91ebbc5
--- /dev/null
+++ b/.gnitignore
@@ -0,0 +1,3 @@
+#Ignore the Cakephp TMP directory for git
+
+tmp/*
diff --git a/.htaccess b/.htaccess
new file mode 100755
index 00000000..0ed8662e
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,5 @@
+
+ RewriteEngine on
+ RewriteRule ^$ webroot/ [L]
+ RewriteRule (.*) webroot/$1 [L]
+
\ No newline at end of file
diff --git a/config/.svn/entries b/config/.svn/entries
new file mode 100644
index 00000000..d130c9eb
--- /dev/null
+++ b/config/.svn/entries
@@ -0,0 +1,143 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/config
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+sql
+dir
+
+acl.ini.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+985e3a01685c8cef2c470a2aa7ee92e1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+bootstrap.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+4196fa2a89340a4041ed083215015ed3
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+inflections.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+4257dd92e3504b9e1d63ea502c072a74
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+routes.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+53c001d646954a05f380b68028d384bb
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+database.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+704cb764549dffba59a346b40b31bec1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+database.php.default
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+69e77d1c201d7f7fa1e6e968a934852f
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+core.php
+file
+
+
+
+
+2008-12-23T08:10:26.000000Z
+4bed714e7cf7455ce6b2082a6db3a694
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7749
+
diff --git a/config/.svn/format b/config/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/config/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/config/.svn/prop-base/acl.ini.php.svn-base b/config/.svn/prop-base/acl.ini.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/acl.ini.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/bootstrap.php.svn-base b/config/.svn/prop-base/bootstrap.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/bootstrap.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/core.php.svn-base b/config/.svn/prop-base/core.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/core.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/database.php.default.svn-base b/config/.svn/prop-base/database.php.default.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/database.php.default.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/database.php.svn-base b/config/.svn/prop-base/database.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/database.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/inflections.php.svn-base b/config/.svn/prop-base/inflections.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/inflections.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/prop-base/routes.php.svn-base b/config/.svn/prop-base/routes.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/.svn/prop-base/routes.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/.svn/text-base/acl.ini.php.svn-base b/config/.svn/text-base/acl.ini.php.svn-base
new file mode 100644
index 00000000..6f21fc0a
--- /dev/null
+++ b/config/.svn/text-base/acl.ini.php.svn-base
@@ -0,0 +1,76 @@
+;
+; SVN FILE: $Id: acl.ini.php 6311 2008-01-02 06:33:52Z phpnut $
+;/**
+; * Short description for file.
+; *
+; *
+; * PHP versions 4 and 5
+; *
+; * CakePHP(tm) : Rapid Development Framework
+; * Copyright 2005-2008, Cake Software Foundation, Inc.
+; * 1785 E. Sahara Avenue, Suite 490-204
+; * Las Vegas, Nevada 89104
+; *
+; * Licensed under The MIT License
+; * Redistributions of files must retain the above copyright notice.
+; *
+; * @filesource
+; * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+; * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+; * @package cake
+; * @subpackage cake.app.config
+; * @since CakePHP(tm) v 0.10.0.1076
+; * @version $Revision: 6311 $
+; * @modifiedby $LastChangedBy: phpnut $
+; * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+; * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+; */
+
+; acl.ini.php - Cake ACL Configuration
+; ---------------------------------------------------------------------
+; Use this file to specify user permissions.
+; aco = access control object (something in your application)
+; aro = access request object (something requesting access)
+;
+; User records are added as follows:
+;
+; [uid]
+; groups = group1, group2, group3
+; allow = aco1, aco2, aco3
+; deny = aco4, aco5, aco6
+;
+; Group records are added in a similar manner:
+;
+; [gid]
+; allow = aco1, aco2, aco3
+; deny = aco4, aco5, aco6
+;
+; The allow, deny, and groups sections are all optional.
+; NOTE: groups names *cannot* ever be the same as usernames!
+;
+; ACL permissions are checked in the following order:
+; 1. Check for user denies (and DENY if specified)
+; 2. Check for user allows (and ALLOW if specified)
+; 3. Gather user's groups
+; 4. Check group denies (and DENY if specified)
+; 5. Check group allows (and ALLOW if specified)
+; 6. If no aro, aco, or group information is found, DENY
+;
+; ---------------------------------------------------------------------
+
+;-------------------------------------
+;Users
+;-------------------------------------
+
+[username-goes-here]
+groups = group1, group2
+deny = aco1, aco2
+allow = aco3, aco4
+
+;-------------------------------------
+;Groups
+;-------------------------------------
+
+[groupname-goes-here]
+deny = aco5, aco6
+allow = aco7, aco8
\ No newline at end of file
diff --git a/config/.svn/text-base/bootstrap.php.svn-base b/config/.svn/text-base/bootstrap.php.svn-base
new file mode 100644
index 00000000..6b9502fc
--- /dev/null
+++ b/config/.svn/text-base/bootstrap.php.svn-base
@@ -0,0 +1,46 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.10.8.2117
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ *
+ * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php is loaded
+ * This is an application wide file to load any function that is not used within a class define.
+ * You can also use this to include or require any files in your application.
+ *
+ */
+/**
+ * The settings below can be used to set additional paths to models, views and controllers.
+ * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
+ *
+ * $modelPaths = array('full path to models', 'second full path to models', 'etc...');
+ * $viewPaths = array('this path to views', 'second full path to views', 'etc...');
+ * $controllerPaths = array('this path to controllers', 'second full path to controllers', 'etc...');
+ *
+ */
+//EOF
+?>
\ No newline at end of file
diff --git a/config/.svn/text-base/core.php.svn-base b/config/.svn/text-base/core.php.svn-base
new file mode 100644
index 00000000..eda01742
--- /dev/null
+++ b/config/.svn/text-base/core.php.svn-base
@@ -0,0 +1,229 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * CakePHP Debug Level:
+ *
+ * Production Mode:
+ * 0: No error messages, errors, or warnings shown. Flash messages redirect.
+ *
+ * Development Mode:
+ * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
+ * 2: As in 1, but also with full debug messages and SQL output.
+ * 3: As in 2, but also with full controller dump.
+ *
+ * In production mode, flash messages redirect after a time interval.
+ * In development mode, you need to click the flash message to continue.
+ */
+ Configure::write('debug', 1);
+/**
+ * Application wide charset encoding
+ */
+ Configure::write('App.encoding', 'UTF-8');
+/**
+ * To configure CakePHP *not* to use mod_rewrite and to
+ * use CakePHP pretty URLs, remove these .htaccess
+ * files:
+ *
+ * /.htaccess
+ * /app/.htaccess
+ * /app/webroot/.htaccess
+ *
+ * And uncomment the App.baseUrl below:
+ */
+ //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
+/**
+ * Uncomment the define below to use CakePHP admin routes.
+ *
+ * The value of the define determines the name of the route
+ * and its associated controller actions:
+ *
+ * 'admin' -> admin_index() and /admin/controller/index
+ * 'superuser' -> superuser_index() and /superuser/controller/index
+ */
+ //Configure::write('Routing.admin', 'admin');
+
+/**
+ * Turn off all caching application-wide.
+ *
+ */
+ //Configure::write('Cache.disable', true);
+/**
+ * Enable cache checking.
+ *
+ * If set to true, for view caching you must still use the controller
+ * var $cacheAction inside your controllers to define caching settings.
+ * You can either set it controller-wide by setting var $cacheAction = true,
+ * or in each action using $this->cacheAction = true.
+ *
+ */
+ //Configure::write('Cache.check', true);
+/**
+ * Defines the default error type when using the log() function. Used for
+ * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
+ */
+ define('LOG_ERROR', 2);
+/**
+ * The preferred session handling method. Valid values:
+ *
+ * 'php' Uses settings defined in your php.ini.
+ * 'cake' Saves session files in CakePHP's /tmp directory.
+ * 'database' Uses CakePHP's database sessions.
+ *
+ * To define a custom session handler, save it at /app/config/.php.
+ * Set the value of 'Session.save' to to utilize it in CakePHP.
+ *
+ * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
+ *
+ */
+ Configure::write('Session.save', 'database');
+/**
+ * The name of the table used to store CakePHP database sessions.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ *
+ * The table name set here should *not* include any table prefix defined elsewhere.
+ */
+ Configure::write('Session.table', 'cake_sessions');
+/**
+ * The DATABASE_CONFIG::$var to use for database session handling.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ */
+ Configure::write('Session.database', 'default');
+/**
+ * The name of CakePHP's session cookie.
+ */
+ Configure::write('Session.cookie', 'QUOTENIK');
+/**
+ * Session time out time (in seconds).
+ * Actual value depends on 'Security.level' setting.
+ */
+ Configure::write('Session.timeout', '324');
+/**
+ * If set to false, sessions are not automatically started.
+ */
+ Configure::write('Session.start', true);
+/**
+ * When set to false, HTTP_USER_AGENT will not be checked
+ * in the session
+ */
+ Configure::write('Session.checkAgent', true);
+/**
+ * The level of CakePHP security. The session timeout time defined
+ * in 'Session.timeout' is multiplied according to the settings here.
+ * Valid values:
+ *
+ * 'high' Session timeout in 'Session.timeout' x 10
+ * 'medium' Session timeout in 'Session.timeout' x 100
+ * 'low' Session timeout in 'Session.timeout' x 300
+ *
+ * CakePHP session IDs are also regenerated between requests if
+ * 'Security.level' is set to 'high'.
+ */
+ Configure::write('Security.level', 'medium');
+/**
+ * A random string used in security hashing methods.
+ */
+ Configure::write('Security.salt', 'uiPxR3MzVXAID5zucbxLdxP4TX33buPoCWZr4JfroGoaE57UQC');
+/**
+ * Compress CSS output by removing comments, whitespace, repeating tags, etc.
+ * This requires a/var/cache directory to be writable by the web server for caching.
+ * and /vendors/csspp/csspp.php
+ *
+ * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
+ */
+ //Configure::write('Asset.filter.css', 'css.php');
+/**
+ * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
+ * output, and setting the config below to the name of the script.
+ *
+ * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
+ */
+ //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
+/**
+ * The classname and database used in CakePHP's
+ * access control lists.
+ */
+ Configure::write('Acl.classname', 'DbAcl');
+ Configure::write('Acl.database', 'default');
+/**
+ *
+ * Cache Engine Configuration
+ * Default settings provided below
+ *
+ * File storage engine.
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'File', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
+ * 'prefix' => 'cake_', //[optional] prefix every cache file with this string
+ * 'lock' => false, //[optional] use file locking
+ * 'serialize' => true, [optional]
+ * ));
+ *
+ *
+ * APC (http://pecl.php.net/package/APC)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Apc', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * ));
+ *
+ * Xcache (http://xcache.lighttpd.net/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Xcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'user' => 'user', //user from xcache.admin.user settings
+ * 'password' => 'password', //plaintext password (xcache.admin.pass)
+ * ));
+ *
+ *
+ * Memcache (http://www.danga.com/memcached/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Memcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'servers' => array(
+ * '127.0.0.1:11211' // localhost, default port 11211
+ * ), //[optional]
+ * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
+ * ));
+ *
+ */
+ Cache::config('default', array('engine' => 'File'));
+?>
diff --git a/config/.svn/text-base/database.php.default.svn-base b/config/.svn/text-base/database.php.default.svn-base
new file mode 100644
index 00000000..40af9763
--- /dev/null
+++ b/config/.svn/text-base/database.php.default.svn-base
@@ -0,0 +1,103 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * In this file you set up your database connection details.
+ *
+ * @package cake
+ * @subpackage cake.config
+ */
+/**
+ * Database configuration class.
+ * You can specify multiple configurations for production, development and testing.
+ *
+ * driver => The name of a supported driver; valid options are as follows:
+ * mysql - MySQL 4 & 5,
+ * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
+ * sqlite - SQLite (PHP5 only),
+ * postgres - PostgreSQL 7 and higher,
+ * mssql - Microsoft SQL Server 2000 and higher,
+ * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
+ * oracle - Oracle 8 and higher
+ * firebird - Firebird/Interbase
+ * sybase - Sybase ASE
+ * adodb-[drivername] - ADOdb interface wrapper (see below),
+ * pear-[drivername] - PEAR::DB wrapper
+ *
+ * You can add custom database drivers (or override existing drivers) by adding the
+ * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
+ * where 'x' is the name of the database.
+ *
+ * persistent => true / false
+ * Determines whether or not the database should use a persistent connection
+ *
+ * connect =>
+ * ADOdb set the connect to one of these
+ * (http://phplens.com/adodb/supported.databases.html) and
+ * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
+ * For all other databases, this setting is deprecated.
+ *
+ * host =>
+ * the host you connect to the database. To add a socket or port number, use 'port' => #
+ *
+ * prefix =>
+ * Uses the given prefix for all the tables in this database. This setting can be overridden
+ * on a per-table basis with the Model::$tablePrefix property.
+ *
+ * schema =>
+ * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
+ * 'public', DB2 defaults to empty.
+ *
+ * encoding =>
+ * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
+ * database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
+ *
+ */
+class DATABASE_CONFIG {
+
+ var $default = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'database_name',
+ 'prefix' => '',
+ );
+
+ var $test = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'test_database_name',
+ 'prefix' => '',
+ );
+}
+?>
\ No newline at end of file
diff --git a/config/.svn/text-base/database.php.svn-base b/config/.svn/text-base/database.php.svn-base
new file mode 100644
index 00000000..7d855734
--- /dev/null
+++ b/config/.svn/text-base/database.php.svn-base
@@ -0,0 +1,103 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * In this file you set up your database connection details.
+ *
+ * @package cake
+ * @subpackage cake.config
+ */
+/**
+ * Database configuration class.
+ * You can specify multiple configurations for production, development and testing.
+ *
+ * driver => The name of a supported driver; valid options are as follows:
+ * mysql - MySQL 4 & 5,
+ * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
+ * sqlite - SQLite (PHP5 only),
+ * postgres - PostgreSQL 7 and higher,
+ * mssql - Microsoft SQL Server 2000 and higher,
+ * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
+ * oracle - Oracle 8 and higher
+ * firebird - Firebird/Interbase
+ * sybase - Sybase ASE
+ * adodb-[drivername] - ADOdb interface wrapper (see below),
+ * pear-[drivername] - PEAR::DB wrapper
+ *
+ * You can add custom database drivers (or override existing drivers) by adding the
+ * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
+ * where 'x' is the name of the database.
+ *
+ * persistent => true / false
+ * Determines whether or not the database should use a persistent connection
+ *
+ * connect =>
+ * ADOdb set the connect to one of these
+ * (http://phplens.com/adodb/supported.databases.html) and
+ * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
+ * For all other databases, this setting is deprecated.
+ *
+ * host =>
+ * the host you connect to the database. To add a socket or port number, use 'port' => #
+ *
+ * prefix =>
+ * Uses the given prefix for all the tables in this database. This setting can be overridden
+ * on a per-table basis with the Model::$tablePrefix property.
+ *
+ * schema =>
+ * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
+ * 'public', DB2 defaults to empty.
+ *
+ * encoding =>
+ * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
+ * database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
+ *
+ */
+class DATABASE_CONFIG {
+
+ var $default = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'quotenik',
+ 'password' => 'quotenik',
+ 'database' => 'quotenik',
+ 'prefix' => '',
+ );
+
+ var $test = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'test_database_name',
+ 'prefix' => '',
+ );
+}
+?>
diff --git a/config/.svn/text-base/inflections.php.svn-base b/config/.svn/text-base/inflections.php.svn-base
new file mode 100644
index 00000000..8dca879b
--- /dev/null
+++ b/config/.svn/text-base/inflections.php.svn-base
@@ -0,0 +1,72 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 1.0.0.2312
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * This is a key => value array of regex used to match words.
+ * If key matches then the value is returned.
+ *
+ * $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice');
+ */
+ $pluralRules = array();
+/**
+ * This is a key only array of plural words that should not be inflected.
+ * Notice the last comma
+ *
+ * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox');
+ */
+ $uninflectedPlural = array();
+/**
+ * This is a key => value array of plural irregular words.
+ * If key matches then the value is returned.
+ *
+ * $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers')
+ */
+ $irregularPlural = array();
+/**
+ * This is a key => value array of regex used to match words.
+ * If key matches then the value is returned.
+ *
+ * $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i')
+ */
+ $singularRules = array();
+/**
+ * This is a key only array of singular words that should not be inflected.
+ * You should not have to change this value below if you do change it use same format
+ * as the $uninflectedPlural above.
+ */
+ $uninflectedSingular = $uninflectedPlural;
+/**
+ * This is a key => value array of singular irregular words.
+ * Most of the time this will be a reverse of the above $irregularPlural array
+ * You should not have to change this value below if you do change it use same format
+ *
+ * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother')
+ */
+ $irregularSingular = array_flip($irregularPlural);
+?>
\ No newline at end of file
diff --git a/config/.svn/text-base/routes.php.svn-base b/config/.svn/text-base/routes.php.svn-base
new file mode 100644
index 00000000..766503b7
--- /dev/null
+++ b/config/.svn/text-base/routes.php.svn-base
@@ -0,0 +1,47 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Here, we are connecting '/' (base path) to controller called 'Pages',
+ * its action called 'display', and we pass a param to select the view file
+ * to use (in this case, /app/views/pages/home.thtml)...
+ */
+ //Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
+Router::connect('/', array('controller' => 'enquiries', 'action' => 'index'));
+/**
+ * ...and connect the rest of 'Pages' controller's urls.
+ */
+ Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
+/**
+ * Then we connect url '/test' to our test controller. This is helpful in
+ * developement.
+ */
+ Router::connect('/tests', array('controller' => 'tests', 'action' => 'index'));
+?>
diff --git a/config/acl.ini.php b/config/acl.ini.php
new file mode 100755
index 00000000..6f21fc0a
--- /dev/null
+++ b/config/acl.ini.php
@@ -0,0 +1,76 @@
+;
+; SVN FILE: $Id: acl.ini.php 6311 2008-01-02 06:33:52Z phpnut $
+;/**
+; * Short description for file.
+; *
+; *
+; * PHP versions 4 and 5
+; *
+; * CakePHP(tm) : Rapid Development Framework
+; * Copyright 2005-2008, Cake Software Foundation, Inc.
+; * 1785 E. Sahara Avenue, Suite 490-204
+; * Las Vegas, Nevada 89104
+; *
+; * Licensed under The MIT License
+; * Redistributions of files must retain the above copyright notice.
+; *
+; * @filesource
+; * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+; * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+; * @package cake
+; * @subpackage cake.app.config
+; * @since CakePHP(tm) v 0.10.0.1076
+; * @version $Revision: 6311 $
+; * @modifiedby $LastChangedBy: phpnut $
+; * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+; * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+; */
+
+; acl.ini.php - Cake ACL Configuration
+; ---------------------------------------------------------------------
+; Use this file to specify user permissions.
+; aco = access control object (something in your application)
+; aro = access request object (something requesting access)
+;
+; User records are added as follows:
+;
+; [uid]
+; groups = group1, group2, group3
+; allow = aco1, aco2, aco3
+; deny = aco4, aco5, aco6
+;
+; Group records are added in a similar manner:
+;
+; [gid]
+; allow = aco1, aco2, aco3
+; deny = aco4, aco5, aco6
+;
+; The allow, deny, and groups sections are all optional.
+; NOTE: groups names *cannot* ever be the same as usernames!
+;
+; ACL permissions are checked in the following order:
+; 1. Check for user denies (and DENY if specified)
+; 2. Check for user allows (and ALLOW if specified)
+; 3. Gather user's groups
+; 4. Check group denies (and DENY if specified)
+; 5. Check group allows (and ALLOW if specified)
+; 6. If no aro, aco, or group information is found, DENY
+;
+; ---------------------------------------------------------------------
+
+;-------------------------------------
+;Users
+;-------------------------------------
+
+[username-goes-here]
+groups = group1, group2
+deny = aco1, aco2
+allow = aco3, aco4
+
+;-------------------------------------
+;Groups
+;-------------------------------------
+
+[groupname-goes-here]
+deny = aco5, aco6
+allow = aco7, aco8
\ No newline at end of file
diff --git a/config/bootstrap.php b/config/bootstrap.php
new file mode 100755
index 00000000..6b9502fc
--- /dev/null
+++ b/config/bootstrap.php
@@ -0,0 +1,46 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.10.8.2117
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ *
+ * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php is loaded
+ * This is an application wide file to load any function that is not used within a class define.
+ * You can also use this to include or require any files in your application.
+ *
+ */
+/**
+ * The settings below can be used to set additional paths to models, views and controllers.
+ * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
+ *
+ * $modelPaths = array('full path to models', 'second full path to models', 'etc...');
+ * $viewPaths = array('this path to views', 'second full path to views', 'etc...');
+ * $controllerPaths = array('this path to controllers', 'second full path to controllers', 'etc...');
+ *
+ */
+//EOF
+?>
\ No newline at end of file
diff --git a/config/core.php b/config/core.php
new file mode 100755
index 00000000..eda01742
--- /dev/null
+++ b/config/core.php
@@ -0,0 +1,229 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * CakePHP Debug Level:
+ *
+ * Production Mode:
+ * 0: No error messages, errors, or warnings shown. Flash messages redirect.
+ *
+ * Development Mode:
+ * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
+ * 2: As in 1, but also with full debug messages and SQL output.
+ * 3: As in 2, but also with full controller dump.
+ *
+ * In production mode, flash messages redirect after a time interval.
+ * In development mode, you need to click the flash message to continue.
+ */
+ Configure::write('debug', 1);
+/**
+ * Application wide charset encoding
+ */
+ Configure::write('App.encoding', 'UTF-8');
+/**
+ * To configure CakePHP *not* to use mod_rewrite and to
+ * use CakePHP pretty URLs, remove these .htaccess
+ * files:
+ *
+ * /.htaccess
+ * /app/.htaccess
+ * /app/webroot/.htaccess
+ *
+ * And uncomment the App.baseUrl below:
+ */
+ //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
+/**
+ * Uncomment the define below to use CakePHP admin routes.
+ *
+ * The value of the define determines the name of the route
+ * and its associated controller actions:
+ *
+ * 'admin' -> admin_index() and /admin/controller/index
+ * 'superuser' -> superuser_index() and /superuser/controller/index
+ */
+ //Configure::write('Routing.admin', 'admin');
+
+/**
+ * Turn off all caching application-wide.
+ *
+ */
+ //Configure::write('Cache.disable', true);
+/**
+ * Enable cache checking.
+ *
+ * If set to true, for view caching you must still use the controller
+ * var $cacheAction inside your controllers to define caching settings.
+ * You can either set it controller-wide by setting var $cacheAction = true,
+ * or in each action using $this->cacheAction = true.
+ *
+ */
+ //Configure::write('Cache.check', true);
+/**
+ * Defines the default error type when using the log() function. Used for
+ * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
+ */
+ define('LOG_ERROR', 2);
+/**
+ * The preferred session handling method. Valid values:
+ *
+ * 'php' Uses settings defined in your php.ini.
+ * 'cake' Saves session files in CakePHP's /tmp directory.
+ * 'database' Uses CakePHP's database sessions.
+ *
+ * To define a custom session handler, save it at /app/config/.php.
+ * Set the value of 'Session.save' to to utilize it in CakePHP.
+ *
+ * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
+ *
+ */
+ Configure::write('Session.save', 'database');
+/**
+ * The name of the table used to store CakePHP database sessions.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ *
+ * The table name set here should *not* include any table prefix defined elsewhere.
+ */
+ Configure::write('Session.table', 'cake_sessions');
+/**
+ * The DATABASE_CONFIG::$var to use for database session handling.
+ *
+ * 'Session.save' must be set to 'database' in order to utilize this constant.
+ */
+ Configure::write('Session.database', 'default');
+/**
+ * The name of CakePHP's session cookie.
+ */
+ Configure::write('Session.cookie', 'QUOTENIK');
+/**
+ * Session time out time (in seconds).
+ * Actual value depends on 'Security.level' setting.
+ */
+ Configure::write('Session.timeout', '324');
+/**
+ * If set to false, sessions are not automatically started.
+ */
+ Configure::write('Session.start', true);
+/**
+ * When set to false, HTTP_USER_AGENT will not be checked
+ * in the session
+ */
+ Configure::write('Session.checkAgent', true);
+/**
+ * The level of CakePHP security. The session timeout time defined
+ * in 'Session.timeout' is multiplied according to the settings here.
+ * Valid values:
+ *
+ * 'high' Session timeout in 'Session.timeout' x 10
+ * 'medium' Session timeout in 'Session.timeout' x 100
+ * 'low' Session timeout in 'Session.timeout' x 300
+ *
+ * CakePHP session IDs are also regenerated between requests if
+ * 'Security.level' is set to 'high'.
+ */
+ Configure::write('Security.level', 'medium');
+/**
+ * A random string used in security hashing methods.
+ */
+ Configure::write('Security.salt', 'uiPxR3MzVXAID5zucbxLdxP4TX33buPoCWZr4JfroGoaE57UQC');
+/**
+ * Compress CSS output by removing comments, whitespace, repeating tags, etc.
+ * This requires a/var/cache directory to be writable by the web server for caching.
+ * and /vendors/csspp/csspp.php
+ *
+ * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
+ */
+ //Configure::write('Asset.filter.css', 'css.php');
+/**
+ * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
+ * output, and setting the config below to the name of the script.
+ *
+ * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
+ */
+ //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
+/**
+ * The classname and database used in CakePHP's
+ * access control lists.
+ */
+ Configure::write('Acl.classname', 'DbAcl');
+ Configure::write('Acl.database', 'default');
+/**
+ *
+ * Cache Engine Configuration
+ * Default settings provided below
+ *
+ * File storage engine.
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'File', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
+ * 'prefix' => 'cake_', //[optional] prefix every cache file with this string
+ * 'lock' => false, //[optional] use file locking
+ * 'serialize' => true, [optional]
+ * ));
+ *
+ *
+ * APC (http://pecl.php.net/package/APC)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Apc', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * ));
+ *
+ * Xcache (http://xcache.lighttpd.net/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Xcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'user' => 'user', //user from xcache.admin.user settings
+ * 'password' => 'password', //plaintext password (xcache.admin.pass)
+ * ));
+ *
+ *
+ * Memcache (http://www.danga.com/memcached/)
+ *
+ * Cache::config('default', array(
+ * 'engine' => 'Memcache', //[required]
+ * 'duration'=> 3600, //[optional]
+ * 'probability'=> 100, //[optional]
+ * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
+ * 'servers' => array(
+ * '127.0.0.1:11211' // localhost, default port 11211
+ * ), //[optional]
+ * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
+ * ));
+ *
+ */
+ Cache::config('default', array('engine' => 'File'));
+?>
diff --git a/config/database.php b/config/database.php
new file mode 100755
index 00000000..7d855734
--- /dev/null
+++ b/config/database.php
@@ -0,0 +1,103 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * In this file you set up your database connection details.
+ *
+ * @package cake
+ * @subpackage cake.config
+ */
+/**
+ * Database configuration class.
+ * You can specify multiple configurations for production, development and testing.
+ *
+ * driver => The name of a supported driver; valid options are as follows:
+ * mysql - MySQL 4 & 5,
+ * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
+ * sqlite - SQLite (PHP5 only),
+ * postgres - PostgreSQL 7 and higher,
+ * mssql - Microsoft SQL Server 2000 and higher,
+ * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
+ * oracle - Oracle 8 and higher
+ * firebird - Firebird/Interbase
+ * sybase - Sybase ASE
+ * adodb-[drivername] - ADOdb interface wrapper (see below),
+ * pear-[drivername] - PEAR::DB wrapper
+ *
+ * You can add custom database drivers (or override existing drivers) by adding the
+ * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
+ * where 'x' is the name of the database.
+ *
+ * persistent => true / false
+ * Determines whether or not the database should use a persistent connection
+ *
+ * connect =>
+ * ADOdb set the connect to one of these
+ * (http://phplens.com/adodb/supported.databases.html) and
+ * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
+ * For all other databases, this setting is deprecated.
+ *
+ * host =>
+ * the host you connect to the database. To add a socket or port number, use 'port' => #
+ *
+ * prefix =>
+ * Uses the given prefix for all the tables in this database. This setting can be overridden
+ * on a per-table basis with the Model::$tablePrefix property.
+ *
+ * schema =>
+ * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
+ * 'public', DB2 defaults to empty.
+ *
+ * encoding =>
+ * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
+ * database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
+ *
+ */
+class DATABASE_CONFIG {
+
+ var $default = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'quotenik',
+ 'password' => 'quotenik',
+ 'database' => 'quotenik',
+ 'prefix' => '',
+ );
+
+ var $test = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'test_database_name',
+ 'prefix' => '',
+ );
+}
+?>
diff --git a/config/database.php.default b/config/database.php.default
new file mode 100755
index 00000000..40af9763
--- /dev/null
+++ b/config/database.php.default
@@ -0,0 +1,103 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * In this file you set up your database connection details.
+ *
+ * @package cake
+ * @subpackage cake.config
+ */
+/**
+ * Database configuration class.
+ * You can specify multiple configurations for production, development and testing.
+ *
+ * driver => The name of a supported driver; valid options are as follows:
+ * mysql - MySQL 4 & 5,
+ * mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
+ * sqlite - SQLite (PHP5 only),
+ * postgres - PostgreSQL 7 and higher,
+ * mssql - Microsoft SQL Server 2000 and higher,
+ * db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
+ * oracle - Oracle 8 and higher
+ * firebird - Firebird/Interbase
+ * sybase - Sybase ASE
+ * adodb-[drivername] - ADOdb interface wrapper (see below),
+ * pear-[drivername] - PEAR::DB wrapper
+ *
+ * You can add custom database drivers (or override existing drivers) by adding the
+ * appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
+ * where 'x' is the name of the database.
+ *
+ * persistent => true / false
+ * Determines whether or not the database should use a persistent connection
+ *
+ * connect =>
+ * ADOdb set the connect to one of these
+ * (http://phplens.com/adodb/supported.databases.html) and
+ * append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
+ * For all other databases, this setting is deprecated.
+ *
+ * host =>
+ * the host you connect to the database. To add a socket or port number, use 'port' => #
+ *
+ * prefix =>
+ * Uses the given prefix for all the tables in this database. This setting can be overridden
+ * on a per-table basis with the Model::$tablePrefix property.
+ *
+ * schema =>
+ * For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
+ * 'public', DB2 defaults to empty.
+ *
+ * encoding =>
+ * For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
+ * database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
+ *
+ */
+class DATABASE_CONFIG {
+
+ var $default = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'database_name',
+ 'prefix' => '',
+ );
+
+ var $test = array(
+ 'driver' => 'mysql',
+ 'persistent' => false,
+ 'host' => 'localhost',
+ 'login' => 'user',
+ 'password' => 'password',
+ 'database' => 'test_database_name',
+ 'prefix' => '',
+ );
+}
+?>
\ No newline at end of file
diff --git a/config/inflections.php b/config/inflections.php
new file mode 100755
index 00000000..8dca879b
--- /dev/null
+++ b/config/inflections.php
@@ -0,0 +1,72 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 1.0.0.2312
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * This is a key => value array of regex used to match words.
+ * If key matches then the value is returned.
+ *
+ * $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice');
+ */
+ $pluralRules = array();
+/**
+ * This is a key only array of plural words that should not be inflected.
+ * Notice the last comma
+ *
+ * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox');
+ */
+ $uninflectedPlural = array();
+/**
+ * This is a key => value array of plural irregular words.
+ * If key matches then the value is returned.
+ *
+ * $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers')
+ */
+ $irregularPlural = array();
+/**
+ * This is a key => value array of regex used to match words.
+ * If key matches then the value is returned.
+ *
+ * $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i')
+ */
+ $singularRules = array();
+/**
+ * This is a key only array of singular words that should not be inflected.
+ * You should not have to change this value below if you do change it use same format
+ * as the $uninflectedPlural above.
+ */
+ $uninflectedSingular = $uninflectedPlural;
+/**
+ * This is a key => value array of singular irregular words.
+ * Most of the time this will be a reverse of the above $irregularPlural array
+ * You should not have to change this value below if you do change it use same format
+ *
+ * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother')
+ */
+ $irregularSingular = array_flip($irregularPlural);
+?>
\ No newline at end of file
diff --git a/config/routes.php b/config/routes.php
new file mode 100755
index 00000000..766503b7
--- /dev/null
+++ b/config/routes.php
@@ -0,0 +1,47 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Here, we are connecting '/' (base path) to controller called 'Pages',
+ * its action called 'display', and we pass a param to select the view file
+ * to use (in this case, /app/views/pages/home.thtml)...
+ */
+ //Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
+Router::connect('/', array('controller' => 'enquiries', 'action' => 'index'));
+/**
+ * ...and connect the rest of 'Pages' controller's urls.
+ */
+ Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
+/**
+ * Then we connect url '/test' to our test controller. This is helpful in
+ * developement.
+ */
+ Router::connect('/tests', array('controller' => 'tests', 'action' => 'index'));
+?>
diff --git a/config/sql/.svn/entries b/config/sql/.svn/entries
new file mode 100644
index 00000000..0b8189ce
--- /dev/null
+++ b/config/sql/.svn/entries
@@ -0,0 +1,106 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/config/sql
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+db_acl.sql
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+a79945e062def1cc48de57cbfc7d232c
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+sessions.sql
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+bd22cb83c7bd43731601d8e91677b604
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+i18n.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+b311c2a5ca71046a2dc7a1692065b93f
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+db_acl.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+3a063596c133ecb58d5a063570a71bb1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+sessions.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+f08506dc167cc95a53f83df9f729bbeb
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+i18n.sql
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+3a815ac9bc998800a19bf12015beaac1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/config/sql/.svn/format b/config/sql/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/config/sql/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/config/sql/.svn/prop-base/db_acl.php.svn-base b/config/sql/.svn/prop-base/db_acl.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/db_acl.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/prop-base/db_acl.sql.svn-base b/config/sql/.svn/prop-base/db_acl.sql.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/db_acl.sql.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/prop-base/i18n.php.svn-base b/config/sql/.svn/prop-base/i18n.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/i18n.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/prop-base/i18n.sql.svn-base b/config/sql/.svn/prop-base/i18n.sql.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/i18n.sql.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/prop-base/sessions.php.svn-base b/config/sql/.svn/prop-base/sessions.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/sessions.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/prop-base/sessions.sql.svn-base b/config/sql/.svn/prop-base/sessions.sql.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/config/sql/.svn/prop-base/sessions.sql.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/config/sql/.svn/text-base/db_acl.php.svn-base b/config/sql/.svn/text-base/db_acl.php.svn-base
new file mode 100644
index 00000000..7146a70d
--- /dev/null
+++ b/config/sql/.svn/text-base/db_acl.php.svn-base
@@ -0,0 +1,81 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create DbAcl
+ *
+ */
+class DbAclSchema extends CakeSchema {
+
+ var $name = 'DbAcl';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $acos = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type'=>'string', 'null' => true),
+ 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type'=>'string', 'null' => true),
+ 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+ var $aros = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type'=>'string', 'null' => true),
+ 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type'=>'string', 'null' => true),
+ 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+ var $aros_acos = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
+ '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/.svn/text-base/db_acl.sql.svn-base b/config/sql/.svn/text-base/db_acl.sql.svn-base
new file mode 100644
index 00000000..36f70fa5
--- /dev/null
+++ b/config/sql/.svn/text-base/db_acl.sql.svn-base
@@ -0,0 +1,42 @@
+# $Id: db_acl.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE acos (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ parent_id INTEGER(10) DEFAULT NULL,
+ model VARCHAR(255) DEFAULT '',
+ foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
+ alias VARCHAR(255) DEFAULT '',
+ lft INTEGER(10) DEFAULT NULL,
+ rght INTEGER(10) DEFAULT NULL,
+ PRIMARY KEY (id)
+);
+
+CREATE TABLE aros_acos (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ aro_id INTEGER(10) UNSIGNED NOT NULL,
+ aco_id INTEGER(10) UNSIGNED NOT NULL,
+ _create CHAR(2) NOT NULL DEFAULT 0,
+ _read CHAR(2) NOT NULL DEFAULT 0,
+ _update CHAR(2) NOT NULL DEFAULT 0,
+ _delete CHAR(2) NOT NULL DEFAULT 0,
+ PRIMARY KEY(id)
+);
+
+CREATE TABLE aros (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ parent_id INTEGER(10) DEFAULT NULL,
+ model VARCHAR(255) DEFAULT '',
+ foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
+ alias VARCHAR(255) DEFAULT '',
+ lft INTEGER(10) DEFAULT NULL,
+ rght INTEGER(10) DEFAULT NULL,
+ PRIMARY KEY (id)
+);
diff --git a/config/sql/.svn/text-base/i18n.php.svn-base b/config/sql/.svn/text-base/i18n.php.svn-base
new file mode 100644
index 00000000..f8a2bbb5
--- /dev/null
+++ b/config/sql/.svn/text-base/i18n.php.svn-base
@@ -0,0 +1,58 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create i18n
+ *
+ */
+class i18nSchema extends CakeSchema {
+
+ var $name = 'i18n';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $i18n = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
+ 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
+ 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
+ 'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/.svn/text-base/i18n.sql.svn-base b/config/sql/.svn/text-base/i18n.sql.svn-base
new file mode 100644
index 00000000..d3567f78
--- /dev/null
+++ b/config/sql/.svn/text-base/i18n.sql.svn-base
@@ -0,0 +1,28 @@
+# $Id: i18n.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE i18n (
+ id int(10) NOT NULL auto_increment,
+ locale varchar(6) NOT NULL,
+ model varchar(255) NOT NULL,
+ foreign_key int(10) NOT NULL,
+ field varchar(255) NOT NULL,
+ content mediumtext,
+ PRIMARY KEY (id),
+# UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
+# INDEX I18N_LOCALE_ROW(locale, model, foreign_key),
+# INDEX I18N_LOCALE_MODEL(locale, model),
+# INDEX I18N_FIELD(model, foreign_key, field),
+# INDEX I18N_ROW(model, foreign_key),
+ INDEX locale (locale),
+ INDEX model (model),
+ INDEX row_id (foreign_key),
+ INDEX field (field)
+);
diff --git a/config/sql/.svn/text-base/sessions.php.svn-base b/config/sql/.svn/text-base/sessions.php.svn-base
new file mode 100644
index 00000000..a9381c74
--- /dev/null
+++ b/config/sql/.svn/text-base/sessions.php.svn-base
@@ -0,0 +1,55 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create Sessions
+ *
+ */
+class SessionsSchema extends CakeSchema {
+
+ var $name = 'Sessions';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $cake_sessions = array(
+ 'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
+ 'data' => array('type'=>'text', 'null' => true, 'default' => NULL),
+ 'expires' => array('type'=>'integer', 'null' => true, 'default' => NULL),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/.svn/text-base/sessions.sql.svn-base b/config/sql/.svn/text-base/sessions.sql.svn-base
new file mode 100644
index 00000000..23a19257
--- /dev/null
+++ b/config/sql/.svn/text-base/sessions.sql.svn-base
@@ -0,0 +1,16 @@
+# $Id: sessions.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE cake_sessions (
+ id varchar(255) NOT NULL default '',
+ data text,
+ expires int(11) default NULL,
+ PRIMARY KEY (id)
+);
\ No newline at end of file
diff --git a/config/sql/db_acl.php b/config/sql/db_acl.php
new file mode 100755
index 00000000..7146a70d
--- /dev/null
+++ b/config/sql/db_acl.php
@@ -0,0 +1,81 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create DbAcl
+ *
+ */
+class DbAclSchema extends CakeSchema {
+
+ var $name = 'DbAcl';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $acos = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type'=>'string', 'null' => true),
+ 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type'=>'string', 'null' => true),
+ 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+ var $aros = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type'=>'string', 'null' => true),
+ 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type'=>'string', 'null' => true),
+ 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+ var $aros_acos = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
+ '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/db_acl.sql b/config/sql/db_acl.sql
new file mode 100755
index 00000000..36f70fa5
--- /dev/null
+++ b/config/sql/db_acl.sql
@@ -0,0 +1,42 @@
+# $Id: db_acl.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE acos (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ parent_id INTEGER(10) DEFAULT NULL,
+ model VARCHAR(255) DEFAULT '',
+ foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
+ alias VARCHAR(255) DEFAULT '',
+ lft INTEGER(10) DEFAULT NULL,
+ rght INTEGER(10) DEFAULT NULL,
+ PRIMARY KEY (id)
+);
+
+CREATE TABLE aros_acos (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ aro_id INTEGER(10) UNSIGNED NOT NULL,
+ aco_id INTEGER(10) UNSIGNED NOT NULL,
+ _create CHAR(2) NOT NULL DEFAULT 0,
+ _read CHAR(2) NOT NULL DEFAULT 0,
+ _update CHAR(2) NOT NULL DEFAULT 0,
+ _delete CHAR(2) NOT NULL DEFAULT 0,
+ PRIMARY KEY(id)
+);
+
+CREATE TABLE aros (
+ id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ parent_id INTEGER(10) DEFAULT NULL,
+ model VARCHAR(255) DEFAULT '',
+ foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
+ alias VARCHAR(255) DEFAULT '',
+ lft INTEGER(10) DEFAULT NULL,
+ rght INTEGER(10) DEFAULT NULL,
+ PRIMARY KEY (id)
+);
diff --git a/config/sql/i18n.php b/config/sql/i18n.php
new file mode 100755
index 00000000..f8a2bbb5
--- /dev/null
+++ b/config/sql/i18n.php
@@ -0,0 +1,58 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create i18n
+ *
+ */
+class i18nSchema extends CakeSchema {
+
+ var $name = 'i18n';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $i18n = array(
+ 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
+ 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
+ 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
+ 'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/i18n.sql b/config/sql/i18n.sql
new file mode 100755
index 00000000..d3567f78
--- /dev/null
+++ b/config/sql/i18n.sql
@@ -0,0 +1,28 @@
+# $Id: i18n.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE i18n (
+ id int(10) NOT NULL auto_increment,
+ locale varchar(6) NOT NULL,
+ model varchar(255) NOT NULL,
+ foreign_key int(10) NOT NULL,
+ field varchar(255) NOT NULL,
+ content mediumtext,
+ PRIMARY KEY (id),
+# UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
+# INDEX I18N_LOCALE_ROW(locale, model, foreign_key),
+# INDEX I18N_LOCALE_MODEL(locale, model),
+# INDEX I18N_FIELD(model, foreign_key, field),
+# INDEX I18N_ROW(model, foreign_key),
+ INDEX locale (locale),
+ INDEX model (model),
+ INDEX row_id (foreign_key),
+ INDEX field (field)
+);
diff --git a/config/sql/sessions.php b/config/sql/sessions.php
new file mode 100755
index 00000000..a9381c74
--- /dev/null
+++ b/config/sql/sessions.php
@@ -0,0 +1,55 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.config.sql
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/*
+ *
+ * Using the Schema command line utility
+ * cake schema run create Sessions
+ *
+ */
+class SessionsSchema extends CakeSchema {
+
+ var $name = 'Sessions';
+
+ function before($event = array()) {
+ return true;
+ }
+
+ function after($event = array()) {
+ }
+
+ var $cake_sessions = array(
+ 'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
+ 'data' => array('type'=>'text', 'null' => true, 'default' => NULL),
+ 'expires' => array('type'=>'integer', 'null' => true, 'default' => NULL),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/config/sql/sessions.sql b/config/sql/sessions.sql
new file mode 100755
index 00000000..23a19257
--- /dev/null
+++ b/config/sql/sessions.sql
@@ -0,0 +1,16 @@
+# $Id: sessions.sql 7118 2008-06-04 20:49:29Z gwoo $
+#
+# Copyright 2005-2008, Cake Software Foundation, Inc.
+# 1785 E. Sahara Avenue, Suite 490-204
+# Las Vegas, Nevada 89104
+#
+# Licensed under The MIT License
+# Redistributions of files must retain the above copyright notice.
+# http://www.opensource.org/licenses/mit-license.php The MIT License
+
+CREATE TABLE cake_sessions (
+ id varchar(255) NOT NULL default '',
+ data text,
+ expires int(11) default NULL,
+ PRIMARY KEY (id)
+);
\ No newline at end of file
diff --git a/controllers/.svn/entries b/controllers/.svn/entries
new file mode 100644
index 00000000..6b669e84
--- /dev/null
+++ b/controllers/.svn/entries
@@ -0,0 +1,444 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/controllers
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+product_options_controller.php
+file
+18
+
+
+
+2008-12-23T00:44:36.000000Z
+29af9e1a278599d9fe274a21c409a150
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1969
+
+components
+dir
+
+users_controller.php
+file
+
+
+
+
+2009-01-09T03:53:07.000000Z
+b9a19980858be73815c5dc8cded353dd
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3096
+
+currencies_controller.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+f3f3538a1bc068290fdb9bb75c8e0232
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+products_controller.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+b9044103343a375a90ef102ee8738f69
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+states_controller.php
+file
+
+
+
+
+2008-12-25T12:56:19.000000Z
+46e53b86dff36c5cf4866578336f5d6d
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1875
+
+enquiries_controller.php
+file
+
+
+
+
+2009-01-12T00:34:46.000000Z
+dc3b455abe516a50d81d7aa4f4f9e655
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+11340
+
+principles_controller.php
+file
+
+
+
+
+2008-12-26T02:36:33.000000Z
+bde5fc17e11786441edc93251bfc1b46
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2290
+
+countries_controller.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+9730b40befef90e812783cbac0f119f4
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+statuses_controller.php
+file
+
+
+
+
+2008-12-26T00:23:09.000000Z
+fab29c2d0bf65a6f756fad5dc85399f5
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1915
+
+addresses_controller.php
+file
+
+
+
+
+2009-01-06T05:02:07.000000Z
+2bcac89c5c6f598334a3062c0efa4a77
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2444
+
+contacts_controller.php
+file
+
+
+
+
+2009-01-04T06:19:22.000000Z
+521f5dc5e2702f76e33b7c565112b58e
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2874
+
+quotes_controller.php
+file
+
+
+
+
+2008-12-31T04:11:36.000000Z
+e8faf5817e4bd195ae31553b4ec66a20
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2698
+
+quote_products_controller.php
+file
+18
+
+
+
+2009-01-01T03:41:27.000000Z
+a234a2dd8ef111dbfcca8d44ba86220b
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2375
+
+customers_controller.php
+file
+
+
+
+
+2009-01-12T00:05:13.000000Z
+18ca70cbb2d42c8fa0e9b5497dfe0bea
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2121
+
diff --git a/controllers/.svn/format b/controllers/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/controllers/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/controllers/.svn/prop-base/addresses_controller.php.svn-base b/controllers/.svn/prop-base/addresses_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/addresses_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/contacts_controller.php.svn-base b/controllers/.svn/prop-base/contacts_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/contacts_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/countries_controller.php.svn-base b/controllers/.svn/prop-base/countries_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/countries_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/currencies_controller.php.svn-base b/controllers/.svn/prop-base/currencies_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/currencies_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/customers_controller.php.svn-base b/controllers/.svn/prop-base/customers_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/customers_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/enquiries_controller.php.svn-base b/controllers/.svn/prop-base/enquiries_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/enquiries_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/principles_controller.php.svn-base b/controllers/.svn/prop-base/principles_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/principles_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/products_controller.php.svn-base b/controllers/.svn/prop-base/products_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/products_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/quotes_controller.php.svn-base b/controllers/.svn/prop-base/quotes_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/quotes_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/states_controller.php.svn-base b/controllers/.svn/prop-base/states_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/states_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/statuses_controller.php.svn-base b/controllers/.svn/prop-base/statuses_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/statuses_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/prop-base/users_controller.php.svn-base b/controllers/.svn/prop-base/users_controller.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/.svn/prop-base/users_controller.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/.svn/text-base/addresses_controller.php.svn-base b/controllers/.svn/text-base/addresses_controller.php.svn-base
new file mode 100644
index 00000000..191cc839
--- /dev/null
+++ b/controllers/.svn/text-base/addresses_controller.php.svn-base
@@ -0,0 +1,78 @@
+Address->recursive = 0;
+ $this->set('addresses', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Address.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('address', $this->Address->read(null, $id));
+ }
+
+ function add($customerid = null ) {
+ if(isset($this->params['named']['customerid'])) {
+ $customerid = $this->params['named']['customerid'];
+ }
+ if(!$customerid) {
+ $this->Session->setFlash(__('Invalid Customer ID', true));
+ $this->redirect(array('controller'=>'Enquiries', 'action'=>'index'));
+ }
+
+ if (!empty($this->data)) {
+ $this->Address->create();
+ if ($this->Address->save($this->data)) {
+ $this->Session->setFlash(__('The Address has been saved', true));
+ $this->redirect(array('controller' => 'customers', 'action'=>'view/'.$customerid));
+ } else {
+ $this->Session->setFlash(__('The Address could not be saved. Please, try again.', true));
+ }
+ }
+ $customer = $this->Address->Customer->findById($customerid);
+ $states = $this->Address->State->find('list');
+ $countries = $this->Address->Country->find('list');
+ $this->set(compact('customer', 'states', 'countries'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Address', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Address->save($this->data)) {
+ $this->Session->setFlash(__('The Address has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Address could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Address->read(null, $id);
+ }
+ $customers = $this->Address->Customer->find('list');
+ $states = $this->Address->State->find('list');
+ $countries = $this->Address->Country->find('list');
+ $this->set(compact('customers','states','countries'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Address', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Address->del($id)) {
+ $this->Session->setFlash(__('Address deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/contacts_controller.php.svn-base b/controllers/.svn/text-base/contacts_controller.php.svn-base
new file mode 100644
index 00000000..f6f77e16
--- /dev/null
+++ b/controllers/.svn/text-base/contacts_controller.php.svn-base
@@ -0,0 +1,88 @@
+ array('order' => array('Contact.customer_id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+ function index() {
+ $this->Contact->recursive = 0;
+ $this->set('contacts', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Contact.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('contact', $this->Contact->read(null, $id));
+ //$enquiries = $this->Contact->Enquiry->findAllByContactId($id);
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.contact_id' => $id)));
+ //$this->set('enquiries', $this->paginate($enquiries));
+ }
+
+
+
+ function add_to_customer($customerid = null) {
+
+ if(isset($this->params['named']['customerid'])) {
+ $customerid = $this->params['named']['customerid'];
+ }
+ if (!$customerid && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Customer ID', true));
+ $this->redirect(array('controller'=>'Enquiries', 'action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ $this->data['Contact']['name'] = $this->data['Contact']['first_name'].' '.$this->data['Contact']['last_name'];
+ $this->Contact->create();
+ if ($this->Contact->save($this->data)) {
+ $this->Session->setFlash(__('The Contact has been saved', true));
+ $this->redirect(array('controller' => 'Customers', 'action'=>'view/'.$this->data['Contact']['customer_id']));
+ } else {
+ $this->Session->setFlash(__('The Contact could not be saved. Please try again.', true));
+ }
+ }
+
+ $customer = $this->Contact->Customer->findById($customerid);
+ $this->set(compact('customer'));
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Contact', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ $this->data['Contact']['name'] = $this->data['Contact']['first_name'].' '.$this->data['Contact']['last_name'];
+ if ($this->Contact->save($this->data)) {
+ $this->Session->setFlash(__('The Contact has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Contact could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Contact->read(null, $id);
+ }
+ $customers = $this->Contact->Customer->find('list');
+ $this->set(compact('customers'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Contact', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Contact->del($id)) {
+ $this->Session->setFlash(__('Contact deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/countries_controller.php.svn-base b/controllers/.svn/text-base/countries_controller.php.svn-base
new file mode 100644
index 00000000..1a87ca56
--- /dev/null
+++ b/controllers/.svn/text-base/countries_controller.php.svn-base
@@ -0,0 +1,65 @@
+Country->recursive = 0;
+ $this->set('countries', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Country.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('country', $this->Country->read(null, $id));
+ }
+
+ function add() {
+ $this->set('currencies', $this->Country->Currency->find('list', array('fields'=>array('Currency.id', 'Currency.name'))));
+ if (!empty($this->data)) {
+
+ $this->Country->create();
+
+ if ($this->Country->save($this->data)) {
+ $this->Session->setFlash(__('The Country has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Country could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Country', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Country->save($this->data)) {
+ $this->Session->setFlash(__('The Country has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Country could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Country->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Country', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Country->del($id)) {
+ $this->Session->setFlash(__('Country deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/currencies_controller.php.svn-base b/controllers/.svn/text-base/currencies_controller.php.svn-base
new file mode 100644
index 00000000..4ee38ccb
--- /dev/null
+++ b/controllers/.svn/text-base/currencies_controller.php.svn-base
@@ -0,0 +1,62 @@
+Currency->recursive = 0;
+ $this->set('currencies', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Currency.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('currency', $this->Currency->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Currency->create();
+ if ($this->Currency->save($this->data)) {
+ $this->Session->setFlash(__('The Currency has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Currency could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Currency', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Currency->save($this->data)) {
+ $this->Session->setFlash(__('The Currency has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Currency could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Currency->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Currency', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Currency->del($id)) {
+ $this->Session->setFlash(__('Currency deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/.svn/text-base/customers_controller.php.svn-base b/controllers/.svn/text-base/customers_controller.php.svn-base
new file mode 100644
index 00000000..1fdf0367
--- /dev/null
+++ b/controllers/.svn/text-base/customers_controller.php.svn-base
@@ -0,0 +1,68 @@
+ array('order' => array('Customer.name' => 'asc'),
+ 'limit' => 200
+ ),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+ function index() {
+ $this->Customer->recursive = 0;
+ $this->set('customers', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Customer.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('customer', $this->Customer->read(null, $id));
+ $this->set('addresses', $this->Customer->Address->findAllByCustomerId($id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.customer_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->data['Contact'][0]['name'] = $this->data['Contact'][0]['first_name'].' '.$this->data['Contact'][0]['last_name'];
+
+ if($this->Customer->saveAll($this->data, array('validate'=>'first')) ) {
+ $newcustomerid = $this->Customer->id;
+ $this->Session->setFlash(__('The Customer and Contact have been saved', true));
+ $this->redirect(array('action'=>'view', 'id'=>$newcustomerid));
+ }
+ else {
+ $this->Session->setFlash(__('The Customer could not be saved. Please try again.', true));
+ }
+ }
+ $this->set('states', $this->Customer->Address->State->find('list'));
+ $this->set('countries', $this->Customer->Address->Country->find('list'));
+
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Customer', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Customer->save($this->data)) {
+ $this->Session->setFlash(__('The Customer has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Customer could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Customer->read(null, $id);
+ }
+ }
+
+
+}
+?>
diff --git a/controllers/.svn/text-base/enquiries_controller.php.svn-base b/controllers/.svn/text-base/enquiries_controller.php.svn-base
new file mode 100644
index 00000000..00e8a7ea
--- /dev/null
+++ b/controllers/.svn/text-base/enquiries_controller.php.svn-base
@@ -0,0 +1,255 @@
+ 250,
+ 'order'=>array('Enquiry.id' => 'desc'));
+
+
+ function index() {
+ $this->Enquiry->recursive = 0;
+ $this->set('enquiries', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Enquiry.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('enquiry', $this->Enquiry->read(null, $id));
+ $this->set('quotes', $this->Enquiry->Quote->find('all', array('conditions'=>array('Quote.enquiry_id'=>$id), 'order'=>'Quote.revision DESC')));
+ }
+
+
+
+ function add() {
+
+
+ $states = $this->Enquiry->State->find('list');
+ $countries = $this->Enquiry->Country->find('list');
+ $principles = $this->Enquiry->Principle->find('list');
+ $statuses = $this->Enquiry->Status->find('list');
+ $user_id = $this->Auth->user('id');
+ $this->set(compact('user_id','users', 'customers', 'states', 'countries', 'principles', 'statuses'));
+
+
+ if(empty($this->data)) {
+ $this->set('step', 1);
+ $users = $this->Enquiry->User->find('list', array('fields' => array('User.id', 'User.username')));
+ $this->set('users', $users);
+ }
+
+ elseif( (!empty($this->data)) && ($this->data['Enquiry']['step'] == 1) ) {
+ $customer = $this->Enquiry->Customer->findByName($this->data['Customer']['name']);
+ $this->set('customer', $customer);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $customer['Customer']['id'])));
+ /* Check if the customer exists in the database - otherwise send the user back to step 1*/
+ if(!$customer) {
+ $this->Session->setFlash(__('The customer must already exist in the database. Please try again', true));
+ $this->redirect(array('action'=>'add'));
+ }
+ $this->set('step',2);
+ $user_id = $this->Auth->user('id');
+ $this->set('user_id', $user_id);
+ $this->set('contacts', $contacts);
+
+ $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']['name'].' '.$address['BillingAddress']['address'].' '.$address['BillingAddress']['city'].' '.$address['State']['name'].' '.up($address['Country']['name']).' ';
+ }
+ $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->render();
+
+ }
+
+ if ( (!empty($this->data)) && ($this->data['Enquiry']['finished'] == 'true') ) {
+ $this->Enquiry->set($this->data);
+ if( !($this->Enquiry->validates()) ) {
+ $customer = $this->Enquiry->Customer->findByName($this->data['Customer']['name']);
+ $this->set('customer', $customer);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $customer['Customer']['id'])));
+ $this->set('contacts', $contacts);
+ $this->set('billing_addresses', $this->Enquiry->BillingAddress->find('list', array('conditions'=>array('BillingAddress.customer_id' => $customer['Customer']['id']))));
+ $this->set('shipping_addresses', $this->Enquiry->ShippingAddress->find('list', array('conditions'=>array('ShippingAddress.customer_id' => $customer['Customer']['id']))));
+ $this->set('errors', $this->Enquiry->invalidFields());
+ $this->set('step',2);
+ $this->render();
+
+
+ }
+ else {
+ $this->Enquiry->create();
+ $state = $this->Enquiry->State->findById($this->data['Enquiry']['state_id']);
+ $principle = $this->Enquiry->Principle->findById($this->data['Enquiry']['principle_id']);
+ /* Generate the enquiry number for this enquiry */
+ /* CMC Enquiry number format is:
+ * CMCE-
+ * eg. CMC1245NE351234-456 */
+
+ $enquiryid = $this->Enquiry->findCount(); /* Find what number we are - CMCXXXX */
+ $enquiryoffset = 7203; //What Number Enquiry we were at before using this package.
+ $enquiryid += $enquiryoffset;
+ $enquiryid++;
+ /* Find how many enquiries have been for this principle code */
+ $principleenquiries = $this->Enquiry->findCount('principle_code ='. $principle['Principle']['code']);
+
+ /* Principle Code Offsets - Existing Number of Enquiries for each Principle Code */
+ $principlecode_offset = array( 15 => 204, //ELMAC, AMAL
+ 20 => 49, //T and B Electronic
+ 25 => 2021, //ATEX,Brilex,Marston
+ 35 => 2030, //Mid-West Instrument, DP
+ 36 => 46, //Reading Technologies
+ 37 => 2020, //Eldridge, Smart Measurement, Alia
+ 65 => 2189, //Papenmeier, Herberts Industrieglas
+ 85 => 585, //Analytical Systems, Misc
+ 95 => 171); //Comet, T and D.
+ $principleenquiries += $principlecode_offset[$principle['Principle']['code']]; //Add the offset.
+ $principleenquiries++;
+
+
+
+ /* Find how many enquiries have been for this principle code in this state */
+ /* This aspect of the enquiry number is not useful anymore. Made redundant thanks to mySQL queries.
+ * But this has been done for backwards-compatablity with existing enquiry numbers */
+ $principleconditions = array
+ (
+ "Enquiry.principle_code" => $principle['Principle']['code'],
+ "Enquiry.state_id" => $this->data['Enquiry']['state_id']
+ );
+
+ $stateprincipleenquiries = $this->Enquiry->findCount($principleconditions);
+
+ /*Add the offsets for the State Principle Enquiries for each Code */
+ $stateprinciple_offset = array(
+ //Elmac, Amal
+ 15 => array("NSW" => 39, "VIC" => 36, "TAS" => 58,
+ "ACT" => 0, "QLD" => 30, "NT" => 0,
+ "WA" => 18, "SA" => 0, "Overseas" => 0),
+ //T and B Electronic
+ 20 => array("NSW" => 13, "VIC" => 6, "TAS" => 0,
+ "ACT" => 0, "QLD" => 8, "NT" => 0,
+ "WA" => 12, "SA" => 0, "Overseas" => 4),
+ //ATEX,Brilex,Marston
+ 25 => array("NSW" => 569, "VIC" => 589, "TAS" => 186,
+ "ACT" => 0, "QLD" => 250, "NT" => 3,
+ "WA" => 540, "SA" => 71, "Overseas" => 612),
+ //Mid-West Instrument, DP
+ 35 => array("NSW" => 530, "VIC" => 844, "TAS" => 9,
+ "ACT" => 0, "QLD" => 250, "NT" => 14,
+ "WA" => 464, "SA" => 507, "Overseas" => 149),
+ //Reading Technologies ****TO DO****
+ 36 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Eldridge, Smart Measurement, Alia *** TO DO***
+ 37 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Papenmeier, Herberts Industrieglas *** TO DO***
+ 65 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Analytical Systems, Misc *** TO DO***
+ 85 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Comet, T and D. *** TO DO***
+ 95 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ );
+ $stateprincipleenquiries += $stateprinciple_offset[$principle['Principle']['code']][$state['State']['shortform']];
+ $stateprincipleenquiries++;
+ /* Generate/set the enquiry number */
+ $enquiryno = 'CMC'.$enquiryid.$state['State']['enqform'].'E'.$principle['Principle']['code'].$principleenquiries.
+ '-'.$stateprincipleenquiries;
+
+
+ $this->data['Enquiry']['title'] = $enquiryno;
+ $this->data['Enquiry']['principle_code'] = $principle['Principle']['code']; //Store which principle code this enquiry belongs to.
+ Sanitize::clean($this->data);
+ }
+
+ if ($this->Enquiry->save($this->data)) {
+ $this->Session->setFlash(__('The Enquiry has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Enquiry could not be saved. Please, try again.', true));
+ }
+ }
+
+ }
+
+ /* Autocomplete the customer name - Used in: add.ctp */
+ function completeCustomer() {
+
+ $this->set('customers', $this->Enquiry->Customer->find('all', array(
+ 'conditions' => array(
+ 'Customer.name LIKE' => $this->data['Customer']['name'].'%'
+ ),'fields' => array('Customer.name')
+ )));
+ $this->layout = 'ajax';
+
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Enquiry', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Enquiry->save($this->data)) {
+ $this->Session->setFlash(__('The Enquiry has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Enquiry could not be saved. Please, try again.', true));
+ $this->set('dump', $this->data);
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Enquiry->read(null, $id);
+ }
+ $enquiry = $this->Enquiry->read(null, $id);
+ $users = $this->Enquiry->User->find('list', array('fields' => array('User.id', 'User.username')));
+ $customer = $this->Enquiry->Customer->findById($enquiry['Enquiry']['customer_id']);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $enquiry['Enquiry']['customer_id'] )));
+ $state = $this->Enquiry->State->findById($enquiry['Enquiry']['state_id']);
+ $country = $this->Enquiry->Country->findById($enquiry['Enquiry']['country_id']);
+ $principle = $this->Enquiry->Principle->findById($enquiry['Enquiry']['principle_id']);
+ $statuses = $this->Enquiry->Status->find('list');
+
+ $this->set(compact('enquiry', 'users','customer','contacts','state','country','principle','statuses', 'addresses'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Enquiry', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Enquiry->del($id)) {
+ $this->Session->setFlash(__('Enquiry deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/principles_controller.php.svn-base b/controllers/.svn/text-base/principles_controller.php.svn-base
new file mode 100644
index 00000000..1237c314
--- /dev/null
+++ b/controllers/.svn/text-base/principles_controller.php.svn-base
@@ -0,0 +1,74 @@
+ array('order' => array('Principle.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'desc'))
+ );
+
+ function index() {
+ $this->Principle->recursive = 0;
+ $this->set('principles', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Principle.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('principle', $this->Principle->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.principle_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Principle->create();
+ if ($this->Principle->save($this->data)) {
+ $this->Session->setFlash(__('The Principle has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Principle could not be saved. Please, try again.', true));
+ }
+ }
+ $countries = $this->Principle->Country->find('list');
+ $currencies = $this->Principle->Currency->find('list');
+ $this->set(compact('countries', 'currencies'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Principle', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Principle->save($this->data)) {
+ $this->Session->setFlash(__('The Principle has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Principle could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Principle->read(null, $id);
+ }
+ $countries = $this->Principle->Country->find('list');
+ $currencies = $this->Principle->Currency->find('list');
+ $this->set(compact('countries','currencies'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Principle', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Principle->del($id)) {
+ $this->Session->setFlash(__('Principle deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/product_options_controller.php.svn-base b/controllers/.svn/text-base/product_options_controller.php.svn-base
new file mode 100644
index 00000000..7afba88b
--- /dev/null
+++ b/controllers/.svn/text-base/product_options_controller.php.svn-base
@@ -0,0 +1,66 @@
+ProductOption->recursive = 0;
+ $this->set('productOptions', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid ProductOption.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('productOption', $this->ProductOption->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->ProductOption->create();
+ if ($this->ProductOption->save($this->data)) {
+ $this->Session->setFlash(__('The ProductOption has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The ProductOption could not be saved. Please, try again.', true));
+ }
+ }
+ $products = $this->ProductOption->Product->find('list');
+ $this->set(compact('products'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid ProductOption', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->ProductOption->save($this->data)) {
+ $this->Session->setFlash(__('The ProductOption has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The ProductOption could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->ProductOption->read(null, $id);
+ }
+ $products = $this->ProductOption->Product->find('list');
+ $this->set(compact('products'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for ProductOption', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->ProductOption->del($id)) {
+ $this->Session->setFlash(__('ProductOption deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/.svn/text-base/products_controller.php.svn-base b/controllers/.svn/text-base/products_controller.php.svn-base
new file mode 100644
index 00000000..8c459bda
--- /dev/null
+++ b/controllers/.svn/text-base/products_controller.php.svn-base
@@ -0,0 +1,67 @@
+Product->recursive = 0;
+ $this->set('products', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Product.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('product', $this->Product->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Product->create();
+
+ if ($this->Product->save($this->data)) {
+ $this->Session->setFlash(__('The Product has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Product could not be saved. Please, try again.', true));
+ }
+ }
+ $principles = $this->Product->Principle->find('list');
+ $this->set(compact('principles'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Product', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Product->save($this->data)) {
+ $this->Session->setFlash(__('The Product has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Product could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Product->read(null, $id);
+ }
+ $principles = $this->Product->Principle->find('list');
+ $this->set(compact('principles'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Product', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Product->del($id)) {
+ $this->Session->setFlash(__('Product deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/quote_products_controller.php.svn-base b/controllers/.svn/text-base/quote_products_controller.php.svn-base
new file mode 100644
index 00000000..b62e9758
--- /dev/null
+++ b/controllers/.svn/text-base/quote_products_controller.php.svn-base
@@ -0,0 +1,72 @@
+QuoteProduct->recursive = 0;
+ $this->set('quoteProducts', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid QuoteProduct.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('quoteProduct', $this->QuoteProduct->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->QuoteProduct->create();
+ if ($this->QuoteProduct->save($this->data)) {
+ $this->Session->setFlash(__('The QuoteProduct has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The QuoteProduct could not be saved. Please, try again.', true));
+ }
+ }
+ $principles = $this->QuoteProduct->Principle->find('list');
+ $currencies = $this->QuoteProduct->Currency->find('list');
+ $quotes = $this->QuoteProduct->Quote->find('list');
+ $products = $this->QuoteProduct->Product->find('list');
+ $this->set(compact('principles', 'currencies', 'quotes', 'products'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid QuoteProduct', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->QuoteProduct->save($this->data)) {
+ $this->Session->setFlash(__('The QuoteProduct has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The QuoteProduct could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->QuoteProduct->read(null, $id);
+ }
+ $principles = $this->QuoteProduct->Principle->find('list');
+ $currencies = $this->QuoteProduct->Currency->find('list');
+ $quotes = $this->QuoteProduct->Quote->find('list');
+ $products = $this->QuoteProduct->Product->find('list');
+ $this->set(compact('principles','currencies','quotes','products'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for QuoteProduct', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->QuoteProduct->del($id)) {
+ $this->Session->setFlash(__('QuoteProduct deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/.svn/text-base/quotes_controller.php.svn-base b/controllers/.svn/text-base/quotes_controller.php.svn-base
new file mode 100644
index 00000000..b39bf02a
--- /dev/null
+++ b/controllers/.svn/text-base/quotes_controller.php.svn-base
@@ -0,0 +1,92 @@
+Quote->recursive = 0;
+ $this->set('quotes', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Quote.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('quote', $this->Quote->read(null, $id));
+ }
+
+ function add() {
+
+ if(isset($this->params['named']['enquiryid'])) {
+ $enquiryid = $this->params['named']['enquiryid'];
+ $this->Quote->create();
+ $number_of_revisions = $this->Quote->findCount('Quote.enquiry_id ='. $enquiryid);
+ $this->data['Quote']['revision'] = $number_of_revisions;
+ $this->data['Quote']['enquiry_id'] = $enquiryid;
+
+ if ($this->Quote->save($this->data)) {
+ $quoteid = $this->Quote->id;
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'view/'.$quoteid));
+ }
+ else {
+ $this->Session->setFlash(__('The Quote was not saved. Something has gone wrong.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+ else {
+ $this->Session->setFlash(__('Invalid Enquiry ID', true));
+ $this->redirect(array('controller'=>'enquiries','action'=>'index'));
+ }
+
+ }
+
+
+ function addold($id = null) {
+
+ if(isset($this->params['named']['enquiryid'])) {
+ $enquiryid = $this->params['named']['enquiryid'];
+ }
+ if (!empty($this->data)) {
+ $this->Quote->create();
+
+ $number_of_revisions = $this->Quote->findCount('enquiry_id ='. $this->data['Quote']['enquiry_id']);
+ $number_of_revisions++;
+ $this->data['Quote']['revision'] = $number_of_revisions;
+ if ($this->Quote->save($this->data)) {
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Quote could not be saved. Please, try again.', true));
+ }
+ }
+ $enquiries = $this->Quote->Enquiry->find('list');
+ $this->set(compact('enquiries'));
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Quote', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Quote->save($this->data)) {
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Quote could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Quote->read(null, $id);
+ }
+ $enquiries = $this->Quote->Enquiry->find('list');
+ $this->set(compact('enquiries'));
+ }
+
+
+}
+?>
diff --git a/controllers/.svn/text-base/states_controller.php.svn-base b/controllers/.svn/text-base/states_controller.php.svn-base
new file mode 100644
index 00000000..5255a44e
--- /dev/null
+++ b/controllers/.svn/text-base/states_controller.php.svn-base
@@ -0,0 +1,69 @@
+ array('order' => array('State.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+
+ function index() {
+ $this->State->recursive = 0;
+ $this->set('states', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid State.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('state', $this->State->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.state_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->State->create();
+ if ($this->State->save($this->data)) {
+ $this->Session->setFlash(__('The State has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The State could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid State', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->State->save($this->data)) {
+ $this->Session->setFlash(__('The State has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The State could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->State->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for State', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->State->del($id)) {
+ $this->Session->setFlash(__('State deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/statuses_controller.php.svn-base b/controllers/.svn/text-base/statuses_controller.php.svn-base
new file mode 100644
index 00000000..2c981a22
--- /dev/null
+++ b/controllers/.svn/text-base/statuses_controller.php.svn-base
@@ -0,0 +1,68 @@
+ array('order' => array('Status.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'desc'), 'limit' => 100)
+ );
+
+ function index() {
+ $this->Status->recursive = 0;
+ $this->set('statuses', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Status.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('status', $this->Status->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.status_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Status->create();
+ if ($this->Status->save($this->data)) {
+ $this->Session->setFlash(__('The Status has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Status could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Status', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Status->save($this->data)) {
+ $this->Session->setFlash(__('The Status has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Status could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Status->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Status', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Status->del($id)) {
+ $this->Session->setFlash(__('Status deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/.svn/text-base/users_controller.php.svn-base b/controllers/.svn/text-base/users_controller.php.svn-base
new file mode 100644
index 00000000..85fe9b79
--- /dev/null
+++ b/controllers/.svn/text-base/users_controller.php.svn-base
@@ -0,0 +1,119 @@
+ 250);
+
+ function beforeFilter() {
+ $this->Auth->allow('add');
+ $this->set('currentuser', $this->Auth->user());
+ }
+
+ function login() { //Provided by the authComponent
+ $this->pageTitle = ': Login';
+ $this->Session->setFlash(__('Please enter your Username and Password to continue', true));
+ }
+
+
+ function logout() {
+ $this->redirect($this->Auth->logout());
+ }
+
+ function index() {
+ $this->User->recursive = 0;
+ $this->set('users', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid User.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('user', $this->User->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.user_id' => $id)));
+
+ }
+
+ function add() {
+
+ $this->set('groups', $this->User->Group->find('list'));
+ if (!empty($this->data)) {
+ $this->User->create();
+ if ($this->User->save($this->data)) {
+ $this->Session->setFlash(__('The User has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The User could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid User', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->User->save($this->data)) {
+ $this->Session->setFlash(__('The User has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The User could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->User->read(null, $id);
+ $this->set('groups', $this->User->Group->find('list'));
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for User', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->User->del($id)) {
+ $this->Session->setFlash(__('User deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+ function initpermissions() {
+
+$group = $this->User->Group;
+//Allow admins to everything
+$group->id = 6;
+$this->Acl->allow($group, 'controllers');
+
+//Manager Permission
+$group->id = 5;
+$this->Acl->allow($group, 'controllers');
+
+//User Permission
+$group->id = 4;
+$this->Acl->deny($group, 'controllers');
+$this->Acl->allow($group, 'controllers/Enquires/add');
+$this->Acl->allow($group, 'controllers/Enquires/edit');
+$this->Acl->allow($group, 'controllers/Enquires/view');
+$this->Acl->allow($group, 'controllers/Quotes/add');
+$this->Acl->allow($group, 'controllers/Quotes/edit');
+$this->Acl->allow($group, 'controllers/Quotes/view');
+$this->Acl->allow($group, 'controllers/QuoteProducts/add');
+
+$this->Acl->allow($group, 'controllers/QuoteProducts/edit');
+$this->Acl->allow($group, 'controllers/QuoteProducts/view');
+
+}
+
+
+
+
+
+
+
+
+}
+?>
diff --git a/controllers/addresses_controller.php b/controllers/addresses_controller.php
new file mode 100755
index 00000000..191cc839
--- /dev/null
+++ b/controllers/addresses_controller.php
@@ -0,0 +1,78 @@
+Address->recursive = 0;
+ $this->set('addresses', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Address.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('address', $this->Address->read(null, $id));
+ }
+
+ function add($customerid = null ) {
+ if(isset($this->params['named']['customerid'])) {
+ $customerid = $this->params['named']['customerid'];
+ }
+ if(!$customerid) {
+ $this->Session->setFlash(__('Invalid Customer ID', true));
+ $this->redirect(array('controller'=>'Enquiries', 'action'=>'index'));
+ }
+
+ if (!empty($this->data)) {
+ $this->Address->create();
+ if ($this->Address->save($this->data)) {
+ $this->Session->setFlash(__('The Address has been saved', true));
+ $this->redirect(array('controller' => 'customers', 'action'=>'view/'.$customerid));
+ } else {
+ $this->Session->setFlash(__('The Address could not be saved. Please, try again.', true));
+ }
+ }
+ $customer = $this->Address->Customer->findById($customerid);
+ $states = $this->Address->State->find('list');
+ $countries = $this->Address->Country->find('list');
+ $this->set(compact('customer', 'states', 'countries'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Address', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Address->save($this->data)) {
+ $this->Session->setFlash(__('The Address has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Address could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Address->read(null, $id);
+ }
+ $customers = $this->Address->Customer->find('list');
+ $states = $this->Address->State->find('list');
+ $countries = $this->Address->Country->find('list');
+ $this->set(compact('customers','states','countries'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Address', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Address->del($id)) {
+ $this->Session->setFlash(__('Address deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/components/.svn/entries b/controllers/components/.svn/entries
new file mode 100644
index 00000000..85e75224
--- /dev/null
+++ b/controllers/components/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/controllers/components
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/controllers/components/.svn/format b/controllers/components/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/controllers/components/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/controllers/components/.svn/prop-base/empty.svn-base b/controllers/components/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/controllers/components/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/controllers/components/.svn/text-base/empty.svn-base b/controllers/components/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/controllers/components/empty b/controllers/components/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/controllers/contacts_controller.php b/controllers/contacts_controller.php
new file mode 100755
index 00000000..f6f77e16
--- /dev/null
+++ b/controllers/contacts_controller.php
@@ -0,0 +1,88 @@
+ array('order' => array('Contact.customer_id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+ function index() {
+ $this->Contact->recursive = 0;
+ $this->set('contacts', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Contact.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('contact', $this->Contact->read(null, $id));
+ //$enquiries = $this->Contact->Enquiry->findAllByContactId($id);
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.contact_id' => $id)));
+ //$this->set('enquiries', $this->paginate($enquiries));
+ }
+
+
+
+ function add_to_customer($customerid = null) {
+
+ if(isset($this->params['named']['customerid'])) {
+ $customerid = $this->params['named']['customerid'];
+ }
+ if (!$customerid && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Customer ID', true));
+ $this->redirect(array('controller'=>'Enquiries', 'action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ $this->data['Contact']['name'] = $this->data['Contact']['first_name'].' '.$this->data['Contact']['last_name'];
+ $this->Contact->create();
+ if ($this->Contact->save($this->data)) {
+ $this->Session->setFlash(__('The Contact has been saved', true));
+ $this->redirect(array('controller' => 'Customers', 'action'=>'view/'.$this->data['Contact']['customer_id']));
+ } else {
+ $this->Session->setFlash(__('The Contact could not be saved. Please try again.', true));
+ }
+ }
+
+ $customer = $this->Contact->Customer->findById($customerid);
+ $this->set(compact('customer'));
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Contact', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ $this->data['Contact']['name'] = $this->data['Contact']['first_name'].' '.$this->data['Contact']['last_name'];
+ if ($this->Contact->save($this->data)) {
+ $this->Session->setFlash(__('The Contact has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Contact could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Contact->read(null, $id);
+ }
+ $customers = $this->Contact->Customer->find('list');
+ $this->set(compact('customers'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Contact', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Contact->del($id)) {
+ $this->Session->setFlash(__('Contact deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/countries_controller.php b/controllers/countries_controller.php
new file mode 100755
index 00000000..1a87ca56
--- /dev/null
+++ b/controllers/countries_controller.php
@@ -0,0 +1,65 @@
+Country->recursive = 0;
+ $this->set('countries', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Country.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('country', $this->Country->read(null, $id));
+ }
+
+ function add() {
+ $this->set('currencies', $this->Country->Currency->find('list', array('fields'=>array('Currency.id', 'Currency.name'))));
+ if (!empty($this->data)) {
+
+ $this->Country->create();
+
+ if ($this->Country->save($this->data)) {
+ $this->Session->setFlash(__('The Country has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Country could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Country', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Country->save($this->data)) {
+ $this->Session->setFlash(__('The Country has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Country could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Country->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Country', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Country->del($id)) {
+ $this->Session->setFlash(__('Country deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/currencies_controller.php b/controllers/currencies_controller.php
new file mode 100755
index 00000000..4ee38ccb
--- /dev/null
+++ b/controllers/currencies_controller.php
@@ -0,0 +1,62 @@
+Currency->recursive = 0;
+ $this->set('currencies', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Currency.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('currency', $this->Currency->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Currency->create();
+ if ($this->Currency->save($this->data)) {
+ $this->Session->setFlash(__('The Currency has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Currency could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Currency', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Currency->save($this->data)) {
+ $this->Session->setFlash(__('The Currency has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Currency could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Currency->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Currency', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Currency->del($id)) {
+ $this->Session->setFlash(__('Currency deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/customers_controller.php b/controllers/customers_controller.php
new file mode 100755
index 00000000..1fdf0367
--- /dev/null
+++ b/controllers/customers_controller.php
@@ -0,0 +1,68 @@
+ array('order' => array('Customer.name' => 'asc'),
+ 'limit' => 200
+ ),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+ function index() {
+ $this->Customer->recursive = 0;
+ $this->set('customers', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Customer.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('customer', $this->Customer->read(null, $id));
+ $this->set('addresses', $this->Customer->Address->findAllByCustomerId($id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.customer_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->data['Contact'][0]['name'] = $this->data['Contact'][0]['first_name'].' '.$this->data['Contact'][0]['last_name'];
+
+ if($this->Customer->saveAll($this->data, array('validate'=>'first')) ) {
+ $newcustomerid = $this->Customer->id;
+ $this->Session->setFlash(__('The Customer and Contact have been saved', true));
+ $this->redirect(array('action'=>'view', 'id'=>$newcustomerid));
+ }
+ else {
+ $this->Session->setFlash(__('The Customer could not be saved. Please try again.', true));
+ }
+ }
+ $this->set('states', $this->Customer->Address->State->find('list'));
+ $this->set('countries', $this->Customer->Address->Country->find('list'));
+
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Customer', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Customer->save($this->data)) {
+ $this->Session->setFlash(__('The Customer has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Customer could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Customer->read(null, $id);
+ }
+ }
+
+
+}
+?>
diff --git a/controllers/enquiries_controller.php b/controllers/enquiries_controller.php
new file mode 100755
index 00000000..00e8a7ea
--- /dev/null
+++ b/controllers/enquiries_controller.php
@@ -0,0 +1,255 @@
+ 250,
+ 'order'=>array('Enquiry.id' => 'desc'));
+
+
+ function index() {
+ $this->Enquiry->recursive = 0;
+ $this->set('enquiries', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Enquiry.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('enquiry', $this->Enquiry->read(null, $id));
+ $this->set('quotes', $this->Enquiry->Quote->find('all', array('conditions'=>array('Quote.enquiry_id'=>$id), 'order'=>'Quote.revision DESC')));
+ }
+
+
+
+ function add() {
+
+
+ $states = $this->Enquiry->State->find('list');
+ $countries = $this->Enquiry->Country->find('list');
+ $principles = $this->Enquiry->Principle->find('list');
+ $statuses = $this->Enquiry->Status->find('list');
+ $user_id = $this->Auth->user('id');
+ $this->set(compact('user_id','users', 'customers', 'states', 'countries', 'principles', 'statuses'));
+
+
+ if(empty($this->data)) {
+ $this->set('step', 1);
+ $users = $this->Enquiry->User->find('list', array('fields' => array('User.id', 'User.username')));
+ $this->set('users', $users);
+ }
+
+ elseif( (!empty($this->data)) && ($this->data['Enquiry']['step'] == 1) ) {
+ $customer = $this->Enquiry->Customer->findByName($this->data['Customer']['name']);
+ $this->set('customer', $customer);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $customer['Customer']['id'])));
+ /* Check if the customer exists in the database - otherwise send the user back to step 1*/
+ if(!$customer) {
+ $this->Session->setFlash(__('The customer must already exist in the database. Please try again', true));
+ $this->redirect(array('action'=>'add'));
+ }
+ $this->set('step',2);
+ $user_id = $this->Auth->user('id');
+ $this->set('user_id', $user_id);
+ $this->set('contacts', $contacts);
+
+ $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']['name'].' '.$address['BillingAddress']['address'].' '.$address['BillingAddress']['city'].' '.$address['State']['name'].' '.up($address['Country']['name']).' ';
+ }
+ $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->render();
+
+ }
+
+ if ( (!empty($this->data)) && ($this->data['Enquiry']['finished'] == 'true') ) {
+ $this->Enquiry->set($this->data);
+ if( !($this->Enquiry->validates()) ) {
+ $customer = $this->Enquiry->Customer->findByName($this->data['Customer']['name']);
+ $this->set('customer', $customer);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $customer['Customer']['id'])));
+ $this->set('contacts', $contacts);
+ $this->set('billing_addresses', $this->Enquiry->BillingAddress->find('list', array('conditions'=>array('BillingAddress.customer_id' => $customer['Customer']['id']))));
+ $this->set('shipping_addresses', $this->Enquiry->ShippingAddress->find('list', array('conditions'=>array('ShippingAddress.customer_id' => $customer['Customer']['id']))));
+ $this->set('errors', $this->Enquiry->invalidFields());
+ $this->set('step',2);
+ $this->render();
+
+
+ }
+ else {
+ $this->Enquiry->create();
+ $state = $this->Enquiry->State->findById($this->data['Enquiry']['state_id']);
+ $principle = $this->Enquiry->Principle->findById($this->data['Enquiry']['principle_id']);
+ /* Generate the enquiry number for this enquiry */
+ /* CMC Enquiry number format is:
+ * CMCE-
+ * eg. CMC1245NE351234-456 */
+
+ $enquiryid = $this->Enquiry->findCount(); /* Find what number we are - CMCXXXX */
+ $enquiryoffset = 7203; //What Number Enquiry we were at before using this package.
+ $enquiryid += $enquiryoffset;
+ $enquiryid++;
+ /* Find how many enquiries have been for this principle code */
+ $principleenquiries = $this->Enquiry->findCount('principle_code ='. $principle['Principle']['code']);
+
+ /* Principle Code Offsets - Existing Number of Enquiries for each Principle Code */
+ $principlecode_offset = array( 15 => 204, //ELMAC, AMAL
+ 20 => 49, //T and B Electronic
+ 25 => 2021, //ATEX,Brilex,Marston
+ 35 => 2030, //Mid-West Instrument, DP
+ 36 => 46, //Reading Technologies
+ 37 => 2020, //Eldridge, Smart Measurement, Alia
+ 65 => 2189, //Papenmeier, Herberts Industrieglas
+ 85 => 585, //Analytical Systems, Misc
+ 95 => 171); //Comet, T and D.
+ $principleenquiries += $principlecode_offset[$principle['Principle']['code']]; //Add the offset.
+ $principleenquiries++;
+
+
+
+ /* Find how many enquiries have been for this principle code in this state */
+ /* This aspect of the enquiry number is not useful anymore. Made redundant thanks to mySQL queries.
+ * But this has been done for backwards-compatablity with existing enquiry numbers */
+ $principleconditions = array
+ (
+ "Enquiry.principle_code" => $principle['Principle']['code'],
+ "Enquiry.state_id" => $this->data['Enquiry']['state_id']
+ );
+
+ $stateprincipleenquiries = $this->Enquiry->findCount($principleconditions);
+
+ /*Add the offsets for the State Principle Enquiries for each Code */
+ $stateprinciple_offset = array(
+ //Elmac, Amal
+ 15 => array("NSW" => 39, "VIC" => 36, "TAS" => 58,
+ "ACT" => 0, "QLD" => 30, "NT" => 0,
+ "WA" => 18, "SA" => 0, "Overseas" => 0),
+ //T and B Electronic
+ 20 => array("NSW" => 13, "VIC" => 6, "TAS" => 0,
+ "ACT" => 0, "QLD" => 8, "NT" => 0,
+ "WA" => 12, "SA" => 0, "Overseas" => 4),
+ //ATEX,Brilex,Marston
+ 25 => array("NSW" => 569, "VIC" => 589, "TAS" => 186,
+ "ACT" => 0, "QLD" => 250, "NT" => 3,
+ "WA" => 540, "SA" => 71, "Overseas" => 612),
+ //Mid-West Instrument, DP
+ 35 => array("NSW" => 530, "VIC" => 844, "TAS" => 9,
+ "ACT" => 0, "QLD" => 250, "NT" => 14,
+ "WA" => 464, "SA" => 507, "Overseas" => 149),
+ //Reading Technologies ****TO DO****
+ 36 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Eldridge, Smart Measurement, Alia *** TO DO***
+ 37 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Papenmeier, Herberts Industrieglas *** TO DO***
+ 65 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Analytical Systems, Misc *** TO DO***
+ 85 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ //Comet, T and D. *** TO DO***
+ 95 => array("NSW" => 0, "VIC" => 0, "TAS" => 0,
+ "ACT" => 0, "QLD" => 0, "NT" => 0,
+ "WA" => 0, "SA" => 0, "Overseas" => 0),
+ );
+ $stateprincipleenquiries += $stateprinciple_offset[$principle['Principle']['code']][$state['State']['shortform']];
+ $stateprincipleenquiries++;
+ /* Generate/set the enquiry number */
+ $enquiryno = 'CMC'.$enquiryid.$state['State']['enqform'].'E'.$principle['Principle']['code'].$principleenquiries.
+ '-'.$stateprincipleenquiries;
+
+
+ $this->data['Enquiry']['title'] = $enquiryno;
+ $this->data['Enquiry']['principle_code'] = $principle['Principle']['code']; //Store which principle code this enquiry belongs to.
+ Sanitize::clean($this->data);
+ }
+
+ if ($this->Enquiry->save($this->data)) {
+ $this->Session->setFlash(__('The Enquiry has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Enquiry could not be saved. Please, try again.', true));
+ }
+ }
+
+ }
+
+ /* Autocomplete the customer name - Used in: add.ctp */
+ function completeCustomer() {
+
+ $this->set('customers', $this->Enquiry->Customer->find('all', array(
+ 'conditions' => array(
+ 'Customer.name LIKE' => $this->data['Customer']['name'].'%'
+ ),'fields' => array('Customer.name')
+ )));
+ $this->layout = 'ajax';
+
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Enquiry', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Enquiry->save($this->data)) {
+ $this->Session->setFlash(__('The Enquiry has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Enquiry could not be saved. Please, try again.', true));
+ $this->set('dump', $this->data);
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Enquiry->read(null, $id);
+ }
+ $enquiry = $this->Enquiry->read(null, $id);
+ $users = $this->Enquiry->User->find('list', array('fields' => array('User.id', 'User.username')));
+ $customer = $this->Enquiry->Customer->findById($enquiry['Enquiry']['customer_id']);
+ $contacts = $this->Enquiry->Contact->find('list', array('conditions' => array('Contact.customer_id' => $enquiry['Enquiry']['customer_id'] )));
+ $state = $this->Enquiry->State->findById($enquiry['Enquiry']['state_id']);
+ $country = $this->Enquiry->Country->findById($enquiry['Enquiry']['country_id']);
+ $principle = $this->Enquiry->Principle->findById($enquiry['Enquiry']['principle_id']);
+ $statuses = $this->Enquiry->Status->find('list');
+
+ $this->set(compact('enquiry', 'users','customer','contacts','state','country','principle','statuses', 'addresses'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Enquiry', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Enquiry->del($id)) {
+ $this->Session->setFlash(__('Enquiry deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/groups_controller.php b/controllers/groups_controller.php
new file mode 100644
index 00000000..8c410dc4
--- /dev/null
+++ b/controllers/groups_controller.php
@@ -0,0 +1,62 @@
+Group->recursive = 0;
+ $this->set('groups', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Group.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('group', $this->Group->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Group->create();
+ if ($this->Group->save($this->data)) {
+ $this->Session->setFlash(__('The Group has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Group could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Group', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Group->save($this->data)) {
+ $this->Session->setFlash(__('The Group has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Group could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Group->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Group', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Group->del($id)) {
+ $this->Session->setFlash(__('Group deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/principles_controller.php b/controllers/principles_controller.php
new file mode 100755
index 00000000..1237c314
--- /dev/null
+++ b/controllers/principles_controller.php
@@ -0,0 +1,74 @@
+ array('order' => array('Principle.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'desc'))
+ );
+
+ function index() {
+ $this->Principle->recursive = 0;
+ $this->set('principles', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Principle.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('principle', $this->Principle->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.principle_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Principle->create();
+ if ($this->Principle->save($this->data)) {
+ $this->Session->setFlash(__('The Principle has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Principle could not be saved. Please, try again.', true));
+ }
+ }
+ $countries = $this->Principle->Country->find('list');
+ $currencies = $this->Principle->Currency->find('list');
+ $this->set(compact('countries', 'currencies'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Principle', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Principle->save($this->data)) {
+ $this->Session->setFlash(__('The Principle has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Principle could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Principle->read(null, $id);
+ }
+ $countries = $this->Principle->Country->find('list');
+ $currencies = $this->Principle->Currency->find('list');
+ $this->set(compact('countries','currencies'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Principle', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Principle->del($id)) {
+ $this->Session->setFlash(__('Principle deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/product_options_controller.php b/controllers/product_options_controller.php
new file mode 100644
index 00000000..7afba88b
--- /dev/null
+++ b/controllers/product_options_controller.php
@@ -0,0 +1,66 @@
+ProductOption->recursive = 0;
+ $this->set('productOptions', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid ProductOption.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('productOption', $this->ProductOption->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->ProductOption->create();
+ if ($this->ProductOption->save($this->data)) {
+ $this->Session->setFlash(__('The ProductOption has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The ProductOption could not be saved. Please, try again.', true));
+ }
+ }
+ $products = $this->ProductOption->Product->find('list');
+ $this->set(compact('products'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid ProductOption', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->ProductOption->save($this->data)) {
+ $this->Session->setFlash(__('The ProductOption has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The ProductOption could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->ProductOption->read(null, $id);
+ }
+ $products = $this->ProductOption->Product->find('list');
+ $this->set(compact('products'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for ProductOption', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->ProductOption->del($id)) {
+ $this->Session->setFlash(__('ProductOption deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/products_controller.php b/controllers/products_controller.php
new file mode 100755
index 00000000..8c459bda
--- /dev/null
+++ b/controllers/products_controller.php
@@ -0,0 +1,67 @@
+Product->recursive = 0;
+ $this->set('products', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Product.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('product', $this->Product->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Product->create();
+
+ if ($this->Product->save($this->data)) {
+ $this->Session->setFlash(__('The Product has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Product could not be saved. Please, try again.', true));
+ }
+ }
+ $principles = $this->Product->Principle->find('list');
+ $this->set(compact('principles'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Product', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Product->save($this->data)) {
+ $this->Session->setFlash(__('The Product has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Product could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Product->read(null, $id);
+ }
+ $principles = $this->Product->Principle->find('list');
+ $this->set(compact('principles'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Product', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Product->del($id)) {
+ $this->Session->setFlash(__('Product deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/quote_products_controller.php b/controllers/quote_products_controller.php
new file mode 100644
index 00000000..b62e9758
--- /dev/null
+++ b/controllers/quote_products_controller.php
@@ -0,0 +1,72 @@
+QuoteProduct->recursive = 0;
+ $this->set('quoteProducts', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid QuoteProduct.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('quoteProduct', $this->QuoteProduct->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->QuoteProduct->create();
+ if ($this->QuoteProduct->save($this->data)) {
+ $this->Session->setFlash(__('The QuoteProduct has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The QuoteProduct could not be saved. Please, try again.', true));
+ }
+ }
+ $principles = $this->QuoteProduct->Principle->find('list');
+ $currencies = $this->QuoteProduct->Currency->find('list');
+ $quotes = $this->QuoteProduct->Quote->find('list');
+ $products = $this->QuoteProduct->Product->find('list');
+ $this->set(compact('principles', 'currencies', 'quotes', 'products'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid QuoteProduct', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->QuoteProduct->save($this->data)) {
+ $this->Session->setFlash(__('The QuoteProduct has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The QuoteProduct could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->QuoteProduct->read(null, $id);
+ }
+ $principles = $this->QuoteProduct->Principle->find('list');
+ $currencies = $this->QuoteProduct->Currency->find('list');
+ $quotes = $this->QuoteProduct->Quote->find('list');
+ $products = $this->QuoteProduct->Product->find('list');
+ $this->set(compact('principles','currencies','quotes','products'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for QuoteProduct', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->QuoteProduct->del($id)) {
+ $this->Session->setFlash(__('QuoteProduct deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/controllers/quotes_controller.php b/controllers/quotes_controller.php
new file mode 100755
index 00000000..b39bf02a
--- /dev/null
+++ b/controllers/quotes_controller.php
@@ -0,0 +1,92 @@
+Quote->recursive = 0;
+ $this->set('quotes', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Quote.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('quote', $this->Quote->read(null, $id));
+ }
+
+ function add() {
+
+ if(isset($this->params['named']['enquiryid'])) {
+ $enquiryid = $this->params['named']['enquiryid'];
+ $this->Quote->create();
+ $number_of_revisions = $this->Quote->findCount('Quote.enquiry_id ='. $enquiryid);
+ $this->data['Quote']['revision'] = $number_of_revisions;
+ $this->data['Quote']['enquiry_id'] = $enquiryid;
+
+ if ($this->Quote->save($this->data)) {
+ $quoteid = $this->Quote->id;
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'view/'.$quoteid));
+ }
+ else {
+ $this->Session->setFlash(__('The Quote was not saved. Something has gone wrong.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+ else {
+ $this->Session->setFlash(__('Invalid Enquiry ID', true));
+ $this->redirect(array('controller'=>'enquiries','action'=>'index'));
+ }
+
+ }
+
+
+ function addold($id = null) {
+
+ if(isset($this->params['named']['enquiryid'])) {
+ $enquiryid = $this->params['named']['enquiryid'];
+ }
+ if (!empty($this->data)) {
+ $this->Quote->create();
+
+ $number_of_revisions = $this->Quote->findCount('enquiry_id ='. $this->data['Quote']['enquiry_id']);
+ $number_of_revisions++;
+ $this->data['Quote']['revision'] = $number_of_revisions;
+ if ($this->Quote->save($this->data)) {
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Quote could not be saved. Please, try again.', true));
+ }
+ }
+ $enquiries = $this->Quote->Enquiry->find('list');
+ $this->set(compact('enquiries'));
+ }
+
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Quote', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Quote->save($this->data)) {
+ $this->Session->setFlash(__('The Quote has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Quote could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Quote->read(null, $id);
+ }
+ $enquiries = $this->Quote->Enquiry->find('list');
+ $this->set(compact('enquiries'));
+ }
+
+
+}
+?>
diff --git a/controllers/states_controller.php b/controllers/states_controller.php
new file mode 100755
index 00000000..5255a44e
--- /dev/null
+++ b/controllers/states_controller.php
@@ -0,0 +1,69 @@
+ array('order' => array('State.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'asc'))
+ );
+
+
+ function index() {
+ $this->State->recursive = 0;
+ $this->set('states', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid State.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('state', $this->State->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.state_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->State->create();
+ if ($this->State->save($this->data)) {
+ $this->Session->setFlash(__('The State has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The State could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid State', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->State->save($this->data)) {
+ $this->Session->setFlash(__('The State has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The State could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->State->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for State', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->State->del($id)) {
+ $this->Session->setFlash(__('State deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/statuses_controller.php b/controllers/statuses_controller.php
new file mode 100755
index 00000000..2c981a22
--- /dev/null
+++ b/controllers/statuses_controller.php
@@ -0,0 +1,68 @@
+ array('order' => array('Status.id' => 'asc')),
+ 'Enquiry' => array('order' => array('Enquiry.id' => 'desc'), 'limit' => 100)
+ );
+
+ function index() {
+ $this->Status->recursive = 0;
+ $this->set('statuses', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid Status.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('status', $this->Status->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.status_id' => $id)));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Status->create();
+ if ($this->Status->save($this->data)) {
+ $this->Session->setFlash(__('The Status has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Status could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid Status', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Status->save($this->data)) {
+ $this->Session->setFlash(__('The Status has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The Status could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Status->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for Status', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Status->del($id)) {
+ $this->Session->setFlash(__('Status deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+}
+?>
diff --git a/controllers/users_controller.php b/controllers/users_controller.php
new file mode 100755
index 00000000..85fe9b79
--- /dev/null
+++ b/controllers/users_controller.php
@@ -0,0 +1,119 @@
+ 250);
+
+ function beforeFilter() {
+ $this->Auth->allow('add');
+ $this->set('currentuser', $this->Auth->user());
+ }
+
+ function login() { //Provided by the authComponent
+ $this->pageTitle = ': Login';
+ $this->Session->setFlash(__('Please enter your Username and Password to continue', true));
+ }
+
+
+ function logout() {
+ $this->redirect($this->Auth->logout());
+ }
+
+ function index() {
+ $this->User->recursive = 0;
+ $this->set('users', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid User.', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->set('user', $this->User->read(null, $id));
+ $this->set('enquiries', $this->paginate('Enquiry', array('Enquiry.user_id' => $id)));
+
+ }
+
+ function add() {
+
+ $this->set('groups', $this->User->Group->find('list'));
+ if (!empty($this->data)) {
+ $this->User->create();
+ if ($this->User->save($this->data)) {
+ $this->Session->setFlash(__('The User has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The User could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid User', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->User->save($this->data)) {
+ $this->Session->setFlash(__('The User has been saved', true));
+ $this->redirect(array('action'=>'index'));
+ } else {
+ $this->Session->setFlash(__('The User could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->User->read(null, $id);
+ $this->set('groups', $this->User->Group->find('list'));
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for User', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->User->del($id)) {
+ $this->Session->setFlash(__('User deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ }
+
+ function initpermissions() {
+
+$group = $this->User->Group;
+//Allow admins to everything
+$group->id = 6;
+$this->Acl->allow($group, 'controllers');
+
+//Manager Permission
+$group->id = 5;
+$this->Acl->allow($group, 'controllers');
+
+//User Permission
+$group->id = 4;
+$this->Acl->deny($group, 'controllers');
+$this->Acl->allow($group, 'controllers/Enquires/add');
+$this->Acl->allow($group, 'controllers/Enquires/edit');
+$this->Acl->allow($group, 'controllers/Enquires/view');
+$this->Acl->allow($group, 'controllers/Quotes/add');
+$this->Acl->allow($group, 'controllers/Quotes/edit');
+$this->Acl->allow($group, 'controllers/Quotes/view');
+$this->Acl->allow($group, 'controllers/QuoteProducts/add');
+
+$this->Acl->allow($group, 'controllers/QuoteProducts/edit');
+$this->Acl->allow($group, 'controllers/QuoteProducts/view');
+
+}
+
+
+
+
+
+
+
+
+}
+?>
diff --git a/index.php b/index.php
new file mode 100755
index 00000000..985b0cd0
--- /dev/null
+++ b/index.php
@@ -0,0 +1,26 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @version $Revision: 6311 $
+ * @modifiedby $LastChangedBy: phpnut $
+ * @lastmodified $Date: 2008-01-01 22:33:52 -0800 (Tue, 01 Jan 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
+?>
\ No newline at end of file
diff --git a/locale/.svn/entries b/locale/.svn/entries
new file mode 100644
index 00000000..9f5edb2b
--- /dev/null
+++ b/locale/.svn/entries
@@ -0,0 +1,31 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/locale
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+eng
+dir
+
diff --git a/locale/.svn/format b/locale/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/locale/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/locale/eng/.svn/entries b/locale/eng/.svn/entries
new file mode 100644
index 00000000..ebbbff41
--- /dev/null
+++ b/locale/eng/.svn/entries
@@ -0,0 +1,31 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/locale/eng
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+LC_MESSAGES
+dir
+
diff --git a/locale/eng/.svn/format b/locale/eng/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/locale/eng/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/locale/eng/LC_MESSAGES/.svn/entries b/locale/eng/LC_MESSAGES/.svn/entries
new file mode 100644
index 00000000..fe0242f9
--- /dev/null
+++ b/locale/eng/LC_MESSAGES/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/locale/eng/LC_MESSAGES
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:44.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/locale/eng/LC_MESSAGES/.svn/format b/locale/eng/LC_MESSAGES/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/locale/eng/LC_MESSAGES/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/locale/eng/LC_MESSAGES/.svn/prop-base/empty.svn-base b/locale/eng/LC_MESSAGES/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/locale/eng/LC_MESSAGES/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/locale/eng/LC_MESSAGES/.svn/text-base/empty.svn-base b/locale/eng/LC_MESSAGES/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/locale/eng/LC_MESSAGES/empty b/locale/eng/LC_MESSAGES/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/models/.svn/entries b/models/.svn/entries
new file mode 100644
index 00000000..37a85f65
--- /dev/null
+++ b/models/.svn/entries
@@ -0,0 +1,494 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/models
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+currency.php
+file
+
+
+
+
+2008-12-22T23:26:41.000000Z
+33941827aac5b0d3f50b4c9339de3f65
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1212
+
+contact.php
+file
+
+
+
+
+2008-12-05T05:44:25.000000Z
+76918f12a488594a7dfea0a7020dc976
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1286
+
+behaviors
+dir
+
+enquiry.php
+file
+
+
+
+
+2009-01-05T03:47:43.000000Z
+c0023a9ade03d98276ec08c9a14b4838
+2009-01-05T06:00:33.065066Z
+13
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3521
+
+group.php
+file
+18
+
+
+
+2009-01-09T01:31:51.000000Z
+5525edc53a513a515d0582c396ba94cf
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+680
+
+quote_product.php
+file
+18
+
+
+
+2009-01-10T03:49:03.000000Z
+67fafcc281b2c5d8768b721d5ef149ec
+2009-01-12T05:57:25.596672Z
+18
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+723
+
+quote.php
+file
+
+
+
+
+2008-12-22T23:22:15.000000Z
+f45afb7be96b6a195d7ca98d779c2c81
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+960
+
+customer.php
+file
+
+
+
+
+2008-12-11T04:06:13.000000Z
+75bddc6140883f6004674791bba0d284
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1736
+
+quoted_product.php
+file
+
+
+
+
+2009-01-12T00:43:15.000000Z
+3660bcd1b26772a213a515aef8fc61dc
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+country.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+2cfe79556bf7f6c14cc2ccaa9c64cb28
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+product_option.php
+file
+19
+
+
+
+2008-12-23T00:43:28.000000Z
+ef3b7d814f050c613c1e7359f055a417
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+120
+
+user.php
+file
+
+
+
+
+2009-01-09T01:28:13.000000Z
+62c75bef36493d41bb1eb9071dfeb5e8
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1218
+
+product.php
+file
+
+
+
+
+2009-01-10T03:45:03.000000Z
+dafb637505d09d0fe7378dd798dca9f6
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+422
+
+state.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+512bedcab3d50d52902b36d985844944
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+status.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+ffcf36468ad366a6eceacd63144cf99c
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+principle.php
+file
+
+
+
+
+2009-01-10T03:51:02.000000Z
+ad19b13d3223fb76f31d5139b1685483
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1236
+
+address.php
+file
+
+
+
+
+2009-01-05T03:47:52.000000Z
+d2a9d8ec22c4dec9c41b6f32140224a6
+2009-01-05T06:00:33.065066Z
+13
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+740
+
+datasources
+dir
+
diff --git a/models/.svn/format b/models/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/models/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/models/.svn/prop-base/address.php.svn-base b/models/.svn/prop-base/address.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/address.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/contact.php.svn-base b/models/.svn/prop-base/contact.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/contact.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/country.php.svn-base b/models/.svn/prop-base/country.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/country.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/currency.php.svn-base b/models/.svn/prop-base/currency.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/currency.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/customer.php.svn-base b/models/.svn/prop-base/customer.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/customer.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/enquiry.php.svn-base b/models/.svn/prop-base/enquiry.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/enquiry.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/principle.php.svn-base b/models/.svn/prop-base/principle.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/principle.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/product.php.svn-base b/models/.svn/prop-base/product.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/product.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/quote.php.svn-base b/models/.svn/prop-base/quote.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/quote.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/quote_product.php.svn-base b/models/.svn/prop-base/quote_product.php.svn-base
new file mode 100644
index 00000000..869ac71c
--- /dev/null
+++ b/models/.svn/prop-base/quote_product.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/models/.svn/prop-base/quoted_product.php.svn-base b/models/.svn/prop-base/quoted_product.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/quoted_product.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/state.php.svn-base b/models/.svn/prop-base/state.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/state.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/status.php.svn-base b/models/.svn/prop-base/status.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/status.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/prop-base/user.php.svn-base b/models/.svn/prop-base/user.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/.svn/prop-base/user.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/.svn/text-base/address.php.svn-base b/models/.svn/text-base/address.php.svn-base
new file mode 100644
index 00000000..63d91e1c
--- /dev/null
+++ b/models/.svn/text-base/address.php.svn-base
@@ -0,0 +1,35 @@
+ array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+
+ 'State' => array('className' => 'State',
+ 'foreignKey' => 'state_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''),
+
+ 'Country' => array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+
+
+ ));
+
+}
+?>
diff --git a/models/.svn/text-base/contact.php.svn-base b/models/.svn/text-base/contact.php.svn-base
new file mode 100644
index 00000000..054ec2d9
--- /dev/null
+++ b/models/.svn/text-base/contact.php.svn-base
@@ -0,0 +1,58 @@
+ array(
+ 'rule' => array('notEmpty'),
+ 'message' => 'Please Enter the First Name of the Contact',
+ 'required' => true,
+ 'allowEmpty' => false
+ ),
+
+ 'last_name' => array(
+ 'rule' => array('notEmpty'),
+ 'message' => 'Please Enter the Last Name of the Contact',
+ 'required' => true,
+ 'allowEmpty' => false
+ ),
+ 'email' => array(
+ 'rule' => array('email'),
+ 'message' => 'Please a valid Email Address for the Contact',
+ 'required' => false,
+ 'allowEmpty' => true
+ )
+ );
+
+
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'Customer' => array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'contact_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+
+}
+?>
diff --git a/models/.svn/text-base/country.php.svn-base b/models/.svn/text-base/country.php.svn-base
new file mode 100644
index 00000000..a82d126d
--- /dev/null
+++ b/models/.svn/text-base/country.php.svn-base
@@ -0,0 +1,56 @@
+ array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Address' => array('className' => 'Address',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/.svn/text-base/currency.php.svn-base b/models/.svn/text-base/currency.php.svn-base
new file mode 100644
index 00000000..e18f1b78
--- /dev/null
+++ b/models/.svn/text-base/currency.php.svn-base
@@ -0,0 +1,47 @@
+ array('className' => 'Country',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'QuoteProduct' => array('className' => 'QuoteProduct',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/customer.php.svn-base b/models/.svn/text-base/customer.php.svn-base
new file mode 100644
index 00000000..e7e86bf5
--- /dev/null
+++ b/models/.svn/text-base/customer.php.svn-base
@@ -0,0 +1,70 @@
+ array(
+ 'rule' => 'isUnique',
+ 'message' => 'This Customer name is already taken or has been left blank',
+ 'required' => true,
+ 'allowEmpty' => false),
+ 'abn' => array(
+
+ 'numbers' => array(
+ 'rule' => 'numeric',
+ 'message' => 'ABN must only contain numbers - no letters or punctuation',
+ 'required' => true,
+ 'allowEmpty' => true),
+ 'minlength' => array(
+ 'rule' => array('minLength', '11'),
+ 'message' => 'ABN must be exactly 11 numbers long')
+ )
+ );
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'Address' => array('className' => 'Address',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Contact' => array('className' => 'Contact',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/enquiry.php.svn-base b/models/.svn/text-base/enquiry.php.svn-base
new file mode 100644
index 00000000..2dcba5d3
--- /dev/null
+++ b/models/.svn/text-base/enquiry.php.svn-base
@@ -0,0 +1,145 @@
+ array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'User ID must be selected',
+ 'on' => 'create'
+ ),
+
+ 'customer_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Customer for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'contact_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Contact for this Enquiry',
+ 'on' => 'create'
+ ),
+ 'customer_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Customer for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'state_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a State for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'country_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Country for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'principle_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Principle for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'status_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Status for this Enquiry'
+ ),
+ 'gst' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must slect whether GST is applicable for this Enquiry',
+ 'on' => 'create'
+ )
+ );
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'User' => array('className' => 'User',
+ 'foreignKey' => 'user_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Customer' => array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Contact' => array('className' => 'Contact',
+ 'foreignKey' => 'contact_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'State' => array('className' => 'State',
+ 'foreignKey' => 'state_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Country' => array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Status' => array('className' => 'Status',
+ 'foreignKey' => 'status_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'BillingAddress' => array('className' => 'Address',
+ 'foreignKey' => 'billing_address_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'ShippingAddress' => array('className' => 'Address',
+ 'foreignKey' => 'shipping_address_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+
+
+ );
+
+ var $hasMany = array(
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'enquiry_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/group.php.svn-base b/models/.svn/text-base/group.php.svn-base
new file mode 100644
index 00000000..f277aa5b
--- /dev/null
+++ b/models/.svn/text-base/group.php.svn-base
@@ -0,0 +1,31 @@
+ array('alphanumeric')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'User' => array('className' => 'User',
+ 'foreignKey' => 'group_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+ var $actsAs = array('Acl' => array('requester'));
+
+ function parentNode() {
+ return null;
+ }
+}
+?>
diff --git a/models/.svn/text-base/principle.php.svn-base b/models/.svn/text-base/principle.php.svn-base
new file mode 100644
index 00000000..fb01b0ea
--- /dev/null
+++ b/models/.svn/text-base/principle.php.svn-base
@@ -0,0 +1,50 @@
+ array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Currency' => array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'principle_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'principle_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/product.php.svn-base b/models/.svn/text-base/product.php.svn-base
new file mode 100644
index 00000000..2ea42d28
--- /dev/null
+++ b/models/.svn/text-base/product.php.svn-base
@@ -0,0 +1,20 @@
+ array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/product_option.php.svn-base b/models/.svn/text-base/product_option.php.svn-base
new file mode 100644
index 00000000..ddea7795
--- /dev/null
+++ b/models/.svn/text-base/product_option.php.svn-base
@@ -0,0 +1,9 @@
+ array('numeric'),
+ 'revision' => array('alphanumeric'),
+ 'deliverytime' => array('alphanumeric'),
+ 'paymentterms' => array('alphanumeric'),
+ 'daysvalid' => array('numeric')
+
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'enquiry_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'QuoteProduct' => array('className' => 'QuoteProduct',
+ 'foreignKey' => 'quote_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/quote_product.php.svn-base b/models/.svn/text-base/quote_product.php.svn-base
new file mode 100644
index 00000000..b989209a
--- /dev/null
+++ b/models/.svn/text-base/quote_product.php.svn-base
@@ -0,0 +1,33 @@
+ array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'quote_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'product_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/.svn/text-base/quoted_product.php.svn-base b/models/.svn/text-base/quoted_product.php.svn-base
new file mode 100644
index 00000000..1391785e
--- /dev/null
+++ b/models/.svn/text-base/quoted_product.php.svn-base
@@ -0,0 +1,35 @@
+ array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Currency' => array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'quote_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'product_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/.svn/text-base/state.php.svn-base b/models/.svn/text-base/state.php.svn-base
new file mode 100644
index 00000000..42342667
--- /dev/null
+++ b/models/.svn/text-base/state.php.svn-base
@@ -0,0 +1,35 @@
+ array('className' => 'Address',
+ 'foreignKey' => 'state_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'state_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/.svn/text-base/status.php.svn-base b/models/.svn/text-base/status.php.svn-base
new file mode 100644
index 00000000..8375431b
--- /dev/null
+++ b/models/.svn/text-base/status.php.svn-base
@@ -0,0 +1,23 @@
+ array('className' => 'Enquiry',
+ 'foreignKey' => 'status_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/.svn/text-base/user.php.svn-base b/models/.svn/text-base/user.php.svn-base
new file mode 100644
index 00000000..12ec7221
--- /dev/null
+++ b/models/.svn/text-base/user.php.svn-base
@@ -0,0 +1,59 @@
+ array(
+ 'rule' => 'unique',
+ 'required' => true,
+ 'message' => 'Username must be unique'
+ ),
+
+ // 'password' => array('maxlength'),
+ 'email' => array('email'),
+ // 'job_title' => array('custom')
+ );
+ */
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'user_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+
+ var $actsAs = array('Acl' => array('requester'));
+
+ function parentNode() {
+ if (!$this->id && empty($this->data)) {
+ return null;
+ }
+ $data = $this->data;
+ if (empty($this->data)) {
+ $data = $this->read();
+ }
+ if (!$data['User']['group_id']) {
+ return null;
+ }
+ else {
+ return array('Group' => array('id' => $data['User']['group_id']));
+ }
+ }
+
+
+
+}
+?>
diff --git a/models/address.php b/models/address.php
new file mode 100755
index 00000000..63d91e1c
--- /dev/null
+++ b/models/address.php
@@ -0,0 +1,35 @@
+ array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+
+ 'State' => array('className' => 'State',
+ 'foreignKey' => 'state_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''),
+
+ 'Country' => array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+
+
+ ));
+
+}
+?>
diff --git a/models/behaviors/.svn/entries b/models/behaviors/.svn/entries
new file mode 100644
index 00000000..5e99e7ae
--- /dev/null
+++ b/models/behaviors/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/models/behaviors
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/models/behaviors/.svn/format b/models/behaviors/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/models/behaviors/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/models/behaviors/.svn/prop-base/empty.svn-base b/models/behaviors/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/behaviors/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/behaviors/.svn/text-base/empty.svn-base b/models/behaviors/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/models/behaviors/empty b/models/behaviors/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/models/contact.php b/models/contact.php
new file mode 100755
index 00000000..054ec2d9
--- /dev/null
+++ b/models/contact.php
@@ -0,0 +1,58 @@
+ array(
+ 'rule' => array('notEmpty'),
+ 'message' => 'Please Enter the First Name of the Contact',
+ 'required' => true,
+ 'allowEmpty' => false
+ ),
+
+ 'last_name' => array(
+ 'rule' => array('notEmpty'),
+ 'message' => 'Please Enter the Last Name of the Contact',
+ 'required' => true,
+ 'allowEmpty' => false
+ ),
+ 'email' => array(
+ 'rule' => array('email'),
+ 'message' => 'Please a valid Email Address for the Contact',
+ 'required' => false,
+ 'allowEmpty' => true
+ )
+ );
+
+
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'Customer' => array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'contact_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+
+}
+?>
diff --git a/models/country.php b/models/country.php
new file mode 100755
index 00000000..a82d126d
--- /dev/null
+++ b/models/country.php
@@ -0,0 +1,56 @@
+ array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Address' => array('className' => 'Address',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'country_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/currency.php b/models/currency.php
new file mode 100755
index 00000000..e18f1b78
--- /dev/null
+++ b/models/currency.php
@@ -0,0 +1,47 @@
+ array('className' => 'Country',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'QuoteProduct' => array('className' => 'QuoteProduct',
+ 'foreignKey' => 'currency_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/customer.php b/models/customer.php
new file mode 100755
index 00000000..e7e86bf5
--- /dev/null
+++ b/models/customer.php
@@ -0,0 +1,70 @@
+ array(
+ 'rule' => 'isUnique',
+ 'message' => 'This Customer name is already taken or has been left blank',
+ 'required' => true,
+ 'allowEmpty' => false),
+ 'abn' => array(
+
+ 'numbers' => array(
+ 'rule' => 'numeric',
+ 'message' => 'ABN must only contain numbers - no letters or punctuation',
+ 'required' => true,
+ 'allowEmpty' => true),
+ 'minlength' => array(
+ 'rule' => array('minLength', '11'),
+ 'message' => 'ABN must be exactly 11 numbers long')
+ )
+ );
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'Address' => array('className' => 'Address',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Contact' => array('className' => 'Contact',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'customer_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/datasources/.svn/entries b/models/datasources/.svn/entries
new file mode 100644
index 00000000..30e8e162
--- /dev/null
+++ b/models/datasources/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/models/datasources
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/models/datasources/.svn/format b/models/datasources/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/models/datasources/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/models/datasources/.svn/prop-base/empty.svn-base b/models/datasources/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/models/datasources/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/models/datasources/.svn/text-base/empty.svn-base b/models/datasources/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/models/datasources/empty b/models/datasources/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/models/enquiry.php b/models/enquiry.php
new file mode 100755
index 00000000..2dcba5d3
--- /dev/null
+++ b/models/enquiry.php
@@ -0,0 +1,145 @@
+ array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'User ID must be selected',
+ 'on' => 'create'
+ ),
+
+ 'customer_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Customer for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'contact_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Contact for this Enquiry',
+ 'on' => 'create'
+ ),
+ 'customer_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Customer for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'state_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a State for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'country_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Country for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'principle_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Principle for this Enquiry',
+ 'on' => 'create'
+ ),
+
+ 'status_id' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must choose a Status for this Enquiry'
+ ),
+ 'gst' => array(
+ 'rule' => 'numeric',
+ 'required' => true,
+ 'message' => 'Must slect whether GST is applicable for this Enquiry',
+ 'on' => 'create'
+ )
+ );
+
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'User' => array('className' => 'User',
+ 'foreignKey' => 'user_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Customer' => array('className' => 'Customer',
+ 'foreignKey' => 'customer_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Contact' => array('className' => 'Contact',
+ 'foreignKey' => 'contact_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'State' => array('className' => 'State',
+ 'foreignKey' => 'state_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Country' => array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Principle' => array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Status' => array('className' => 'Status',
+ 'foreignKey' => 'status_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'BillingAddress' => array('className' => 'Address',
+ 'foreignKey' => 'billing_address_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'ShippingAddress' => array('className' => 'Address',
+ 'foreignKey' => 'shipping_address_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+
+
+ );
+
+ var $hasMany = array(
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'enquiry_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/group.php b/models/group.php
new file mode 100644
index 00000000..f277aa5b
--- /dev/null
+++ b/models/group.php
@@ -0,0 +1,31 @@
+ array('alphanumeric')
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'User' => array('className' => 'User',
+ 'foreignKey' => 'group_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+ var $actsAs = array('Acl' => array('requester'));
+
+ function parentNode() {
+ return null;
+ }
+}
+?>
diff --git a/models/principle.php b/models/principle.php
new file mode 100755
index 00000000..fb01b0ea
--- /dev/null
+++ b/models/principle.php
@@ -0,0 +1,50 @@
+ array('className' => 'Country',
+ 'foreignKey' => 'country_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Currency' => array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'principle_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'principle_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/product.php b/models/product.php
new file mode 100755
index 00000000..2ea42d28
--- /dev/null
+++ b/models/product.php
@@ -0,0 +1,20 @@
+ array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/product_option.php b/models/product_option.php
new file mode 100644
index 00000000..ddea7795
--- /dev/null
+++ b/models/product_option.php
@@ -0,0 +1,9 @@
+ array('numeric'),
+ 'revision' => array('alphanumeric'),
+ 'deliverytime' => array('alphanumeric'),
+ 'paymentterms' => array('alphanumeric'),
+ 'daysvalid' => array('numeric')
+
+ );
+
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $belongsTo = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'enquiry_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+ var $hasMany = array(
+ 'QuoteProduct' => array('className' => 'QuoteProduct',
+ 'foreignKey' => 'quote_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/quote_product.php b/models/quote_product.php
new file mode 100755
index 00000000..b989209a
--- /dev/null
+++ b/models/quote_product.php
@@ -0,0 +1,33 @@
+ array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'quote_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'product_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
diff --git a/models/quoted_product.php b/models/quoted_product.php
new file mode 100755
index 00000000..1391785e
--- /dev/null
+++ b/models/quoted_product.php
@@ -0,0 +1,35 @@
+ array('className' => 'Principle',
+ 'foreignKey' => 'principle_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Currency' => array('className' => 'Currency',
+ 'foreignKey' => 'currency_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Quote' => array('className' => 'Quote',
+ 'foreignKey' => 'quote_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ ),
+ 'Product' => array('className' => 'Product',
+ 'foreignKey' => 'product_id',
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/state.php b/models/state.php
new file mode 100755
index 00000000..42342667
--- /dev/null
+++ b/models/state.php
@@ -0,0 +1,35 @@
+ array('className' => 'Address',
+ 'foreignKey' => 'state_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ ),
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'state_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/status.php b/models/status.php
new file mode 100755
index 00000000..8375431b
--- /dev/null
+++ b/models/status.php
@@ -0,0 +1,23 @@
+ array('className' => 'Enquiry',
+ 'foreignKey' => 'status_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+}
+?>
\ No newline at end of file
diff --git a/models/user.php b/models/user.php
new file mode 100755
index 00000000..12ec7221
--- /dev/null
+++ b/models/user.php
@@ -0,0 +1,59 @@
+ array(
+ 'rule' => 'unique',
+ 'required' => true,
+ 'message' => 'Username must be unique'
+ ),
+
+ // 'password' => array('maxlength'),
+ 'email' => array('email'),
+ // 'job_title' => array('custom')
+ );
+ */
+ //The Associations below have been created with all possible keys, those that are not needed can be removed
+ var $hasMany = array(
+ 'Enquiry' => array('className' => 'Enquiry',
+ 'foreignKey' => 'user_id',
+ 'dependent' => false,
+ 'conditions' => '',
+ 'fields' => '',
+ 'order' => '',
+ 'limit' => '',
+ 'offset' => '',
+ 'exclusive' => '',
+ 'finderQuery' => '',
+ 'counterQuery' => ''
+ )
+ );
+
+
+ var $actsAs = array('Acl' => array('requester'));
+
+ function parentNode() {
+ if (!$this->id && empty($this->data)) {
+ return null;
+ }
+ $data = $this->data;
+ if (empty($this->data)) {
+ $data = $this->read();
+ }
+ if (!$data['User']['group_id']) {
+ return null;
+ }
+ else {
+ return array('Group' => array('id' => $data['User']['group_id']));
+ }
+ }
+
+
+
+}
+?>
diff --git a/plugins/.svn/entries b/plugins/.svn/entries
new file mode 100644
index 00000000..6203d3f8
--- /dev/null
+++ b/plugins/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/plugins
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/plugins/.svn/format b/plugins/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/plugins/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/plugins/.svn/prop-base/empty.svn-base b/plugins/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/plugins/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/plugins/.svn/text-base/empty.svn-base b/plugins/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/plugins/empty b/plugins/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/.svn/entries b/tests/.svn/entries
new file mode 100644
index 00000000..46071b6e
--- /dev/null
+++ b/tests/.svn/entries
@@ -0,0 +1,37 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+groups
+dir
+
+fixtures
+dir
+
+cases
+dir
+
diff --git a/tests/.svn/format b/tests/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/.svn/entries b/tests/cases/.svn/entries
new file mode 100644
index 00000000..e5f4b3a3
--- /dev/null
+++ b/tests/cases/.svn/entries
@@ -0,0 +1,43 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+behaviors
+dir
+
+helpers
+dir
+
+models
+dir
+
+components
+dir
+
+controllers
+dir
+
diff --git a/tests/cases/.svn/format b/tests/cases/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/behaviors/.svn/entries b/tests/cases/behaviors/.svn/entries
new file mode 100644
index 00000000..cab2c778
--- /dev/null
+++ b/tests/cases/behaviors/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases/behaviors
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/cases/behaviors/.svn/format b/tests/cases/behaviors/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/behaviors/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/behaviors/.svn/prop-base/empty.svn-base b/tests/cases/behaviors/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/behaviors/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/behaviors/.svn/text-base/empty.svn-base b/tests/cases/behaviors/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/cases/behaviors/empty b/tests/cases/behaviors/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/cases/components/.svn/entries b/tests/cases/components/.svn/entries
new file mode 100644
index 00000000..1fbec546
--- /dev/null
+++ b/tests/cases/components/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases/components
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/cases/components/.svn/format b/tests/cases/components/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/components/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/components/.svn/prop-base/empty.svn-base b/tests/cases/components/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/components/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/components/.svn/text-base/empty.svn-base b/tests/cases/components/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/cases/components/empty b/tests/cases/components/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/cases/controllers/.svn/entries b/tests/cases/controllers/.svn/entries
new file mode 100644
index 00000000..796d280b
--- /dev/null
+++ b/tests/cases/controllers/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases/controllers
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/cases/controllers/.svn/format b/tests/cases/controllers/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/controllers/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/controllers/.svn/prop-base/empty.svn-base b/tests/cases/controllers/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/controllers/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/controllers/.svn/text-base/empty.svn-base b/tests/cases/controllers/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/cases/controllers/empty b/tests/cases/controllers/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/cases/helpers/.svn/entries b/tests/cases/helpers/.svn/entries
new file mode 100644
index 00000000..14884634
--- /dev/null
+++ b/tests/cases/helpers/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases/helpers
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/cases/helpers/.svn/format b/tests/cases/helpers/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/helpers/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/helpers/.svn/prop-base/empty.svn-base b/tests/cases/helpers/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/helpers/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/helpers/.svn/text-base/empty.svn-base b/tests/cases/helpers/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/cases/helpers/empty b/tests/cases/helpers/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/cases/models/.svn/entries b/tests/cases/models/.svn/entries
new file mode 100644
index 00000000..ba631fa9
--- /dev/null
+++ b/tests/cases/models/.svn/entries
@@ -0,0 +1,54 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/cases/models
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+currency.test.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+34d7bc6c61d41086cd9bf4b39536f016
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/cases/models/.svn/format b/tests/cases/models/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/cases/models/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/cases/models/.svn/prop-base/currency.test.php.svn-base b/tests/cases/models/.svn/prop-base/currency.test.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/models/.svn/prop-base/currency.test.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/models/.svn/prop-base/empty.svn-base b/tests/cases/models/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/cases/models/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/cases/models/.svn/text-base/currency.test.php.svn-base b/tests/cases/models/.svn/text-base/currency.test.php.svn-base
new file mode 100644
index 00000000..297b41a0
--- /dev/null
+++ b/tests/cases/models/.svn/text-base/currency.test.php.svn-base
@@ -0,0 +1,38 @@
+Currency = new TestCurrency();
+ }
+
+ function testCurrencyInstance() {
+ $this->assertTrue(is_a($this->Currency, 'Currency'));
+ }
+
+ function testCurrencyFind() {
+ $results = $this->Currency->recursive = -1;
+ $results = $this->Currency->find('first');
+ $this->assertTrue(!empty($results));
+
+ $expected = array('Currency' => array(
+ 'id' => 1,
+ 'name' => 'Lorem ipsum dolor sit amet',
+ 'symbol' => 'Lorem ipsum dolor sit ame',
+ 'iso4217' => 'L'
+ ));
+ $this->assertEqual($results, $expected);
+ }
+}
+?>
\ No newline at end of file
diff --git a/tests/cases/models/.svn/text-base/empty.svn-base b/tests/cases/models/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/cases/models/currency.test.php b/tests/cases/models/currency.test.php
new file mode 100755
index 00000000..297b41a0
--- /dev/null
+++ b/tests/cases/models/currency.test.php
@@ -0,0 +1,38 @@
+Currency = new TestCurrency();
+ }
+
+ function testCurrencyInstance() {
+ $this->assertTrue(is_a($this->Currency, 'Currency'));
+ }
+
+ function testCurrencyFind() {
+ $results = $this->Currency->recursive = -1;
+ $results = $this->Currency->find('first');
+ $this->assertTrue(!empty($results));
+
+ $expected = array('Currency' => array(
+ 'id' => 1,
+ 'name' => 'Lorem ipsum dolor sit amet',
+ 'symbol' => 'Lorem ipsum dolor sit ame',
+ 'iso4217' => 'L'
+ ));
+ $this->assertEqual($results, $expected);
+ }
+}
+?>
\ No newline at end of file
diff --git a/tests/cases/models/empty b/tests/cases/models/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/fixtures/.svn/entries b/tests/fixtures/.svn/entries
new file mode 100644
index 00000000..a20fc239
--- /dev/null
+++ b/tests/fixtures/.svn/entries
@@ -0,0 +1,54 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/fixtures
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+currency_fixture.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+b1fbcb9fc3ab9a88905c47e62c353c5d
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/fixtures/.svn/format b/tests/fixtures/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/fixtures/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/fixtures/.svn/prop-base/currency_fixture.php.svn-base b/tests/fixtures/.svn/prop-base/currency_fixture.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/fixtures/.svn/prop-base/currency_fixture.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/fixtures/.svn/prop-base/empty.svn-base b/tests/fixtures/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/fixtures/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/fixtures/.svn/text-base/currency_fixture.php.svn-base b/tests/fixtures/.svn/text-base/currency_fixture.php.svn-base
new file mode 100644
index 00000000..e98300a2
--- /dev/null
+++ b/tests/fixtures/.svn/text-base/currency_fixture.php.svn-base
@@ -0,0 +1,22 @@
+ array('type'=>'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
+ 'name' => array('type'=>'string', 'null' => false, 'default' => NULL),
+ 'symbol' => array('type'=>'string', 'null' => false, 'default' => NULL, 'length' => 1),
+ 'iso4217' => array('type'=>'string', 'null' => false, 'default' => NULL, 'length' => 3),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+ var $records = array(array(
+ 'id' => 1,
+ 'name' => 'Lorem ipsum dolor sit amet',
+ 'symbol' => 'Lorem ipsum dolor sit ame',
+ 'iso4217' => 'L'
+ ));
+}
+?>
\ No newline at end of file
diff --git a/tests/fixtures/.svn/text-base/empty.svn-base b/tests/fixtures/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/fixtures/currency_fixture.php b/tests/fixtures/currency_fixture.php
new file mode 100755
index 00000000..e98300a2
--- /dev/null
+++ b/tests/fixtures/currency_fixture.php
@@ -0,0 +1,22 @@
+ array('type'=>'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
+ 'name' => array('type'=>'string', 'null' => false, 'default' => NULL),
+ 'symbol' => array('type'=>'string', 'null' => false, 'default' => NULL, 'length' => 1),
+ 'iso4217' => array('type'=>'string', 'null' => false, 'default' => NULL, 'length' => 3),
+ 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
+ );
+ var $records = array(array(
+ 'id' => 1,
+ 'name' => 'Lorem ipsum dolor sit amet',
+ 'symbol' => 'Lorem ipsum dolor sit ame',
+ 'iso4217' => 'L'
+ ));
+}
+?>
\ No newline at end of file
diff --git a/tests/fixtures/empty b/tests/fixtures/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tests/groups/.svn/entries b/tests/groups/.svn/entries
new file mode 100644
index 00000000..64d0ae84
--- /dev/null
+++ b/tests/groups/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tests/groups
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tests/groups/.svn/format b/tests/groups/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tests/groups/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tests/groups/.svn/prop-base/empty.svn-base b/tests/groups/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/tests/groups/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tests/groups/.svn/text-base/empty.svn-base b/tests/groups/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/groups/empty b/tests/groups/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/.svn/entries b/tmp/.svn/entries
new file mode 100644
index 00000000..4b8ab65e
--- /dev/null
+++ b/tmp/.svn/entries
@@ -0,0 +1,40 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+tests
+dir
+
+cache
+dir
+
+logs
+dir
+
+sessions
+dir
+
diff --git a/tmp/.svn/format b/tmp/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/cache/.svn/entries b/tmp/cache/.svn/entries
new file mode 100644
index 00000000..c0177d3e
--- /dev/null
+++ b/tmp/cache/.svn/entries
@@ -0,0 +1,37 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/cache
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+persistent
+dir
+
+models
+dir
+
+views
+dir
+
diff --git a/tmp/cache/.svn/format b/tmp/cache/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/cache/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/cache/models/.svn/entries b/tmp/cache/models/.svn/entries
new file mode 100644
index 00000000..2afe3023
--- /dev/null
+++ b/tmp/cache/models/.svn/entries
@@ -0,0 +1,674 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/cache/models
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+cake_model_default_principles
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+326b055558f5d100fd5c835464e739f5
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+781
+
+cake_model_default_aros_acos
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+26697b5f76bb459c64d867990c47205c
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+729
+
+cake_model_default_countries
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+7a182aecd8c884c9791915a670b30c0b
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+321
+
+cake_model_default_contacts_addresses
+file
+
+
+
+
+2009-01-12T00:43:15.000000Z
+95e4e691c957bd6ab8d4f6f9d9f144d6
+2008-12-05T02:37:37.731048Z
+9
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+262
+
+cake_model_default_statuses
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+a0e9d8c3dfe98dd0ec61d33fa1b8a0ac
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+222
+
+cake_model_default_addresses
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+aaac9f53704399ac23fa8d72b83703fd
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+878
+
+cake_model_default_contacts
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+fa393a7e3e89d4fff98d14bc08bdd907
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+875
+
+cake_model_default_quotes
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+82d2a8db7c3036ae7da95d76fccc618a
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+994
+
+cake_model_default_quoted_products
+file
+
+
+
+
+2008-12-22T23:23:38.000000Z
+1a5e273b36284ac39c74b76a2f212c0f
+2008-12-24T01:25:35.332966Z
+11
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3078
+
+cake_model_default_customers
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+8436482deb0322032556b711a3e550ab
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+404
+
+cake_model_default_acos
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+41714173f8a73103b7c9e7632b75eb3e
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+691
+
+cake_model_default_cake_sessions
+file
+
+
+
+
+2009-01-09T01:01:28.000000Z
+823d1425e4901d6a5213ed9da4720374
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+315
+
+cake_model_default_quotenik_list
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+9e99124898461a9f587f55a4ec737b8e
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+497
+
+cake_model_default_users
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+d0c6a2e069d84d75d48eb00bcaa9f1d5
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+796
+
+cake_model_default_currencies
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+d62ebb602ce32027b947678a505cf675
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+405
+
+cake_model_default_products
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+372f37fd56ca2fa05caa2f8f6f39595d
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1394
+
+cake_model_default_states
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+1226a217a823165f00b3a69add4a9196
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+410
+
+cake_model_default_enquiries
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+edf29d70fcd343baea0d6ebe7ef722b8
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1580
+
+cake_model_default_aros
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+41714173f8a73103b7c9e7632b75eb3e
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+691
+
diff --git a/tmp/cache/models/.svn/format b/tmp/cache/models/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/cache/models/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_acos.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_acos.svn-base
new file mode 100644
index 00000000..f47d6fe4
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_acos.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_addresses.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_addresses.svn-base
new file mode 100644
index 00000000..461270c6
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_addresses.svn-base
@@ -0,0 +1,2 @@
+1231736933
+a:9:{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: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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_aros.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_aros.svn-base
new file mode 100644
index 00000000..f47d6fe4
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_aros.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_aros_acos.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_aros_acos.svn-base
new file mode 100644
index 00000000..a752c14b
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_aros_acos.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_cake_sessions.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_cake_sessions.svn-base
new file mode 100644
index 00000000..af6abfa2
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_cake_sessions.svn-base
@@ -0,0 +1,2 @@
+1231462898
+a:3:{s:2:"id";a:5:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:0:"";s:6:"length";i:255;s:3:"key";s:7:"primary";}s:4:"data";a:4:{s:4:"type";s:4:"text";s:4:"null";b:1;s:7:"default";N;s:6:"length";N;}s:7:"expires";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_contacts.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_contacts.svn-base
new file mode 100644
index 00000000..4d460ae0
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_contacts.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_contacts_addresses.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_contacts_addresses.svn-base
new file mode 100644
index 00000000..5d0f8426
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_contacts_addresses.svn-base
@@ -0,0 +1,2 @@
+1228444559
+a:2:{s:10:"contact_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:"address_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";}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_countries.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_countries.svn-base
new file mode 100644
index 00000000..23f9b526
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_countries.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_currencies.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_currencies.svn-base
new file mode 100644
index 00000000..a7a7d781
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_currencies.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_customers.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_customers.svn-base
new file mode 100644
index 00000000..35499cca
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_customers.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_enquiries.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_enquiries.svn-base
new file mode 100644
index 00000000..dc4d0f1f
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_enquiries.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_principles.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_principles.svn-base
new file mode 100644
index 00000000..b5fa0c06
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_principles.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_products.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_products.svn-base
new file mode 100644
index 00000000..627b0672
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_products.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_quoted_products.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_quoted_products.svn-base
new file mode 100644
index 00000000..ef03b872
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_quoted_products.svn-base
@@ -0,0 +1,2 @@
+1229988228
+a:32:{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: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: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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_quotenik_list.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_quotenik_list.svn-base
new file mode 100644
index 00000000..019cb1c2
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_quotenik_list.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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";}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_quotes.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_quotes.svn-base
new file mode 100644
index 00000000..63889993
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_quotes.svn-base
@@ -0,0 +1,2 @@
+1231736933
+a:10:{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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_states.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_states.svn-base
new file mode 100644
index 00000000..f1cab711
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_states.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_statuses.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_statuses.svn-base
new file mode 100644
index 00000000..40fd38ea
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_statuses.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/.svn/text-base/cake_model_default_users.svn-base b/tmp/cache/models/.svn/text-base/cake_model_default_users.svn-base
new file mode 100644
index 00000000..d08bfe52
--- /dev/null
+++ b/tmp/cache/models/.svn/text-base/cake_model_default_users.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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;}}
diff --git a/tmp/cache/models/cake_model_default_acos b/tmp/cache/models/cake_model_default_acos
new file mode 100644
index 00000000..fd206fd1
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_acos
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_addresses b/tmp/cache/models/cake_model_default_addresses
new file mode 100644
index 00000000..af136175
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_addresses
@@ -0,0 +1,2 @@
+1231821817
+a:9:{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: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;}}
diff --git a/tmp/cache/models/cake_model_default_addresses_enquiries b/tmp/cache/models/cake_model_default_addresses_enquiries
new file mode 100644
index 00000000..091dd59c
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_addresses_enquiries
@@ -0,0 +1,2 @@
+1231127225
+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:10:"enquiry_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:"address_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}
diff --git a/tmp/cache/models/cake_model_default_aros b/tmp/cache/models/cake_model_default_aros
new file mode 100644
index 00000000..fd206fd1
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_aros
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_aros_acos b/tmp/cache/models/cake_model_default_aros_acos
new file mode 100644
index 00000000..d8cb7f42
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_aros_acos
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_cake_sessions b/tmp/cache/models/cake_model_default_cake_sessions
new file mode 100644
index 00000000..af6abfa2
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_cake_sessions
@@ -0,0 +1,2 @@
+1231462898
+a:3:{s:2:"id";a:5:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";s:0:"";s:6:"length";i:255;s:3:"key";s:7:"primary";}s:4:"data";a:4:{s:4:"type";s:4:"text";s:4:"null";b:1;s:7:"default";N;s:6:"length";N;}s:7:"expires";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}}
diff --git a/tmp/cache/models/cake_model_default_contacts b/tmp/cache/models/cake_model_default_contacts
new file mode 100644
index 00000000..192b6cf7
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_contacts
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_contacts_addresses b/tmp/cache/models/cake_model_default_contacts_addresses
new file mode 100644
index 00000000..5d0f8426
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_contacts_addresses
@@ -0,0 +1,2 @@
+1228444559
+a:2:{s:10:"contact_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:"address_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";}}
diff --git a/tmp/cache/models/cake_model_default_countries b/tmp/cache/models/cake_model_default_countries
new file mode 100644
index 00000000..ed6492c7
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_countries
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_currencies b/tmp/cache/models/cake_model_default_currencies
new file mode 100644
index 00000000..bf143f0c
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_currencies
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_customers b/tmp/cache/models/cake_model_default_customers
new file mode 100644
index 00000000..d478c234
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_customers
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_enquiries b/tmp/cache/models/cake_model_default_enquiries
new file mode 100644
index 00000000..df2e1f2d
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_enquiries
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_enquiries_addresses b/tmp/cache/models/cake_model_default_enquiries_addresses
new file mode 100644
index 00000000..8a55a006
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_enquiries_addresses
@@ -0,0 +1,2 @@
+1231118072
+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:10:"enquiry_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:"address_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}
diff --git a/tmp/cache/models/cake_model_default_groups b/tmp/cache/models/cake_model_default_groups
new file mode 100644
index 00000000..367bdb78
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_groups
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_job_products b/tmp/cache/models/cake_model_default_job_products
new file mode 100644
index 00000000..09b4e6d9
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_job_products
@@ -0,0 +1,2 @@
+1231462899
+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:17:"quoted_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:6:"job_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}
diff --git a/tmp/cache/models/cake_model_default_jobs b/tmp/cache/models/cake_model_default_jobs
new file mode 100644
index 00000000..18119156
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_jobs
@@ -0,0 +1,2 @@
+1231462899
+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:"created";a:4:{s:4:"type";s:8:"datetime";s:4:"null";b:0;s:7:"default";N;s:6:"length";N;}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: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: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:12:"jobstatus_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;}}
diff --git a/tmp/cache/models/cake_model_default_jobstatus b/tmp/cache/models/cake_model_default_jobstatus
new file mode 100644
index 00000000..c7e573bf
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_jobstatus
@@ -0,0 +1,2 @@
+1231462899
+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;}}
diff --git a/tmp/cache/models/cake_model_default_principle_contacts b/tmp/cache/models/cake_model_default_principle_contacts
new file mode 100644
index 00000000..611aa852
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_principle_contacts
@@ -0,0 +1,2 @@
+1231462899
+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;}}
diff --git a/tmp/cache/models/cake_model_default_principles b/tmp/cache/models/cake_model_default_principles
new file mode 100644
index 00000000..ad04cd5e
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_principles
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_product_options b/tmp/cache/models/cake_model_default_product_options
new file mode 100644
index 00000000..46a4ea8c
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_product_options
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_products b/tmp/cache/models/cake_model_default_products
new file mode 100644
index 00000000..238aaa40
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_products
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_quote_products b/tmp/cache/models/cake_model_default_quote_products
new file mode 100644
index 00000000..1e243490
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_quote_products
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_quoted_products b/tmp/cache/models/cake_model_default_quoted_products
new file mode 100644
index 00000000..ef03b872
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_quoted_products
@@ -0,0 +1,2 @@
+1229988228
+a:32:{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: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: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;}}
diff --git a/tmp/cache/models/cake_model_default_quotenik_list b/tmp/cache/models/cake_model_default_quotenik_list
new file mode 100644
index 00000000..5d167c1a
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_quotenik_list
@@ -0,0 +1,2 @@
+1231821817
+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";}
diff --git a/tmp/cache/models/cake_model_default_quotes b/tmp/cache/models/cake_model_default_quotes
new file mode 100644
index 00000000..668f0434
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_quotes
@@ -0,0 +1,2 @@
+1231821817
+a:10:{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;}}
diff --git a/tmp/cache/models/cake_model_default_states b/tmp/cache/models/cake_model_default_states
new file mode 100644
index 00000000..0a2076dc
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_states
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_statuses b/tmp/cache/models/cake_model_default_statuses
new file mode 100644
index 00000000..367bdb78
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_statuses
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/models/cake_model_default_users b/tmp/cache/models/cake_model_default_users
new file mode 100644
index 00000000..f850a0d7
--- /dev/null
+++ b/tmp/cache/models/cake_model_default_users
@@ -0,0 +1,2 @@
+1231821817
+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;}}
diff --git a/tmp/cache/persistent/.svn/entries b/tmp/cache/persistent/.svn/entries
new file mode 100644
index 00000000..d4e23738
--- /dev/null
+++ b/tmp/cache/persistent/.svn/entries
@@ -0,0 +1,198 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/cache/persistent
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+cake_core_core_paths
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+37249c93cf29400c1628a909f1a8d340
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+715
+
+cake_core_dir_map
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+75573ba9654b28c0cc795922c8649512
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3950
+
+cake_core_file_map
+file
+18
+
+
+
+2009-01-12T05:08:43.000000Z
+35528a8200a30e3575b85f902a4b65e2
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3622
+
+cake_core_default_en_us
+file
+
+
+
+
+2009-01-11T08:58:46.000000Z
+b2310ab8d09466cb3a9ba4a37d9b00a1
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+114
+
+cake_core_object_map
+file
+
+
+
+
+2009-01-12T00:43:15.000000Z
+f5b34fd29c23ef4aa3cf0224f59eee9c
+2008-12-05T04:15:22.634240Z
+10
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+18
+
diff --git a/tmp/cache/persistent/.svn/format b/tmp/cache/persistent/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/cache/persistent/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/cache/persistent/.svn/text-base/cake_core_core_paths.svn-base b/tmp/cache/persistent/.svn/text-base/cake_core_core_paths.svn-base
new file mode 100644
index 00000000..0915714c
--- /dev/null
+++ b/tmp/cache/persistent/.svn/text-base/cake_core_core_paths.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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/";}}
diff --git a/tmp/cache/persistent/.svn/text-base/cake_core_default_en_us.svn-base b/tmp/cache/persistent/.svn/text-base/cake_core_default_en_us.svn-base
new file mode 100644
index 00000000..144dbbb3
--- /dev/null
+++ b/tmp/cache/persistent/.svn/text-base/cake_core_default_en_us.svn-base
@@ -0,0 +1,2 @@
+1231664336
+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:{}}}}
diff --git a/tmp/cache/persistent/.svn/text-base/cake_core_dir_map.svn-base b/tmp/cache/persistent/.svn/text-base/cake_core_dir_map.svn-base
new file mode 100644
index 00000000..d084bcfc
--- /dev/null
+++ b/tmp/cache/persistent/.svn/text-base/cake_core_dir_map.svn-base
@@ -0,0 +1,2 @@
+1231736933
+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";}}
diff --git a/tmp/cache/persistent/.svn/text-base/cake_core_file_map.svn-base b/tmp/cache/persistent/.svn/text-base/cake_core_file_map.svn-base
new file mode 100644
index 00000000..43bf58da
--- /dev/null
+++ b/tmp/cache/persistent/.svn/text-base/cake_core_file_map.svn-base
@@ -0,0 +1,2 @@
+1231736933
+a:6:{s:4:"Core";a:16:{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:8:"Sanitize";s:43:"/var/www/quotenik1.2/cake/libs/sanitize.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:"EnquiriesController";s:61:"/var/www/quotenik1.2/app/controllers/enquiries_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:"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: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:"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:7:"Contact";s:43:"/var/www/quotenik1.2/app/models/contact.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:8:{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:10:"AjaxHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/ajax.php";s:15:"PaginatorHelper";s:57:"/var/www/quotenik1.2/cake/libs/view/helpers/paginator.php";s:13:"SessionHelper";s:55:"/var/www/quotenik1.2/cake/libs/view/helpers/session.php";}}
diff --git a/tmp/cache/persistent/.svn/text-base/cake_core_object_map.svn-base b/tmp/cache/persistent/.svn/text-base/cake_core_object_map.svn-base
new file mode 100644
index 00000000..15e6b177
--- /dev/null
+++ b/tmp/cache/persistent/.svn/text-base/cake_core_object_map.svn-base
@@ -0,0 +1,2 @@
+1228453819
+a:0:{}
diff --git a/tmp/cache/persistent/cake_core_core_paths b/tmp/cache/persistent/cake_core_core_paths
new file mode 100644
index 00000000..996a2a2b
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_core_paths
@@ -0,0 +1,2 @@
+1231821817
+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/";}}
diff --git a/tmp/cache/persistent/cake_core_default_en_au b/tmp/cache/persistent/cake_core_default_en_au
new file mode 100644
index 00000000..c2266474
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_default_en_au
@@ -0,0 +1,2 @@
+1231031790
+a:1:{s:11:"LC_MESSAGES";a:2:{s:0:"";a:1:{s:7:"default";a:0:{}}s:5:"en-au";a:1:{s:7:"default";a:0:{}}}}
diff --git a/tmp/cache/persistent/cake_core_default_en_gb b/tmp/cache/persistent/cake_core_default_en_gb
new file mode 100644
index 00000000..83f562bd
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_default_en_gb
@@ -0,0 +1,2 @@
+1231821817
+a:1:{s:11:"LC_MESSAGES";a:2:{s:0:"";a:1:{s:7:"default";a:0:{}}s:5:"en-gb";a:1:{s:7:"default";a:0:{}}}}
diff --git a/tmp/cache/persistent/cake_core_default_en_us b/tmp/cache/persistent/cake_core_default_en_us
new file mode 100644
index 00000000..144dbbb3
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_default_en_us
@@ -0,0 +1,2 @@
+1231664336
+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:{}}}}
diff --git a/tmp/cache/persistent/cake_core_dir_map b/tmp/cache/persistent/cake_core_dir_map
new file mode 100644
index 00000000..b4c15c6d
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_dir_map
@@ -0,0 +1,2 @@
+1231821820
+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";}}
diff --git a/tmp/cache/persistent/cake_core_file_map b/tmp/cache/persistent/cake_core_file_map
new file mode 100644
index 00000000..9b325320
--- /dev/null
+++ b/tmp/cache/persistent/cake_core_file_map
@@ -0,0 +1,2 @@
+1231821820
+a:6:{s:4:"Core";a:16:{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:8:"Sanitize";s:43:"/var/www/quotenik1.2/cake/libs/sanitize.php";}s:10:"Controller";a:3:{s:13:"AppController";s:60:"/var/www/quotenik1.2/cake/libs/controller/app_controller.php";s:15:"UsersController";s:57:"/var/www/quotenik1.2/app/controllers/users_controller.php";s:19:"EnquiriesController";s:61:"/var/www/quotenik1.2/app/controllers/enquiries_controller.php";}s:9:"Component";a:4:{s:16:"SessionComponent";s:64:"/var/www/quotenik1.2/cake/libs/controller/components/session.php";s:12:"AclComponent";s:60:"/var/www/quotenik1.2/cake/libs/controller/components/acl.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: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:"Enquiry";s:43:"/var/www/quotenik1.2/app/models/enquiry.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:"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:7:"Contact";s:43:"/var/www/quotenik1.2/app/models/contact.php";s:6:"Status";s:42:"/var/www/quotenik1.2/app/models/status.php";}s:8:"Behavior";a:2:{s:12:"TreeBehavior";s:55:"/var/www/quotenik1.2/cake/libs/model/behaviors/tree.php";s:11:"AclBehavior";s:54:"/var/www/quotenik1.2/cake/libs/model/behaviors/acl.php";}s:6:"Helper";a:8:{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:15:"PaginatorHelper";s:57:"/var/www/quotenik1.2/cake/libs/view/helpers/paginator.php";s:10:"AjaxHelper";s:52:"/var/www/quotenik1.2/cake/libs/view/helpers/ajax.php";s:13:"SessionHelper";s:55:"/var/www/quotenik1.2/cake/libs/view/helpers/session.php";}}
diff --git a/tmp/cache/views/.svn/entries b/tmp/cache/views/.svn/entries
new file mode 100644
index 00000000..011cd66e
--- /dev/null
+++ b/tmp/cache/views/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/cache/views
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tmp/cache/views/.svn/format b/tmp/cache/views/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/cache/views/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/cache/views/.svn/prop-base/empty.svn-base b/tmp/cache/views/.svn/prop-base/empty.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/cache/views/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/cache/views/.svn/text-base/empty.svn-base b/tmp/cache/views/.svn/text-base/empty.svn-base
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/cache/views/empty b/tmp/cache/views/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/logs/.svn/entries b/tmp/logs/.svn/entries
new file mode 100644
index 00000000..bf921232
--- /dev/null
+++ b/tmp/logs/.svn/entries
@@ -0,0 +1,109 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/logs
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+debug.log
+file
+
+
+
+
+2009-01-12T00:10:53.000000Z
+5b26e74e7b0f01572b570e6e3733235e
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+58502
+
+error.log
+file
+
+
+
+
+2009-01-12T00:30:38.000000Z
+89c5627a4e8b043a26a35cb498416985
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+99212
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tmp/logs/.svn/format b/tmp/logs/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/logs/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/logs/.svn/prop-base/debug.log.svn-base b/tmp/logs/.svn/prop-base/debug.log.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/logs/.svn/prop-base/debug.log.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/logs/.svn/prop-base/empty.svn-base b/tmp/logs/.svn/prop-base/empty.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/logs/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/logs/.svn/prop-base/error.log.svn-base b/tmp/logs/.svn/prop-base/error.log.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/logs/.svn/prop-base/error.log.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/logs/.svn/text-base/debug.log.svn-base b/tmp/logs/.svn/text-base/debug.log.svn-base
new file mode 100644
index 00000000..f641590a
--- /dev/null
+++ b/tmp/logs/.svn/text-base/debug.log.svn-base
@@ -0,0 +1,498 @@
+2008-10-02 13:47:46 Notice: Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application in [CORE/cake/libs/debugger.php, line 522]
+2008-10-02 13:48:17 Notice: Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application in [CORE/cake/libs/debugger.php, line 522]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: min in [CORE/cake/libs/validation.php, line 164]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: max in [CORE/cake/libs/validation.php, line 164]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: max in [CORE/cake/libs/validation.php, line 603]
+2008-10-03 01:41:16 Notice: Notice (8): Undefined variable: currencies in [APP/views/countries/add.ctp, line 7]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: firstpage in [APP/views/enquiries/view.ctp, line 112]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: deliverytime in [APP/views/enquiries/view.ctp, line 114]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: paymentterms in [APP/views/enquiries/view.ctp, line 115]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: daysvalid in [APP/views/enquiries/view.ctp, line 116]
+2008-11-11 23:57:04 Notice: Notice (8): Undefined index: first_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:04 Notice: Notice (8): Undefined index: last_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:16 Notice: Notice (8): Undefined index: first_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:16 Notice: Notice (8): Undefined index: last_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-13 17:29:50 Notice: Notice (8): Undefined index: created in [APP/views/enquiries/index.ctp, line 34]
+2008-11-14 07:34:42 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:51:51 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:54:26 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:54:28 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-15 17:27:38 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:40 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:46 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:54 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:56 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:58 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:11 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:13 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:57 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:57 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:04 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:17 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:18 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:39 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:40 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:43 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:15 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:16 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:45 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:48 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:49 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:50 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:51 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:54 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:31:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:34:48 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:35:06 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:35:07 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-16 10:34:40 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-16 10:34:45 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-16 11:29:17 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 14:46:35 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:12:23 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:12:57 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:13:50 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 13]
+2008-11-16 17:23:39 Notice: Notice (8): Undefined variable: customerid in [APP/views/enquiries/update_contacts.ctp, line 11]
+2008-11-16 17:25:26 Notice: Notice (8): Undefined variable: customerid in [APP/views/enquiries/update_contacts.ctp, line 11]
+2008-11-16 18:03:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 18:04:40 Notice: Notice (8): Undefined variable: customername in [APP/controllers/enquiries_controller.php, line 156]
+2008-11-16 18:09:12 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-17 21:48:09 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: state_id in [APP/controllers/enquiries_controller.php, line 41]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: principle_id in [APP/controllers/enquiries_controller.php, line 42]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: state_id in [APP/controllers/enquiries_controller.php, line 76]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 120]
+2008-11-17 22:05:01 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-17 22:11:02 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-17 22:14:16 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-17 22:14:16 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 120]
+2008-11-19 10:35:05 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:17:09 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:18:17 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:19:07 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:19:34 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 13:32:16 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 52]
+2008-11-19 18:05:50 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 52]
+2008-11-19 18:29:10 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 54]
+2008-11-19 19:01:46 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-22 19:46:47 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:49:48 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:49:48 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:53:50 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:53:50 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:54:14 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:54:14 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:56:25 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:56:25 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:56:31 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:57:34 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:59:23 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:48:06 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:50:04 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:52:26 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 19:55:24 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 19:55:35 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 20:54:57 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 20:54:57 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 20:56:59 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 22:34:40 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:16 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:44 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:54 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:54 Notice: Notice (8): Undefined variable: current_user in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:44:00 Notice: Notice (8): Undefined variable: current_user in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:44:18 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:44:18 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:46:30 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 70]
+2008-11-24 11:27:34 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-24 13:07:01 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 13:59:04 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:06:58 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:07:09 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:14:13 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:14:32 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-25 17:05:19 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-25 17:05:19 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-25 17:05:20 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-25 17:06:21 Notice: Notice (8): Use of undefined constant label - assumed 'label' in [APP/views/addresses/add.ctp, line 6]
+2008-11-25 17:13:21 Notice: Notice (8): Undefined property: Address::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-25 17:13:39 Notice: Notice (8): Undefined property: Contact::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 19:35:51 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined index: step in [APP/controllers/enquiries_controller.php, line 37]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined index: step in [APP/controllers/enquiries_controller.php, line 37]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:47:18 Notice: Notice (8): Undefined property: EnquiriesController::$Enqiry in [APP/controllers/enquiries_controller.php, line 62]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 30]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/controllers/enquiries_controller.php, line 32]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 30]
+2008-11-26 19:50:26 Notice: Notice (8): Undefined variable: customer in [APP/controllers/enquiries_controller.php, line 32]
+2008-11-26 19:50:26 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 66]
+2008-11-26 19:52:29 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 19:53:37 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 19:54:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 21:45:12 Notice: Notice (8): Undefined variable: time in [APP/views/customers/index.ctp, line 36]
+2008-11-26 21:50:29 Notice: Notice (8): Undefined property: Contact::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:51:48 Notice: Notice (8): Undefined property: Customer::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:53:01 Notice: Notice (8): Undefined property: Customer::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:53:10 Notice: Notice (8): Undefined property: Address::$Country in [APP/controllers/addresses_controller.php, line 31]
+2008-12-05 13:49:28 Notice: Notice (8): Undefined property: Contact::$Address in [APP/controllers/contacts_controller.php, line 30]
+2008-12-05 14:34:42 Notice: Notice (8): Undefined property: Address::$Contact in [APP/controllers/addresses_controller.php, line 32]
+2008-12-11 17:59:21 Notice: Notice (8): Undefined index: name in [APP/views/enquiries/view.ctp, line 12]
+2008-12-15 12:12:16 Notice: Notice (8): Undefined property: UsersController::$Auth in [APP/controllers/users_controller.php, line 8]
+2008-12-15 12:13:07 Notice: Notice (8): Undefined property: UsersController::$Auth in [APP/controllers/users_controller.php, line 8]
+2008-12-15 12:23:18 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-12-15 12:44:04 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:44:04 Notice: Notice (8): Undefined property: EnquiriesController::$Auth in [APP/controllers/enquiries_controller.php, line 37]
+2008-12-15 12:50:28 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:50:28 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:50:40 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 13:00:07 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 13:00:35 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 19:17:03 Notice: Notice (8): Undefined index: title in [APP/views/enquiries/edit.ctp, line 4]
+2008-12-15 20:09:23 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/edit.ctp, line 8]
+2008-12-23 11:48:17 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 14:32:37 Notice: Notice (8): Undefined index: address1 in [APP/views/customers/view.ctp, line 62]
+2008-12-23 14:33:48 Notice: Notice (8): Undefined index: address1 in [APP/views/customers/view.ctp, line 61]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: comments in [APP/views/customers/view.ctp, line 109]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 111]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 112]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 113]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 111]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 112]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 113]
+2008-12-23 14:58:18 Notice: Notice (8): Undefined variable: address in [APP/views/customers/view.ctp, line 54]
+2008-12-23 14:58:18 Notice: Notice (8): Undefined variable: address in [APP/views/customers/view.ctp, line 55]
+2008-12-23 15:27:06 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:29:58 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:01 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:34:40 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 19:22:10 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:32:58 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-23 19:33:35 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:36:09 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:42:48 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:42:50 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:43:00 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:27 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:30 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:36 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 22:26:32 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:28:28 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:31:00 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:09 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:11 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:12 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:33:17 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 416]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: options in [CORE/cake/libs/view/helpers/paginator.php, line 419]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 420]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 421]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: page in [CORE/cake/libs/view/helpers/paginator.php, line 436]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: current in [CORE/cake/libs/view/helpers/paginator.php, line 438]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 439]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined variable: time in [APP/views/elements/enquiry_table.ctp, line 54]
+2008-12-23 22:41:22 Notice: Notice (8): Undefined variable: time in [APP/views/elements/enquiry_table.ctp, line 39]
+2008-12-23 23:13:49 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-24 12:17:38 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:48 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:53 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:59 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:18:02 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:47 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:47 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:50 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:53 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:22:08 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:22:59 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:23:06 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:33:15 Notice: Notice (8): Undefined index: username in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:15 Notice: Notice (8): Undefined index: id in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:39 Notice: Notice (8): Undefined index: username in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:39 Notice: Notice (8): Undefined index: id in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:34:05 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 152]
+2008-12-24 18:15:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-25 10:22:22 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-25 23:40:18 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-26 13:37:38 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2008-12-26 19:02:37 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-26 21:30:15 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:30:15 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:37:32 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 50]
+2008-12-26 21:37:32 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 50]
+2008-12-26 21:56:57 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:56:57 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-27 00:04:54 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:06:09 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:11:31 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:11:44 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:16:09 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:18:06 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-28 11:34:02 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2008-12-31 11:27:32 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-31 13:14:21 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: revision in [APP/views/enquiries/view.ctp, line 87]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: created in [APP/views/enquiries/view.ctp, line 88]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: id in [APP/views/enquiries/view.ctp, line 90]
+2008-12-31 15:41:07 Notice: Notice (8): Undefined index: Quote in [APP/views/enquiries/view.ctp, line 80]
+2009-01-02 13:24:27 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 09:37:58 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2009-01-05 10:02:40 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 10:46:53 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2009-01-05 11:56:35 Notice: Notice (8): Undefined index: address1 in [APP/views/addresses/index.ctp, line 37]
+2009-01-05 14:27:48 Notice: Notice (8): Undefined property: Enquiry::$Addresses in [APP/controllers/enquiries_controller.php, line 60]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 24]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 33]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 24]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 33]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:46:08 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:56:03 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:00:33 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:04:15 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 39]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 40]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 51]
+2009-01-05 15:24:10 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:30:09 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:31:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:35:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 29]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 31]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 34]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 35]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:37:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:40:22 Notice: Notice (8): Undefined property: Enquiry::$Address in [APP/controllers/enquiries_controller.php, line 222]
+2009-01-05 15:46:58 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:02:17 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:20:48 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:27:34 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:29:17 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:31:58 Notice: Notice (8): Undefined property: Enquiry::$Address in [APP/controllers/enquiries_controller.php, line 222]
+2009-01-05 16:37:46 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:40:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 17:09:25 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 29]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 31]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 32]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 34]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 35]
+2009-01-06 10:58:03 Notice: Notice (8): Undefined variable: customer_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 0 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 1 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 2 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 3 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:13:20 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:13:20 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:16:43 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:16:43 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:21:25 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:25 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:54 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:54 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:22:20 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:22:20 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:19 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:19 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:23 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:23 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:31 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:31 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:24:17 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:24:17 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:27:58 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:27:58 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:14 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:14 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:26 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:26 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:37 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:37 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:31:43 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:31:43 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:13 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:13 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:25 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:25 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:34 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:34 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:24 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:24 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:42 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:42 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:34:24 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:34:24 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined variable: i in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: Country in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined variable: addresses in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:59 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:59 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:42:09 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:42:09 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:45:05 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:45:05 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:48:33 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:48:33 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 48]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 51]
+2009-01-06 11:51:47 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:53:53 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 71]
+2009-01-06 11:53:53 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 71]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 48]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 51]
+2009-01-06 12:02:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 28]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 31]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 32]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/add.ctp, line 33]
+2009-01-06 12:03:38 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 122]
+2009-01-06 12:03:38 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 177]
+2009-01-06 12:04:32 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 122]
+2009-01-06 12:04:32 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 177]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:45:07 Notice: Notice (8): Undefined index: Address in [APP/views/customers/view.ctp, line 73]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:46:10 Notice: Notice (8): Undefined index: Address in [APP/views/elements/address_table.ctp, line 14]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-07 14:41:47 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2009-01-09 12:35:40 Notice: Notice (8): Undefined index: parent_id in [APP/views/groups/index.ctp, line 32]
+2009-01-09 14:52:46 Notice: Notice (8): Undefined property: UsersController::$Acl in [APP/controllers/users_controller.php, line 89]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2009-01-10 14:50:44 Notice: Notice (8): Undefined property: QuoteProduct::$Principle in [APP/controllers/quote_products_controller.php, line 30]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 76]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 76]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 75]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 32]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/add.ctp, line 33]
diff --git a/tmp/logs/.svn/text-base/empty.svn-base b/tmp/logs/.svn/text-base/empty.svn-base
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/logs/.svn/text-base/error.log.svn-base b/tmp/logs/.svn/text-base/error.log.svn-base
new file mode 100644
index 00000000..e869074f
--- /dev/null
+++ b/tmp/logs/.svn/text-base/error.log.svn-base
@@ -0,0 +1,448 @@
+2008-10-02 14:22:17 Warning: Warning (512): in [CORE/cake/libs/session.php, line 455]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 2 for Validation::between(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 161]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 3 for Validation::between(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 161]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 2 for Validation::maxLength(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 601]
+2008-10-02 19:58:41 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 19:58:51 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:04 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:09 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:42 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (512): SQL Error: 1054: Unknown column 'Currency.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:35:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (512): SQL Error: 1054: Unknown column 'Currency.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:35:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:37:18 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:08 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:09 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-11-12 00:09:47 Warning: Warning (512): SQL Error: 1052: Column 'id' in order clause is ambiguous in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-12 00:09:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/enquiries/index.ctp, line 25]
+2008-11-15 17:31:53 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-16 11:17:16 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_countries) [function.fopen ]: failed to open stream: No such file or directory in [CORE/cake/libs/file.php, line 146]
+2008-11-16 11:17:16 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-16 11:17:16 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 577]
+2008-11-16 11:17:27 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generateList' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:03:25 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:03:25 Warning: Warning (512): SQL Error: 1048: Column 'principle_code' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:14:16 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:14:16 Warning: Warning (512): SQL Error: 1048: Column 'principle_code' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 13:32:16 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 16:29:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 19:32:09 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-20 19:20:29 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-23 20:54:24 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-23 20:54:24 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 577]
+2008-11-23 20:54:57 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 20:54:57 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:34:40 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:16 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:44 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:54 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:44:18 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-24 13:07:01 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 577]
+2008-11-24 13:59:04 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 577]
+2008-11-24 14:06:58 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 577]
+2008-11-24 14:07:09 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 577]
+2008-11-24 14:14:13 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 577]
+2008-11-24 14:14:32 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 577]
+2008-11-25 17:05:19 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-26 19:35:51 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 577]
+2008-11-26 23:57:52 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:00:40 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:13:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:14:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:16:18 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:16:34 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:35:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:37:03 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:39:13 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:39:24 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:55:07 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:55:07 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 577]
+2008-11-27 00:57:19 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 12:43:00 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 14:52:04 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 14:52:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:10:19 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:15:57 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:15:57 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 577]
+2008-12-05 15:16:45 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:16:45 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 577]
+2008-12-05 15:17:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:17:43 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:20:17 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:12:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:31:30 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:34:08 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:38:37 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:42:26 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-11 12:06:31 Warning: Warning (512): Method JavascriptHelper::lnik does not exist in [CORE/cake/libs/view/helper.php, line 148]
+2008-12-15 12:44:04 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:28 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:28 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:40 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 13:00:07 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 13:00:35 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 11:47:14 Warning: Warning (512): SQL Error: 1048: Column 'target_gp' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-23 19:22:10 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:33:35 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:36:09 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:42:48 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:42:50 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:43:00 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:27 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:30 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:36 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 140]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 140]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 278]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 278]
+2008-12-23 22:50:28 Warning: Warning (512): SQL Error: 1048: Column 'days_valid' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 12:17:38 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17: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 587]
+2008-12-24 12:17:48 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:48 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 587]
+2008-12-24 12:17:53 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:53 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 587]
+2008-12-24 12:17:59 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:59 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 587]
+2008-12-24 12:18:02 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:47 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:47 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:50 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:53 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:22:08 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:22:08 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 587]
+2008-12-24 12:22:59 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:23:06 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:23:06 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 587]
+2008-12-24 15:16:50 Warning: Warning (512): SQL Error: 1054: Unknown column 'Contacts.customer_id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:16:50 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:16:51 Warning: Warning (512): SQL Error: 1054: Unknown column 'Contacts.customer_id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:16:51 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:17:07 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:17:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:17:53 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`id` asc LIMIT 100' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:17:53 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:36 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:36 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:36 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:36 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:52 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:27:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:52 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:30:31 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:31 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:30:33 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Contact`.`customer_id` asc, `Enquiry` `order` `Enquiry`.`id` asc' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:33 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:30:35 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Contact`.`customer_id` asc, `Enquiry` `order` `Enquiry`.`id` asc' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:35 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 18:07:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 18:07:12 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 18:08:05 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Customer`.`name` asc, `Enquiry` `order` `Enquiry`.`id` asc LIMI' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 18:08:05 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-25 23:40:18 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-25 23:40:18 Warning: Warning (2): array_merge_recursive() [function.array-merge-recursive ]: Argument #1 is not an array in [CORE/cake/libs/view/view.php, line 338]
+2008-12-25 23:40:18 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/view.php, line 339]
+2008-12-25 23:40:18 Warning: Warning (2): extract() [function.extract ]: First argument should be an array in [CORE/cake/libs/view/view.php, line 650]
+2008-12-26 21:30:15 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 587]
+2008-12-26 21:37:32 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 587]
+2008-12-27 00:11:31 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 587]
+2008-12-27 00:18:06 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 587]
+2008-12-30 20:38:17 Warning: Warning (512): SQL Error: 1048: Column 'days_valid' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 11:27:32 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 587]
+2008-12-31 13:11:44 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:12:34 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:14:51 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 13:14:51 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 587]
+2008-12-31 13:15:23 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 13:15:23 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 587]
+2008-12-31 13:28:50 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:34:58 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:00 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:28 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:50 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:59 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 15:41:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/enquiries/view.ctp, line 80]
+2009-01-05 14:28:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'Address.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 14:38:42 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/form.php, line 1141]
+2009-01-05 14:40:33 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/form.php, line 1141]
+2009-01-05 14:44:18 Warning: Warning (512): SQL Error: 1048: Column 'shipping_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 14:46:03 Warning: Warning (512): SQL Error: 1048: Column 'shipping_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 15:23:19 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-05 15:35:54 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 15:35:54 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 09:31:43 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 09:31:43 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 10:25:39 Warning: Warning (512): SQL Error: 1054: Unknown column 'BillingAddress.nameBillingAddress' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:14 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:40 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:45 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:57 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:47:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:47:12 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 10:50:08 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 12:02:43 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 12:02:44 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 12:03: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 587]
+2009-01-06 12:04:32 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 587]
+2009-01-06 15:45:07 Warning: Warning (2): array_merge_recursive() [function.array-merge-recursive ]: Argument #1 is not an array in [CORE/cake/libs/view/view.php, line 338]
+2009-01-06 15:45:07 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/view.php, line 339]
+2009-01-06 15:45:07 Warning: Warning (2): extract() [function.extract ]: First argument should be an array in [CORE/cake/libs/view/view.php, line 650]
+2009-01-06 15:46:10 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/elements/address_table.ctp, line 14]
+2009-01-09 13:33:55 Warning: Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
+(
+ [Aro0.model] => User
+ [Aro0.foreign_key] => 6
+)
+" in [CORE/cake/libs/model/db_acl.php, line 191]
+2009-01-09 13:33:55 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-09 14:53:10 Warning: Warning (512): DbAcl::allow() - Invalid node in [CORE/cake/libs/controller/components/acl.php, line 325]
+2009-01-09 14:53:10 Warning: Warning (512): DbAcl::allow() - Invalid node in [CORE/cake/libs/controller/components/acl.php, line 325]
+2009-01-10 14:43:27 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:43:27 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:43:28 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:43:28 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:47:21 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:47:21 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:47:22 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:47:22 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:49:05 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:49:05 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:49:22 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:49:22 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:50:32 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:50:32 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:50:32 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:50:32 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-12 09:43:20 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+2009-01-12 11:07:16 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+2009-01-12 11:09:17 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+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): SQL Error: 1048: Column 'abn' cannot be null 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]
diff --git a/tmp/logs/debug.log b/tmp/logs/debug.log
new file mode 100755
index 00000000..f641590a
--- /dev/null
+++ b/tmp/logs/debug.log
@@ -0,0 +1,498 @@
+2008-10-02 13:47:46 Notice: Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application in [CORE/cake/libs/debugger.php, line 522]
+2008-10-02 13:48:17 Notice: Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application in [CORE/cake/libs/debugger.php, line 522]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: min in [CORE/cake/libs/validation.php, line 164]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: max in [CORE/cake/libs/validation.php, line 164]
+2008-10-02 19:57:08 Notice: Notice (8): Undefined variable: max in [CORE/cake/libs/validation.php, line 603]
+2008-10-03 01:41:16 Notice: Notice (8): Undefined variable: currencies in [APP/views/countries/add.ctp, line 7]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: firstpage in [APP/views/enquiries/view.ctp, line 112]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: deliverytime in [APP/views/enquiries/view.ctp, line 114]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: paymentterms in [APP/views/enquiries/view.ctp, line 115]
+2008-11-11 23:55:23 Notice: Notice (8): Undefined index: daysvalid in [APP/views/enquiries/view.ctp, line 116]
+2008-11-11 23:57:04 Notice: Notice (8): Undefined index: first_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:04 Notice: Notice (8): Undefined index: last_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:16 Notice: Notice (8): Undefined index: first_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-11 23:57:16 Notice: Notice (8): Undefined index: last_name in [APP/views/enquiries/index.ctp, line 39]
+2008-11-13 17:29:50 Notice: Notice (8): Undefined index: created in [APP/views/enquiries/index.ctp, line 34]
+2008-11-14 07:34:42 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:51:51 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:54:26 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-14 08:54:28 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-11-15 17:27:38 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:40 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:46 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:54 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:56 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:27:58 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:11 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:13 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:57 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:28:57 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:04 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:17 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:18 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:39 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:40 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:29:43 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:15 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:16 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:45 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:48 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:49 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:50 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:51 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:30:54 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:31:53 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:34:48 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:35:06 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-15 17:35:07 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 144]
+2008-11-16 10:34:40 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-16 10:34:45 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-16 11:29:17 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 14:46:35 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:12:23 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:12:57 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 15:13:50 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 13]
+2008-11-16 17:23:39 Notice: Notice (8): Undefined variable: customerid in [APP/views/enquiries/update_contacts.ctp, line 11]
+2008-11-16 17:25:26 Notice: Notice (8): Undefined variable: customerid in [APP/views/enquiries/update_contacts.ctp, line 11]
+2008-11-16 18:03:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/update_contacts.ctp, line 12]
+2008-11-16 18:04:40 Notice: Notice (8): Undefined variable: customername in [APP/controllers/enquiries_controller.php, line 156]
+2008-11-16 18:09:12 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-17 21:48:09 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: state_id in [APP/controllers/enquiries_controller.php, line 41]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: principle_id in [APP/controllers/enquiries_controller.php, line 42]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: state_id in [APP/controllers/enquiries_controller.php, line 76]
+2008-11-17 22:03:25 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 120]
+2008-11-17 22:05:01 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-17 22:11:02 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-17 22:14:16 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-17 22:14:16 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 120]
+2008-11-19 10:35:05 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:17:09 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:18:17 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:19:07 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 12:19:34 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-19 13:32:16 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 52]
+2008-11-19 18:05:50 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 52]
+2008-11-19 18:29:10 Notice: Notice (8): Undefined index: finished in [APP/controllers/enquiries_controller.php, line 54]
+2008-11-19 19:01:46 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-19 19:32:09 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-20 19:20:29 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-22 19:46:47 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:49:48 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:49:48 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:53:50 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:53:50 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:54:14 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:54:14 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:56:25 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:56:25 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:56:31 Notice: Notice (8): Undefined variable: Auth in [APP/views/enquiries/add.ctp, line 56]
+2008-11-22 19:57:34 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-22 19:59:23 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:48:06 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:50:04 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 28]
+2008-11-23 19:52:26 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 19:55:24 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 19:55:35 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 20:54:57 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 20:54:57 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 20:56:59 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 29]
+2008-11-23 22:34:40 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:16 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:44 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:54 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:43:54 Notice: Notice (8): Undefined variable: current_user in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:44:00 Notice: Notice (8): Undefined variable: current_user in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:44:18 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-11-23 22:44:18 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 140]
+2008-11-23 22:46:30 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 70]
+2008-11-24 11:27:34 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-11-24 13:07:01 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 13:59:04 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:06:58 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:07:09 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:14:13 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-24 14:14:32 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 39]
+2008-11-25 17:05:19 Notice: Notice (8): Undefined index: before in [CORE/cake/libs/view/helpers/form.php, line 727]
+2008-11-25 17:05:19 Notice: Notice (8): Undefined index: between in [CORE/cake/libs/view/helpers/form.php, line 728]
+2008-11-25 17:05:20 Notice: Notice (8): Undefined index: after in [CORE/cake/libs/view/helpers/form.php, line 729]
+2008-11-25 17:06:21 Notice: Notice (8): Use of undefined constant label - assumed 'label' in [APP/views/addresses/add.ctp, line 6]
+2008-11-25 17:13:21 Notice: Notice (8): Undefined property: Address::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-25 17:13:39 Notice: Notice (8): Undefined property: Contact::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 19:35:51 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 38]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined index: step in [APP/controllers/enquiries_controller.php, line 37]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:39:28 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined index: step in [APP/controllers/enquiries_controller.php, line 37]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:40:16 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:47:18 Notice: Notice (8): Undefined property: EnquiriesController::$Enqiry in [APP/controllers/enquiries_controller.php, line 62]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:47:30 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 30]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/controllers/enquiries_controller.php, line 32]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 27]
+2008-11-26 19:49:27 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 30]
+2008-11-26 19:50:26 Notice: Notice (8): Undefined variable: customer in [APP/controllers/enquiries_controller.php, line 32]
+2008-11-26 19:50:26 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 66]
+2008-11-26 19:52:29 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 19:53:37 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 19:54:42 Notice: Notice (8): Undefined index: name in [APP/controllers/enquiries_controller.php, line 65]
+2008-11-26 21:45:12 Notice: Notice (8): Undefined variable: time in [APP/views/customers/index.ctp, line 36]
+2008-11-26 21:50:29 Notice: Notice (8): Undefined property: Contact::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:51:48 Notice: Notice (8): Undefined property: Customer::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:53:01 Notice: Notice (8): Undefined property: Customer::$State in [APP/controllers/addresses_controller.php, line 30]
+2008-11-26 21:53:10 Notice: Notice (8): Undefined property: Address::$Country in [APP/controllers/addresses_controller.php, line 31]
+2008-12-05 13:49:28 Notice: Notice (8): Undefined property: Contact::$Address in [APP/controllers/contacts_controller.php, line 30]
+2008-12-05 14:34:42 Notice: Notice (8): Undefined property: Address::$Contact in [APP/controllers/addresses_controller.php, line 32]
+2008-12-11 17:59:21 Notice: Notice (8): Undefined index: name in [APP/views/enquiries/view.ctp, line 12]
+2008-12-15 12:12:16 Notice: Notice (8): Undefined property: UsersController::$Auth in [APP/controllers/users_controller.php, line 8]
+2008-12-15 12:13:07 Notice: Notice (8): Undefined property: UsersController::$Auth in [APP/controllers/users_controller.php, line 8]
+2008-12-15 12:23:18 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2008-12-15 12:44:04 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:44:04 Notice: Notice (8): Undefined property: EnquiriesController::$Auth in [APP/controllers/enquiries_controller.php, line 37]
+2008-12-15 12:50:28 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:50:28 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 12:50:40 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 13:00:07 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 13:00:35 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-15 19:17:03 Notice: Notice (8): Undefined index: title in [APP/views/enquiries/edit.ctp, line 4]
+2008-12-15 20:09:23 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/edit.ctp, line 8]
+2008-12-23 11:48:17 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 14:32:37 Notice: Notice (8): Undefined index: address1 in [APP/views/customers/view.ctp, line 62]
+2008-12-23 14:33:48 Notice: Notice (8): Undefined index: address1 in [APP/views/customers/view.ctp, line 61]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:39:26 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:44:16 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 99]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 100]
+2008-12-23 14:45:34 Notice: Notice (8): Undefined index: User in [APP/views/customers/view.ctp, line 101]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: comments in [APP/views/customers/view.ctp, line 109]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 111]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 112]
+2008-12-23 14:47:21 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 113]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 111]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 112]
+2008-12-23 14:47:36 Notice: Notice (8): Undefined index: id in [APP/views/customers/view.ctp, line 113]
+2008-12-23 14:58:18 Notice: Notice (8): Undefined variable: address in [APP/views/customers/view.ctp, line 54]
+2008-12-23 14:58:18 Notice: Notice (8): Undefined variable: address in [APP/views/customers/view.ctp, line 55]
+2008-12-23 15:27:06 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:27:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:29:58 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:01 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:30:02 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 15:34:40 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-23 19:22:10 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:32:58 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-23 19:33:35 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:36:09 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:42:48 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:42:50 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:43:00 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:27 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:30 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 19:46:36 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-23 22:26:32 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:28:28 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:31:00 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:09 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:11 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:32:12 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:33:17 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 416]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: options in [CORE/cake/libs/view/helpers/paginator.php, line 419]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 420]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 421]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: page in [CORE/cake/libs/view/helpers/paginator.php, line 436]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: current in [CORE/cake/libs/view/helpers/paginator.php, line 438]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined index: count in [CORE/cake/libs/view/helpers/paginator.php, line 439]
+2008-12-23 22:35:44 Notice: Notice (8): Undefined variable: time in [APP/views/elements/enquiry_table.ctp, line 54]
+2008-12-23 22:41:22 Notice: Notice (8): Undefined variable: time in [APP/views/elements/enquiry_table.ctp, line 39]
+2008-12-23 23:13:49 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-24 12:17:38 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:48 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:53 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:17:59 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:18:02 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:47 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:47 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:50 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:20:53 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:22:08 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:22:59 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:23:06 Notice: Notice (8): Only variable references should be returned by reference in [APP/models/user.php, line 62]
+2008-12-24 12:33:15 Notice: Notice (8): Undefined index: username in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:15 Notice: Notice (8): Undefined index: id in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:39 Notice: Notice (8): Undefined index: username in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:33:39 Notice: Notice (8): Undefined index: id in [APP/views/layouts/default.ctp, line 76]
+2008-12-24 12:34:05 Notice: Notice (8): Undefined variable: currentuser in [APP/views/layouts/default.ctp, line 152]
+2008-12-24 18:15:09 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-25 10:22:22 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-25 23:40:18 Notice: Notice (8): Undefined variable: paginator in [APP/views/elements/enquiry_table.ctp, line 2]
+2008-12-26 13:37:38 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2008-12-26 13:40:37 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2008-12-26 19:02:37 Notice: Notice (8): Undefined variable: html in [APP/views/layouts/default.ctp, line 30]
+2008-12-26 21:30:15 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:30:15 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:37:32 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 50]
+2008-12-26 21:37:32 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 50]
+2008-12-26 21:56:57 Notice: Notice (8): Undefined index: first_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-26 21:56:57 Notice: Notice (8): Undefined index: last_name in [APP/controllers/contacts_controller.php, line 30]
+2008-12-27 00:04:54 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:06:09 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:11:31 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:11:44 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:16:09 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-27 00:18:06 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-28 11:34:02 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2008-12-31 11:27:32 Notice: Notice (8): Undefined index: customerid in [APP/controllers/contacts_controller.php, line 44]
+2008-12-31 13:14:21 Notice: Notice (8): Undefined index: mostrecent in [APP/views/enquiries/view.ctp, line 106]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: revision in [APP/views/enquiries/view.ctp, line 87]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: created in [APP/views/enquiries/view.ctp, line 88]
+2008-12-31 15:40:43 Notice: Notice (8): Undefined index: id in [APP/views/enquiries/view.ctp, line 90]
+2008-12-31 15:41:07 Notice: Notice (8): Undefined index: Quote in [APP/views/enquiries/view.ctp, line 80]
+2009-01-02 13:24:27 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 09:37:58 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2009-01-05 10:02:40 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 10:46:53 Notice: Notice (8): Undefined index: address1 in [APP/views/countries/view.ctp, line 61]
+2009-01-05 11:56:35 Notice: Notice (8): Undefined index: address1 in [APP/views/addresses/index.ctp, line 37]
+2009-01-05 14:27:48 Notice: Notice (8): Undefined property: Enquiry::$Addresses in [APP/controllers/enquiries_controller.php, line 60]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 24]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 33]
+2009-01-05 14:44:18 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 14:46:03 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 24]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 30]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 33]
+2009-01-05 14:46:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:46:08 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 14:56:03 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:00:33 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:04:15 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 39]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 40]
+2009-01-05 15:23:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 51]
+2009-01-05 15:24:10 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:30:09 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:31:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:35:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 29]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 31]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 32]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 34]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 35]
+2009-01-05 15:35:54 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:37:19 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 15:40:22 Notice: Notice (8): Undefined property: Enquiry::$Address in [APP/controllers/enquiries_controller.php, line 222]
+2009-01-05 15:46:58 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:02:17 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:20:48 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:27:34 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:29:17 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:31:58 Notice: Notice (8): Undefined property: Enquiry::$Address in [APP/controllers/enquiries_controller.php, line 222]
+2009-01-05 16:37:46 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 16:40:04 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-05 17:09:25 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 50]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 20]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 29]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 31]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 32]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 34]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-06 09:31:43 Notice: Notice (8): Undefined variable: shipping_addresses in [APP/views/enquiries/add.ctp, line 35]
+2009-01-06 10:58:03 Notice: Notice (8): Undefined variable: customer_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 0 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 1 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 2 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:08:01 Notice: Notice (8): Undefined offset: 3 in [APP/views/enquiries/add.ctp, line 49]
+2009-01-06 11:13:20 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:13:20 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:16:43 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:16:43 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 66]
+2009-01-06 11:21:25 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:25 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:54 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:21:54 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:22:20 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:22:20 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:19 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:19 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:23 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:23 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:31 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:23:31 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:24:17 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:24:17 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:27:58 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:27:58 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:14 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:14 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:26 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:26 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:37 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:30:37 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:31:43 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:31:43 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:13 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:13 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:25 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:25 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:34 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:32:34 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:24 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:24 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:42 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:33:42 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:34:24 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:34:24 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 67]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined variable: i in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:40:30 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: Country in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:19 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined variable: addresses in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:47 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:59 Notice: Notice (8): Undefined index: id in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:41:59 Notice: Notice (8): Undefined index: in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:42:09 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:42:09 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:45:05 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:45:05 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:48:33 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:48:33 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 48]
+2009-01-06 11:50:55 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 51]
+2009-01-06 11:51:47 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 70]
+2009-01-06 11:53:53 Notice: Notice (8): Undefined index: 4 in [APP/controllers/enquiries_controller.php, line 71]
+2009-01-06 11:53:53 Notice: Notice (8): Undefined index: 5 in [APP/controllers/enquiries_controller.php, line 71]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 47]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses in [APP/views/enquiries/add.ctp, line 48]
+2009-01-06 11:57:14 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 51]
+2009-01-06 12:02:43 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 4]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 7]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 19]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: customer in [APP/views/enquiries/add.ctp, line 28]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: user_id in [APP/views/enquiries/add.ctp, line 30]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: step in [APP/views/enquiries/add.ctp, line 31]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 32]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 741]
+2009-01-06 12:02:44 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/add.ctp, line 33]
+2009-01-06 12:03:38 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 122]
+2009-01-06 12:03:38 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 177]
+2009-01-06 12:04:32 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 122]
+2009-01-06 12:04:32 Notice: Notice (8): Undefined index: 0 in [APP/controllers/enquiries_controller.php, line 177]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:44:20 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:45:07 Notice: Notice (8): Undefined index: Address in [APP/views/customers/view.ctp, line 73]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:45:25 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:46:10 Notice: Notice (8): Undefined index: Address in [APP/views/elements/address_table.ctp, line 14]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: address in [APP/views/elements/address_table.ctp, line 21]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:46:43 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: city in [APP/views/elements/address_table.ctp, line 22]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: state_id in [APP/views/elements/address_table.ctp, line 23]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: country_id in [APP/views/elements/address_table.ctp, line 24]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: customer_id in [APP/views/elements/address_table.ctp, line 25]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: type in [APP/views/elements/address_table.ctp, line 26]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 28]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 29]
+2009-01-06 15:47:38 Notice: Notice (8): Undefined index: id in [APP/views/elements/address_table.ctp, line 30]
+2009-01-07 14:41:47 Notice: Notice (8): Undefined variable: javascript in [APP/views/layouts/default.ctp, line 38]
+2009-01-09 12:35:40 Notice: Notice (8): Undefined index: parent_id in [APP/views/groups/index.ctp, line 32]
+2009-01-09 14:52:46 Notice: Notice (8): Undefined property: UsersController::$Acl in [APP/controllers/users_controller.php, line 89]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: unitcostprice in [APP/views/principles/view.ctp, line 94]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: ourdiscount in [APP/views/principles/view.ctp, line 95]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: packingeach in [APP/views/principles/view.ctp, line 96]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingweight_each in [APP/views/principles/view.ctp, line 97]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: shippingcost_each in [APP/views/principles/view.ctp, line 98]
+2009-01-10 14:43:28 Notice: Notice (8): Undefined index: targetgp in [APP/views/principles/view.ctp, line 100]
+2009-01-10 14:50:44 Notice: Notice (8): Undefined property: QuoteProduct::$Principle in [APP/controllers/quote_products_controller.php, line 30]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 76]
+2009-01-12 09:43:19 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 76]
+2009-01-12 11:07:16 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 74]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: billing_address_list in [APP/controllers/enquiries_controller.php, line 75]
+2009-01-12 11:09:17 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: billing_addresses_list in [APP/views/enquiries/add.ctp, line 32]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: radioOptions in [CORE/cake/libs/view/helpers/form.php, line 765]
+2009-01-12 11:10:53 Notice: Notice (8): Undefined variable: shipping_addresses_list in [APP/views/enquiries/add.ctp, line 33]
diff --git a/tmp/logs/empty b/tmp/logs/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/logs/error.log b/tmp/logs/error.log
new file mode 100755
index 00000000..e869074f
--- /dev/null
+++ b/tmp/logs/error.log
@@ -0,0 +1,448 @@
+2008-10-02 14:22:17 Warning: Warning (512): in [CORE/cake/libs/session.php, line 455]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 2 for Validation::between(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 161]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 3 for Validation::between(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 161]
+2008-10-02 19:57:08 Warning: Warning (2): Missing argument 2 for Validation::maxLength(), called in /var/www/quotenik1.2/cake/libs/object.php on line 116 and defined in [CORE/cake/libs/validation.php, line 601]
+2008-10-02 19:58:41 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 19:58:51 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:04 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:09 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-02 20:05:42 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:25 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:30:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:31:10 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (512): SQL Error: 1054: Unknown column 'Currency.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:35:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (512): SQL Error: 1054: Unknown column 'Currency.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:35:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:35:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:37:18 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:37:18 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:07 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:08 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:08 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (512): SQL Error: 1054: Unknown column 'Country.country_id' in 'on clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-10-03 00:38:09 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/countries/index.ctp, line 18]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:09 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:21 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:30 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:38:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:39:32 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:40:31 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:05 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:17 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:46 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:41:47 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:39 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:42:45 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:15 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:23 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:43:43 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:06 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:11 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:44:14 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:13 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:22 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:24 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:33 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:47:56 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:35 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:37 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:38 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:48:59 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:00 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:01 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_object_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_dir_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_file_map) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-10-03 00:49:03 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/persistent/cake_core_default_en_us) [function.fopen ]: failed to open stream: Permission denied in [CORE/cake/libs/file.php, line 146]
+2008-11-12 00:09:47 Warning: Warning (512): SQL Error: 1052: Column 'id' in order clause is ambiguous in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-12 00:09:47 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/enquiries/index.ctp, line 25]
+2008-11-15 17:31:53 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-16 11:17:16 Warning: Warning (2): fopen(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_countries) [function.fopen ]: failed to open stream: No such file or directory in [CORE/cake/libs/file.php, line 146]
+2008-11-16 11:17:16 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-16 11:17:16 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 577]
+2008-11-16 11:17:27 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generateList' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:03:25 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:03:25 Warning: Warning (512): SQL Error: 1048: Column 'principle_code' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:14:16 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-17 22:14:16 Warning: Warning (512): SQL Error: 1048: Column 'principle_code' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 13:32:16 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 16:29:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 512]
+2008-11-19 19:32:09 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-20 19:20:29 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-23 20:54:24 Warning: Warning (2): unlink(/var/www/quotenik1.2/app/tmp/cache/models/cake_model_default_statuses) [function.unlink ]: No such file or directory in [CORE/cake/libs/file.php, line 278]
+2008-11-23 20:54:24 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 577]
+2008-11-23 20:54:57 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 20:54:57 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:34:40 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:16 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:44 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:43:54 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-23 22:44:18 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-11-24 13:07:01 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 577]
+2008-11-24 13:59:04 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 577]
+2008-11-24 14:06:58 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 577]
+2008-11-24 14:07:09 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 577]
+2008-11-24 14:14:13 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 577]
+2008-11-24 14:14:32 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 577]
+2008-11-25 17:05:19 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/form.php, line 555]
+2008-11-26 19:35:51 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 577]
+2008-11-26 23:57:52 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:00:40 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:13:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:14:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:16:18 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:16:34 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:35:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:37:03 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:39:13 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:39:24 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:55:07 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-11-27 00:55:07 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 577]
+2008-11-27 00:57:19 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 12:43:00 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 14:52:04 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 14:52:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:10:19 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:15:57 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:15:57 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 577]
+2008-12-05 15:16:45 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:16:45 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 577]
+2008-12-05 15:17:15 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:17:43 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 15:20:17 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:12:29 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:31:30 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:34:08 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:38:37 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-05 16:42:26 Warning: Warning (2): preg_match() [function.preg-match ]: Delimiter must not be alphanumeric or backslash in [CORE/cake/libs/model/model.php, line 2202]
+2008-12-11 12:06:31 Warning: Warning (512): Method JavascriptHelper::lnik does not exist in [CORE/cake/libs/view/helper.php, line 148]
+2008-12-15 12:44:04 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:28 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:28 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 12:50:40 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 13:00:07 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-15 13:00:35 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 11:47:14 Warning: Warning (512): SQL Error: 1048: Column 'target_gp' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-23 19:22:10 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:33:35 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:36:09 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:42:48 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:42:50 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:43:00 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:27 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:30 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 19:46:36 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 140]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 140]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 278]
+2008-12-23 22:35:44 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/helpers/paginator.php, line 278]
+2008-12-23 22:50:28 Warning: Warning (512): SQL Error: 1048: Column 'days_valid' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 12:17:38 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17: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 587]
+2008-12-24 12:17:48 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:48 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 587]
+2008-12-24 12:17:53 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:53 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 587]
+2008-12-24 12:17:59 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:17:59 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 587]
+2008-12-24 12:18:02 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:47 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:47 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:50 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:20:53 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:22:08 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:22:08 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 587]
+2008-12-24 12:22:59 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:23:06 Warning: Warning (512): User not set. in [APP/models/user.php, line 61]
+2008-12-24 12:23:06 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 587]
+2008-12-24 15:16:50 Warning: Warning (512): SQL Error: 1054: Unknown column 'Contacts.customer_id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:16:50 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:16:51 Warning: Warning (512): SQL Error: 1054: Unknown column 'Contacts.customer_id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:16:51 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:17:07 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:17:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:17:53 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`id` asc LIMIT 100' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:17:53 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:36 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:36 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:36 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:36 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:27:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:52 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:27:52 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:27:52 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:30:31 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:31 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 15:30:33 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Contact`.`customer_id` asc, `Enquiry` `order` `Enquiry`.`id` asc' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:33 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 15:30:35 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Contact`.`customer_id` asc, `Enquiry` `order` `Enquiry`.`id` asc' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 15:30:35 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/contacts/index.ctp, line 24]
+2008-12-24 18:07:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry.id' in 'order clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 18:07:12 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-24 18:08:05 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`order` `Customer`.`name` asc, `Enquiry` `order` `Enquiry`.`id` asc LIMI' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-24 18:08:05 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/customers/index.ctp, line 19]
+2008-12-25 23:40:18 Warning: Warning (512): SQL Error: 1054: Unknown column 'Enquiry' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-25 23:40:18 Warning: Warning (2): array_merge_recursive() [function.array-merge-recursive ]: Argument #1 is not an array in [CORE/cake/libs/view/view.php, line 338]
+2008-12-25 23:40:18 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/view.php, line 339]
+2008-12-25 23:40:18 Warning: Warning (2): extract() [function.extract ]: First argument should be an array in [CORE/cake/libs/view/view.php, line 650]
+2008-12-26 21:30:15 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 587]
+2008-12-26 21:37:32 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 587]
+2008-12-27 00:11:31 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 587]
+2008-12-27 00:18:06 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 587]
+2008-12-30 20:38:17 Warning: Warning (512): SQL Error: 1048: Column 'days_valid' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 11:27:32 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 587]
+2008-12-31 13:11:44 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:12:34 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:14:51 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 13:14:51 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 587]
+2008-12-31 13:15:23 Warning: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2008-12-31 13:15:23 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 587]
+2008-12-31 13:28:50 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:34:58 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:00 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:28 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:50 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 13:35:59 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/quotenik1.2/cake/basics.php:587) in [CORE/cake/libs/controller/controller.php, line 587]
+2008-12-31 15:41:07 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/enquiries/view.ctp, line 80]
+2009-01-05 14:28:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'Address.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 14:38:42 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/form.php, line 1141]
+2009-01-05 14:40:33 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #1 is not an array in [CORE/cake/libs/view/helpers/form.php, line 1141]
+2009-01-05 14:44:18 Warning: Warning (512): SQL Error: 1048: Column 'shipping_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 14:46:03 Warning: Warning (512): SQL Error: 1048: Column 'shipping_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 15:23:19 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-05 15:35:54 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-05 15:35:54 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 09:31:43 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 09:31:43 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 10:25:39 Warning: Warning (512): SQL Error: 1054: Unknown column 'BillingAddress.nameBillingAddress' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:14 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:40 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:45 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:46:57 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:47:12 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 10:47:12 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 10:50:08 Warning: Warning (512): SQL Error: 1054: Unknown column 'ShippingAddress.customer_id' in 'where clause' in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 12:02:43 Warning: Warning (512): SQL Error: 1048: Column 'billing_address_id' cannot be null in [CORE/cake/libs/model/datasources/dbo_source.php, line 521]
+2009-01-06 12:02:44 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 873]
+2009-01-06 12:03: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 587]
+2009-01-06 12:04:32 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 587]
+2009-01-06 15:45:07 Warning: Warning (2): array_merge_recursive() [function.array-merge-recursive ]: Argument #1 is not an array in [CORE/cake/libs/view/view.php, line 338]
+2009-01-06 15:45:07 Warning: Warning (2): array_merge() [function.array-merge ]: Argument #2 is not an array in [CORE/cake/libs/view/view.php, line 339]
+2009-01-06 15:45:07 Warning: Warning (2): extract() [function.extract ]: First argument should be an array in [CORE/cake/libs/view/view.php, line 650]
+2009-01-06 15:46:10 Warning: Warning (2): Invalid argument supplied for foreach() in [APP/views/elements/address_table.ctp, line 14]
+2009-01-09 13:33:55 Warning: Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
+(
+ [Aro0.model] => User
+ [Aro0.foreign_key] => 6
+)
+" in [CORE/cake/libs/model/db_acl.php, line 191]
+2009-01-09 13:33:55 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-09 14:53:10 Warning: Warning (512): DbAcl::allow() - Invalid node in [CORE/cake/libs/controller/components/acl.php, line 325]
+2009-01-09 14:53:10 Warning: Warning (512): DbAcl::allow() - Invalid node in [CORE/cake/libs/controller/components/acl.php, line 325]
+2009-01-10 14:43:27 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:43:27 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:43:28 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:43:28 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:47:21 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:47:21 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:47:22 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:47:22 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:49:05 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:49:05 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:49:22 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:49:22 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:50:32 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:50:32 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-10 14:50:32 Warning: Warning (512): SQL Error: 1054: Unknown column 'QuoteProduct.principle_id' in 'field list' in [CORE/cake/libs/model/datasources/dbo_source.php, line 514]
+2009-01-10 14:50:32 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/model/datasources/dbo_source.php, line 904]
+2009-01-12 09:43:20 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+2009-01-12 11:07:16 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+2009-01-12 11:09:17 Warning: Warning (2): Invalid argument supplied for foreach() in [CORE/cake/libs/view/helpers/form.php, line 897]
+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): SQL Error: 1048: Column 'abn' cannot be null 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]
diff --git a/tmp/sessions/.svn/entries b/tmp/sessions/.svn/entries
new file mode 100644
index 00000000..a4ab0e43
--- /dev/null
+++ b/tmp/sessions/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/sessions
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tmp/sessions/.svn/format b/tmp/sessions/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/sessions/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/sessions/.svn/prop-base/empty.svn-base b/tmp/sessions/.svn/prop-base/empty.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/sessions/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/sessions/.svn/text-base/empty.svn-base b/tmp/sessions/.svn/text-base/empty.svn-base
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/sessions/empty b/tmp/sessions/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/tests/.svn/entries b/tmp/tests/.svn/entries
new file mode 100644
index 00000000..98fe6ec9
--- /dev/null
+++ b/tmp/tests/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/tmp/tests
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:44.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/tmp/tests/.svn/format b/tmp/tests/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/tmp/tests/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/tmp/tests/.svn/prop-base/empty.svn-base b/tmp/tests/.svn/prop-base/empty.svn-base
new file mode 100755
index 00000000..a6697057
--- /dev/null
+++ b/tmp/tests/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/tmp/tests/.svn/text-base/empty.svn-base b/tmp/tests/.svn/text-base/empty.svn-base
new file mode 100755
index 00000000..e69de29b
diff --git a/tmp/tests/empty b/tmp/tests/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/vendors/.svn/entries b/vendors/.svn/entries
new file mode 100644
index 00000000..b02b0707
--- /dev/null
+++ b/vendors/.svn/entries
@@ -0,0 +1,31 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/vendors
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+shells
+dir
+
diff --git a/vendors/.svn/format b/vendors/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/vendors/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/vendors/shells/.svn/entries b/vendors/shells/.svn/entries
new file mode 100644
index 00000000..1de05f34
--- /dev/null
+++ b/vendors/shells/.svn/entries
@@ -0,0 +1,34 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/vendors/shells
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+tasks
+dir
+
+templates
+dir
+
diff --git a/vendors/shells/.svn/format b/vendors/shells/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/vendors/shells/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/vendors/shells/tasks/.svn/entries b/vendors/shells/tasks/.svn/entries
new file mode 100644
index 00000000..8c3c0b53
--- /dev/null
+++ b/vendors/shells/tasks/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/vendors/shells/tasks
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/vendors/shells/tasks/.svn/format b/vendors/shells/tasks/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/vendors/shells/tasks/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/vendors/shells/tasks/.svn/prop-base/empty.svn-base b/vendors/shells/tasks/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/vendors/shells/tasks/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/vendors/shells/tasks/.svn/text-base/empty.svn-base b/vendors/shells/tasks/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/vendors/shells/tasks/empty b/vendors/shells/tasks/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/vendors/shells/templates/.svn/entries b/vendors/shells/templates/.svn/entries
new file mode 100644
index 00000000..5776f7ed
--- /dev/null
+++ b/vendors/shells/templates/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/vendors/shells/templates
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/vendors/shells/templates/.svn/format b/vendors/shells/templates/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/vendors/shells/templates/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/vendors/shells/templates/.svn/prop-base/empty.svn-base b/vendors/shells/templates/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/vendors/shells/templates/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/vendors/shells/templates/.svn/text-base/empty.svn-base b/vendors/shells/templates/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/vendors/shells/templates/empty b/vendors/shells/templates/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/.svn/entries b/views/.svn/entries
new file mode 100644
index 00000000..457bffee
--- /dev/null
+++ b/views/.svn/entries
@@ -0,0 +1,91 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+groups
+dir
+
+quote_products
+dir
+
+quotes
+dir
+
+customers
+dir
+
+product_options
+dir
+
+pages
+dir
+
+layouts
+dir
+
+users
+dir
+
+helpers
+dir
+
+currencies
+dir
+
+states
+dir
+
+products
+dir
+
+scaffolds
+dir
+
+enquiries
+dir
+
+principles
+dir
+
+statuses
+dir
+
+countries
+dir
+
+errors
+dir
+
+elements
+dir
+
+addresses
+dir
+
+contacts
+dir
+
diff --git a/views/.svn/format b/views/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/addresses/.svn/entries b/views/addresses/.svn/entries
new file mode 100644
index 00000000..542b6c54
--- /dev/null
+++ b/views/addresses/.svn/entries
@@ -0,0 +1,164 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/addresses
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-07T01:19:11.314653Z
+14
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-05T00:57:36.000000Z
+a34b72c99fa8405d382771e7c5c61eae
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3096
+
+edit.ctp
+file
+
+
+
+
+2009-01-06T05:28:03.000000Z
+76e56550b2360740ef49313961168f2d
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1458
+
+index.ctp
+file
+
+
+
+
+2009-01-05T00:57:35.000000Z
+7212bcf5b61eb428651c018b122f516f
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3250
+
+add.ctp
+file
+
+
+
+
+2009-01-06T05:13:51.000000Z
+65c862dab627826055fdf46e797de3b0
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1959
+
diff --git a/views/addresses/.svn/format b/views/addresses/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/addresses/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/addresses/.svn/prop-base/add.ctp.svn-base b/views/addresses/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/addresses/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/addresses/.svn/prop-base/edit.ctp.svn-base b/views/addresses/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/addresses/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/addresses/.svn/prop-base/index.ctp.svn-base b/views/addresses/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/addresses/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/addresses/.svn/prop-base/view.ctp.svn-base b/views/addresses/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/addresses/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/addresses/.svn/text-base/add.ctp.svn-base b/views/addresses/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..aee252a6
--- /dev/null
+++ b/views/addresses/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,28 @@
+
+create('Address', array('action' => 'add/customerid:'.$customer['Customer']['id']));?>
+
+
+ input('name', array('label' => 'Name', 'title' => 'A short name for the Address. Eg. \'Head Quarters\' or \'Manufacturing Plant\' '));
+ echo $form->input('address', array('label' => 'Address', 'title' => 'The Address to be added'));
+ echo $form->input('city', array('label' => 'City', 'title' => 'Name of the City/Suburb for this Address'));
+ echo $form->input('state_id');
+ echo $form->input('postcode', array('label' => 'Post Code', 'title' => 'The Post Code for this Address. Eg. 2015 for Alexandria'));
+ echo $form->input('country_id');
+ echo $form->input('type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ echo $form->input('customer_id', array('type' => 'hidden', 'value'=>$customer['Customer']['id']));
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Addresses', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/.svn/text-base/edit.ctp.svn-base b/views/addresses/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..6ce2ee1b
--- /dev/null
+++ b/views/addresses/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,29 @@
+
+create('Address');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+ echo $form->input('customer_id');
+ echo $form->input('type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ ?>
+
+end('Submit');?>
+
+
+
+
+ link(__('List Addresses', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/.svn/text-base/index.ctp.svn-base b/views/addresses/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..5c5c5db3
--- /dev/null
+++ b/views/addresses/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,78 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('address');?>
+ sort('city');?>
+ sort('state_id');?>
+ sort('country_id');?>
+ sort('customer_id');?>
+ sort('type');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($address['State']['name'], array('controller'=> 'states', 'action'=>'view', $address['State']['id'])); ?>
+
+
+ link($address['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $address['Country']['id'])); ?>
+
+
+ link($address['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $address['Customer']['id'])); ?>
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $address['Address']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $address['Address']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $address['Address']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $address['Address']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Address', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/.svn/text-base/view.ctp.svn-base b/views/addresses/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..31e500e2
--- /dev/null
+++ b/views/addresses/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,59 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($address['State']['name'], array('controller'=> 'states', 'action'=>'view', $address['State']['id'])); ?>
+
+
+ >
+ >
+ link($address['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $address['Country']['id'])); ?>
+
+
+ >
+ >
+ link($address['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $address['Customer']['id'])); ?>
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Address', true), array('action'=>'edit', $address['Address']['id'])); ?>
+ link(__('Delete Address', true), array('action'=>'delete', $address['Address']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $address['Address']['id'])); ?>
+ link(__('List Addresses', true), array('action'=>'index')); ?>
+ link(__('New Address', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/add.ctp b/views/addresses/add.ctp
new file mode 100755
index 00000000..aee252a6
--- /dev/null
+++ b/views/addresses/add.ctp
@@ -0,0 +1,28 @@
+
+create('Address', array('action' => 'add/customerid:'.$customer['Customer']['id']));?>
+
+
+ input('name', array('label' => 'Name', 'title' => 'A short name for the Address. Eg. \'Head Quarters\' or \'Manufacturing Plant\' '));
+ echo $form->input('address', array('label' => 'Address', 'title' => 'The Address to be added'));
+ echo $form->input('city', array('label' => 'City', 'title' => 'Name of the City/Suburb for this Address'));
+ echo $form->input('state_id');
+ echo $form->input('postcode', array('label' => 'Post Code', 'title' => 'The Post Code for this Address. Eg. 2015 for Alexandria'));
+ echo $form->input('country_id');
+ echo $form->input('type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ echo $form->input('customer_id', array('type' => 'hidden', 'value'=>$customer['Customer']['id']));
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Addresses', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/edit.ctp b/views/addresses/edit.ctp
new file mode 100755
index 00000000..6ce2ee1b
--- /dev/null
+++ b/views/addresses/edit.ctp
@@ -0,0 +1,29 @@
+
+create('Address');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+ echo $form->input('customer_id');
+ echo $form->input('type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ ?>
+
+end('Submit');?>
+
+
+
+
+ link(__('List Addresses', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/index.ctp b/views/addresses/index.ctp
new file mode 100755
index 00000000..5c5c5db3
--- /dev/null
+++ b/views/addresses/index.ctp
@@ -0,0 +1,78 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('address');?>
+ sort('city');?>
+ sort('state_id');?>
+ sort('country_id');?>
+ sort('customer_id');?>
+ sort('type');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($address['State']['name'], array('controller'=> 'states', 'action'=>'view', $address['State']['id'])); ?>
+
+
+ link($address['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $address['Country']['id'])); ?>
+
+
+ link($address['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $address['Customer']['id'])); ?>
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $address['Address']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $address['Address']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $address['Address']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $address['Address']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Address', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/addresses/view.ctp b/views/addresses/view.ctp
new file mode 100755
index 00000000..31e500e2
--- /dev/null
+++ b/views/addresses/view.ctp
@@ -0,0 +1,59 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($address['State']['name'], array('controller'=> 'states', 'action'=>'view', $address['State']['id'])); ?>
+
+
+ >
+ >
+ link($address['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $address['Country']['id'])); ?>
+
+
+ >
+ >
+ link($address['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $address['Customer']['id'])); ?>
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Address', true), array('action'=>'edit', $address['Address']['id'])); ?>
+ link(__('Delete Address', true), array('action'=>'delete', $address['Address']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $address['Address']['id'])); ?>
+ link(__('List Addresses', true), array('action'=>'index')); ?>
+ link(__('New Address', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/.svn/entries b/views/contacts/.svn/entries
new file mode 100644
index 00000000..f792b110
--- /dev/null
+++ b/views/contacts/.svn/entries
@@ -0,0 +1,198 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/contacts
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-05T03:21:30.261073Z
+12
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-12-24T04:38:01.000000Z
+9d0f0a4654804d5669e1b24b7d14478a
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2703
+
+add_to_customer.ctp
+file
+18
+
+
+
+2008-12-31T00:25:06.000000Z
+0f6d3e5f4825b17b2bc1d00a7e7c8c94
+2009-01-12T05:57:25.596672Z
+18
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1329
+
+edit.ctp
+file
+
+
+
+
+2008-12-31T01:01:26.000000Z
+2ce891c05e7b7e7dce2c829f9d4d384f
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1257
+
+index.ctp
+file
+
+
+
+
+2008-12-31T01:04:29.000000Z
+0765c1352e6d66acba80d3768bcca2b0
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2822
+
+add.ctp
+file
+
+
+
+
+2008-12-05T02:49:18.000000Z
+2dc6bf3b4d8dcfce9701ffd9f5765d6c
+2008-12-05T04:15:22.634240Z
+10
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1051
+
diff --git a/views/contacts/.svn/format b/views/contacts/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/contacts/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/contacts/.svn/prop-base/add.ctp.svn-base b/views/contacts/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/contacts/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/contacts/.svn/prop-base/add_to_customer.ctp.svn-base b/views/contacts/.svn/prop-base/add_to_customer.ctp.svn-base
new file mode 100644
index 00000000..869ac71c
--- /dev/null
+++ b/views/contacts/.svn/prop-base/add_to_customer.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/views/contacts/.svn/prop-base/edit.ctp.svn-base b/views/contacts/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/contacts/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/contacts/.svn/prop-base/index.ctp.svn-base b/views/contacts/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/contacts/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/contacts/.svn/prop-base/view.ctp.svn-base b/views/contacts/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/contacts/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/contacts/.svn/text-base/add.ctp.svn-base b/views/contacts/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..01b885b2
--- /dev/null
+++ b/views/contacts/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,26 @@
+
+create('Contact');?>
+
+
+ input('customer_id');
+ echo $form->input('name');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/.svn/text-base/add_to_customer.ctp.svn-base b/views/contacts/.svn/text-base/add_to_customer.ctp.svn-base
new file mode 100644
index 00000000..64b768bd
--- /dev/null
+++ b/views/contacts/.svn/text-base/add_to_customer.ctp.svn-base
@@ -0,0 +1,25 @@
+
+create('Contact', array('action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?>
+
+
+ hidden('customer_id', array('value' => $customer['Customer']['id']));
+ echo $form->input('first_name', array('label' => 'First Name', 'title'=>'The first name of this Contact'));
+ echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/.svn/text-base/edit.ctp.svn-base b/views/contacts/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..505af77b
--- /dev/null
+++ b/views/contacts/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,27 @@
+
+create('Contact');?>
+
+
+ input('customer_id');
+ echo $form->input('id');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Contact.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Contact.id'))); ?>
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/.svn/text-base/index.ctp.svn-base b/views/contacts/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..484771f5
--- /dev/null
+++ b/views/contacts/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,80 @@
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Contact', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/.svn/text-base/view.ctp.svn-base b/views/contacts/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..52ca502a
--- /dev/null
+++ b/views/contacts/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,73 @@
+
+
+
+ link(__('Edit Contact', true), array('action'=>'edit', $contact['Contact']['id'])); ?>
+ link(__('New Contact', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+
+
+
diff --git a/views/contacts/add.ctp b/views/contacts/add.ctp
new file mode 100755
index 00000000..01b885b2
--- /dev/null
+++ b/views/contacts/add.ctp
@@ -0,0 +1,26 @@
+
+create('Contact');?>
+
+
+ input('customer_id');
+ echo $form->input('name');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/add_to_customer.ctp b/views/contacts/add_to_customer.ctp
new file mode 100755
index 00000000..64b768bd
--- /dev/null
+++ b/views/contacts/add_to_customer.ctp
@@ -0,0 +1,25 @@
+
+create('Contact', array('action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?>
+
+
+ hidden('customer_id', array('value' => $customer['Customer']['id']));
+ echo $form->input('first_name', array('label' => 'First Name', 'title'=>'The first name of this Contact'));
+ echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/edit.ctp b/views/contacts/edit.ctp
new file mode 100755
index 00000000..505af77b
--- /dev/null
+++ b/views/contacts/edit.ctp
@@ -0,0 +1,27 @@
+
+create('Contact');?>
+
+
+ input('customer_id');
+ echo $form->input('id');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('phone');
+ echo $form->input('fax');
+ echo $form->input('notes');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Contact.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Contact.id'))); ?>
+ link(__('List Contacts', true), array('action'=>'index'));?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/index.ctp b/views/contacts/index.ctp
new file mode 100755
index 00000000..484771f5
--- /dev/null
+++ b/views/contacts/index.ctp
@@ -0,0 +1,80 @@
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Contact', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/contacts/view.ctp b/views/contacts/view.ctp
new file mode 100755
index 00000000..52ca502a
--- /dev/null
+++ b/views/contacts/view.ctp
@@ -0,0 +1,73 @@
+
+
+
+ link(__('Edit Contact', true), array('action'=>'edit', $contact['Contact']['id'])); ?>
+ link(__('New Contact', true), array('action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+
+
+
diff --git a/views/countries/.svn/entries b/views/countries/.svn/entries
new file mode 100644
index 00000000..1c87dab2
--- /dev/null
+++ b/views/countries/.svn/entries
@@ -0,0 +1,80 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/countries
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+fa64b185bdd42af9da0f72b67e0f0c0d
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+edit.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+26d15b9e3cfab9a8a963645deeb7c039
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+index.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+86577207b6d5588f387f431751b8fee1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+add.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+df29b13435b8fd81ff23060f4f550be6
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/countries/.svn/format b/views/countries/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/countries/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/countries/.svn/prop-base/add.ctp.svn-base b/views/countries/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/countries/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/countries/.svn/prop-base/edit.ctp.svn-base b/views/countries/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/countries/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/countries/.svn/prop-base/index.ctp.svn-base b/views/countries/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/countries/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/countries/.svn/prop-base/view.ctp.svn-base b/views/countries/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/countries/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/countries/.svn/text-base/add.ctp.svn-base b/views/countries/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..8e2b9a94
--- /dev/null
+++ b/views/countries/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,25 @@
+
+create('Country');?>
+
+
+ input('name');
+ echo $form->label('Currency');
+ echo $form->select('currency_id', $currencies);
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Countries', true), array('action'=>'index'));?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/.svn/text-base/edit.ctp.svn-base b/views/countries/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..82bac69d
--- /dev/null
+++ b/views/countries/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,26 @@
+
+create('Country');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Country.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Country.id'))); ?>
+ link(__('List Countries', true), array('action'=>'index'));?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/.svn/text-base/index.ctp.svn-base b/views/countries/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..7727a859
--- /dev/null
+++ b/views/countries/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,60 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('currency_id');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link($country['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $country['Currency']['id'])); ?>
+
+
+ link(__('View', true), array('action'=>'view', $country['Country']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $country['Country']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Country', true), array('action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/.svn/text-base/view.ctp.svn-base b/views/countries/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..dbb4004f
--- /dev/null
+++ b/views/countries/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,182 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($country['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $country['Currency']['id'])); ?>
+
+
+
+
+
+
+ link(__('Edit Country', true), array('action'=>'edit', $country['Country']['id'])); ?>
+ link(__('Delete Country', true), array('action'=>'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+ link(__('List Countries', true), array('action'=>'index')); ?>
+ link(__('New Country', true), array('action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
+
+
+
diff --git a/views/countries/add.ctp b/views/countries/add.ctp
new file mode 100755
index 00000000..8e2b9a94
--- /dev/null
+++ b/views/countries/add.ctp
@@ -0,0 +1,25 @@
+
+create('Country');?>
+
+
+ input('name');
+ echo $form->label('Currency');
+ echo $form->select('currency_id', $currencies);
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Countries', true), array('action'=>'index'));?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/edit.ctp b/views/countries/edit.ctp
new file mode 100755
index 00000000..82bac69d
--- /dev/null
+++ b/views/countries/edit.ctp
@@ -0,0 +1,26 @@
+
+create('Country');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Country.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Country.id'))); ?>
+ link(__('List Countries', true), array('action'=>'index'));?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/index.ctp b/views/countries/index.ctp
new file mode 100755
index 00000000..7727a859
--- /dev/null
+++ b/views/countries/index.ctp
@@ -0,0 +1,60 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('currency_id');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link($country['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $country['Currency']['id'])); ?>
+
+
+ link(__('View', true), array('action'=>'view', $country['Country']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $country['Country']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Country', true), array('action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
diff --git a/views/countries/view.ctp b/views/countries/view.ctp
new file mode 100755
index 00000000..dbb4004f
--- /dev/null
+++ b/views/countries/view.ctp
@@ -0,0 +1,182 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($country['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $country['Currency']['id'])); ?>
+
+
+
+
+
+
+ link(__('Edit Country', true), array('action'=>'edit', $country['Country']['id'])); ?>
+ link(__('Delete Country', true), array('action'=>'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+ link(__('List Countries', true), array('action'=>'index')); ?>
+ link(__('New Country', true), array('action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+
+
+
+
+
diff --git a/views/currencies/.svn/entries b/views/currencies/.svn/entries
new file mode 100644
index 00000000..c5ada623
--- /dev/null
+++ b/views/currencies/.svn/entries
@@ -0,0 +1,80 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/currencies
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+1ee3ae7b284bd4bf844e1c11b6e96f7d
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+edit.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+6f8b4336963f742170e4e0e4ac4a394f
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+index.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+ae62a0e589c5e0a1706e83163272eda2
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+add.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+9c2344a6b8e2e59b2b5d09968b7b1ff8
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/currencies/.svn/format b/views/currencies/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/currencies/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/currencies/.svn/prop-base/add.ctp.svn-base b/views/currencies/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/currencies/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/currencies/.svn/prop-base/edit.ctp.svn-base b/views/currencies/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/currencies/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/currencies/.svn/prop-base/index.ctp.svn-base b/views/currencies/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/currencies/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/currencies/.svn/prop-base/view.ctp.svn-base b/views/currencies/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/currencies/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/currencies/.svn/text-base/add.ctp.svn-base b/views/currencies/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..b85974a8
--- /dev/null
+++ b/views/currencies/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,23 @@
+
+create('Currency');?>
+
+
+ input('name');
+ echo $form->input('symbol');
+ echo $form->input('iso4217');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Currencies', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/.svn/text-base/edit.ctp.svn-base b/views/currencies/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..9e302211
--- /dev/null
+++ b/views/currencies/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,25 @@
+
+create('Currency');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('symbol');
+ echo $form->input('iso4217');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Currency.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Currency.id'))); ?>
+ link(__('List Currencies', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/.svn/text-base/index.ctp.svn-base b/views/currencies/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..7812931a
--- /dev/null
+++ b/views/currencies/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,62 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('symbol');?>
+ sort('iso4217');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $currency['Currency']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $currency['Currency']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $currency['Currency']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $currency['Currency']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Currency', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/.svn/text-base/view.ctp.svn-base b/views/currencies/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..d1a1fbe8
--- /dev/null
+++ b/views/currencies/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,221 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Currency', true), array('action'=>'edit', $currency['Currency']['id'])); ?>
+ link(__('Delete Currency', true), array('action'=>'delete', $currency['Currency']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $currency['Currency']['id'])); ?>
+ link(__('List Currencies', true), array('action'=>'index')); ?>
+ link(__('New Currency', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
+
+
+
diff --git a/views/currencies/add.ctp b/views/currencies/add.ctp
new file mode 100755
index 00000000..b85974a8
--- /dev/null
+++ b/views/currencies/add.ctp
@@ -0,0 +1,23 @@
+
+create('Currency');?>
+
+
+ input('name');
+ echo $form->input('symbol');
+ echo $form->input('iso4217');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Currencies', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/edit.ctp b/views/currencies/edit.ctp
new file mode 100755
index 00000000..9e302211
--- /dev/null
+++ b/views/currencies/edit.ctp
@@ -0,0 +1,25 @@
+
+create('Currency');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('symbol');
+ echo $form->input('iso4217');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Currency.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Currency.id'))); ?>
+ link(__('List Currencies', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/index.ctp b/views/currencies/index.ctp
new file mode 100755
index 00000000..7812931a
--- /dev/null
+++ b/views/currencies/index.ctp
@@ -0,0 +1,62 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('symbol');?>
+ sort('iso4217');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $currency['Currency']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $currency['Currency']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $currency['Currency']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $currency['Currency']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Currency', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
diff --git a/views/currencies/view.ctp b/views/currencies/view.ctp
new file mode 100755
index 00000000..d1a1fbe8
--- /dev/null
+++ b/views/currencies/view.ctp
@@ -0,0 +1,221 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Currency', true), array('action'=>'edit', $currency['Currency']['id'])); ?>
+ link(__('Delete Currency', true), array('action'=>'delete', $currency['Currency']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $currency['Currency']['id'])); ?>
+ link(__('List Currencies', true), array('action'=>'index')); ?>
+ link(__('New Currency', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?>
+ link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?>
+
+
+
+
+
diff --git a/views/customers/.svn/entries b/views/customers/.svn/entries
new file mode 100644
index 00000000..b109e57e
--- /dev/null
+++ b/views/customers/.svn/entries
@@ -0,0 +1,143 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/customers
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-06T04:45:40.000000Z
+50135410afe213d91bd8194a22ca7980
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3170
+
+edit.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+1a88bd2ecc483517836ea221162a045e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+index.ctp
+file
+
+
+
+
+2009-01-06T03:28:08.000000Z
+caafcae94602ce80b7a0453d480919a5
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2150
+
+add.ctp
+file
+
+
+
+
+2009-01-12T00:06:45.000000Z
+14313fe50503900224eef2a91d180e18
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1990
+
diff --git a/views/customers/.svn/format b/views/customers/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/customers/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/customers/.svn/prop-base/add.ctp.svn-base b/views/customers/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/customers/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/customers/.svn/prop-base/edit.ctp.svn-base b/views/customers/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/customers/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/customers/.svn/prop-base/index.ctp.svn-base b/views/customers/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/customers/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/customers/.svn/prop-base/view.ctp.svn-base b/views/customers/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/customers/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/customers/.svn/text-base/add.ctp.svn-base b/views/customers/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..b0a6f8d7
--- /dev/null
+++ b/views/customers/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,34 @@
+
+create('Customer', array('action'=>'add'));?>
+
+
+ input('name', array('label'=>'Company Name', 'title' => 'The Company Name. Eg. XYZ Business Pty Ltd'));
+ echo $form->input('abn', array('label'=>'ABN', 'title' => 'The 11-digit Australian Business Number for the new Customer. Enter numbers only, no dashes or punctuation'));
+ echo 'Add a Contact to this new Customer ';
+ echo $form->input('Contact.0.first_name');
+ echo $form->input('Contact.0.last_name');
+ echo $form->input('Contact.0.email');
+ echo $form->input('Contact.0.phone');
+ echo $form->input('Contact.0.fax');
+ echo $form->input('Contact.0.notes');
+ echo 'Add an Address for this Customer ';
+ echo $form->input('Address.0.name', array('label'=>'Short Name', 'title' => 'Short Name for this Address. eg. \'Head Quarters\', \'Manufacturing Plant No 7\' '));
+ echo $form->input('Address.0.address');
+ echo $form->input('Address.0.city');
+ echo $form->input('Address.0.state_id');
+ echo $form->input('Address.0.country_id');
+ echo $form->input('Address.0.type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Customers', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/.svn/text-base/edit.ctp.svn-base b/views/customers/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..405a58b0
--- /dev/null
+++ b/views/customers/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,22 @@
+
+create('Customer');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('abn');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Customer.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Customer.id'))); ?>
+ link(__('List Customers', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/.svn/text-base/index.ctp.svn-base b/views/customers/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..f69f5d83
--- /dev/null
+++ b/views/customers/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,58 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+
+ sort('Company Name', 'name');?>
+ sort('ABN', 'abn');?>
+ sort('Date Added', 'created');?>
+
+
+
+ >
+
+
+ link(__($customer['Customer']['name'], true), array('action'=>'view', $customer['Customer']['id'])); ?>
+
+
+
+
+
+ toUnix($customer['Customer']['created'])); ?>
+
+
+
+ link(__('View', true), array('action'=>'view', $customer['Customer']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $customer['Customer']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Customer', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/.svn/text-base/view.ctp.svn-base b/views/customers/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..4afacbc6
--- /dev/null
+++ b/views/customers/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,101 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ nice($customer['Customer']['created']); ?>
+
+
+
+
+
+
+ link(__('Edit Customer', true), array('action'=>'edit', $customer['Customer']['id'])); ?>
+
+
+
+
+
+
+
+
+
+ element('enquiry_table', $enquiries);
+ }
+ else {
+ echo "No Enquiries from this Customer";
+ }
+ ?>
+
+
+
+
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?>
+
+
+
diff --git a/views/customers/add.ctp b/views/customers/add.ctp
new file mode 100755
index 00000000..b0a6f8d7
--- /dev/null
+++ b/views/customers/add.ctp
@@ -0,0 +1,34 @@
+
+create('Customer', array('action'=>'add'));?>
+
+
+ input('name', array('label'=>'Company Name', 'title' => 'The Company Name. Eg. XYZ Business Pty Ltd'));
+ echo $form->input('abn', array('label'=>'ABN', 'title' => 'The 11-digit Australian Business Number for the new Customer. Enter numbers only, no dashes or punctuation'));
+ echo 'Add a Contact to this new Customer ';
+ echo $form->input('Contact.0.first_name');
+ echo $form->input('Contact.0.last_name');
+ echo $form->input('Contact.0.email');
+ echo $form->input('Contact.0.phone');
+ echo $form->input('Contact.0.fax');
+ echo $form->input('Contact.0.notes');
+ echo 'Add an Address for this Customer ';
+ echo $form->input('Address.0.name', array('label'=>'Short Name', 'title' => 'Short Name for this Address. eg. \'Head Quarters\', \'Manufacturing Plant No 7\' '));
+ echo $form->input('Address.0.address');
+ echo $form->input('Address.0.city');
+ echo $form->input('Address.0.state_id');
+ echo $form->input('Address.0.country_id');
+ echo $form->input('Address.0.type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Customers', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/edit.ctp b/views/customers/edit.ctp
new file mode 100755
index 00000000..405a58b0
--- /dev/null
+++ b/views/customers/edit.ctp
@@ -0,0 +1,22 @@
+
+create('Customer');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('abn');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Customer.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Customer.id'))); ?>
+ link(__('List Customers', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/index.ctp b/views/customers/index.ctp
new file mode 100755
index 00000000..f69f5d83
--- /dev/null
+++ b/views/customers/index.ctp
@@ -0,0 +1,58 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+
+ sort('Company Name', 'name');?>
+ sort('ABN', 'abn');?>
+ sort('Date Added', 'created');?>
+
+
+
+ >
+
+
+ link(__($customer['Customer']['name'], true), array('action'=>'view', $customer['Customer']['id'])); ?>
+
+
+
+
+
+ toUnix($customer['Customer']['created'])); ?>
+
+
+
+ link(__('View', true), array('action'=>'view', $customer['Customer']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $customer['Customer']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Customer', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/customers/view.ctp b/views/customers/view.ctp
new file mode 100755
index 00000000..4afacbc6
--- /dev/null
+++ b/views/customers/view.ctp
@@ -0,0 +1,101 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ nice($customer['Customer']['created']); ?>
+
+
+
+
+
+
+ link(__('Edit Customer', true), array('action'=>'edit', $customer['Customer']['id'])); ?>
+
+
+
+
+
+
+
+
+
+ element('enquiry_table', $enquiries);
+ }
+ else {
+ echo "No Enquiries from this Customer";
+ }
+ ?>
+
+
+
+
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?>
+
+
+
diff --git a/views/elements/.svn/entries b/views/elements/.svn/entries
new file mode 100644
index 00000000..2c64f6b9
--- /dev/null
+++ b/views/elements/.svn/entries
@@ -0,0 +1,143 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/elements
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+address_table.ctp
+file
+18
+
+
+
+2009-01-06T05:25:43.000000Z
+855f137146a5e2f2c15bc950baf5f0d7
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1575
+
+enquiry_table.ctp
+file
+18
+
+
+
+2009-01-06T05:56:24.000000Z
+78c1a8252f198d9af4c4ca8f5f8322ed
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4056
+
+quote_table.ctp
+file
+18
+
+
+
+2008-12-31T06:02:30.000000Z
+1a9f82055bc3bf9f10fce19d2b63c83b
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+987
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/elements/.svn/format b/views/elements/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/elements/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/elements/.svn/prop-base/empty.svn-base b/views/elements/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/elements/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/elements/.svn/text-base/address_table.ctp.svn-base b/views/elements/.svn/text-base/address_table.ctp.svn-base
new file mode 100644
index 00000000..82edd3e0
--- /dev/null
+++ b/views/elements/.svn/text-base/address_table.ctp.svn-base
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+ link(__($address['State']['name'], true), array('controller'=>'states', 'action' => 'view', $address['State']['id']));?>
+ link(__($address['Country']['name'], true), array('controller'=>'countries', 'action' => 'view', $address['Country']['id']));?>
+
+
+ link(__('View', true), array('controller'=> 'addresses', 'action'=>'view', $address['Address']['id'])); ?>
+ link(__('Edit', true), array('controller'=> 'addresses', 'action'=>'edit', $address['Address']['id'])); ?>
+
+
+
+
+
+
diff --git a/views/elements/.svn/text-base/empty.svn-base b/views/elements/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/elements/.svn/text-base/enquiry_table.ctp.svn-base b/views/elements/.svn/text-base/enquiry_table.ctp.svn-base
new file mode 100644
index 00000000..0313442e
--- /dev/null
+++ b/views/elements/.svn/text-base/enquiry_table.ctp.svn-base
@@ -0,0 +1,106 @@
+ counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?>
+
+
+
+ sort('user_id');?>
+ sort('Date', 'created');?>
+ sort('Enquiry Number', 'title');?>
+ sort('customer_id');?>
+ sort('contact_id');?>
+
+
+ sort('state_id');?>
+ sort('country_id');?>
+ sort('principle_id');?>
+ sort('status_id');?>
+ sort('comments');?>
+
+
+
+ >
+
+ ";
+ ?>
+
+ link($firstname[0].$lastname[0], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+
+ toUnix($enquiry['Enquiry']['created'])); ?>
+
+
+ link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
+
+
+
+ link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
+
+
+ link($enquiry['Contact']['name'], array('controller'=> 'contacts', 'action'=>'view', $enquiry['Contact']['id'])); ?>
+
+
+ //BCC address to Con is hardcoded in here. ?>
+ link($enquiry['Contact']['email'], 'mailto:'.$enquiry['Contact']['email'].'?subject='.$enquiry['Enquiry']['title'].'&bcc=carpis@cmctechnologies.com.au'); ?>
+
+
+
+
+
+ link($enquiry['State']['shortform'], array('controller'=> 'states', 'action'=>'view', $enquiry['State']['id'])); ?>
+
+
+ link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
+
+
+ link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
+
+
+ link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
+
+
+
+
+
+ link(__('View', true), array('controller'=>'enquiries','action'=>'view', $enquiry['Enquiry']['id'])); ?>
+ link(__('Edit', true), array('controller'=>'enquiries','action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
diff --git a/views/elements/.svn/text-base/quote_table.ctp.svn-base b/views/elements/.svn/text-base/quote_table.ctp.svn-base
new file mode 100644
index 00000000..bc93d6aa
--- /dev/null
+++ b/views/elements/.svn/text-base/quote_table.ctp.svn-base
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+ >
+
+ nice($quote['Quote']['created']);?>
+
+ link(__('View', true), array('controller'=> 'quotes', 'action'=>'view', $quote['Quote']['id'])); ?>
+
+
+
+
+
+
+
+
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add/enquiryid:'.$enquiry['Enquiry']['id']));?>
+
+
diff --git a/views/elements/address_table.ctp b/views/elements/address_table.ctp
new file mode 100644
index 00000000..82edd3e0
--- /dev/null
+++ b/views/elements/address_table.ctp
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+ link(__($address['State']['name'], true), array('controller'=>'states', 'action' => 'view', $address['State']['id']));?>
+ link(__($address['Country']['name'], true), array('controller'=>'countries', 'action' => 'view', $address['Country']['id']));?>
+
+
+ link(__('View', true), array('controller'=> 'addresses', 'action'=>'view', $address['Address']['id'])); ?>
+ link(__('Edit', true), array('controller'=> 'addresses', 'action'=>'edit', $address['Address']['id'])); ?>
+
+
+
+
+
+
diff --git a/views/elements/empty b/views/elements/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/elements/enquiry_table.ctp b/views/elements/enquiry_table.ctp
new file mode 100644
index 00000000..0313442e
--- /dev/null
+++ b/views/elements/enquiry_table.ctp
@@ -0,0 +1,106 @@
+ counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?>
+
+
+
+ sort('user_id');?>
+ sort('Date', 'created');?>
+ sort('Enquiry Number', 'title');?>
+ sort('customer_id');?>
+ sort('contact_id');?>
+
+
+ sort('state_id');?>
+ sort('country_id');?>
+ sort('principle_id');?>
+ sort('status_id');?>
+ sort('comments');?>
+
+
+
+ >
+
+ ";
+ ?>
+
+ link($firstname[0].$lastname[0], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+
+ toUnix($enquiry['Enquiry']['created'])); ?>
+
+
+ link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
+
+
+
+ link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
+
+
+ link($enquiry['Contact']['name'], array('controller'=> 'contacts', 'action'=>'view', $enquiry['Contact']['id'])); ?>
+
+
+ //BCC address to Con is hardcoded in here. ?>
+ link($enquiry['Contact']['email'], 'mailto:'.$enquiry['Contact']['email'].'?subject='.$enquiry['Enquiry']['title'].'&bcc=carpis@cmctechnologies.com.au'); ?>
+
+
+
+
+
+ link($enquiry['State']['shortform'], array('controller'=> 'states', 'action'=>'view', $enquiry['State']['id'])); ?>
+
+
+ link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
+
+
+ link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
+
+
+ link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
+
+
+
+
+
+ link(__('View', true), array('controller'=>'enquiries','action'=>'view', $enquiry['Enquiry']['id'])); ?>
+ link(__('Edit', true), array('controller'=>'enquiries','action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
diff --git a/views/elements/enquiry_table.ctp~ b/views/elements/enquiry_table.ctp~
new file mode 100644
index 00000000..a5fdbd6a
--- /dev/null
+++ b/views/elements/enquiry_table.ctp~
@@ -0,0 +1,99 @@
+ counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('user_id');?>
+ sort('Date', 'created');?>
+ sort('Enquiry Number', 'title');?>
+ sort('customer_id');?>
+ sort('contact_id');?>
+
+ sort('state_id');?>
+ sort('country_id');?>
+ sort('principle_id');?>
+ sort('status_id');?>
+ sort('comments');?>
+
+
+
+ >
+
+
+
+ link($firstname[0].$lastname[0], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+
+ toUnix($enquiry['Enquiry']['created'])); ?>
+
+
+ link(__($enquiry['Enquiry']['title'], true), array('action'=>'view', $enquiry['Enquiry']['id'])); ?>
+
+
+
+ link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
+
+
+ link($enquiry['Contact']['name'], array('controller'=> 'contacts', 'action'=>'view', $enquiry['Contact']['id'])); ?>
+
+
+ //BCC address to Con is hardcoded in here. ?>
+ link($enquiry['Contact']['email'], 'mailto:'.$enquiry['Contact']['email'].'?subject='.$enquiry['Enquiry']['title'].'&bcc=carpis@cmctechnologies.com.au'); ?>
+
+
+ link($enquiry['State']['shortform'], array('controller'=> 'states', 'action'=>'view', $enquiry['State']['id'])); ?>
+
+
+ link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
+
+
+ link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
+
+
+ link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $enquiry['Enquiry']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
diff --git a/views/elements/enquiry_tableworkin.ctp b/views/elements/enquiry_tableworkin.ctp
new file mode 100644
index 00000000..a3b4c9bb
--- /dev/null
+++ b/views/elements/enquiry_tableworkin.ctp
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+ $firstname = $enquiry['User']['first_name'];
+ $lastname = $enquiry['User']['last_name'];
+ echo $html->link($firstname[0].$lastname[0], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+ toUnix($enquiry['Enquiry']['created'])); ?>
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('controller'=> 'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
+ link(__('Edit', true), array('controller'=> 'enquiries', 'action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
diff --git a/views/elements/quote_table.ctp b/views/elements/quote_table.ctp
new file mode 100644
index 00000000..bc93d6aa
--- /dev/null
+++ b/views/elements/quote_table.ctp
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+ >
+
+ nice($quote['Quote']['created']);?>
+
+ link(__('View', true), array('controller'=> 'quotes', 'action'=>'view', $quote['Quote']['id'])); ?>
+
+
+
+
+
+
+
+
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add/enquiryid:'.$enquiry['Enquiry']['id']));?>
+
+
diff --git a/views/enquiries/.svn/entries b/views/enquiries/.svn/entries
new file mode 100644
index 00000000..9a3d83ed
--- /dev/null
+++ b/views/enquiries/.svn/entries
@@ -0,0 +1,232 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/enquiries
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-07T01:19:11.314653Z
+14
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-06T04:29:45.000000Z
+1b8603298371075eedf64d6e19dcde9e
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3049
+
+add-original.ctp
+file
+18
+
+
+
+2008-11-15T02:06:02.000000Z
+a639ff7e4a3ef35b41538749960c573b
+2009-01-12T05:57:25.596672Z
+18
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2459
+
+edit.ctp
+file
+
+
+
+
+2009-01-06T05:55:07.000000Z
+a72d62fe1f28a775bccb44904b75e920
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1134
+
+index.ctp
+file
+
+
+
+
+2008-12-26T23:40:13.000000Z
+1885e7735fdaa453ca2595949714d631
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+141
+
+add.ctp
+file
+
+
+
+
+2009-01-06T00:57:21.000000Z
+2680229123014a12266657f56f1c1485
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2083
+
+complete_customer.ctp
+file
+18
+
+
+
+2008-11-24T03:17:01.000000Z
+bd550e0e7f783d92307b25fc924095af
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+138
+
diff --git a/views/enquiries/.svn/format b/views/enquiries/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/enquiries/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/enquiries/.svn/prop-base/add-original.ctp.svn-base b/views/enquiries/.svn/prop-base/add-original.ctp.svn-base
new file mode 100644
index 00000000..869ac71c
--- /dev/null
+++ b/views/enquiries/.svn/prop-base/add-original.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/views/enquiries/.svn/prop-base/add.ctp.svn-base b/views/enquiries/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/enquiries/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/enquiries/.svn/prop-base/edit.ctp.svn-base b/views/enquiries/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/enquiries/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/enquiries/.svn/prop-base/index.ctp.svn-base b/views/enquiries/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/enquiries/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/enquiries/.svn/prop-base/view.ctp.svn-base b/views/enquiries/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/enquiries/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/enquiries/.svn/text-base/add-original.ctp.svn-base b/views/enquiries/.svn/text-base/add-original.ctp.svn-base
new file mode 100644
index 00000000..a30d3d1c
--- /dev/null
+++ b/views/enquiries/.svn/text-base/add-original.ctp.svn-base
@@ -0,0 +1,38 @@
+
+create('Enquiry');?>
+
+
+ input('user_id');
+ echo $form->input('customer_id');
+ echo $form->input('contact_id');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+ echo $form->input('principle_id');
+ echo $form->input('status_id');
+ echo $form->input('comments');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Enquiries', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Contacts', true), array('controller'=> 'contacts', 'action'=>'index')); ?>
+ link(__('New Contact', true), array('controller'=> 'contacts', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Statuses', true), array('controller'=> 'statuses', 'action'=>'index')); ?>
+ link(__('New Status', true), array('controller'=> 'statuses', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+
+
diff --git a/views/enquiries/.svn/text-base/add.ctp.svn-base b/views/enquiries/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..8ff15ab5
--- /dev/null
+++ b/views/enquiries/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,46 @@
+
+create('Enquiry');?>
+
+
+ ';
+ echo 'Start typing the Company name and it should appear in a list below. It must already exist in the database ';
+ echo $form->label('Customer.name', 'Company Name');
+ echo $ajax->autoComplete('Customer.name', '/enquiries/completeCustomer');
+ echo ' ';
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'false'));
+ echo $form->end('Proceed to Step 2');
+ }
+ else {
+ //echo $form->select('Contact.id', array(), null, array('id'=>'contacts'));
+ echo $form->input('Customer.name', array('readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
+ echo $form->input('contact_id');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+
+ echo $form->input('gst', array('label' => 'Is GST Applicable', 'options' => array('1' => 'Yes', '0' => 'No')));
+ echo $form->input('principle_id');
+ echo $form->input('status_id');
+ echo $form->input('comments');
+ echo $form->input('customer_id', array('type'=>'hidden', 'value' => $customer['Customer']['id']));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'true'));
+ echo $form->input('user_id', array('type' => 'hidden', 'value' => $user_id));
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ 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->end('Submit');
+
+ }
+ ?>
+
+
+
+
+
+
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+
+
diff --git a/views/enquiries/.svn/text-base/complete_customer.ctp.svn-base b/views/enquiries/.svn/text-base/complete_customer.ctp.svn-base
new file mode 100644
index 00000000..766e1aa3
--- /dev/null
+++ b/views/enquiries/.svn/text-base/complete_customer.ctp.svn-base
@@ -0,0 +1,6 @@
+
+
diff --git a/views/enquiries/.svn/text-base/edit.ctp.svn-base b/views/enquiries/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..0748857f
--- /dev/null
+++ b/views/enquiries/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,22 @@
+
+create('Enquiry');?>
+
+
+ input('id');
+ echo $form->input('user_id', array('label'=>'Assigned to User'));
+ echo $form->input('Principle.name', array('label'=>'Principle','readonly'=>'readonly', 'value'=>$principle['Principle']['name']));
+ echo $form->input('Customer.name', array('label'=>'Customer','readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
+ echo $form->input('contact_id');
+ 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('status_id');
+ echo $form->input('comments');
+ echo $form->input('posted', array('label' => 'This quote been sent hard copy via Post'));
+ ?>
+
+end('Submit');?>
+
+
+
diff --git a/views/enquiries/.svn/text-base/index.ctp.svn-base b/views/enquiries/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..79198104
--- /dev/null
+++ b/views/enquiries/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,4 @@
+
+
+ echo $this->element('enquiry_table', $enquiries); ?>
+
diff --git a/views/enquiries/.svn/text-base/view.ctp.svn-base b/views/enquiries/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..e4aa76b8
--- /dev/null
+++ b/views/enquiries/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,74 @@
+
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($enquiry['User']['username'], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Contact']['name'], array('controller'=> 'contacts', 'action'=>'view', $enquiry['Contact']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['State']['name'], array('controller'=> 'states', 'action'=>'view', $enquiry['State']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
+
+
+ >
+ >
+
+
+
+
+
+
+
+
+ link(__('Edit Enquiry', true), array('action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
+ element('quote_table', $quotes); ?>
+
diff --git a/views/enquiries/add-original.ctp b/views/enquiries/add-original.ctp
new file mode 100755
index 00000000..a30d3d1c
--- /dev/null
+++ b/views/enquiries/add-original.ctp
@@ -0,0 +1,38 @@
+
+create('Enquiry');?>
+
+
+ input('user_id');
+ echo $form->input('customer_id');
+ echo $form->input('contact_id');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+ echo $form->input('principle_id');
+ echo $form->input('status_id');
+ echo $form->input('comments');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Enquiries', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+ link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?>
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+ link(__('List Contacts', true), array('controller'=> 'contacts', 'action'=>'index')); ?>
+ link(__('New Contact', true), array('controller'=> 'contacts', 'action'=>'add')); ?>
+ link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?>
+ link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Statuses', true), array('controller'=> 'statuses', 'action'=>'index')); ?>
+ link(__('New Status', true), array('controller'=> 'statuses', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+
+
diff --git a/views/enquiries/add.ctp b/views/enquiries/add.ctp
new file mode 100755
index 00000000..8ff15ab5
--- /dev/null
+++ b/views/enquiries/add.ctp
@@ -0,0 +1,46 @@
+
+create('Enquiry');?>
+
+
+ ';
+ echo 'Start typing the Company name and it should appear in a list below. It must already exist in the database ';
+ echo $form->label('Customer.name', 'Company Name');
+ echo $ajax->autoComplete('Customer.name', '/enquiries/completeCustomer');
+ echo ' ';
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'false'));
+ echo $form->end('Proceed to Step 2');
+ }
+ else {
+ //echo $form->select('Contact.id', array(), null, array('id'=>'contacts'));
+ echo $form->input('Customer.name', array('readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
+ echo $form->input('contact_id');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+
+ echo $form->input('gst', array('label' => 'Is GST Applicable', 'options' => array('1' => 'Yes', '0' => 'No')));
+ echo $form->input('principle_id');
+ echo $form->input('status_id');
+ echo $form->input('comments');
+ echo $form->input('customer_id', array('type'=>'hidden', 'value' => $customer['Customer']['id']));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'true'));
+ echo $form->input('user_id', array('type' => 'hidden', 'value' => $user_id));
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ 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->end('Submit');
+
+ }
+ ?>
+
+
+
+
+
+
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+
+
diff --git a/views/enquiries/addold.ctp b/views/enquiries/addold.ctp
new file mode 100755
index 00000000..86c898f8
--- /dev/null
+++ b/views/enquiries/addold.ctp
@@ -0,0 +1,44 @@
+
+create('Enquiry');?>
+
+
+ ';
+ echo 'Start typing the Company name and it should appear in a list below. It must already exist in the database ';
+ echo $form->label('Customer.name', 'Company Name');
+ echo $ajax->autoComplete('Customer.name', '/enquiries/completeCustomer');
+ echo ' ';
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'false'));
+ echo $form->end('Proceed to Step 2');
+ }
+ else {
+
+ //echo $form->select('Contact.id', array(), null, array('id'=>'contacts'));
+ echo $form->input('Customer.name', array('readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
+ echo $form->input('contact_id');
+ echo $form->input('state_id');
+ echo $form->input('country_id');
+ echo $form->input('gst', array('label' => 'Is GST Applicable', 'options' => array('1' => 'Yes', '0' => 'No')));
+ echo $form->input('principle_id');
+ echo $form->input('status_id');
+ echo $form->input('comments');
+ echo $form->input('customer_id', array('type'=>'hidden', 'value' => $customer['Customer']['id']));
+ echo $form->input('finished', array('type' => 'hidden', 'value' => 'true'));
+ echo $form->input('user_id', array('type' => 'hidden', 'value' => $user_id));
+ echo $form->input('step', array('type'=>'hidden', 'value' => $step));
+ echo $form->end('Submit');
+
+ }
+ ?>
+
+
+
+
+
+ link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?>
+
+
+
diff --git a/views/enquiries/complete_customer.ctp b/views/enquiries/complete_customer.ctp
new file mode 100644
index 00000000..766e1aa3
--- /dev/null
+++ b/views/enquiries/complete_customer.ctp
@@ -0,0 +1,6 @@
+
+
diff --git a/views/enquiries/edit.ctp b/views/enquiries/edit.ctp
new file mode 100755
index 00000000..0748857f
--- /dev/null
+++ b/views/enquiries/edit.ctp
@@ -0,0 +1,22 @@
+
+create('Enquiry');?>
+
+
+ input('id');
+ echo $form->input('user_id', array('label'=>'Assigned to User'));
+ echo $form->input('Principle.name', array('label'=>'Principle','readonly'=>'readonly', 'value'=>$principle['Principle']['name']));
+ echo $form->input('Customer.name', array('label'=>'Customer','readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
+ echo $form->input('contact_id');
+ 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('status_id');
+ echo $form->input('comments');
+ echo $form->input('posted', array('label' => 'This quote been sent hard copy via Post'));
+ ?>
+
+end('Submit');?>
+
+
+
diff --git a/views/enquiries/index.ctp b/views/enquiries/index.ctp
new file mode 100755
index 00000000..79198104
--- /dev/null
+++ b/views/enquiries/index.ctp
@@ -0,0 +1,4 @@
+
+
+ echo $this->element('enquiry_table', $enquiries); ?>
+
diff --git a/views/enquiries/view.ctp b/views/enquiries/view.ctp
new file mode 100755
index 00000000..e4aa76b8
--- /dev/null
+++ b/views/enquiries/view.ctp
@@ -0,0 +1,74 @@
+
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($enquiry['User']['username'], array('controller'=> 'users', 'action'=>'view', $enquiry['User']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Contact']['name'], array('controller'=> 'contacts', 'action'=>'view', $enquiry['Contact']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['State']['name'], array('controller'=> 'states', 'action'=>'view', $enquiry['State']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
+
+
+ >
+ >
+ link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
+
+
+ >
+ >
+
+
+
+
+
+
+
+
+ link(__('Edit Enquiry', true), array('action'=>'edit', $enquiry['Enquiry']['id'])); ?>
+
+
+
+
+
+ element('quote_table', $quotes); ?>
+
diff --git a/views/errors/.svn/entries b/views/errors/.svn/entries
new file mode 100644
index 00000000..9ef15774
--- /dev/null
+++ b/views/errors/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/errors
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/errors/.svn/format b/views/errors/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/errors/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/errors/.svn/prop-base/empty.svn-base b/views/errors/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/errors/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/errors/.svn/text-base/empty.svn-base b/views/errors/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/errors/empty b/views/errors/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/groups/.svn/entries b/views/groups/.svn/entries
new file mode 100644
index 00000000..d3f79c66
--- /dev/null
+++ b/views/groups/.svn/entries
@@ -0,0 +1,171 @@
+9
+
+dir
+18
+file:///home/karl/svn/quotenik/views/groups
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+
+view.ctp
+file
+
+
+
+
+2009-01-09T01:36:07.000000Z
+8e3acebaf1f49c83f6ab9db6201931c5
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2891
+
+edit.ctp
+file
+
+
+
+
+2009-01-09T01:36:08.000000Z
+6254f729fa5115435a8fe95925d7cfb4
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+798
+
+index.ctp
+file
+
+
+
+
+2009-01-09T01:36:07.000000Z
+6f0918071f55f8bf49efe354f14d050d
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1777
+
+add.ctp
+file
+
+
+
+
+2009-01-09T01:36:07.000000Z
+62aa171ec83783f6ca769cd46f960d09
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+567
+
diff --git a/views/groups/.svn/format b/views/groups/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/groups/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/groups/.svn/text-base/add.ctp.svn-base b/views/groups/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..353ca6c8
--- /dev/null
+++ b/views/groups/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,17 @@
+
+create('Group');?>
+
+
+ input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Groups', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/.svn/text-base/edit.ctp.svn-base b/views/groups/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..f1200262
--- /dev/null
+++ b/views/groups/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,19 @@
+
+create('Group');?>
+
+
+ input('id');
+ echo $form->input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Group.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Group.id'))); ?>
+ link(__('List Groups', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/.svn/text-base/index.ctp.svn-base b/views/groups/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..3e85952a
--- /dev/null
+++ b/views/groups/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,50 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $group['Group']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $group['Group']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Group', true), array('action'=>'add')); ?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/.svn/text-base/view.ctp.svn-base b/views/groups/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..26318460
--- /dev/null
+++ b/views/groups/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,73 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Group', true), array('action'=>'edit', $group['Group']['id'])); ?>
+ link(__('Delete Group', true), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
+ link(__('List Groups', true), array('action'=>'index')); ?>
+ link(__('New Group', true), array('action'=>'add')); ?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
+
diff --git a/views/groups/add.ctp b/views/groups/add.ctp
new file mode 100644
index 00000000..353ca6c8
--- /dev/null
+++ b/views/groups/add.ctp
@@ -0,0 +1,17 @@
+
+create('Group');?>
+
+
+ input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Groups', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/edit.ctp b/views/groups/edit.ctp
new file mode 100644
index 00000000..f1200262
--- /dev/null
+++ b/views/groups/edit.ctp
@@ -0,0 +1,19 @@
+
+create('Group');?>
+
+
+ input('id');
+ echo $form->input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Group.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Group.id'))); ?>
+ link(__('List Groups', true), array('action'=>'index'));?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/index.ctp b/views/groups/index.ctp
new file mode 100644
index 00000000..3e85952a
--- /dev/null
+++ b/views/groups/index.ctp
@@ -0,0 +1,50 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $group['Group']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $group['Group']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Group', true), array('action'=>'add')); ?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
diff --git a/views/groups/view.ctp b/views/groups/view.ctp
new file mode 100644
index 00000000..26318460
--- /dev/null
+++ b/views/groups/view.ctp
@@ -0,0 +1,73 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Group', true), array('action'=>'edit', $group['Group']['id'])); ?>
+ link(__('Delete Group', true), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
+ link(__('List Groups', true), array('action'=>'index')); ?>
+ link(__('New Group', true), array('action'=>'add')); ?>
+ link(__('List Users', true), array('controller'=> 'users', 'action'=>'index')); ?>
+ link(__('New User', true), array('controller'=> 'users', 'action'=>'add')); ?>
+
+
+
diff --git a/views/helpers/.svn/entries b/views/helpers/.svn/entries
new file mode 100644
index 00000000..db3bbd3d
--- /dev/null
+++ b/views/helpers/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/helpers
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/helpers/.svn/format b/views/helpers/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/helpers/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/helpers/.svn/prop-base/empty.svn-base b/views/helpers/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/helpers/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/helpers/.svn/text-base/empty.svn-base b/views/helpers/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/helpers/empty b/views/helpers/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/layouts/.svn/entries b/views/layouts/.svn/entries
new file mode 100644
index 00000000..ca1e6a78
--- /dev/null
+++ b/views/layouts/.svn/entries
@@ -0,0 +1,71 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/layouts
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-07T01:19:11.314653Z
+14
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+xml
+dir
+
+rss
+dir
+
+default.ctp
+file
+
+
+
+
+2009-01-07T00:58:38.000000Z
+996f23cc20a6eff8954a2d2aaf797a6b
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4700
+
+js
+dir
+
diff --git a/views/layouts/.svn/format b/views/layouts/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/layouts/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/layouts/.svn/prop-base/default.ctp.svn-base b/views/layouts/.svn/prop-base/default.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/layouts/.svn/prop-base/default.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/layouts/.svn/text-base/default.ctp.svn-base b/views/layouts/.svn/text-base/default.ctp.svn-base
new file mode 100644
index 00000000..24d6eb9d
--- /dev/null
+++ b/views/layouts/.svn/text-base/default.ctp.svn-base
@@ -0,0 +1,157 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.cake.libs.view.templates.layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+?>
+
+
+
+ charset(); ?>
+
+
+
+
+ echo $html->meta('icon'); ?>
+ css('quotenik');
+ echo $javascript->link('prototype');
+ echo $javascript->link('scriptaculous');
+ echo $javascript->link('qtip');
+ echo $scripts_for_layout;
+ ?>
+
+
+
+
+
+
+
+
+ link('Login', '/users/login');
+ }
+ else {
+ $logoutlink = $html->link('Logout', '/users/logout');
+ echo "Logged in as: ". $html->link($currentuser['User']['username'], '/users/view/'. $currentuser['User']['id']). ' (' . $logoutlink.')';
+ }
+ ?>
+
+
+
+ link('Enquiries', '/enquiries/index'); ?>
+
+ link('Enquiry Register', '/enquiries/index'); ?>
+ link('Add Enquiry', '/enquiries/add'); ?>
+
+
+
+ link('Customers', '/customers/index'); ?>
+
+ link('Customer Index', '/customers/index'); ?>
+ link('Add Customer', '/customers/add'); ?>
+
+
+
+ link('Contacts', '/contacts/index'); ?>
+
+ link('Contact Index', '/contacts/index'); ?>
+
+
+
+ link('Products', '/products/index'); ?>
+
+ link('Product Index', '/products/index'); ?>
+ link('Add Product', '/products/add'); ?>
+
+
+
+ link('Quotes', '/quotes/index'); ?>
+
+ link('Quote Index', '/quotes/index'); ?>
+ link('New Quote', '/quotes/add'); ?>
+ link('Find Quote', '/quotes/find'); ?>
+
+
+
+ link('Principles', '/principles/index'); ?>
+
+ link('Principle Index', '/principles/index'); ?>
+ link('Add Principle', '/principles/add'); ?>
+
+
+
+ link('Users', '/users/index'); ?>
+
+ link('Users Index', '/users/index'); ?>
+ link('Add User', '/users/add'); ?>
+
+
+
+
+
+
+
+ check('Message.flash')):
+ $session->flash();
+ endif;
+ ?>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/views/layouts/default.ctp b/views/layouts/default.ctp
new file mode 100755
index 00000000..24d6eb9d
--- /dev/null
+++ b/views/layouts/default.ctp
@@ -0,0 +1,157 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.cake.libs.view.templates.layouts
+ * @since CakePHP(tm) v 0.10.0.1076
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+?>
+
+
+
+ charset(); ?>
+
+
+
+
+ echo $html->meta('icon'); ?>
+ css('quotenik');
+ echo $javascript->link('prototype');
+ echo $javascript->link('scriptaculous');
+ echo $javascript->link('qtip');
+ echo $scripts_for_layout;
+ ?>
+
+
+
+
+
+
+
+
+ link('Login', '/users/login');
+ }
+ else {
+ $logoutlink = $html->link('Logout', '/users/logout');
+ echo "Logged in as: ". $html->link($currentuser['User']['username'], '/users/view/'. $currentuser['User']['id']). ' (' . $logoutlink.')';
+ }
+ ?>
+
+
+
+ link('Enquiries', '/enquiries/index'); ?>
+
+ link('Enquiry Register', '/enquiries/index'); ?>
+ link('Add Enquiry', '/enquiries/add'); ?>
+
+
+
+ link('Customers', '/customers/index'); ?>
+
+ link('Customer Index', '/customers/index'); ?>
+ link('Add Customer', '/customers/add'); ?>
+
+
+
+ link('Contacts', '/contacts/index'); ?>
+
+ link('Contact Index', '/contacts/index'); ?>
+
+
+
+ link('Products', '/products/index'); ?>
+
+ link('Product Index', '/products/index'); ?>
+ link('Add Product', '/products/add'); ?>
+
+
+
+ link('Quotes', '/quotes/index'); ?>
+
+ link('Quote Index', '/quotes/index'); ?>
+ link('New Quote', '/quotes/add'); ?>
+ link('Find Quote', '/quotes/find'); ?>
+
+
+
+ link('Principles', '/principles/index'); ?>
+
+ link('Principle Index', '/principles/index'); ?>
+ link('Add Principle', '/principles/add'); ?>
+
+
+
+ link('Users', '/users/index'); ?>
+
+ link('Users Index', '/users/index'); ?>
+ link('Add User', '/users/add'); ?>
+
+
+
+
+
+
+
+ check('Message.flash')):
+ $session->flash();
+ endif;
+ ?>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/views/layouts/js/.svn/entries b/views/layouts/js/.svn/entries
new file mode 100644
index 00000000..7330a6f0
--- /dev/null
+++ b/views/layouts/js/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/layouts/js
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/layouts/js/.svn/format b/views/layouts/js/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/layouts/js/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/layouts/js/.svn/prop-base/empty.svn-base b/views/layouts/js/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/layouts/js/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/layouts/js/.svn/text-base/empty.svn-base b/views/layouts/js/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/layouts/js/empty b/views/layouts/js/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/layouts/rss/.svn/entries b/views/layouts/rss/.svn/entries
new file mode 100644
index 00000000..48025c19
--- /dev/null
+++ b/views/layouts/rss/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/layouts/rss
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/layouts/rss/.svn/format b/views/layouts/rss/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/layouts/rss/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/layouts/rss/.svn/prop-base/empty.svn-base b/views/layouts/rss/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/layouts/rss/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/layouts/rss/.svn/text-base/empty.svn-base b/views/layouts/rss/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/layouts/rss/empty b/views/layouts/rss/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/layouts/xml/.svn/entries b/views/layouts/xml/.svn/entries
new file mode 100644
index 00000000..65e91458
--- /dev/null
+++ b/views/layouts/xml/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/layouts/xml
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/layouts/xml/.svn/format b/views/layouts/xml/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/layouts/xml/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/layouts/xml/.svn/prop-base/empty.svn-base b/views/layouts/xml/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/layouts/xml/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/layouts/xml/.svn/text-base/empty.svn-base b/views/layouts/xml/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/layouts/xml/empty b/views/layouts/xml/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/pages/.svn/entries b/views/pages/.svn/entries
new file mode 100644
index 00000000..03ab6ec2
--- /dev/null
+++ b/views/pages/.svn/entries
@@ -0,0 +1,62 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/pages
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+about.ctp
+file
+18
+
+
+
+2008-12-23T06:02:44.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+
diff --git a/views/pages/.svn/format b/views/pages/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/pages/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/pages/.svn/text-base/about.ctp.svn-base b/views/pages/.svn/text-base/about.ctp.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/pages/about.ctp b/views/pages/about.ctp
new file mode 100644
index 00000000..e69de29b
diff --git a/views/principles/.svn/entries b/views/principles/.svn/entries
new file mode 100644
index 00000000..09acab41
--- /dev/null
+++ b/views/principles/.svn/entries
@@ -0,0 +1,164 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/principles
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-10T03:51:50.000000Z
+1bb75dccc4401e8a038139f4111e2224
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8139
+
+edit.ctp
+file
+
+
+
+
+2009-01-10T03:51:51.000000Z
+a02018620447e212a5d61ed934f32bfc
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1740
+
+index.ctp
+file
+
+
+
+
+2009-01-10T03:51:50.000000Z
+a638b8629f9c1260f9ae443247a0f65f
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3466
+
+add.ctp
+file
+
+
+
+
+2009-01-10T03:51:50.000000Z
+487897637535fa4f368f411905bf8c38
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1501
+
diff --git a/views/principles/.svn/format b/views/principles/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/principles/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/principles/.svn/prop-base/add.ctp.svn-base b/views/principles/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/principles/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/principles/.svn/prop-base/edit.ctp.svn-base b/views/principles/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/principles/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/principles/.svn/prop-base/index.ctp.svn-base b/views/principles/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/principles/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/principles/.svn/prop-base/view.ctp.svn-base b/views/principles/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/principles/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/principles/.svn/text-base/add.ctp.svn-base b/views/principles/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..e51d9e58
--- /dev/null
+++ b/views/principles/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,29 @@
+
+create('Principle');?>
+
+
+ input('name');
+ echo $form->input('code');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state');
+ echo $form->input('country_id');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Principles', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/.svn/text-base/edit.ctp.svn-base b/views/principles/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..5a405db3
--- /dev/null
+++ b/views/principles/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,31 @@
+
+create('Principle');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('code');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state');
+ echo $form->input('country_id');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Principle.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Principle.id'))); ?>
+ link(__('List Principles', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/.svn/text-base/index.ctp.svn-base b/views/principles/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..6e22ccfe
--- /dev/null
+++ b/views/principles/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,80 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('code');?>
+ sort('address');?>
+ sort('city');?>
+ sort('state');?>
+ sort('country_id');?>
+ sort('currency_id');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($principle['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $principle['Country']['id'])); ?>
+
+
+ link($principle['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $principle['Currency']['id'])); ?>
+
+
+ link(__('View', true), array('action'=>'view', $principle['Principle']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $principle['Principle']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $principle['Principle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['Principle']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Principle', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/.svn/text-base/view.ctp.svn-base b/views/principles/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..858942b9
--- /dev/null
+++ b/views/principles/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,185 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($principle['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $principle['Country']['id'])); ?>
+
+
+ >
+ >
+ link($principle['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $principle['Currency']['id'])); ?>
+
+
+
+
+
+
+ link(__('Edit Principle', true), array('action'=>'edit', $principle['Principle']['id'])); ?>
+ link(__('Delete Principle', true), array('action'=>'delete', $principle['Principle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['Principle']['id'])); ?>
+ link(__('List Principles', true), array('action'=>'index')); ?>
+ link(__('New Principle', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
+
+
diff --git a/views/principles/add.ctp b/views/principles/add.ctp
new file mode 100755
index 00000000..e51d9e58
--- /dev/null
+++ b/views/principles/add.ctp
@@ -0,0 +1,29 @@
+
+create('Principle');?>
+
+
+ input('name');
+ echo $form->input('code');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state');
+ echo $form->input('country_id');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Principles', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/edit.ctp b/views/principles/edit.ctp
new file mode 100755
index 00000000..5a405db3
--- /dev/null
+++ b/views/principles/edit.ctp
@@ -0,0 +1,31 @@
+
+create('Principle');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('code');
+ echo $form->input('address');
+ echo $form->input('city');
+ echo $form->input('state');
+ echo $form->input('country_id');
+ echo $form->input('currency_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Principle.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Principle.id'))); ?>
+ link(__('List Principles', true), array('action'=>'index'));?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/index.ctp b/views/principles/index.ctp
new file mode 100755
index 00000000..6e22ccfe
--- /dev/null
+++ b/views/principles/index.ctp
@@ -0,0 +1,80 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('code');?>
+ sort('address');?>
+ sort('city');?>
+ sort('state');?>
+ sort('country_id');?>
+ sort('currency_id');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($principle['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $principle['Country']['id'])); ?>
+
+
+ link($principle['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $principle['Currency']['id'])); ?>
+
+
+ link(__('View', true), array('action'=>'view', $principle['Principle']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $principle['Principle']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $principle['Principle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['Principle']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Principle', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/principles/view.ctp b/views/principles/view.ctp
new file mode 100755
index 00000000..858942b9
--- /dev/null
+++ b/views/principles/view.ctp
@@ -0,0 +1,185 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($principle['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $principle['Country']['id'])); ?>
+
+
+ >
+ >
+ link($principle['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $principle['Currency']['id'])); ?>
+
+
+
+
+
+
+ link(__('Edit Principle', true), array('action'=>'edit', $principle['Principle']['id'])); ?>
+ link(__('Delete Principle', true), array('action'=>'delete', $principle['Principle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['Principle']['id'])); ?>
+ link(__('List Principles', true), array('action'=>'index')); ?>
+ link(__('New Principle', true), array('action'=>'add')); ?>
+ link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?>
+ link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
+
+
diff --git a/views/product_options/.svn/entries b/views/product_options/.svn/entries
new file mode 100644
index 00000000..9674122c
--- /dev/null
+++ b/views/product_options/.svn/entries
@@ -0,0 +1,171 @@
+9
+
+dir
+19
+file:///home/karl/svn/quotenik/views/product_options
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+
+view.ctp
+file
+
+
+
+
+2009-01-10T03:46:52.000000Z
+df3528315417c4ffec6c2b15d4a636c1
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2058
+
+edit.ctp
+file
+
+
+
+
+2009-01-10T03:46:54.000000Z
+894307e79ce314299b5427fbcd236531
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+965
+
+index.ctp
+file
+
+
+
+
+2009-01-10T03:46:52.000000Z
+72d0a083a00d0ee9d81915d4ee986162
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2418
+
+add.ctp
+file
+
+
+
+
+2009-01-10T03:46:53.000000Z
+c29bfb1ee6d34f5b886165e3f030aa56
+2009-01-12T05:57:54.260676Z
+19
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+718
+
diff --git a/views/product_options/.svn/format b/views/product_options/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/product_options/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/product_options/.svn/text-base/add.ctp.svn-base b/views/product_options/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..64c9607f
--- /dev/null
+++ b/views/product_options/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,20 @@
+
+create('ProductOption');?>
+
+
+ input('product_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('cost_price');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List ProductOptions', true), array('action'=>'index'));?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/.svn/text-base/edit.ctp.svn-base b/views/product_options/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..d75c6b1c
--- /dev/null
+++ b/views/product_options/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,22 @@
+
+create('ProductOption');?>
+
+
+ input('id');
+ echo $form->input('product_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('cost_price');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('ProductOption.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('ProductOption.id'))); ?>
+ link(__('List ProductOptions', true), array('action'=>'index'));?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/.svn/text-base/index.ctp.svn-base b/views/product_options/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..94415deb
--- /dev/null
+++ b/views/product_options/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,62 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('product_id');?>
+ sort('title');?>
+ sort('description');?>
+ sort('cost_price');?>
+
+
+
+ >
+
+
+
+
+ link($productOption['Product']['title'], array('controller'=> 'products', 'action'=>'view', $productOption['Product']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $productOption['ProductOption']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $productOption['ProductOption']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $productOption['ProductOption']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $productOption['ProductOption']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New ProductOption', true), array('action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/.svn/text-base/view.ctp.svn-base b/views/product_options/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..f9ef5a95
--- /dev/null
+++ b/views/product_options/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,40 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($productOption['Product']['title'], array('controller'=> 'products', 'action'=>'view', $productOption['Product']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit ProductOption', true), array('action'=>'edit', $productOption['ProductOption']['id'])); ?>
+ link(__('Delete ProductOption', true), array('action'=>'delete', $productOption['ProductOption']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $productOption['ProductOption']['id'])); ?>
+ link(__('List ProductOptions', true), array('action'=>'index')); ?>
+ link(__('New ProductOption', true), array('action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/add.ctp b/views/product_options/add.ctp
new file mode 100644
index 00000000..64c9607f
--- /dev/null
+++ b/views/product_options/add.ctp
@@ -0,0 +1,20 @@
+
+create('ProductOption');?>
+
+
+ input('product_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('cost_price');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List ProductOptions', true), array('action'=>'index'));?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/edit.ctp b/views/product_options/edit.ctp
new file mode 100644
index 00000000..d75c6b1c
--- /dev/null
+++ b/views/product_options/edit.ctp
@@ -0,0 +1,22 @@
+
+create('ProductOption');?>
+
+
+ input('id');
+ echo $form->input('product_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('cost_price');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('ProductOption.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('ProductOption.id'))); ?>
+ link(__('List ProductOptions', true), array('action'=>'index'));?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/index.ctp b/views/product_options/index.ctp
new file mode 100644
index 00000000..94415deb
--- /dev/null
+++ b/views/product_options/index.ctp
@@ -0,0 +1,62 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('product_id');?>
+ sort('title');?>
+ sort('description');?>
+ sort('cost_price');?>
+
+
+
+ >
+
+
+
+
+ link($productOption['Product']['title'], array('controller'=> 'products', 'action'=>'view', $productOption['Product']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $productOption['ProductOption']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $productOption['ProductOption']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $productOption['ProductOption']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $productOption['ProductOption']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New ProductOption', true), array('action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/product_options/view.ctp b/views/product_options/view.ctp
new file mode 100644
index 00000000..f9ef5a95
--- /dev/null
+++ b/views/product_options/view.ctp
@@ -0,0 +1,40 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($productOption['Product']['title'], array('controller'=> 'products', 'action'=>'view', $productOption['Product']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit ProductOption', true), array('action'=>'edit', $productOption['ProductOption']['id'])); ?>
+ link(__('Delete ProductOption', true), array('action'=>'delete', $productOption['ProductOption']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $productOption['ProductOption']['id'])); ?>
+ link(__('List ProductOptions', true), array('action'=>'index')); ?>
+ link(__('New ProductOption', true), array('action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/products/.svn/entries b/views/products/.svn/entries
new file mode 100644
index 00000000..1568c74b
--- /dev/null
+++ b/views/products/.svn/entries
@@ -0,0 +1,164 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/products
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-10T03:51:25.000000Z
+215f2c251aefd874c55881dbb8bf8724
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5608
+
+edit.ctp
+file
+
+
+
+
+2009-01-10T03:51:26.000000Z
+ad01821033f03975848f277439a4222d
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1555
+
+index.ctp
+file
+
+
+
+
+2009-01-10T03:51:25.000000Z
+6ab4674485e7759e4b5b4692a30b1a8f
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3733
+
+add.ctp
+file
+
+
+
+
+2009-01-10T03:51:26.000000Z
+d544e9e66f0ccdff028a89fb6a2b34c7
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1320
+
diff --git a/views/products/.svn/format b/views/products/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/products/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/products/.svn/prop-base/add.ctp.svn-base b/views/products/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/products/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/products/.svn/prop-base/edit.ctp.svn-base b/views/products/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/products/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/products/.svn/prop-base/index.ctp.svn-base b/views/products/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/products/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/products/.svn/prop-base/view.ctp.svn-base b/views/products/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/products/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/products/.svn/text-base/add.ctp.svn-base b/views/products/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..0ca361c7
--- /dev/null
+++ b/views/products/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,31 @@
+
+create('Product');?>
+
+
+ input('principle_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('principle_part_number');
+ echo $form->input('cmc_part_number');
+ echo $form->input('costprice_each');
+ echo $form->input('our_discount');
+ echo $form->input('packing_each');
+ echo $form->input('shipping_weight_each');
+ echo $form->input('shipping_cost_each');
+ echo $form->input('duty');
+ echo $form->input('target_gp');
+ echo $form->input('sellprice_each');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Products', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/.svn/text-base/edit.ctp.svn-base b/views/products/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..b8ce29fd
--- /dev/null
+++ b/views/products/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,33 @@
+
+create('Product');?>
+
+
+ input('id');
+ echo $form->input('principle_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('principle_part_number');
+ echo $form->input('cmc_part_number');
+ echo $form->input('costprice_each');
+ echo $form->input('our_discount');
+ echo $form->input('packing_each');
+ echo $form->input('shipping_weight_each');
+ echo $form->input('shipping_cost_each');
+ echo $form->input('duty');
+ echo $form->input('target_gp');
+ echo $form->input('sellprice_each');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Product.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Product.id'))); ?>
+ link(__('List Products', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/.svn/text-base/index.ctp.svn-base b/views/products/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..6a94b877
--- /dev/null
+++ b/views/products/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,100 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('principle_id');?>
+ sort('title');?>
+ sort('description');?>
+ sort('principle_part_number');?>
+ sort('cmc_part_number');?>
+ sort('costprice_each');?>
+ sort('our_discount');?>
+ sort('packing_each');?>
+ sort('shipping_weight_each');?>
+ sort('shipping_cost_each');?>
+ sort('duty');?>
+ sort('target_gp');?>
+ sort('sellprice_each');?>
+
+
+
+ >
+
+
+
+
+ link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $product['Product']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $product['Product']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $product['Product']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $product['Product']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Product', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/.svn/text-base/view.ctp.svn-base b/views/products/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..3bf1e3b0
--- /dev/null
+++ b/views/products/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,129 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Product', true), array('action'=>'edit', $product['Product']['id'])); ?>
+ link(__('Delete Product', true), array('action'=>'delete', $product['Product']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $product['Product']['id'])); ?>
+ link(__('List Products', true), array('action'=>'index')); ?>
+ link(__('New Product', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
+
diff --git a/views/products/add.ctp b/views/products/add.ctp
new file mode 100755
index 00000000..0ca361c7
--- /dev/null
+++ b/views/products/add.ctp
@@ -0,0 +1,31 @@
+
+create('Product');?>
+
+
+ input('principle_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('principle_part_number');
+ echo $form->input('cmc_part_number');
+ echo $form->input('costprice_each');
+ echo $form->input('our_discount');
+ echo $form->input('packing_each');
+ echo $form->input('shipping_weight_each');
+ echo $form->input('shipping_cost_each');
+ echo $form->input('duty');
+ echo $form->input('target_gp');
+ echo $form->input('sellprice_each');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Products', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/edit.ctp b/views/products/edit.ctp
new file mode 100755
index 00000000..b8ce29fd
--- /dev/null
+++ b/views/products/edit.ctp
@@ -0,0 +1,33 @@
+
+create('Product');?>
+
+
+ input('id');
+ echo $form->input('principle_id');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('principle_part_number');
+ echo $form->input('cmc_part_number');
+ echo $form->input('costprice_each');
+ echo $form->input('our_discount');
+ echo $form->input('packing_each');
+ echo $form->input('shipping_weight_each');
+ echo $form->input('shipping_cost_each');
+ echo $form->input('duty');
+ echo $form->input('target_gp');
+ echo $form->input('sellprice_each');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Product.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Product.id'))); ?>
+ link(__('List Products', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/index.ctp b/views/products/index.ctp
new file mode 100755
index 00000000..6a94b877
--- /dev/null
+++ b/views/products/index.ctp
@@ -0,0 +1,100 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('principle_id');?>
+ sort('title');?>
+ sort('description');?>
+ sort('principle_part_number');?>
+ sort('cmc_part_number');?>
+ sort('costprice_each');?>
+ sort('our_discount');?>
+ sort('packing_each');?>
+ sort('shipping_weight_each');?>
+ sort('shipping_cost_each');?>
+ sort('duty');?>
+ sort('target_gp');?>
+ sort('sellprice_each');?>
+
+
+
+ >
+
+
+
+
+ link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $product['Product']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $product['Product']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $product['Product']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $product['Product']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Product', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
diff --git a/views/products/view.ctp b/views/products/view.ctp
new file mode 100755
index 00000000..3bf1e3b0
--- /dev/null
+++ b/views/products/view.ctp
@@ -0,0 +1,129 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Product', true), array('action'=>'edit', $product['Product']['id'])); ?>
+ link(__('Delete Product', true), array('action'=>'delete', $product['Product']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $product['Product']['id'])); ?>
+ link(__('List Products', true), array('action'=>'index')); ?>
+ link(__('New Product', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?>
+ link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?>
+
+
+
diff --git a/views/quote_products/.svn/entries b/views/quote_products/.svn/entries
new file mode 100644
index 00000000..8125df2f
--- /dev/null
+++ b/views/quote_products/.svn/entries
@@ -0,0 +1,171 @@
+9
+
+dir
+18
+file:///home/karl/svn/quotenik/views/quote_products
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+
+view.ctp
+file
+
+
+
+
+2009-01-10T03:50:28.000000Z
+db5b62b94d87612e7c9dc9083cb96078
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8204
+
+edit.ctp
+file
+
+
+
+
+2009-01-10T03:50:28.000000Z
+fe104e2b60915747344ede981dccec4d
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2613
+
+index.ctp
+file
+
+
+
+
+2009-01-10T03:50:27.000000Z
+3aaaa71515e374b015e849823d48b249
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6775
+
+add.ctp
+file
+
+
+
+
+2009-01-10T03:50:28.000000Z
+5529410e231791d574ab677665c82010
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2368
+
diff --git a/views/quote_products/.svn/format b/views/quote_products/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/quote_products/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/quote_products/.svn/text-base/add.ctp.svn-base b/views/quote_products/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..e8c42b34
--- /dev/null
+++ b/views/quote_products/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,52 @@
+
+create('QuoteProduct');?>
+
+
+ input('itemnumber');
+ echo $form->input('option');
+ echo $form->input('quantity');
+ echo $form->input('costprice');
+ echo $form->input('currency_id');
+ echo $form->input('ourdiscount');
+ echo $form->input('packing');
+ echo $form->input('shippingweight');
+ echo $form->input('shippingcost');
+ echo $form->input('exchangerate');
+ echo $form->input('duty');
+ echo $form->input('finance');
+ echo $form->input('misc');
+ echo $form->input('grosssellprice');
+ echo $form->input('grossgpdollars');
+ echo $form->input('grossgppercentage');
+ echo $form->input('netgpdollars');
+ echo $form->input('netgppercent');
+ echo $form->input('targetgp');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('total_landed_cost');
+ echo $form->input('fob_countryof_export');
+ echo $form->input('quote_id');
+ echo $form->input('product_id');
+ echo $form->input('discount');
+ echo $form->input('discountamount');
+ echo $form->input('grosssellpriceeach');
+ echo $form->input('netsellpriceeach');
+ echo $form->input('netsellprice');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List QuoteProducts', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/.svn/text-base/edit.ctp.svn-base b/views/quote_products/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..f994573f
--- /dev/null
+++ b/views/quote_products/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,54 @@
+
+create('QuoteProduct');?>
+
+
+ input('id');
+ echo $form->input('itemnumber');
+ echo $form->input('option');
+ echo $form->input('quantity');
+ echo $form->input('costprice');
+ echo $form->input('currency_id');
+ echo $form->input('ourdiscount');
+ echo $form->input('packing');
+ echo $form->input('shippingweight');
+ echo $form->input('shippingcost');
+ echo $form->input('exchangerate');
+ echo $form->input('duty');
+ echo $form->input('finance');
+ echo $form->input('misc');
+ echo $form->input('grosssellprice');
+ echo $form->input('grossgpdollars');
+ echo $form->input('grossgppercentage');
+ echo $form->input('netgpdollars');
+ echo $form->input('netgppercent');
+ echo $form->input('targetgp');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('total_landed_cost');
+ echo $form->input('fob_countryof_export');
+ echo $form->input('quote_id');
+ echo $form->input('product_id');
+ echo $form->input('discount');
+ echo $form->input('discountamount');
+ echo $form->input('grosssellpriceeach');
+ echo $form->input('netsellpriceeach');
+ echo $form->input('netsellprice');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('QuoteProduct.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('QuoteProduct.id'))); ?>
+ link(__('List QuoteProducts', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/.svn/text-base/index.ctp.svn-base b/views/quote_products/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..6587f5d1
--- /dev/null
+++ b/views/quote_products/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,172 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('itemnumber');?>
+ sort('option');?>
+ sort('quantity');?>
+ sort('costprice');?>
+ sort('currency_id');?>
+ sort('ourdiscount');?>
+ sort('packing');?>
+ sort('shippingweight');?>
+ sort('shippingcost');?>
+ sort('exchangerate');?>
+ sort('duty');?>
+ sort('finance');?>
+ sort('misc');?>
+ sort('grosssellprice');?>
+ sort('grossgpdollars');?>
+ sort('grossgppercentage');?>
+ sort('netgpdollars');?>
+ sort('netgppercent');?>
+ sort('targetgp');?>
+ sort('title');?>
+ sort('description');?>
+ sort('total_landed_cost');?>
+ sort('fob_countryof_export');?>
+ sort('quote_id');?>
+ sort('product_id');?>
+ sort('discount');?>
+ sort('discountamount');?>
+ sort('grosssellpriceeach');?>
+ sort('netsellpriceeach');?>
+ sort('netsellprice');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($quoteProduct['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $quoteProduct['Currency']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($quoteProduct['Quote']['id'], array('controller'=> 'quotes', 'action'=>'view', $quoteProduct['Quote']['id'])); ?>
+
+
+ link($quoteProduct['Product']['title'], array('controller'=> 'products', 'action'=>'view', $quoteProduct['Product']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $quoteProduct['QuoteProduct']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quoteProduct['QuoteProduct']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New QuoteProduct', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/.svn/text-base/view.ctp.svn-base b/views/quote_products/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..81328a6a
--- /dev/null
+++ b/views/quote_products/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,176 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quoteProduct['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $quoteProduct['Currency']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quoteProduct['Quote']['id'], array('controller'=> 'quotes', 'action'=>'view', $quoteProduct['Quote']['id'])); ?>
+
+
+ >
+ >
+ link($quoteProduct['Product']['title'], array('controller'=> 'products', 'action'=>'view', $quoteProduct['Product']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit QuoteProduct', true), array('action'=>'edit', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Delete QuoteProduct', true), array('action'=>'delete', $quoteProduct['QuoteProduct']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('List QuoteProducts', true), array('action'=>'index')); ?>
+ link(__('New QuoteProduct', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/add.ctp b/views/quote_products/add.ctp
new file mode 100644
index 00000000..e8c42b34
--- /dev/null
+++ b/views/quote_products/add.ctp
@@ -0,0 +1,52 @@
+
+create('QuoteProduct');?>
+
+
+ input('itemnumber');
+ echo $form->input('option');
+ echo $form->input('quantity');
+ echo $form->input('costprice');
+ echo $form->input('currency_id');
+ echo $form->input('ourdiscount');
+ echo $form->input('packing');
+ echo $form->input('shippingweight');
+ echo $form->input('shippingcost');
+ echo $form->input('exchangerate');
+ echo $form->input('duty');
+ echo $form->input('finance');
+ echo $form->input('misc');
+ echo $form->input('grosssellprice');
+ echo $form->input('grossgpdollars');
+ echo $form->input('grossgppercentage');
+ echo $form->input('netgpdollars');
+ echo $form->input('netgppercent');
+ echo $form->input('targetgp');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('total_landed_cost');
+ echo $form->input('fob_countryof_export');
+ echo $form->input('quote_id');
+ echo $form->input('product_id');
+ echo $form->input('discount');
+ echo $form->input('discountamount');
+ echo $form->input('grosssellpriceeach');
+ echo $form->input('netsellpriceeach');
+ echo $form->input('netsellprice');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List QuoteProducts', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/edit.ctp b/views/quote_products/edit.ctp
new file mode 100644
index 00000000..f994573f
--- /dev/null
+++ b/views/quote_products/edit.ctp
@@ -0,0 +1,54 @@
+
+create('QuoteProduct');?>
+
+
+ input('id');
+ echo $form->input('itemnumber');
+ echo $form->input('option');
+ echo $form->input('quantity');
+ echo $form->input('costprice');
+ echo $form->input('currency_id');
+ echo $form->input('ourdiscount');
+ echo $form->input('packing');
+ echo $form->input('shippingweight');
+ echo $form->input('shippingcost');
+ echo $form->input('exchangerate');
+ echo $form->input('duty');
+ echo $form->input('finance');
+ echo $form->input('misc');
+ echo $form->input('grosssellprice');
+ echo $form->input('grossgpdollars');
+ echo $form->input('grossgppercentage');
+ echo $form->input('netgpdollars');
+ echo $form->input('netgppercent');
+ echo $form->input('targetgp');
+ echo $form->input('title');
+ echo $form->input('description');
+ echo $form->input('total_landed_cost');
+ echo $form->input('fob_countryof_export');
+ echo $form->input('quote_id');
+ echo $form->input('product_id');
+ echo $form->input('discount');
+ echo $form->input('discountamount');
+ echo $form->input('grosssellpriceeach');
+ echo $form->input('netsellpriceeach');
+ echo $form->input('netsellprice');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('QuoteProduct.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('QuoteProduct.id'))); ?>
+ link(__('List QuoteProducts', true), array('action'=>'index'));?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/index.ctp b/views/quote_products/index.ctp
new file mode 100644
index 00000000..6587f5d1
--- /dev/null
+++ b/views/quote_products/index.ctp
@@ -0,0 +1,172 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('itemnumber');?>
+ sort('option');?>
+ sort('quantity');?>
+ sort('costprice');?>
+ sort('currency_id');?>
+ sort('ourdiscount');?>
+ sort('packing');?>
+ sort('shippingweight');?>
+ sort('shippingcost');?>
+ sort('exchangerate');?>
+ sort('duty');?>
+ sort('finance');?>
+ sort('misc');?>
+ sort('grosssellprice');?>
+ sort('grossgpdollars');?>
+ sort('grossgppercentage');?>
+ sort('netgpdollars');?>
+ sort('netgppercent');?>
+ sort('targetgp');?>
+ sort('title');?>
+ sort('description');?>
+ sort('total_landed_cost');?>
+ sort('fob_countryof_export');?>
+ sort('quote_id');?>
+ sort('product_id');?>
+ sort('discount');?>
+ sort('discountamount');?>
+ sort('grosssellpriceeach');?>
+ sort('netsellpriceeach');?>
+ sort('netsellprice');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($quoteProduct['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $quoteProduct['Currency']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($quoteProduct['Quote']['id'], array('controller'=> 'quotes', 'action'=>'view', $quoteProduct['Quote']['id'])); ?>
+
+
+ link($quoteProduct['Product']['title'], array('controller'=> 'products', 'action'=>'view', $quoteProduct['Product']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $quoteProduct['QuoteProduct']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quoteProduct['QuoteProduct']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New QuoteProduct', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quote_products/view.ctp b/views/quote_products/view.ctp
new file mode 100644
index 00000000..81328a6a
--- /dev/null
+++ b/views/quote_products/view.ctp
@@ -0,0 +1,176 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quoteProduct['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $quoteProduct['Currency']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quoteProduct['Quote']['id'], array('controller'=> 'quotes', 'action'=>'view', $quoteProduct['Quote']['id'])); ?>
+
+
+ >
+ >
+ link($quoteProduct['Product']['title'], array('controller'=> 'products', 'action'=>'view', $quoteProduct['Product']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit QuoteProduct', true), array('action'=>'edit', $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('Delete QuoteProduct', true), array('action'=>'delete', $quoteProduct['QuoteProduct']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quoteProduct['QuoteProduct']['id'])); ?>
+ link(__('List QuoteProducts', true), array('action'=>'index')); ?>
+ link(__('New QuoteProduct', true), array('action'=>'add')); ?>
+ link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?>
+ link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?>
+ link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?>
+ link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?>
+ link(__('List Quotes', true), array('controller'=> 'quotes', 'action'=>'index')); ?>
+ link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add')); ?>
+ link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?>
+ link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/.svn/entries b/views/quotes/.svn/entries
new file mode 100644
index 00000000..0c9bbae3
--- /dev/null
+++ b/views/quotes/.svn/entries
@@ -0,0 +1,164 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/quotes
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-05T03:21:30.261073Z
+12
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-12-31T02:39:10.000000Z
+3bd858b7254e78c93cc808da8f68a19c
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7398
+
+edit.ctp
+file
+
+
+
+
+2008-12-22T23:29:08.000000Z
+318a6cb1521c7979f5f10490f835113b
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1292
+
+index.ctp
+file
+
+
+
+
+2008-12-22T23:29:07.000000Z
+d9d503c7550dfb37676d8714188dcd19
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3094
+
+add.ctp
+file
+
+
+
+
+2008-12-22T23:29:08.000000Z
+5f048915f21f1cac7477508972913d5f
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1061
+
diff --git a/views/quotes/.svn/format b/views/quotes/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/quotes/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/quotes/.svn/prop-base/add.ctp.svn-base b/views/quotes/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/quotes/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/quotes/.svn/prop-base/edit.ctp.svn-base b/views/quotes/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/quotes/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/quotes/.svn/prop-base/index.ctp.svn-base b/views/quotes/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/quotes/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/quotes/.svn/prop-base/view.ctp.svn-base b/views/quotes/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/quotes/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/quotes/.svn/text-base/add.ctp.svn-base b/views/quotes/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..64e82b10
--- /dev/null
+++ b/views/quotes/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,25 @@
+
+create('Quote');?>
+
+
+ input('enquiry_id');
+ echo $form->input('revision');
+ echo $form->input('first_page');
+ echo $form->input('attachments');
+ echo $form->input('delivery_time');
+ echo $form->input('payment_terms');
+ echo $form->input('days_valid');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Quotes', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/.svn/text-base/edit.ctp.svn-base b/views/quotes/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..0f35491f
--- /dev/null
+++ b/views/quotes/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,27 @@
+
+create('Quote');?>
+
+
+ input('id');
+ echo $form->input('enquiry_id');
+ echo $form->input('revision');
+ echo $form->input('first_page');
+ echo $form->input('attachments');
+ echo $form->input('delivery_time');
+ echo $form->input('payment_terms');
+ echo $form->input('days_valid');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Quote.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Quote.id'))); ?>
+ link(__('List Quotes', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/.svn/text-base/index.ctp.svn-base b/views/quotes/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..df3f8e6c
--- /dev/null
+++ b/views/quotes/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,84 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('created');?>
+ sort('modified');?>
+ sort('id');?>
+ sort('enquiry_id');?>
+ sort('revision');?>
+ sort('first_page');?>
+ sort('attachments');?>
+ sort('delivery_time');?>
+ sort('payment_terms');?>
+ sort('days_valid');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+ link($quote['Enquiry']['title'], array('controller'=> 'enquiries', 'action'=>'view', $quote['Enquiry']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $quote['Quote']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $quote['Quote']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Quote', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/.svn/text-base/view.ctp.svn-base b/views/quotes/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..f87e3eee
--- /dev/null
+++ b/views/quotes/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,171 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quote['Enquiry']['title'], array('controller'=> 'enquiries', 'action'=>'view', $quote['Enquiry']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Quote', true), array('action'=>'edit', $quote['Quote']['id'])); ?>
+ link(__('Delete Quote', true), array('action'=>'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
+ link(__('List Quotes', true), array('action'=>'index')); ?>
+ link(__('New Quote', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
+
diff --git a/views/quotes/add.ctp b/views/quotes/add.ctp
new file mode 100755
index 00000000..64e82b10
--- /dev/null
+++ b/views/quotes/add.ctp
@@ -0,0 +1,25 @@
+
+create('Quote');?>
+
+
+ input('enquiry_id');
+ echo $form->input('revision');
+ echo $form->input('first_page');
+ echo $form->input('attachments');
+ echo $form->input('delivery_time');
+ echo $form->input('payment_terms');
+ echo $form->input('days_valid');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Quotes', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/edit.ctp b/views/quotes/edit.ctp
new file mode 100755
index 00000000..0f35491f
--- /dev/null
+++ b/views/quotes/edit.ctp
@@ -0,0 +1,27 @@
+
+create('Quote');?>
+
+
+ input('id');
+ echo $form->input('enquiry_id');
+ echo $form->input('revision');
+ echo $form->input('first_page');
+ echo $form->input('attachments');
+ echo $form->input('delivery_time');
+ echo $form->input('payment_terms');
+ echo $form->input('days_valid');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Quote.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Quote.id'))); ?>
+ link(__('List Quotes', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/index.ctp b/views/quotes/index.ctp
new file mode 100755
index 00000000..df3f8e6c
--- /dev/null
+++ b/views/quotes/index.ctp
@@ -0,0 +1,84 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('created');?>
+ sort('modified');?>
+ sort('id');?>
+ sort('enquiry_id');?>
+ sort('revision');?>
+ sort('first_page');?>
+ sort('attachments');?>
+ sort('delivery_time');?>
+ sort('payment_terms');?>
+ sort('days_valid');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+ link($quote['Enquiry']['title'], array('controller'=> 'enquiries', 'action'=>'view', $quote['Enquiry']['id'])); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $quote['Quote']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $quote['Quote']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Quote', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
diff --git a/views/quotes/view.ctp b/views/quotes/view.ctp
new file mode 100755
index 00000000..f87e3eee
--- /dev/null
+++ b/views/quotes/view.ctp
@@ -0,0 +1,171 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($quote['Enquiry']['title'], array('controller'=> 'enquiries', 'action'=>'view', $quote['Enquiry']['id'])); ?>
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit Quote', true), array('action'=>'edit', $quote['Quote']['id'])); ?>
+ link(__('Delete Quote', true), array('action'=>'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
+ link(__('List Quotes', true), array('action'=>'index')); ?>
+ link(__('New Quote', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+ link(__('List Quote Products', true), array('controller'=> 'quote_products', 'action'=>'index')); ?>
+ link(__('New Quote Product', true), array('controller'=> 'quote_products', 'action'=>'add')); ?>
+
+
+
diff --git a/views/scaffolds/.svn/entries b/views/scaffolds/.svn/entries
new file mode 100644
index 00000000..315867ed
--- /dev/null
+++ b/views/scaffolds/.svn/entries
@@ -0,0 +1,41 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/scaffolds
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+empty
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/scaffolds/.svn/format b/views/scaffolds/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/scaffolds/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/scaffolds/.svn/prop-base/empty.svn-base b/views/scaffolds/.svn/prop-base/empty.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/scaffolds/.svn/prop-base/empty.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/scaffolds/.svn/text-base/empty.svn-base b/views/scaffolds/.svn/text-base/empty.svn-base
new file mode 100644
index 00000000..e69de29b
diff --git a/views/scaffolds/empty b/views/scaffolds/empty
new file mode 100755
index 00000000..e69de29b
diff --git a/views/states/.svn/entries b/views/states/.svn/entries
new file mode 100644
index 00000000..154e0a31
--- /dev/null
+++ b/views/states/.svn/entries
@@ -0,0 +1,101 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/states
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-05T03:21:30.261073Z
+12
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-12-25T12:58:08.000000Z
+4fd356be8f6f5adf98d8b324a312faaa
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3876
+
+edit.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+a775a36063065e502b2d7fc683f1897f
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+index.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+e7535bd57239ffaf7d04dc1aee31dc1b
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+add.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+2969d250e305f54868b5ccf7e30ed396
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/states/.svn/format b/views/states/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/states/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/states/.svn/prop-base/add.ctp.svn-base b/views/states/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/states/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/states/.svn/prop-base/edit.ctp.svn-base b/views/states/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/states/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/states/.svn/prop-base/index.ctp.svn-base b/views/states/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/states/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/states/.svn/prop-base/view.ctp.svn-base b/views/states/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/states/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/states/.svn/text-base/add.ctp.svn-base b/views/states/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..ce4e42bc
--- /dev/null
+++ b/views/states/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,21 @@
+
+create('State');?>
+
+
+ input('name');
+ echo $form->input('shortform');
+ echo $form->input('enqform');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List States', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/.svn/text-base/edit.ctp.svn-base b/views/states/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..8c66ff5c
--- /dev/null
+++ b/views/states/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,23 @@
+
+create('State');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('shortform');
+ echo $form->input('enqform');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('State.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('State.id'))); ?>
+ link(__('List States', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/.svn/text-base/index.ctp.svn-base b/views/states/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..942a2e6e
--- /dev/null
+++ b/views/states/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,60 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('shortform');?>
+ sort('enqform');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $state['State']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $state['State']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $state['State']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $state['State']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New State', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/.svn/text-base/view.ctp.svn-base b/views/states/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..99b48f5a
--- /dev/null
+++ b/views/states/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,98 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit State', true), array('action'=>'edit', $state['State']['id'])); ?>
+ link(__('Delete State', true), array('action'=>'delete', $state['State']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $state['State']['id'])); ?>
+ link(__('List States', true), array('action'=>'index')); ?>
+ link(__('New State', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
+
+
diff --git a/views/states/add.ctp b/views/states/add.ctp
new file mode 100755
index 00000000..ce4e42bc
--- /dev/null
+++ b/views/states/add.ctp
@@ -0,0 +1,21 @@
+
+create('State');?>
+
+
+ input('name');
+ echo $form->input('shortform');
+ echo $form->input('enqform');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List States', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/edit.ctp b/views/states/edit.ctp
new file mode 100755
index 00000000..8c66ff5c
--- /dev/null
+++ b/views/states/edit.ctp
@@ -0,0 +1,23 @@
+
+create('State');?>
+
+
+ input('id');
+ echo $form->input('name');
+ echo $form->input('shortform');
+ echo $form->input('enqform');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('State.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('State.id'))); ?>
+ link(__('List States', true), array('action'=>'index'));?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/index.ctp b/views/states/index.ctp
new file mode 100755
index 00000000..942a2e6e
--- /dev/null
+++ b/views/states/index.ctp
@@ -0,0 +1,60 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+ sort('shortform');?>
+ sort('enqform');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $state['State']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $state['State']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $state['State']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $state['State']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New State', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/states/view.ctp b/views/states/view.ctp
new file mode 100755
index 00000000..99b48f5a
--- /dev/null
+++ b/views/states/view.ctp
@@ -0,0 +1,98 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+
+
+
+
+ link(__('Edit State', true), array('action'=>'edit', $state['State']['id'])); ?>
+ link(__('Delete State', true), array('action'=>'delete', $state['State']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $state['State']['id'])); ?>
+ link(__('List States', true), array('action'=>'index')); ?>
+ link(__('New State', true), array('action'=>'add')); ?>
+ link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?>
+ link(__('New Address', true), array('controller'=> 'addresses', 'action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
+
+
diff --git a/views/statuses/.svn/entries b/views/statuses/.svn/entries
new file mode 100644
index 00000000..7f063e90
--- /dev/null
+++ b/views/statuses/.svn/entries
@@ -0,0 +1,101 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/statuses
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-05T03:21:30.261073Z
+12
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2008-12-26T00:48:50.000000Z
+721dd466dd05acb296cd2fbe6e65dffb
+2009-01-05T03:21:30.261073Z
+12
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+491
+
+edit.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+783116dad73a2fe11e816ad9c328ddaf
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+index.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d4905d3e9cf16b6b955fde36413dab47
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+add.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+9944c1bfb909dc9caaf75092806342d8
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/statuses/.svn/format b/views/statuses/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/statuses/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/statuses/.svn/prop-base/add.ctp.svn-base b/views/statuses/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/statuses/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/statuses/.svn/prop-base/edit.ctp.svn-base b/views/statuses/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/statuses/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/statuses/.svn/prop-base/index.ctp.svn-base b/views/statuses/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/statuses/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/statuses/.svn/prop-base/view.ctp.svn-base b/views/statuses/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/statuses/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/statuses/.svn/text-base/add.ctp.svn-base b/views/statuses/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..7a4dce17
--- /dev/null
+++ b/views/statuses/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,17 @@
+
+create('Status');?>
+
+
+ input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Statuses', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/.svn/text-base/edit.ctp.svn-base b/views/statuses/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..4c039696
--- /dev/null
+++ b/views/statuses/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,19 @@
+
+create('Status');?>
+
+
+ input('id');
+ echo $form->input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Status.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Status.id'))); ?>
+ link(__('List Statuses', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/.svn/text-base/index.ctp.svn-base b/views/statuses/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..935d2b81
--- /dev/null
+++ b/views/statuses/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,50 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $status['Status']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $status['Status']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $status['Status']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $status['Status']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Status', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/.svn/text-base/view.ctp.svn-base b/views/statuses/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..0e6a4109
--- /dev/null
+++ b/views/statuses/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,19 @@
+
+
+
+
diff --git a/views/statuses/add.ctp b/views/statuses/add.ctp
new file mode 100755
index 00000000..7a4dce17
--- /dev/null
+++ b/views/statuses/add.ctp
@@ -0,0 +1,17 @@
+
+create('Status');?>
+
+
+ input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Statuses', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/edit.ctp b/views/statuses/edit.ctp
new file mode 100755
index 00000000..4c039696
--- /dev/null
+++ b/views/statuses/edit.ctp
@@ -0,0 +1,19 @@
+
+create('Status');?>
+
+
+ input('id');
+ echo $form->input('name');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('Status.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Status.id'))); ?>
+ link(__('List Statuses', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/index.ctp b/views/statuses/index.ctp
new file mode 100755
index 00000000..935d2b81
--- /dev/null
+++ b/views/statuses/index.ctp
@@ -0,0 +1,50 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('name');?>
+
+
+
+ >
+
+
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $status['Status']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $status['Status']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $status['Status']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $status['Status']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New Status', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/statuses/view.ctp b/views/statuses/view.ctp
new file mode 100755
index 00000000..0e6a4109
--- /dev/null
+++ b/views/statuses/view.ctp
@@ -0,0 +1,19 @@
+
+
+
+
diff --git a/views/users/.svn/entries b/views/users/.svn/entries
new file mode 100644
index 00000000..8dd1b888
--- /dev/null
+++ b/views/users/.svn/entries
@@ -0,0 +1,177 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/views/users
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-12T00:37:38.932516Z
+17
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+view.ctp
+file
+
+
+
+
+2009-01-06T04:26:58.000000Z
+77a51a8744c882aa773941e33a67c3c1
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1781
+
+edit.ctp
+file
+
+
+
+
+2009-01-09T02:27:32.000000Z
+7e21e9a1401cffa24e090a50a4969591
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1010
+
+index.ctp
+file
+
+
+
+
+2008-11-24T06:03:03.000000Z
+b53904c32267504e539fec83b4032183
+2008-11-26T11:57:37.967249Z
+8
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2284
+
+add.ctp
+file
+
+
+
+
+2009-01-09T02:27:38.000000Z
+2fb3f30f838c4ae6f9d3c8355532fa9d
+2009-01-12T00:37:38.932516Z
+17
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+781
+
+login.ctp
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+2027ff8fc0ca44768ae0742b81587218
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/views/users/.svn/format b/views/users/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/views/users/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/views/users/.svn/prop-base/add.ctp.svn-base b/views/users/.svn/prop-base/add.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/users/.svn/prop-base/add.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/users/.svn/prop-base/edit.ctp.svn-base b/views/users/.svn/prop-base/edit.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/users/.svn/prop-base/edit.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/users/.svn/prop-base/index.ctp.svn-base b/views/users/.svn/prop-base/index.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/users/.svn/prop-base/index.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/users/.svn/prop-base/login.ctp.svn-base b/views/users/.svn/prop-base/login.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/users/.svn/prop-base/login.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/users/.svn/prop-base/view.ctp.svn-base b/views/users/.svn/prop-base/view.ctp.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/views/users/.svn/prop-base/view.ctp.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/views/users/.svn/text-base/add.ctp.svn-base b/views/users/.svn/text-base/add.ctp.svn-base
new file mode 100644
index 00000000..136ce015
--- /dev/null
+++ b/views/users/.svn/text-base/add.ctp.svn-base
@@ -0,0 +1,23 @@
+
+create('User');?>
+
+
+ input('username');
+ echo $form->input('password');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('job_title');
+ echo $form->input('group_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Users', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/.svn/text-base/edit.ctp.svn-base b/views/users/.svn/text-base/edit.ctp.svn-base
new file mode 100644
index 00000000..b394da2c
--- /dev/null
+++ b/views/users/.svn/text-base/edit.ctp.svn-base
@@ -0,0 +1,25 @@
+
+create('User');?>
+
+
+ input('id');
+ echo $form->input('username');
+ echo $form->input('password');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('job_title');
+ echo $form->input('group_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('User.id'))); ?>
+ link(__('List Users', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/.svn/text-base/index.ctp.svn-base b/views/users/.svn/text-base/index.ctp.svn-base
new file mode 100644
index 00000000..1a53f46a
--- /dev/null
+++ b/views/users/.svn/text-base/index.ctp.svn-base
@@ -0,0 +1,67 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('username');?>
+ sort('first_name');?>
+ sort('last_name');?>
+ sort('email');?>
+ sort('job_title');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($user['User']['email'], 'mailto:'. $user['User']['email']); ?>
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $user['User']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $user['User']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New User', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/.svn/text-base/login.ctp.svn-base b/views/users/.svn/text-base/login.ctp.svn-base
new file mode 100644
index 00000000..fd34d7e5
--- /dev/null
+++ b/views/users/.svn/text-base/login.ctp.svn-base
@@ -0,0 +1,7 @@
+check('Message.auth')) $session->flash('auth');
+ echo $form->create('User', array('action' => 'login'));
+ echo $form->input('username');
+ echo $form->input('password');
+ echo $form->end('Login');
+?>
diff --git a/views/users/.svn/text-base/view.ctp.svn-base b/views/users/.svn/text-base/view.ctp.svn-base
new file mode 100644
index 00000000..8e15c3fe
--- /dev/null
+++ b/views/users/.svn/text-base/view.ctp.svn-base
@@ -0,0 +1,53 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($user['User']['email'], 'mailto:'.$user['User']['email']); ?>
+
+
+ >
+ >
+
+
+
+
+
+
diff --git a/views/users/add.ctp b/views/users/add.ctp
new file mode 100755
index 00000000..136ce015
--- /dev/null
+++ b/views/users/add.ctp
@@ -0,0 +1,23 @@
+
+create('User');?>
+
+
+ input('username');
+ echo $form->input('password');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('job_title');
+ echo $form->input('group_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('List Users', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/edit.ctp b/views/users/edit.ctp
new file mode 100755
index 00000000..b394da2c
--- /dev/null
+++ b/views/users/edit.ctp
@@ -0,0 +1,25 @@
+
+create('User');?>
+
+
+ input('id');
+ echo $form->input('username');
+ echo $form->input('password');
+ echo $form->input('first_name');
+ echo $form->input('last_name');
+ echo $form->input('email');
+ echo $form->input('job_title');
+ echo $form->input('group_id');
+ ?>
+
+end('Submit');?>
+
+
+
+ link(__('Delete', true), array('action'=>'delete', $form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('User.id'))); ?>
+ link(__('List Users', true), array('action'=>'index'));?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/index.ctp b/views/users/index.ctp
new file mode 100755
index 00000000..1a53f46a
--- /dev/null
+++ b/views/users/index.ctp
@@ -0,0 +1,67 @@
+
+
+
+counter(array(
+'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?>
+
+
+ sort('id');?>
+ sort('username');?>
+ sort('first_name');?>
+ sort('last_name');?>
+ sort('email');?>
+ sort('job_title');?>
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ link($user['User']['email'], 'mailto:'. $user['User']['email']); ?>
+
+
+
+
+
+ link(__('View', true), array('action'=>'view', $user['User']['id'])); ?>
+ link(__('Edit', true), array('action'=>'edit', $user['User']['id'])); ?>
+ link(__('Delete', true), array('action'=>'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
+
+
+
+
+
+
+ prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
+ | numbers();?>
+ next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
+
+
+
+ link(__('New User', true), array('action'=>'add')); ?>
+ link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?>
+ link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?>
+
+
diff --git a/views/users/login.ctp b/views/users/login.ctp
new file mode 100755
index 00000000..fd34d7e5
--- /dev/null
+++ b/views/users/login.ctp
@@ -0,0 +1,7 @@
+check('Message.auth')) $session->flash('auth');
+ echo $form->create('User', array('action' => 'login'));
+ echo $form->input('username');
+ echo $form->input('password');
+ echo $form->end('Login');
+?>
diff --git a/views/users/view.ctp b/views/users/view.ctp
new file mode 100755
index 00000000..8e15c3fe
--- /dev/null
+++ b/views/users/view.ctp
@@ -0,0 +1,53 @@
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+
+
+
+ >
+ >
+ link($user['User']['email'], 'mailto:'.$user['User']['email']); ?>
+
+
+ >
+ >
+
+
+
+
+
+
diff --git a/webroot/.htaccess b/webroot/.htaccess
new file mode 100755
index 00000000..f9d8b938
--- /dev/null
+++ b/webroot/.htaccess
@@ -0,0 +1,6 @@
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
+
\ No newline at end of file
diff --git a/webroot/.svn/entries b/webroot/.svn/entries
new file mode 100644
index 00000000..932380f3
--- /dev/null
+++ b/webroot/.svn/entries
@@ -0,0 +1,160 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/webroot
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-07T01:19:11.314653Z
+14
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+files
+dir
+
+test.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+eff0deb8cac027b6787f763c6e821996
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+css
+dir
+
+q.ico
+file
+18
+
+
+
+2008-12-23T04:24:22.000000Z
+729b4f69f3f13b9ccec08b6562b5a7bf
+2009-01-12T05:57:25.596672Z
+18
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+92
+
+.htaccess
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+b8583bb1e56a044887b62b2f3c935ddd
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+img
+dir
+
+js
+dir
+
+index.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+480388b0dba3e9d7dc676dc1f42cb7bd
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+css.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+a5437d28b8ed901cfd888e741de9edc6
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+favicon.ico
+file
+
+
+
+
+2006-02-10T00:44:26.000000Z
+83589f646da602fef01b0c58d80ac866
+2008-12-24T01:25:35.332966Z
+11
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+682
+
diff --git a/webroot/.svn/format b/webroot/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/webroot/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/webroot/.svn/prop-base/.htaccess.svn-base b/webroot/.svn/prop-base/.htaccess.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/.svn/prop-base/.htaccess.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/.svn/prop-base/css.php.svn-base b/webroot/.svn/prop-base/css.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/.svn/prop-base/css.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/.svn/prop-base/favicon.ico.svn-base b/webroot/.svn/prop-base/favicon.ico.svn-base
new file mode 100644
index 00000000..cd0e69f8
--- /dev/null
+++ b/webroot/.svn/prop-base/favicon.ico.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 0
+
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/.svn/prop-base/index.php.svn-base b/webroot/.svn/prop-base/index.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/.svn/prop-base/index.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/.svn/prop-base/q.ico.svn-base b/webroot/.svn/prop-base/q.ico.svn-base
new file mode 100644
index 00000000..dbc918b0
--- /dev/null
+++ b/webroot/.svn/prop-base/q.ico.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/.svn/prop-base/test.php.svn-base b/webroot/.svn/prop-base/test.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/.svn/prop-base/test.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/.svn/text-base/.htaccess.svn-base b/webroot/.svn/text-base/.htaccess.svn-base
new file mode 100644
index 00000000..f9d8b938
--- /dev/null
+++ b/webroot/.svn/text-base/.htaccess.svn-base
@@ -0,0 +1,6 @@
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
+
\ No newline at end of file
diff --git a/webroot/.svn/text-base/css.php.svn-base b/webroot/.svn/text-base/css.php.svn-base
new file mode 100644
index 00000000..4f8bc908
--- /dev/null
+++ b/webroot/.svn/text-base/css.php.svn-base
@@ -0,0 +1,104 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ header('HTTP/1.1 404 Not Found');
+ exit('File Not Found');
+}
+/**
+ * Enter description here...
+ */
+if (!class_exists('File')) {
+ uses('file');
+}
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $name
+ * @return unknown
+ */
+ function make_clean_css($path, $name) {
+ require(VENDORS . 'csspp' . DS . 'csspp.php');
+ $data = file_get_contents($path);
+ $csspp = new csspp();
+ $output = $csspp->compress($data);
+ $ratio = 100 - (round(strlen($output) / strlen($data), 3) * 100);
+ $output = " /* file: $name, ratio: $ratio% */ " . $output;
+ return $output;
+ }
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $content
+ * @return unknown
+ */
+ function write_css_cache($path, $content) {
+ if (!is_dir(dirname($path))) {
+ mkdir(dirname($path));
+ }
+ $cache = new File($path);
+ return $cache->write($content);
+ }
+
+ if (preg_match('|\.\.|', $url) || !preg_match('|^ccss/(.+)$|i', $url, $regs)) {
+ die('Wrong file name.');
+ }
+
+ $filename = 'css/' . $regs[1];
+ $filepath = CSS . $regs[1];
+ $cachepath = CACHE . 'css' . DS . str_replace(array('/','\\'), '-', $regs[1]);
+
+ if (!file_exists($filepath)) {
+ die('Wrong file name.');
+ }
+
+ if (file_exists($cachepath)) {
+ $templateModified = filemtime($filepath);
+ $cacheModified = filemtime($cachepath);
+
+ if ($templateModified > $cacheModified) {
+ $output = make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ } else {
+ $output = file_get_contents($cachepath);
+ }
+ } else {
+ $output = make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ $templateModified = time();
+ }
+
+ header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
+ header("Content-Type: text/css");
+ header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
+ header("Cache-Control: cache"); // HTTP/1.1
+ header("Pragma: cache"); // HTTP/1.0
+ print $output;
+?>
\ No newline at end of file
diff --git a/webroot/.svn/text-base/favicon.ico.svn-base b/webroot/.svn/text-base/favicon.ico.svn-base
new file mode 100644
index 00000000..7dc15ea9
Binary files /dev/null and b/webroot/.svn/text-base/favicon.ico.svn-base differ
diff --git a/webroot/.svn/text-base/index.php.svn-base b/webroot/.svn/text-base/index.php.svn-base
new file mode 100644
index 00000000..6a7966fc
--- /dev/null
+++ b/webroot/.svn/text-base/index.php.svn-base
@@ -0,0 +1,95 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Use the DS to separate the directories in other defines
+ */
+ if (!defined('DS')) {
+ define('DS', DIRECTORY_SEPARATOR);
+ }
+/**
+ * These defines should only be edited if you have cake installed in
+ * a directory layout other than the way it is distributed.
+ * When using custom settings be sure to use the DS and do not add a trailing DS.
+ */
+
+/**
+ * The full path to the directory which holds "app", WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('ROOT')) {
+ define('ROOT', dirname(dirname(dirname(__FILE__))));
+ }
+/**
+ * The actual directory name for the "app".
+ *
+ */
+ if (!defined('APP_DIR')) {
+ define('APP_DIR', basename(dirname(dirname(__FILE__))));
+ }
+/**
+ * The absolute path to the "cake" directory, WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ define('CAKE_CORE_INCLUDE_PATH', ROOT);
+ }
+
+/**
+ * Editing below this line should NOT be necessary.
+ * Change at your own risk.
+ *
+ */
+ if (!defined('WEBROOT_DIR')) {
+ define('WEBROOT_DIR', basename(dirname(__FILE__)));
+ }
+ if (!defined('WWW_ROOT')) {
+ define('WWW_ROOT', dirname(__FILE__) . DS);
+ }
+ if (!defined('CORE_PATH')) {
+ if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
+ define('APP_PATH', null);
+ define('CORE_PATH', null);
+ } else {
+ define('APP_PATH', ROOT . DS . APP_DIR . DS);
+ define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
+ }
+ }
+ if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
+ trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
+ }
+ if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
+ return;
+ } else {
+ $Dispatcher = new Dispatcher();
+ $Dispatcher->dispatch($url);
+ }
+ if (Configure::read() > 0) {
+ echo "";
+ }
+?>
\ No newline at end of file
diff --git a/webroot/.svn/text-base/q.ico.svn-base b/webroot/.svn/text-base/q.ico.svn-base
new file mode 100644
index 00000000..ff71ca6d
Binary files /dev/null and b/webroot/.svn/text-base/q.ico.svn-base differ
diff --git a/webroot/.svn/text-base/test.php.svn-base b/webroot/.svn/text-base/test.php.svn-base
new file mode 100644
index 00000000..dcefc00b
--- /dev/null
+++ b/webroot/.svn/text-base/test.php.svn-base
@@ -0,0 +1,183 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The Open Group Test Suite License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
+ * @package cake
+ * @subpackage cake.cake.tests.libs
+ * @since CakePHP(tm) v 1.2.0.4433
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
+ */
+error_reporting(E_ALL);
+set_time_limit(0);
+ini_set('memory_limit','128M');
+ini_set('display_errors', 1);
+/**
+ * Use the DS to separate the directories in other defines
+ */
+ if (!defined('DS')) {
+ define('DS', DIRECTORY_SEPARATOR);
+ }
+/**
+ * These defines should only be edited if you have cake installed in
+ * a directory layout other than the way it is distributed.
+ * When using custom settings be sure to use the DS and do not add a trailing DS.
+ */
+
+/**
+ * The full path to the directory which holds "app", WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('ROOT')) {
+ define('ROOT', dirname(dirname(dirname(__FILE__))));
+ }
+/**
+ * The actual directory name for the "app".
+ *
+ */
+ if (!defined('APP_DIR')) {
+ define('APP_DIR', basename(dirname(dirname(__FILE__))));
+ }
+/**
+ * The absolute path to the "cake" directory, WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ define('CAKE_CORE_INCLUDE_PATH', ROOT);
+ }
+
+/**
+ * Editing below this line should not be necessary.
+ * Change at your own risk.
+ *
+ */
+if (!defined('WEBROOT_DIR')) {
+ define('WEBROOT_DIR', basename(dirname(__FILE__)));
+}
+if (!defined('WWW_ROOT')) {
+ define('WWW_ROOT', dirname(__FILE__) . DS);
+}
+if (!defined('CORE_PATH')) {
+ if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
+ define('APP_PATH', null);
+ define('CORE_PATH', null);
+ } else {
+ define('APP_PATH', ROOT . DS . APP_DIR . DS);
+ define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
+ }
+}
+if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
+ trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
+}
+
+$corePath = Configure::corePaths('cake');
+if (isset($corePath[0])) {
+ define('TEST_CAKE_CORE_INCLUDE_PATH', rtrim($corePath[0], DS) . DS);
+} else {
+ define('TEST_CAKE_CORE_INCLUDE_PATH', CAKE_CORE_INCLUDE_PATH);
+}
+
+require_once CAKE_TESTS_LIB . 'test_manager.php';
+
+if (Configure::read('debug') < 1) {
+ die(__('Debug setting does not allow access to this url.', true));
+}
+
+if (!isset($_SERVER['SERVER_NAME'])) {
+ $_SERVER['SERVER_NAME'] = '';
+}
+if (empty( $_GET['output'])) {
+ $_GET['output'] = 'html';
+}
+/**
+ *
+ * Used to determine output to display
+ */
+define('CAKE_TEST_OUTPUT_HTML', 1);
+define('CAKE_TEST_OUTPUT_TEXT', 2);
+
+if (isset($_GET['output']) && $_GET['output'] == 'html') {
+ define('CAKE_TEST_OUTPUT', CAKE_TEST_OUTPUT_HTML);
+} else {
+ Debugger::output('txt');
+ define('CAKE_TEST_OUTPUT', CAKE_TEST_OUTPUT_TEXT);
+}
+
+if (!App::import('Vendor', 'simpletest' . DS . 'reporter')) {
+ CakePHPTestHeader();
+ include CAKE_TESTS_LIB . 'simpletest.php';
+ CakePHPTestSuiteFooter();
+ exit();
+}
+
+$analyzeCodeCoverage = false;
+if (isset($_GET['code_coverage'])) {
+ $analyzeCodeCoverage = true;
+ require_once CAKE_TESTS_LIB . 'code_coverage_manager.php';
+ if (!extension_loaded('xdebug')) {
+ CakePHPTestHeader();
+ include CAKE_TESTS_LIB . 'xdebug.php';
+ CakePHPTestSuiteFooter();
+ exit();
+ }
+}
+
+CakePHPTestHeader();
+CakePHPTestSuiteHeader();
+define('RUN_TEST_LINK', $_SERVER['PHP_SELF']);
+
+if (isset($_GET['group'])) {
+ if ('all' == $_GET['group']) {
+ TestManager::runAllTests(CakeTestsGetReporter());
+ } else {
+ if ($analyzeCodeCoverage) {
+ CodeCoverageManager::start($_GET['group'], CakeTestsGetReporter());
+ }
+ TestManager::runGroupTest(ucfirst($_GET['group']), CakeTestsGetReporter());
+ if ($analyzeCodeCoverage) {
+ CodeCoverageManager::report();
+ }
+ }
+
+ CakePHPTestRunMore();
+ CakePHPTestAnalyzeCodeCoverage();
+} elseif (isset($_GET['case'])) {
+ if ($analyzeCodeCoverage) {
+ CodeCoverageManager::start($_GET['case'], CakeTestsGetReporter());
+ }
+
+ TestManager::runTestCase($_GET['case'], CakeTestsGetReporter());
+
+ if ($analyzeCodeCoverage) {
+ CodeCoverageManager::report();
+ }
+
+ CakePHPTestRunMore();
+ CakePHPTestAnalyzeCodeCoverage();
+} elseif (isset($_GET['show']) && $_GET['show'] == 'cases') {
+ CakePHPTestCaseList();
+} else {
+ CakePHPTestGroupTestList();
+}
+CakePHPTestSuiteFooter();
+$output = ob_get_clean();
+echo $output;
+?>
\ No newline at end of file
diff --git a/webroot/css.php b/webroot/css.php
new file mode 100755
index 00000000..4f8bc908
--- /dev/null
+++ b/webroot/css.php
@@ -0,0 +1,104 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ header('HTTP/1.1 404 Not Found');
+ exit('File Not Found');
+}
+/**
+ * Enter description here...
+ */
+if (!class_exists('File')) {
+ uses('file');
+}
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $name
+ * @return unknown
+ */
+ function make_clean_css($path, $name) {
+ require(VENDORS . 'csspp' . DS . 'csspp.php');
+ $data = file_get_contents($path);
+ $csspp = new csspp();
+ $output = $csspp->compress($data);
+ $ratio = 100 - (round(strlen($output) / strlen($data), 3) * 100);
+ $output = " /* file: $name, ratio: $ratio% */ " . $output;
+ return $output;
+ }
+/**
+ * Enter description here...
+ *
+ * @param unknown_type $path
+ * @param unknown_type $content
+ * @return unknown
+ */
+ function write_css_cache($path, $content) {
+ if (!is_dir(dirname($path))) {
+ mkdir(dirname($path));
+ }
+ $cache = new File($path);
+ return $cache->write($content);
+ }
+
+ if (preg_match('|\.\.|', $url) || !preg_match('|^ccss/(.+)$|i', $url, $regs)) {
+ die('Wrong file name.');
+ }
+
+ $filename = 'css/' . $regs[1];
+ $filepath = CSS . $regs[1];
+ $cachepath = CACHE . 'css' . DS . str_replace(array('/','\\'), '-', $regs[1]);
+
+ if (!file_exists($filepath)) {
+ die('Wrong file name.');
+ }
+
+ if (file_exists($cachepath)) {
+ $templateModified = filemtime($filepath);
+ $cacheModified = filemtime($cachepath);
+
+ if ($templateModified > $cacheModified) {
+ $output = make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ } else {
+ $output = file_get_contents($cachepath);
+ }
+ } else {
+ $output = make_clean_css($filepath, $filename);
+ write_css_cache($cachepath, $output);
+ $templateModified = time();
+ }
+
+ header("Date: " . date("D, j M Y G:i:s ", $templateModified) . 'GMT');
+ header("Content-Type: text/css");
+ header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
+ header("Cache-Control: cache"); // HTTP/1.1
+ header("Pragma: cache"); // HTTP/1.0
+ print $output;
+?>
\ No newline at end of file
diff --git a/webroot/css/.svn/entries b/webroot/css/.svn/entries
new file mode 100644
index 00000000..a81285ec
--- /dev/null
+++ b/webroot/css/.svn/entries
@@ -0,0 +1,75 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/webroot/css
+file:///home/karl/svn/quotenik
+
+
+
+2009-01-07T01:19:11.314653Z
+14
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+cake.generic.css
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+4b0000b61ee7c9956a1d27149ef2f183
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+quotenik.css
+file
+
+
+
+
+2009-01-07T01:15:43.000000Z
+41bf5863c47841691bf78ea1af05379b
+2009-01-07T01:19:11.314653Z
+14
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+11005
+
diff --git a/webroot/css/.svn/format b/webroot/css/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/webroot/css/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/webroot/css/.svn/prop-base/cake.generic.css.svn-base b/webroot/css/.svn/prop-base/cake.generic.css.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/css/.svn/prop-base/cake.generic.css.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/css/.svn/prop-base/quotenik.css.svn-base b/webroot/css/.svn/prop-base/quotenik.css.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/css/.svn/prop-base/quotenik.css.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/css/.svn/text-base/cake.generic.css.svn-base b/webroot/css/.svn/text-base/cake.generic.css.svn-base
new file mode 100644
index 00000000..c6367194
--- /dev/null
+++ b/webroot/css/.svn/text-base/cake.generic.css.svn-base
@@ -0,0 +1,475 @@
+/* SVN FILE: $Id: cake.generic.css 7118 2008-06-04 20:49:29Z gwoo $ */
+/**
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot.css
+ * @since CakePHP(tm)
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+
+* {
+ margin:0;
+ padding:0;
+}
+
+/* General Style Info */
+body {
+ background: #003d4c;
+ color: #fff;
+ font-family:'lucida grande',verdana,helvetica,arial,sans-serif;
+ font-size:90%;
+ margin: 0;
+}
+a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: underline;
+ font-weight: bold;
+}
+a:hover {
+ background:#fff;
+ color: #003d4c;
+ text-decoration:none;
+}
+a img {
+ border:none;
+}
+h1, h2, h3, h4 {
+ font-weight: normal;
+}
+h1 {
+ background:#fff;
+ color: #003d4c;
+ font-size: 100%;
+ margin: 0.1em 0;
+}
+h2 {
+ background:#fff;
+ color: #e32;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 190%;
+ margin: 0.3em 0;
+ padding-top: 0.8em;
+}
+h3 {
+ color: #993;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 165%;
+ padding-top: 1.5em;
+}
+h4 {
+ color: #993;
+ font-weight: normal;
+ padding-top: 0.5em;
+}
+ul, li {
+ margin: 0 12px;
+}
+
+/* Layout */
+#container {
+ text-align: left;
+}
+
+#header{
+ padding: 10px 20px;
+}
+#header h1 {
+ background: #003d4c url('../img/cake.icon.gif') no-repeat left;
+ color: #fff;
+ padding: 0px 30px;
+}
+#header h1 a {
+ color: #fff;
+ background: #003d4c;
+ font-weight: normal;
+ text-decoration: none;
+}
+#header h1 a:hover {
+ color: #fff;
+ background: #003d4c;
+ text-decoration: underline;
+}
+#content{
+ background: #fff;
+ clear: both;
+ color: #333;
+ padding: 10px 20px 40px 20px;
+ overflow: auto;
+}
+#footer {
+ clear: both;
+ padding: 6px 10px;
+ text-align: right;
+}
+
+/* Tables */
+table {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+}
+th {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ padding: 4px;
+ text-align: center;
+ vertical-align: top;
+}
+table tr.altrow td {
+ background: #f4f4f4;
+}
+td.actions {
+ text-align: center;
+ white-space: nowrap;
+}
+td.actions a {
+ margin: 0px 6px;
+}
+.cake-sql-log table {
+ background: #f4f4f4;
+}
+.cake-sql-log td {
+ padding: 4px 8px;
+ text-align: left;
+}
+
+/* Paging */
+div.paging {
+ background:#fff;
+ color: #ccc;
+ margin-bottom: 2em;
+}
+div.paging div.disabled {
+ color: #ddd;
+ display: inline;
+}
+div.paging span {
+}
+div.paging span.current {
+ color: #000;
+}
+div.paging span a {
+}
+
+/* Scaffold View */
+dl {
+ line-height: 2em;
+ margin: 0em 0em;
+ width: 60%;
+}
+dl.altrow {
+ background: #f4f4f4;
+}
+dt {
+ font-weight: bold;
+ padding-left: 4px;
+ vertical-align: top;
+}
+dd {
+ margin-left: 10em;
+ margin-top: -2em;
+ vertical-align: top;
+}
+
+/* Forms */
+form {
+ clear: both;
+ margin-right: 20px;
+ padding: 0;
+ width: 80%;
+}
+fieldset {
+ border: 1px solid #ccc;
+ margin-top: 30px;
+ padding: 16px 20px;
+}
+fieldset legend {
+ background:#fff;
+ color: #e32;
+ font-size: 160%;
+ font-weight: bold;
+}
+fieldset fieldset {
+ margin-top: 0px;
+ margin-bottom: 20px;
+ padding: 16px 0;
+}
+fieldset fieldset legend {
+ font-size: 120%;
+ font-weight: normal;
+ margin-left: 20px;
+}
+fieldset fieldset div {
+ clear: left;
+ margin: 0 20px;
+}
+form div {
+ clear: both;
+ margin-bottom: 1em;
+ padding: .5em;
+ vertical-align: text-top;
+}
+form div.input {
+ color: #444;
+}
+form div.required {
+ color: #333;
+ font-weight: bold;
+}
+form div.submit {
+ border: 0;
+ clear: both;
+ margin-top: 10px;
+ margin-left: 140px;
+}
+label {
+ display: block;
+ font-size: 110%;
+ padding-right: 20px;
+}
+input, textarea {
+ clear: both;
+ display: block;
+ font-size: 140%;
+ font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
+ padding: 2px;
+ width: 100%;
+}
+select {
+ clear: both;
+ font-size: 120%;
+ vertical-align: text-bottom;
+}
+select[multiple=multiple] {
+ width: 100%;
+}
+option {
+ font-size: 120%;
+ padding: 0 3px;
+}
+input[type=checkbox] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=submit] {
+ display: inline;
+ font-size: 110%;
+ padding: 2px 5px;
+ width: auto;
+ vertical-align: bottom;
+}
+
+/* Notices and Errors */
+div.message {
+ clear: both;
+ color: #900;
+ font-size: 140%;
+ font-weight: bold;
+ margin: 1em 0;
+}
+div.error-message {
+ clear: both;
+ color: #900;
+ font-weight: bold;
+}
+p.error {
+ background-color: #e32;
+ color: #fff;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+p.error em {
+ color: #000;
+ font-weight: normal;
+ line-height: 140%;
+}
+.notice {
+ background: #ffcc00;
+ color: #000;
+ display: block;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+.success {
+ background: green;
+ color: #fff;
+}
+
+/* Actions */
+div.actions ul {
+ margin: 0px 0;
+ padding: 0;
+}
+div.actions li {
+ display: inline;
+ list-style-type: none;
+ line-height: 2em;
+ margin: 0 2em 0 0;
+ white-space: nowrap;
+}
+div.actions ul li a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: none;
+}
+div.actions ul li a:hover {
+ color: #333;
+ text-decoration: underline;
+}
+
+/* Related */
+div.related {
+ clear: both;
+ display: block;
+}
+
+/* Debugging */
+pre {
+ color: #000;
+ background: #f0f0f0;
+ padding: 1em;
+}
+pre.cake-debug {
+ background: #ffcc00;
+ font-size: 120%;
+ line-height: 140%;
+ margin-top: 1em;
+ overflow: auto;
+ position: relative;
+}
+div.cake-stack-trace {
+ background: #fff;
+ border: 4px dotted #ffcc00;
+ color: #333;
+ margin: 0px;
+ padding: 6px;
+ font-size: 120%;
+ line-height: 140%;
+ overflow: auto;
+ position: relative;
+}
+div.cake-code-dump pre {
+ position: relative;
+ overflow: auto;
+}
+div.cake-stack-trace pre, div.cake-code-dump pre {
+ color: #000;
+ background-color: #F0F0F0;
+ margin: 0px;
+ padding: 1em;
+ overflow: auto;
+}
+div.cake-code-dump pre, div.cake-code-dump pre code {
+ clear: both;
+ font-size: 12px;
+ line-height: 15px;
+ margin: 4px 2px;
+ padding: 4px;
+ overflow: auto;
+}
+div.cake-code-dump span.code-highlight {
+ background-color: #ff0;
+ padding: 4px;
+}
+div.code-coverage-results div.code-line {
+ padding-left:5px;
+ display:block;
+ margin-left:10px;
+}
+div.code-coverage-results div.uncovered span.content {
+ background:#ecc;
+}
+div.code-coverage-results div.covered span.content {
+ background:#cec;
+}
+div.code-coverage-results div.ignored span.content {
+ color:#aaa;
+}
+div.code-coverage-results span.line-num {
+ color:#666;
+ display:block;
+ float:left;
+ width:20px;
+ text-align:right;
+ margin-right:5px;
+}
+div.code-coverage-results span.line-num strong {
+ color:#666;
+}
+div.code-coverage-results div.start {
+ border:1px solid #aaa;
+ border-width:1px 1px 0px 1px;
+ margin-top:30px;
+ padding-top:5px;
+}
+div.code-coverage-results div.end {
+ border:1px solid #aaa;
+ border-width:0px 1px 1px 1px;
+ margin-bottom:30px;
+ padding-bottom:5px;
+}
+div.code-coverage-results div.realstart {
+ margin-top:0px;
+}
+div.code-coverage-results p.note {
+ color:#bbb;
+ padding:5px;
+ margin:5px 0 10px;
+ font-size:10px;
+}
+div.code-coverage-results span.result-bad {
+ color: #a00;
+}
+div.code-coverage-results span.result-ok {
+ color: #fa0;
+}
+div.code-coverage-results span.result-good {
+ color: #0a0;
+}
\ No newline at end of file
diff --git a/webroot/css/.svn/text-base/quotenik.css.svn-base b/webroot/css/.svn/text-base/quotenik.css.svn-base
new file mode 100644
index 00000000..bb2acea3
--- /dev/null
+++ b/webroot/css/.svn/text-base/quotenik.css.svn-base
@@ -0,0 +1,669 @@
+/* SVN FILE: $Id: cake.generic.css 7118 2008-06-04 20:49:29Z gwoo $ */
+/**
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot.css
+ * @since CakePHP(tm)
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+
+/* Quotenik.css - Modifed version of cake.generic.css - Karl Cordes 20 December 2008 */
+
+* {
+ margin:0;
+ padding:0;
+}
+
+/* General Style Info */
+body {
+ background: #366FA4;
+ /* background: #7B9AB6; */
+ color: #fff;
+ font-family:'lucida grande',verdana,helvetica,arial,sans-serif;
+ font-size:90%;
+ margin: 0;
+}
+a {
+
+ color: #003d4c;
+ text-decoration: underline;
+ font-weight: bold;
+}
+a:hover {
+
+ color: #003d4c;
+ text-decoration:none;
+}
+a img {
+ border:none;
+}
+h1, h2, h3, h4 {
+ font-weight: normal;
+}
+h1 {
+ background:#fff;
+ color: #003d4c;
+ font-size: 100%;
+ margin: 0.1em 0;
+}
+h2 {
+ background:#fff;
+ color: #e32;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 190%;
+ margin: 0.3em 0;
+ padding-top: 0.8em;
+}
+h3 {
+ color: #2C5FD5;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 165%;
+ padding-top: 1.5em;
+}
+h4 {
+ color: #993;
+ font-weight: normal;
+ padding-top: 0.5em;
+}
+ul, li {
+ margin: 0 12px;
+}
+
+/* Layout */
+#container {
+ text-align: left;
+}
+
+#header{
+ /* padding: 10px 20px; */
+ background: #366FA4;
+}
+#header h1 {
+ /* background: #003d4c url('../img/cmclogo.png') no-repeat left; */
+ background: #366FA4;
+ color: #fff;
+ font-size: 200%;
+ padding: 0px 10px;
+}
+#header h1 a {
+ color: #fff;
+ /* background: #E5E5E5; */
+ font-weight: normal;
+ text-decoration: none;
+}
+#header h1 a:hover {
+ color: #fff;
+ /* background: #E5E5E5; */
+ text-decoration: underline;
+}
+
+#username {
+
+ position: absolute;
+ right:0;
+ width: 20%;
+ text-align: right;
+ }
+
+#username a {
+ color: #fff;
+ }
+
+#nav {
+ width: 100%;
+ }
+
+#nav h3 {
+ font-size: 120%;
+ font-weight: bold;
+ color:#FFFFFF;
+ background: #366FA4;
+}
+
+#nav h3 a{
+ font-size: 120%;
+ font-weight: bold;
+ color:#FFFFFF;
+ width: 100%;
+ background: #366FA4;
+ text-decoration:none;
+}
+
+#nav h3 a:hover {
+ background: #366FA4;
+}
+
+#nav, #nav ul { /* all lists */
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ line-height: 1;
+}
+
+#nav a {
+ display: block;
+ width: 10em;
+ background: #E5E5E5;
+}
+
+#nav a:hover {
+ background:#90EE90;
+ }
+
+#nav li { /* all list items */
+ float: left;
+ width: 10em; /* width needed or else Opera goes nuts */
+
+}
+
+
+
+#nav li ul { /* second-level lists */
+ position: absolute;
+
+ width: 10em;
+ left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
+}
+
+#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
+ left: auto;
+}
+
+
+
+
+#content{
+ background: #fff;
+ clear: both;
+ color: #333;
+ padding: 10px 20px 40px 20px;
+ overflow: auto;
+}
+#footer {
+ clear: both;
+ padding: 6px 10px;
+ text-align: right;
+}
+
+.addressradio label {
+ display: block;
+ font-size: 110%;
+ padding-left: 2em;
+}
+
+/* Tables */
+table {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+}
+th {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ text-align: center;
+ vertical-align: top;
+ padding: 1px;
+}
+table tr.altrow td {
+ background: #f4f4f4;
+}
+td.actions {
+ text-align: center;
+ white-space: nowrap;
+}
+td.actions a {
+ margin: 0px 6px;
+}
+.cake-sql-log table {
+ background: #f4f4f4;
+}
+.cake-sql-log td {
+ padding: 4px 8px;
+ text-align: left;
+}
+
+/* Master Enquiry Register Styling */
+
+table.mer {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+ font-size: 85%;
+}
+th.mer {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th.mer a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th.mer a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table.mer tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
+ text-align: center;
+ vertical-align: top;
+ padding: 1px;
+}
+
+table.mer tr.altrow td {
+ background: #f4f4f4;
+}
+table.mer tr.joblost td {
+ background: #BFBFBF;
+}
+table.mer tr.jobwon td {
+ background: #FFEC35;
+}
+table.mer tr.information td {
+ background: #ADD8E6;
+}
+
+table.mer tr td.posted {
+ background: #00FF00;
+}
+
+table.quotetable tr.mostrecent td {
+ background: #ADD8E6;
+ }
+table.quotetable tr.altrow td {
+ background: #f4f4f4;
+ }
+
+/* Paging */
+div.paging {
+ background:#fff;
+ color: #ccc;
+ margin-bottom: 2em;
+}
+div.paging div.disabled {
+ color: #ddd;
+ display: inline;
+}
+div.paging span {
+}
+div.paging span.current {
+ color: #000;
+}
+div.paging span a {
+}
+
+/* Scaffold View */
+dl {
+ line-height: 2em;
+ margin: 0em 0em;
+ width: 60%;
+}
+dl.altrow {
+ background: #f4f4f4;
+}
+dt {
+ font-weight: bold;
+ padding-left: 4px;
+ vertical-align: top;
+}
+dd {
+ margin-left: 15em;
+ margin-top: -2em;
+ vertical-align: top;
+}
+
+/* Forms */
+form {
+ clear: both;
+ margin-right: 20px;
+ padding: 0;
+ width: 50%;
+}
+fieldset {
+ border: 1px solid #ccc;
+ margin-top: 30px;
+ padding: 16px 20px;
+}
+fieldset legend {
+ background:#fff;
+ color: #e32;
+ font-size: 160%;
+ font-weight: bold;
+}
+fieldset fieldset {
+ margin-top: 0px;
+ margin-bottom: 20px;
+ padding: 16px 0;
+}
+fieldset fieldset legend {
+ font-size: 120%;
+ font-weight: normal;
+ margin-left: 20px;
+}
+fieldset fieldset div {
+ clear: left;
+ margin: 0 20px;
+}
+form div {
+ clear: both;
+ margin-bottom: 1em;
+ padding: .5em;
+ vertical-align: text-top;
+}
+form div.input {
+ color: #444;
+}
+form div.required {
+ color: #333;
+ font-weight: bold;
+}
+form div.submit {
+ border: 0;
+ clear: both;
+ margin-top: 10px;
+ margin-left: 140px;
+}
+
+
+
+label {
+ display: block;
+ font-size: 110%;
+ padding-right: 20px;
+}
+input, textarea {
+ clear: both;
+ display: block;
+ font-size: 140%;
+ font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
+ padding: 2px;
+ width: 100%;
+}
+select {
+ clear: both;
+ font-size: 120%;
+ vertical-align: text-bottom;
+}
+select[multiple=multiple] {
+ width: 100%;
+}
+option {
+ font-size: 120%;
+ padding: 0 3px;
+}
+input[type=checkbox] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=radio] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=submit] {
+ display: inline;
+ font-size: 110%;
+ padding: 2px 5px;
+ width: auto;
+ vertical-align: bottom;
+}
+
+div.address-radio {
+
+}
+
+/* Notices and Errors */
+div.message {
+ clear: both;
+ color: #900;
+ font-size: 140%;
+ font-weight: bold;
+ margin: 1em 0;
+}
+div.error-message {
+ clear: both;
+ color: #900;
+ font-weight: bold;
+}
+p.error {
+ background-color: #e32;
+ color: #fff;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+p.error em {
+ color: #000;
+ font-weight: normal;
+ line-height: 140%;
+}
+.notice {
+ background: #ffcc00;
+ color: #000;
+ display: block;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+.success {
+ background: green;
+ color: #fff;
+}
+
+/* Actions */
+div.actions ul {
+ margin: 0px 0;
+ padding: 0;
+}
+div.actions li {
+ display: inline;
+ list-style-type: none;
+ line-height: 2em;
+ margin: 0 2em 0 0;
+ white-space: nowrap;
+}
+div.actions ul li a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: none;
+}
+div.actions ul li a:hover {
+ color: #333;
+ text-decoration: underline;
+}
+
+/* Related */
+div.related {
+ clear: both;
+ display: block;
+}
+
+/* Debugging */
+pre {
+ color: #000;
+ background: #f0f0f0;
+ padding: 1em;
+}
+pre.cake-debug {
+ background: #ffcc00;
+ font-size: 120%;
+ line-height: 140%;
+ margin-top: 1em;
+ overflow: auto;
+ position: relative;
+}
+div.cake-stack-trace {
+ background: #fff;
+ border: 4px dotted #ffcc00;
+ color: #333;
+ margin: 0px;
+ padding: 6px;
+ font-size: 120%;
+ line-height: 140%;
+ overflow: auto;
+ position: relative;
+}
+div.cake-code-dump pre {
+ position: relative;
+ overflow: auto;
+}
+div.cake-stack-trace pre, div.cake-code-dump pre {
+ color: #000;
+ background-color: #F0F0F0;
+ margin: 0px;
+ padding: 1em;
+ overflow: auto;
+}
+div.cake-code-dump pre, div.cake-code-dump pre code {
+ clear: both;
+ font-size: 12px;
+ line-height: 15px;
+ margin: 4px 2px;
+ padding: 4px;
+ overflow: auto;
+}
+div.cake-code-dump span.code-highlight {
+ background-color: #ff0;
+ padding: 4px;
+}
+div.code-coverage-results div.code-line {
+ padding-left:5px;
+ display:block;
+ margin-left:10px;
+}
+div.code-coverage-results div.uncovered span.content {
+ background:#ecc;
+}
+div.code-coverage-results div.covered span.content {
+ background:#cec;
+}
+div.code-coverage-results div.ignored span.content {
+ color:#aaa;
+}
+div.code-coverage-results span.line-num {
+ color:#666;
+ display:block;
+ float:left;
+ width:20px;
+ text-align:right;
+ margin-right:5px;
+}
+div.code-coverage-results span.line-num strong {
+ color:#666;
+}
+div.code-coverage-results div.start {
+ border:1px solid #aaa;
+ border-width:1px 1px 0px 1px;
+ margin-top:30px;
+ padding-top:5px;
+}
+div.code-coverage-results div.end {
+ border:1px solid #aaa;
+ border-width:0px 1px 1px 1px;
+ margin-bottom:30px;
+ padding-bottom:5px;
+}
+div.code-coverage-results div.realstart {
+ margin-top:0px;
+}
+div.code-coverage-results p.note {
+ color:#bbb;
+ padding:5px;
+ margin:5px 0 10px;
+ font-size:10px;
+}
+div.code-coverage-results span.result-bad {
+ color: #a00;
+}
+div.code-coverage-results span.result-ok {
+ color: #fa0;
+}
+div.code-coverage-results span.result-good {
+ color: #0a0;
+}
+
+div.auto_complete {
+ position :relative;
+ width :500x;
+ background-color :white;
+ border :1px solid #888;
+ margin :0px;
+ padding :0px;
+}
+li.selected { background-color: #ffb; }
+
+span {
+ color: #2F782A;
+ font-weight: bold;
+ font-size: 110%;
+ }
+
+div#qTip {
+ padding: 3px;
+ border: 1px solid #666;
+ border-right-width: 2px;
+ border-bottom-width: 2px;
+ display: none;
+ background: #FFF9C1;
+ color: #000000;
+ font: bold 1em Verdana, Arial, sans-serif;
+ text-align: left;
+ position: absolute;
+ z-index: 1000;
+}
diff --git a/webroot/css/cake.generic.css b/webroot/css/cake.generic.css
new file mode 100755
index 00000000..c6367194
--- /dev/null
+++ b/webroot/css/cake.generic.css
@@ -0,0 +1,475 @@
+/* SVN FILE: $Id: cake.generic.css 7118 2008-06-04 20:49:29Z gwoo $ */
+/**
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot.css
+ * @since CakePHP(tm)
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+
+* {
+ margin:0;
+ padding:0;
+}
+
+/* General Style Info */
+body {
+ background: #003d4c;
+ color: #fff;
+ font-family:'lucida grande',verdana,helvetica,arial,sans-serif;
+ font-size:90%;
+ margin: 0;
+}
+a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: underline;
+ font-weight: bold;
+}
+a:hover {
+ background:#fff;
+ color: #003d4c;
+ text-decoration:none;
+}
+a img {
+ border:none;
+}
+h1, h2, h3, h4 {
+ font-weight: normal;
+}
+h1 {
+ background:#fff;
+ color: #003d4c;
+ font-size: 100%;
+ margin: 0.1em 0;
+}
+h2 {
+ background:#fff;
+ color: #e32;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 190%;
+ margin: 0.3em 0;
+ padding-top: 0.8em;
+}
+h3 {
+ color: #993;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 165%;
+ padding-top: 1.5em;
+}
+h4 {
+ color: #993;
+ font-weight: normal;
+ padding-top: 0.5em;
+}
+ul, li {
+ margin: 0 12px;
+}
+
+/* Layout */
+#container {
+ text-align: left;
+}
+
+#header{
+ padding: 10px 20px;
+}
+#header h1 {
+ background: #003d4c url('../img/cake.icon.gif') no-repeat left;
+ color: #fff;
+ padding: 0px 30px;
+}
+#header h1 a {
+ color: #fff;
+ background: #003d4c;
+ font-weight: normal;
+ text-decoration: none;
+}
+#header h1 a:hover {
+ color: #fff;
+ background: #003d4c;
+ text-decoration: underline;
+}
+#content{
+ background: #fff;
+ clear: both;
+ color: #333;
+ padding: 10px 20px 40px 20px;
+ overflow: auto;
+}
+#footer {
+ clear: both;
+ padding: 6px 10px;
+ text-align: right;
+}
+
+/* Tables */
+table {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+}
+th {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ padding: 4px;
+ text-align: center;
+ vertical-align: top;
+}
+table tr.altrow td {
+ background: #f4f4f4;
+}
+td.actions {
+ text-align: center;
+ white-space: nowrap;
+}
+td.actions a {
+ margin: 0px 6px;
+}
+.cake-sql-log table {
+ background: #f4f4f4;
+}
+.cake-sql-log td {
+ padding: 4px 8px;
+ text-align: left;
+}
+
+/* Paging */
+div.paging {
+ background:#fff;
+ color: #ccc;
+ margin-bottom: 2em;
+}
+div.paging div.disabled {
+ color: #ddd;
+ display: inline;
+}
+div.paging span {
+}
+div.paging span.current {
+ color: #000;
+}
+div.paging span a {
+}
+
+/* Scaffold View */
+dl {
+ line-height: 2em;
+ margin: 0em 0em;
+ width: 60%;
+}
+dl.altrow {
+ background: #f4f4f4;
+}
+dt {
+ font-weight: bold;
+ padding-left: 4px;
+ vertical-align: top;
+}
+dd {
+ margin-left: 10em;
+ margin-top: -2em;
+ vertical-align: top;
+}
+
+/* Forms */
+form {
+ clear: both;
+ margin-right: 20px;
+ padding: 0;
+ width: 80%;
+}
+fieldset {
+ border: 1px solid #ccc;
+ margin-top: 30px;
+ padding: 16px 20px;
+}
+fieldset legend {
+ background:#fff;
+ color: #e32;
+ font-size: 160%;
+ font-weight: bold;
+}
+fieldset fieldset {
+ margin-top: 0px;
+ margin-bottom: 20px;
+ padding: 16px 0;
+}
+fieldset fieldset legend {
+ font-size: 120%;
+ font-weight: normal;
+ margin-left: 20px;
+}
+fieldset fieldset div {
+ clear: left;
+ margin: 0 20px;
+}
+form div {
+ clear: both;
+ margin-bottom: 1em;
+ padding: .5em;
+ vertical-align: text-top;
+}
+form div.input {
+ color: #444;
+}
+form div.required {
+ color: #333;
+ font-weight: bold;
+}
+form div.submit {
+ border: 0;
+ clear: both;
+ margin-top: 10px;
+ margin-left: 140px;
+}
+label {
+ display: block;
+ font-size: 110%;
+ padding-right: 20px;
+}
+input, textarea {
+ clear: both;
+ display: block;
+ font-size: 140%;
+ font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
+ padding: 2px;
+ width: 100%;
+}
+select {
+ clear: both;
+ font-size: 120%;
+ vertical-align: text-bottom;
+}
+select[multiple=multiple] {
+ width: 100%;
+}
+option {
+ font-size: 120%;
+ padding: 0 3px;
+}
+input[type=checkbox] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=submit] {
+ display: inline;
+ font-size: 110%;
+ padding: 2px 5px;
+ width: auto;
+ vertical-align: bottom;
+}
+
+/* Notices and Errors */
+div.message {
+ clear: both;
+ color: #900;
+ font-size: 140%;
+ font-weight: bold;
+ margin: 1em 0;
+}
+div.error-message {
+ clear: both;
+ color: #900;
+ font-weight: bold;
+}
+p.error {
+ background-color: #e32;
+ color: #fff;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+p.error em {
+ color: #000;
+ font-weight: normal;
+ line-height: 140%;
+}
+.notice {
+ background: #ffcc00;
+ color: #000;
+ display: block;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+.success {
+ background: green;
+ color: #fff;
+}
+
+/* Actions */
+div.actions ul {
+ margin: 0px 0;
+ padding: 0;
+}
+div.actions li {
+ display: inline;
+ list-style-type: none;
+ line-height: 2em;
+ margin: 0 2em 0 0;
+ white-space: nowrap;
+}
+div.actions ul li a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: none;
+}
+div.actions ul li a:hover {
+ color: #333;
+ text-decoration: underline;
+}
+
+/* Related */
+div.related {
+ clear: both;
+ display: block;
+}
+
+/* Debugging */
+pre {
+ color: #000;
+ background: #f0f0f0;
+ padding: 1em;
+}
+pre.cake-debug {
+ background: #ffcc00;
+ font-size: 120%;
+ line-height: 140%;
+ margin-top: 1em;
+ overflow: auto;
+ position: relative;
+}
+div.cake-stack-trace {
+ background: #fff;
+ border: 4px dotted #ffcc00;
+ color: #333;
+ margin: 0px;
+ padding: 6px;
+ font-size: 120%;
+ line-height: 140%;
+ overflow: auto;
+ position: relative;
+}
+div.cake-code-dump pre {
+ position: relative;
+ overflow: auto;
+}
+div.cake-stack-trace pre, div.cake-code-dump pre {
+ color: #000;
+ background-color: #F0F0F0;
+ margin: 0px;
+ padding: 1em;
+ overflow: auto;
+}
+div.cake-code-dump pre, div.cake-code-dump pre code {
+ clear: both;
+ font-size: 12px;
+ line-height: 15px;
+ margin: 4px 2px;
+ padding: 4px;
+ overflow: auto;
+}
+div.cake-code-dump span.code-highlight {
+ background-color: #ff0;
+ padding: 4px;
+}
+div.code-coverage-results div.code-line {
+ padding-left:5px;
+ display:block;
+ margin-left:10px;
+}
+div.code-coverage-results div.uncovered span.content {
+ background:#ecc;
+}
+div.code-coverage-results div.covered span.content {
+ background:#cec;
+}
+div.code-coverage-results div.ignored span.content {
+ color:#aaa;
+}
+div.code-coverage-results span.line-num {
+ color:#666;
+ display:block;
+ float:left;
+ width:20px;
+ text-align:right;
+ margin-right:5px;
+}
+div.code-coverage-results span.line-num strong {
+ color:#666;
+}
+div.code-coverage-results div.start {
+ border:1px solid #aaa;
+ border-width:1px 1px 0px 1px;
+ margin-top:30px;
+ padding-top:5px;
+}
+div.code-coverage-results div.end {
+ border:1px solid #aaa;
+ border-width:0px 1px 1px 1px;
+ margin-bottom:30px;
+ padding-bottom:5px;
+}
+div.code-coverage-results div.realstart {
+ margin-top:0px;
+}
+div.code-coverage-results p.note {
+ color:#bbb;
+ padding:5px;
+ margin:5px 0 10px;
+ font-size:10px;
+}
+div.code-coverage-results span.result-bad {
+ color: #a00;
+}
+div.code-coverage-results span.result-ok {
+ color: #fa0;
+}
+div.code-coverage-results span.result-good {
+ color: #0a0;
+}
\ No newline at end of file
diff --git a/webroot/css/quotenik.css b/webroot/css/quotenik.css
new file mode 100755
index 00000000..bb2acea3
--- /dev/null
+++ b/webroot/css/quotenik.css
@@ -0,0 +1,669 @@
+/* SVN FILE: $Id: cake.generic.css 7118 2008-06-04 20:49:29Z gwoo $ */
+/**
+ *
+ * PHP versions 4 and 5
+ *
+ * CakePHP(tm) : Rapid Development Framework
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot.css
+ * @since CakePHP(tm)
+ * @version $Revision: 7118 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+
+/* Quotenik.css - Modifed version of cake.generic.css - Karl Cordes 20 December 2008 */
+
+* {
+ margin:0;
+ padding:0;
+}
+
+/* General Style Info */
+body {
+ background: #366FA4;
+ /* background: #7B9AB6; */
+ color: #fff;
+ font-family:'lucida grande',verdana,helvetica,arial,sans-serif;
+ font-size:90%;
+ margin: 0;
+}
+a {
+
+ color: #003d4c;
+ text-decoration: underline;
+ font-weight: bold;
+}
+a:hover {
+
+ color: #003d4c;
+ text-decoration:none;
+}
+a img {
+ border:none;
+}
+h1, h2, h3, h4 {
+ font-weight: normal;
+}
+h1 {
+ background:#fff;
+ color: #003d4c;
+ font-size: 100%;
+ margin: 0.1em 0;
+}
+h2 {
+ background:#fff;
+ color: #e32;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 190%;
+ margin: 0.3em 0;
+ padding-top: 0.8em;
+}
+h3 {
+ color: #2C5FD5;
+ font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
+ font-size: 165%;
+ padding-top: 1.5em;
+}
+h4 {
+ color: #993;
+ font-weight: normal;
+ padding-top: 0.5em;
+}
+ul, li {
+ margin: 0 12px;
+}
+
+/* Layout */
+#container {
+ text-align: left;
+}
+
+#header{
+ /* padding: 10px 20px; */
+ background: #366FA4;
+}
+#header h1 {
+ /* background: #003d4c url('../img/cmclogo.png') no-repeat left; */
+ background: #366FA4;
+ color: #fff;
+ font-size: 200%;
+ padding: 0px 10px;
+}
+#header h1 a {
+ color: #fff;
+ /* background: #E5E5E5; */
+ font-weight: normal;
+ text-decoration: none;
+}
+#header h1 a:hover {
+ color: #fff;
+ /* background: #E5E5E5; */
+ text-decoration: underline;
+}
+
+#username {
+
+ position: absolute;
+ right:0;
+ width: 20%;
+ text-align: right;
+ }
+
+#username a {
+ color: #fff;
+ }
+
+#nav {
+ width: 100%;
+ }
+
+#nav h3 {
+ font-size: 120%;
+ font-weight: bold;
+ color:#FFFFFF;
+ background: #366FA4;
+}
+
+#nav h3 a{
+ font-size: 120%;
+ font-weight: bold;
+ color:#FFFFFF;
+ width: 100%;
+ background: #366FA4;
+ text-decoration:none;
+}
+
+#nav h3 a:hover {
+ background: #366FA4;
+}
+
+#nav, #nav ul { /* all lists */
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ line-height: 1;
+}
+
+#nav a {
+ display: block;
+ width: 10em;
+ background: #E5E5E5;
+}
+
+#nav a:hover {
+ background:#90EE90;
+ }
+
+#nav li { /* all list items */
+ float: left;
+ width: 10em; /* width needed or else Opera goes nuts */
+
+}
+
+
+
+#nav li ul { /* second-level lists */
+ position: absolute;
+
+ width: 10em;
+ left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
+}
+
+#nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
+ left: auto;
+}
+
+
+
+
+#content{
+ background: #fff;
+ clear: both;
+ color: #333;
+ padding: 10px 20px 40px 20px;
+ overflow: auto;
+}
+#footer {
+ clear: both;
+ padding: 6px 10px;
+ text-align: right;
+}
+
+.addressradio label {
+ display: block;
+ font-size: 110%;
+ padding-left: 2em;
+}
+
+/* Tables */
+table {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+}
+th {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ text-align: center;
+ vertical-align: top;
+ padding: 1px;
+}
+table tr.altrow td {
+ background: #f4f4f4;
+}
+td.actions {
+ text-align: center;
+ white-space: nowrap;
+}
+td.actions a {
+ margin: 0px 6px;
+}
+.cake-sql-log table {
+ background: #f4f4f4;
+}
+.cake-sql-log td {
+ padding: 4px 8px;
+ text-align: left;
+}
+
+/* Master Enquiry Register Styling */
+
+table.mer {
+ background: #fff;
+ border:1px solid #ccc;
+ border-right:0;
+ clear: both;
+ color: #333;
+ margin-bottom: 10px;
+ width: 100%;
+ font-size: 85%;
+}
+th.mer {
+ background: #f2f2f2;
+ border:1px solid #bbb;
+ border-top: 1px solid #fff;
+ border-left: 1px solid #fff;
+ text-align: center;
+}
+th.mer a {
+ background:#f2f2f2;
+ display: block;
+ padding: 2px 4px;
+ text-decoration: none;
+}
+th.mer a:hover {
+ background: #ccc;
+ color: #333;
+ text-decoration: none;
+}
+table.mer tr td {
+ background: #fff;
+ border-right: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
+ text-align: center;
+ vertical-align: top;
+ padding: 1px;
+}
+
+table.mer tr.altrow td {
+ background: #f4f4f4;
+}
+table.mer tr.joblost td {
+ background: #BFBFBF;
+}
+table.mer tr.jobwon td {
+ background: #FFEC35;
+}
+table.mer tr.information td {
+ background: #ADD8E6;
+}
+
+table.mer tr td.posted {
+ background: #00FF00;
+}
+
+table.quotetable tr.mostrecent td {
+ background: #ADD8E6;
+ }
+table.quotetable tr.altrow td {
+ background: #f4f4f4;
+ }
+
+/* Paging */
+div.paging {
+ background:#fff;
+ color: #ccc;
+ margin-bottom: 2em;
+}
+div.paging div.disabled {
+ color: #ddd;
+ display: inline;
+}
+div.paging span {
+}
+div.paging span.current {
+ color: #000;
+}
+div.paging span a {
+}
+
+/* Scaffold View */
+dl {
+ line-height: 2em;
+ margin: 0em 0em;
+ width: 60%;
+}
+dl.altrow {
+ background: #f4f4f4;
+}
+dt {
+ font-weight: bold;
+ padding-left: 4px;
+ vertical-align: top;
+}
+dd {
+ margin-left: 15em;
+ margin-top: -2em;
+ vertical-align: top;
+}
+
+/* Forms */
+form {
+ clear: both;
+ margin-right: 20px;
+ padding: 0;
+ width: 50%;
+}
+fieldset {
+ border: 1px solid #ccc;
+ margin-top: 30px;
+ padding: 16px 20px;
+}
+fieldset legend {
+ background:#fff;
+ color: #e32;
+ font-size: 160%;
+ font-weight: bold;
+}
+fieldset fieldset {
+ margin-top: 0px;
+ margin-bottom: 20px;
+ padding: 16px 0;
+}
+fieldset fieldset legend {
+ font-size: 120%;
+ font-weight: normal;
+ margin-left: 20px;
+}
+fieldset fieldset div {
+ clear: left;
+ margin: 0 20px;
+}
+form div {
+ clear: both;
+ margin-bottom: 1em;
+ padding: .5em;
+ vertical-align: text-top;
+}
+form div.input {
+ color: #444;
+}
+form div.required {
+ color: #333;
+ font-weight: bold;
+}
+form div.submit {
+ border: 0;
+ clear: both;
+ margin-top: 10px;
+ margin-left: 140px;
+}
+
+
+
+label {
+ display: block;
+ font-size: 110%;
+ padding-right: 20px;
+}
+input, textarea {
+ clear: both;
+ display: block;
+ font-size: 140%;
+ font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
+ padding: 2px;
+ width: 100%;
+}
+select {
+ clear: both;
+ font-size: 120%;
+ vertical-align: text-bottom;
+}
+select[multiple=multiple] {
+ width: 100%;
+}
+option {
+ font-size: 120%;
+ padding: 0 3px;
+}
+input[type=checkbox] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=radio] {
+ clear: left;
+ float: left;
+ margin: 0px 6px 7px 2px;
+ width: auto;
+}
+input[type=submit] {
+ display: inline;
+ font-size: 110%;
+ padding: 2px 5px;
+ width: auto;
+ vertical-align: bottom;
+}
+
+div.address-radio {
+
+}
+
+/* Notices and Errors */
+div.message {
+ clear: both;
+ color: #900;
+ font-size: 140%;
+ font-weight: bold;
+ margin: 1em 0;
+}
+div.error-message {
+ clear: both;
+ color: #900;
+ font-weight: bold;
+}
+p.error {
+ background-color: #e32;
+ color: #fff;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+p.error em {
+ color: #000;
+ font-weight: normal;
+ line-height: 140%;
+}
+.notice {
+ background: #ffcc00;
+ color: #000;
+ display: block;
+ font-family: Courier, monospace;
+ font-size: 120%;
+ line-height: 140%;
+ padding: 0.8em;
+ margin: 1em 0;
+}
+.success {
+ background: green;
+ color: #fff;
+}
+
+/* Actions */
+div.actions ul {
+ margin: 0px 0;
+ padding: 0;
+}
+div.actions li {
+ display: inline;
+ list-style-type: none;
+ line-height: 2em;
+ margin: 0 2em 0 0;
+ white-space: nowrap;
+}
+div.actions ul li a {
+ background:#fff;
+ color: #003d4c;
+ text-decoration: none;
+}
+div.actions ul li a:hover {
+ color: #333;
+ text-decoration: underline;
+}
+
+/* Related */
+div.related {
+ clear: both;
+ display: block;
+}
+
+/* Debugging */
+pre {
+ color: #000;
+ background: #f0f0f0;
+ padding: 1em;
+}
+pre.cake-debug {
+ background: #ffcc00;
+ font-size: 120%;
+ line-height: 140%;
+ margin-top: 1em;
+ overflow: auto;
+ position: relative;
+}
+div.cake-stack-trace {
+ background: #fff;
+ border: 4px dotted #ffcc00;
+ color: #333;
+ margin: 0px;
+ padding: 6px;
+ font-size: 120%;
+ line-height: 140%;
+ overflow: auto;
+ position: relative;
+}
+div.cake-code-dump pre {
+ position: relative;
+ overflow: auto;
+}
+div.cake-stack-trace pre, div.cake-code-dump pre {
+ color: #000;
+ background-color: #F0F0F0;
+ margin: 0px;
+ padding: 1em;
+ overflow: auto;
+}
+div.cake-code-dump pre, div.cake-code-dump pre code {
+ clear: both;
+ font-size: 12px;
+ line-height: 15px;
+ margin: 4px 2px;
+ padding: 4px;
+ overflow: auto;
+}
+div.cake-code-dump span.code-highlight {
+ background-color: #ff0;
+ padding: 4px;
+}
+div.code-coverage-results div.code-line {
+ padding-left:5px;
+ display:block;
+ margin-left:10px;
+}
+div.code-coverage-results div.uncovered span.content {
+ background:#ecc;
+}
+div.code-coverage-results div.covered span.content {
+ background:#cec;
+}
+div.code-coverage-results div.ignored span.content {
+ color:#aaa;
+}
+div.code-coverage-results span.line-num {
+ color:#666;
+ display:block;
+ float:left;
+ width:20px;
+ text-align:right;
+ margin-right:5px;
+}
+div.code-coverage-results span.line-num strong {
+ color:#666;
+}
+div.code-coverage-results div.start {
+ border:1px solid #aaa;
+ border-width:1px 1px 0px 1px;
+ margin-top:30px;
+ padding-top:5px;
+}
+div.code-coverage-results div.end {
+ border:1px solid #aaa;
+ border-width:0px 1px 1px 1px;
+ margin-bottom:30px;
+ padding-bottom:5px;
+}
+div.code-coverage-results div.realstart {
+ margin-top:0px;
+}
+div.code-coverage-results p.note {
+ color:#bbb;
+ padding:5px;
+ margin:5px 0 10px;
+ font-size:10px;
+}
+div.code-coverage-results span.result-bad {
+ color: #a00;
+}
+div.code-coverage-results span.result-ok {
+ color: #fa0;
+}
+div.code-coverage-results span.result-good {
+ color: #0a0;
+}
+
+div.auto_complete {
+ position :relative;
+ width :500x;
+ background-color :white;
+ border :1px solid #888;
+ margin :0px;
+ padding :0px;
+}
+li.selected { background-color: #ffb; }
+
+span {
+ color: #2F782A;
+ font-weight: bold;
+ font-size: 110%;
+ }
+
+div#qTip {
+ padding: 3px;
+ border: 1px solid #666;
+ border-right-width: 2px;
+ border-bottom-width: 2px;
+ display: none;
+ background: #FFF9C1;
+ color: #000000;
+ font: bold 1em Verdana, Arial, sans-serif;
+ text-align: left;
+ position: absolute;
+ z-index: 1000;
+}
diff --git a/webroot/favicon.ico b/webroot/favicon.ico
new file mode 100755
index 00000000..7dc15ea9
Binary files /dev/null and b/webroot/favicon.ico differ
diff --git a/webroot/files/.svn/entries b/webroot/files/.svn/entries
new file mode 100644
index 00000000..38b2ce30
--- /dev/null
+++ b/webroot/files/.svn/entries
@@ -0,0 +1,28 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/webroot/files
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
diff --git a/webroot/files/.svn/format b/webroot/files/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/webroot/files/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/webroot/img/.svn/entries b/webroot/img/.svn/entries
new file mode 100644
index 00000000..b154749b
--- /dev/null
+++ b/webroot/img/.svn/entries
@@ -0,0 +1,101 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/webroot/img
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+cake.power.gif
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+bb7e210a60f92e5458e347cf77177c5f
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+cmclogo.png
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+2a3553dc4e6901e48ace14b5306aac95
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+cake.icon.gif
+file
+
+
+
+
+2009-01-12T00:43:15.000000Z
+126fa012915e90db50e73b7c041472e4
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+favicon.ico
+file
+18
+
+
+
+2008-12-23T04:42:02.000000Z
+729b4f69f3f13b9ccec08b6562b5a7bf
+2009-01-12T05:57:25.596672Z
+18
+karl
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+92
+
diff --git a/webroot/img/.svn/format b/webroot/img/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/webroot/img/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/webroot/img/.svn/prop-base/cake.icon.gif.svn-base b/webroot/img/.svn/prop-base/cake.icon.gif.svn-base
new file mode 100644
index 00000000..cd0e69f8
--- /dev/null
+++ b/webroot/img/.svn/prop-base/cake.icon.gif.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 0
+
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/img/.svn/prop-base/cake.power.gif.svn-base b/webroot/img/.svn/prop-base/cake.power.gif.svn-base
new file mode 100644
index 00000000..cd0e69f8
--- /dev/null
+++ b/webroot/img/.svn/prop-base/cake.power.gif.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 0
+
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/img/.svn/prop-base/cmclogo.png.svn-base b/webroot/img/.svn/prop-base/cmclogo.png.svn-base
new file mode 100644
index 00000000..cd0e69f8
--- /dev/null
+++ b/webroot/img/.svn/prop-base/cmclogo.png.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 0
+
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/img/.svn/prop-base/favicon.ico.svn-base b/webroot/img/.svn/prop-base/favicon.ico.svn-base
new file mode 100644
index 00000000..5e9587e6
--- /dev/null
+++ b/webroot/img/.svn/prop-base/favicon.ico.svn-base
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/img/.svn/text-base/cake.icon.gif.svn-base b/webroot/img/.svn/text-base/cake.icon.gif.svn-base
new file mode 100644
index 00000000..f29f72eb
Binary files /dev/null and b/webroot/img/.svn/text-base/cake.icon.gif.svn-base differ
diff --git a/webroot/img/.svn/text-base/cake.power.gif.svn-base b/webroot/img/.svn/text-base/cake.power.gif.svn-base
new file mode 100644
index 00000000..8f8d570a
Binary files /dev/null and b/webroot/img/.svn/text-base/cake.power.gif.svn-base differ
diff --git a/webroot/img/.svn/text-base/cmclogo.png.svn-base b/webroot/img/.svn/text-base/cmclogo.png.svn-base
new file mode 100644
index 00000000..f895f8f1
Binary files /dev/null and b/webroot/img/.svn/text-base/cmclogo.png.svn-base differ
diff --git a/webroot/img/.svn/text-base/favicon.ico.svn-base b/webroot/img/.svn/text-base/favicon.ico.svn-base
new file mode 100644
index 00000000..ff71ca6d
Binary files /dev/null and b/webroot/img/.svn/text-base/favicon.ico.svn-base differ
diff --git a/webroot/img/cake-stop-taking-my-favicon.ico b/webroot/img/cake-stop-taking-my-favicon.ico
new file mode 100755
index 00000000..f29f72eb
Binary files /dev/null and b/webroot/img/cake-stop-taking-my-favicon.ico differ
diff --git a/webroot/img/cake.icon.gif b/webroot/img/cake.icon.gif
new file mode 100755
index 00000000..f29f72eb
Binary files /dev/null and b/webroot/img/cake.icon.gif differ
diff --git a/webroot/img/cake.power.gif b/webroot/img/cake.power.gif
new file mode 100755
index 00000000..8f8d570a
Binary files /dev/null and b/webroot/img/cake.power.gif differ
diff --git a/webroot/img/cmclogo.png b/webroot/img/cmclogo.png
new file mode 100755
index 00000000..f895f8f1
Binary files /dev/null and b/webroot/img/cmclogo.png differ
diff --git a/webroot/img/favicon.ico b/webroot/img/favicon.ico
new file mode 100644
index 00000000..ff71ca6d
Binary files /dev/null and b/webroot/img/favicon.ico differ
diff --git a/webroot/index.php b/webroot/index.php
new file mode 100755
index 00000000..6a7966fc
--- /dev/null
+++ b/webroot/index.php
@@ -0,0 +1,95 @@
+
+ * Copyright 2005-2008, Cake Software Foundation, Inc.
+ * 1785 E. Sahara Avenue, Suite 490-204
+ * Las Vegas, Nevada 89104
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @filesource
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
+ * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @package cake
+ * @subpackage cake.app.webroot
+ * @since CakePHP(tm) v 0.2.9
+ * @version $Revision: 7296 $
+ * @modifiedby $LastChangedBy: gwoo $
+ * @lastmodified $Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
+ * @license http://www.opensource.org/licenses/mit-license.php The MIT License
+ */
+/**
+ * Use the DS to separate the directories in other defines
+ */
+ if (!defined('DS')) {
+ define('DS', DIRECTORY_SEPARATOR);
+ }
+/**
+ * These defines should only be edited if you have cake installed in
+ * a directory layout other than the way it is distributed.
+ * When using custom settings be sure to use the DS and do not add a trailing DS.
+ */
+
+/**
+ * The full path to the directory which holds "app", WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('ROOT')) {
+ define('ROOT', dirname(dirname(dirname(__FILE__))));
+ }
+/**
+ * The actual directory name for the "app".
+ *
+ */
+ if (!defined('APP_DIR')) {
+ define('APP_DIR', basename(dirname(dirname(__FILE__))));
+ }
+/**
+ * The absolute path to the "cake" directory, WITHOUT a trailing DS.
+ *
+ */
+ if (!defined('CAKE_CORE_INCLUDE_PATH')) {
+ define('CAKE_CORE_INCLUDE_PATH', ROOT);
+ }
+
+/**
+ * Editing below this line should NOT be necessary.
+ * Change at your own risk.
+ *
+ */
+ if (!defined('WEBROOT_DIR')) {
+ define('WEBROOT_DIR', basename(dirname(__FILE__)));
+ }
+ if (!defined('WWW_ROOT')) {
+ define('WWW_ROOT', dirname(__FILE__) . DS);
+ }
+ if (!defined('CORE_PATH')) {
+ if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
+ define('APP_PATH', null);
+ define('CORE_PATH', null);
+ } else {
+ define('APP_PATH', ROOT . DS . APP_DIR . DS);
+ define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
+ }
+ }
+ if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
+ trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
+ }
+ if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
+ return;
+ } else {
+ $Dispatcher = new Dispatcher();
+ $Dispatcher->dispatch($url);
+ }
+ if (Configure::read() > 0) {
+ echo "";
+ }
+?>
\ No newline at end of file
diff --git a/webroot/js/.svn/entries b/webroot/js/.svn/entries
new file mode 100644
index 00000000..9ae66875
--- /dev/null
+++ b/webroot/js/.svn/entries
@@ -0,0 +1,226 @@
+9
+
+dir
+17
+file:///home/karl/svn/quotenik/webroot/js
+file:///home/karl/svn/quotenik
+
+
+
+2008-11-13T00:40:44.487058Z
+1
+karl
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8bc76296-fed0-4d81-bc44-c94e40ad9e20
+
+prototype.js
+file
+18
+
+
+
+2008-11-15T05:34:04.000000Z
+b96240995f0075a55546ed30380101a7
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+124000
+
+builder.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+c688b3e92102c0ac5736152744ac2241
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+prototype-1.6.0.3.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d77ed5ec5d97d2388e1326d43c3f333b
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+sound.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+d29c5cb8f43068d8f9ce4edf93d7e9e1
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+vendors.php
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+09fc05898dc2456d9ec76f1f612300f7
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+qtip.js
+file
+18
+
+
+
+2009-01-06T05:00:13.000000Z
+213eeb2e4a7ef721b3a3a5bcbb959124
+2009-01-12T05:57:25.596672Z
+18
+karl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3095
+
+effects.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+3b4efe6405d4fb1ada4a081f4dbef6a9
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+unittest.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+a148822b29d33a571f9d945a25b93437
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+scriptaculous.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+75d1aca2ecf6b32922afd4eb9a146558
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+dragdrop.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+969c24d6bbf54cf6365b223401d9dc10
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+slider.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+83a12c5cbbbfe716bd43885f7ba93dac
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
+controls.js
+file
+
+
+
+
+2008-11-13T00:42:45.000000Z
+305b29d888b4fd1bdfcaac12985b8314
+2008-11-13T00:40:44.487058Z
+1
+karl
+has-props
+
diff --git a/webroot/js/.svn/format b/webroot/js/.svn/format
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/webroot/js/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/webroot/js/.svn/prop-base/builder.js.svn-base b/webroot/js/.svn/prop-base/builder.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/builder.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/controls.js.svn-base b/webroot/js/.svn/prop-base/controls.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/controls.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/dragdrop.js.svn-base b/webroot/js/.svn/prop-base/dragdrop.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/dragdrop.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/effects.js.svn-base b/webroot/js/.svn/prop-base/effects.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/effects.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/prototype-1.6.0.3.js.svn-base b/webroot/js/.svn/prop-base/prototype-1.6.0.3.js.svn-base
new file mode 100644
index 00000000..cd0e69f8
--- /dev/null
+++ b/webroot/js/.svn/prop-base/prototype-1.6.0.3.js.svn-base
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 0
+
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/webroot/js/.svn/prop-base/scriptaculous.js.svn-base b/webroot/js/.svn/prop-base/scriptaculous.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/scriptaculous.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/slider.js.svn-base b/webroot/js/.svn/prop-base/slider.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/slider.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/sound.js.svn-base b/webroot/js/.svn/prop-base/sound.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/sound.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/unittest.js.svn-base b/webroot/js/.svn/prop-base/unittest.js.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/unittest.js.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/prop-base/vendors.php.svn-base b/webroot/js/.svn/prop-base/vendors.php.svn-base
new file mode 100644
index 00000000..a6697057
--- /dev/null
+++ b/webroot/js/.svn/prop-base/vendors.php.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 0
+
+END
diff --git a/webroot/js/.svn/text-base/builder.js.svn-base b/webroot/js/.svn/text-base/builder.js.svn-base
new file mode 100644
index 00000000..83019994
--- /dev/null
+++ b/webroot/js/.svn/text-base/builder.js.svn-base
@@ -0,0 +1,136 @@
+// script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
+
+// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+var Builder = {
+ NODEMAP: {
+ AREA: 'map',
+ CAPTION: 'table',
+ COL: 'table',
+ COLGROUP: 'table',
+ LEGEND: 'fieldset',
+ OPTGROUP: 'select',
+ OPTION: 'select',
+ PARAM: 'object',
+ TBODY: 'table',
+ TD: 'table',
+ TFOOT: 'table',
+ TH: 'table',
+ THEAD: 'table',
+ TR: 'table'
+ },
+ // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
+ // due to a Firefox bug
+ node: function(elementName) {
+ elementName = elementName.toUpperCase();
+
+ // try innerHTML approach
+ var parentTag = this.NODEMAP[elementName] || 'div';
+ var parentElement = document.createElement(parentTag);
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
+ parentElement.innerHTML = "<" + elementName + ">" + elementName + ">";
+ } catch(e) {}
+ var element = parentElement.firstChild || null;
+
+ // see if browser added wrapping tags
+ if(element && (element.tagName.toUpperCase() != elementName))
+ element = element.getElementsByTagName(elementName)[0];
+
+ // fallback to createElement approach
+ if(!element) element = document.createElement(elementName);
+
+ // abort if nothing could be created
+ if(!element) return;
+
+ // attributes (or text)
+ if(arguments[1])
+ if(this._isStringOrNumber(arguments[1]) ||
+ (arguments[1] instanceof Array) ||
+ arguments[1].tagName) {
+ this._children(element, arguments[1]);
+ } else {
+ var attrs = this._attributes(arguments[1]);
+ if(attrs.length) {
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
+ parentElement.innerHTML = "<" +elementName + " " +
+ attrs + ">" + elementName + ">";
+ } catch(e) {}
+ element = parentElement.firstChild || null;
+ // workaround firefox 1.0.X bug
+ if(!element) {
+ element = document.createElement(elementName);
+ for(attr in arguments[1])
+ element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
+ }
+ if(element.tagName.toUpperCase() != elementName)
+ element = parentElement.getElementsByTagName(elementName)[0];
+ }
+ }
+
+ // text, or array of children
+ if(arguments[2])
+ this._children(element, arguments[2]);
+
+ return element;
+ },
+ _text: function(text) {
+ return document.createTextNode(text);
+ },
+
+ ATTR_MAP: {
+ 'className': 'class',
+ 'htmlFor': 'for'
+ },
+
+ _attributes: function(attributes) {
+ var attrs = [];
+ for(attribute in attributes)
+ attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
+ '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'"') + '"');
+ return attrs.join(" ");
+ },
+ _children: function(element, children) {
+ if(children.tagName) {
+ element.appendChild(children);
+ return;
+ }
+ if(typeof children=='object') { // array can hold nodes and text
+ children.flatten().each( function(e) {
+ if(typeof e=='object')
+ element.appendChild(e)
+ else
+ if(Builder._isStringOrNumber(e))
+ element.appendChild(Builder._text(e));
+ });
+ } else
+ if(Builder._isStringOrNumber(children))
+ element.appendChild(Builder._text(children));
+ },
+ _isStringOrNumber: function(param) {
+ return(typeof param=='string' || typeof param=='number');
+ },
+ build: function(html) {
+ var element = this.node('div');
+ $(element).update(html.strip());
+ return element.down();
+ },
+ dump: function(scope) {
+ if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope
+
+ var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
+ "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
+ "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
+ "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
+ "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
+ "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);
+
+ tags.each( function(tag){
+ scope[tag] = function() {
+ return Builder.node.apply(Builder, [tag].concat($A(arguments)));
+ }
+ });
+ }
+}
diff --git a/webroot/js/.svn/text-base/controls.js.svn-base b/webroot/js/.svn/text-base/controls.js.svn-base
new file mode 100644
index 00000000..5012cb81
--- /dev/null
+++ b/webroot/js/.svn/text-base/controls.js.svn-base
@@ -0,0 +1,965 @@
+// script.aculo.us controls.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
+
+// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// (c) 2005-2007 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
+// (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
+// Contributors:
+// Richard Livsey
+// Rahul Bhargava
+// Rob Wills
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+// Autocompleter.Base handles all the autocompletion functionality
+// that's independent of the data source for autocompletion. This
+// includes drawing the autocompletion menu, observing keyboard
+// and mouse events, and similar.
+//
+// Specific autocompleters need to provide, at the very least,
+// a getUpdatedChoices function that will be invoked every time
+// the text inside the monitored textbox changes. This method
+// should get the text for which to provide autocompletion by
+// invoking this.getToken(), NOT by directly accessing
+// this.element.value. This is to allow incremental tokenized
+// autocompletion. Specific auto-completion logic (AJAX, etc)
+// belongs in getUpdatedChoices.
+//
+// Tokenized incremental autocompletion is enabled automatically
+// when an autocompleter is instantiated with the 'tokens' option
+// in the options parameter, e.g.:
+// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' });
+// will incrementally autocomplete with a comma as the token.
+// Additionally, ',' in the above example can be replaced with
+// a token array, e.g. { tokens: [',', '\n'] } which
+// enables autocompletion on multiple tokens. This is most
+// useful when one of the tokens is \n (a newline), as it
+// allows smart autocompletion after linebreaks.
+
+if(typeof Effect == 'undefined')
+ throw("controls.js requires including script.aculo.us' effects.js library");
+
+var Autocompleter = { }
+Autocompleter.Base = Class.create({
+ baseInitialize: function(element, update, options) {
+ element = $(element)
+ this.element = element;
+ this.update = $(update);
+ this.hasFocus = false;
+ this.changed = false;
+ this.active = false;
+ this.index = 0;
+ this.entryCount = 0;
+ this.oldElementValue = this.element.value;
+
+ if(this.setOptions)
+ this.setOptions(options);
+ else
+ this.options = options || { };
+
+ this.options.paramName = this.options.paramName || this.element.name;
+ this.options.tokens = this.options.tokens || [];
+ this.options.frequency = this.options.frequency || 0.4;
+ this.options.minChars = this.options.minChars || 1;
+ this.options.onShow = this.options.onShow ||
+ function(element, update){
+ if(!update.style.position || update.style.position=='absolute') {
+ update.style.position = 'absolute';
+ Position.clone(element, update, {
+ setHeight: false,
+ offsetTop: element.offsetHeight
+ });
+ }
+ Effect.Appear(update,{duration:0.15});
+ };
+ this.options.onHide = this.options.onHide ||
+ function(element, update){ new Effect.Fade(update,{duration:0.15}) };
+
+ if(typeof(this.options.tokens) == 'string')
+ this.options.tokens = new Array(this.options.tokens);
+ // Force carriage returns as token delimiters anyway
+ if (!this.options.tokens.include('\n'))
+ this.options.tokens.push('\n');
+
+ this.observer = null;
+
+ this.element.setAttribute('autocomplete','off');
+
+ Element.hide(this.update);
+
+ Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
+ Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
+ },
+
+ show: function() {
+ if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);
+ if(!this.iefix &&
+ (Prototype.Browser.IE) &&
+ (Element.getStyle(this.update, 'position')=='absolute')) {
+ new Insertion.After(this.update,
+ '
');
+ this.iefix = $(this.update.id+'_iefix');
+ }
+ if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50);
+ },
+
+ fixIEOverlapping: function() {
+ Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)});
+ this.iefix.style.zIndex = 1;
+ this.update.style.zIndex = 2;
+ Element.show(this.iefix);
+ },
+
+ hide: function() {
+ this.stopIndicator();
+ if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
+ if(this.iefix) Element.hide(this.iefix);
+ },
+
+ startIndicator: function() {
+ if(this.options.indicator) Element.show(this.options.indicator);
+ },
+
+ stopIndicator: function() {
+ if(this.options.indicator) Element.hide(this.options.indicator);
+ },
+
+ onKeyPress: function(event) {
+ if(this.active)
+ switch(event.keyCode) {
+ case Event.KEY_TAB:
+ case Event.KEY_RETURN:
+ this.selectEntry();
+ Event.stop(event);
+ case Event.KEY_ESC:
+ this.hide();
+ this.active = false;
+ Event.stop(event);
+ return;
+ case Event.KEY_LEFT:
+ case Event.KEY_RIGHT:
+ return;
+ case Event.KEY_UP:
+ this.markPrevious();
+ this.render();
+ Event.stop(event);
+ return;
+ case Event.KEY_DOWN:
+ this.markNext();
+ this.render();
+ Event.stop(event);
+ return;
+ }
+ else
+ if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN ||
+ (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return;
+
+ this.changed = true;
+ this.hasFocus = true;
+
+ if(this.observer) clearTimeout(this.observer);
+ this.observer =
+ setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000);
+ },
+
+ activate: function() {
+ this.changed = false;
+ this.hasFocus = true;
+ this.getUpdatedChoices();
+ },
+
+ onHover: function(event) {
+ var element = Event.findElement(event, 'LI');
+ if(this.index != element.autocompleteIndex)
+ {
+ this.index = element.autocompleteIndex;
+ this.render();
+ }
+ Event.stop(event);
+ },
+
+ onClick: function(event) {
+ var element = Event.findElement(event, 'LI');
+ this.index = element.autocompleteIndex;
+ this.selectEntry();
+ this.hide();
+ },
+
+ onBlur: function(event) {
+ // needed to make click events working
+ setTimeout(this.hide.bind(this), 250);
+ this.hasFocus = false;
+ this.active = false;
+ },
+
+ render: function() {
+ if(this.entryCount > 0) {
+ for (var i = 0; i < this.entryCount; i++)
+ this.index==i ?
+ Element.addClassName(this.getEntry(i),"selected") :
+ Element.removeClassName(this.getEntry(i),"selected");
+ if(this.hasFocus) {
+ this.show();
+ this.active = true;
+ }
+ } else {
+ this.active = false;
+ this.hide();
+ }
+ },
+
+ markPrevious: function() {
+ if(this.index > 0) this.index--
+ else this.index = this.entryCount-1;
+ this.getEntry(this.index).scrollIntoView(true);
+ },
+
+ markNext: function() {
+ if(this.index < this.entryCount-1) this.index++
+ else this.index = 0;
+ this.getEntry(this.index).scrollIntoView(false);
+ },
+
+ getEntry: function(index) {
+ return this.update.firstChild.childNodes[index];
+ },
+
+ getCurrentEntry: function() {
+ return this.getEntry(this.index);
+ },
+
+ selectEntry: function() {
+ this.active = false;
+ this.updateElement(this.getCurrentEntry());
+ },
+
+ updateElement: function(selectedElement) {
+ if (this.options.updateElement) {
+ this.options.updateElement(selectedElement);
+ return;
+ }
+ var value = '';
+ if (this.options.select) {
+ var nodes = $(selectedElement).select('.' + this.options.select) || [];
+ if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select);
+ } else
+ value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');
+
+ var bounds = this.getTokenBounds();
+ if (bounds[0] != -1) {
+ var newValue = this.element.value.substr(0, bounds[0]);
+ var whitespace = this.element.value.substr(bounds[0]).match(/^\s+/);
+ if (whitespace)
+ newValue += whitespace[0];
+ this.element.value = newValue + value + this.element.value.substr(bounds[1]);
+ } else {
+ this.element.value = value;
+ }
+ this.oldElementValue = this.element.value;
+ this.element.focus();
+
+ if (this.options.afterUpdateElement)
+ this.options.afterUpdateElement(this.element, selectedElement);
+ },
+
+ updateChoices: function(choices) {
+ if(!this.changed && this.hasFocus) {
+ this.update.innerHTML = choices;
+ Element.cleanWhitespace(this.update);
+ Element.cleanWhitespace(this.update.down());
+
+ if(this.update.firstChild && this.update.down().childNodes) {
+ this.entryCount =
+ this.update.down().childNodes.length;
+ for (var i = 0; i < this.entryCount; i++) {
+ var entry = this.getEntry(i);
+ entry.autocompleteIndex = i;
+ this.addObservers(entry);
+ }
+ } else {
+ this.entryCount = 0;
+ }
+
+ this.stopIndicator();
+ this.index = 0;
+
+ if(this.entryCount==1 && this.options.autoSelect) {
+ this.selectEntry();
+ this.hide();
+ } else {
+ this.render();
+ }
+ }
+ },
+
+ addObservers: function(element) {
+ Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));
+ Event.observe(element, "click", this.onClick.bindAsEventListener(this));
+ },
+
+ onObserverEvent: function() {
+ this.changed = false;
+ this.tokenBounds = null;
+ if(this.getToken().length>=this.options.minChars) {
+ this.getUpdatedChoices();
+ } else {
+ this.active = false;
+ this.hide();
+ }
+ this.oldElementValue = this.element.value;
+ },
+
+ getToken: function() {
+ var bounds = this.getTokenBounds();
+ return this.element.value.substring(bounds[0], bounds[1]).strip();
+ },
+
+ getTokenBounds: function() {
+ if (null != this.tokenBounds) return this.tokenBounds;
+ var value = this.element.value;
+ if (value.strip().empty()) return [-1, 0];
+ var diff = arguments.callee.getFirstDifferencePos(value, this.oldElementValue);
+ var offset = (diff == this.oldElementValue.length ? 1 : 0);
+ var prevTokenPos = -1, nextTokenPos = value.length;
+ var tp;
+ for (var index = 0, l = this.options.tokens.length; index < l; ++index) {
+ tp = value.lastIndexOf(this.options.tokens[index], diff + offset - 1);
+ if (tp > prevTokenPos) prevTokenPos = tp;
+ tp = value.indexOf(this.options.tokens[index], diff + offset);
+ if (-1 != tp && tp < nextTokenPos) nextTokenPos = tp;
+ }
+ return (this.tokenBounds = [prevTokenPos + 1, nextTokenPos]);
+ }
+});
+
+Autocompleter.Base.prototype.getTokenBounds.getFirstDifferencePos = function(newS, oldS) {
+ var boundary = Math.min(newS.length, oldS.length);
+ for (var index = 0; index < boundary; ++index)
+ if (newS[index] != oldS[index])
+ return index;
+ return boundary;
+};
+
+Ajax.Autocompleter = Class.create(Autocompleter.Base, {
+ initialize: function(element, update, url, options) {
+ this.baseInitialize(element, update, options);
+ this.options.asynchronous = true;
+ this.options.onComplete = this.onComplete.bind(this);
+ this.options.defaultParams = this.options.parameters || null;
+ this.url = url;
+ },
+
+ getUpdatedChoices: function() {
+ this.startIndicator();
+
+ var entry = encodeURIComponent(this.options.paramName) + '=' +
+ encodeURIComponent(this.getToken());
+
+ this.options.parameters = this.options.callback ?
+ this.options.callback(this.element, entry) : entry;
+
+ if(this.options.defaultParams)
+ this.options.parameters += '&' + this.options.defaultParams;
+
+ new Ajax.Request(this.url, this.options);
+ },
+
+ onComplete: function(request) {
+ this.updateChoices(request.responseText);
+ }
+});
+
+// The local array autocompleter. Used when you'd prefer to
+// inject an array of autocompletion options into the page, rather
+// than sending out Ajax queries, which can be quite slow sometimes.
+//
+// The constructor takes four parameters. The first two are, as usual,
+// the id of the monitored textbox, and id of the autocompletion menu.
+// The third is the array you want to autocomplete from, and the fourth
+// is the options block.
+//
+// Extra local autocompletion options:
+// - choices - How many autocompletion choices to offer
+//
+// - partialSearch - If false, the autocompleter will match entered
+// text only at the beginning of strings in the
+// autocomplete array. Defaults to true, which will
+// match text at the beginning of any *word* in the
+// strings in the autocomplete array. If you want to
+// search anywhere in the string, additionally set
+// the option fullSearch to true (default: off).
+//
+// - fullSsearch - Search anywhere in autocomplete array strings.
+//
+// - partialChars - How many characters to enter before triggering
+// a partial match (unlike minChars, which defines
+// how many characters are required to do any match
+// at all). Defaults to 2.
+//
+// - ignoreCase - Whether to ignore case when autocompleting.
+// Defaults to true.
+//
+// It's possible to pass in a custom function as the 'selector'
+// option, if you prefer to write your own autocompletion logic.
+// In that case, the other options above will not apply unless
+// you support them.
+
+Autocompleter.Local = Class.create(Autocompleter.Base, {
+ initialize: function(element, update, array, options) {
+ this.baseInitialize(element, update, options);
+ this.options.array = array;
+ },
+
+ getUpdatedChoices: function() {
+ this.updateChoices(this.options.selector(this));
+ },
+
+ setOptions: function(options) {
+ this.options = Object.extend({
+ choices: 10,
+ partialSearch: true,
+ partialChars: 2,
+ ignoreCase: true,
+ fullSearch: false,
+ selector: function(instance) {
+ var ret = []; // Beginning matches
+ var partial = []; // Inside matches
+ var entry = instance.getToken();
+ var count = 0;
+
+ for (var i = 0; i < instance.options.array.length &&
+ ret.length < instance.options.choices ; i++) {
+
+ var elem = instance.options.array[i];
+ var foundPos = instance.options.ignoreCase ?
+ elem.toLowerCase().indexOf(entry.toLowerCase()) :
+ elem.indexOf(entry);
+
+ while (foundPos != -1) {
+ if (foundPos == 0 && elem.length != entry.length) {
+ ret.push("
" + elem.substr(0, entry.length) + " " +
+ elem.substr(entry.length) + "");
+ break;
+ } else if (entry.length >= instance.options.partialChars &&
+ instance.options.partialSearch && foundPos != -1) {
+ if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) {
+ partial.push("
" + elem.substr(0, foundPos) + "" +
+ elem.substr(foundPos, entry.length) + " " + elem.substr(
+ foundPos + entry.length) + " ");
+ break;
+ }
+ }
+
+ foundPos = instance.options.ignoreCase ?
+ elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) :
+ elem.indexOf(entry, foundPos + 1);
+
+ }
+ }
+ if (partial.length)
+ ret = ret.concat(partial.slice(0, instance.options.choices - ret.length))
+ return "
";
+ }
+ }, options || { });
+ }
+});
+
+// AJAX in-place editor and collection editor
+// Full rewrite by Christophe Porteneuve
(April 2007).
+
+// Use this if you notice weird scrolling problems on some browsers,
+// the DOM might be a bit confused when this gets called so do this
+// waits 1 ms (with setTimeout) until it does the activation
+Field.scrollFreeActivate = function(field) {
+ setTimeout(function() {
+ Field.activate(field);
+ }, 1);
+}
+
+Ajax.InPlaceEditor = Class.create({
+ initialize: function(element, url, options) {
+ this.url = url;
+ this.element = element = $(element);
+ this.prepareOptions();
+ this._controls = { };
+ arguments.callee.dealWithDeprecatedOptions(options); // DEPRECATION LAYER!!!
+ Object.extend(this.options, options || { });
+ if (!this.options.formId && this.element.id) {
+ this.options.formId = this.element.id + '-inplaceeditor';
+ if ($(this.options.formId))
+ this.options.formId = '';
+ }
+ if (this.options.externalControl)
+ this.options.externalControl = $(this.options.externalControl);
+ if (!this.options.externalControl)
+ this.options.externalControlOnly = false;
+ this._originalBackground = this.element.getStyle('background-color') || 'transparent';
+ this.element.title = this.options.clickToEditText;
+ this._boundCancelHandler = this.handleFormCancellation.bind(this);
+ this._boundComplete = (this.options.onComplete || Prototype.emptyFunction).bind(this);
+ this._boundFailureHandler = this.handleAJAXFailure.bind(this);
+ this._boundSubmitHandler = this.handleFormSubmission.bind(this);
+ this._boundWrapperHandler = this.wrapUp.bind(this);
+ this.registerListeners();
+ },
+ checkForEscapeOrReturn: function(e) {
+ if (!this._editing || e.ctrlKey || e.altKey || e.shiftKey) return;
+ if (Event.KEY_ESC == e.keyCode)
+ this.handleFormCancellation(e);
+ else if (Event.KEY_RETURN == e.keyCode)
+ this.handleFormSubmission(e);
+ },
+ createControl: function(mode, handler, extraClasses) {
+ var control = this.options[mode + 'Control'];
+ var text = this.options[mode + 'Text'];
+ if ('button' == control) {
+ var btn = document.createElement('input');
+ btn.type = 'submit';
+ btn.value = text;
+ btn.className = 'editor_' + mode + '_button';
+ if ('cancel' == mode)
+ btn.onclick = this._boundCancelHandler;
+ this._form.appendChild(btn);
+ this._controls[mode] = btn;
+ } else if ('link' == control) {
+ var link = document.createElement('a');
+ link.href = '#';
+ link.appendChild(document.createTextNode(text));
+ link.onclick = 'cancel' == mode ? this._boundCancelHandler : this._boundSubmitHandler;
+ link.className = 'editor_' + mode + '_link';
+ if (extraClasses)
+ link.className += ' ' + extraClasses;
+ this._form.appendChild(link);
+ this._controls[mode] = link;
+ }
+ },
+ createEditField: function() {
+ var text = (this.options.loadTextURL ? this.options.loadingText : this.getText());
+ var fld;
+ if (1 >= this.options.rows && !/\r|\n/.test(this.getText())) {
+ fld = document.createElement('input');
+ fld.type = 'text';
+ var size = this.options.size || this.options.cols || 0;
+ if (0 < size) fld.size = size;
+ } else {
+ fld = document.createElement('textarea');
+ fld.rows = (1 >= this.options.rows ? this.options.autoRows : this.options.rows);
+ fld.cols = this.options.cols || 40;
+ }
+ fld.name = this.options.paramName;
+ fld.value = text; // No HTML breaks conversion anymore
+ fld.className = 'editor_field';
+ if (this.options.submitOnBlur)
+ fld.onblur = this._boundSubmitHandler;
+ this._controls.editor = fld;
+ if (this.options.loadTextURL)
+ this.loadExternalText();
+ this._form.appendChild(this._controls.editor);
+ },
+ createForm: function() {
+ var ipe = this;
+ function addText(mode, condition) {
+ var text = ipe.options['text' + mode + 'Controls'];
+ if (!text || condition === false) return;
+ ipe._form.appendChild(document.createTextNode(text));
+ };
+ this._form = $(document.createElement('form'));
+ this._form.id = this.options.formId;
+ this._form.addClassName(this.options.formClassName);
+ this._form.onsubmit = this._boundSubmitHandler;
+ this.createEditField();
+ if ('textarea' == this._controls.editor.tagName.toLowerCase())
+ this._form.appendChild(document.createElement('br'));
+ if (this.options.onFormCustomization)
+ this.options.onFormCustomization(this, this._form);
+ addText('Before', this.options.okControl || this.options.cancelControl);
+ this.createControl('ok', this._boundSubmitHandler);
+ addText('Between', this.options.okControl && this.options.cancelControl);
+ this.createControl('cancel', this._boundCancelHandler, 'editor_cancel');
+ addText('After', this.options.okControl || this.options.cancelControl);
+ },
+ destroy: function() {
+ if (this._oldInnerHTML)
+ this.element.innerHTML = this._oldInnerHTML;
+ this.leaveEditMode();
+ this.unregisterListeners();
+ },
+ enterEditMode: function(e) {
+ if (this._saving || this._editing) return;
+ this._editing = true;
+ this.triggerCallback('onEnterEditMode');
+ if (this.options.externalControl)
+ this.options.externalControl.hide();
+ this.element.hide();
+ this.createForm();
+ this.element.parentNode.insertBefore(this._form, this.element);
+ if (!this.options.loadTextURL)
+ this.postProcessEditField();
+ if (e) Event.stop(e);
+ },
+ enterHover: function(e) {
+ if (this.options.hoverClassName)
+ this.element.addClassName(this.options.hoverClassName);
+ if (this._saving) return;
+ this.triggerCallback('onEnterHover');
+ },
+ getText: function() {
+ return this.element.innerHTML;
+ },
+ handleAJAXFailure: function(transport) {
+ this.triggerCallback('onFailure', transport);
+ if (this._oldInnerHTML) {
+ this.element.innerHTML = this._oldInnerHTML;
+ this._oldInnerHTML = null;
+ }
+ },
+ handleFormCancellation: function(e) {
+ this.wrapUp();
+ if (e) Event.stop(e);
+ },
+ handleFormSubmission: function(e) {
+ var form = this._form;
+ var value = $F(this._controls.editor);
+ this.prepareSubmission();
+ var params = this.options.callback(form, value) || '';
+ if (Object.isString(params))
+ params = params.toQueryParams();
+ params.editorId = this.element.id;
+ if (this.options.htmlResponse) {
+ var options = Object.extend({ evalScripts: true }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: params,
+ onComplete: this._boundWrapperHandler,
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Updater({ success: this.element }, this.url, options);
+ } else {
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: params,
+ onComplete: this._boundWrapperHandler,
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Request(this.url, options);
+ }
+ if (e) Event.stop(e);
+ },
+ leaveEditMode: function() {
+ this.element.removeClassName(this.options.savingClassName);
+ this.removeForm();
+ this.leaveHover();
+ this.element.style.backgroundColor = this._originalBackground;
+ this.element.show();
+ if (this.options.externalControl)
+ this.options.externalControl.show();
+ this._saving = false;
+ this._editing = false;
+ this._oldInnerHTML = null;
+ this.triggerCallback('onLeaveEditMode');
+ },
+ leaveHover: function(e) {
+ if (this.options.hoverClassName)
+ this.element.removeClassName(this.options.hoverClassName);
+ if (this._saving) return;
+ this.triggerCallback('onLeaveHover');
+ },
+ loadExternalText: function() {
+ this._form.addClassName(this.options.loadingClassName);
+ this._controls.editor.disabled = true;
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ this._form.removeClassName(this.options.loadingClassName);
+ var text = transport.responseText;
+ if (this.options.stripLoadedTextTags)
+ text = text.stripTags();
+ this._controls.editor.value = text;
+ this._controls.editor.disabled = false;
+ this.postProcessEditField();
+ }.bind(this),
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Request(this.options.loadTextURL, options);
+ },
+ postProcessEditField: function() {
+ var fpc = this.options.fieldPostCreation;
+ if (fpc)
+ $(this._controls.editor)['focus' == fpc ? 'focus' : 'activate']();
+ },
+ prepareOptions: function() {
+ this.options = Object.clone(Ajax.InPlaceEditor.DefaultOptions);
+ Object.extend(this.options, Ajax.InPlaceEditor.DefaultCallbacks);
+ [this._extraDefaultOptions].flatten().compact().each(function(defs) {
+ Object.extend(this.options, defs);
+ }.bind(this));
+ },
+ prepareSubmission: function() {
+ this._saving = true;
+ this.removeForm();
+ this.leaveHover();
+ this.showSaving();
+ },
+ registerListeners: function() {
+ this._listeners = { };
+ var listener;
+ $H(Ajax.InPlaceEditor.Listeners).each(function(pair) {
+ listener = this[pair.value].bind(this);
+ this._listeners[pair.key] = listener;
+ if (!this.options.externalControlOnly)
+ this.element.observe(pair.key, listener);
+ if (this.options.externalControl)
+ this.options.externalControl.observe(pair.key, listener);
+ }.bind(this));
+ },
+ removeForm: function() {
+ if (!this._form) return;
+ this._form.remove();
+ this._form = null;
+ this._controls = { };
+ },
+ showSaving: function() {
+ this._oldInnerHTML = this.element.innerHTML;
+ this.element.innerHTML = this.options.savingText;
+ this.element.addClassName(this.options.savingClassName);
+ this.element.style.backgroundColor = this._originalBackground;
+ this.element.show();
+ },
+ triggerCallback: function(cbName, arg) {
+ if ('function' == typeof this.options[cbName]) {
+ this.options[cbName](this, arg);
+ }
+ },
+ unregisterListeners: function() {
+ $H(this._listeners).each(function(pair) {
+ if (!this.options.externalControlOnly)
+ this.element.stopObserving(pair.key, pair.value);
+ if (this.options.externalControl)
+ this.options.externalControl.stopObserving(pair.key, pair.value);
+ }.bind(this));
+ },
+ wrapUp: function(transport) {
+ this.leaveEditMode();
+ // Can't use triggerCallback due to backward compatibility: requires
+ // binding + direct element
+ this._boundComplete(transport, this.element);
+ }
+});
+
+Object.extend(Ajax.InPlaceEditor.prototype, {
+ dispose: Ajax.InPlaceEditor.prototype.destroy
+});
+
+Ajax.InPlaceCollectionEditor = Class.create(Ajax.InPlaceEditor, {
+ initialize: function($super, element, url, options) {
+ this._extraDefaultOptions = Ajax.InPlaceCollectionEditor.DefaultOptions;
+ $super(element, url, options);
+ },
+
+ createEditField: function() {
+ var list = document.createElement('select');
+ list.name = this.options.paramName;
+ list.size = 1;
+ this._controls.editor = list;
+ this._collection = this.options.collection || [];
+ if (this.options.loadCollectionURL)
+ this.loadCollection();
+ else
+ this.checkForExternalText();
+ this._form.appendChild(this._controls.editor);
+ },
+
+ loadCollection: function() {
+ this._form.addClassName(this.options.loadingClassName);
+ this.showLoadingText(this.options.loadingCollectionText);
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ var js = transport.responseText.strip();
+ if (!/^\[.*\]$/.test(js)) // TODO: improve sanity check
+ throw 'Server returned an invalid collection representation.';
+ this._collection = eval(js);
+ this.checkForExternalText();
+ }.bind(this),
+ onFailure: this.onFailure
+ });
+ new Ajax.Request(this.options.loadCollectionURL, options);
+ },
+
+ showLoadingText: function(text) {
+ this._controls.editor.disabled = true;
+ var tempOption = this._controls.editor.firstChild;
+ if (!tempOption) {
+ tempOption = document.createElement('option');
+ tempOption.value = '';
+ this._controls.editor.appendChild(tempOption);
+ tempOption.selected = true;
+ }
+ tempOption.update((text || '').stripScripts().stripTags());
+ },
+
+ checkForExternalText: function() {
+ this._text = this.getText();
+ if (this.options.loadTextURL)
+ this.loadExternalText();
+ else
+ this.buildOptionList();
+ },
+
+ loadExternalText: function() {
+ this.showLoadingText(this.options.loadingText);
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ this._text = transport.responseText.strip();
+ this.buildOptionList();
+ }.bind(this),
+ onFailure: this.onFailure
+ });
+ new Ajax.Request(this.options.loadTextURL, options);
+ },
+
+ buildOptionList: function() {
+ this._form.removeClassName(this.options.loadingClassName);
+ this._collection = this._collection.map(function(entry) {
+ return 2 === entry.length ? entry : [entry, entry].flatten();
+ });
+ var marker = ('value' in this.options) ? this.options.value : this._text;
+ var textFound = this._collection.any(function(entry) {
+ return entry[0] == marker;
+ }.bind(this));
+ this._controls.editor.update('');
+ var option;
+ this._collection.each(function(entry, index) {
+ option = document.createElement('option');
+ option.value = entry[0];
+ option.selected = textFound ? entry[0] == marker : 0 == index;
+ option.appendChild(document.createTextNode(entry[1]));
+ this._controls.editor.appendChild(option);
+ }.bind(this));
+ this._controls.editor.disabled = false;
+ Field.scrollFreeActivate(this._controls.editor);
+ }
+});
+
+//**** DEPRECATION LAYER FOR InPlace[Collection]Editor! ****
+//**** This only exists for a while, in order to let ****
+//**** users adapt to the new API. Read up on the new ****
+//**** API and convert your code to it ASAP! ****
+
+Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions = function(options) {
+ if (!options) return;
+ function fallback(name, expr) {
+ if (name in options || expr === undefined) return;
+ options[name] = expr;
+ };
+ fallback('cancelControl', (options.cancelLink ? 'link' : (options.cancelButton ? 'button' :
+ options.cancelLink == options.cancelButton == false ? false : undefined)));
+ fallback('okControl', (options.okLink ? 'link' : (options.okButton ? 'button' :
+ options.okLink == options.okButton == false ? false : undefined)));
+ fallback('highlightColor', options.highlightcolor);
+ fallback('highlightEndColor', options.highlightendcolor);
+};
+
+Object.extend(Ajax.InPlaceEditor, {
+ DefaultOptions: {
+ ajaxOptions: { },
+ autoRows: 3, // Use when multi-line w/ rows == 1
+ cancelControl: 'link', // 'link'|'button'|false
+ cancelText: 'cancel',
+ clickToEditText: 'Click to edit',
+ externalControl: null, // id|elt
+ externalControlOnly: false,
+ fieldPostCreation: 'activate', // 'activate'|'focus'|false
+ formClassName: 'inplaceeditor-form',
+ formId: null, // id|elt
+ highlightColor: '#ffff99',
+ highlightEndColor: '#ffffff',
+ hoverClassName: '',
+ htmlResponse: true,
+ loadingClassName: 'inplaceeditor-loading',
+ loadingText: 'Loading...',
+ okControl: 'button', // 'link'|'button'|false
+ okText: 'ok',
+ paramName: 'value',
+ rows: 1, // If 1 and multi-line, uses autoRows
+ savingClassName: 'inplaceeditor-saving',
+ savingText: 'Saving...',
+ size: 0,
+ stripLoadedTextTags: false,
+ submitOnBlur: false,
+ textAfterControls: '',
+ textBeforeControls: '',
+ textBetweenControls: ''
+ },
+ DefaultCallbacks: {
+ callback: function(form) {
+ return Form.serialize(form);
+ },
+ onComplete: function(transport, element) {
+ // For backward compatibility, this one is bound to the IPE, and passes
+ // the element directly. It was too often customized, so we don't break it.
+ new Effect.Highlight(element, {
+ startcolor: this.options.highlightColor, keepBackgroundImage: true });
+ },
+ onEnterEditMode: null,
+ onEnterHover: function(ipe) {
+ ipe.element.style.backgroundColor = ipe.options.highlightColor;
+ if (ipe._effect)
+ ipe._effect.cancel();
+ },
+ onFailure: function(transport, ipe) {
+ alert('Error communication with the server: ' + transport.responseText.stripTags());
+ },
+ onFormCustomization: null, // Takes the IPE and its generated form, after editor, before controls.
+ onLeaveEditMode: null,
+ onLeaveHover: function(ipe) {
+ ipe._effect = new Effect.Highlight(ipe.element, {
+ startcolor: ipe.options.highlightColor, endcolor: ipe.options.highlightEndColor,
+ restorecolor: ipe._originalBackground, keepBackgroundImage: true
+ });
+ }
+ },
+ Listeners: {
+ click: 'enterEditMode',
+ keydown: 'checkForEscapeOrReturn',
+ mouseover: 'enterHover',
+ mouseout: 'leaveHover'
+ }
+});
+
+Ajax.InPlaceCollectionEditor.DefaultOptions = {
+ loadingCollectionText: 'Loading options...'
+};
+
+// Delayed observer, like Form.Element.Observer,
+// but waits for delay after last key input
+// Ideal for live-search fields
+
+Form.Element.DelayedObserver = Class.create({
+ initialize: function(element, delay, callback) {
+ this.delay = delay || 0.5;
+ this.element = $(element);
+ this.callback = callback;
+ this.timer = null;
+ this.lastValue = $F(this.element);
+ Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));
+ },
+ delayedListener: function(event) {
+ if(this.lastValue == $F(this.element)) return;
+ if(this.timer) clearTimeout(this.timer);
+ this.timer = setTimeout(this.onTimerEvent.bind(this), this.delay * 1000);
+ this.lastValue = $F(this.element);
+ },
+ onTimerEvent: function() {
+ this.timer = null;
+ this.callback(this.element, $F(this.element));
+ }
+});
diff --git a/webroot/js/.svn/text-base/dragdrop.js.svn-base b/webroot/js/.svn/text-base/dragdrop.js.svn-base
new file mode 100644
index 00000000..bf429c26
--- /dev/null
+++ b/webroot/js/.svn/text-base/dragdrop.js.svn-base
@@ -0,0 +1,974 @@
+// script.aculo.us dragdrop.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
+
+// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// (c) 2005-2007 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+if(Object.isUndefined(Effect))
+ throw("dragdrop.js requires including script.aculo.us' effects.js library");
+
+var Droppables = {
+ drops: [],
+
+ remove: function(element) {
+ this.drops = this.drops.reject(function(d) { return d.element==$(element) });
+ },
+
+ add: function(element) {
+ element = $(element);
+ var options = Object.extend({
+ greedy: true,
+ hoverclass: null,
+ tree: false
+ }, arguments[1] || { });
+
+ // cache containers
+ if(options.containment) {
+ options._containers = [];
+ var containment = options.containment;
+ if(Object.isArray(containment)) {
+ containment.each( function(c) { options._containers.push($(c)) });
+ } else {
+ options._containers.push($(containment));
+ }
+ }
+
+ if(options.accept) options.accept = [options.accept].flatten();
+
+ Element.makePositioned(element); // fix IE
+ options.element = element;
+
+ this.drops.push(options);
+ },
+
+ findDeepestChild: function(drops) {
+ deepest = drops[0];
+
+ for (i = 1; i < drops.length; ++i)
+ if (Element.isParent(drops[i].element, deepest.element))
+ deepest = drops[i];
+
+ return deepest;
+ },
+
+ isContained: function(element, drop) {
+ var containmentNode;
+ if(drop.tree) {
+ containmentNode = element.treeNode;
+ } else {
+ containmentNode = element.parentNode;
+ }
+ return drop._containers.detect(function(c) { return containmentNode == c });
+ },
+
+ isAffected: function(point, element, drop) {
+ return (
+ (drop.element!=element) &&
+ ((!drop._containers) ||
+ this.isContained(element, drop)) &&
+ ((!drop.accept) ||
+ (Element.classNames(element).detect(
+ function(v) { return drop.accept.include(v) } ) )) &&
+ Position.within(drop.element, point[0], point[1]) );
+ },
+
+ deactivate: function(drop) {
+ if(drop.hoverclass)
+ Element.removeClassName(drop.element, drop.hoverclass);
+ this.last_active = null;
+ },
+
+ activate: function(drop) {
+ if(drop.hoverclass)
+ Element.addClassName(drop.element, drop.hoverclass);
+ this.last_active = drop;
+ },
+
+ show: function(point, element) {
+ if(!this.drops.length) return;
+ var drop, affected = [];
+
+ this.drops.each( function(drop) {
+ if(Droppables.isAffected(point, element, drop))
+ affected.push(drop);
+ });
+
+ if(affected.length>0)
+ drop = Droppables.findDeepestChild(affected);
+
+ if(this.last_active && this.last_active != drop) this.deactivate(this.last_active);
+ if (drop) {
+ Position.within(drop.element, point[0], point[1]);
+ if(drop.onHover)
+ drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element));
+
+ if (drop != this.last_active) Droppables.activate(drop);
+ }
+ },
+
+ fire: function(event, element) {
+ if(!this.last_active) return;
+ Position.prepare();
+
+ if (this.isAffected([Event.pointerX(event), Event.pointerY(event)], element, this.last_active))
+ if (this.last_active.onDrop) {
+ this.last_active.onDrop(element, this.last_active.element, event);
+ return true;
+ }
+ },
+
+ reset: function() {
+ if(this.last_active)
+ this.deactivate(this.last_active);
+ }
+}
+
+var Draggables = {
+ drags: [],
+ observers: [],
+
+ register: function(draggable) {
+ if(this.drags.length == 0) {
+ this.eventMouseUp = this.endDrag.bindAsEventListener(this);
+ this.eventMouseMove = this.updateDrag.bindAsEventListener(this);
+ this.eventKeypress = this.keyPress.bindAsEventListener(this);
+
+ Event.observe(document, "mouseup", this.eventMouseUp);
+ Event.observe(document, "mousemove", this.eventMouseMove);
+ Event.observe(document, "keypress", this.eventKeypress);
+ }
+ this.drags.push(draggable);
+ },
+
+ unregister: function(draggable) {
+ this.drags = this.drags.reject(function(d) { return d==draggable });
+ if(this.drags.length == 0) {
+ Event.stopObserving(document, "mouseup", this.eventMouseUp);
+ Event.stopObserving(document, "mousemove", this.eventMouseMove);
+ Event.stopObserving(document, "keypress", this.eventKeypress);
+ }
+ },
+
+ activate: function(draggable) {
+ if(draggable.options.delay) {
+ this._timeout = setTimeout(function() {
+ Draggables._timeout = null;
+ window.focus();
+ Draggables.activeDraggable = draggable;
+ }.bind(this), draggable.options.delay);
+ } else {
+ window.focus(); // allows keypress events if window isn't currently focused, fails for Safari
+ this.activeDraggable = draggable;
+ }
+ },
+
+ deactivate: function() {
+ this.activeDraggable = null;
+ },
+
+ updateDrag: function(event) {
+ if(!this.activeDraggable) return;
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ // Mozilla-based browsers fire successive mousemove events with
+ // the same coordinates, prevent needless redrawing (moz bug?)
+ if(this._lastPointer && (this._lastPointer.inspect() == pointer.inspect())) return;
+ this._lastPointer = pointer;
+
+ this.activeDraggable.updateDrag(event, pointer);
+ },
+
+ endDrag: function(event) {
+ if(this._timeout) {
+ clearTimeout(this._timeout);
+ this._timeout = null;
+ }
+ if(!this.activeDraggable) return;
+ this._lastPointer = null;
+ this.activeDraggable.endDrag(event);
+ this.activeDraggable = null;
+ },
+
+ keyPress: function(event) {
+ if(this.activeDraggable)
+ this.activeDraggable.keyPress(event);
+ },
+
+ addObserver: function(observer) {
+ this.observers.push(observer);
+ this._cacheObserverCallbacks();
+ },
+
+ removeObserver: function(element) { // element instead of observer fixes mem leaks
+ this.observers = this.observers.reject( function(o) { return o.element==element });
+ this._cacheObserverCallbacks();
+ },
+
+ notify: function(eventName, draggable, event) { // 'onStart', 'onEnd', 'onDrag'
+ if(this[eventName+'Count'] > 0)
+ this.observers.each( function(o) {
+ if(o[eventName]) o[eventName](eventName, draggable, event);
+ });
+ if(draggable.options[eventName]) draggable.options[eventName](draggable, event);
+ },
+
+ _cacheObserverCallbacks: function() {
+ ['onStart','onEnd','onDrag'].each( function(eventName) {
+ Draggables[eventName+'Count'] = Draggables.observers.select(
+ function(o) { return o[eventName]; }
+ ).length;
+ });
+ }
+}
+
+/*--------------------------------------------------------------------------*/
+
+var Draggable = Class.create({
+ initialize: function(element) {
+ var defaults = {
+ handle: false,
+ reverteffect: function(element, top_offset, left_offset) {
+ var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;
+ new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur,
+ queue: {scope:'_draggable', position:'end'}
+ });
+ },
+ endeffect: function(element) {
+ var toOpacity = Object.isNumber(element._opacity) ? element._opacity : 1.0;
+ new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity,
+ queue: {scope:'_draggable', position:'end'},
+ afterFinish: function(){
+ Draggable._dragging[element] = false
+ }
+ });
+ },
+ zindex: 1000,
+ revert: false,
+ quiet: false,
+ scroll: false,
+ scrollSensitivity: 20,
+ scrollSpeed: 15,
+ snap: false, // false, or xy or [x,y] or function(x,y){ return [x,y] }
+ delay: 0
+ };
+
+ if(!arguments[1] || Object.isUndefined(arguments[1].endeffect))
+ Object.extend(defaults, {
+ starteffect: function(element) {
+ element._opacity = Element.getOpacity(element);
+ Draggable._dragging[element] = true;
+ new Effect.Opacity(element, {duration:0.2, from:element._opacity, to:0.7});
+ }
+ });
+
+ var options = Object.extend(defaults, arguments[1] || { });
+
+ this.element = $(element);
+
+ if(options.handle && Object.isString(options.handle))
+ this.handle = this.element.down('.'+options.handle, 0);
+
+ if(!this.handle) this.handle = $(options.handle);
+ if(!this.handle) this.handle = this.element;
+
+ if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) {
+ options.scroll = $(options.scroll);
+ this._isScrollChild = Element.childOf(this.element, options.scroll);
+ }
+
+ Element.makePositioned(this.element); // fix IE
+
+ this.options = options;
+ this.dragging = false;
+
+ this.eventMouseDown = this.initDrag.bindAsEventListener(this);
+ Event.observe(this.handle, "mousedown", this.eventMouseDown);
+
+ Draggables.register(this);
+ },
+
+ destroy: function() {
+ Event.stopObserving(this.handle, "mousedown", this.eventMouseDown);
+ Draggables.unregister(this);
+ },
+
+ currentDelta: function() {
+ return([
+ parseInt(Element.getStyle(this.element,'left') || '0'),
+ parseInt(Element.getStyle(this.element,'top') || '0')]);
+ },
+
+ initDrag: function(event) {
+ if(!Object.isUndefined(Draggable._dragging[this.element]) &&
+ Draggable._dragging[this.element]) return;
+ if(Event.isLeftClick(event)) {
+ // abort on form elements, fixes a Firefox issue
+ var src = Event.element(event);
+ if((tag_name = src.tagName.toUpperCase()) && (
+ tag_name=='INPUT' ||
+ tag_name=='SELECT' ||
+ tag_name=='OPTION' ||
+ tag_name=='BUTTON' ||
+ tag_name=='TEXTAREA')) return;
+
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ var pos = Position.cumulativeOffset(this.element);
+ this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) });
+
+ Draggables.activate(this);
+ Event.stop(event);
+ }
+ },
+
+ startDrag: function(event) {
+ this.dragging = true;
+ if(!this.delta)
+ this.delta = this.currentDelta();
+
+ if(this.options.zindex) {
+ this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0);
+ this.element.style.zIndex = this.options.zindex;
+ }
+
+ if(this.options.ghosting) {
+ this._clone = this.element.cloneNode(true);
+ this.element._originallyAbsolute = (this.element.getStyle('position') == 'absolute');
+ if (!this.element._originallyAbsolute)
+ Position.absolutize(this.element);
+ this.element.parentNode.insertBefore(this._clone, this.element);
+ }
+
+ if(this.options.scroll) {
+ if (this.options.scroll == window) {
+ var where = this._getWindowScroll(this.options.scroll);
+ this.originalScrollLeft = where.left;
+ this.originalScrollTop = where.top;
+ } else {
+ this.originalScrollLeft = this.options.scroll.scrollLeft;
+ this.originalScrollTop = this.options.scroll.scrollTop;
+ }
+ }
+
+ Draggables.notify('onStart', this, event);
+
+ if(this.options.starteffect) this.options.starteffect(this.element);
+ },
+
+ updateDrag: function(event, pointer) {
+ if(!this.dragging) this.startDrag(event);
+
+ if(!this.options.quiet){
+ Position.prepare();
+ Droppables.show(pointer, this.element);
+ }
+
+ Draggables.notify('onDrag', this, event);
+
+ this.draw(pointer);
+ if(this.options.change) this.options.change(this);
+
+ if(this.options.scroll) {
+ this.stopScrolling();
+
+ var p;
+ if (this.options.scroll == window) {
+ with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; }
+ } else {
+ p = Position.page(this.options.scroll);
+ p[0] += this.options.scroll.scrollLeft + Position.deltaX;
+ p[1] += this.options.scroll.scrollTop + Position.deltaY;
+ p.push(p[0]+this.options.scroll.offsetWidth);
+ p.push(p[1]+this.options.scroll.offsetHeight);
+ }
+ var speed = [0,0];
+ if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity);
+ if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity);
+ if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity);
+ if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity);
+ this.startScrolling(speed);
+ }
+
+ // fix AppleWebKit rendering
+ if(Prototype.Browser.WebKit) window.scrollBy(0,0);
+
+ Event.stop(event);
+ },
+
+ finishDrag: function(event, success) {
+ this.dragging = false;
+
+ if(this.options.quiet){
+ Position.prepare();
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ Droppables.show(pointer, this.element);
+ }
+
+ if(this.options.ghosting) {
+ if (!this.element._originallyAbsolute)
+ Position.relativize(this.element);
+ delete this.element._originallyAbsolute;
+ Element.remove(this._clone);
+ this._clone = null;
+ }
+
+ var dropped = false;
+ if(success) {
+ dropped = Droppables.fire(event, this.element);
+ if (!dropped) dropped = false;
+ }
+ if(dropped && this.options.onDropped) this.options.onDropped(this.element);
+ Draggables.notify('onEnd', this, event);
+
+ var revert = this.options.revert;
+ if(revert && Object.isFunction(revert)) revert = revert(this.element);
+
+ var d = this.currentDelta();
+ if(revert && this.options.reverteffect) {
+ if (dropped == 0 || revert != 'failure')
+ this.options.reverteffect(this.element,
+ d[1]-this.delta[1], d[0]-this.delta[0]);
+ } else {
+ this.delta = d;
+ }
+
+ if(this.options.zindex)
+ this.element.style.zIndex = this.originalZ;
+
+ if(this.options.endeffect)
+ this.options.endeffect(this.element);
+
+ Draggables.deactivate(this);
+ Droppables.reset();
+ },
+
+ keyPress: function(event) {
+ if(event.keyCode!=Event.KEY_ESC) return;
+ this.finishDrag(event, false);
+ Event.stop(event);
+ },
+
+ endDrag: function(event) {
+ if(!this.dragging) return;
+ this.stopScrolling();
+ this.finishDrag(event, true);
+ Event.stop(event);
+ },
+
+ draw: function(point) {
+ var pos = Position.cumulativeOffset(this.element);
+ if(this.options.ghosting) {
+ var r = Position.realOffset(this.element);
+ pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
+ }
+
+ var d = this.currentDelta();
+ pos[0] -= d[0]; pos[1] -= d[1];
+
+ if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) {
+ pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft;
+ pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop;
+ }
+
+ var p = [0,1].map(function(i){
+ return (point[i]-pos[i]-this.offset[i])
+ }.bind(this));
+
+ if(this.options.snap) {
+ if(Object.isFunction(this.options.snap)) {
+ p = this.options.snap(p[0],p[1],this);
+ } else {
+ if(Object.isArray(this.options.snap)) {
+ p = p.map( function(v, i) {
+ return (v/this.options.snap[i]).round()*this.options.snap[i] }.bind(this))
+ } else {
+ p = p.map( function(v) {
+ return (v/this.options.snap).round()*this.options.snap }.bind(this))
+ }
+ }}
+
+ var style = this.element.style;
+ if((!this.options.constraint) || (this.options.constraint=='horizontal'))
+ style.left = p[0] + "px";
+ if((!this.options.constraint) || (this.options.constraint=='vertical'))
+ style.top = p[1] + "px";
+
+ if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering
+ },
+
+ stopScrolling: function() {
+ if(this.scrollInterval) {
+ clearInterval(this.scrollInterval);
+ this.scrollInterval = null;
+ Draggables._lastScrollPointer = null;
+ }
+ },
+
+ startScrolling: function(speed) {
+ if(!(speed[0] || speed[1])) return;
+ this.scrollSpeed = [speed[0]*this.options.scrollSpeed,speed[1]*this.options.scrollSpeed];
+ this.lastScrolled = new Date();
+ this.scrollInterval = setInterval(this.scroll.bind(this), 10);
+ },
+
+ scroll: function() {
+ var current = new Date();
+ var delta = current - this.lastScrolled;
+ this.lastScrolled = current;
+ if(this.options.scroll == window) {
+ with (this._getWindowScroll(this.options.scroll)) {
+ if (this.scrollSpeed[0] || this.scrollSpeed[1]) {
+ var d = delta / 1000;
+ this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] );
+ }
+ }
+ } else {
+ this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000;
+ this.options.scroll.scrollTop += this.scrollSpeed[1] * delta / 1000;
+ }
+
+ Position.prepare();
+ Droppables.show(Draggables._lastPointer, this.element);
+ Draggables.notify('onDrag', this);
+ if (this._isScrollChild) {
+ Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer);
+ Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000;
+ Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000;
+ if (Draggables._lastScrollPointer[0] < 0)
+ Draggables._lastScrollPointer[0] = 0;
+ if (Draggables._lastScrollPointer[1] < 0)
+ Draggables._lastScrollPointer[1] = 0;
+ this.draw(Draggables._lastScrollPointer);
+ }
+
+ if(this.options.change) this.options.change(this);
+ },
+
+ _getWindowScroll: function(w) {
+ var T, L, W, H;
+ with (w.document) {
+ if (w.document.documentElement && documentElement.scrollTop) {
+ T = documentElement.scrollTop;
+ L = documentElement.scrollLeft;
+ } else if (w.document.body) {
+ T = body.scrollTop;
+ L = body.scrollLeft;
+ }
+ if (w.innerWidth) {
+ W = w.innerWidth;
+ H = w.innerHeight;
+ } else if (w.document.documentElement && documentElement.clientWidth) {
+ W = documentElement.clientWidth;
+ H = documentElement.clientHeight;
+ } else {
+ W = body.offsetWidth;
+ H = body.offsetHeight
+ }
+ }
+ return { top: T, left: L, width: W, height: H };
+ }
+});
+
+Draggable._dragging = { };
+
+/*--------------------------------------------------------------------------*/
+
+var SortableObserver = Class.create({
+ initialize: function(element, observer) {
+ this.element = $(element);
+ this.observer = observer;
+ this.lastValue = Sortable.serialize(this.element);
+ },
+
+ onStart: function() {
+ this.lastValue = Sortable.serialize(this.element);
+ },
+
+ onEnd: function() {
+ Sortable.unmark();
+ if(this.lastValue != Sortable.serialize(this.element))
+ this.observer(this.element)
+ }
+});
+
+var Sortable = {
+ SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,
+
+ sortables: { },
+
+ _findRootElement: function(element) {
+ while (element.tagName.toUpperCase() != "BODY") {
+ if(element.id && Sortable.sortables[element.id]) return element;
+ element = element.parentNode;
+ }
+ },
+
+ options: function(element) {
+ element = Sortable._findRootElement($(element));
+ if(!element) return;
+ return Sortable.sortables[element.id];
+ },
+
+ destroy: function(element){
+ var s = Sortable.options(element);
+
+ if(s) {
+ Draggables.removeObserver(s.element);
+ s.droppables.each(function(d){ Droppables.remove(d) });
+ s.draggables.invoke('destroy');
+
+ delete Sortable.sortables[s.element.id];
+ }
+ },
+
+ create: function(element) {
+ element = $(element);
+ var options = Object.extend({
+ element: element,
+ tag: 'li', // assumes li children, override with tag: 'tagname'
+ dropOnEmpty: false,
+ tree: false,
+ treeTag: 'ul',
+ overlap: 'vertical', // one of 'vertical', 'horizontal'
+ constraint: 'vertical', // one of 'vertical', 'horizontal', false
+ containment: element, // also takes array of elements (or id's); or false
+ handle: false, // or a CSS class
+ only: false,
+ delay: 0,
+ hoverclass: null,
+ ghosting: false,
+ quiet: false,
+ scroll: false,
+ scrollSensitivity: 20,
+ scrollSpeed: 15,
+ format: this.SERIALIZE_RULE,
+
+ // these take arrays of elements or ids and can be
+ // used for better initialization performance
+ elements: false,
+ handles: false,
+
+ onChange: Prototype.emptyFunction,
+ onUpdate: Prototype.emptyFunction
+ }, arguments[1] || { });
+
+ // clear any old sortable with same element
+ this.destroy(element);
+
+ // build options for the draggables
+ var options_for_draggable = {
+ revert: true,
+ quiet: options.quiet,
+ scroll: options.scroll,
+ scrollSpeed: options.scrollSpeed,
+ scrollSensitivity: options.scrollSensitivity,
+ delay: options.delay,
+ ghosting: options.ghosting,
+ constraint: options.constraint,
+ handle: options.handle };
+
+ if(options.starteffect)
+ options_for_draggable.starteffect = options.starteffect;
+
+ if(options.reverteffect)
+ options_for_draggable.reverteffect = options.reverteffect;
+ else
+ if(options.ghosting) options_for_draggable.reverteffect = function(element) {
+ element.style.top = 0;
+ element.style.left = 0;
+ };
+
+ if(options.endeffect)
+ options_for_draggable.endeffect = options.endeffect;
+
+ if(options.zindex)
+ options_for_draggable.zindex = options.zindex;
+
+ // build options for the droppables
+ var options_for_droppable = {
+ overlap: options.overlap,
+ containment: options.containment,
+ tree: options.tree,
+ hoverclass: options.hoverclass,
+ onHover: Sortable.onHover
+ }
+
+ var options_for_tree = {
+ onHover: Sortable.onEmptyHover,
+ overlap: options.overlap,
+ containment: options.containment,
+ hoverclass: options.hoverclass
+ }
+
+ // fix for gecko engine
+ Element.cleanWhitespace(element);
+
+ options.draggables = [];
+ options.droppables = [];
+
+ // drop on empty handling
+ if(options.dropOnEmpty || options.tree) {
+ Droppables.add(element, options_for_tree);
+ options.droppables.push(element);
+ }
+
+ (options.elements || this.findElements(element, options) || []).each( function(e,i) {
+ var handle = options.handles ? $(options.handles[i]) :
+ (options.handle ? $(e).select('.' + options.handle)[0] : e);
+ options.draggables.push(
+ new Draggable(e, Object.extend(options_for_draggable, { handle: handle })));
+ Droppables.add(e, options_for_droppable);
+ if(options.tree) e.treeNode = element;
+ options.droppables.push(e);
+ });
+
+ if(options.tree) {
+ (Sortable.findTreeElements(element, options) || []).each( function(e) {
+ Droppables.add(e, options_for_tree);
+ e.treeNode = element;
+ options.droppables.push(e);
+ });
+ }
+
+ // keep reference
+ this.sortables[element.id] = options;
+
+ // for onupdate
+ Draggables.addObserver(new SortableObserver(element, options.onUpdate));
+
+ },
+
+ // return all suitable-for-sortable elements in a guaranteed order
+ findElements: function(element, options) {
+ return Element.findChildren(
+ element, options.only, options.tree ? true : false, options.tag);
+ },
+
+ findTreeElements: function(element, options) {
+ return Element.findChildren(
+ element, options.only, options.tree ? true : false, options.treeTag);
+ },
+
+ onHover: function(element, dropon, overlap) {
+ if(Element.isParent(dropon, element)) return;
+
+ if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) {
+ return;
+ } else if(overlap>0.5) {
+ Sortable.mark(dropon, 'before');
+ if(dropon.previousSibling != element) {
+ var oldParentNode = element.parentNode;
+ element.style.visibility = "hidden"; // fix gecko rendering
+ dropon.parentNode.insertBefore(element, dropon);
+ if(dropon.parentNode!=oldParentNode)
+ Sortable.options(oldParentNode).onChange(element);
+ Sortable.options(dropon.parentNode).onChange(element);
+ }
+ } else {
+ Sortable.mark(dropon, 'after');
+ var nextElement = dropon.nextSibling || null;
+ if(nextElement != element) {
+ var oldParentNode = element.parentNode;
+ element.style.visibility = "hidden"; // fix gecko rendering
+ dropon.parentNode.insertBefore(element, nextElement);
+ if(dropon.parentNode!=oldParentNode)
+ Sortable.options(oldParentNode).onChange(element);
+ Sortable.options(dropon.parentNode).onChange(element);
+ }
+ }
+ },
+
+ onEmptyHover: function(element, dropon, overlap) {
+ var oldParentNode = element.parentNode;
+ var droponOptions = Sortable.options(dropon);
+
+ if(!Element.isParent(dropon, element)) {
+ var index;
+
+ var children = Sortable.findElements(dropon, {tag: droponOptions.tag, only: droponOptions.only});
+ var child = null;
+
+ if(children) {
+ var offset = Element.offsetSize(dropon, droponOptions.overlap) * (1.0 - overlap);
+
+ for (index = 0; index < children.length; index += 1) {
+ if (offset - Element.offsetSize (children[index], droponOptions.overlap) >= 0) {
+ offset -= Element.offsetSize (children[index], droponOptions.overlap);
+ } else if (offset - (Element.offsetSize (children[index], droponOptions.overlap) / 2) >= 0) {
+ child = index + 1 < children.length ? children[index + 1] : null;
+ break;
+ } else {
+ child = children[index];
+ break;
+ }
+ }
+ }
+
+ dropon.insertBefore(element, child);
+
+ Sortable.options(oldParentNode).onChange(element);
+ droponOptions.onChange(element);
+ }
+ },
+
+ unmark: function() {
+ if(Sortable._marker) Sortable._marker.hide();
+ },
+
+ mark: function(dropon, position) {
+ // mark on ghosting only
+ var sortable = Sortable.options(dropon.parentNode);
+ if(sortable && !sortable.ghosting) return;
+
+ if(!Sortable._marker) {
+ Sortable._marker =
+ ($('dropmarker') || Element.extend(document.createElement('DIV'))).
+ hide().addClassName('dropmarker').setStyle({position:'absolute'});
+ document.getElementsByTagName("body").item(0).appendChild(Sortable._marker);
+ }
+ var offsets = Position.cumulativeOffset(dropon);
+ Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'});
+
+ if(position=='after')
+ if(sortable.overlap == 'horizontal')
+ Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'});
+ else
+ Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'});
+
+ Sortable._marker.show();
+ },
+
+ _tree: function(element, options, parent) {
+ var children = Sortable.findElements(element, options) || [];
+
+ for (var i = 0; i < children.length; ++i) {
+ var match = children[i].id.match(options.format);
+
+ if (!match) continue;
+
+ var child = {
+ id: encodeURIComponent(match ? match[1] : null),
+ element: element,
+ parent: parent,
+ children: [],
+ position: parent.children.length,
+ container: $(children[i]).down(options.treeTag)
+ }
+
+ /* Get the element containing the children and recurse over it */
+ if (child.container)
+ this._tree(child.container, options, child)
+
+ parent.children.push (child);
+ }
+
+ return parent;
+ },
+
+ tree: function(element) {
+ element = $(element);
+ var sortableOptions = this.options(element);
+ var options = Object.extend({
+ tag: sortableOptions.tag,
+ treeTag: sortableOptions.treeTag,
+ only: sortableOptions.only,
+ name: element.id,
+ format: sortableOptions.format
+ }, arguments[1] || { });
+
+ var root = {
+ id: null,
+ parent: null,
+ children: [],
+ container: element,
+ position: 0
+ }
+
+ return Sortable._tree(element, options, root);
+ },
+
+ /* Construct a [i] index for a particular node */
+ _constructIndex: function(node) {
+ var index = '';
+ do {
+ if (node.id) index = '[' + node.position + ']' + index;
+ } while ((node = node.parent) != null);
+ return index;
+ },
+
+ sequence: function(element) {
+ element = $(element);
+ var options = Object.extend(this.options(element), arguments[1] || { });
+
+ return $(this.findElements(element, options) || []).map( function(item) {
+ return item.id.match(options.format) ? item.id.match(options.format)[1] : '';
+ });
+ },
+
+ setSequence: function(element, new_sequence) {
+ element = $(element);
+ var options = Object.extend(this.options(element), arguments[2] || { });
+
+ var nodeMap = { };
+ this.findElements(element, options).each( function(n) {
+ if (n.id.match(options.format))
+ nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode];
+ n.parentNode.removeChild(n);
+ });
+
+ new_sequence.each(function(ident) {
+ var n = nodeMap[ident];
+ if (n) {
+ n[1].appendChild(n[0]);
+ delete nodeMap[ident];
+ }
+ });
+ },
+
+ serialize: function(element) {
+ element = $(element);
+ var options = Object.extend(Sortable.options(element), arguments[1] || { });
+ var name = encodeURIComponent(
+ (arguments[1] && arguments[1].name) ? arguments[1].name : element.id);
+
+ if (options.tree) {
+ return Sortable.tree(element, arguments[1]).children.map( function (item) {
+ return [name + Sortable._constructIndex(item) + "[id]=" +
+ encodeURIComponent(item.id)].concat(item.children.map(arguments.callee));
+ }).flatten().join('&');
+ } else {
+ return Sortable.sequence(element, arguments[1]).map( function(item) {
+ return name + "[]=" + encodeURIComponent(item);
+ }).join('&');
+ }
+ }
+}
+
+// Returns true if child is contained within element
+Element.isParent = function(child, element) {
+ if (!child.parentNode || child == element) return false;
+ if (child.parentNode == element) return true;
+ return Element.isParent(child.parentNode, element);
+}
+
+Element.findChildren = function(element, only, recursive, tagName) {
+ if(!element.hasChildNodes()) return null;
+ tagName = tagName.toUpperCase();
+ if(only) only = [only].flatten();
+ var elements = [];
+ $A(element.childNodes).each( function(e) {
+ if(e.tagName && e.tagName.toUpperCase()==tagName &&
+ (!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
+ elements.push(e);
+ if(recursive) {
+ var grandchildren = Element.findChildren(e, only, recursive, tagName);
+ if(grandchildren) elements.push(grandchildren);
+ }
+ });
+
+ return (elements.length>0 ? elements.flatten() : []);
+}
+
+Element.offsetSize = function (element, type) {
+ return element['offset' + ((type=='vertical' || type=='height') ? 'Height' : 'Width')];
+}
diff --git a/webroot/js/.svn/text-base/effects.js.svn-base b/webroot/js/.svn/text-base/effects.js.svn-base
new file mode 100644
index 00000000..b8c0259f
--- /dev/null
+++ b/webroot/js/.svn/text-base/effects.js.svn-base
@@ -0,0 +1,1122 @@
+// script.aculo.us effects.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
+
+// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// Contributors:
+// Justin Palmer (http://encytemedia.com/)
+// Mark Pilgrim (http://diveintomark.org/)
+// Martin Bialasinki
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+// converts rgb() and #xxx to #xxxxxx format,
+// returns self (or first argument) if not convertable
+String.prototype.parseColor = function() {
+ var color = '#';
+ if (this.slice(0,4) == 'rgb(') {
+ var cols = this.slice(4,this.length-1).split(',');
+ var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
+ } else {
+ if (this.slice(0,1) == '#') {
+ if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
+ if (this.length==7) color = this.toLowerCase();
+ }
+ }
+ return (color.length==7 ? color : (arguments[0] || this));
+};
+
+/*--------------------------------------------------------------------------*/
+
+Element.collectTextNodes = function(element) {
+ return $A($(element).childNodes).collect( function(node) {
+ return (node.nodeType==3 ? node.nodeValue :
+ (node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
+ }).flatten().join('');
+};
+
+Element.collectTextNodesIgnoreClass = function(element, className) {
+ return $A($(element).childNodes).collect( function(node) {
+ return (node.nodeType==3 ? node.nodeValue :
+ ((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
+ Element.collectTextNodesIgnoreClass(node, className) : ''));
+ }).flatten().join('');
+};
+
+Element.setContentZoom = function(element, percent) {
+ element = $(element);
+ element.setStyle({fontSize: (percent/100) + 'em'});
+ if (Prototype.Browser.WebKit) window.scrollBy(0,0);
+ return element;
+};
+
+Element.getInlineOpacity = function(element){
+ return $(element).style.opacity || '';
+};
+
+Element.forceRerendering = function(element) {
+ try {
+ element = $(element);
+ var n = document.createTextNode(' ');
+ element.appendChild(n);
+ element.removeChild(n);
+ } catch(e) { }
+};
+
+/*--------------------------------------------------------------------------*/
+
+var Effect = {
+ _elementDoesNotExistError: {
+ name: 'ElementDoesNotExistError',
+ message: 'The specified DOM element does not exist, but is required for this effect to operate'
+ },
+ Transitions: {
+ linear: Prototype.K,
+ sinoidal: function(pos) {
+ return (-Math.cos(pos*Math.PI)/2) + 0.5;
+ },
+ reverse: function(pos) {
+ return 1-pos;
+ },
+ flicker: function(pos) {
+ var pos = ((-Math.cos(pos*Math.PI)/4) + 0.75) + Math.random()/4;
+ return pos > 1 ? 1 : pos;
+ },
+ wobble: function(pos) {
+ return (-Math.cos(pos*Math.PI*(9*pos))/2) + 0.5;
+ },
+ pulse: function(pos, pulses) {
+ pulses = pulses || 5;
+ return (
+ ((pos % (1/pulses)) * pulses).round() == 0 ?
+ ((pos * pulses * 2) - (pos * pulses * 2).floor()) :
+ 1 - ((pos * pulses * 2) - (pos * pulses * 2).floor())
+ );
+ },
+ spring: function(pos) {
+ return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
+ },
+ none: function(pos) {
+ return 0;
+ },
+ full: function(pos) {
+ return 1;
+ }
+ },
+ DefaultOptions: {
+ duration: 1.0, // seconds
+ fps: 100, // 100= assume 66fps max.
+ sync: false, // true for combining
+ from: 0.0,
+ to: 1.0,
+ delay: 0.0,
+ queue: 'parallel'
+ },
+ tagifyText: function(element) {
+ var tagifyStyle = 'position:relative';
+ if (Prototype.Browser.IE) tagifyStyle += ';zoom:1';
+
+ element = $(element);
+ $A(element.childNodes).each( function(child) {
+ if (child.nodeType==3) {
+ child.nodeValue.toArray().each( function(character) {
+ element.insertBefore(
+ new Element('span', {style: tagifyStyle}).update(
+ character == ' ' ? String.fromCharCode(160) : character),
+ child);
+ });
+ Element.remove(child);
+ }
+ });
+ },
+ multiple: function(element, effect) {
+ var elements;
+ if (((typeof element == 'object') ||
+ Object.isFunction(element)) &&
+ (element.length))
+ elements = element;
+ else
+ elements = $(element).childNodes;
+
+ var options = Object.extend({
+ speed: 0.1,
+ delay: 0.0
+ }, arguments[2] || { });
+ var masterDelay = options.delay;
+
+ $A(elements).each( function(element, index) {
+ new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
+ });
+ },
+ PAIRS: {
+ 'slide': ['SlideDown','SlideUp'],
+ 'blind': ['BlindDown','BlindUp'],
+ 'appear': ['Appear','Fade']
+ },
+ toggle: function(element, effect) {
+ element = $(element);
+ effect = (effect || 'appear').toLowerCase();
+ var options = Object.extend({
+ queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
+ }, arguments[2] || { });
+ Effect[element.visible() ?
+ Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options);
+ }
+};
+
+Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;
+
+/* ------------- core effects ------------- */
+
+Effect.ScopedQueue = Class.create(Enumerable, {
+ initialize: function() {
+ this.effects = [];
+ this.interval = null;
+ },
+ _each: function(iterator) {
+ this.effects._each(iterator);
+ },
+ add: function(effect) {
+ var timestamp = new Date().getTime();
+
+ var position = Object.isString(effect.options.queue) ?
+ effect.options.queue : effect.options.queue.position;
+
+ switch(position) {
+ case 'front':
+ // move unstarted effects after this effect
+ this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
+ e.startOn += effect.finishOn;
+ e.finishOn += effect.finishOn;
+ });
+ break;
+ case 'with-last':
+ timestamp = this.effects.pluck('startOn').max() || timestamp;
+ break;
+ case 'end':
+ // start effect after last queued effect has finished
+ timestamp = this.effects.pluck('finishOn').max() || timestamp;
+ break;
+ }
+
+ effect.startOn += timestamp;
+ effect.finishOn += timestamp;
+
+ if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
+ this.effects.push(effect);
+
+ if (!this.interval)
+ this.interval = setInterval(this.loop.bind(this), 15);
+ },
+ remove: function(effect) {
+ this.effects = this.effects.reject(function(e) { return e==effect });
+ if (this.effects.length == 0) {
+ clearInterval(this.interval);
+ this.interval = null;
+ }
+ },
+ loop: function() {
+ var timePos = new Date().getTime();
+ for(var i=0, len=this.effects.length;i= this.startOn) {
+ if (timePos >= this.finishOn) {
+ this.render(1.0);
+ this.cancel();
+ this.event('beforeFinish');
+ if (this.finish) this.finish();
+ this.event('afterFinish');
+ return;
+ }
+ var pos = (timePos - this.startOn) / this.totalTime,
+ frame = (pos * this.totalFrames).round();
+ if (frame > this.currentFrame) {
+ this.render(pos);
+ this.currentFrame = frame;
+ }
+ }
+ },
+ cancel: function() {
+ if (!this.options.sync)
+ Effect.Queues.get(Object.isString(this.options.queue) ?
+ 'global' : this.options.queue.scope).remove(this);
+ this.state = 'finished';
+ },
+ event: function(eventName) {
+ if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this);
+ if (this.options[eventName]) this.options[eventName](this);
+ },
+ inspect: function() {
+ var data = $H();
+ for(property in this)
+ if (!Object.isFunction(this[property])) data.set(property, this[property]);
+ return '#';
+ }
+});
+
+Effect.Parallel = Class.create(Effect.Base, {
+ initialize: function(effects) {
+ this.effects = effects || [];
+ this.start(arguments[1]);
+ },
+ update: function(position) {
+ this.effects.invoke('render', position);
+ },
+ finish: function(position) {
+ this.effects.each( function(effect) {
+ effect.render(1.0);
+ effect.cancel();
+ effect.event('beforeFinish');
+ if (effect.finish) effect.finish(position);
+ effect.event('afterFinish');
+ });
+ }
+});
+
+Effect.Tween = Class.create(Effect.Base, {
+ initialize: function(object, from, to) {
+ object = Object.isString(object) ? $(object) : object;
+ var args = $A(arguments), method = args.last(),
+ options = args.length == 5 ? args[3] : null;
+ this.method = Object.isFunction(method) ? method.bind(object) :
+ Object.isFunction(object[method]) ? object[method].bind(object) :
+ function(value) { object[method] = value };
+ this.start(Object.extend({ from: from, to: to }, options || { }));
+ },
+ update: function(position) {
+ this.method(position);
+ }
+});
+
+Effect.Event = Class.create(Effect.Base, {
+ initialize: function() {
+ this.start(Object.extend({ duration: 0 }, arguments[0] || { }));
+ },
+ update: Prototype.emptyFunction
+});
+
+Effect.Opacity = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ // make this work on IE on elements without 'layout'
+ if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
+ this.element.setStyle({zoom: 1});
+ var options = Object.extend({
+ from: this.element.getOpacity() || 0.0,
+ to: 1.0
+ }, arguments[1] || { });
+ this.start(options);
+ },
+ update: function(position) {
+ this.element.setOpacity(position);
+ }
+});
+
+Effect.Move = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ x: 0,
+ y: 0,
+ mode: 'relative'
+ }, arguments[1] || { });
+ this.start(options);
+ },
+ setup: function() {
+ this.element.makePositioned();
+ this.originalLeft = parseFloat(this.element.getStyle('left') || '0');
+ this.originalTop = parseFloat(this.element.getStyle('top') || '0');
+ if (this.options.mode == 'absolute') {
+ this.options.x = this.options.x - this.originalLeft;
+ this.options.y = this.options.y - this.originalTop;
+ }
+ },
+ update: function(position) {
+ this.element.setStyle({
+ left: (this.options.x * position + this.originalLeft).round() + 'px',
+ top: (this.options.y * position + this.originalTop).round() + 'px'
+ });
+ }
+});
+
+// for backwards compatibility
+Effect.MoveBy = function(element, toTop, toLeft) {
+ return new Effect.Move(element,
+ Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
+};
+
+Effect.Scale = Class.create(Effect.Base, {
+ initialize: function(element, percent) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ scaleX: true,
+ scaleY: true,
+ scaleContent: true,
+ scaleFromCenter: false,
+ scaleMode: 'box', // 'box' or 'contents' or { } with provided values
+ scaleFrom: 100.0,
+ scaleTo: percent
+ }, arguments[2] || { });
+ this.start(options);
+ },
+ setup: function() {
+ this.restoreAfterFinish = this.options.restoreAfterFinish || false;
+ this.elementPositioning = this.element.getStyle('position');
+
+ this.originalStyle = { };
+ ['top','left','width','height','fontSize'].each( function(k) {
+ this.originalStyle[k] = this.element.style[k];
+ }.bind(this));
+
+ this.originalTop = this.element.offsetTop;
+ this.originalLeft = this.element.offsetLeft;
+
+ var fontSize = this.element.getStyle('font-size') || '100%';
+ ['em','px','%','pt'].each( function(fontSizeType) {
+ if (fontSize.indexOf(fontSizeType)>0) {
+ this.fontSize = parseFloat(fontSize);
+ this.fontSizeType = fontSizeType;
+ }
+ }.bind(this));
+
+ this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
+
+ this.dims = null;
+ if (this.options.scaleMode=='box')
+ this.dims = [this.element.offsetHeight, this.element.offsetWidth];
+ if (/^content/.test(this.options.scaleMode))
+ this.dims = [this.element.scrollHeight, this.element.scrollWidth];
+ if (!this.dims)
+ this.dims = [this.options.scaleMode.originalHeight,
+ this.options.scaleMode.originalWidth];
+ },
+ update: function(position) {
+ var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
+ if (this.options.scaleContent && this.fontSize)
+ this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType });
+ this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale);
+ },
+ finish: function(position) {
+ if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
+ },
+ setDimensions: function(height, width) {
+ var d = { };
+ if (this.options.scaleX) d.width = width.round() + 'px';
+ if (this.options.scaleY) d.height = height.round() + 'px';
+ if (this.options.scaleFromCenter) {
+ var topd = (height - this.dims[0])/2;
+ var leftd = (width - this.dims[1])/2;
+ if (this.elementPositioning == 'absolute') {
+ if (this.options.scaleY) d.top = this.originalTop-topd + 'px';
+ if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px';
+ } else {
+ if (this.options.scaleY) d.top = -topd + 'px';
+ if (this.options.scaleX) d.left = -leftd + 'px';
+ }
+ }
+ this.element.setStyle(d);
+ }
+});
+
+Effect.Highlight = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
+ this.start(options);
+ },
+ setup: function() {
+ // Prevent executing on elements not in the layout flow
+ if (this.element.getStyle('display')=='none') { this.cancel(); return; }
+ // Disable background image during the effect
+ this.oldStyle = { };
+ if (!this.options.keepBackgroundImage) {
+ this.oldStyle.backgroundImage = this.element.getStyle('background-image');
+ this.element.setStyle({backgroundImage: 'none'});
+ }
+ if (!this.options.endcolor)
+ this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff');
+ if (!this.options.restorecolor)
+ this.options.restorecolor = this.element.getStyle('background-color');
+ // init color calculations
+ this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
+ this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
+ },
+ update: function(position) {
+ this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){
+ return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) });
+ },
+ finish: function() {
+ this.element.setStyle(Object.extend(this.oldStyle, {
+ backgroundColor: this.options.restorecolor
+ }));
+ }
+});
+
+Effect.ScrollTo = function(element) {
+ var options = arguments[1] || { },
+ scrollOffsets = document.viewport.getScrollOffsets(),
+ elementOffsets = $(element).cumulativeOffset(),
+ max = (window.height || document.body.scrollHeight) - document.viewport.getHeight();
+
+ if (options.offset) elementOffsets[1] += options.offset;
+
+ return new Effect.Tween(null,
+ scrollOffsets.top,
+ elementOffsets[1] > max ? max : elementOffsets[1],
+ options,
+ function(p){ scrollTo(scrollOffsets.left, p.round()) }
+ );
+};
+
+/* ------------- combination effects ------------- */
+
+Effect.Fade = function(element) {
+ element = $(element);
+ var oldOpacity = element.getInlineOpacity();
+ var options = Object.extend({
+ from: element.getOpacity() || 1.0,
+ to: 0.0,
+ afterFinishInternal: function(effect) {
+ if (effect.options.to!=0) return;
+ effect.element.hide().setStyle({opacity: oldOpacity});
+ }
+ }, arguments[1] || { });
+ return new Effect.Opacity(element,options);
+};
+
+Effect.Appear = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0),
+ to: 1.0,
+ // force Safari to render floated elements properly
+ afterFinishInternal: function(effect) {
+ effect.element.forceRerendering();
+ },
+ beforeSetup: function(effect) {
+ effect.element.setOpacity(effect.options.from).show();
+ }}, arguments[1] || { });
+ return new Effect.Opacity(element,options);
+};
+
+Effect.Puff = function(element) {
+ element = $(element);
+ var oldStyle = {
+ opacity: element.getInlineOpacity(),
+ position: element.getStyle('position'),
+ top: element.style.top,
+ left: element.style.left,
+ width: element.style.width,
+ height: element.style.height
+ };
+ return new Effect.Parallel(
+ [ new Effect.Scale(element, 200,
+ { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
+ new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
+ Object.extend({ duration: 1.0,
+ beforeSetupInternal: function(effect) {
+ Position.absolutize(effect.effects[0].element)
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().setStyle(oldStyle); }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.BlindUp = function(element) {
+ element = $(element);
+ element.makeClipping();
+ return new Effect.Scale(element, 0,
+ Object.extend({ scaleContent: false,
+ scaleX: false,
+ restoreAfterFinish: true,
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping();
+ }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.BlindDown = function(element) {
+ element = $(element);
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, 100, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ scaleFrom: 0,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makeClipping().setStyle({height: '0px'}).show();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.undoClipping();
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.SwitchOff = function(element) {
+ element = $(element);
+ var oldOpacity = element.getInlineOpacity();
+ return new Effect.Appear(element, Object.extend({
+ duration: 0.4,
+ from: 0,
+ transition: Effect.Transitions.flicker,
+ afterFinishInternal: function(effect) {
+ new Effect.Scale(effect.element, 1, {
+ duration: 0.3, scaleFromCenter: true,
+ scaleX: false, scaleContent: false, restoreAfterFinish: true,
+ beforeSetup: function(effect) {
+ effect.element.makePositioned().makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity});
+ }
+ })
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.DropOut = function(element) {
+ element = $(element);
+ var oldStyle = {
+ top: element.getStyle('top'),
+ left: element.getStyle('left'),
+ opacity: element.getInlineOpacity() };
+ return new Effect.Parallel(
+ [ new Effect.Move(element, {x: 0, y: 100, sync: true }),
+ new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
+ Object.extend(
+ { duration: 0.5,
+ beforeSetup: function(effect) {
+ effect.effects[0].element.makePositioned();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.Shake = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ distance: 20,
+ duration: 0.5
+ }, arguments[1] || {});
+ var distance = parseFloat(options.distance);
+ var split = parseFloat(options.duration) / 10.0;
+ var oldStyle = {
+ top: element.getStyle('top'),
+ left: element.getStyle('left') };
+ return new Effect.Move(element,
+ { x: distance, y: 0, duration: split, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) {
+ effect.element.undoPositioned().setStyle(oldStyle);
+ }}) }}) }}) }}) }}) }});
+};
+
+Effect.SlideDown = function(element) {
+ element = $(element).cleanWhitespace();
+ // SlideDown need to have the content of the element wrapped in a container element with fixed height!
+ var oldInnerBottom = element.down().getStyle('bottom');
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, 100, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ scaleFrom: window.opera ? 0 : 1,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makePositioned();
+ effect.element.down().makePositioned();
+ if (window.opera) effect.element.setStyle({top: ''});
+ effect.element.makeClipping().setStyle({height: '0px'}).show();
+ },
+ afterUpdateInternal: function(effect) {
+ effect.element.down().setStyle({bottom:
+ (effect.dims[0] - effect.element.clientHeight) + 'px' });
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.undoClipping().undoPositioned();
+ effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.SlideUp = function(element) {
+ element = $(element).cleanWhitespace();
+ var oldInnerBottom = element.down().getStyle('bottom');
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, window.opera ? 0 : 1,
+ Object.extend({ scaleContent: false,
+ scaleX: false,
+ scaleMode: 'box',
+ scaleFrom: 100,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makePositioned();
+ effect.element.down().makePositioned();
+ if (window.opera) effect.element.setStyle({top: ''});
+ effect.element.makeClipping().show();
+ },
+ afterUpdateInternal: function(effect) {
+ effect.element.down().setStyle({bottom:
+ (effect.dims[0] - effect.element.clientHeight) + 'px' });
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().undoPositioned();
+ effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom});
+ }
+ }, arguments[1] || { })
+ );
+};
+
+// Bug in opera makes the TD containing this element expand for a instance after finish
+Effect.Squish = function(element) {
+ return new Effect.Scale(element, window.opera ? 1 : 0, {
+ restoreAfterFinish: true,
+ beforeSetup: function(effect) {
+ effect.element.makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping();
+ }
+ });
+};
+
+Effect.Grow = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ direction: 'center',
+ moveTransition: Effect.Transitions.sinoidal,
+ scaleTransition: Effect.Transitions.sinoidal,
+ opacityTransition: Effect.Transitions.full
+ }, arguments[1] || { });
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ height: element.style.height,
+ width: element.style.width,
+ opacity: element.getInlineOpacity() };
+
+ var dims = element.getDimensions();
+ var initialMoveX, initialMoveY;
+ var moveX, moveY;
+
+ switch (options.direction) {
+ case 'top-left':
+ initialMoveX = initialMoveY = moveX = moveY = 0;
+ break;
+ case 'top-right':
+ initialMoveX = dims.width;
+ initialMoveY = moveY = 0;
+ moveX = -dims.width;
+ break;
+ case 'bottom-left':
+ initialMoveX = moveX = 0;
+ initialMoveY = dims.height;
+ moveY = -dims.height;
+ break;
+ case 'bottom-right':
+ initialMoveX = dims.width;
+ initialMoveY = dims.height;
+ moveX = -dims.width;
+ moveY = -dims.height;
+ break;
+ case 'center':
+ initialMoveX = dims.width / 2;
+ initialMoveY = dims.height / 2;
+ moveX = -dims.width / 2;
+ moveY = -dims.height / 2;
+ break;
+ }
+
+ return new Effect.Move(element, {
+ x: initialMoveX,
+ y: initialMoveY,
+ duration: 0.01,
+ beforeSetup: function(effect) {
+ effect.element.hide().makeClipping().makePositioned();
+ },
+ afterFinishInternal: function(effect) {
+ new Effect.Parallel(
+ [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
+ new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
+ new Effect.Scale(effect.element, 100, {
+ scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
+ sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
+ ], Object.extend({
+ beforeSetup: function(effect) {
+ effect.effects[0].element.setStyle({height: '0px'}).show();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
+ }
+ }, options)
+ )
+ }
+ });
+};
+
+Effect.Shrink = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ direction: 'center',
+ moveTransition: Effect.Transitions.sinoidal,
+ scaleTransition: Effect.Transitions.sinoidal,
+ opacityTransition: Effect.Transitions.none
+ }, arguments[1] || { });
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ height: element.style.height,
+ width: element.style.width,
+ opacity: element.getInlineOpacity() };
+
+ var dims = element.getDimensions();
+ var moveX, moveY;
+
+ switch (options.direction) {
+ case 'top-left':
+ moveX = moveY = 0;
+ break;
+ case 'top-right':
+ moveX = dims.width;
+ moveY = 0;
+ break;
+ case 'bottom-left':
+ moveX = 0;
+ moveY = dims.height;
+ break;
+ case 'bottom-right':
+ moveX = dims.width;
+ moveY = dims.height;
+ break;
+ case 'center':
+ moveX = dims.width / 2;
+ moveY = dims.height / 2;
+ break;
+ }
+
+ return new Effect.Parallel(
+ [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
+ new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
+ new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
+ ], Object.extend({
+ beforeStartInternal: function(effect) {
+ effect.effects[0].element.makePositioned().makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); }
+ }, options)
+ );
+};
+
+Effect.Pulsate = function(element) {
+ element = $(element);
+ var options = arguments[1] || { };
+ var oldOpacity = element.getInlineOpacity();
+ var transition = options.transition || Effect.Transitions.sinoidal;
+ var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) };
+ reverser.bind(transition);
+ return new Effect.Opacity(element,
+ Object.extend(Object.extend({ duration: 2.0, from: 0,
+ afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
+ }, options), {transition: reverser}));
+};
+
+Effect.Fold = function(element) {
+ element = $(element);
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ width: element.style.width,
+ height: element.style.height };
+ element.makeClipping();
+ return new Effect.Scale(element, 5, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ afterFinishInternal: function(effect) {
+ new Effect.Scale(element, 1, {
+ scaleContent: false,
+ scaleY: false,
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().setStyle(oldStyle);
+ } });
+ }}, arguments[1] || { }));
+};
+
+Effect.Morph = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ style: { }
+ }, arguments[1] || { });
+
+ if (!Object.isString(options.style)) this.style = $H(options.style);
+ else {
+ if (options.style.include(':'))
+ this.style = options.style.parseStyle();
+ else {
+ this.element.addClassName(options.style);
+ this.style = $H(this.element.getStyles());
+ this.element.removeClassName(options.style);
+ var css = this.element.getStyles();
+ this.style = this.style.reject(function(style) {
+ return style.value == css[style.key];
+ });
+ options.afterFinishInternal = function(effect) {
+ effect.element.addClassName(effect.options.style);
+ effect.transforms.each(function(transform) {
+ effect.element.style[transform.style] = '';
+ });
+ }
+ }
+ }
+ this.start(options);
+ },
+
+ setup: function(){
+ function parseColor(color){
+ if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
+ color = color.parseColor();
+ return $R(0,2).map(function(i){
+ return parseInt( color.slice(i*2+1,i*2+3), 16 )
+ });
+ }
+ this.transforms = this.style.map(function(pair){
+ var property = pair[0], value = pair[1], unit = null;
+
+ if (value.parseColor('#zzzzzz') != '#zzzzzz') {
+ value = value.parseColor();
+ unit = 'color';
+ } else if (property == 'opacity') {
+ value = parseFloat(value);
+ if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
+ this.element.setStyle({zoom: 1});
+ } else if (Element.CSS_LENGTH.test(value)) {
+ var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/);
+ value = parseFloat(components[1]);
+ unit = (components.length == 3) ? components[2] : null;
+ }
+
+ var originalValue = this.element.getStyle(property);
+ return {
+ style: property.camelize(),
+ originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
+ targetValue: unit=='color' ? parseColor(value) : value,
+ unit: unit
+ };
+ }.bind(this)).reject(function(transform){
+ return (
+ (transform.originalValue == transform.targetValue) ||
+ (
+ transform.unit != 'color' &&
+ (isNaN(transform.originalValue) || isNaN(transform.targetValue))
+ )
+ )
+ });
+ },
+ update: function(position) {
+ var style = { }, transform, i = this.transforms.length;
+ while(i--)
+ style[(transform = this.transforms[i]).style] =
+ transform.unit=='color' ? '#'+
+ (Math.round(transform.originalValue[0]+
+ (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() +
+ (Math.round(transform.originalValue[1]+
+ (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() +
+ (Math.round(transform.originalValue[2]+
+ (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() :
+ (transform.originalValue +
+ (transform.targetValue - transform.originalValue) * position).toFixed(3) +
+ (transform.unit === null ? '' : transform.unit);
+ this.element.setStyle(style, true);
+ }
+});
+
+Effect.Transform = Class.create({
+ initialize: function(tracks){
+ this.tracks = [];
+ this.options = arguments[1] || { };
+ this.addTracks(tracks);
+ },
+ addTracks: function(tracks){
+ tracks.each(function(track){
+ track = $H(track);
+ var data = track.values().first();
+ this.tracks.push($H({
+ ids: track.keys().first(),
+ effect: Effect.Morph,
+ options: { style: data }
+ }));
+ }.bind(this));
+ return this;
+ },
+ play: function(){
+ return new Effect.Parallel(
+ this.tracks.map(function(track){
+ var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options');
+ var elements = [$(ids) || $$(ids)].flatten();
+ return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) });
+ }).flatten(),
+ this.options
+ );
+ }
+});
+
+Element.CSS_PROPERTIES = $w(
+ 'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
+ 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
+ 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
+ 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
+ 'fontSize fontWeight height left letterSpacing lineHeight ' +
+ 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+
+ 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
+ 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
+ 'right textIndent top width wordSpacing zIndex');
+
+Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;
+
+String.__parseStyleElement = document.createElement('div');
+String.prototype.parseStyle = function(){
+ var style, styleRules = $H();
+ if (Prototype.Browser.WebKit)
+ style = new Element('div',{style:this}).style;
+ else {
+ String.__parseStyleElement.innerHTML = '
';
+ style = String.__parseStyleElement.childNodes[0].style;
+ }
+
+ Element.CSS_PROPERTIES.each(function(property){
+ if (style[property]) styleRules.set(property, style[property]);
+ });
+
+ if (Prototype.Browser.IE && this.include('opacity'))
+ styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);
+
+ return styleRules;
+};
+
+if (document.defaultView && document.defaultView.getComputedStyle) {
+ Element.getStyles = function(element) {
+ var css = document.defaultView.getComputedStyle($(element), null);
+ return Element.CSS_PROPERTIES.inject({ }, function(styles, property) {
+ styles[property] = css[property];
+ return styles;
+ });
+ };
+} else {
+ Element.getStyles = function(element) {
+ element = $(element);
+ var css = element.currentStyle, styles;
+ styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) {
+ results[property] = css[property];
+ return results;
+ });
+ if (!styles.opacity) styles.opacity = element.getOpacity();
+ return styles;
+ };
+};
+
+Effect.Methods = {
+ morph: function(element, style) {
+ element = $(element);
+ new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
+ return element;
+ },
+ visualEffect: function(element, effect, options) {
+ element = $(element)
+ var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
+ new Effect[klass](element, options);
+ return element;
+ },
+ highlight: function(element, options) {
+ element = $(element);
+ new Effect.Highlight(element, options);
+ return element;
+ }
+};
+
+$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
+ 'pulsate shake puff squish switchOff dropOut').each(
+ function(effect) {
+ Effect.Methods[effect] = function(element, options){
+ element = $(element);
+ Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
+ return element;
+ }
+ }
+);
+
+$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
+ function(f) { Effect.Methods[f] = Element[f]; }
+);
+
+Element.addMethods(Effect.Methods);
diff --git a/webroot/js/.svn/text-base/prototype-1.6.0.3.js.svn-base b/webroot/js/.svn/text-base/prototype-1.6.0.3.js.svn-base
new file mode 100644
index 00000000..5753df9c
Binary files /dev/null and b/webroot/js/.svn/text-base/prototype-1.6.0.3.js.svn-base differ
diff --git a/webroot/js/.svn/text-base/prototype.js.svn-base b/webroot/js/.svn/text-base/prototype.js.svn-base
new file mode 100644
index 00000000..8613914b
--- /dev/null
+++ b/webroot/js/.svn/text-base/prototype.js.svn-base
@@ -0,0 +1,4170 @@
+/* Prototype JavaScript framework, version 1.6.0.1
+ * (c) 2005-2007 Sam Stephenson
+ *
+ * Prototype is freely distributable under the terms of an MIT-style license.
+ * For details, see the Prototype web site: http://www.prototypejs.org/
+ *
+ *--------------------------------------------------------------------------*/
+
+var Prototype = {
+ Version: '1.6.0.1',
+
+ Browser: {
+ IE: !!(window.attachEvent && !window.opera),
+ Opera: !!window.opera,
+ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
+ Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
+ MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
+ },
+
+ BrowserFeatures: {
+ XPath: !!document.evaluate,
+ ElementExtensions: !!window.HTMLElement,
+ SpecificElementExtensions:
+ document.createElement('div').__proto__ &&
+ document.createElement('div').__proto__ !==
+ document.createElement('form').__proto__
+ },
+
+ ScriptFragment: '