|
|
@@ -1182,7 +1182,6 @@ class common {
|
|
|
$shipment_mode_arr = array("air","sea","road");
|
|
|
|
|
|
$sqlWhere = ' and ' . common::searchExtendHandNew("ocean", $_SESSION["ONLINE_USER"]);
|
|
|
- //$sqlWhere = common::check_input($sqlWhere);
|
|
|
$sqlWhere = " " . $sqlWhere;
|
|
|
|
|
|
$ContainerCount_Title = array();
|
|
|
@@ -1257,15 +1256,23 @@ class common {
|
|
|
|
|
|
public static function getTopBar(){
|
|
|
$sqlWhere = ' and ' . common::searchExtendHandNew("ocean", $_SESSION["ONLINE_USER"]);
|
|
|
- //$sqlWhere = common::check_input($sqlWhere);
|
|
|
$sqlWhere = " " . $sqlWhere;
|
|
|
|
|
|
$shippr_uncode_10_sql = "select count(shippr_uncode) as num,shippr_uncode from online_ocean where 1=1 $sqlWhere group by shippr_uncode order by num desc limit 10";
|
|
|
$shippr_uncode_10 = common::excuteListSql($shippr_uncode_10_sql);
|
|
|
+ //如果值没有:客户地址-->站点地址-->Port地址(POL/POD)
|
|
|
+ if(count($shippr_uncode_10) == 1 && empty($shippr_uncode_10[0]["shippr_uncode"])){
|
|
|
+ $shippr_uncode_10_sql = "select count(fport_of_loading_un) as num,fport_of_loading_un as shippr_uncode from online_ocean where 1=1 $sqlWhere group by fport_of_loading_un order by num desc limit 10";
|
|
|
+ $shippr_uncode_10 = common::excuteListSql($shippr_uncode_10_sql);
|
|
|
+ }
|
|
|
|
|
|
$consignee_uncode_10_sql = "select count(consignee_uncode) as num,consignee_uncode from online_ocean where 1=1 $sqlWhere group by consignee_uncode order by num desc limit 10";
|
|
|
$consignee_uncode_10 = common::excuteListSql($consignee_uncode_10_sql);
|
|
|
-
|
|
|
+ //如果值没有:客户地址-->站点地址-->Port地址(POL/POD)
|
|
|
+ if(count($consignee_uncode_10) == 1 && empty($consignee_uncode_10[0]["consignee_uncode"])){
|
|
|
+ $consignee_uncode_10_sql = "select count(mport_of_discharge_un) as num,mport_of_discharge_un as consignee_uncode from online_ocean where 1=1 $sqlWhere group by mport_of_discharge_un order by num desc limit 10";
|
|
|
+ $consignee_uncode_10 = common::excuteListSql($consignee_uncode_10_sql);
|
|
|
+ }
|
|
|
|
|
|
$toporigin = array();
|
|
|
$toporiginMap = array();
|
|
|
@@ -1281,7 +1288,7 @@ class common {
|
|
|
// $json = '{"lng":"100.78594000","lat":"13.68521000","label":"'.$orgin['origin'].'","infor":"LAT KRABANG, THAILAND","sort":"0","stime":null,"ptype":"por"}';
|
|
|
// $map = json_decode($json,true);
|
|
|
|
|
|
- $toporiginMap[] = array("qandl"=>array($map['lng']-$i*10,$map['lat']-$i*10),
|
|
|
+ $toporiginMap[] = array("qandl"=>array($map['lng'],$map['lat']),
|
|
|
"divIcon" => array("iconSize"=>0),
|
|
|
"name" =>$orgin['origin'],
|
|
|
"color" =>common::getItemStyle("top",$i),
|
|
|
@@ -1477,10 +1484,10 @@ class common {
|
|
|
public static function getMilestonesInfo($ocean){
|
|
|
//Milestones info 列名固定
|
|
|
$Milestones_column = array();
|
|
|
- $Milestones_column[] = array("title" =>"Milestones","field" =>"milestones","formatter" =>"","type" =>"normal");
|
|
|
- $Milestones_column[] = array("title" =>"Date Time","field" =>"date_time","formatter" =>"","type" =>"dateTime");
|
|
|
- $Milestones_column[] = array("title" =>"Locations","field" =>"locations","formatter" =>"","type" =>"normal");
|
|
|
- $Milestones_column[] = array("title" =>"Remarks","field" =>"remarks","formatter" =>"","type" =>"normal");
|
|
|
+ $Milestones_column[] = array("title" =>"Milestones","field" =>"milestones","formatter" =>"normal","type" =>"normal");
|
|
|
+ $Milestones_column[] = array("title" =>"Date Time","field" =>"date_time","formatter" =>"dateTime","type" =>"normal");
|
|
|
+ $Milestones_column[] = array("title" =>"Locations","field" =>"locations","formatter" =>"normal","type" =>"normal");
|
|
|
+ $Milestones_column[] = array("title" =>"Remarks","field" =>"remarks","formatter" =>"normal","type" =>"normal");
|
|
|
|
|
|
//Milestones 数据信息待定
|
|
|
$Milestones_data = array();
|