svnno****@sourc*****
svnno****@sourc*****
2012年 6月 16日 (土) 23:55:36 JST
Revision: 133
http://sourceforge.jp/projects/smartupload/scm/svn/commits/133
Author: hryksbt
Date: 2012-06-16 23:55:36 +0900 (Sat, 16 Jun 2012)
Log Message:
-----------
ViewとControllerをbakeで生成
Modified Paths:
--------------
trunk/src/Engine/app/config/core.php
Added Paths:
-----------
trunk/src/Engine/app/controllers/attributes_controller.php
trunk/src/Engine/app/controllers/banks_controller.php
trunk/src/Engine/app/controllers/branches_controller.php
trunk/src/Engine/app/controllers/categories_controller.php
trunk/src/Engine/app/controllers/contents_controller.php
trunk/src/Engine/app/controllers/countries_controller.php
trunk/src/Engine/app/controllers/credits_controller.php
trunk/src/Engine/app/controllers/user_modifies_controller.php
trunk/src/Engine/app/controllers/users_controller.php
trunk/src/Engine/app/tests/cases/controllers/attributes_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/banks_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/branches_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/categories_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/contents_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/countries_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/credits_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/user_modifies_controller.test.php
trunk/src/Engine/app/tests/cases/controllers/users_controller.test.php
trunk/src/Engine/app/views/attributes/
trunk/src/Engine/app/views/attributes/add.ctp
trunk/src/Engine/app/views/attributes/admin_add.ctp
trunk/src/Engine/app/views/attributes/admin_edit.ctp
trunk/src/Engine/app/views/attributes/admin_index.ctp
trunk/src/Engine/app/views/attributes/admin_view.ctp
trunk/src/Engine/app/views/attributes/edit.ctp
trunk/src/Engine/app/views/attributes/index.ctp
trunk/src/Engine/app/views/attributes/view.ctp
trunk/src/Engine/app/views/banks/
trunk/src/Engine/app/views/banks/add.ctp
trunk/src/Engine/app/views/banks/admin_add.ctp
trunk/src/Engine/app/views/banks/admin_edit.ctp
trunk/src/Engine/app/views/banks/admin_index.ctp
trunk/src/Engine/app/views/banks/admin_view.ctp
trunk/src/Engine/app/views/banks/edit.ctp
trunk/src/Engine/app/views/banks/index.ctp
trunk/src/Engine/app/views/banks/view.ctp
trunk/src/Engine/app/views/branches/
trunk/src/Engine/app/views/branches/add.ctp
trunk/src/Engine/app/views/branches/admin_add.ctp
trunk/src/Engine/app/views/branches/admin_edit.ctp
trunk/src/Engine/app/views/branches/admin_index.ctp
trunk/src/Engine/app/views/branches/admin_view.ctp
trunk/src/Engine/app/views/branches/edit.ctp
trunk/src/Engine/app/views/branches/index.ctp
trunk/src/Engine/app/views/branches/view.ctp
trunk/src/Engine/app/views/categories/
trunk/src/Engine/app/views/categories/add.ctp
trunk/src/Engine/app/views/categories/admin_add.ctp
trunk/src/Engine/app/views/categories/admin_edit.ctp
trunk/src/Engine/app/views/categories/admin_index.ctp
trunk/src/Engine/app/views/categories/admin_view.ctp
trunk/src/Engine/app/views/categories/edit.ctp
trunk/src/Engine/app/views/categories/index.ctp
trunk/src/Engine/app/views/categories/view.ctp
trunk/src/Engine/app/views/contents/
trunk/src/Engine/app/views/contents/add.ctp
trunk/src/Engine/app/views/contents/admin_add.ctp
trunk/src/Engine/app/views/contents/admin_edit.ctp
trunk/src/Engine/app/views/contents/admin_index.ctp
trunk/src/Engine/app/views/contents/admin_view.ctp
trunk/src/Engine/app/views/contents/edit.ctp
trunk/src/Engine/app/views/contents/index.ctp
trunk/src/Engine/app/views/contents/view.ctp
trunk/src/Engine/app/views/countries/
trunk/src/Engine/app/views/countries/add.ctp
trunk/src/Engine/app/views/countries/admin_add.ctp
trunk/src/Engine/app/views/countries/admin_edit.ctp
trunk/src/Engine/app/views/countries/admin_index.ctp
trunk/src/Engine/app/views/countries/admin_view.ctp
trunk/src/Engine/app/views/countries/edit.ctp
trunk/src/Engine/app/views/countries/index.ctp
trunk/src/Engine/app/views/countries/view.ctp
trunk/src/Engine/app/views/credits/
trunk/src/Engine/app/views/credits/add.ctp
trunk/src/Engine/app/views/credits/admin_add.ctp
trunk/src/Engine/app/views/credits/admin_edit.ctp
trunk/src/Engine/app/views/credits/admin_index.ctp
trunk/src/Engine/app/views/credits/admin_view.ctp
trunk/src/Engine/app/views/credits/edit.ctp
trunk/src/Engine/app/views/credits/index.ctp
trunk/src/Engine/app/views/credits/view.ctp
trunk/src/Engine/app/views/user_modifies/
trunk/src/Engine/app/views/user_modifies/add.ctp
trunk/src/Engine/app/views/user_modifies/admin_add.ctp
trunk/src/Engine/app/views/user_modifies/admin_edit.ctp
trunk/src/Engine/app/views/user_modifies/admin_index.ctp
trunk/src/Engine/app/views/user_modifies/admin_view.ctp
trunk/src/Engine/app/views/user_modifies/edit.ctp
trunk/src/Engine/app/views/user_modifies/index.ctp
trunk/src/Engine/app/views/user_modifies/view.ctp
trunk/src/Engine/app/views/users/
trunk/src/Engine/app/views/users/add.ctp
trunk/src/Engine/app/views/users/admin_add.ctp
trunk/src/Engine/app/views/users/admin_edit.ctp
trunk/src/Engine/app/views/users/admin_index.ctp
trunk/src/Engine/app/views/users/admin_view.ctp
trunk/src/Engine/app/views/users/edit.ctp
trunk/src/Engine/app/views/users/index.ctp
trunk/src/Engine/app/views/users/view.ctp
-------------- next part --------------
Modified: trunk/src/Engine/app/config/core.php
===================================================================
--- trunk/src/Engine/app/config/core.php 2012-06-16 14:35:15 UTC (rev 132)
+++ trunk/src/Engine/app/config/core.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -85,7 +85,7 @@
*
* [Note Routing.admin is deprecated in 1.3. Use Routing.prefixes instead]
*/
- //Configure::write('Routing.prefixes', array('admin'));
+ Configure::write('Routing.prefixes', array('admin'));
/**
* Turn off all caching application-wide.
Added: trunk/src/Engine/app/controllers/attributes_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/attributes_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/attributes_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,124 @@
+<?php
+class AttributesController extends AppController {
+
+ var $name = 'Attributes';
+
+ function index() {
+ $this->Attribute->recursive = 0;
+ $this->set('attributes', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid attribute', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('attribute', $this->Attribute->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Attribute->create();
+ if ($this->Attribute->save($this->data)) {
+ $this->Session->setFlash(__('The attribute has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The attribute could not be saved. Please, try again.', true));
+ }
+ }
+ $users = $this->Attribute->User->find('list');
+ $this->set(compact('users'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid attribute', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Attribute->save($this->data)) {
+ $this->Session->setFlash(__('The attribute has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The attribute could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Attribute->read(null, $id);
+ }
+ $users = $this->Attribute->User->find('list');
+ $this->set(compact('users'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for attribute', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Attribute->delete($id)) {
+ $this->Session->setFlash(__('Attribute deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Attribute was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Attribute->recursive = 0;
+ $this->set('attributes', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid attribute', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('attribute', $this->Attribute->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Attribute->create();
+ if ($this->Attribute->save($this->data)) {
+ $this->Session->setFlash(__('The attribute has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The attribute could not be saved. Please, try again.', true));
+ }
+ }
+ $users = $this->Attribute->User->find('list');
+ $this->set(compact('users'));
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid attribute', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Attribute->save($this->data)) {
+ $this->Session->setFlash(__('The attribute has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The attribute could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Attribute->read(null, $id);
+ }
+ $users = $this->Attribute->User->find('list');
+ $this->set(compact('users'));
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for attribute', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Attribute->delete($id)) {
+ $this->Session->setFlash(__('Attribute deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Attribute was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/banks_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/banks_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/banks_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,124 @@
+<?php
+class BanksController extends AppController {
+
+ var $name = 'Banks';
+
+ function index() {
+ $this->Bank->recursive = 0;
+ $this->set('banks', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid bank', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('bank', $this->Bank->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Bank->create();
+ if ($this->Bank->save($this->data)) {
+ $this->Session->setFlash(__('The bank has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The bank could not be saved. Please, try again.', true));
+ }
+ }
+ $branches = $this->Bank->Branch->find('list');
+ $this->set(compact('branches'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid bank', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Bank->save($this->data)) {
+ $this->Session->setFlash(__('The bank has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The bank could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Bank->read(null, $id);
+ }
+ $branches = $this->Bank->Branch->find('list');
+ $this->set(compact('branches'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for bank', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Bank->delete($id)) {
+ $this->Session->setFlash(__('Bank deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Bank was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Bank->recursive = 0;
+ $this->set('banks', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid bank', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('bank', $this->Bank->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Bank->create();
+ if ($this->Bank->save($this->data)) {
+ $this->Session->setFlash(__('The bank has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The bank could not be saved. Please, try again.', true));
+ }
+ }
+ $branches = $this->Bank->Branch->find('list');
+ $this->set(compact('branches'));
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid bank', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Bank->save($this->data)) {
+ $this->Session->setFlash(__('The bank has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The bank could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Bank->read(null, $id);
+ }
+ $branches = $this->Bank->Branch->find('list');
+ $this->set(compact('branches'));
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for bank', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Bank->delete($id)) {
+ $this->Session->setFlash(__('Bank deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Bank was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/branches_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/branches_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/branches_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<?php
+class BranchesController extends AppController {
+
+ var $name = 'Branches';
+
+ function index() {
+ $this->Branch->recursive = 0;
+ $this->set('branches', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid branch', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('branch', $this->Branch->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Branch->create();
+ if ($this->Branch->save($this->data)) {
+ $this->Session->setFlash(__('The branch has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The branch could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid branch', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Branch->save($this->data)) {
+ $this->Session->setFlash(__('The branch has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The branch could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Branch->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for branch', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Branch->delete($id)) {
+ $this->Session->setFlash(__('Branch deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Branch was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Branch->recursive = 0;
+ $this->set('branches', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid branch', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('branch', $this->Branch->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Branch->create();
+ if ($this->Branch->save($this->data)) {
+ $this->Session->setFlash(__('The branch has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The branch could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid branch', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Branch->save($this->data)) {
+ $this->Session->setFlash(__('The branch has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The branch could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Branch->read(null, $id);
+ }
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for branch', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Branch->delete($id)) {
+ $this->Session->setFlash(__('Branch deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Branch was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/categories_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/categories_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/categories_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<?php
+class CategoriesController extends AppController {
+
+ var $name = 'Categories';
+
+ function index() {
+ $this->Category->recursive = 0;
+ $this->set('categories', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid category', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('category', $this->Category->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Category->create();
+ if ($this->Category->save($this->data)) {
+ $this->Session->setFlash(__('The category has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The category could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid category', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Category->save($this->data)) {
+ $this->Session->setFlash(__('The category has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The category could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Category->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for category', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Category->delete($id)) {
+ $this->Session->setFlash(__('Category deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Category was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Category->recursive = 0;
+ $this->set('categories', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid category', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('category', $this->Category->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Category->create();
+ if ($this->Category->save($this->data)) {
+ $this->Session->setFlash(__('The category has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The category could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid category', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Category->save($this->data)) {
+ $this->Session->setFlash(__('The category has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The category could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Category->read(null, $id);
+ }
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for category', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Category->delete($id)) {
+ $this->Session->setFlash(__('Category deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Category was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/contents_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/contents_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/contents_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,128 @@
+<?php
+class ContentsController extends AppController {
+
+ var $name = 'Contents';
+
+ function index() {
+ $this->Content->recursive = 0;
+ $this->set('contents', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid content', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('content', $this->Content->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Content->create();
+ if ($this->Content->save($this->data)) {
+ $this->Session->setFlash(__('The content has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The content could not be saved. Please, try again.', true));
+ }
+ }
+ $categories = $this->Content->Category->find('list');
+ $users = $this->Content->User->find('list');
+ $this->set(compact('categories', 'users'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid content', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Content->save($this->data)) {
+ $this->Session->setFlash(__('The content has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The content could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Content->read(null, $id);
+ }
+ $categories = $this->Content->Category->find('list');
+ $users = $this->Content->User->find('list');
+ $this->set(compact('categories', 'users'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for content', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Content->delete($id)) {
+ $this->Session->setFlash(__('Content deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Content was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Content->recursive = 0;
+ $this->set('contents', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid content', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('content', $this->Content->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Content->create();
+ if ($this->Content->save($this->data)) {
+ $this->Session->setFlash(__('The content has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The content could not be saved. Please, try again.', true));
+ }
+ }
+ $categories = $this->Content->Category->find('list');
+ $users = $this->Content->User->find('list');
+ $this->set(compact('categories', 'users'));
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid content', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Content->save($this->data)) {
+ $this->Session->setFlash(__('The content has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The content could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Content->read(null, $id);
+ }
+ $categories = $this->Content->Category->find('list');
+ $users = $this->Content->User->find('list');
+ $this->set(compact('categories', 'users'));
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for content', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Content->delete($id)) {
+ $this->Session->setFlash(__('Content deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Content was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/countries_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/countries_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/countries_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<?php
+class CountriesController extends AppController {
+
+ var $name = 'Countries';
+
+ function index() {
+ $this->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() {
+ 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->delete($id)) {
+ $this->Session->setFlash(__('Country deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Country was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Country->recursive = 0;
+ $this->set('countries', $this->paginate());
+ }
+
+ function admin_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 admin_add() {
+ 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 admin_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 admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for country', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Country->delete($id)) {
+ $this->Session->setFlash(__('Country deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Country was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/credits_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/credits_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/credits_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<?php
+class CreditsController extends AppController {
+
+ var $name = 'Credits';
+
+ function index() {
+ $this->Credit->recursive = 0;
+ $this->set('credits', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid credit', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('credit', $this->Credit->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->Credit->create();
+ if ($this->Credit->save($this->data)) {
+ $this->Session->setFlash(__('The credit has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The credit could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid credit', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Credit->save($this->data)) {
+ $this->Session->setFlash(__('The credit has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The credit could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Credit->read(null, $id);
+ }
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for credit', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Credit->delete($id)) {
+ $this->Session->setFlash(__('Credit deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Credit was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->Credit->recursive = 0;
+ $this->set('credits', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid credit', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('credit', $this->Credit->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->Credit->create();
+ if ($this->Credit->save($this->data)) {
+ $this->Session->setFlash(__('The credit has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The credit could not be saved. Please, try again.', true));
+ }
+ }
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid credit', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->Credit->save($this->data)) {
+ $this->Session->setFlash(__('The credit has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The credit could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->Credit->read(null, $id);
+ }
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for credit', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->Credit->delete($id)) {
+ $this->Session->setFlash(__('Credit deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('Credit was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/user_modifies_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/user_modifies_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/user_modifies_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,132 @@
+<?php
+class UserModifiesController extends AppController {
+
+ var $name = 'UserModifies';
+
+ function index() {
+ $this->UserModify->recursive = 0;
+ $this->set('userModifies', $this->paginate());
+ }
+
+ function view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid user modify', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('userModify', $this->UserModify->read(null, $id));
+ }
+
+ function add() {
+ if (!empty($this->data)) {
+ $this->UserModify->create();
+ if ($this->UserModify->save($this->data)) {
+ $this->Session->setFlash(__('The user modify has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The user modify could not be saved. Please, try again.', true));
+ }
+ }
+ $users = $this->UserModify->User->find('list');
+ $countries = $this->UserModify->Country->find('list');
+ $credits = $this->UserModify->Credit->find('list');
+ $this->set(compact('users', 'countries', 'credits'));
+ }
+
+ function edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid user modify', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->UserModify->save($this->data)) {
+ $this->Session->setFlash(__('The user modify has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The user modify could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->UserModify->read(null, $id);
+ }
+ $users = $this->UserModify->User->find('list');
+ $countries = $this->UserModify->Country->find('list');
+ $credits = $this->UserModify->Credit->find('list');
+ $this->set(compact('users', 'countries', 'credits'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for user modify', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->UserModify->delete($id)) {
+ $this->Session->setFlash(__('User modify deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('User modify was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->UserModify->recursive = 0;
+ $this->set('userModifies', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid user modify', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('userModify', $this->UserModify->read(null, $id));
+ }
+
+ function admin_add() {
+ if (!empty($this->data)) {
+ $this->UserModify->create();
+ if ($this->UserModify->save($this->data)) {
+ $this->Session->setFlash(__('The user modify has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The user modify could not be saved. Please, try again.', true));
+ }
+ }
+ $users = $this->UserModify->User->find('list');
+ $countries = $this->UserModify->Country->find('list');
+ $credits = $this->UserModify->Credit->find('list');
+ $this->set(compact('users', 'countries', 'credits'));
+ }
+
+ function admin_edit($id = null) {
+ if (!$id && empty($this->data)) {
+ $this->Session->setFlash(__('Invalid user modify', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ if (!empty($this->data)) {
+ if ($this->UserModify->save($this->data)) {
+ $this->Session->setFlash(__('The user modify has been saved', true));
+ $this->redirect(array('action' => 'index'));
+ } else {
+ $this->Session->setFlash(__('The user modify could not be saved. Please, try again.', true));
+ }
+ }
+ if (empty($this->data)) {
+ $this->data = $this->UserModify->read(null, $id);
+ }
+ $users = $this->UserModify->User->find('list');
+ $countries = $this->UserModify->Country->find('list');
+ $credits = $this->UserModify->Credit->find('list');
+ $this->set(compact('users', 'countries', 'credits'));
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for user modify', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->UserModify->delete($id)) {
+ $this->Session->setFlash(__('User modify deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('User modify was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/controllers/users_controller.php
===================================================================
--- trunk/src/Engine/app/controllers/users_controller.php (rev 0)
+++ trunk/src/Engine/app/controllers/users_controller.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,132 @@
+<?php
+class UsersController extends AppController {
+
+ var $name = 'Users';
+
+ 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));
+ }
+
+ function add() {
+ 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));
+ }
+ }
+ $countries = $this->User->Country->find('list');
+ $credits = $this->User->Credit->find('list');
+ $banks = $this->User->Bank->find('list');
+ $this->set(compact('countries', 'credits', 'banks'));
+ }
+
+ 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);
+ }
+ $countries = $this->User->Country->find('list');
+ $credits = $this->User->Credit->find('list');
+ $banks = $this->User->Bank->find('list');
+ $this->set(compact('countries', 'credits', 'banks'));
+ }
+
+ function delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for user', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->User->delete($id)) {
+ $this->Session->setFlash(__('User deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('User was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ function admin_index() {
+ $this->User->recursive = 0;
+ $this->set('users', $this->paginate());
+ }
+
+ function admin_view($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid user', true));
+ $this->redirect(array('action' => 'index'));
+ }
+ $this->set('user', $this->User->read(null, $id));
+ }
+
+ function admin_add() {
+ 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));
+ }
+ }
+ $countries = $this->User->Country->find('list');
+ $credits = $this->User->Credit->find('list');
+ $banks = $this->User->Bank->find('list');
+ $this->set(compact('countries', 'credits', 'banks'));
+ }
+
+ function admin_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);
+ }
+ $countries = $this->User->Country->find('list');
+ $credits = $this->User->Credit->find('list');
+ $banks = $this->User->Bank->find('list');
+ $this->set(compact('countries', 'credits', 'banks'));
+ }
+
+ function admin_delete($id = null) {
+ if (!$id) {
+ $this->Session->setFlash(__('Invalid id for user', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ if ($this->User->delete($id)) {
+ $this->Session->setFlash(__('User deleted', true));
+ $this->redirect(array('action'=>'index'));
+ }
+ $this->Session->setFlash(__('User was not deleted', true));
+ $this->redirect(array('action' => 'index'));
+ }
+}
Added: trunk/src/Engine/app/tests/cases/controllers/attributes_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/attributes_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/attributes_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,26 @@
+<?php
+/* Attributes Test cases generated on: 2012-06-16 16:52:36 : 1339858356*/
+App::import('Controller', 'Attributes');
+
+class TestAttributesController extends AttributesController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class AttributesControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.attribute', 'app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.bank', 'app.branch', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Attributes =& new TestAttributesController();
+ $this->Attributes->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Attributes);
+ ClassRegistry::flush();
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/banks_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/banks_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/banks_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Banks Test cases generated on: 2012-06-16 16:54:56 : 1339858496*/
+App::import('Controller', 'Banks');
+
+class TestBanksController extends BanksController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class BanksControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.bank', 'app.branch', 'app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Banks =& new TestBanksController();
+ $this->Banks->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Banks);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/branches_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/branches_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/branches_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Branches Test cases generated on: 2012-06-16 16:55:15 : 1339858515*/
+App::import('Controller', 'Branches');
+
+class TestBranchesController extends BranchesController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class BranchesControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.branch', 'app.bank', 'app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Branches =& new TestBranchesController();
+ $this->Branches->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Branches);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/categories_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/categories_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/categories_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Categories Test cases generated on: 2012-06-16 16:55:30 : 1339858530*/
+App::import('Controller', 'Categories');
+
+class TestCategoriesController extends CategoriesController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class CategoriesControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.category', 'app.content', 'app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.bank', 'app.branch', 'app.attribute');
+
+ function startTest() {
+ $this->Categories =& new TestCategoriesController();
+ $this->Categories->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Categories);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/contents_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/contents_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/contents_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Contents Test cases generated on: 2012-06-16 16:55:44 : 1339858544*/
+App::import('Controller', 'Contents');
+
+class TestContentsController extends ContentsController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class ContentsControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.content', 'app.category', 'app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.bank', 'app.branch', 'app.attribute');
+
+ function startTest() {
+ $this->Contents =& new TestContentsController();
+ $this->Contents->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Contents);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/countries_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/countries_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/countries_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Countries Test cases generated on: 2012-06-16 16:55:53 : 1339858553*/
+App::import('Controller', 'Countries');
+
+class TestCountriesController extends CountriesController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class CountriesControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.country', 'app.user_modify', 'app.user', 'app.credit', 'app.bank', 'app.branch', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Countries =& new TestCountriesController();
+ $this->Countries->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Countries);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/credits_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/credits_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/credits_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Credits Test cases generated on: 2012-06-16 16:56:01 : 1339858561*/
+App::import('Controller', 'Credits');
+
+class TestCreditsController extends CreditsController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class CreditsControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.credit', 'app.user_modify', 'app.user', 'app.country', 'app.bank', 'app.branch', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Credits =& new TestCreditsController();
+ $this->Credits->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Credits);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/user_modifies_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/user_modifies_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/user_modifies_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* UserModifies Test cases generated on: 2012-06-16 16:56:22 : 1339858582*/
+App::import('Controller', 'UserModifies');
+
+class TestUserModifiesController extends UserModifiesController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class UserModifiesControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.user_modify', 'app.user', 'app.country', 'app.credit', 'app.bank', 'app.branch', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->UserModifies =& new TestUserModifiesController();
+ $this->UserModifies->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->UserModifies);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/tests/cases/controllers/users_controller.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/controllers/users_controller.test.php (rev 0)
+++ trunk/src/Engine/app/tests/cases/controllers/users_controller.test.php 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,66 @@
+<?php
+/* Users Test cases generated on: 2012-06-16 16:56:31 : 1339858591*/
+App::import('Controller', 'Users');
+
+class TestUsersController extends UsersController {
+ var $autoRender = false;
+
+ function redirect($url, $status = null, $exit = true) {
+ $this->redirectUrl = $url;
+ }
+}
+
+class UsersControllerTestCase extends CakeTestCase {
+ var $fixtures = array('app.user', 'app.country', 'app.user_modify', 'app.credit', 'app.bank', 'app.branch', 'app.attribute', 'app.content', 'app.category');
+
+ function startTest() {
+ $this->Users =& new TestUsersController();
+ $this->Users->constructClasses();
+ }
+
+ function endTest() {
+ unset($this->Users);
+ ClassRegistry::flush();
+ }
+
+ function testIndex() {
+
+ }
+
+ function testView() {
+
+ }
+
+ function testAdd() {
+
+ }
+
+ function testEdit() {
+
+ }
+
+ function testDelete() {
+
+ }
+
+ function testAdminIndex() {
+
+ }
+
+ function testAdminView() {
+
+ }
+
+ function testAdminAdd() {
+
+ }
+
+ function testAdminEdit() {
+
+ }
+
+ function testAdminDelete() {
+
+ }
+
+}
Added: trunk/src/Engine/app/views/attributes/add.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,23 @@
+<div class="attributes form">
+<?php echo $this->Form->create('Attribute');?>
+ <fieldset>
+ <legend><?php __('Add Attribute'); ?></legend>
+ <?php
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('attribute');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,23 @@
+<div class="attributes form">
+<?php echo $this->Form->create('Attribute');?>
+ <fieldset>
+ <legend><?php __('Admin Add Attribute'); ?></legend>
+ <?php
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('attribute');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,25 @@
+<div class="attributes form">
+<?php echo $this->Form->create('Attribute');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Attribute'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('attribute');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Attribute.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Attribute.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,59 @@
+<div class="attributes index">
+ <h2><?php __('Attributes');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('attribute');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($attributes as $attribute):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $attribute['Attribute']['id']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($attribute['User']['name'], array('controller' => 'users', 'action' => 'view', $attribute['User']['id'])); ?>
+ </td>
+ <td><?php echo $attribute['Attribute']['attribute']; ?> </td>
+ <td><?php echo $attribute['Attribute']['delete_flag']; ?> </td>
+ <td><?php echo $attribute['Attribute']['regist_date']; ?> </td>
+ <td><?php echo $attribute['Attribute']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $attribute['Attribute']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $attribute['Attribute']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $attribute['Attribute']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['Attribute']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,46 @@
+<div class="attributes view">
+<h2><?php __('Attribute');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($attribute['User']['name'], array('controller' => 'users', 'action' => 'view', $attribute['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Attribute'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['attribute']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Attribute', true), array('action' => 'edit', $attribute['Attribute']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Attribute', true), array('action' => 'delete', $attribute['Attribute']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['Attribute']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/attributes/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,25 @@
+<div class="attributes form">
+<?php echo $this->Form->create('Attribute');?>
+ <fieldset>
+ <legend><?php __('Edit Attribute'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('attribute');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Attribute.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Attribute.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/index.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,59 @@
+<div class="attributes index">
+ <h2><?php __('Attributes');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('attribute');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($attributes as $attribute):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $attribute['Attribute']['id']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($attribute['User']['name'], array('controller' => 'users', 'action' => 'view', $attribute['User']['id'])); ?>
+ </td>
+ <td><?php echo $attribute['Attribute']['attribute']; ?> </td>
+ <td><?php echo $attribute['Attribute']['delete_flag']; ?> </td>
+ <td><?php echo $attribute['Attribute']['regist_date']; ?> </td>
+ <td><?php echo $attribute['Attribute']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $attribute['Attribute']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $attribute['Attribute']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $attribute['Attribute']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['Attribute']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/attributes/view.ctp
===================================================================
--- trunk/src/Engine/app/views/attributes/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/attributes/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,46 @@
+<div class="attributes view">
+<h2><?php __('Attribute');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($attribute['User']['name'], array('controller' => 'users', 'action' => 'view', $attribute['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Attribute'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['attribute']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $attribute['Attribute']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Attribute', true), array('action' => 'edit', $attribute['Attribute']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Attribute', true), array('action' => 'delete', $attribute['Attribute']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['Attribute']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/banks/add.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,25 @@
+<div class="banks form">
+<?php echo $this->Form->create('Bank');?>
+ <fieldset>
+ <legend><?php __('Add Bank'); ?></legend>
+ <?php
+ echo $this->Form->input('bank_name');
+ echo $this->Form->input('branch_id');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,25 @@
+<div class="banks form">
+<?php echo $this->Form->create('Bank');?>
+ <fieldset>
+ <legend><?php __('Admin Add Bank'); ?></legend>
+ <?php
+ echo $this->Form->input('bank_name');
+ echo $this->Form->input('branch_id');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,27 @@
+<div class="banks form">
+<?php echo $this->Form->create('Bank');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Bank'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('bank_name');
+ echo $this->Form->input('branch_id');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Bank.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Bank.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,61 @@
+<div class="banks index">
+ <h2><?php __('Banks');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_name');?></th>
+ <th><?php echo $this->Paginator->sort('branch_id');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($banks as $bank):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $bank['Bank']['id']; ?> </td>
+ <td><?php echo $bank['Bank']['bank_name']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($bank['Branch']['id'], array('controller' => 'branches', 'action' => 'view', $bank['Branch']['id'])); ?>
+ </td>
+ <td><?php echo $bank['Bank']['delete_flag']; ?> </td>
+ <td><?php echo $bank['Bank']['regist_date']; ?> </td>
+ <td><?php echo $bank['Bank']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $bank['Bank']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $bank['Bank']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $bank['Bank']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['Bank']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<div class="banks view">
+<h2><?php __('Bank');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['bank_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Branch'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($bank['Branch']['id'], array('controller' => 'branches', 'action' => 'view', $bank['Branch']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Bank', true), array('action' => 'edit', $bank['Bank']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Bank', true), array('action' => 'delete', $bank['Bank']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['Bank']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Users');?></h3>
+ <?php if (!empty($bank['User'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Account'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Campany'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Accounting Flag'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('Bank Id'); ?></th>
+ <th><?php __('Bank Account Number'); ?></th>
+ <th><?php __('Create Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th><?php __('Application Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($bank['User'] as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['id'];?></td>
+ <td><?php echo $user['account'];?></td>
+ <td><?php echo $user['password'];?></td>
+ <td><?php echo $user['name'];?></td>
+ <td><?php echo $user['address'];?></td>
+ <td><?php echo $user['campany'];?></td>
+ <td><?php echo $user['country_id'];?></td>
+ <td><?php echo $user['mail_address'];?></td>
+ <td><?php echo $user['delete_flag'];?></td>
+ <td><?php echo $user['accounting_flag'];?></td>
+ <td><?php echo $user['credit_number'];?></td>
+ <td><?php echo $user['credit_expire'];?></td>
+ <td><?php echo $user['credit_id'];?></td>
+ <td><?php echo $user['bank_id'];?></td>
+ <td><?php echo $user['bank_account_number'];?></td>
+ <td><?php echo $user['create_date'];?></td>
+ <td><?php echo $user['modify_date'];?></td>
+ <td><?php echo $user['application_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/banks/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,27 @@
+<div class="banks form">
+<?php echo $this->Form->create('Bank');?>
+ <fieldset>
+ <legend><?php __('Edit Bank'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('bank_name');
+ echo $this->Form->input('branch_id');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Bank.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Bank.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/index.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,61 @@
+<div class="banks index">
+ <h2><?php __('Banks');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_name');?></th>
+ <th><?php echo $this->Paginator->sort('branch_id');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($banks as $bank):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $bank['Bank']['id']; ?> </td>
+ <td><?php echo $bank['Bank']['bank_name']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($bank['Branch']['id'], array('controller' => 'branches', 'action' => 'view', $bank['Branch']['id'])); ?>
+ </td>
+ <td><?php echo $bank['Bank']['delete_flag']; ?> </td>
+ <td><?php echo $bank['Bank']['regist_date']; ?> </td>
+ <td><?php echo $bank['Bank']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $bank['Bank']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $bank['Bank']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $bank['Bank']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['Bank']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/banks/view.ctp
===================================================================
--- trunk/src/Engine/app/views/banks/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/banks/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,116 @@
+<div class="banks view">
+<h2><?php __('Bank');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['bank_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Branch'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($bank['Branch']['id'], array('controller' => 'branches', 'action' => 'view', $bank['Branch']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $bank['Bank']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Bank', true), array('action' => 'edit', $bank['Bank']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Bank', true), array('action' => 'delete', $bank['Bank']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['Bank']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Users');?></h3>
+ <?php if (!empty($bank['User'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Account'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Campany'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Accounting Flag'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('Bank Id'); ?></th>
+ <th><?php __('Bank Account Number'); ?></th>
+ <th><?php __('Create Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th><?php __('Application Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($bank['User'] as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['id'];?></td>
+ <td><?php echo $user['account'];?></td>
+ <td><?php echo $user['password'];?></td>
+ <td><?php echo $user['name'];?></td>
+ <td><?php echo $user['address'];?></td>
+ <td><?php echo $user['campany'];?></td>
+ <td><?php echo $user['country_id'];?></td>
+ <td><?php echo $user['mail_address'];?></td>
+ <td><?php echo $user['delete_flag'];?></td>
+ <td><?php echo $user['accounting_flag'];?></td>
+ <td><?php echo $user['credit_number'];?></td>
+ <td><?php echo $user['credit_expire'];?></td>
+ <td><?php echo $user['credit_id'];?></td>
+ <td><?php echo $user['bank_id'];?></td>
+ <td><?php echo $user['bank_account_number'];?></td>
+ <td><?php echo $user['create_date'];?></td>
+ <td><?php echo $user['modify_date'];?></td>
+ <td><?php echo $user['application_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/branches/add.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="branches form">
+<?php echo $this->Form->create('Branch');?>
+ <fieldset>
+ <legend><?php __('Add Branch'); ?></legend>
+ <?php
+ echo $this->Form->input('branch_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="branches form">
+<?php echo $this->Form->create('Branch');?>
+ <fieldset>
+ <legend><?php __('Admin Add Branch'); ?></legend>
+ <?php
+ echo $this->Form->input('branch_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="branches form">
+<?php echo $this->Form->create('Branch');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Branch'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('branch_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Branch.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Branch.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="branches index">
+ <h2><?php __('Branches');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('branch_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($branches as $branch):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $branch['Branch']['id']; ?> </td>
+ <td><?php echo $branch['Branch']['branch_name']; ?> </td>
+ <td><?php echo $branch['Branch']['delete_flag']; ?> </td>
+ <td><?php echo $branch['Branch']['regist_date']; ?> </td>
+ <td><?php echo $branch['Branch']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $branch['Branch']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $branch['Branch']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $branch['Branch']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $branch['Branch']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,85 @@
+<div class="branches view">
+<h2><?php __('Branch');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Branch Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['branch_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Branch', true), array('action' => 'edit', $branch['Branch']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Branch', true), array('action' => 'delete', $branch['Branch']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $branch['Branch']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Banks');?></h3>
+ <?php if (!empty($branch['Bank'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Bank Name'); ?></th>
+ <th><?php __('Branch Id'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($branch['Bank'] as $bank):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $bank['id'];?></td>
+ <td><?php echo $bank['bank_name'];?></td>
+ <td><?php echo $bank['branch_id'];?></td>
+ <td><?php echo $bank['delete_flag'];?></td>
+ <td><?php echo $bank['regist_date'];?></td>
+ <td><?php echo $bank['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'banks', 'action' => 'view', $bank['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'banks', 'action' => 'edit', $bank['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'banks', 'action' => 'delete', $bank['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/branches/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="branches form">
+<?php echo $this->Form->create('Branch');?>
+ <fieldset>
+ <legend><?php __('Edit Branch'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('branch_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Branch.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Branch.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/index.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="branches index">
+ <h2><?php __('Branches');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('branch_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($branches as $branch):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $branch['Branch']['id']; ?> </td>
+ <td><?php echo $branch['Branch']['branch_name']; ?> </td>
+ <td><?php echo $branch['Branch']['delete_flag']; ?> </td>
+ <td><?php echo $branch['Branch']['regist_date']; ?> </td>
+ <td><?php echo $branch['Branch']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $branch['Branch']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $branch['Branch']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $branch['Branch']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $branch['Branch']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/branches/view.ctp
===================================================================
--- trunk/src/Engine/app/views/branches/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/branches/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,85 @@
+<div class="branches view">
+<h2><?php __('Branch');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Branch Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['branch_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $branch['Branch']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Branch', true), array('action' => 'edit', $branch['Branch']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Branch', true), array('action' => 'delete', $branch['Branch']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $branch['Branch']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Branches', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Branch', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Banks');?></h3>
+ <?php if (!empty($branch['Bank'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Bank Name'); ?></th>
+ <th><?php __('Branch Id'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($branch['Bank'] as $bank):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $bank['id'];?></td>
+ <td><?php echo $bank['bank_name'];?></td>
+ <td><?php echo $bank['branch_id'];?></td>
+ <td><?php echo $bank['delete_flag'];?></td>
+ <td><?php echo $bank['regist_date'];?></td>
+ <td><?php echo $bank['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'banks', 'action' => 'view', $bank['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'banks', 'action' => 'edit', $bank['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'banks', 'action' => 'delete', $bank['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $bank['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/categories/add.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="categories form">
+<?php echo $this->Form->create('Category');?>
+ <fieldset>
+ <legend><?php __('Add Category'); ?></legend>
+ <?php
+ echo $this->Form->input('category_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="categories form">
+<?php echo $this->Form->create('Category');?>
+ <fieldset>
+ <legend><?php __('Admin Add Category'); ?></legend>
+ <?php
+ echo $this->Form->input('category_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="categories form">
+<?php echo $this->Form->create('Category');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Category'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('category_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Category.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Category.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="categories index">
+ <h2><?php __('Categories');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('category_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($categories as $category):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $category['Category']['id']; ?> </td>
+ <td><?php echo $category['Category']['category_name']; ?> </td>
+ <td><?php echo $category['Category']['delete_flag']; ?> </td>
+ <td><?php echo $category['Category']['regist_date']; ?> </td>
+ <td><?php echo $category['Category']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $category['Category']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $category['Category']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $category['Category']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Category', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,93 @@
+<div class="categories view">
+<h2><?php __('Category');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Category Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['category_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Category', true), array('action' => 'edit', $category['Category']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Category', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $category['Category']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Contents');?></h3>
+ <?php if (!empty($category['Content'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Content Name'); ?></th>
+ <th><?php __('Category Id'); ?></th>
+ <th><?php __('Explain'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Data Size'); ?></th>
+ <th><?php __('Download Count'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($category['Content'] as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['id'];?></td>
+ <td><?php echo $content['content_name'];?></td>
+ <td><?php echo $content['category_id'];?></td>
+ <td><?php echo $content['explain'];?></td>
+ <td><?php echo $content['user_id'];?></td>
+ <td><?php echo $content['data_size'];?></td>
+ <td><?php echo $content['download_count'];?></td>
+ <td><?php echo $content['delete_flag'];?></td>
+ <td><?php echo $content['regist_date'];?></td>
+ <td><?php echo $content['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'contents', 'action' => 'view', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'contents', 'action' => 'edit', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'contents', 'action' => 'delete', $content['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/categories/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="categories form">
+<?php echo $this->Form->create('Category');?>
+ <fieldset>
+ <legend><?php __('Edit Category'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('category_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Category.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Category.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/index.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="categories index">
+ <h2><?php __('Categories');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('category_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($categories as $category):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $category['Category']['id']; ?> </td>
+ <td><?php echo $category['Category']['category_name']; ?> </td>
+ <td><?php echo $category['Category']['delete_flag']; ?> </td>
+ <td><?php echo $category['Category']['regist_date']; ?> </td>
+ <td><?php echo $category['Category']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $category['Category']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $category['Category']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $category['Category']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Category', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/categories/view.ctp
===================================================================
--- trunk/src/Engine/app/views/categories/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/categories/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,93 @@
+<div class="categories view">
+<h2><?php __('Category');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Category Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['category_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $category['Category']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Category', true), array('action' => 'edit', $category['Category']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Category', true), array('action' => 'delete', $category['Category']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $category['Category']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Contents');?></h3>
+ <?php if (!empty($category['Content'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Content Name'); ?></th>
+ <th><?php __('Category Id'); ?></th>
+ <th><?php __('Explain'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Data Size'); ?></th>
+ <th><?php __('Download Count'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($category['Content'] as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['id'];?></td>
+ <td><?php echo $content['content_name'];?></td>
+ <td><?php echo $content['category_id'];?></td>
+ <td><?php echo $content['explain'];?></td>
+ <td><?php echo $content['user_id'];?></td>
+ <td><?php echo $content['data_size'];?></td>
+ <td><?php echo $content['download_count'];?></td>
+ <td><?php echo $content['delete_flag'];?></td>
+ <td><?php echo $content['regist_date'];?></td>
+ <td><?php echo $content['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'contents', 'action' => 'view', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'contents', 'action' => 'edit', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'contents', 'action' => 'delete', $content['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/contents/add.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,29 @@
+<div class="contents form">
+<?php echo $this->Form->create('Content');?>
+ <fieldset>
+ <legend><?php __('Add Content'); ?></legend>
+ <?php
+ echo $this->Form->input('content_name');
+ echo $this->Form->input('category_id');
+ echo $this->Form->input('explain');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('data_size');
+ echo $this->Form->input('download_count');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,29 @@
+<div class="contents form">
+<?php echo $this->Form->create('Content');?>
+ <fieldset>
+ <legend><?php __('Admin Add Content'); ?></legend>
+ <?php
+ echo $this->Form->input('content_name');
+ echo $this->Form->input('category_id');
+ echo $this->Form->input('explain');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('data_size');
+ echo $this->Form->input('download_count');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,31 @@
+<div class="contents form">
+<?php echo $this->Form->create('Content');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Content'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('content_name');
+ echo $this->Form->input('category_id');
+ echo $this->Form->input('explain');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('data_size');
+ echo $this->Form->input('download_count');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Content.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Content.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,71 @@
+<div class="contents index">
+ <h2><?php __('Contents');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('content_name');?></th>
+ <th><?php echo $this->Paginator->sort('category_id');?></th>
+ <th><?php echo $this->Paginator->sort('explain');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('data_size');?></th>
+ <th><?php echo $this->Paginator->sort('download_count');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($contents as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['Content']['id']; ?> </td>
+ <td><?php echo $content['Content']['content_name']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($content['Category']['id'], array('controller' => 'categories', 'action' => 'view', $content['Category']['id'])); ?>
+ </td>
+ <td><?php echo $content['Content']['explain']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($content['User']['name'], array('controller' => 'users', 'action' => 'view', $content['User']['id'])); ?>
+ </td>
+ <td><?php echo $content['Content']['data_size']; ?> </td>
+ <td><?php echo $content['Content']['download_count']; ?> </td>
+ <td><?php echo $content['Content']['delete_flag']; ?> </td>
+ <td><?php echo $content['Content']['regist_date']; ?> </td>
+ <td><?php echo $content['Content']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $content['Content']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $content['Content']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $content['Content']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['Content']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,68 @@
+<div class="contents view">
+<h2><?php __('Content');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Content Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['content_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Category'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($content['Category']['id'], array('controller' => 'categories', 'action' => 'view', $content['Category']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Explain'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['explain']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($content['User']['name'], array('controller' => 'users', 'action' => 'view', $content['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Data Size'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['data_size']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Download Count'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['download_count']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Content', true), array('action' => 'edit', $content['Content']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Content', true), array('action' => 'delete', $content['Content']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['Content']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/contents/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,31 @@
+<div class="contents form">
+<?php echo $this->Form->create('Content');?>
+ <fieldset>
+ <legend><?php __('Edit Content'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('content_name');
+ echo $this->Form->input('category_id');
+ echo $this->Form->input('explain');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('data_size');
+ echo $this->Form->input('download_count');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Content.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Content.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/index.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,71 @@
+<div class="contents index">
+ <h2><?php __('Contents');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('content_name');?></th>
+ <th><?php echo $this->Paginator->sort('category_id');?></th>
+ <th><?php echo $this->Paginator->sort('explain');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('data_size');?></th>
+ <th><?php echo $this->Paginator->sort('download_count');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($contents as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['Content']['id']; ?> </td>
+ <td><?php echo $content['Content']['content_name']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($content['Category']['id'], array('controller' => 'categories', 'action' => 'view', $content['Category']['id'])); ?>
+ </td>
+ <td><?php echo $content['Content']['explain']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($content['User']['name'], array('controller' => 'users', 'action' => 'view', $content['User']['id'])); ?>
+ </td>
+ <td><?php echo $content['Content']['data_size']; ?> </td>
+ <td><?php echo $content['Content']['download_count']; ?> </td>
+ <td><?php echo $content['Content']['delete_flag']; ?> </td>
+ <td><?php echo $content['Content']['regist_date']; ?> </td>
+ <td><?php echo $content['Content']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $content['Content']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $content['Content']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $content['Content']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['Content']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/contents/view.ctp
===================================================================
--- trunk/src/Engine/app/views/contents/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/contents/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,68 @@
+<div class="contents view">
+<h2><?php __('Content');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Content Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['content_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Category'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($content['Category']['id'], array('controller' => 'categories', 'action' => 'view', $content['Category']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Explain'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['explain']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($content['User']['name'], array('controller' => 'users', 'action' => 'view', $content['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Data Size'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['data_size']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Download Count'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['download_count']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $content['Content']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Content', true), array('action' => 'edit', $content['Content']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Content', true), array('action' => 'delete', $content['Content']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['Content']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/countries/add.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="countries form">
+<?php echo $this->Form->create('Country');?>
+ <fieldset>
+ <legend><?php __('Add Country'); ?></legend>
+ <?php
+ echo $this->Form->input('country_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="countries form">
+<?php echo $this->Form->create('Country');?>
+ <fieldset>
+ <legend><?php __('Admin Add Country'); ?></legend>
+ <?php
+ echo $this->Form->input('country_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,26 @@
+<div class="countries form">
+<?php echo $this->Form->create('Country');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Country'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('country_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Country.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Country.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,57 @@
+<div class="countries index">
+ <h2><?php __('Countries');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('country_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($countries as $country):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $country['Country']['id']; ?> </td>
+ <td><?php echo $country['Country']['country_name']; ?> </td>
+ <td><?php echo $country['Country']['delete_flag']; ?> </td>
+ <td><?php echo $country['Country']['regist_date']; ?> </td>
+ <td><?php echo $country['Country']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $country['Country']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $country['Country']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Country', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,167 @@
+<div class="countries view">
+<h2><?php __('Country');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['country_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Country', true), array('action' => 'edit', $country['Country']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Country', true), array('action' => 'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($country['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($country['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Users');?></h3>
+ <?php if (!empty($country['User'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Account'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Campany'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Accounting Flag'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('Bank Id'); ?></th>
+ <th><?php __('Bank Account Number'); ?></th>
+ <th><?php __('Create Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th><?php __('Application Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($country['User'] as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['id'];?></td>
+ <td><?php echo $user['account'];?></td>
+ <td><?php echo $user['password'];?></td>
+ <td><?php echo $user['name'];?></td>
+ <td><?php echo $user['address'];?></td>
+ <td><?php echo $user['campany'];?></td>
+ <td><?php echo $user['country_id'];?></td>
+ <td><?php echo $user['mail_address'];?></td>
+ <td><?php echo $user['delete_flag'];?></td>
+ <td><?php echo $user['accounting_flag'];?></td>
+ <td><?php echo $user['credit_number'];?></td>
+ <td><?php echo $user['credit_expire'];?></td>
+ <td><?php echo $user['credit_id'];?></td>
+ <td><?php echo $user['bank_id'];?></td>
+ <td><?php echo $user['bank_account_number'];?></td>
+ <td><?php echo $user['create_date'];?></td>
+ <td><?php echo $user['modify_date'];?></td>
+ <td><?php echo $user['application_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/countries/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,26 @@
+<div class="countries form">
+<?php echo $this->Form->create('Country');?>
+ <fieldset>
+ <legend><?php __('Edit Country'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('country_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Country.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Country.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/index.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,57 @@
+<div class="countries index">
+ <h2><?php __('Countries');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('country_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($countries as $country):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $country['Country']['id']; ?> </td>
+ <td><?php echo $country['Country']['country_name']; ?> </td>
+ <td><?php echo $country['Country']['delete_flag']; ?> </td>
+ <td><?php echo $country['Country']['regist_date']; ?> </td>
+ <td><?php echo $country['Country']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $country['Country']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $country['Country']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Country', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/countries/view.ctp
===================================================================
--- trunk/src/Engine/app/views/countries/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/countries/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,167 @@
+<div class="countries view">
+<h2><?php __('Country');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['country_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $country['Country']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Country', true), array('action' => 'edit', $country['Country']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Country', true), array('action' => 'delete', $country['Country']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['Country']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($country['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($country['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Users');?></h3>
+ <?php if (!empty($country['User'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Account'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Campany'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Accounting Flag'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('Bank Id'); ?></th>
+ <th><?php __('Bank Account Number'); ?></th>
+ <th><?php __('Create Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th><?php __('Application Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($country['User'] as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['id'];?></td>
+ <td><?php echo $user['account'];?></td>
+ <td><?php echo $user['password'];?></td>
+ <td><?php echo $user['name'];?></td>
+ <td><?php echo $user['address'];?></td>
+ <td><?php echo $user['campany'];?></td>
+ <td><?php echo $user['country_id'];?></td>
+ <td><?php echo $user['mail_address'];?></td>
+ <td><?php echo $user['delete_flag'];?></td>
+ <td><?php echo $user['accounting_flag'];?></td>
+ <td><?php echo $user['credit_number'];?></td>
+ <td><?php echo $user['credit_expire'];?></td>
+ <td><?php echo $user['credit_id'];?></td>
+ <td><?php echo $user['bank_id'];?></td>
+ <td><?php echo $user['bank_account_number'];?></td>
+ <td><?php echo $user['create_date'];?></td>
+ <td><?php echo $user['modify_date'];?></td>
+ <td><?php echo $user['application_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/credits/add.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="credits form">
+<?php echo $this->Form->create('Credit');?>
+ <fieldset>
+ <legend><?php __('Add Credit'); ?></legend>
+ <?php
+ echo $this->Form->input('campany_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,22 @@
+<div class="credits form">
+<?php echo $this->Form->create('Credit');?>
+ <fieldset>
+ <legend><?php __('Admin Add Credit'); ?></legend>
+ <?php
+ echo $this->Form->input('campany_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="credits form">
+<?php echo $this->Form->create('Credit');?>
+ <fieldset>
+ <legend><?php __('Admin Edit Credit'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('campany_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Credit.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Credit.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="credits index">
+ <h2><?php __('Credits');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('campany_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($credits as $credit):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $credit['Credit']['id']; ?> </td>
+ <td><?php echo $credit['Credit']['campany_name']; ?> </td>
+ <td><?php echo $credit['Credit']['delete_flag']; ?> </td>
+ <td><?php echo $credit['Credit']['regist_date']; ?> </td>
+ <td><?php echo $credit['Credit']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $credit['Credit']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $credit['Credit']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $credit['Credit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $credit['Credit']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,97 @@
+<div class="credits view">
+<h2><?php __('Credit');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Campany Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['campany_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Credit', true), array('action' => 'edit', $credit['Credit']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Credit', true), array('action' => 'delete', $credit['Credit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $credit['Credit']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($credit['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($credit['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/credits/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,24 @@
+<div class="credits form">
+<?php echo $this->Form->create('Credit');?>
+ <fieldset>
+ <legend><?php __('Edit Credit'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('campany_name');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('regist_date');
+ echo $this->Form->input('modify_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Credit.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Credit.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/index.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,55 @@
+<div class="credits index">
+ <h2><?php __('Credits');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('campany_name');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('regist_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($credits as $credit):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $credit['Credit']['id']; ?> </td>
+ <td><?php echo $credit['Credit']['campany_name']; ?> </td>
+ <td><?php echo $credit['Credit']['delete_flag']; ?> </td>
+ <td><?php echo $credit['Credit']['regist_date']; ?> </td>
+ <td><?php echo $credit['Credit']['modify_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $credit['Credit']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $credit['Credit']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $credit['Credit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $credit['Credit']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/credits/view.ctp
===================================================================
--- trunk/src/Engine/app/views/credits/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/credits/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,97 @@
+<div class="credits view">
+<h2><?php __('Credit');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Campany Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['campany_name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regist Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['regist_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $credit['Credit']['modify_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit Credit', true), array('action' => 'edit', $credit['Credit']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete Credit', true), array('action' => 'delete', $credit['Credit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $credit['Credit']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($credit['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($credit['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/user_modifies/add.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,33 @@
+<div class="userModifies form">
+<?php echo $this->Form->create('UserModify');?>
+ <fieldset>
+ <legend><?php __('Add User Modify'); ?></legend>
+ <?php
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('URL');
+ echo $this->Form->input('apprication_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,33 @@
+<div class="userModifies form">
+<?php echo $this->Form->create('UserModify');?>
+ <fieldset>
+ <legend><?php __('Admin Add User Modify'); ?></legend>
+ <?php
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('URL');
+ echo $this->Form->input('apprication_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,35 @@
+<div class="userModifies form">
+<?php echo $this->Form->create('UserModify');?>
+ <fieldset>
+ <legend><?php __('Admin Edit User Modify'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('URL');
+ echo $this->Form->input('apprication_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('UserModify.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('UserModify.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,79 @@
+<div class="userModifies index">
+ <h2><?php __('User Modifies');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('password');?></th>
+ <th><?php echo $this->Paginator->sort('name');?></th>
+ <th><?php echo $this->Paginator->sort('address');?></th>
+ <th><?php echo $this->Paginator->sort('country_id');?></th>
+ <th><?php echo $this->Paginator->sort('mail_address');?></th>
+ <th><?php echo $this->Paginator->sort('credit_number');?></th>
+ <th><?php echo $this->Paginator->sort('credit_expire');?></th>
+ <th><?php echo $this->Paginator->sort('credit_id');?></th>
+ <th><?php echo $this->Paginator->sort('URL');?></th>
+ <th><?php echo $this->Paginator->sort('apprication_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($userModifies as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['UserModify']['id']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['User']['name'], array('controller' => 'users', 'action' => 'view', $userModify['User']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['password']; ?> </td>
+ <td><?php echo $userModify['UserModify']['name']; ?> </td>
+ <td><?php echo $userModify['UserModify']['address']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['Country']['id'], array('controller' => 'countries', 'action' => 'view', $userModify['Country']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['mail_address']; ?> </td>
+ <td><?php echo $userModify['UserModify']['credit_number']; ?> </td>
+ <td><?php echo $userModify['UserModify']['credit_expire']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $userModify['Credit']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['URL']; ?> </td>
+ <td><?php echo $userModify['UserModify']['apprication_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $userModify['UserModify']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $userModify['UserModify']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $userModify['UserModify']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['UserModify']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,80 @@
+<div class="userModifies view">
+<h2><?php __('User Modify');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['User']['name'], array('controller' => 'users', 'action' => 'view', $userModify['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['password']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['Country']['id'], array('controller' => 'countries', 'action' => 'view', $userModify['Country']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mail Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['mail_address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['credit_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Expire'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['credit_expire']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $userModify['Credit']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('URL'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['URL']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Apprication Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['apprication_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit User Modify', true), array('action' => 'edit', $userModify['UserModify']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete User Modify', true), array('action' => 'delete', $userModify['UserModify']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['UserModify']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/user_modifies/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,35 @@
+<div class="userModifies form">
+<?php echo $this->Form->create('UserModify');?>
+ <fieldset>
+ <legend><?php __('Edit User Modify'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('user_id');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('URL');
+ echo $this->Form->input('apprication_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('UserModify.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('UserModify.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/index.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,79 @@
+<div class="userModifies index">
+ <h2><?php __('User Modifies');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('user_id');?></th>
+ <th><?php echo $this->Paginator->sort('password');?></th>
+ <th><?php echo $this->Paginator->sort('name');?></th>
+ <th><?php echo $this->Paginator->sort('address');?></th>
+ <th><?php echo $this->Paginator->sort('country_id');?></th>
+ <th><?php echo $this->Paginator->sort('mail_address');?></th>
+ <th><?php echo $this->Paginator->sort('credit_number');?></th>
+ <th><?php echo $this->Paginator->sort('credit_expire');?></th>
+ <th><?php echo $this->Paginator->sort('credit_id');?></th>
+ <th><?php echo $this->Paginator->sort('URL');?></th>
+ <th><?php echo $this->Paginator->sort('apprication_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($userModifies as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['UserModify']['id']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['User']['name'], array('controller' => 'users', 'action' => 'view', $userModify['User']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['password']; ?> </td>
+ <td><?php echo $userModify['UserModify']['name']; ?> </td>
+ <td><?php echo $userModify['UserModify']['address']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['Country']['id'], array('controller' => 'countries', 'action' => 'view', $userModify['Country']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['mail_address']; ?> </td>
+ <td><?php echo $userModify['UserModify']['credit_number']; ?> </td>
+ <td><?php echo $userModify['UserModify']['credit_expire']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($userModify['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $userModify['Credit']['id'])); ?>
+ </td>
+ <td><?php echo $userModify['UserModify']['URL']; ?> </td>
+ <td><?php echo $userModify['UserModify']['apprication_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $userModify['UserModify']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $userModify['UserModify']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $userModify['UserModify']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['UserModify']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/user_modifies/view.ctp
===================================================================
--- trunk/src/Engine/app/views/user_modifies/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/user_modifies/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,80 @@
+<div class="userModifies view">
+<h2><?php __('User Modify');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['User']['name'], array('controller' => 'users', 'action' => 'view', $userModify['User']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['password']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['Country']['id'], array('controller' => 'countries', 'action' => 'view', $userModify['Country']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mail Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['mail_address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['credit_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Expire'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['credit_expire']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($userModify['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $userModify['Credit']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('URL'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['URL']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Apprication Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $userModify['UserModify']['apprication_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit User Modify', true), array('action' => 'edit', $userModify['UserModify']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete User Modify', true), array('action' => 'delete', $userModify['UserModify']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['UserModify']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
Added: trunk/src/Engine/app/views/users/add.ctp
===================================================================
--- trunk/src/Engine/app/views/users/add.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,45 @@
+<div class="users form">
+<?php echo $this->Form->create('User');?>
+ <fieldset>
+ <legend><?php __('Add User'); ?></legend>
+ <?php
+ echo $this->Form->input('account');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('campany');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('accounting_flag');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('bank_id');
+ echo $this->Form->input('bank_account_number');
+ echo $this->Form->input('create_date');
+ echo $this->Form->input('modify_date');
+ echo $this->Form->input('application_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/admin_add.ctp
===================================================================
--- trunk/src/Engine/app/views/users/admin_add.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/admin_add.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,45 @@
+<div class="users form">
+<?php echo $this->Form->create('User');?>
+ <fieldset>
+ <legend><?php __('Admin Add User'); ?></legend>
+ <?php
+ echo $this->Form->input('account');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('campany');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('accounting_flag');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('bank_id');
+ echo $this->Form->input('bank_account_number');
+ echo $this->Form->input('create_date');
+ echo $this->Form->input('modify_date');
+ echo $this->Form->input('application_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/admin_edit.ctp
===================================================================
--- trunk/src/Engine/app/views/users/admin_edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/admin_edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,47 @@
+<div class="users form">
+<?php echo $this->Form->create('User');?>
+ <fieldset>
+ <legend><?php __('Admin Edit User'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('account');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('campany');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('accounting_flag');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('bank_id');
+ echo $this->Form->input('bank_account_number');
+ echo $this->Form->input('create_date');
+ echo $this->Form->input('modify_date');
+ echo $this->Form->input('application_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/admin_index.ctp
===================================================================
--- trunk/src/Engine/app/views/users/admin_index.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/admin_index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,97 @@
+<div class="users index">
+ <h2><?php __('Users');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('account');?></th>
+ <th><?php echo $this->Paginator->sort('password');?></th>
+ <th><?php echo $this->Paginator->sort('name');?></th>
+ <th><?php echo $this->Paginator->sort('address');?></th>
+ <th><?php echo $this->Paginator->sort('campany');?></th>
+ <th><?php echo $this->Paginator->sort('country_id');?></th>
+ <th><?php echo $this->Paginator->sort('mail_address');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('accounting_flag');?></th>
+ <th><?php echo $this->Paginator->sort('credit_number');?></th>
+ <th><?php echo $this->Paginator->sort('credit_expire');?></th>
+ <th><?php echo $this->Paginator->sort('credit_id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_account_number');?></th>
+ <th><?php echo $this->Paginator->sort('create_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th><?php echo $this->Paginator->sort('application_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($users as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['User']['id']; ?> </td>
+ <td><?php echo $user['User']['account']; ?> </td>
+ <td><?php echo $user['User']['password']; ?> </td>
+ <td><?php echo $user['User']['name']; ?> </td>
+ <td><?php echo $user['User']['address']; ?> </td>
+ <td><?php echo $user['User']['campany']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($user['Country']['id'], array('controller' => 'countries', 'action' => 'view', $user['Country']['id'])); ?>
+ </td>
+ <td><?php echo $user['User']['mail_address']; ?> </td>
+ <td><?php echo $user['User']['delete_flag']; ?> </td>
+ <td><?php echo $user['User']['accounting_flag']; ?> </td>
+ <td><?php echo $user['User']['credit_number']; ?> </td>
+ <td><?php echo $user['User']['credit_expire']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($user['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $user['Credit']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $this->Html->link($user['Bank']['id'], array('controller' => 'banks', 'action' => 'view', $user['Bank']['id'])); ?>
+ </td>
+ <td><?php echo $user['User']['bank_account_number']; ?> </td>
+ <td><?php echo $user['User']['create_date']; ?> </td>
+ <td><?php echo $user['User']['modify_date']; ?> </td>
+ <td><?php echo $user['User']['application_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $user['User']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/admin_view.ctp
===================================================================
--- trunk/src/Engine/app/views/users/admin_view.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/admin_view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,268 @@
+<div class="users view">
+<h2><?php __('User');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Account'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['account']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['password']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Campany'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['campany']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Country']['id'], array('controller' => 'countries', 'action' => 'view', $user['Country']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mail Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['mail_address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Accounting Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['accounting_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['credit_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Expire'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['credit_expire']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $user['Credit']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Bank']['id'], array('controller' => 'banks', 'action' => 'view', $user['Bank']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank Account Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['bank_account_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Create Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['create_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['modify_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Application Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['application_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete User', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Attributes');?></h3>
+ <?php if (!empty($user['Attribute'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Attribute'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['Attribute'] as $attribute):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $attribute['id'];?></td>
+ <td><?php echo $attribute['user_id'];?></td>
+ <td><?php echo $attribute['attribute'];?></td>
+ <td><?php echo $attribute['delete_flag'];?></td>
+ <td><?php echo $attribute['regist_date'];?></td>
+ <td><?php echo $attribute['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'attributes', 'action' => 'view', $attribute['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'attributes', 'action' => 'edit', $attribute['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'attributes', 'action' => 'delete', $attribute['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Contents');?></h3>
+ <?php if (!empty($user['Content'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Content Name'); ?></th>
+ <th><?php __('Category Id'); ?></th>
+ <th><?php __('Explain'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Data Size'); ?></th>
+ <th><?php __('Download Count'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['Content'] as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['id'];?></td>
+ <td><?php echo $content['content_name'];?></td>
+ <td><?php echo $content['category_id'];?></td>
+ <td><?php echo $content['explain'];?></td>
+ <td><?php echo $content['user_id'];?></td>
+ <td><?php echo $content['data_size'];?></td>
+ <td><?php echo $content['download_count'];?></td>
+ <td><?php echo $content['delete_flag'];?></td>
+ <td><?php echo $content['regist_date'];?></td>
+ <td><?php echo $content['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'contents', 'action' => 'view', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'contents', 'action' => 'edit', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'contents', 'action' => 'delete', $content['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($user['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
Added: trunk/src/Engine/app/views/users/edit.ctp
===================================================================
--- trunk/src/Engine/app/views/users/edit.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/edit.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,47 @@
+<div class="users form">
+<?php echo $this->Form->create('User');?>
+ <fieldset>
+ <legend><?php __('Edit User'); ?></legend>
+ <?php
+ echo $this->Form->input('id');
+ echo $this->Form->input('account');
+ echo $this->Form->input('password');
+ echo $this->Form->input('name');
+ echo $this->Form->input('address');
+ echo $this->Form->input('campany');
+ echo $this->Form->input('country_id');
+ echo $this->Form->input('mail_address');
+ echo $this->Form->input('delete_flag');
+ echo $this->Form->input('accounting_flag');
+ echo $this->Form->input('credit_number');
+ echo $this->Form->input('credit_expire');
+ echo $this->Form->input('credit_id');
+ echo $this->Form->input('bank_id');
+ echo $this->Form->input('bank_account_number');
+ echo $this->Form->input('create_date');
+ echo $this->Form->input('modify_date');
+ echo $this->Form->input('application_date');
+ ?>
+ </fieldset>
+<?php echo $this->Form->end(__('Submit', true));?>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+
+ <li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/index.ctp
===================================================================
--- trunk/src/Engine/app/views/users/index.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/index.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,97 @@
+<div class="users index">
+ <h2><?php __('Users');?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?php echo $this->Paginator->sort('id');?></th>
+ <th><?php echo $this->Paginator->sort('account');?></th>
+ <th><?php echo $this->Paginator->sort('password');?></th>
+ <th><?php echo $this->Paginator->sort('name');?></th>
+ <th><?php echo $this->Paginator->sort('address');?></th>
+ <th><?php echo $this->Paginator->sort('campany');?></th>
+ <th><?php echo $this->Paginator->sort('country_id');?></th>
+ <th><?php echo $this->Paginator->sort('mail_address');?></th>
+ <th><?php echo $this->Paginator->sort('delete_flag');?></th>
+ <th><?php echo $this->Paginator->sort('accounting_flag');?></th>
+ <th><?php echo $this->Paginator->sort('credit_number');?></th>
+ <th><?php echo $this->Paginator->sort('credit_expire');?></th>
+ <th><?php echo $this->Paginator->sort('credit_id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_id');?></th>
+ <th><?php echo $this->Paginator->sort('bank_account_number');?></th>
+ <th><?php echo $this->Paginator->sort('create_date');?></th>
+ <th><?php echo $this->Paginator->sort('modify_date');?></th>
+ <th><?php echo $this->Paginator->sort('application_date');?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($users as $user):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $user['User']['id']; ?> </td>
+ <td><?php echo $user['User']['account']; ?> </td>
+ <td><?php echo $user['User']['password']; ?> </td>
+ <td><?php echo $user['User']['name']; ?> </td>
+ <td><?php echo $user['User']['address']; ?> </td>
+ <td><?php echo $user['User']['campany']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($user['Country']['id'], array('controller' => 'countries', 'action' => 'view', $user['Country']['id'])); ?>
+ </td>
+ <td><?php echo $user['User']['mail_address']; ?> </td>
+ <td><?php echo $user['User']['delete_flag']; ?> </td>
+ <td><?php echo $user['User']['accounting_flag']; ?> </td>
+ <td><?php echo $user['User']['credit_number']; ?> </td>
+ <td><?php echo $user['User']['credit_expire']; ?> </td>
+ <td>
+ <?php echo $this->Html->link($user['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $user['Credit']['id'])); ?>
+ </td>
+ <td>
+ <?php echo $this->Html->link($user['Bank']['id'], array('controller' => 'banks', 'action' => 'view', $user['Bank']['id'])); ?>
+ </td>
+ <td><?php echo $user['User']['bank_account_number']; ?> </td>
+ <td><?php echo $user['User']['create_date']; ?> </td>
+ <td><?php echo $user['User']['modify_date']; ?> </td>
+ <td><?php echo $user['User']['application_date']; ?> </td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $user['User']['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
+ </td>
+ </tr>
+<?php endforeach; ?>
+ </table>
+ <p>
+ <?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?> </p>
+
+ <div class="paging">
+ <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
+ | <?php echo $this->Paginator->numbers();?>
+ |
+ <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
+ </div>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?></li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
\ No newline at end of file
Added: trunk/src/Engine/app/views/users/view.ctp
===================================================================
--- trunk/src/Engine/app/views/users/view.ctp (rev 0)
+++ trunk/src/Engine/app/views/users/view.ctp 2012-06-16 14:55:36 UTC (rev 133)
@@ -0,0 +1,268 @@
+<div class="users view">
+<h2><?php __('User');?></h2>
+ <dl><?php $i = 0; $class = ' class="altrow"';?>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['id']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Account'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['account']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['password']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['name']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Campany'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['campany']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Country']['id'], array('controller' => 'countries', 'action' => 'view', $user['Country']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mail Address'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['mail_address']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Delete Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['delete_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Accounting Flag'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['accounting_flag']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['credit_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit Expire'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['credit_expire']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Credit'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Credit']['id'], array('controller' => 'credits', 'action' => 'view', $user['Credit']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $this->Html->link($user['Bank']['id'], array('controller' => 'banks', 'action' => 'view', $user['Bank']['id'])); ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Bank Account Number'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['bank_account_number']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Create Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['create_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modify Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['modify_date']; ?>
+
+ </dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Application Date'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $user['User']['application_date']; ?>
+
+ </dd>
+ </dl>
+</div>
+<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
+ <ul>
+ <li><?php echo $this->Html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('Delete User', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?> </li>
+ <li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Credits', true), array('controller' => 'credits', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Credit', true), array('controller' => 'credits', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Banks', true), array('controller' => 'banks', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Bank', true), array('controller' => 'banks', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Attributes', true), array('controller' => 'attributes', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List Contents', true), array('controller' => 'contents', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add')); ?> </li>
+ <li><?php echo $this->Html->link(__('List User Modifies', true), array('controller' => 'user_modifies', 'action' => 'index')); ?> </li>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add')); ?> </li>
+ </ul>
+</div>
+<div class="related">
+ <h3><?php __('Related Attributes');?></h3>
+ <?php if (!empty($user['Attribute'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Attribute'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['Attribute'] as $attribute):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $attribute['id'];?></td>
+ <td><?php echo $attribute['user_id'];?></td>
+ <td><?php echo $attribute['attribute'];?></td>
+ <td><?php echo $attribute['delete_flag'];?></td>
+ <td><?php echo $attribute['regist_date'];?></td>
+ <td><?php echo $attribute['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'attributes', 'action' => 'view', $attribute['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'attributes', 'action' => 'edit', $attribute['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'attributes', 'action' => 'delete', $attribute['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $attribute['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Attribute', true), array('controller' => 'attributes', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related Contents');?></h3>
+ <?php if (!empty($user['Content'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('Content Name'); ?></th>
+ <th><?php __('Category Id'); ?></th>
+ <th><?php __('Explain'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Data Size'); ?></th>
+ <th><?php __('Download Count'); ?></th>
+ <th><?php __('Delete Flag'); ?></th>
+ <th><?php __('Regist Date'); ?></th>
+ <th><?php __('Modify Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['Content'] as $content):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $content['id'];?></td>
+ <td><?php echo $content['content_name'];?></td>
+ <td><?php echo $content['category_id'];?></td>
+ <td><?php echo $content['explain'];?></td>
+ <td><?php echo $content['user_id'];?></td>
+ <td><?php echo $content['data_size'];?></td>
+ <td><?php echo $content['download_count'];?></td>
+ <td><?php echo $content['delete_flag'];?></td>
+ <td><?php echo $content['regist_date'];?></td>
+ <td><?php echo $content['modify_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'contents', 'action' => 'view', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'contents', 'action' => 'edit', $content['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'contents', 'action' => 'delete', $content['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $content['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New Content', true), array('controller' => 'contents', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>
+<div class="related">
+ <h3><?php __('Related User Modifies');?></h3>
+ <?php if (!empty($user['UserModify'])):?>
+ <table cellpadding = "0" cellspacing = "0">
+ <tr>
+ <th><?php __('Id'); ?></th>
+ <th><?php __('User Id'); ?></th>
+ <th><?php __('Password'); ?></th>
+ <th><?php __('Name'); ?></th>
+ <th><?php __('Address'); ?></th>
+ <th><?php __('Country Id'); ?></th>
+ <th><?php __('Mail Address'); ?></th>
+ <th><?php __('Credit Number'); ?></th>
+ <th><?php __('Credit Expire'); ?></th>
+ <th><?php __('Credit Id'); ?></th>
+ <th><?php __('URL'); ?></th>
+ <th><?php __('Apprication Date'); ?></th>
+ <th class="actions"><?php __('Actions');?></th>
+ </tr>
+ <?php
+ $i = 0;
+ foreach ($user['UserModify'] as $userModify):
+ $class = null;
+ if ($i++ % 2 == 0) {
+ $class = ' class="altrow"';
+ }
+ ?>
+ <tr<?php echo $class;?>>
+ <td><?php echo $userModify['id'];?></td>
+ <td><?php echo $userModify['user_id'];?></td>
+ <td><?php echo $userModify['password'];?></td>
+ <td><?php echo $userModify['name'];?></td>
+ <td><?php echo $userModify['address'];?></td>
+ <td><?php echo $userModify['country_id'];?></td>
+ <td><?php echo $userModify['mail_address'];?></td>
+ <td><?php echo $userModify['credit_number'];?></td>
+ <td><?php echo $userModify['credit_expire'];?></td>
+ <td><?php echo $userModify['credit_id'];?></td>
+ <td><?php echo $userModify['URL'];?></td>
+ <td><?php echo $userModify['apprication_date'];?></td>
+ <td class="actions">
+ <?php echo $this->Html->link(__('View', true), array('controller' => 'user_modifies', 'action' => 'view', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Edit', true), array('controller' => 'user_modifies', 'action' => 'edit', $userModify['id'])); ?>
+ <?php echo $this->Html->link(__('Delete', true), array('controller' => 'user_modifies', 'action' => 'delete', $userModify['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $userModify['id'])); ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+<?php endif; ?>
+
+ <div class="actions">
+ <ul>
+ <li><?php echo $this->Html->link(__('New User Modify', true), array('controller' => 'user_modifies', 'action' => 'add'));?> </li>
+ </ul>
+ </div>
+</div>