<?php session_start(); include "connect/connect.php"; include "function.php"; if (!Checklogin()) { header("location: login_err.php"); //ทำหน้าเพื่อให้เข้าหน้า Login } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8" /> <title> Manage Customer </title> </head> <!-- breadcrumb --> <link rel="stylesheet" href="css/style_breadcrumb.css" media="screen" type="text/css" /> <!-- DC Table Styles I CSS --> <link type="text/css" rel="stylesheet" href="css/dc_tables1.css" /> <link type="text/css" rel="stylesheet" href="css/button.css" /> <!-- Start font--> <link rel="stylesheet" type="text/css" href="font-awesome\css\font-awesome.min.css"> <!--Bootstrap--> <link href="bootstrap_ 2/css/bootstrap.css" rel="stylesheet"> <link href="css/flat-ui.css" rel="stylesheet"> <link href="css/demo.css" rel="stylesheet"> <link rel="shortcut icon" href="images/bin.ico">
<?php require dirname(__FILE__) . '/include/config.inc.php'; $m_arr = array('index', 'scan', 'login', 'point', 'set', 'info', 'edit', 'logout'); $mode = $_GET['m']; Checklogin($mode); if (in_array($mode, $m_arr)) { $html_str = call_user_func($mode); include "html/{$mode}.html"; } else { $html_str = index(); include 'html/index.html'; }