414 lines
14 KiB
Plaintext
414 lines
14 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_business_add.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_business_add" %>
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head id="Head1" runat="server">
|
||
<title></title>
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||
|
||
|
||
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<script src="/Scripts/jquery-2.0.2.min.js" type="text/javascript"></script>
|
||
<script src="/Scripts/common.js?t=1" type="text/javascript"></script>
|
||
<link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
|
||
|
||
<!-- Basic Styles -->
|
||
|
||
<meta name="description" content="">
|
||
<meta name="author" content="">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/bootstrap.css">
|
||
<!--[if IE 7]>
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/font-awesome-ie7.min.css">
|
||
<![endif]-->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-production.css">
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-skins.css">
|
||
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/your_style.css">
|
||
|
||
<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/demo.css">
|
||
|
||
|
||
<!-- FAVICONS -->
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||
|
||
<script src="/script/area.js?t=2" type="text/javascript"></script>
|
||
<link rel="stylesheet" type="text/css" href="/css/cjadd.css?t=1">
|
||
<link href="artDialog/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
|
||
<script type="text/javascript" charset="utf-8" src="/artDialog/umeditor.config.js"></script>
|
||
<script type="text/javascript" charset="utf-8" src="/artDialog/umeditor.min.js"> </script>
|
||
<!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
|
||
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
|
||
<script type="text/javascript" charset="utf-8" src="/artDialog/lang/zh-cn/zh-cn.js"></script>
|
||
<script type="text/javascript">
|
||
var pid = '<%=pid %>';
|
||
var cid = '<%=cid %>';
|
||
var qid = '<%=qid %>';
|
||
var tid = '<%=tid %>';
|
||
function onc(v) {
|
||
|
||
var value = $(".select" + v + "").find("option:selected").val();
|
||
|
||
if (v == 5) {
|
||
show_city_info("", $("#city"), value, $("#county"));
|
||
}
|
||
if (v == 6) {
|
||
show_County_info("", $("#county"), $("#province").val(), value);
|
||
}
|
||
if (v == 7) {
|
||
try {
|
||
show_trading_info("", $("#trading"), $("#province").val(), $("#city").val(), value);
|
||
|
||
} catch (err) {
|
||
alert(err);
|
||
|
||
}
|
||
}
|
||
if (v == 8) {
|
||
if ($("#trading").val() == "-1") {
|
||
$("#tradingname_box").css("display", "block");
|
||
} else {
|
||
$("#tradingname_box").css("display", "none");
|
||
}
|
||
}
|
||
}
|
||
$(document).ready(function () {
|
||
showphotos();
|
||
show_province_info(pid, $("#province"), $("#city"), $("#county"));
|
||
if (cid != "") {
|
||
show_city_info(cid, $("#city"), pid, $("#county"));
|
||
}
|
||
if (qid != "") {
|
||
show_County_info(qid, $("#county"), $("#province").val(), cid);
|
||
}
|
||
show_trading_info(tid, $("#trading"), $("#province").val(), $("#city").val(), qid);
|
||
|
||
onc(8);
|
||
|
||
});
|
||
|
||
|
||
|
||
var DeletePic = function (pic, i) {
|
||
$("#inputTips2 #picli" + i).hide(300);
|
||
if ($("#hiddenphotos").val() != "") {
|
||
$("#hiddenphotos").val($("#hiddenphotos").val().replace(pic + "|", ""));
|
||
|
||
}
|
||
};
|
||
var SetPic = function (pic, i) {
|
||
$("#hiddenphotos").val(pic + "|" + $("#hiddenphotos").val().replace(pic + "|", ""));
|
||
var imgurl = "";
|
||
var strjiaoyouPhotoA = $("#hiddenphotos").val().split("|");
|
||
|
||
|
||
var j = 0;
|
||
for (var i = 0; i < strjiaoyouPhotoA.length; i++) {
|
||
if (strjiaoyouPhotoA[i] != "") {
|
||
var strPhoto = strjiaoyouPhotoA[i].split(",");
|
||
var src = cminimage(strPhoto[0]);
|
||
imgurl += "<li id='picli" + i + "'><img src='" + src + "' width='100' class='pic'/><a href=javascript:DeletePic('" + strjiaoyouPhotoA[i] + "'," + i + ")>删除</a>";
|
||
if (i == 0) {
|
||
imgurl += " 已设为封面";
|
||
}
|
||
else {
|
||
imgurl += " <a href=javascript:SetPic('" + strjiaoyouPhotoA[i] + "'," + i + ")>设为封面</a>";
|
||
}
|
||
|
||
imgurl += "</li>";
|
||
j += 1;
|
||
}
|
||
}
|
||
$("#inputTips2").html(imgurl);
|
||
|
||
};
|
||
var checkForm = function () {
|
||
if ($('#Text_CompanyName').val() == '') {
|
||
alert('请输入门店名称'); return false;
|
||
}
|
||
if ($('#Drop_Province').val() == '-1') {
|
||
alert('请选择所在省份'); return false;
|
||
}
|
||
return true;
|
||
}
|
||
function showphotos() {
|
||
var strphotos = $("#hiddenphotos").val();
|
||
var j = 0;
|
||
var imgurl = "";
|
||
var Aphotos = strphotos.split("|");
|
||
for (var i = 0; i < Aphotos.length; i++) {
|
||
|
||
if (Aphotos[i] != "") {
|
||
|
||
var strPhoto = Aphotos[i].split(",");
|
||
var src = cminimage(strPhoto[0]);
|
||
imgurl += "<li id='picli" + i + "'><img src='"+src+"' width='100' class='pic' /><a href=javascript:DeletePic('" + Aphotos[i] + "'," + i + ")>删除</a>";
|
||
if (j == 0) {
|
||
imgurl += " 已设为封面";
|
||
}
|
||
else {
|
||
imgurl += " <a href=javascript:SetPic('" + Aphotos[i] + "'," + i + ")>设为封面</a>";
|
||
}
|
||
|
||
imgurl += "</li>";
|
||
j += 1;
|
||
}
|
||
}
|
||
$("#inputTips2").html(imgurl);
|
||
|
||
}
|
||
</script>
|
||
<script src="/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
|
||
<script src="/artDialog/iframeTools.js" type="text/javascript"></script>
|
||
<script type="text/javascript">
|
||
var open = function (url) {
|
||
art.dialog.open(url, {
|
||
title: '标注地图',
|
||
width: '700px',
|
||
height: '460px',
|
||
lock: true,
|
||
id: 'dg_test34243'
|
||
});
|
||
};
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<form id="Form1" runat="server">
|
||
<!-- RIBBON -->
|
||
<div id="ribbon">
|
||
|
||
<span class="ribbon-button-alignment"> <span id="refresh" class="btn btn-ribbon" data-title="refresh" rel="tooltip" data-placement="bottom" data-original-title="<i class='text-warning fa fa-warning'></i> 注意!这会重新设置小工具的排位." data-html="true" data-reset-msg="刷新网站?"><i class="fa fa-refresh"></i></span> </span>
|
||
|
||
<!-- breadcrumb -->
|
||
<ol class="breadcrumb">
|
||
<li><a href="/" target="_top">主页</a></li>
|
||
<li><a href="/Member_Index.aspx">会员中心首页</a></li>
|
||
<li><a href="/Admin_Member_config.aspx">后台管理</a></li>
|
||
<li>门店管理</li>
|
||
</ol>
|
||
<!-- end breadcrumb -->
|
||
</div>
|
||
<!-- END RIBBON -->
|
||
<!-- MAIN CONTENT -->
|
||
<div style="opacity: 1;" id="content">
|
||
<div class="frontMain">
|
||
|
||
<h1 class="title01"><span class="semi-bold"><%=TitName %></span></h1>
|
||
<div class="MainContent">
|
||
|
||
<table width="100%" class=" data_table2">
|
||
<tr>
|
||
<th>门店分类:</th>
|
||
<td>
|
||
<asp:DropDownList ID="Drop_Cls" runat="server"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th width="12%">门店名称:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyName" runat="server" Width="400px"></asp:TextBox>
|
||
<asp:HiddenField ID="Hidd_CompanyId" runat="server" />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>所属会员:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_UserName" runat="server" Width="300px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>门店让利:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_ylmoney" runat="server" Width="80px"></asp:TextBox>%
|
||
</td>
|
||
</tr>
|
||
<%if (utype == "0")
|
||
{ %>
|
||
<tr>
|
||
<th>支付宝商户号:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyNumber" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>微信商户号:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyCert" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>汇付用户ID:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_huifu_uid" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>设备编号一:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyPic" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>设备编号二:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyProvince" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>设备编号三:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyCity" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
|
||
<%} %>
|
||
<tr>
|
||
<th>信用代码:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_Industry" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>对公账号:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_dgzh" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>法人姓名:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_frname" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>法人身份号码:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_fridcard" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th>联系电话:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_ContactPhone" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th>所属地区:</th>
|
||
<td>
|
||
<select name="select_p" id="province" class="select5" onchange="onc(5)">
|
||
<option value="-1">--省--</option>
|
||
|
||
</select>
|
||
<select name="select_c" id="city" class="select6" onchange="onc(6)">
|
||
<option value="-1">--市--</option>
|
||
</select>
|
||
<select name="select_q" class="select7" id="county" onchange="onc(7)">
|
||
<option value="-1">--县区--</option>
|
||
</select><font color="red">*</font>
|
||
<select name="select_t" class="select8" id="trading" onchange="onc(8)">
|
||
<option value="-1">--街道/乡镇--</option>
|
||
</select><span style="display:none;margin-top:0.8em;" id="tradingname_box"><asp:TextBox ID="tradingname" runat="server" Width="200" placeholder="请填写街道/乡镇"></asp:TextBox></span>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>门店地址:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_CompanyAddress" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
|
||
<tr>
|
||
<th>标注地图:</th>
|
||
<td>
|
||
<a href="javascript:open('Admin_Member_business_map.aspx')">开始标注</a>
|
||
<input id="xcoo" type="hidden" runat="server" /><input id="ycoo" type="hidden" runat="server" />
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th>上传图片:</th>
|
||
<td><input name="IFUpload2" id="IFUpload2" type="hidden" value="0" />
|
||
<input name="hiddenphotos" id="hiddenphotos" type="hidden" value="" runat="server" />
|
||
<input name="hiddenyanse" id="hiddenyanse" type="hidden" value="" runat="server"/>
|
||
<div id="inputTips2"><%=strimg %></div><br><br><a href="javascript:open('insertimage.aspx')" class="selectpica">插入图片</a> <span id="spanImg">较好的效果长宽比例为:720*720像素</span>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<th>服务内容:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_BusinessRange" runat="server" Width="400px"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>开户姓名</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_KHName" runat="server"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>银行名称</th>
|
||
<td>
|
||
<asp:DropDownList ID="DropBank" runat="server"></asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>银行卡号</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_BankCard" runat="server"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>开户行或联行号</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_BankName" runat="server"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>是否已开通D0</th>
|
||
<td>
|
||
<asp:RadioButtonList ID="Radio_D0" runat="server" RepeatDirection="Horizontal">
|
||
<asp:ListItem Value="0">否</asp:ListItem>
|
||
<asp:ListItem Value="1">是</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>支付通道</th>
|
||
<td>
|
||
<asp:RadioButtonList ID="Radio_paytype" runat="server" RepeatDirection="Horizontal">
|
||
<asp:ListItem Value="0">汇聚</asp:ListItem>
|
||
<asp:ListItem Value="1">汇付</asp:ListItem>
|
||
</asp:RadioButtonList>
|
||
</td>
|
||
</tr>
|
||
<tr><th></th>
|
||
<td>
|
||
<asp:Button ID="Btn_Insert" runat="server" Text="添加" OnClientClick="return checkForm()" CssClass="abtn" />
|
||
<asp:Button ID="Btn_Update" runat="server" Text="修改" OnClientClick="return checkForm()" CssClass="abtn" />
|
||
<input id="btn_back" type="button" value="返回" class="abtn" onclick="history.go(-1)" />
|
||
<asp:HiddenField ID="Hidd_Url" runat="server" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</form>
|
||
|
||
</body></html>
|