<? include("../main_include.php"); if($_POST['log_id'] > 0 ) { $log = new log; $log->id = $_REQUEST['log_id']; $log->loadmany(); } function track_object(&$obj) { $classname = get_class($obj); if ($classname) { echo "<table border=1 cellspacing=0 cellpadding=0>"; $class_vars = get_object_vars($obj); foreach ($class_vars as $name => $value) { echo "<tr><td>\$$name : </td><td>"; track_object($value); echo "</td></tr>"; } echo "</table>"; } else { if (is_array($obj)) { while (list($key, $val) = each($obj)) { echo "[ $key ] = "; track_object($val); echo "<br>"; } } else {
$s=$t; } if($w>$e){ $t=$w; $w=$e; $e=$t; } $logtransaction = new log(); $logtransaction->gpslat = "!# between $n and $s #!"; $logtransaction->gpslong = "!# between $w and $e #!"; switch($action){ case 'getcount': $logtransaction->loadmany(); $arr->totlaRecords = $logtransaction->totalrecords; break; case 'mapviewcount': if(is_numeric($_POST['page'])) $page = $_POST['page']; else $page = 1; if(is_numeric($_POST['limit'])) $limit =$_POST['limit']; else $limit = 1000; $logtransaction->id = "!# NOT IN ($ids) #!"; $logtransaction->loadmany(' order by id desc',$limit,$page); $arr->id = $logtransaction->id;