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.
DS7/DSWeb/SeanInfo/SeanGetAddress.aspx

79 lines
3.0 KiB
Plaintext

3 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeanGetAddress.aspx.cs" Inherits="DSWeb.SeanInfo.SeanGetAddress" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../Css/ymPrompt.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery/js/jquery.js" type="text/javascript"></script>
<script src="../js/jquery/js/jquery-ui.js" type="text/javascript"></script>
<script src="../js/ymPrompt.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#listbox_loadd").click(function () {
getloadaddress();
});
$("#listbox_deliver").click(function () {
getdeliveraddress();
});
});
function getloadaddress() {
var listload = document.form1.listbox_loadd;
var selectitem = "load_";
for (var i = 0; i < listload.options.length; i++) {
if (listload.options[i].selected) {
selectitem += listload.options[i].value;
}
}
retuvalue(selectitem);
}
function getdeliveraddress() {
var listdeliver = document.form1.listbox_deliver;
var slectitem = "deli_";
for (var i = 0; i < listdeliver.options.length; i++) {
if (listdeliver.options[i].selected) {
slectitem += listdeliver.options[i].value;
}
}
retuvalue(slectitem);
}
function retuvalue(address) {
window.parent.ymPrompt.doHandler(''+address+'', false);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table align="center" border="1" cellpadding="1" cellspacing="1">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<fieldset>
<legend><span style=" font-size:14px; font-family:新宋体; font-weight:bold; color:#A0522D;">[装货地址]</span></legend>
<asp:ListBox runat="server" ID="listbox_loadd" Width="260px" Height="250px" Font-Size="10" BackColor="#E0FFFF" SelectionMode="Multiple" ></asp:ListBox>
</fieldset>
</td>
<td></td>
<td>
<fieldset>
<legend><span style=" font-size:14px; font-family:新宋体; font-weight:bold; color:#A0522D;">[送货地址]</span></legend>
<asp:ListBox runat="server" ID="listbox_deliver" Width="260px" Height="250px" Font-Size="10" BackColor="#E0FFFF" SelectionMode="Multiple"></asp:ListBox>
</fieldset>
</td>
<td></td>
</tr>
</table>
</div>
</form>
</body>
</html>