⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 report_order_search.tpl

📁 渣渣网络商店系统ZZShop v1.0完整运行程序,MYSQL数据库,APACHE服务器
💻 TPL
字号:
<iframe name='ifrmHidden' width=0 height=0></iframe>
<div id=divProcessing style='position: absolute; z-index:1000; height: 40; background: #F98F84; color:White;width:200; border: 1px solid black; text-align:center; vertical-align: bottom; display:none'>数据读取中...</div>
<script language='javascript'>
<!--
	divProcessing.style.left = Math.round(screen.availWidth / 2) - 100;
	divProcessing.style.top = Math.round(screen.availHeight / 2) - 20 + document.body.scrollTop;
	
	function showProcessing()
	{
		divProcessing.style.left = Math.round(screen.availWidth / 2) - 100 + document.body.scrollLeft;
		divProcessing.style.top = Math.round(screen.availHeight / 2) - 20 + document.body.scrollTop;
		
		divProcessing.style.display = 'block';
	}
//-->
</script>
<script language='javascript'>
<!-- 
	var Countrys	= new Array();
	var Provinces	= new Array();
	var Citys		= new Array();
	var Regions		= new Array();
	var pos			= 0;
	
	<!-- beginRow CountryList -->
	Countrys[pos]			= new Array();
	Countrys[pos]['ID']		= '{CountryList.ID}';
	Countrys[pos++]['Name']	= '{CountryList.Name}';
	<!-- endRow CountryList -->
	pos = 0;
	<!-- beginRow ProvinceList -->
	Provinces[pos]			= new Array();
	Provinces[pos]['ID']		= '{ProvinceList.ID}';
	Provinces[pos]['CountryID']	= '{ProvinceList.CountryID}';
	Provinces[pos++]['Name']	= '{ProvinceList.Name}';
	<!-- endRow ProvinceList -->
	pos = 0;
	<!-- beginRow CityList -->
	Citys[pos]			= new Array();
	Citys[pos]['ID']		= '{CityList.ID}';
	Citys[pos]['CountryID']	= '{CityList.CountryID}';
	Citys[pos]['ProvinceID']= '{CityList.ProvinceID}';
	Citys[pos++]['Name']	= '{CityList.Name}';
	<!-- endRow CityList -->
	pos = 0;
	<!-- beginRow RegionList -->
	Regions[pos]			= new Array();
	Regions[pos]['ID']		= '{RegionList.ID}';
	Regions[pos]['CountryID']	= '{RegionList.CountryID}';
	Regions[pos]['ProvinceID']	= '{RegionList.ProvinceID}';
	Regions[pos]['CityID']		= '{RegionList.CityID}';
	Regions[pos++]['Name']	= '{RegionList.Name}';
	<!-- endRow RegionList -->

	function CountryChange()
	{
		var Obj = document.frmSearch;
		
		for(var i = Obj.Province.length - 1; i >= 0; i--)	Obj.Province.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---请选择省/州/郡---';
		element.value	= '';
		
		Obj.Province.add(element);

		for(var i = Obj.City.length - 1; i >= 0; i--)	Obj.City.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---请选择市县---';
		element.value	= '';
		
		Obj.City.add(element);

		for(var i = Obj.Region.length - 1; i >= 0; i--)	Obj.Region.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---请选择地区---';
		element.value	= '';
		
		Obj.Region.add(element);

		if(!Obj.Country.options[Obj.Country.selectedIndex].value) return ;
		
		for(var i = 0; i < Provinces.length; i ++)
		{
			if(Provinces[i]['CountryID'] != Obj.Country.options[Obj.Country.selectedIndex].value) continue;
			
			element	= document.createElement('OPTION');

			element.text	= Provinces[i]['Name'];
			element.value	= Provinces[i]['ID'];
			
			Obj.Province.add(element);
		}
		//ifrmHidden.location = "{CurrentURL}&code=chgcountry&CountryID=" + Obj.Country.options[Obj.Country.selectedIndex].value;
	}

	function CityChange()
	{
		var Obj = document.frmSearch;

		for(var i = Obj.Region.length - 1; i >= 0; i--)	Obj.Region.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---请选择地区---';
		element.value	= '';
		
		Obj.Region.add(element);
		
		if(!Obj.City.options[Obj.City.selectedIndex].value) return ;
	
		for(var i = 0; i < Regions.length; i ++)
		{
			if(Regions[i]['CityID'] != Obj.City.options[Obj.City.selectedIndex].value) continue;
			
			element	= document.createElement('OPTION');

			element.text	= Regions[i]['Name'];
			element.value	= Regions[i]['ID'];
			
			Obj.Region.add(element);
		}
		
		showProcessing();
		ifrmHidden.location = "{CurrentURL}&code=chgcity&CityID=" + Obj.City.options[Obj.City.selectedIndex].value;
	}

	function ProvinceChange()
	{
		var Obj = document.frmSearch;
		
		for(var i = Obj.City.length - 1; i >= 0; i--)	Obj.City.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---选择市县---';
		element.value	= '';
		
		Obj.City.add(element);

		for(var i = Obj.Region.length - 1; i >= 0; i--)	Obj.Region.options.remove(i);
		
		var element = document.createElement('OPTION');
		
		element.text	= '---请选择地区---';
		element.value	= '';
		
		Obj.Region.add(element);

		if(!Obj.Province.options[Obj.Province.selectedIndex].value) return ;
		
		for(var i = 0; i < Citys.length; i ++)
		{
			if(Citys[i]['ProvinceID'] != Obj.Province.options[Obj.Province.selectedIndex].value) continue;
			
			element	= document.createElement('OPTION');

			element.text	= Citys[i]['Name'];
			element.value	= Citys[i]['ID'];
			
			Obj.City.add(element);
		}
		
		showProcessing();
		ifrmHidden.location = "{CurrentURL}&code=chgprovince&ProvinceID=" + Obj.Province.options[Obj.Province.selectedIndex].value;
	}
//-->
</script>
<link rel='stylesheet' href='js/calendar/calendar-mos.css'>
<script language='javascript' src=js/calendar/calendar.js></script>
<script type="text/javascript" src="js/calendar/lang/calendar-en.js"></script>
<script language='javascript'>
<!--
	var calendar = null;
	
	function selected(cal, date)
	{
		cal.sel.value = date; // just update the value of the input field
	}
	
	function closeHandler(cal)
	{
		cal.hide();			// hide the calendar
	
		// don't check mousedown on document anymore (used to be able to hide the
		// calendar when someone clicks outside it, see the showCalendar function).
		Calendar.removeEvent(document, "mousedown", checkCalendar);
	}

	function checkCalendar(ev)
	{
		var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev);
		for (; el != null; el = el.parentNode)
		// FIXME: allow end-user to click some link without closing the
		// calendar.  Good to see real-time stylesheet change :)
		if (el == calendar.element || el.tagName == "A") break;
		if (el == null) {
			// calls closeHandler which should hide the calendar.
			calendar.callCloseHandler(); Calendar.stopEvent(ev);
		}
	}
	
	function showCalendar(id)
	{
		var el = document.getElementById(id);
		
		var cal = new Calendar(true, null, selected, closeHandler);

		calendar = cal;		// remember the calendar in the global
		cal.setRange(1900, 2070);	// min/max year allowed
		calendar.create();		// create a popup calendar
		
		calendar.sel = el;		// inform it about the input field in use
		calendar.showAtElement(el);	// show the calendar next to the input field

		Calendar.addEvent(document, "mousedown", checkCalendar);
	}

	function checkValue()
	{
		var Obj = document.frmSearch;
		
		if(Obj.ShowField.selectedIndex == -1)
		{
			alert('请最少选择一个要显示的字段');
			
			Obj.ShowField.focus();
			
			return false;
		}
		
		return true;
	}
//-->	
</script>
<form action='{CurrentURL}&code=list' method='POST' name='frmSearch' onSubmit='return checkValue();' target=_blank>
<table width="100%" cellspacing=0 cellpadding=5 style='word-break:break-all' class=adminform>
  <tr>
    <td colspan="3" class='info_title'><strong>订单报表-选择条件</strong></td>
  </tr>
  <tr class='info_content'>
      <td width="100">订单编号:</td>
      <td>
          <input name="OrderID" type="text" id="OrderID" size="18">
      </td>
      <td width="150">订单编号中的一部分</td>
  </tr>
  <tr class='info_content'>
      <td width="100">客户名称:</td>
      <td>
          <input name="Customer" type="text" id="Customer" size="18">
      </td>
      <td width="150">客户名称中的一部分</td>
  </tr>
  <tr class='info_content'>
      <td width="100">提交时间:</td>
      <td>
    	<input name="StartTime" type="text" size=12>
    	<input type=button value='..' onClick='showCalendar("StartTime");'> -
    	<input name="Expire" type="text" size=12>
    	<input type=button value='..' onClick='showCalendar("Expire");'> 
      </td>
      <td width="150">订单提交的时间范围</td>
  </tr>
  <tr class='info_content'>
  	<td>货物总金额范围:</td>
  	<td>
  		<input name="StartPrice" type="text" size=8>
		-
		<input name="EndPrice" type="text" size=8>
  		</td>
  	<td>货物总金额范围</td>
  	</tr>
  <tr class='info_content'>
      <td width="100">订单总金额范围:</td>
      <td>
    	<input name="StartPrice2" type="text" id="StartPrice2" size=8>
    	-
    	<input name="EndPrice2" type="text" id="EndPrice2" size=8>
      </td>
      <td width="150">订单总金额范围</td>
  </tr>
  <tr class='info_content'>
  	<td>订单状态:</td>
  	<td>
  		<select name='State' id="State">
  			<option value=''></option>
			<option value='{ORDER_STATE_UNDISPOSE}'>未处理</option>
			<option value='{ORDER_STATE_WAIT_PAY}'>等待付款</option>
			<option value='{ORDER_STATE_WAIT_DELIVER}'>付款已确认,等待送货</option>
			<option value='{ORDER_STATE_DELIVERED}'>已经送货</option>
			<option value='{ORDER_STATE_REFUSE}'>订单被拒绝</option>
			<option value='{ORDER_STATE_OOS}'>缺货</option>
		</select>
  		</td>
  	<td>搜索指定状态的订单</td>
  	</tr>
  <tr class='info_content'>
  	<td>付款方式:</td>
  	<td>
  		<select name='PayMode' id="PayMode">
  			<option value=''></option>
			<option value='{PAYMODE_POSTCAL}'>邮政汇款</option>
			<option value='{PAYMODE_ATM}'>银行转帐</option>
			<option value='{PAYMODE_MYACCOUNT}'>本站帐户中扣除</option>
			<option value='{PAYMODE_PAYGATEWAY}'>在线支付</option>
			<option value='{PAYMODE_DROPIN}'>货到付款</option>
  			</select>
  		</td>
  	<td>搜索指定付款方式的订单</td>
  	</tr>
  <tr class='info_content'>
  	<td>送货方式:</td>
  	<td>
  		<select name='DeliverMode' id="DeliverMode">
  			<option value=''></option>
    		{DeliverModeList}
  			</select>
  		</td>
  	<td>搜索指定送货方式的订单</td>
  </tr>
  <tr bgcolor="#efefef" class='info_content'>
	<td>所在地:</td>
	<td>
		<select name="Country" onChange='CountryChange();'>
      		<option>---请选择国家---</option>
			{CountryList}
		</select> 
		<select name="Province" onChange='ProvinceChange();'>
      		<option>---请选择省/郡/州---</option>
			{ProvinceList}
		</select>
		<select name="City" onChange='CityChange();'>
      		<option>---请选择城市---</option>
			{CityList}
		</select> 
		<select name="Region">
	  		<option>---请选择地区---</option>
			{RegionList}
		</select>
	</td>
  </tr>
  <tr>
    <td colspan="3" class='info_title'><strong><strong>订单报表</strong>-选择排序字段</strong></td>
  </tr>
  <tr>
  	<td colspan=3>
  		<select name='OrderField'>
  			<!-- beginRow OrderFieldList -->
  			<option value='{OrderFieldList.Key}'>{OrderFieldList.Descript}</option>
  			<!-- endRow OrderFieldList -->
  		</select>
  		
  		<select name='OrderMode'>
  			<option value=0>升序(a-zA-Z0-9)</option>
  			<option value=1>降序(z-aZ-A9-0)</option>
  		</select>
  	</td>
  </tr>
  <tr>
    <td colspan="3" class='info_title'><strong><strong>订单报表</strong>-选择显示的字段</strong></td>
  </tr>
  <tr>
  	<td colspan=3>
  		<select name='ShowField[]' size=10 multiple id=ShowField>
  			<!-- beginRow FieldList -->
  			<option value='{FieldList.Key}'>{FieldList.Value}</option>
  			<!-- endRow FieldList -->
  		</select> <a href='javascript:selectAll(frmSearch.ShowField);'>全部</a>
  	</td>
  </tr>
  <tr>
    <td colspan="3" class='info_title'><strong>订单报表-是否下载CSV文件</strong></td>
  </tr>
  <tr>
  	<td colspan=3>
  		<input type=radio name=csv value=1>是
  		<input type=radio name=csv value=0 checked>否
  	</td>
  </tr>
  <tr class='info_bottom'>
    <td colspan="3" align="center" class="info_bottom">
		<input type="submit" value="搜索">
    	<input name="btnSubmit" type="hidden" id="btnSubmit" value="1">
    </td>
    </tr>
</table>
</form>
<script language='javascript'>
<!--
	function selectAll(Obj)
	{
		for(var i = 0; i < Obj.length; i++)
		{
			Obj.options[i].selected = true;
		}
	}
//-->
</script>
<script language='javascript'>
<!--
		var Obj = document.frmSearch;
		var CountryName = '{CountryName}';
		var ProvinceName = '{ProvinceName}';
		var CityName = '{CityName}';
		var RegionName = '{RegionName}';
		
		for(var i = 0; i < Countrys.length; i ++)
		{
			var element	= document.createElement('OPTION');
			
			element.text	= Countrys[i]['Name'];
			element.value	= Countrys[i]['ID'];
			
			Obj.Country.add(element);

			if(CountryName == Countrys[i]['Name']) Obj.Country.options[Obj.Country.length - 1].selected = true;
		}
		
		//CountryChange();
		
		for(var i =0; i < Obj.Province.length; i ++)
		{
			if(Obj.Province.options[i].text == ProvinceName)
			{
				Obj.Province.options[i].selected = true;
				break;
			}
		}
		
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -