ShuanghongS 1 年之前
父節點
當前提交
0a97c61597
共有 3 個文件被更改,包括 16 次插入2 次删除
  1. 10 1
      main_new_version.php
  2. 2 0
      service/ocean_order.class.php
  3. 4 1
      utils/common.class.php

+ 10 - 1
main_new_version.php

@@ -49,7 +49,16 @@ switch ($action) {
         echo operation_log::getInstance()->operation_log();
         break;
     case 'main':
-        //todo
+        $menuList = array();
+        $menuList[] = array("index"=>'1',"label"=>"Dashboard","icon"=>"icon_data_fill_b","path"=>"/dashboard");
+        $menuList[] = array("index"=>'3',"label"=>"Booking","icon"=>"icon_booking__fill_b","path"=>"/booking");
+        $menuList[] = array("index"=>'4',"label"=>"Tracking","icon"=>"icon_tracking__fill_b","path"=>"/tracking");
+        if(_isApexLogin()){
+            $menuList[] = array("index"=>'6',"label"=>"System Management","icon"=>"icon_system__management_fill_b","type"=>"list",
+                "children"=>array(array("index" =>'5-4',"label" =>"Operation Log","path"=>"/Operationlog")));
+        }
+        common::echo_json_encode(200, $menuList);
+        exit();
         break;
     case 'main_report':
         $type = $_REQUEST["r_type"];

+ 2 - 0
service/ocean_order.class.php

@@ -807,6 +807,8 @@ class ocean_order {
                         'serial_no' =>$serial_no,
                         'can_upload_doc' => strtolower($_SESSION['ONLINE_USER']['can_upload_doc']) == 't' || strtolower($_SESSION['ONLINE_USER']['can_view_doc']) == 't',
                         'canEdiVgm' => _canEdiVgm(),
+                        'canViewAMSLog'=>_canViewAMSLog(),
+                        'canViewISFLog'=>_canViewISFLog(),
                         'copyright' =>$_COPYRIGHT);
         common::echo_json_encode(200,$data);                
         exit(); 

+ 4 - 1
utils/common.class.php

@@ -134,7 +134,10 @@ class common {
                 } else {
                     $_SESSION["LAST_OPERATE_TIME"] = time();
                     if (!_isAdmin() && $_GET["action"] != "linkcrm") {
-                        if (!utils::checkExist($_SESSION['ONLINE_USER']['permission'], $action) && !(stripos($action, "main") === 0) && !(stripos($action, "ajax") === 0)) {
+                        if (!utils::checkExist($_SESSION['ONLINE_USER']['permission'], $action) 
+                            && !(stripos($action, "main") === 0) 
+                            && !(stripos($action, "ajax") === 0)
+                            && !(stripos($action, "opreation_log") === 0)) {
                             $data = array("msg"=>"Permission Denied");
                             common::echo_json_encode(403, $data);
                             exit();