HEX
Server: Apache
System: Linux server1.royalgt4.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: mostafedeg (1125)
PHP: 5.6.40
Disabled: mail,passthru,parse_ini_file,show_source,eval,assert,pcntl_exec,dl,putenv,proc_open,popen
Upload Files
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
  ================================ */
?>