网站后台发通知页面效果图
网站后台发通知页面效果图:
代码:
@model Dw.Entity.Notifications @using Dw.Web @{ViewBag.Title = "Notifications》表单页面";Layout = "~/Views/Shared/_LayoutForm.cshtml"; }<scripttype="text/javascript">$(function() {GetUserGroupTree();varoRadios=document.getElementById('radios').getElementsByTagName('input');for(vari= 0, len=oRadios.length; i<len; i++) {oRadios[i].onclick= function() {varvalue= this.value;if(value== 0) {//显示相应的内容 GetUserGroupTree();document.getElementById('jiaoshi').style.display= "";document.getElementById('xuesheng').style.display= "none";document.getElementById('jiazhang').style.display= "none";}else if(value== 1) {ClassInfoTree();document.getElementById('jiaoshi').style.display= "none";document.getElementById('xuesheng').style.display= "";document.getElementById('jiazhang').style.display= "none";}else{ClassInfoTree();document.getElementById('jiaoshi').style.display= "none";document.getElementById('xuesheng').style.display= "none";document.getElementById('jiazhang').style.display= "";}}}})functionReplyTypeSelect(){vars=$('select option:selected').val();//0-无需回复 1-自由回复 2-选项回复if(s=="2"){document.getElementById('Option').style.display= "";}else{document.getElementById('Option').style.display= "none";}}//加载用户组functionGetUserGroupTree() {varitemtree={showcheck:true,url:"@Url.Content("~/School/Notifications/UserGroupList")" };$("#ConditionInstall").treeview(itemtree);}//加载学校班级functionClassInfoTree() {varitemtree={showcheck:true,@*url:"@Url.Content("~/School/Notifications/ModuleTree")"*@ url:"@Url.Content("~/School/Notifications/ModuleTree")?KeyValue="+ "", };$("#ConditionInstall1").treeview(itemtree);$("#ConditionInstall2").treeview(itemtree);}//保存事件functionAcceptClick() {if(!CheckDataValid('#form1')) {return false;}//alert("aa"); Loading(true,"正在提交数据...");window.setTimeout(function() {varId=$("#NotificationId").val();varpostData=$("#form1").serialize();vara=$('input:radio[name=ReceiveObjects]:checked').val();if(a== 0){//获取对什么资源Id:varReceiveRange= ""; $('#ConditionInstall .bbit-tree-node-cb').each(function() {var_src=$(this).attr('src');_src=_src.substr(_src.lastIndexOf("/")+ 1);if(_src== 'checkbox_1.gif') {var_ReceiveRange=$(this).attr('id').substring(17).replace(/_/g,"-");_ReceiveRange=_ReceiveRange.substring(0, _ReceiveRange.length- 3);ReceiveRange+=_ReceiveRange+ ",";}});}else if(a== 1){//获取对什么资源Id:varReceiveRange= ""; $('#ConditionInstall1 .bbit-tree-node-cb').each(function() {var_src=$(this).attr('src');_src=_src.substr(_src.lastIndexOf("/")+ 1);if(_src== 'checkbox_1.gif') {var_ReceiveRange=$(this).attr('id').substring(17).replace(/_/g,"-");_ReceiveRange=_ReceiveRange.substring(1, _ReceiveRange.length- 3);ReceiveRange+=_ReceiveRange+ ",";}});}else if(a== 2) {//获取对什么资源Id:varReceiveRange= ""; $('#ConditionInstall2 .bbit-tree-node-cb').each(function() {var_src=$(this).attr('src');_src=_src.substr(_src.lastIndexOf("/")+ 1);if(_src== 'checkbox_1.gif') {var_ReceiveRange=$(this).attr('id').substring(17).replace(/_/g,"-");_ReceiveRange=_ReceiveRange.substring(1, _ReceiveRange.length- 3);ReceiveRange+=_ReceiveRange+ ",";}});}else{alert("请选择要接收的对象");return false;}//获取选项表集合varcontents=document.getElementById('Option').getElementsByTagName('input');varReplyContent= "";for(vari= 0, len=contents.length; i<len; i++) {ReplyContent+=contents[i].value+ ",";//alert(ReplyContent); }AjaxJson("/School/Notifications/SubmitForm2?KeyValue=" +Id+ "&ReceiveRange=" +ReceiveRange+ "&ReplyContent=" +ReplyContent, postData,function(data) {tipDialog(data.Message,3, data.Code);top.frames[tabiframeId()].windowload();closeDialog();});},200);}</script><formid="form1"style="height:100%; overflow:hidden;"><divstyle="float:left; width:490px; border-right:5px #333 solid; height:100%;"><tableclass="form">@Html.HiddenFor(m => m.NotificationId)<tr><thclass='formTitle'>通知标题: </th><tdclass='formValue'>@Html.TextBoxFor(m => m.Title, new { @class = "txt required", datacol = "yes", err = "通知标题", checkexpession = "NotNull" })</td></tr><tr><thclass='formTitle'>有效期: </th><tdclass='formValue'>@Html.TextBoxFor(m => m.ValuableDate, new { @class = "txt Wdate", datacol = "yes", err = "有效期", checkexpession = "NotNull", style = "width:370px", onfocus = "WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-%d'})" })</td></tr><tr><thclass='formTitle'>通知正文: </th><tdclass='formValue'>@Html.TextAreaFor(m => m.Content, new { @class = "txt required", datacol = "yes", err = "通知正文", checkexpession = "NotNull", style = "height:100px;width:370px" })</td></tr><tr><thclass='formTitle'>附件: </th><tdclass='formValue'style="text-align: center;margin-top:10px;"><inputtype="file"id="file_uploadattachment"name="file_uploadattachment"value='附件管理'/>@Html.TextBoxFor(m => m.Attachment, new { @class = "txt", style = "display:none" })</td></tr>@*<tr><thclass='formTitle'>回复类型: </th><tdclass='formValue'>@Html.DropDownList("ReplyType", ViewBag.rList as IEnumerable<SelectListItem>, "--请选择--", new { @class = "txtselect required", onchange = "ReplyTypeSelect()",checkexpession = "NotNull", type= "txtselect", datacol = "yes", err = "回复类型" })</td></tr>*@<tr></tr></table>@*<tableclass="form"id="Option"style="display:none;margin-top:10px" ><tr><thclass='formTitle'>选项1:</th><tdclass='formValue'><inputid="ReplyContent"type="text"class="txt"/></td></tr><tr><thclass='formTitle'>选项2:</th><tdclass='formValue'><inputid="ReplyContent"type="text"class="txt"/></td></tr><tr><thclass='formTitle'>选项3:</th><tdclass='formValue'><inputid="ReplyContent"type="text"class="txt"/></td></tr><tr><thclass='formTitle'>选项4:</th><tdclass='formValue'><inputid="ReplyContent"type="text"class="txt"/></td></tr><tr><thclass='formTitle'>选项5:</th><tdclass='formValue'><inputid="ReplyContent"type="text"class="txt" /></td></tr><tr></tr></table>*@</div><divstyle="overflow:auto; height:200px;scrollbar-face-color:#f60;scrollbar-highlight-color:#F60;scrollbar-3dlight-color:#f60;scrollbar-darkshadow-color:#f60;scrollbar-Shadow-color:#f60;scrollbar-arrow-color:#000;scrollbar-track-color:#fff;"><tableclass="form"id="radios"><trstyle="margin-top:10px"><thclass='formTitle'>接收对象 : </th><tdclass='formValue'>@Html.RadioButtonFor(Model => Model.ReceiveObjects, 0, new { @id = "ReceiveObjects0", @name = "ReceiveObjects" , @checked=true })教师</td><tdclass='formValue'>@Html.RadioButtonFor(Model => Model.ReceiveObjects, 1, new { @id = "ReceiveObjects1", @name = "ReceiveObjects" })学生</td><tdclass='formValue'>@Html.RadioButtonFor(Model => Model.ReceiveObjects, 2, new { @id = "ReceiveObjects0", @name = "ReceiveObjects" })家长</td></tr></table><divid="jiaoshi"style="margin-left:95px;margin-top:10px">@*<divid="ConditionInstall"style="height: auto; overflow: auto">*@<divid="ConditionInstall"></div></div><divid="xuesheng"style="display:none;margin:0 auto;margin-left:95px;margin-top:10px"><div><imgsrc="/Content/Images/Icon16/rosette.png" />选择要发送的班级</div>@*<divid="ConditionInstall1"style="height: 372px; overflow: auto;">*@<divid="ConditionInstall1"></div></div><divid="jiazhang"style="display:none;margin:0 auto;margin-left:95px;margin-top:10px"><div><imgsrc="/Content/Images/Icon16/rosette.png" />选择要发送的班级</div>@*<divid="ConditionInstall2"style="height: 372px; overflow: auto;">*@<divid="ConditionInstall2"></div></div></div> </form><scriptsrc="~/Content/Scripts/jquery-1.8.2.min.js"type="text/javascript"></script> <linkhref="~/Content/Scripts/Uploadify/uploadify.css"rel="stylesheet" /> <scriptsrc="~/Content/Scripts/Uploadify/jquery.uploadify.min.js"></script> <scripttype="text/javascript">//上传附件 $(document).ready(function() {$('#file_uploadattachment').uploadify({'swf':'@Url.Content("~/Content/Scripts/Uploadify/uploadify.swf")','uploader':'/School/Notifications/UploadAttachment','buttonText':'请选择上传的附件',//'sizeLimit': '2048000', //最大允许的文件大小为2M//'auto': false, //需要手动的提交申请'multi':false,//一次只允许上传一个附件'onUploadSuccess':function(file, data, response) {varobj=jQuery.parseJSON(data);//把返回的Json序列转化为obj对象if(obj.Success) {//alert(obj.FilePath); $('#Attachment').val(obj.FilePath);}elsealert(obj.Message);}});});</script>
转载于:https://www.cnblogs.com/yechangzhong-826217795/p/5948389.html
网站后台发通知页面效果图相关推荐
- 一个系统的html源代码,h5后台模板源码bootstrap网站后台管理系统HTML页面后台源代码...
bootstrap后端管理系统HTML页面源代码代码结构清晰,页面组件可DIY性强. HTML页面文件齐全 每套都是经典模板 模板无需太多 有这几十套就足够了 拒绝差模板 不但不好用而且白费时间 废 ...
- 网站后台管理-登录页面
一.要实现的功能 1.登录页面有用户名和密码的验证,用户名和密码不能为空,长度在一定范围之内. 2.用户登录后,将用户的登录信息保存在session中. 3.注重安全性,不能在地址栏输入地址就能直接访 ...
- woocommerce分类页面模板_怎样让wordpress网站的不同分类页面,调用不同的banner图片?...
在我们的wordpress网站模板开发中,我们可能有这样的一个需求,就是能在自己的wordpress网站的不同的分类目录页面,能调用不同的banner图片.比如:医院类网站,医院科室比较多,男科分类调 ...
- 渗透测试之后台查找,如何查找网站后台
渗透测试之后台查找,如何查找网站后台 1.当前页面信息浏览 查看图片的相关属性 查看网站底部管理入口和版权信息 robots文件 故意请求不存在的页面 2.当前页面后台猜解 CMS指纹识别 猜解常见后 ...
- php搭建的网站空白,使用phpstudy搭建dedecms网站后台页面空白解决方法
这篇文章主要为大家详细介绍了使用phpstudy搭建dedecms网站后台页面空白解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴. 在把 phpStudy ...
- CRM后台管理系统:HTML+CSS+JavaScript制作企业网站后台管理系统模板网站(46个页面)
CRM后台管理系统:HTML+CSS+JavaScript制作企业网站后台管理系统模板网站(46个页面) 一款使用Bootstrap构建,多个主页版本的企业网站后台管理系统,咨询管理,数据统计后台管理 ...
- php网站后台登录背景,wordpress后台登录页面logo/链接/背景修改(自定义)
wordpress后台登录页面logo链接默认是链接到https://cn.wordpress.org/,logo图标是一个W图,没有背景图.为了个性化,很多wordpress网站后台都进行了自定义W ...
- CRM后台管理系统:HTML+CSS+JavaScript制作企业网站后台管理系统模板网站(46个页面)...
CRM后台管理系统:HTML+CSS+JavaScript制作企业网站后台管理系统模板网站(46个页面) 一款使用Bootstrap构建,多个主页版本的企业网站后台管理系统,咨询管理,数据统计后台管理 ...
- 网站服务器监测通知工具11款
11款网站服务器监测通知工具.没有哪个站长愿意自己的网站宕机,但Google服务器都会出问题,何况是我等小网站.破服务器. 宕机所带来的损失和付出的代价往往是巨大的,我们除了能够尽量购买一个稳定的服务 ...
最新文章
- Windows10自带搜索增强设置
- Java中的集合笔记
- VTK:vtkAxisActor用法实战
- influxdb tsm文件_Influxdb中的Compaction操作
- shell 获取值 默认值
- [OT]我的2010(加班无极限)
- C#中几种常用的集合的用法
- 《c程序设计语言》练习1-12
- leetcode 买卖股票的最佳时机 II
- Eclipse 常用快捷键及使用技巧!
- BCD码与十进制数间转换
- python机器学习实例
- 神经网络之BP算法【图文并茂】
- 企业电子邮箱怎么写?企业邮箱登录入口是什么?
- day29 | 黑马程序员Java全程笔记 | 第二阶段MySQL高级事务-索引-视图-触发器-存储过程
- excel拆分表格之多条件拆分
- leetCode_Patching Array
- win7怎么修改服务器端口,教你在Win7中如何轻松修改3389远程桌面端口
- 四川大学计算机学院陈宇老师,十年母校情,拳拳赤子心——四川大学计算机学院(软件学院) 2005级校友捐赠签约仪式顺利举行...
- (四)万能的搜索 —— 3. 广度优先搜索
热门文章
- JavaScript的三大基本操作案例讲解
- 如何成为更好的前端工程师?如何才能进入下一个阶段?
- Java与Web前端发展前景及薪资对比
- 怎么学习前端开发?求推荐学习路线?
- 「译文」你必须掌握的 7 种 JavaScript 错误类型
- python自动登录qq空间_python 利用splinter组件,自动登录QQ空间
- java中怎样创建线程_java中的线程创建和使用
- android crash没有日志_App测试之monkey(四)-调试参数及日志
- matlab使用mex,c – 如何在Matlab中配置MEX功能
- python和jsp交互_Servlet与JSP进阶