index.php 2.39 KB
Newer Older
majidbeigi's avatar
majidbeigi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
<?php
	include_once('../../library/config.php');
    $logadmin = new ADMIN();
    if(!$logadmin->logincheck()){
        header('location:../../adminn/login/');
    }
?>

<!DOCTYPE html>
<html>
<head>
        <?php
            include_once($_SERVER['DOCUMENT_ROOT'].SITE.'/library/head.php');               
        ?>
	<script type="text/javascript">
		function doSearch(){
			$('#tt').datagrid('load',{
				suser: $('#suser').val()
			});
		}
	</script>
</head>
<body dir="rtl">
<!-- Base Table -->
<table class="body" cellspacing="0" cellpadding="0" align="center">
    <!-- Head -->
    <?php
        include($_SERVER['DOCUMENT_ROOT'].SITE.'/library/header.php');
    ?>
<tr>
    <!-- Main -->
    <td align="center" >
    <div id="main" align="center"  class="ui-corner-all , ui-widget-content">
    <!-- Top Menu -->
    <?php
        include($_SERVER['DOCUMENT_ROOT'].SITE.'/adminn/library/topmenu.php');
    ?>
        یادداشت ها
        <hr />
   	<table id="tt" class="easyui-datagrid" style="width:940px;height: 410px;" url="adminn/comments/gd.php" 
       rownumbers="true"   toolbar="#tb" nowrap="false" pagination="true" singleSelect="true" pageList="[12,20,30]" pageSize="12" >
		<thead>
			<tr>
                <th field="lead_id" width="40">سرنخ</th>
                <th field="name" width="130">دکتر</th>
                <th field="text"  width="500" >یاداشت</th>
                <th field="user"  width="80" >کاربر</th>
                <th align='left' field="create_date" width="130" dir="ltr">تاریخ</th>
			</tr>
		</thead>
	</table>
    <div id="tb" style="padding:3px">
        <span>کاربر:</span>
        <select id="suser" >
            <?php
                $user = new USER();
                $user->load();
                $i=0;
                while(isset($user->id_user[$i]) && $user->id_user[$i])
                {
                    print"<option value='".$user->id_user[$i]."'>".$user->name[$i]."</option>";
                    $i++;
                }
            ?>
        </select>
		<a href="#" class="easyui-linkbutton" style="border: 1px solid gray;" plain="true" onclick="doSearch()">بروزرسانی</a>
    </div> 
    </div>
    </td>
</tr>
<!-- Footer -->

        <?php

            include($_SERVER['DOCUMENT_ROOT'].SITE.'/library/footer.php');

        ?>

</table>

</body>

</html>