adminOpenCart.php 6.88 KB

<meta charset="utf-8"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="th" xml:lang="th">
<head>
<title>ระบบจัดการหลังร้าน</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css" />        
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css" />

<link rel="stylesheet" type="text/css" href="view/stylesheet/stylesheet.css" />
<script type="text/javascript" src="view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="view/javascript/jquery/superfish/js/superfish.js"></script>



<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------

</script>
</head>
<body onload="initialize()">
<div id="container">
<div id="header">
  <div class="div1">
      <div class="div2">Yii Food</div>
      <div class="div3"><img src="view/image/lock.png" alt="" style="position: relative; top: 3px;" />&nbsp;คุณเข้าระบบในชื่อ <span><?php echo Yii::app()->session["ad_user"]; ?><br>
                  <a onClick="window.open('<?php echo Yii::app()->createUrl('site/index');?>');" class="top">หน้าร้าน</a> &nbsp;
                  <a class="top" href="<?php echo Yii::app()->createUrl('admin/logout');?>">ออกจากระบบ</a></br></span>
            </div>
      </div>
    <div id="mainMbMenu">
       <?php
      $this->widget('ext.mbmenu.MbMenu', array(
                                 
                            'items' => array(
                                 array('label' => 'หน้าหลัก', 'url' => array('admin/home')
                                ),
                                array(
                                    'label' => 'อาหาร',
                                    'items' => array(
                                        array('label' => 'ประเภทอาหาร', 'url' => array('/admin/TypeFood')),
                                        array('label' => 'ข้อมูลอาหาร', 'url' => array('/admin/ViewFood'))
                                    )
                                ),
                                array('label' => 'ส่วนเสริม',
                                    'items' => array(
                                        array('label' => 'สรุปการจัดส่ง', 'url' => array('admin/CheckStatusSend')),
                                        array('label' => 'รายการสั่ง', 'url' => array('admin/ViewOrder')),
                                        array('label' => 'การจัดส่ง', 'url' => array('admin/ViewSendWait')),
                                        array('label' => 'การชำระเงิน', 'url' => array('admin/ViewBank')),
                                    )),
                                array('label' => 'เกี่ยวกับร้าน',
                                    'items' => array(
                                        array('label' => 'ข้อมูลร้าน', 'url' => array('admin/FormLocationFood')),
                                        array('label' => 'ข้อมูลแอดมิน', 'url' => array('admin/ViewAdmin')),
                                        array('label' => 'ลูกค้า', 'url' => array('admin/ViewMember'))
                                    )),
                                array('label' => 'จัดแต่งหน้าร้าน',
                                    'items' => array(
                                        array('label' => 'แบนเนอร์', 'url' => array('admin/ViewBanner')),
                                        array('label' => 'โลโก้ร้าน', 'url' => array('admin/ViewLogo')),
                                        array('label' => 'เทมเพลตร้าน', 'url' => array('admin/ViewTemplate'))
                                    )),
                                 array('label' => 'รายงาน',
                                    'items' => array(
                                        array('label' => 'สรุปการขายแต่ละเดือน', 'url' => array('admin/ReportFood')),
                                        array('label' => 'สรุปการขายตามช่วงเวลา', 'url' => array('admin/ReportFoodBetween')),
                                       
                                    )),
                                
//				array('label'=>'อาหาร', 'url'=>array('/admin/ViewFood')),
//				array('label'=>'ประเภทอาหาร', 'url'=>array('/admin/TypeFood')),
//				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
//				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
                            )
                        ));
                        ?>
  </div>
  </div>
<div id="content">
  

	  <!-- Home And Grafe ภาพรวมร้านค้า สถิติ คำสั่งซื้อ -->
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" alt="" /> ระบบจัดการหลังร้าน</h1>
    </div>
    <div class="content">
      <?php echo $content; ?>
    </div>
  </div>
</div>
<!--สิ้นสุด หน้า คำสั่งซื้อ -->


<!--[if IE]>
<script type="text/javascript" src="view/javascript/jquery/flot/excanvas.js"></script>
<![endif]--> 
<script type="text/javascript" src="view/javascript/jquery/flot/jquery.flot.js"></script> 
<script type="text/javascript"><!--
function getSalesChart(range) {
	$.ajax({
		type: 'get',
		url: 'index.php?route=common/home/chart&token=68d968b4ab4e6d68b19175aca69e6fd6&range=' + range,
		dataType: 'json',
		async: false,
		success: function(json) {
			var option = {	
				shadowSize: 0,
				lines: { 
					show: true,
					fill: true,
					lineWidth: 1
				},
				grid: {
					backgroundColor: '#FFFFFF'
				},	
				xaxis: {
            		ticks: json.xaxis
				}
			}

			$.plot($('#report'), [json.order, json.customer], option);
		}
	});
}

getSalesChart($('#range').val());
//--></script> 
</div>
<div id="footer"><a href="http://www.Yii.com">Yii Food MVC</a> &copy;2015 Kira.<br />Version 1 <a href="http://www.opencart2004.com/" target="_blank" title="YiiFramework2015" >YiiFramework2015</a></div>
</body></html>