示例#1
0
 public function invoke()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $tpl = Bd_TplFactory::getInstance();
     $tpl->display('naviServerAdmin/operation/v2/messagedetail.tpl');
 }
示例#2
0
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Track_V1_GetDetailsTrack('param_get_details_track');
     $pageInfo = $pageService->execute($arrInput);
     //echo json_encode($pageInfo['data']['yaw_point']);
     if ($pageInfo['errno'] == 0) {
         $tpl = Bd_TplFactory::getInstance();
         $tpl->assign('track_details', json_encode($pageInfo['data']['gps']));
         $tpl->assign('yaw_point_list', $pageInfo['data']['yaw_point']);
         $tpl->assign('is_yaw', json_encode($pageInfo['data']['yaw_point']));
         $tpl->assign('track_count', json_encode($pageInfo['data']['track_count']));
         $tpl->assign('track_base_data', $pageInfo['data']['details']);
         /**
                     if(!Bd_PhpCas::isAuthenticated()) {
                         $user_name = mb_strtoupper(Bd_PhpCas::login());
                     }
                     else {
                         $user_name = mb_strtoupper(Bd_PhpCas::isAuthenticated());
                     }
                     **/
         $tpl->assign('user_name', $user_name);
         $tpl->display('naviServerAdmin/track/TrackDetails.tpl');
     } else {
         echo json_encode($pageInfo);
     }
 }
示例#3
0
 public function invoke()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Operation_V2_Details(null);
     $arrPageInfo = $pageService->execute($arrInput);
     $arrOutput = $arrPageInfo;
     //
     if ($arrInput['is_data']) {
         echo json_encode($arrOutput);
     } else {
         $tpl = Bd_TplFactory::getInstance();
         /*
                     if(!Bd_PhpCas::isAuthenticated()) {
            $user_name = mb_strtoupper(Bd_PhpCas::login());
                     }
                     else {
            $user_name = mb_strtoupper(Bd_PhpCas::isAuthenticated());
                     }
         */
         $tpl->assign('user_name', $user_name);
         $tpl->assign('operation_details', $arrOutput['data']);
         $tpl->assign('type_list', $arrOutput['type_list']);
         if ($arrOutput['data']['status'] && $arrOutput['data']['stop_time'] < time()) {
             $tpl->display('naviServerAdmin/operation/v2/operation_message_details.tpl');
         } else {
             $tpl->display('naviServerAdmin/operation/v2/showupdatemessage.tpl');
         }
     }
 }
示例#4
0
 public function invoke()
 {
     $pageService = new Service_Page_Operation_V2_ShowAddMessage(null);
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['post'];
     $data = $pageService->execute($arrInput);
     $tpl = Bd_TplFactory::getInstance();
     $tpl->assign('data', $data);
     $tpl->display('naviServerAdmin/operation/v2/showaddmessage.tpl');
 }
示例#5
0
 public function invoke()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Operation_V2_Preview(null);
     $arrOutput = $pageService->execute($arrInput);
     $tpl = Bd_TplFactory::getInstance();
     $tpl->assign('out', $arrOutput);
     #$tpl->assign('type_list',$arrOutput['type_list']);
     $tpl->display('naviServerAdmin/operation/v2/preview.tpl');
 }
示例#6
0
 public function invoke()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Operation_V2_PushStatics(null);
     $arr = $pageService->execute($arrInput);
     //echo json_encode($arr);
     $tpl = Bd_TplFactory::getInstance();
     $tpl->assign('out', $arr);
     $tpl->display('naviServerAdmin/operation/v2/pushstatics.tpl');
 }
示例#7
0
 public function invoke()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Operation_V1_View('param_view_operation');
     $arrPageInfo = $pageService->execute($arrInput);
     $arrOutput = $arrPageInfo;
     //        echo json_encode($arrOutput);
     $tpl = Bd_TplFactory::getInstance();
     //        echo json_encode($arrOutput['data']['operation_message_list']);
     $tpl->assign('operation_message_list', $arrOutput['data']['operation_message_list']);
     $tpl->assign('user_name', $arrOutput['data']['user_name']);
     $tpl->display('naviServerAdmin/operation/view_operation_message.tpl');
 }
示例#8
0
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Apiplatform_RegressionTest('param_apiplatform_regressiontest');
     $pageInfo = $pageService->execute($arrInput);
     Navilib_LogHook::addNotice('err_no', $pageInfo["errno"]);
     if (Navilib_CommonError::SUCCESS !== $pageInfo["errno"]) {
         Navilib_View::output($pageInfo, Navilib_View::JSON);
     } else {
         $tpl = Bd_TplFactory::getInstance();
         $tpl->assign('urlHost', $pageInfo['data']['urlHost']);
         $tpl->assign('proxyHost', $pageInfo['data']['proxyHost']);
         $tpl->assign('appName', $pageInfo['data']['appName']);
         $tpl->assign('userName', CURRENT_USER);
         $tpl->display('naviServerAdmin/apiplatform/RegressionTest.tpl');
     }
 }
示例#9
0
文件: Index.php 项目: WayWingsDev/mis
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     //        $pageService = new Service_Page_Feedback_V1_View('param_view_feedback');
     //        $arrPageInfo = $pageService->execute($arrInput);
     //        $arrOutput = $arrPageInfo;
     $tpl = Bd_TplFactory::getInstance();
     /*
            if(!Bd_PhpCas::isAuthenticated()) {
                $user_name = mb_strtoupper(Bd_PhpCas::login());
            }
            else {
                $user_name = mb_strtoupper(Bd_PhpCas::isAuthenticated());
            }
     */
     $tpl->assign('user_name', $user_name);
     $tpl->display('naviServerAdmin/index.tpl');
 }
示例#10
0
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Apiplatform_Testman('param_apiplatform_testman');
     $pageInfo = $pageService->execute($arrInput);
     Navilib_LogHook::addNotice('err_no', $pageInfo["errno"]);
     if (Navilib_CommonError::SUCCESS !== $pageInfo["errno"]) {
         Navilib_View::output($pageInfo, Navilib_View::JSON);
     } else {
         $tpl = Bd_TplFactory::getInstance();
         $tpl->assign('freqDomain', $pageInfo['data']['freqDomain']);
         $tpl->assign('freqModule', $pageInfo['data']['freqModule']);
         $tpl->assign('history', $pageInfo['data']['history']);
         $tpl->assign('offset', $pageInfo['data']['offset']);
         $tpl->assign('hasPre', $pageInfo['data']['hasPre']);
         $tpl->assign('hasNext', $pageInfo['data']['hasNext']);
         $tpl->assign('userName', CURRENT_USER);
         $tpl->display('naviServerAdmin/apiplatform/Testman.tpl');
     }
 }
示例#11
0
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $pageService = new Service_Page_Feedback_V1_FeedbackDetails('param_details_feedback');
     $arrPageInfo = $pageService->execute($arrInput);
     $arrOutput = $arrPageInfo;
     //将数据传到前端渲染页面
     $tpl = Bd_TplFactory::getInstance();
     /**
             if(!Bd_PhpCas::isAuthenticated()) {
                 $user_name = mb_strtoupper(Bd_PhpCas::login());
             }
             else {
                 $user_name = mb_strtoupper(Bd_PhpCas::isAuthenticated());
             }
             **/
     $tpl->assign('user_name', $user_name);
     $tpl->assign('feedback_details', $arrOutput['data']);
     $tpl->assign('pic_list', json_decode($arrOutput['data']['opt'], true));
     $tpl->display('naviServerAdmin/feedback/feedback_details.tpl');
 }
示例#12
0
 public function execute()
 {
     $arrRequest = Saf_SmartMain::getCgi();
     $arrInput = $arrRequest['get'];
     $currappid = $arrInput['appid'] ? $arrInput['appid'] : 1;
     $pageService = new Service_Page_Feedback_V1_View('param_view_feedback');
     $arrPageInfo = $pageService->execute($arrInput);
     $arrOutput = $arrPageInfo;
     $tpl = Bd_TplFactory::getInstance();
     $tpl->assign('feedback_list', $arrOutput['data']['feedback_list']);
     $tpl->assign('system_version_list', $arrOutput['data']['system_version_list']);
     $tpl->assign('app_version_list', $arrOutput['data']['app_version_list']);
     $tpl->assign('suggestion_type', $arrOutput['data']['suggestion_type']);
     $tpl->assign('product_list', $arrOutput['data']['product_list']);
     $tpl->assign('now_page', $arrOutput['data']['$now_page']);
     $tpl->assign('end_page', $arrOutput['data']['end_page']);
     $tpl->assign('pages', $arrOutput['data']['pages']);
     $tpl->assign('total_page_count', $arrOutput['data']['total_page_count']);
     $tpl->assign('currappid', $currappid);
     $tpl->assign('query', $arrInput);
     $tpl->assign('user_name', $arrOutput['data']['user_name']);
     $tpl->display('naviServerAdmin/feedback/view_feedback.tpl');
 }