コード例 #1
0
ファイル: customerslist.php プロジェクト: kisorbiswal/Creamy
include './php/Session.php';
$ui = \creamy\UIHandler::getInstance();
$lh = \creamy\LanguageHandler::getInstance();
$user = \creamy\CreamyUser::currentUser();
// get the type of customers.
$customerType = NULL;
$customerName = NULL;
if (isset($_GET["customer_type"])) {
    $customerType = $_GET["customer_type"];
    if (isset($_GET["customer_name"])) {
        $customerName = $_GET["customer_name"];
    } else {
        // if we have not been provided with the "human readable" name, we need to find it in the database.
        require_once './php/DbHandler.php';
        $db = new \creamy\DbHandler();
        $customerName = $db->getNameForCustomerType($customerType);
    }
}
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Creamy</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="css/ionicons.min.css" rel="stylesheet" type="text/css" />
	    <!-- iCheck for checkboxes and radio inputs -->
	    <link href="css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
        <!-- DATA TABLES -->