<?php require_once "setups/smarty_setup.php"; $smarty = new Smarty_AccountBook(); $smarty->display('login.tpl');
// whole year $timeStart = mktime(0, 0, 0, 1, 1, $year); $timeEnd = mktime(23, 59, 59, 12, 31, $year); } else { // whole month $timeStart = mktime(0, 0, 0, $month, 1, $year); $timeEnd = mktime(0, 0, 0, $month + 1, 1, $year); } $statisticByCat = getStatisticByTimePeriod($type, $timeStart, $timeEnd); $pageCount = getPageCountByTimePeriod($timeStart, $timeEnd); $accountItems = getAccountItemByTimePeriod($pageNum, $itemCount, $type, $categoryId, $timeStart, $timeEnd); } $idx = 0; $staticCategories; while ($row = mysql_fetch_array($statisticByCat)) { $row['categoryName'] = mysql_result(getCategoryNameById($row['category_id']), 0); $staticCategories[$idx++] = $row; } $num_rows = mysql_num_rows($accountItems); $parentPage = 'statistic.php'; $smarty = new Smarty_AccountBook(); $smarty->assign('year', $year); $smarty->assign('month', $month); $smarty->assign('type', $type); $smarty->assign('staticCategories', $staticCategories); $smarty->assign('numRows', $num_rows); $smarty->assign('titleType', $titleType); $smarty->assign('pageCount', $pageCount); include "account_list.php"; $smarty->display('statistic.tpl');
<?php include "da_access.php"; require_once "setups/smarty_setup.php"; //include("checkLogin.php"); $result = getAccountItemById($_GET['id']); $accountItem = mysql_fetch_object($result); $categoryName = mysql_result(getCategoryNameById($accountItem->category_id), 0); $smarty = new Smarty_AccountBook(); include 'category_div.php'; $smarty->assign('accountItem', $accountItem); $smarty->assign('categoryName', $categoryName); $smarty->assign('itemId', $_GET['id']); $smarty->display('account_item_update.tpl');
<?php require_once "da_access.php"; require_once "setups/smarty_setup.php"; require_once "checkLogin.php"; $smarty = new Smarty_AccountBook(); $smarty->display('index.tpl');
<?php require_once "da_access.php"; require_once "setups/smarty_setup.php"; require_once "account_item_class.php"; require_once "checkLogin.php"; $smarty = new Smarty_AccountBook(); include 'category_div.php'; /* * arguments for account_list.php */ $pageNum = $_GET['pageNum']; $itemCount = $_GET['itemCount']; $accountItems = getAccountItemByPage($pageNum, $itemCount); $pageCount = getPageCount(); $parentPage = 'account_book_main.php'; include 'account_list.php'; $smarty->display('account_book_main.tpl');