131 lines
6.6 KiB
Plaintext
131 lines
6.6 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="msg_set.aspx.cs" Inherits="MContent_msg_set" %>
|
|||
|
|
|||
|
<!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">
|
|||
|
<script type="text/javascript"></script>
|
|||
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
|||
|
<link href="../Css/edit.css" rel="stylesheet" type="text/css" />
|
|||
|
<script src="../Js/Calendar3.js" type="text/javascript"></script>
|
|||
|
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
|
|||
|
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
|
|||
|
<link href="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
|||
|
<script src="../Js/commonality.js" type="text/javascript"></script>
|
|||
|
<link rel="stylesheet" href="../Css/gh-buttons.css" type="text/css"/>
|
|||
|
<link rel="stylesheet" href="../Css/prettify.css"/>
|
|||
|
<script src="../Js/prettify.js" type="text/javascript"></script>
|
|||
|
<script type="text/javascript">
|
|||
|
function check() {
|
|||
|
var fileName = $("#file_video").val();
|
|||
|
if (fileName!="") {
|
|||
|
var fileType = (fileName.substring(fileName.lastIndexOf(".") + 1, fileName.length)).toLowerCase();
|
|||
|
var suppotFile = new Array();
|
|||
|
suppotFile[0] = "mp3";
|
|||
|
suppotFile[1] = "wav";
|
|||
|
for (var i = 0; i < suppotFile.length; i++) {
|
|||
|
if (suppotFile[i] == fileType) {
|
|||
|
return true;
|
|||
|
} else {
|
|||
|
continue;
|
|||
|
}
|
|||
|
}
|
|||
|
alert("不支持文件类型" + fileType);
|
|||
|
return false;
|
|||
|
}
|
|||
|
$('.qy:checked').each(function () {
|
|||
|
var qyid = $(this).parent().parent().attr("tag");
|
|||
|
MContent_msg_set.setvideo(qyid);
|
|||
|
})
|
|||
|
}
|
|||
|
$(document).ready(function () {
|
|||
|
$("#tbl_video").find("tr:first").nextAll().mouseover(function () {
|
|||
|
$(this).addClass("over");
|
|||
|
$(this).find("td").eq(3).children().removeClass("hid");
|
|||
|
}).mouseleave(function () {
|
|||
|
$(this).removeClass("over");
|
|||
|
$(this).find("td").eq(3).children().addClass("hid");
|
|||
|
})
|
|||
|
var isplay = false;
|
|||
|
$(".btn_play").click(function () {
|
|||
|
if (!isplay) {
|
|||
|
$(this).attr("title", "暂停");
|
|||
|
$(this).attr("src", '../Images_Folder/msgstop.png');
|
|||
|
var vname = $(this).parent().parent().find("td:first").html();
|
|||
|
$("#ado_play").attr("src", '../UseFile/video/' + vname);
|
|||
|
document.getElementById("ado_play").play();
|
|||
|
isplay = true;
|
|||
|
} else {
|
|||
|
$(this).attr("title", "播放");
|
|||
|
$(this).attr("src", '../Images_Folder/msgplay.png');
|
|||
|
document.getElementById("ado_play").pause();
|
|||
|
isplay = false;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
})
|
|||
|
})
|
|||
|
function delvideo(obj) {
|
|||
|
if (confirm("确定删除提示音吗?")) {
|
|||
|
var id = $(obj).parent().parent().attr("tag");
|
|||
|
MContent_msg_set.delvideo(id);
|
|||
|
$(obj).parent().parent().remove();
|
|||
|
|
|||
|
} else {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<form id="form" runat="server">
|
|||
|
<div class="rtbjdiv" >
|
|||
|
<div class="add-top" >
|
|||
|
<div class="add-top-dh" id="div_listdaohang" style=" width:700px"><h4>系统操作日志   </h4>
|
|||
|
<a href="#button" id="chongzhi" onclick="form.reset();" style=" width:60px; " class=" button icon reload">重置表单</a>
|
|||
|
<a href="#button" id="fanhui" onclick="history.back();" style=" width:60px; " class="button icon arrowleft">返回上级</a>
|
|||
|
<asp:Button ID="Button1" runat="server" Text="保存" OnClientClick="return check()" onclick='btn_saveclick' CssClass="button"/>
|
|||
|
<asp:label id="z_error" CssClass="error" runat="server"></asp:label>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="alert-tip">
|
|||
|
<b>温馨提示:</b>
|
|||
|
<p>• 当前页面为系统提醒配置页,提示将根据您的配置变化</p>
|
|||
|
</div>
|
|||
|
<div id="dd_kong" >
|
|||
|
<div style="height:30px; "></div>
|
|||
|
<div id="div_shoujian"><div style="line-height:30px"><span></span>系统提醒设置:</span></div></div>
|
|||
|
<div style="line-height:30px; width:100%; padding-top:10px;" >是否开启提示窗:<input type="radio" name="rdoform" runat="server" id="rdoform_yes" /><label for="rdoform_yes">是</label>    <input type="radio" name="rdoform" runat="server" id="rdoform_no" /><label for="rdoform_no">否</label></div>
|
|||
|
<div style="line-height:30px; width:100%; padding-top:10px;" >是否开启提示音:<input type="radio" name="rdosound" runat="server" id="rdosound_yes" /><label for="rdosound_yes">是</label>    <input type="radio" name="rdosound" runat="server" id="rdosound_no" /><label for="rdosound_no">否</label></div>
|
|||
|
<div id="div_fujian"><span style="line-height:40px" id="span_fujian">上传提醒音<asp:FileUpload ID="file_video" Name="file_video" runat="server" /></span>     建议音频文件格式(.mp3,.wav)</div>
|
|||
|
<div style="line-height:30px; width:100%; padding-top:10px;" >提示音列表:</div>
|
|||
|
<div style="line-height:30px; width:100%; padding-top:10px;height:auto;border:1px solid #ccc;" >
|
|||
|
<table style="width:600px" border=0 id="tbl_video">
|
|||
|
<tr>
|
|||
|
|
|||
|
<td style="width:10%">文件名</td>
|
|||
|
<td style="width:5%">启用状态</td>
|
|||
|
<td style="width:10%">上传时间</td>
|
|||
|
<td style="width:5%"></td>
|
|||
|
</tr>
|
|||
|
<asp:Repeater runat="server" id="rep_date">
|
|||
|
<ItemTemplate>
|
|||
|
<tr tag="<%# Eval("id") %>">
|
|||
|
<td><%# Eval("filename") %> </td>
|
|||
|
<td><input type="radio" name='qy' class='qy' <%# ckeckqy(Eval("isqiyong").ToString()) %> /> </td>
|
|||
|
<td><%# Eval("riqi") %> </td>
|
|||
|
<td><img src="../Images_Folder/msgplay.png" class="hid btn_play msgicon" title="播放" height=20 />     <img src="../Images_Folder/msgdel.png" class="hid msgicon" onclick="return delvideo(this)" title="删除" height=20 /></td>
|
|||
|
</tr>
|
|||
|
</ItemTemplate>
|
|||
|
</asp:Repeater>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<audio src="" id='ado_play'/>
|
|||
|
<input type="hidden" id="txt_id" runat=server />
|
|||
|
<script src="../Js/messageshow.js" type="text/javascript"></script>
|
|||
|
</form>
|
|||
|
</body>
|
|||
|
</html>
|