File: /home/mostafedeg/public_html/erp/controllers/bill.php
<?php
//the global file operation
include("../public/impOpreation.php");
// get the config file
include_once("../public/config.php");
//here the db files that include in the file
include("../public/include_dao.php");
//get the do the action
$do = $_GET['do'];
$langs = $_SESSION['erp_lang'];
include_once("../views/languages/$langs/success.php");
//here the global templates
//$smarty->display("header.html");
//here goes the instances and general variables
//Capital
//check and use the condetion that suite this action
if (empty($do)) {
$smarty->display("header.html");
//check if there is any rows in capital table
$smarty->display("manfacture/bill/bill_info.html");
$smarty->display("manfacture/bill/client_insurance.html");
$smarty->display("manfacture/bill/company_insurance.html");
$smarty->display("manfacture/bill/mantance.html");
$smarty->display("manfacture/bill/total.html");
$smarty->display("manfacture/bill/bill_footer.html");
$smarty->display("footer.html");
} elseif ($do == 'action') {
//nothing
//print_r($_POST['receptnumber']);
print_r('1');
} elseif ($do == 'afteraction') {
//nothing
print_r('just good');
} elseif ($do == "sucess") {
//here the smarty templates
$smarty->display("succes.html");
}
//here the global templates
////**************************** Functions ********************///
/* ===============================
function in this CONTROLLER
================================ */
?>