|
|
@@ -587,7 +587,7 @@ switch ($action) {
|
|
|
exit();
|
|
|
break;
|
|
|
case 'main_map_new':
|
|
|
- include ONLINE_ROOT . 'libs' . DS . 'map_config.ini.php';
|
|
|
+ //include ONLINE_ROOT . 'libs' . DS . 'map_config.ini.php';
|
|
|
//修改添加port_of_transshipment 和port_of_transshipment_name的坐标获取(有为空的可能)
|
|
|
$serial_no = $_REQUEST["serial_no"];
|
|
|
//$serial_no = "F41E6016-1A97-4C93-8198-53D8B3B26220";
|
|
|
@@ -620,28 +620,28 @@ switch ($action) {
|
|
|
// {"lng":"100.88333333","lat":"13.08333333","label":"Destination","infor":"LAEM CHABANG PORT,THAILAND","sort":"1","stime":null,"ptype":"pol"},
|
|
|
// {"lng":"-122.28640000","lat":"37.79784000","label":"Transfer","infor":"OAKLAND, CA, USA","sort":"2","stime":null,"ptype":"pod"}]';
|
|
|
//$rss = json_decode($json,true);
|
|
|
- global $mapdb;
|
|
|
- //查询线(包含所有的线)
|
|
|
- $Line = $mapdb->GetAll("select * from get_track_data('$serial_no',true)");
|
|
|
- $solidLine = array();
|
|
|
- $dottedLine = array();
|
|
|
- $rangePoint = array();
|
|
|
- foreach($Line as $line){
|
|
|
- if($line['tp'] == "1"){
|
|
|
- $solidLine[] = $line;
|
|
|
- }elseif($line['tp'] == "0"){
|
|
|
- $dottedLine[] = $line;
|
|
|
- }else{
|
|
|
- $rangePoint[] = $line;
|
|
|
- }
|
|
|
- }
|
|
|
- //如果没有虚线,这这个范围点也是异常的,不需要显示
|
|
|
- if(empty($dottedLine)){
|
|
|
- $rangePoint = array();
|
|
|
- }
|
|
|
- $data = array("point"=>$rss,"solidLine"=>$solidLine,"dottedLine"=>$dottedLine,"rangePoint"=>$rangePoint);
|
|
|
- common::echo_json_encode(200, $data);
|
|
|
- //common::echo_json_encode(200, $rss);
|
|
|
+ // global $mapdb;
|
|
|
+ // //查询线(包含所有的线)
|
|
|
+ // $Line = $mapdb->GetAll("select * from get_track_data('$serial_no',true)");
|
|
|
+ // $solidLine = array();
|
|
|
+ // $dottedLine = array();
|
|
|
+ // $rangePoint = array();
|
|
|
+ // foreach($Line as $line){
|
|
|
+ // if($line['tp'] == "1"){
|
|
|
+ // $solidLine[] = $line;
|
|
|
+ // }elseif($line['tp'] == "0"){
|
|
|
+ // $dottedLine[] = $line;
|
|
|
+ // }else{
|
|
|
+ // $rangePoint[] = $line;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // //如果没有虚线,这这个范围点也是异常的,不需要显示
|
|
|
+ // if(empty($dottedLine)){
|
|
|
+ // $rangePoint = array();
|
|
|
+ // }
|
|
|
+ // $data = array("point"=>$rss,"solidLine"=>$solidLine,"dottedLine"=>$dottedLine,"rangePoint"=>$rangePoint);
|
|
|
+ // common::echo_json_encode(200, $data);
|
|
|
+ common::echo_json_encode(200, $rss);
|
|
|
exit();
|
|
|
break;
|
|
|
case 'main_welcome':
|
|
|
@@ -840,7 +840,20 @@ switch ($action) {
|
|
|
break;
|
|
|
case 'tools':
|
|
|
tools::getInstance()->markSystem();
|
|
|
- break;
|
|
|
+ break;
|
|
|
+ case 'user_guide':
|
|
|
+ $rootPath = realpath(dirname(__FILE__)) . DS;
|
|
|
+ //common::download_file($rootPath."images\ACE-M1_ISF_ACI_User_Guide\ACE-M1_ISF_ACI_User_Guide.pdf", "ACE-M1_ISF_ACI_User_Guide_V2.0.pdf");
|
|
|
+ // PDF文件在服务器上的位置
|
|
|
+ $filename = $rootPath."userFile\KLN_Online_User_Guide_24.11.26.pdf";
|
|
|
+ $display_name = "KLN_Online_User_Guide_24_11_26.pdf";
|
|
|
+ // Header content type
|
|
|
+ header("Content-type: application/pdf");
|
|
|
+ header("Content-Length: " . filesize($filename));
|
|
|
+ header("Content-Disposition:attachment;filename=\"" . $display_name . "\"");
|
|
|
+ // 将文件发送到浏览器。
|
|
|
+ readfile($filename);
|
|
|
+ break;
|
|
|
default:
|
|
|
$data = array(
|
|
|
'msg' => 'Page not found',
|