You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
480 lines
19 KiB
HTML
480 lines
19 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>运价查询系统</title>
|
|
<style>
|
|
html, body {
|
|
margin: 0; /* Remove body margin/padding */
|
|
padding: 0;
|
|
overflow: hidden; /* Remove scroll bars on browser window */
|
|
font-size: 75%;
|
|
}
|
|
/*Splitter style */
|
|
|
|
|
|
#LeftPane {
|
|
/* optional, initial splitbar position */
|
|
overflow: auto;
|
|
}
|
|
/*
|
|
* Right-side element of the splitter.
|
|
*/
|
|
|
|
#RightPane {
|
|
padding: 2px;
|
|
overflow: auto;
|
|
}
|
|
.ui-tabs-nav li {position: relative;}
|
|
.ui-tabs-selected a span {padding-right: 10px;}
|
|
.ui-tabs-close {display: none;position: absolute;top: 3px;right: 0px;z-index: 800;width: 16px;height: 14px;font-size: 10px; font-style: normal;cursor: pointer;}
|
|
.ui-tabs-selected .ui-tabs-close {display: block;}
|
|
.ui-layout-west .ui-jqgrid tr.jqgrow td { border-bottom: 0px none;}
|
|
.ui-datepicker {z-index:1200;}
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="theme/redmond/jquery-ui-1.8.2.custom.css" />
|
|
<link rel="stylesheet" type="text/css" href="theme/ui.jqgridmenu.css" />
|
|
<link rel="stylesheet" type="text/css" href="theme/ui.multiselect.css" />
|
|
|
|
|
|
<script type="text/javascript" src="js/bookmark.js"></script>
|
|
<script src="js/jquery.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery.layout.js" type="text/javascript"></script>
|
|
<script src="js/i18n/grid.locale-en.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
$.jgrid.no_legacy_api = true;
|
|
$.jgrid.useJSON = true;
|
|
</script>
|
|
<script src="js/ui.multiselect.js" type="text/javascript"></script>
|
|
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery.tablednd.js" type="text/javascript"></script>
|
|
<script src="js/jquery.contextmenu.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
function request(paras){
|
|
var url = location.href;
|
|
var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");
|
|
var paraObj = {}
|
|
for (i=0; j=paraString[i]; i++){
|
|
paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);
|
|
}
|
|
var returnValue = paraObj[paras.toLowerCase()];
|
|
if(typeof(returnValue)=="undefined"){
|
|
return "";
|
|
}else{
|
|
return returnValue;
|
|
}
|
|
}
|
|
|
|
function initFrameUrl()
|
|
{
|
|
var userId = request("uid");
|
|
//var frameVal = "<iframe src=\"index.html?uid="+userId+"\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" vspace=\"0\" hspace=\"0\"/>";
|
|
var frameVal = "";
|
|
if(userId=="") {
|
|
var strurl = "PageNone.html";
|
|
//var strurl = "http://localhost:12646/Accounts/ClientSignIn.aspx";
|
|
//var strurl = "http://hmw028167.chinaw3.com/Accounts/ClientSignIn.aspx";
|
|
frameVal = "<iframe src=\""+strurl+"?handle=add&uid="+userId+"\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" vspace=\"0\" hspace=\"0\"/>";
|
|
}
|
|
else {
|
|
var strurl = "../../Accounts/ClientSignIn.aspx";
|
|
//var strurl = "http://localhost:12646/Accounts/ClientSignIn.aspx";
|
|
//var strurl = "http://hmw028167.chinaw3.com/Accounts/ClientSignIn.aspx";
|
|
frameVal = "<iframe src=\""+strurl+"?handle=edit&uid="+userId+"\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" vspace=\"0\" hspace=\"0\"/>";
|
|
}
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
|
|
jQuery(document).ready(function () {
|
|
//$('#switcher').themeswitcher();
|
|
$('body').layout({
|
|
resizerClass: 'ui-state-default',
|
|
west__onresize: function (pane, $Pane) {
|
|
jQuery("#west-grid-login").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
jQuery("#west-grid-sh").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
jQuery("#west-grid-qd").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
jQuery("#west-grid-nb").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
jQuery("#west-grid-xm").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
jQuery("#west-grid-sz").jqGrid('setGridWidth', $Pane.innerWidth() - 2);
|
|
}
|
|
});
|
|
$.jgrid.defaults = $.extend($.jgrid.defaults, { loadui: "enable" });
|
|
var maintab = jQuery('#tabs', '#RightPane').tabs({
|
|
add: function (e, ui) {
|
|
// append close thingy
|
|
$(ui.tab).parents('li:first')
|
|
.append('<span class="ui-tabs-close ui-icon ui-icon-close" title="Close Tab"></span>')
|
|
.find('span.ui-tabs-close')
|
|
.click(function () {
|
|
maintab.tabs('remove', $('li', maintab).index($(this).parents('li:first')[0]));
|
|
});
|
|
// select just added tab
|
|
maintab.tabs('select', '#' + ui.panel.id);
|
|
}
|
|
});
|
|
|
|
var clientgid = request("uid");
|
|
if (clientgid == "") {
|
|
jQuery("#west-grid-login").jqGrid({
|
|
url: "usertree_add.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"], //运价查询系统
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "运价查询系统", //
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-login").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "注册(查看更低价格)") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "PageNone.html?";
|
|
}
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
}
|
|
else {
|
|
jQuery("#west-grid-login").jqGrid({
|
|
url: "usertree_edit.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "运价查询系统", "url"],
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "", //运价查询
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-login").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
}
|
|
jQuery("#west-grid-sh").jqGrid({
|
|
url: "usertree.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"], //运价查询系统
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "上海运价查询", //
|
|
hidegrid: true, //
|
|
//hiddengrid: true, //
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-sh").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var strCompanyID = "&companyid=Comcab2d43f60454327af30a131fc1d3abd";
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + strCompanyID + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
jQuery("#west-grid-qd").jqGrid({
|
|
url: "usertree.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"],
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "青岛运价查询", //
|
|
//hiddengrid: true,
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-qd").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var strCompanyID = "&companyid=Comcab2d43f60454327af30a131fc1d3aba";
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + strCompanyID + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
jQuery("#west-grid-nb").jqGrid({
|
|
url: "usertree.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"],
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "宁波运价查询", //
|
|
//hiddengrid: true,
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-nb").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var strCompanyID = "&companyid=Comcab2d43f60454327af30a131fc1d3abb";
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + strCompanyID + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
jQuery("#west-grid-xm").jqGrid({
|
|
url: "usertree.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"],
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "厦门运价查询", //
|
|
//hiddengrid: true,
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-xm").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var strCompanyID = "&companyid=Comcab2d43f60454327af30a131fc1d3abc";
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + strCompanyID + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
jQuery("#west-grid-sz").jqGrid({
|
|
url: "usertree.xml",
|
|
datatype: "xml",
|
|
height: "auto",
|
|
pager: false,
|
|
loadui: "disable",
|
|
colNames: ["id", "", "url"],
|
|
colModel: [
|
|
{ name: "id", width: 1, hidden: true, key: true },
|
|
{ name: "menu", width: 150, resizable: false, sortable: false },
|
|
{ name: "url", width: 1, hidden: true }
|
|
],
|
|
treeGrid: true,
|
|
caption: "深圳运价查询", //
|
|
//hiddengrid: true,
|
|
ExpandColumn: "menu",
|
|
//autowidth: true,
|
|
width: 195,
|
|
rowNum: 200,
|
|
ExpandColClick: true,
|
|
treeIcons: { leaf: 'ui-icon-document-b' },
|
|
onSelectRow: function (rowid) {
|
|
var treedata = $("#west-grid-sz").jqGrid('getRowData', rowid);
|
|
if (treedata.isLeaf == "true") {
|
|
var userId = request("uid");
|
|
var turl = treedata.url;
|
|
var tmenu = treedata.menu;
|
|
if (tmenu == "基本资料维护") {
|
|
turl += "&";
|
|
}
|
|
else if (tmenu == "退出") {
|
|
location.href = "javascript:bookmark();";
|
|
location.href = turl;
|
|
}
|
|
else if (tmenu == "加入收藏夹") {
|
|
location.href = turl;
|
|
turl = "#";
|
|
}
|
|
else {
|
|
turl += "?";
|
|
}
|
|
var strCompanyID = "&companyid=Comcab2d43f60454327af30a131fc1d3abe";
|
|
var frameVal = "<iframe src=\"" + turl + "uid=" + userId + strCompanyID + "\" style=\"width:100%; height:600px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"vspace=\"0\" hspace=\"0\"/>";
|
|
jQuery("#tabs-1").html(frameVal);
|
|
}
|
|
}
|
|
});
|
|
//---------------
|
|
// end splitter
|
|
});
|
|
</script>
|
|
<script language="javascript">
|
|
</script>
|
|
</head>
|
|
<body onload="initFrameUrl()">
|
|
>
|
|
<div id="LeftPane" class="ui-layout-west ui-widget ui-widget-content">
|
|
<table id="west-grid-login"></table>
|
|
<table id="west-grid-sh"></table>
|
|
<table id="west-grid-qd"></table>
|
|
<table id="west-grid-nb"></table>
|
|
<table id="west-grid-xm"></table>
|
|
<table id="west-grid-sz"></table>
|
|
</div> <!-- #LeftPane -->
|
|
<div id="RightPane" class="ui-layout-center ui-helper-reset ui-widget-content" ><!-- Tabs pane -->
|
|
<div id="switcher"></div>
|
|
<div id="tabs" class="jqgtabs">
|
|
<div id="tabs-1" style="font-size:12px;">
|
|
</div>
|
|
</div>
|
|
</div> <!-- #RightPane -->
|
|
<input type="hidden" id="h_cookiename" />
|
|
</body>
|
|
</html> |