| | |
| | | </div>
|
| | | </li>
|
| | |
|
| | | <li>
|
| | | <div class="search">
|
| | | <div id="Date_container" class="select-container" style="overflow: hidden;cursor:pointer" onclick="JS_OrdDateType()">
|
| | | <span class="select-content" style="width: 46px;" id="OrdDateType_span">期间:<?php echo $OrdDateTypeName?></span><span class="arrow" id="Date_arrow"></span>
|
| | | </div>
|
| | | <div id="Date_list" class="select-list scroll-pane" style="overflow: hidden; position: absolute; background-color: white; width: 65px; display: none;background-position: initial initial; background-repeat: initial initial;margin-left: 35px;">
|
| | | <div class="jspContainer" style="width: 63px;">
|
| | | <div style="padding: 0px; top: 0px; width: 63px;">
|
| | | <?php for($i=0;$i<count($OrdDateTypes);$i++) {?>
|
| | | <span title="<?php echo $OrdDateTypes[$i][1]?>" onmouseover="JS_OrdDateTypeMouseover('OrdDateType_<?php echo $OrdDateTypes[$i][0]?>')" onclick="JS_OrdDateTypeJump2('<?php echo $OrdDateTypes[$i][0]?>','期间:<?php echo $OrdDateTypes[$i][1]?>')" id="OrdDateType_<?php echo $OrdDateTypes[$i][0]?>" class="list-option<?php if ($OrdDateTypes[$i][0]==$OrdDateType){echo " option";}?>"><?php echo $OrdDateTypes[$i][1]?></span>
|
| | | <?php }?>
|
| | | <span title="自定义" onmouseover="JS_OrdDateTypeMouseover('OrdDateType_0')" onclick="JS_OrdDateTypeCreateOpen()" id="OrdDateType_0" name="OrdDateType" class="list-option">自定义</span>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </li>
|
| | | <div class="search">
|
| | | <form action="?" method="post">
|
| | | <div class="input">
|
| | | <input name="orderby" id="Menu_orderby" type="hidden" value="<?php echo $orderby?>">
|
| | | <input name="OrdClassType" id="Menu_OrdClassType" type="hidden" value="<?php echo $OrdClassType?>">
|
| | | <input name="OrdType" id="Menu_OrdType" type="hidden" value="<?php echo $OrdType?>">
|
| | | <input name="OrderLevel" id="Menu_OrderLevel" type="hidden" value="<?php echo $OrderLevel?>">
|
| | | <input name="UnitNameID" id="Menu_UnitNameID" type="hidden" value="<?php echo $UnitNameID?>">
|
| | | <input name="CoopUnitID" id="Menu_CoopUnitID" type="hidden" value="<?php echo $CoopUnitID?>">
|
| | |
|
| | | <input name="OrdDateType" id="Menu_OrdDateType" type="hidden" value="<?php echo $OrdDateType?>">
|
| | | <input name="OrdDateStart" id="Menu_OrdDateStart" type="hidden" value="<?php echo $OrdDateStart?>">
|
| | | <input name="OrdDateEnd" id="Menu_OrdDateEnd" type="hidden" value="<?php echo $OrdDateEnd?>">
|
| | | <input type="text" id="searchTXT" name="searchTXT" value="<?php echo $searchTXT?>" />
|
| | | </div>
|
| | | <div class="button">
|
| | | <input type="submit" name="submit" value="搜索" />
|
| | | </div>
|
| | | </form>
|
| | | </div>
|
| | | </ul>
|
| | | </div>
|
| | | <div class="dialogJ dialogJfix dialogJshadow" id="OrdDateTypeCreate" style="width: 440px;right: 80px; top: 150px;height:80px ;display:none;">
|
| | | <div class="dialogJtitle">
|
| | | <a href="javascript:JS_OrdDateTypeCreateClose();" class="dialogJclose" title="关闭本窗口"> </a>
|
| | | <span class="dialogJtxt" id="EditPhotoTXT">请选择时间段</span>
|
| | | </div>
|
| | | <div class="dialogJcontent" style="margin-left: 5px;margin-right:5px;">
|
| | | <div class="input" style="float:left;margin-top: 10px;margin-left: 5px;" id="two-inputs">
|
| | | 期间:
|
| | | <input type="text" id="OrdDateStart" name="OrdDateStart" class="date" style="width:138px;" value="<?php echo $OrdDateStart?>">
|
| | | 至
|
| | | <input type="text" id="OrdDateEnd" name="OrdDateEnd" class="date" style="width:138px;" value="<?php echo $OrdDateEnd?>">
|
| | | |
| | | </div>
|
| | | <div class="input" style="float:left;margin-top: 5px;margin-left: 5px;"><input type="button" class="dialogJbtn first-child" onclick="JS_OrdDateJump2()" value="查询"></div>
|
| | | </div>
|
| | | </div>
|
| | | <!--时间选择js liang------------->
|
| | | <link rel="stylesheet" href="css/daterangepicker.css">
|
| | | <script src="js/jquery-1.12.3.min.js"></script>
|
| | | <script src="js/moment.min.js"></script>
|
| | | <script src="js/jquery.daterangepicker.js"></script>
|
| | | <script>
|
| | | $(function()
|
| | | {
|
| | | $('#two-inputs').dateRangePicker(
|
| | | {
|
| | | separator : ' to ',
|
| | | getValue: function()
|
| | | {
|
| | | if ($('#OrdDateStart').val() && $('#OrdDateEnd').val() )
|
| | | return $('#OrdDateStart').val() + ' to ' + $('#OrdDateEnd').val();
|
| | | else
|
| | | return '';
|
| | | },
|
| | | setValue: function(s,s1,s2)
|
| | | {
|
| | | $('#OrdDateStart').val(s1);
|
| | | $('#OrdDateEnd').val(s2);
|
| | | }
|
| | |
|
| | | });
|
| | | });
|
| | | </script>
|
| | | <!--时间选择js liang------------->
|
| | | <script type="text/javascript">
|
| | | //时间表列显示下拉菜单
|
| | | function JS_OrdDateType(){
|
| | | if (Date_container.className!="select-container select-container-show-list"){
|
| | | Date_container.className="select-container select-container-show-list";
|
| | | Date_arrow.className="arrow arrow-up";
|
| | | Date_list.style.display="block";
|
| | | //OrdClass_container.className="select-container";
|
| | | //OrdClass_arrow.className="arrow";
|
| | | //OrdClass_list.style.display="none";
|
| | | //OrdDateTypeCreate.style.display="none";
|
| | | }
|
| | | else {
|
| | | Date_container.className="select-container";
|
| | | Date_arrow.className="arrow";
|
| | | Date_list.style.display="none";
|
| | | }
|
| | | }
|
| | | //时间表列指针移动到下拉菜单
|
| | | function JS_OrdDateTypeMouseover(id){
|
| | | var d=document.getElementById(id);
|
| | | <?php for($i=0;$i<count($OrdDateTypes);$i++) {?>
|
| | | document.getElementById("OrdDateType_<?php echo $OrdDateTypes[$i][0]?>").className="list-option";
|
| | | <?php }?>
|
| | | document.getElementById("OrdDateType_0").className="list-option";
|
| | | d.className="list-option option";
|
| | | }
|
| | | //自定义时间-打开窗口
|
| | | function JS_OrdDateTypeCreateOpen()
|
| | | {
|
| | | JS_OrdDateType();
|
| | | OrdDateTypeCreate.style.display="block";
|
| | | }
|
| | | //自定义时间-关闭窗口
|
| | | function JS_OrdDateTypeCreateClose()
|
| | | {
|
| | | JS_OrdDateType();
|
| | | OrdDateTypeCreate.style.display="none";
|
| | | }
|
| | | //自定义时间-确定时间
|
| | | function JS_OrdDateTypeCreateSave()
|
| | | {
|
| | | document.getElementById('ServiceOrdTraStreet').value=document.getElementById('Duration').value;
|
| | | document.getElementById('ServiceOrdTraEnd').value=document.getElementById('ServiceOrdTraEnd').value;
|
| | | document.getElementById('ServiceOrdTraStreetCoo').value=results.sw.point.lng + ','+ results.sw.point.lat; //起点坐标
|
| | | document.getElementById('ServiceOrdTraEndCoo').value=results.Lu.point.lng + ','+ results.Lu.point.lat; //起点坐标
|
| | | }
|
| | | //时间类表列转跳
|
| | | function JS_OrdDateJump(id){
|
| | | var OrdDateStart=document.getElementById("OrdDateStart").value;
|
| | | var OrdDateEnd=document.getElementById("OrdDateEnd").value;
|
| | | //var searchTXT=document.getElementById("searchTXT").value;
|
| | | window.location.href='?<?php echo $page_URL_noDate?>&OrdDateType=0&OrdDateStart='+OrdDateStart+'&OrdDateEnd='+OrdDateEnd;
|
| | | }
|
| | | //自定义时间转跳
|
| | | function JS_OrdDateTypeJump(id){
|
| | | //var searchTXT=document.getElementById("searchTXT").value;
|
| | | window.location.href='?<?php echo $page_URL_noDate?>&OrdDateType='+id;
|
| | | }
|
| | |
|
| | | //时间表列转跳
|
| | | function JS_OrdClassTypeJump(id){
|
| | | //var searchTXT=document.getElementById("searchTXT").value;
|
| | | window.location.href='?<?php echo $page_URL_noDate?>&OrdClassList='+id;
|
| | | }
|
| | | |
| | | </script>
|
| | | <!-- end box / title -->
|
| | | <?php //数据读取
|
| | | $is_CSV=0; ?>
|
| | | <?php require 'Report_DispatchDetailed_Data.php';?>
|
| | | |
| | | <?php require '/inc/SystemMessages.php';?>
|
| | | <div class="table" style="overflow:auto">
|
| | | <table>
|
| | | <?php if ($SystemMessageType!="2"){ ?>
|
| | | <thead>
|
| | | <tr style="white-space: nowrap;">
|
| | | <?php
|
| | | for($x=0;$x<$FormArrayX;$x++) {
|
| | | if ($x==$FormArrayX-1){
|
| | | $classHtml=" class=\"last\"";
|
| | | }
|
| | | elseif ($x==0){
|
| | | $classHtml=" class=\"selected\"";
|
| | | }else{
|
| | | $classHtml="";
|
| | | }
|
| | | echo "<th$classHtml>".$FormArray[0][$x]."</th>";
|
| | | }
|
| | | ?>
|
| | | </tr>
|
| | | </thead>
|
| | | <tbody>
|
| | | <?php
|
| | | for($y=1;$y<count($FormArray);$y++) {
|
| | | echo "<tr style=\"white-space: nowrap;\">";
|
| | | for($x=0;$x<count($FormArray[$y]);$x++) {
|
| | | if ($x==count($FormArray[$y])-1){
|
| | | $classHtml=" class=\"category category2 last\"";
|
| | | }
|
| | | elseif ($x==0){
|
| | | $classHtml=" class=\"selected\"";
|
| | | }else{
|
| | | $classHtml=" class=\"category category2\"";
|
| | | }
|
| | | echo "<td$classHtml>".$FormArray[$y][$x]."</td>";
|
| | | }
|
| | | }
|
| | | ?>
|
| | | <?php }?>
|
| | | <?php
|
| | | $classHtml="";
|
| | | for($j=$y;$j<=20;$j++) {
|
| | | echo "<tr>";
|