代码修改后的版本,全部提交
This commit is contained in:
315
Mtxfw.VipSite/Admin_Member_zhishi_add.aspx
Normal file
315
Mtxfw.VipSite/Admin_Member_zhishi_add.aspx
Normal file
@@ -0,0 +1,315 @@
|
||||
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_zhishi_add.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_zhishi_add" %>
|
||||
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head id="Head1" runat="server">
|
||||
<title></title>
|
||||
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta http-equiv="Cache-Control" content="no-store" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9,IE=10" />
|
||||
<script src="/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
|
||||
<script src="/Scripts/jquery-migrate-1.1.1.min.js" type="text/javascript"></script>
|
||||
<script src="/Scripts/common.js" 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=2">
|
||||
<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: '600px',
|
||||
height: '400px',
|
||||
lock: true,
|
||||
id: 'dg_test34243'
|
||||
});
|
||||
};
|
||||
var open0 = function (url) {
|
||||
art.dialog.open(url, {
|
||||
title: '插入视频',
|
||||
width: '700px',
|
||||
height: '500px',
|
||||
lock: true,
|
||||
id: 'dg_test34244'
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<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 checkForm = function () {
|
||||
var Text_Title = $("#<%=Text_Title.ClientID %>");
|
||||
if (Text_Title.val() == "") {
|
||||
alert('请输入标题!'); return false;
|
||||
}
|
||||
//alert($("#<%=Hidd_myEditor.ClientID %>").val());
|
||||
return true;
|
||||
};
|
||||
$(document).ready(function () {
|
||||
showphoto();
|
||||
})
|
||||
function showphoto() {
|
||||
var strphoto = $("#hiddenphoto").val();
|
||||
|
||||
var imgurl = "";
|
||||
|
||||
if (strphoto != "") {
|
||||
|
||||
var strPhoto = strphoto.split(",");
|
||||
var src = cminimage(strPhoto[0]);
|
||||
|
||||
imgurl += "<li id='picli0'><img src='" + src + "' width='100' class='pic' /><a href=javascript:DeletePic('" + strphoto + "',0)>删除</a>";
|
||||
|
||||
imgurl += "</li>";
|
||||
}
|
||||
|
||||
$("#inputTips2").html(imgurl);
|
||||
}
|
||||
function DeletePic(delpics, i) {
|
||||
if (delpics != "") {
|
||||
$.post("/ajax.ashx", { action: "deleteimage", delpics: escape(delpics) }, function (data) {
|
||||
if (data.success) {
|
||||
$("#hiddenphoto").val("");
|
||||
showphoto();
|
||||
} else {
|
||||
$("#hiddenphoto").val("");
|
||||
showphoto();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form runat="server">
|
||||
<!-- RIBBON -->
|
||||
<div id="ribbon">
|
||||
|
||||
<span class="ribbon-button-home"><img src="/images/home.png" /></span>
|
||||
|
||||
<!-- breadcrumb -->
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/gl.aspx" target="_top">主页</a></li>
|
||||
<li><a href="/Member_Index.aspx">会员中心首页</a></li>
|
||||
<li><a href="/Admin_Member_config.aspx">后台管理</a></li>
|
||||
<li><%=strTitle %></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"><%=strTitle %></span></h1>
|
||||
<div class="MainContent">
|
||||
<table width="100%" class="data_table2">
|
||||
<tr>
|
||||
<th width="10%"> 标题:</th>
|
||||
<td>
|
||||
<asp:TextBox ID="Text_Title" Width="500px" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<th width="10%"> 类型:</th>
|
||||
<td>
|
||||
<asp:DropDownList ID="TType" runat="server">
|
||||
|
||||
<asp:ListItem Value="0">公司介绍</asp:ListItem>
|
||||
<asp:ListItem Value="5">操作助手</asp:ListItem>
|
||||
<asp:ListItem Value="1">团队风彩</asp:ListItem>
|
||||
<asp:ListItem Value="3">最新动态</asp:ListItem>
|
||||
|
||||
<asp:ListItem Value="6">疑难解答</asp:ListItem>
|
||||
<asp:ListItem Value="2">客服中心</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<th width="10%"> 预览图片:</th>
|
||||
<td>
|
||||
<div id="inputTips2"></div><br><br><a href="javascript:open('insertimage.aspx')" class="selectpica">插入图片</a> <span id="spanImg">较好的效果长宽比例为:720*720像素</span>
|
||||
<input name="hiddenphoto" id="hiddenphoto" type="hidden" value="" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<asp:Panel ID="Panel_addtime" Visible="false" runat="server">
|
||||
<tr>
|
||||
<th width="10%"> 添加时间:</th>
|
||||
<td>
|
||||
<asp:TextBox ID="Text_addtime" Width="500px" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
</asp:Panel>
|
||||
|
||||
<tr>
|
||||
<th width="10%"> 内容:</th>
|
||||
<td>
|
||||
<script id="editor" type="text/plain" style="width:90%;height:400px;"><%=strBody %></script>
|
||||
<asp:HiddenField ID="Hidd_C" runat="server" />
|
||||
<asp:HiddenField ID="Hidd_myEditor" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="15%"></th>
|
||||
<td>
|
||||
<asp:Button ID="Btn_Insert" runat="server" Cssclass="abtn" Text="添加" OnClientClick="getContent();return checkForm();" />
|
||||
<asp:Button ID="Btn_Update" runat="server" Cssclass="abtn" Text="更新" OnClientClick="getContent();return checkForm();" />
|
||||
<input id="btn_back" type="reset" value="返回" onclick="history.go(-1)" class="abtn" />
|
||||
<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>
|
||||
Reference in New Issue
Block a user