Functions | |
graph1 () | |
Variables | |
$aDataY = array() | |
$oSmarty = oxUtilsView::getInstance()->getSmarty() | |
$sTime_from = date( "Y-m-d H:i:s", strtotime( $oSmarty->_tpl_vars['time_from'] ) ) | |
$sTime_to = date( "Y-m-d H:i:s", strtotime( $oSmarty->_tpl_vars['time_to'] ) ) | |
$sSQL = "select count(*) as nrof, oxarticles.oxtitle from oxlogs, oxarticles where oxlogs.oxclass = 'details' and oxlogs.oxanid = oxarticles.oxid and oxlogs.oxtime >= '$sTime_from' and oxlogs.oxtime <= '$sTime_to' group by oxlogs.oxanid order by nrof desc limit 0, 25" | |
$rs = oxDb::getDb()->execute( $sSQL) | |
$iMax = 0 | |
$aPoints = array() | |
$aPoints [0] = 0 | |
$aAligns [0] = 'report_searchstrings_scale_aligns_left"' | |
$iTenth = strlen($iMax) - 1 | |
$aAligns [(round(($iMax/2)))] = 'report_searchstrings_scale_aligns_center" width="'.(720/3).'"' | |
$aPoints [$iMax] = $iMax | |
$aAligns [$iMax] = 'report_searchstrings_scale_aligns_right" width="'.(720/3).'"' | |
$aDataVals = array() | |
$aDataVals [$iCtr]['nm'] = $aDataY[$iCtr] |
graph1 | ( | ) |
Current week top viewed products report
$aAligns[$iMax] = 'report_searchstrings_scale_aligns_right" width="'.(720/3).'"' |
$aAligns[(round(($iMax/2)))] = 'report_searchstrings_scale_aligns_center" width="'.(720/3).'"' |
$aAligns[0] = 'report_searchstrings_scale_aligns_left"' |
$aDataVals[$iCtr]['nm'] = $aDataY[$iCtr] |
$aDataVals = array() |
$aDataY = array() |
$aPoints[$iMax] = $iMax |
$aPoints[0] = 0 |
$aPoints = array() |
$iMax = 0 |
$iTenth = strlen($iMax) - 1 |
$oSmarty = oxUtilsView::getInstance()->getSmarty() |
$rs = oxDb::getDb()->execute( $sSQL) |
$sSQL = "select count(*) as nrof, oxarticles.oxtitle from oxlogs, oxarticles where oxlogs.oxclass = 'details' and oxlogs.oxanid = oxarticles.oxid and oxlogs.oxtime >= '$sTime_from' and oxlogs.oxtime <= '$sTime_to' group by oxlogs.oxanid order by nrof desc limit 0, 25" |
$sTime_from = date( "Y-m-d H:i:s", strtotime( $oSmarty->_tpl_vars['time_from'] ) ) |
$sTime_to = date( "Y-m-d H:i:s", strtotime( $oSmarty->_tpl_vars['time_to'] ) ) |