Files
g.hnyhua.cn/Mtxfw.VipSite/Admin_Member_link_add.aspx
2026-02-07 15:48:27 +08:00

281 lines
10 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_link_add.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_link_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="X-UA-Compatible" content="IE=edge" />
<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">
<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?t=0"></script>
<script type="text/javascript" charset="utf-8" src="/artDialog/umeditor.min.js?t=0"> </script>
<!--建议手动加在语言避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="/artDialog/lang/zh-cn/zh-cn.js"></script>
<script src="/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
<script src="/artDialog/iframeTools.js" type="text/javascript"></script>
<style type="text/css">
#inputTips2 li img{max-width:100px;max-height:100px; }
</style>
<script type="text/javascript">
var open = function (url) {
art.dialog.open(url, {
title: '插入图片',
width: '600px',
height: '400px',
lock: true,
id: 'dg_test34243'
});
};
window.UMEDITOR_CONFIG.toolbar = [
// 加入一个 test
' bold italic underline strikethrough superscript subscript forecolor removeformat ', ' fontfamily fontsize',
'| justifyleft justifycenter justifyright justifyjustify', 'image', 'upvideo', 'source'
];
UM.registerUI('image',
function (name) {
var me = this;
var $btn = $.eduibutton({
icon: "image",
click: function () {
art.dialog.open("insertimage0.aspx?t=1", {
title: '插入图片',
width: '600px',
height: '400px',
lock: true,
id: 'dg_test34243'
});
},
title: '插入图片'
});
this.addListener('selectionchange', function () {
//切换为不可编辑时,把自己变灰
var state = this.queryCommandState(name);
$btn.edui().disabled(state == -1).active(state == 1)
});
return $btn;
}
);
UM.registerUI('upvideo',
function (name) {
var me = this;
var $btn = $.eduibutton({
icon: "video",
click: function () {
art.dialog.open("insertvideo.aspx", {
title: '插入视频',
width: '600px',
height: '400px',
lock: true,
id: 'dg_test34243'
});
},
title: '插入视频'
});
this.addListener('selectionchange', function () {
//切换为不可编辑时,把自己变灰
var state = this.queryCommandState(name);
$btn.edui().disabled(state == -1).active(state == 1)
});
return $btn;
}
);
</script>
<style type="text/css">
.uploadvideobox{ display:inline-block; width:15em;}
.uploadvideobtnbox{ position:relative;
float:left;
width: 8em;
height: 2em;
line-height: 2em;
margin: 1em auto;
background: linear-gradient(to right, #fec02e, #fc9b06);
border-radius: 0.5em;
color:#fff;}
.uploadvideobtnbox span{width: 100%;height: 100%; display:block;text-align:center;}
.uploadvideobtnbox input#videofile{position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
border:0;
background-color:#000;}
.processbox{ width: 100%;height: 0.5em;border-radius: 10px;background: #999;margin: 10px auto;border: 1px solid #ff6780; display:none}
.child{position: relative;height:100%;border-radius:inherit; background-color:#ff4500;}
.process-animate{background: #ff6780;position: absolute;left: 0;top: 0;bottom: 0;border-radius:inherit;
animation: process 1s linear forwards ;
}
@keyframes process
{
0%{
left:0;right:100%;
}
20%{
right:80%
}
40%{
right:60%;
}
60%{right:40%;}
80%{right:20%;}
100%{right:0;}
}
.delvideobtnbox{display:inline-block; margin-left:1em; margin-top:1em; width:2em; height:2em; background-color:#fff; cursor:pointer; display:none}
.delvideobtnbox img{display:inline-block; width:100%; height:100%;}
</style>
<script type="text/javascript">
var checkForm = function () {
var Text_Title = $("#<%=Text_Title.ClientID %>");
if (Text_Title.val() == "") {
alert('请输入标题!'); return false;
}
return true;
};
$(document).ready(function () {
showimgae();
})
function showimgae() {
var strphoto = $("#hiddenphoto").val();
if (strphoto != "") {
var imgurl = "<li id='picli0'><img src='<%=config.qiniuDomain%>/" + strphoto + "?imageView2/2/w/100/h/100/q/75' width='100' class='pic'/><a href=javascript:DeletePic('" + strphoto + "',0)>删除</a>";
$("#inputTips2").html(imgurl);
}
}
function DeletePic(delpics) {
if (delpics != "") {
$.post("/ajax.ashx", { action: "deleteimage", delpics: escape(delpics) }, function (data) {
if (data.success) {
alert("删除成功");
$("#hiddenphoto").val("");
$("#inputTips2").html("");
} else {
$("#hiddenphoto").val("");
$("#inputTips2").html("");
}
});
}
}
function deletefile(t) {
var filepath = $("#hiddenphoto").val();
if (t == 1) {
filepath = $("#hiddenvideo").val();
}
if (filepath != "") {
$.post("/ajax.ashx", { action: "deleteimage", delpics: escape(filepath) }, function (data) {
if (data.success) {
}
});
}
}
</script>
</head>
<body>
<form 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="&lt;i class='text-warning fa fa-warning'&gt;&lt;/i&gt; 注意!这会重新设置小工具的排位." 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><%=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%">&nbsp;标题:</th>
<td>
<asp:TextBox ID="Text_Title" Width="500px" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<th>预览图片:</th>
<td><input name="IFUpload2" id="IFUpload2" type="hidden" value="0" />
<input name="hiddenphoto" id="hiddenphoto" type="hidden" value="" runat="server" />
<div id="inputTips2"></div><br><br><a href="javascript:open('insertimage.aspx')" class="selectpica">插入图片</a>&nbsp;&nbsp;&nbsp;<span id="spanImg">较好的效果长宽比例为720*720像素</span>
</td>
</tr>
<!--<tr>
<th>链接地址URL</th>
<td>
<asp:TextBox ID="Text_LinkUrl" Width="500px" runat="server"></asp:TextBox>
</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>
</body>
</html>