| Line 107... |
Line 107... |
| 107 |
$this->set('categories',Configure::read('Categories'));
|
107 |
$this->set('categories',Configure::read('Categories'));
|
| 108 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
108 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 109 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
109 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 110 |
$shortage_status = array(0=>'No',1=>'Yes');
|
110 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| 111 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
111 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| - |
|
112 |
$arrSubCategory = Configure::read('arrSubCategory');
|
| 112 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag'));
|
113 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag','arrSubCategory'));
|
| 113 |
}
|
114 |
}
|
| 114 |
|
115 |
|
| 115 |
public function admin_addtoexisting() {
|
116 |
public function admin_addtoexisting() {
|
| 116 |
if ($this->request->is('post')) {
|
117 |
if ($this->request->is('post')) {
|
| 117 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
118 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
| Line 136... |
Line 137... |
| 136 |
$this->set('categories',Configure::read('Categories'));
|
137 |
$this->set('categories',Configure::read('Categories'));
|
| 137 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
138 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 138 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
139 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 139 |
$shortage_status = array(0=>'No',1=>'Yes');
|
140 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| 140 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
141 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| - |
|
142 |
$arrSubCategory = Configure::read('arrSubCategory');
|
| 141 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag'));
|
143 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag','arrSubCategory'));
|
| 142 |
}
|
144 |
}
|
| 143 |
|
145 |
|
| 144 |
public function admin_update($id) {
|
146 |
public function admin_update($id) {
|
| 145 |
if ($this->request->is('post')) {
|
147 |
if ($this->request->is('post')) {
|
| 146 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
148 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
| Line 172... |
Line 174... |
| 172 |
$this->set('categories',Configure::read('Categories'));
|
174 |
$this->set('categories',Configure::read('Categories'));
|
| 173 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
175 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 174 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
176 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 175 |
$shortage_status = array(0=>'No',1=>'Yes');
|
177 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| 176 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
178 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| - |
|
179 |
$arrSubCategory = Configure::read('arrSubCategory');
|
| 177 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','data','buyBoxFlag'));
|
180 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','data','buyBoxFlag','arrSubCategory'));
|
| 178 |
}
|
181 |
}
|
| 179 |
|
182 |
|
| 180 |
public function admin_search(){
|
183 |
public function admin_search(){
|
| 181 |
$page = $this->request->query('page');
|
184 |
$page = $this->request->query('page');
|
| 182 |
if(!isset($page)){
|
185 |
if(!isset($page)){
|