コード例 #1
0
ファイル: home_menu_model.php プロジェクト: quantm/mywebprovn
 function headermenu()
 {
     $menuData = array();
     ProjectCommon::GetTree(&$menuData, "view_menus", "ID_MNU", "ID_MNU_PARENT", 1, 1);
     for ($i = 0; $i < count($menuData); $i++) {
         $menuData[$i]['ACTID'] = $actid;
     }
     $menuData = array_values($menuData);
     $menu->menu = ProjectCommon::buildMenuUL_LI(&$menuData);
     return $menu;
 }
コード例 #2
0
ファイル: detail.php プロジェクト: quantm/mywebprovn
<?php

require_once 'application/models/common.php';
echo ProjectCommon::useDlgConfirm();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Thông tin chi tiết</title>
  <meta charset="utf-8">
  <link href='/css/general.css' rel='Stylesheet'>
	<script type="text/javascript" src="/js/popcalendar/popcalendar.js"></script>
	<script type="text/javascript" src="/js/validate.js"></script>
	<script type="text/javascript" src="/js/dlg_confirm.js"></script>
	<script type="text/javascript" src="/js/common.js"></script>

 </head>
		
 <body>
 
	<div style="position:absolute; left: 1200px; top: 10px;">
	<a title='Đóng' href='/department/index/'>X</a>
	</div>

<form id='frm'	name='frm' method='post'>		
	<table width="97%">
		
				<caption>
							<font color=red>Danh sách phòng ban của</font>
							<?php 
foreach ($emp_caption as $row) {
コード例 #3
0
ファイル: sent.php プロジェクト: quantm/mywebprovn
                    <div style="float:left;width:100%;height:20px;">
                        <div style="float:left">
                            &nbsp;
                            Tìm theo tiêu đề:
                            <?php 
echo ProjectCommon::AutoComplete(autocomplete_model::getTieude(), "id_thongtin", "tieude", "id_thongtin", "search", true, "width:200px", "ID_SEARCH", "search", $auto, "AutoSearch Box");
?>
 
                            &nbsp;
                            <input  type="button" class="input_button" onclick="document.frmInbox.submit();" name="send" value="Tìm" title="Tìm">
                        </div>
                        <div style="float:left">
                            &nbsp;
                            Tìm theo người gửi:
                            <?php 
echo ProjectCommon::AutoComplete(autocomplete_model::getKeyword(), "ID_U", "EMP_NAME", "ID_U", "nguoigui", true, "width:200px", "ID_SEARCH", "nguoigui", $auto, "AutoSearch Box");
?>
  
                            &nbsp;
                            <input  type="button" class="input_button" onclick="document.frmInbox.submit();" name="send" value="Tìm" title="Tìm">
                        </div>
                        <div style="float:right">
                            Tìm theo chủ đề
                            <select name="filter_object"  style="width:200px" id="filter_object" class="inputbox" size="1" onchange="document.frmInbox.submit();">
                                <?php 
echo message_model::chudeCombo($subject, $subject);
?>
								
                            </select>
                        </div>
                    </div>				
コード例 #4
0
ファイル: list.php プロジェクト: quantm/mywebprovn
        <script type="text/javascript" src="/js/popcalendar/popcalendar.js"></script>

    </head>
    <body>
        <br><br>
        <form id="frm" name="frm" action="/user/index/" method="POST">

            <fieldset>
                <legend>Quản lý nhân sự<img src='/images/employee.png'></img></legend>

                <table>
                    <tr>
                        <td  align="left" width='100%'>
                            Từ khóa tìm kiếm :  
                            <?php 
echo ProjectCommon::AutoComplete(autocomplete_model::getKeyword(), "ID_U", "EMP_NAME", "ID_U", "SEARCH_STRING", true, "width:200px", "ID_SEARCH", "SEARCH_STRING", $auto, "Auto Suggestion Textbox - Gõ vào textbox tìm kiếm này sẽ hiển thị tên của cán bộ cần tìm kiếm - Arrow Key Up and Arrow Key Down để duyệt - Bấm Tab hoặc trỏ chuột để chọn");
?>
                                           
                            <input type=hidden name=advanced>
                            <input type="submit"  value="Tìm kiếm" class="input_button"/>
                            <input type="submit"  value="Làm lại" class="input_button"/>
                            <input type=hidden name=ADVANCEDVALUE value='<?php 
echo $this->ADVANCED;
?>
'>
                        </td>
                    <div style='position:absolute; left: 500px; top: 265px;'>
                        <b>Xem theo phòng ban</b>
						<select id='dep' name='dep' onchange="document.frm.submit();document.frm.action='/user/index'">
							<option  value=> - Chọn phòng ban - </option>
							<?php 
コード例 #5
0
ファイル: common.php プロジェクト: quantm/mywebprovn
 /**
  * Tạo select user từ select department
  * 
  * @param int $DName tên combobox chứa danh sách department
  * @param int $UName tên combobox chứa danh sách user thuộc department trên
  * @return html code
  */
 static function writeSelectDepartment($DName, $UName)
 {
     global $db;
     $arr_user = '******' . $UName;
     $department = array();
     ProjectCommon::GetTree(&$department, "QTHT_DEPARTMENTS", "ID_DEP", "ID_DEP_PARENT", 1, 1);
     $r = $db->query("\n\t\t\t\tSELECT\n\t\t\t\t\tDEP.ID_DEP,U.ID_U,CONCAT(E.FIRSTNAME , ' ' , E.LASTNAME) as NAME\n\t\t\t\tFROM\t\t\t\t\n\t\t\t\t\tQTHT_USERS U \n\t\t\t\t\tINNER JOIN QTHT_EMPLOYEES E ON E.ID_EMP = U.ID_EMP\n\t\t\t\t\tINNER JOIN QTHT_DEPARTMENTS DEP ON E.ID_DEP=DEP.ID_DEP\n\t\t\t\tORDER BY\n\t\t\t\t\tU.ORDERS, E.LASTNAME\n\t\t\t");
     $user = $r->fetchAll();
     $r->closeCursor();
     $html .= "    \t<select name={$DName} id={$DName} onchange='FillComboByCombo(this,document.getElementById(\"{$UName}\"),{$arr_user});'>";
     $html .= "        \t<option value=0>--Chọn phòng--</option>";
     for ($i = 0; $i < count($department); $i++) {
         $html .= "        <option value=" . $department[$i]["ID_DEP"] . ">" . str_repeat("--", $department[$i]["LEVEL"]) . ($department[$i]["LEVEL"] > 1 ? "-> " : "") . $department[$i]["NAME"] . "</option>";
     }
     $html .= "        </select>";
     $html .= "<script>";
     $html .= "\tvar {$arr_user} = new Array();";
     for ($i = 0; $i < count($user); $i++) {
         $html .= $arr_user . "[" . $i . "] = new Array('" . $user[$i]['ID_DEP'] . "','" . $user[$i]['ID_U'] . "','" . $user[$i]['NAME'] . "');";
     }
     $html .= "</script>";
     return $html;
 }
コード例 #6
0
ファイル: order.php プロジェクト: quantm/mywebprovn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
require_once 'application/models/common.php';
echo ProjectCommon::alertConfirm();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php 
echo $title;
?>
</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link href='/css/general.css' rel='Stylesheet'>
                <link rel="cssheet" type="text/css" href="/js/shadowbox/jquery.css" />
                <script src="/js/common.js" type="text/javascript" language="javascript"></script>
                <script src="/js/shadowbox/jquery.js" type="text/javascript"></script>    
                <script type="text/javascript" src="/js/popcalendar/popcalendar.js"></script>
                <script type="text/javascript" src="/js/validate.js"></script>
                <script type="text/javascript" src="/js/Ajax/AjaxEngine.js"></script>
                <script type="text/javascript" src="/js/dlg_confirm.js"></script>
                <style type="text/css">
                    <!--
                    #Layer1 {
                        position:absolute;
                        width:313px;
                        height:41px;
                        z-index:5;
                        left: 261px;
                        font-size:16px;
                        top: 28px;
                        color:#00FF66;
コード例 #7
0
ファイル: index.php プロジェクト: quantm/mywebprovn
                            <td>
                                <input type='text' name='NAME' id='NAME' title='Tìm theo tên khách hàng'/>
                            </td>
                        </tr>

                        <tr>
                            <td>Tìm kiếm theo tên công ty</td>
                            <td>
                                <input type='text' name='COMPANY' id='COMPANY' title='Tìm theo tên công ty'/>	
                                <input type='button' onClick="document.frm.action='/customer/index/';document.frm.submit();" value='Tìm kiếm khách hàng' class='input_button'/>
                            </td>
                        </tr>	
                        <tr>
                            <td>	Hiển thị nhanh thông tin khách hàng</td>
                            <td><?php 
echo ProjectCommon::AutoComplete(autocomplete_model::getAllUser(), "ID_U", "NAME", "ID_U", "FASTVIEW", true, "width:400px", "ID_SEARCH", "SEARCH_STRING", $auto, "");
?>
</td>
                        </tr>
                    </table>

                </div>
                <div style="float: right;margin-right:21px;margin-top:18px">
                    <center>
                        <img onClick="DeleteButtonClick();" src="/images/delete_customer_48.png" /></br>
                        <span>Xóa</span>
                    </center>
                </div>

                <table class="adminlist">
                    <thead>