Files
g.hnyhua.cn/Mtxfw.shop/_Admin/admin_business_add.aspx

170 lines
5.9 KiB
Plaintext
Raw Normal View History

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_business_add.aspx.cs" Inherits="Mtxfw.shop._Admin.admin_business_add" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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/style.css" rel="stylesheet" type="text/css" />
<link href="css/Burgundy.css" rel="stylesheet" type="text/css" />
<script src="/scripts/jquery-1.7.2.js" type="text/javascript"></script>
<script type="text/javascript">
var cityID = '<%=CityID %>';
var countyID = '<%=CountyID %>';
$(document).ready(function () {
$('#Drop_Province').change(function () {//获取城市
getCity();
});
$('#Drop_City').change(function () {//获取县区
getCounty();
});
getCity();
});
function getCity() {
if ($('#Drop_Province').val() != '-1') {
$.post("/Ajax.ashx", { action: 'GetCity', ProvinceID: $('#Drop_Province').val(), cityIDs: cityID }, function (data) {
if (data != 'false') {
$('#Drop_City').html(data); getCounty();
}
});
}
}
function getCounty() {
if ($('#Drop_City').val() != '-1') {
$.post("/Ajax.ashx", { action: 'GetCounty', CityID: $('#Drop_City').val(), countyIDs: countyID }, function (data) {
if (data != 'false')
$('#Drop_County').html(data);
});
}
}
var checkForm = function () {
if ($('#Text_CompanyName').val() == '') {
alert('请输入商家名称'); return false;
}
if ($('#Drop_Province').val() == '-1') {
alert('请选择所在省份'); return false;
}
return true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="main">
<div class="bt1">商家管理 - <%=TitName %></div>
<div class="bt2">
<div class="clear"></div>
</div>
<div class="bt3">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th width="12%">商家名称:</th>
<td>
<asp:TextBox ID="Text_CompanyName" runat="server" Columns="40"></asp:TextBox>
<asp:HiddenField ID="Hidd_CompanyId" runat="server" />
</td>
</tr>
<tr>
<th>商家状态:</th>
<td>
<asp:DropDownList ID="Drop_State" runat="server">
<asp:ListItem Value="已处理" Text="已处理"></asp:ListItem>
<asp:ListItem Value="未处理" Text="未处理"></asp:ListItem>
<asp:ListItem Value="忽略" Text="忽略"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<th>商家分类:</th>
<td>
<asp:DropDownList ID="Drop_Cls" AutoPostBack="true" OnSelectedIndexChanged="Changed_Cls" runat="server"></asp:DropDownList>
<asp:DropDownList ID="Drop_Cls2" runat="server"></asp:DropDownList>
</td>
</tr>
<tr>
<th>所属地区:</th>
<td>
<asp:DropDownList ID="Drop_Province" runat="server">
<asp:ListItem Value="-1">--省--</asp:ListItem>
</asp:DropDownList>
<select name="select2" id="Drop_City" runat="server" class="k2">
<option value="-1">--市--</option>
</select>
<select name="select2" id="Drop_County" runat="server" class="k3">
<option value="-1">--县区--</option>
</select>
</td>
</tr>
<tr>
<th>封面图片:</th>
<td>
<asp:FileUpload ID="File_PicTrue" runat="server" style=" border:1px solid #ccc;" />
<span style="color:Red;">自动生成缩略图</span><br/>
<asp:Image ID="Image_PicTrue" style=" margin-top:4px;" Visible="false" runat="server" />
<asp:HiddenField ID="Hidd_PicTrue" runat="server" />
</td>
</tr>
<tr>
<th>服务内容:</th>
<td>
<asp:TextBox ID="Text_BusinessRange" runat="server" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>商家地址:</th>
<td>
<asp:TextBox ID="Text_CompanyAddress" runat="server" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>商家网址:</th>
<td>
<asp:TextBox ID="Text_WebSize" runat="server" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>公交路线:</th>
<td>
<asp:TextBox ID="Text_Busroutes" TextMode="MultiLine" runat="server" Height="80" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>联系方式:</th>
<td>
<asp:TextBox ID="Text_ContactPhone" runat="server" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>联系人:</th>
<td>
<asp:TextBox ID="Text_ContactPeople" runat="server" Columns="40"></asp:TextBox>
</td>
</tr>
<tr>
<th>详细内容:</th>
<td>
<FCKeditorV2:FCKeditor ID="Text_Introduction" runat="server" Height="300" BasePath="/Fckeditor/" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="Btn_Insert" runat="server" Text="添加" OnClientClick="return checkForm()" CssClass="btn" />
<asp:Button ID="Btn_Update" runat="server" Text="修改" OnClientClick="return checkForm()" CssClass="btn" />
<input id="btn_back" type="button" value="返回" class="btn" onclick="history.go(-1)" />
<asp:HiddenField ID="Hidd_Url" runat="server" />
</td>
</tr>
</table>
</div>
</div>
</form>
</body>
</html>