Subversion Repositories SmartDukaan

Rev

Rev 16811 | Rev 16873 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16811 Rev 16813
Line 284... Line 284...
284
					 	$approvedCounts[$key2]['AppTransaction']['conversion_percentage']=ceil(($value22/$value[0]['count'])*100);
284
					 	$approvedCounts[$key2]['AppTransaction']['conversion_percentage']=ceil(($value22/$value[0]['count'])*100);
285
					}
285
					}
286
				}
286
				}
287
			}
287
			}
288
		}
288
		}
-
 
289
	$totalClicks=0;	
-
 
290
	$totalApproved=0;
-
 
291
	foreach ($approvedCounts as $key => $value) {
-
 
292
		$totalClicks+=$value[0]['count'];
289
		$this->set('appTransactions', $approvedCounts);
293
		if(!(isset($value['AppTransaction']['approved']))){
-
 
294
			$totalApproved+=0;
-
 
295
		}else{
-
 
296
			$totalApproved+=$value['AppTransaction']['approved'];
-
 
297
		}
290
	}
298
	}
-
 
299
	$this->set('appTransactions', $approvedCounts);
-
 
300
	$this->set('totalClicks', $totalClicks);
-
 
301
	$this->set('totalApproved', $totalApproved);
-
 
302
}
291
 
303
 
292
	public function admin_retailer(){
304
	public function admin_retailer(){
293
		$this->AppTransaction->recursive = -1;
305
		$this->AppTransaction->recursive = -1;
294
		$type = $this->request->query('date');
306
		$type = $this->request->query('date');
295
		$date_from = $this->request->query('date_from');
307
		$date_from = $this->request->query('date_from');
Line 377... Line 389...
377
					 	$approvedCounts[$key2]['AppTransaction']['conversion_percentage']=ceil(($value22/$value[0]['count'])*100);
389
					 	$approvedCounts[$key2]['AppTransaction']['conversion_percentage']=ceil(($value22/$value[0]['count'])*100);
378
					}
390
					}
379
				}
391
				}
380
			}
392
			}
381
		}
393
		}
-
 
394
	$totalClicks=0;	
-
 
395
	$totalApproved=0;
-
 
396
	foreach ($approvedCounts as $key => $value) {
-
 
397
		$totalClicks+=$value[0]['count'];
-
 
398
		if(!(isset($value['AppTransaction']['approved']))){
-
 
399
			$totalApproved+=0;
-
 
400
		}else{
-
 
401
			$totalApproved+=$value['AppTransaction']['approved'];
-
 
402
		}
-
 
403
	}
382
		$this->set('appTransactions', $approvedCounts);
404
	$this->set('appTransactions', $approvedCounts);
-
 
405
	$this->set('totalClicks', $totalClicks);
-
 
406
	$this->set('totalApproved', $totalApproved);
383
	}
407
	}
384
}
408
}
385
409