示例#1
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();

$number_of_rows  = expense::count();

$smarty -> assign("number_of_rows",$number_of_rows);
if(isset($_GET['query']))
{
    $where = "&query=".$_GET['query']."&qtype=".$_GET['qtype'];
}
$url = "index.php?module=expense&view=xml".$where ;

$smarty -> assign('url', $url);

$smarty -> assign('pageActive', 'expense');
$smarty -> assign('active_tab', '#money');
?>
示例#2
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
$expenseobj = new expense();
$number_of_rows = $expenseobj->count();
$smarty->assign("number_of_rows", $number_of_rows);
if (isset($_GET['query'])) {
    $where = "&query=" . $_GET['query'] . "&qtype=" . $_GET['qtype'];
}
$url = "index.php?module=expense&view=xml" . $where;
$smarty->assign('url', $url);
$smarty->assign('pageActive', 'expense');
$smarty->assign('active_tab', '#money');