|
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, oxparameter from oxlogs where oxclass = 'search' and oxtime >= '$sTime_from' and oxtime <= '$sTime_to' group by oxparameter order by nrof desc" |
| | $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).'"' |