409 lines
15 KiB
Plaintext
409 lines
15 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_business0_add.aspx.cs" Inherits="Mtxfw.WebSite._Admin.Admin_Member_business0_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">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<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 cityID = '<%=CityID %>';
|
|||
|
|
var countyID = '<%=CountyID %>';
|
|||
|
|
$(document).ready(function () {
|
|||
|
|
showphotos();
|
|||
|
|
$('#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 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 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_Industry" runat="server" Width="400px"></asp:TextBox>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<th>门店分类:</th>
|
|||
|
|
<td>
|
|||
|
|
<asp:DropDownList ID="Drop_Cls" 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>
|
|||
|
|
<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>
|
|||
|
|
<asp:TextBox ID="Text_CompanyAddress" runat="server" Width="400px"></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_ContactPhone" runat="server" Width="400px"></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><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>
|
|||
|
|
<script id="editor" type="text/plain" style="width:720px;height:400px;"><%=strBody %></script>
|
|||
|
|
<asp:HiddenField ID="Hidd_myEditor" runat="server" />
|
|||
|
|
</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>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
//实例化编辑器
|
|||
|
|
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UM.getEditor('editor')就能拿到相关的实例
|
|||
|
|
UM.getEditor('editor');
|
|||
|
|
|
|||
|
|
|
|||
|
|
function isFocus(e) {
|
|||
|
|
alert(UM.getEditor('editor').isFocus());
|
|||
|
|
UM.dom.domUtils.preventDefault(e)
|
|||
|
|
}
|
|||
|
|
function setblur(e) {
|
|||
|
|
UM.getEditor('editor').blur();
|
|||
|
|
UM.dom.domUtils.preventDefault(e)
|
|||
|
|
}
|
|||
|
|
function insertHtml() {
|
|||
|
|
var value = prompt('插入html代码', '');
|
|||
|
|
UM.getEditor('editor').execCommand('insertHtml', value)
|
|||
|
|
}
|
|||
|
|
function createEditor() {
|
|||
|
|
enableBtn();
|
|||
|
|
UM.getEditor('editor');
|
|||
|
|
};
|
|||
|
|
function getAllHtml() {
|
|||
|
|
$("#Hidd_myEditor").val(UM.getEditor('editor').getAllHtml());
|
|||
|
|
}
|
|||
|
|
function getContent() {
|
|||
|
|
|
|||
|
|
$("#Hidd_myEditor").val(UM.getEditor('editor').getContent());
|
|||
|
|
}
|
|||
|
|
function getPlainTxt() {
|
|||
|
|
var arr = [];
|
|||
|
|
arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
|
|||
|
|
arr.push("内容为:");
|
|||
|
|
arr.push(UM.getEditor('editor').getPlainTxt());
|
|||
|
|
alert(arr.join('\n'))
|
|||
|
|
}
|
|||
|
|
function setContent(isAppendTo) {
|
|||
|
|
//var arr = [];
|
|||
|
|
//arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
|
|||
|
|
UM.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
|
|||
|
|
//alert(arr.join("\n"));
|
|||
|
|
}
|
|||
|
|
function setDisabled() {
|
|||
|
|
UM.getEditor('editor').setDisabled('fullscreen');
|
|||
|
|
disableBtn("enable");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function setEnabled() {
|
|||
|
|
UM.getEditor('editor').setEnabled();
|
|||
|
|
enableBtn();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function getText() {
|
|||
|
|
//当你点击按钮时编辑区域已经失去了焦点,如果直接用getText将不会得到内容,所以要在选回来,然后取得内容
|
|||
|
|
var range = UM.getEditor('editor').selection.getRange();
|
|||
|
|
range.select();
|
|||
|
|
var txt = UM.getEditor('editor').selection.getText();
|
|||
|
|
alert(txt)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function getContentTxt() {
|
|||
|
|
var arr = [];
|
|||
|
|
arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
|
|||
|
|
arr.push("编辑器的纯文本内容为:");
|
|||
|
|
arr.push(UM.getEditor('editor').getContentTxt());
|
|||
|
|
alert(arr.join("\n"));
|
|||
|
|
}
|
|||
|
|
function hasContent() {
|
|||
|
|
var arr = [];
|
|||
|
|
arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
|
|||
|
|
arr.push("判断结果为:");
|
|||
|
|
arr.push(UM.getEditor('editor').hasContents());
|
|||
|
|
alert(arr.join("\n"));
|
|||
|
|
}
|
|||
|
|
function setFocus() {
|
|||
|
|
UM.getEditor('editor').focus();
|
|||
|
|
}
|
|||
|
|
function deleteEditor() {
|
|||
|
|
disableBtn();
|
|||
|
|
UM.getEditor('editor').destroy();
|
|||
|
|
}
|
|||
|
|
function disableBtn(str) {
|
|||
|
|
var div = document.getElementById('btns');
|
|||
|
|
var btns = domUtils.getElementsByTagName(div, "button");
|
|||
|
|
for (var i = 0, btn; btn = btns[i++]; ) {
|
|||
|
|
if (btn.id == str) {
|
|||
|
|
domUtils.removeAttributes(btn, ["disabled"]);
|
|||
|
|
} else {
|
|||
|
|
btn.setAttribute("disabled", "true");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function enableBtn() {
|
|||
|
|
var div = document.getElementById('btns');
|
|||
|
|
var btns = domUtils.getElementsByTagName(div, "button");
|
|||
|
|
for (var i = 0, btn; btn = btns[i++]; ) {
|
|||
|
|
domUtils.removeAttributes(btn, ["disabled"]);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function getLocalData() {
|
|||
|
|
alert(UM.getEditor('editor').execCommand("getlocaldata"));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function clearLocalData() {
|
|||
|
|
UM.getEditor('editor').execCommand("clearlocaldata");
|
|||
|
|
alert("已清空草稿箱")
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
</body></html>
|