예제 #1
0
<?php

include_once "engine/header.php";
if (checkLoginUser($USER_TYPE_RECEPTION)) {
    initUser();
} else {
    die("Please login first. <br>Error 103");
}
?>
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Untitled Document</title>
        <script src="jquery-1.10.2.min.js"></script>
        <style type="text/css">
            .myButton {
                width: 200px;
                margin-left: 150px;
            }
        </style>
        <script>
            function createNewOrder(){
                $('#div_neworder').css("visibility", "visible");
            }
            function closeNewOrder(){
                $('#div_neworder').css("visibility", "hidden");
            }
            function showAssignOrder(OrderID){
                $.getJSON("engine/orderdetail.php", {OrderID:OrderID}, ret_orderdetail)
            }
예제 #2
0
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GLPI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
checkLoginUser();
if (isset($_GET["popup"])) {
    $_SESSION["glpipopup"]["name"] = $_GET["popup"];
}
if (isset($_SESSION["glpipopup"]["name"])) {
    switch ($_SESSION["glpipopup"]["name"]) {
        case "search_config":
            popHeader($LANG['common'][12], $_SERVER['PHP_SELF']);
            if (isset($_POST["add"]) || isset($_POST["delete"]) || isset($_POST["delete_x"]) || isset($_POST["up"]) || isset($_POST["up_x"]) || isset($_POST["down"]) || isset($_POST["down_x"])) {
                echo "<script type='text/javascript' >\n";
                echo "window.opener.location.reload();";
                echo "</script>";
            }
            include "displaypreference.form.php";
            break;
        case "test_rule":
예제 #3
0
파일: work.php 프로젝트: AchalaM/antweb
.<?php 
include_once "engine/header.php";
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if (checkLoginUser($USER_TYPE_EMPLOYEE)) {
    initUser();
} else {
    die("Please login first. <br>Error 103");
}
?>
<html>
    <head>
        <title>Ant Creations</title>
    </head>
    <body>
        <h1>Employee View</h1>
        Welcome <?php 
echo $cur_emp_name;
?>
        <div>Due Works<div>
        <table width="50%" border="1">
            <tr><td>Work ID</td><td>work Description</td><td>Due Date</td><td>Operation</td></tr>
            <?php 
$res_work = mysql_query("select * from {$tbl_work} where emp_id={$cur_emp_id} limit 0,10");
while ($res_ar = mysql_fetch_array($res_work)) {
    $work_id = $res_ar['id'];
    $work_type = $res_ar['type'];
    $work_desc = $res_ar['desc'];
    $work_duedate = $res_ar['due_date'];