コード例 #1
0
ファイル: main.php プロジェクト: jewelhuq/myitcrm1
<?php

/*###########################################################
# This program is distributed under the terms and   				#
# conditions of the GPL	and is free to use or modify  			#
# 													                  							#
# main.php                																#
# Version 0.1.0	21/02/2009 11:11:43 PM           						#
###########################################################*/
require_once 'include.php';
/* Get the page number we are on if first page set to 1 */
if (!isset($VAR['page_no'])) {
    $page_no = 1;
} else {
    $page_no = $VAR['page_no'];
}
/* assign the smarty array */
$smarty->assign('invoice_array', display_open_invoice($db, $page_no));
$smarty->display("workorder'.SEP.'main.tpl");
?>

コード例 #2
0
ファイル: view_unpaid.php プロジェクト: jewelhuq/myitcrm1
<?php

require_once 'include.php';
if (!xml2php("invoice")) {
    $smarty->assign('error_msg', "Error in language file");
}
if (!isset($VAR['page_no'])) {
    $page_no = 1;
} else {
    $page_no = $VAR['page_no'];
}
if (!($invoice = display_open_invoice($db, $page_no, $smarty))) {
    $smarty->assign('invoice', $invoice);
    $smarty->display('invoice' . SEP . 'view_unpaid.tpl');
} else {
    $smarty->assign('invoice', $invoice);
    $smarty->display('invoice' . SEP . 'view_unpaid.tpl');
}