[img][/img]
<!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> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <link href="/bh/style/middle_style.css" rel="stylesheet" type="text/css"/> <script src="/bh/pjs/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="/bh/pjs/jquery.wresize.js" type="text/javascript"></script> <script src="/bh/pjs/contentboxdivresiez.js" type="text/javascript"></script> <script src="/bh/pjs/tab_style.js" type="text/javascript"></script> <script src="/bh/pjs/table_litmenu_100.js" type="text/javascript"></script> <script type="text/javascript" src="/bh/pjs/jquery.tmpl.js"></script> <script type="text/javascript" src="/bh/pjs/bindpage.js"></script> <script src="/bh/pjs/jquery2.json.js" type="text/javascript"></script> <script src="/bh/pjs/encode.js" type="text/javascript"></script> <script src="/bh/pjs/commin_yin.js" type="text/javascript"></script> <script id="AccessStrategyTmpl" type="text/x-jquery-tmpl"> <tr> <td style="width:450px"><span style="width:450px" class="kill">{{if AccountName==""}} - {{else}}${AccountName}{{/if}}</td> <td style="width:300px"><span style="width:300px" class="kill">${Protocols}</td> <td>${LastPwdModify}</td> <td class="mangerlei">{{if menushowhide=='true'}}[url=#@]手工修改[/url][b]|[/b]{{/if}}[url=manualpwd_info.cgi?${SessionId}&accountid=${HostAccountId}&tasktype=1]下载密码[/url]{{if mailaddr}}[b]|[/b][url=manualpwd_info.cgi?${SessionId}&accountid=${HostAccountId}&tasktype=2&mailaddr=${MailAddr}]发送密码[/url]{{/if}}{{if menushowhide=='true'}}[b]|[/b][url=manualpwd_history.cgi?${SessionId}&isaccount=1&hostid=${HostId}&accountid=${HostAccountId}]改密历史[/url]{{/if}}</td> </tr> </script> <script type="text/javascript"> function PwdHostAccountBind(){ var newdata = new Array(); $.each(PwdHostAccountList.data,function(i,item){ var Protocols = item.ProtocolName; //12-5 var menushow=false; $(item.ProtocolName).each(function(i,item2){ if($.inArray(item2,menushowi)>=0){ menushow=false; return false; }else{ //if(item2=="RDP"&&item.SystemAccount!=true){menushow=false;}else{menushow=true} menushow=true; } }) newdata.push("{AccountName:\""+item.AccountName+"\",Protocols:\""+Protocols+"\",LastPwdModify:\""+item.LastPwdModify+"\",HostAccountId:\""+item.HostAccountId+"\",menushowhide:\""+menushow+"\"}"); }); //12-5 newdata = eval("["+newdata+"]"); $(newdata).each(function(i,item){ item.SessionId=localsession; item.HostId=hostid; item.MailAddr=mailaddr; if(mailaddr==""){ item.mailaddr=false; }else{ item.mailaddr=true; } }) $("#AccessStrategyTmpl").tmpl(newdata).appendTo("#PwdHostAccountId"); } var menushowi=["HTTP","RADMIN","PCANY","FTP","VNC","X11","OTHER"] </script> <style> #head_tit_selectbox ul li{padding-bottom:0;line-height:20px} </style> <title>无标题文档</title> </head> <body scroll="no"> <div class="head-box"> [list] <li class="one">[url=#@]主机:<span id="HostNameId"></span>[/url]</li> [*][url=#@]改密历史[/url] [/list] </div> <div id="tabledivbox" > <!--此div为小菜单--><div id="poslitmenubox"><div id="poslitmenu"></div></div> <!--表头--> <div style="border:1px solid #ccc;border-top:none;width:100%;position:absolute;height:29px;z-index:0;margin-left:-1px;"> </div> <div class="faux-head"> <table border="0" cellspacing="0" cellpadding="0" style="width:100%;" id="tab-head"> <thead> <tr> <th style="width:450px">帐号</th> <th style="width:300px">协议</th> <th style="background-image:none">密码修改时间</th> <th class="mangerlei">管理</th> </tr> </thead> </table> </div> <div style="height:29px;width:100%;background:#f2f2f2;"></div> <!--此div包含作用为出滚动条--> <div class="tableboabox"> <table border="0" cellspacing="0" cellpadding="0" style="width:100%;" id="content"> <!--此处为表格实际宽度,如果表格不需要出现小菜单则把表格宽度设为100%--> <tbody id="PwdHostAccountId"> </tbody> </table> </div> </div> <div class="fenyelistbox"> [list] <li style="margin-right:5px"><span id="pageinfospan"></span>[url=#@]上一页[/url] [url=#@]下一页[/url] </li> <li> <input name="" type="text"/> </li> <li> <input name="" type="button" class="btn" value="跳转"/> </li> [/list] </div> <div class="dialog" id="Dialog01" style="width:306px;height:150px"> <div class="dialog-bg-1"></div> <div class="dialog-cont" style="width:306px"> <div class="dialog-title" style="width:286px"> <h2>手工修改密码</h2> <a class="dialog-close" href="javascript:void(0)"></a> </div> <div class="dialog-content dialog1" style="width:276px;height:90px"> <span>密码:</span> <span><input id="GeneratePwd" name="" type="password" class="textbox" value=""/><input id="GeneratePwd-2" name="" type="password" size="22" class="textbox" value="" style="width:146px;display:none"/></span> <span>[url=#@]随机密码[/url]</span> <span>确认:</span> <span><input id="PwdCheck" name="input2" type="text" class="textbox" value=""/><input id="PwdCheck-2" name="input2" type="password" size="22" class="textbox" value="" style="width:146px;display:none"/></span> <input type="button" value="确定" onclick="passcheck()"/> </div> </div> </div> </body> </html> //.inArray() var menushowi=["HTTP","RADMIN","PCANY","FTP","VNC","X11","OTHER"] $.inArray("HTTP", menushowi); //返回 3, 如果不包含在数组中,则返回 -1; //勾选框灰掉 var account=localaccount; $("#UOwner input").each(function(i,item){//默认第一个接收者勾选 if(i == 0){ $(this).attr({"checked":true}); } });
发表评论
-
jquery 有用代码片段
2016-04-23 19:29 4851、检测Internet Expl ... -
ios 自动播放
2015-11-27 16:42 0wx.ready(function () { ... -
js 判断本地文件
2015-08-18 11:31 565var fso, s=filespec; // fil ... -
confirm 弹出框上传成功后刷新一次页面
2014-10-16 11:48 688$.ajax({ url:"modm ... -
js 判断 null
2014-09-16 14:21 450var whj = null; if (!whj){ c ... -
父框架 中 有子框架弹出框 并该子框架式一个新的cgi
2014-08-27 10:56 805<div class="diag03& ... -
ie 谷歌浏览器 关于输入框不能复制黏贴
2014-08-26 17:57 707// 下面这段代码输入框禁止修改 但可以复制 & ... -
js正则表达式 运用
2014-08-26 09:50 580var codecheck = /^[a-zA-Z0- ... -
密钥管理页面的实现
2014-08-05 17:29 423实现的功能:可以实现公钥的管理 功能1:可以 ... -
json 转换 字符串
2014-07-23 09:59 519将后台程序(如php、cgi)发送过来的json数据转化为ja ... -
处理ie浏览器8以上 9、10、11的双击的bug
2014-07-14 17:38 368实现功能:有一个勾选框 在IE8前是 ok的 代码如下: ... -
IE8 滚动条问题 解决
2014-05-21 15:11 012343214 -
页面下拉框选项追加
2014-05-21 14:55 390项目描述: ...
相关推荐
jquery.tmpl.js v1.0 内含: jquery.tmpl.js jquery.tmplPlus.js 以及对应的min版本
jquery.tmpl.js jquery.tmpl.js jquery.tmpl.js
适用与jquery 的字符替换模板,示例:$(属性/元素).tmpl
jQuery .tmpl(), .template()大全集
NULL 博文链接:https://nannan408.iteye.com/blog/2126761
添加的版本:1.4.3 jQuery.tmpl(template [,data] [,options]) ...这可以是任何JavaScript类型,包括Array或Object。 options用户定义的键/值对的可选映射。扩展tmplItem渲染期间可用于模板的数据结构。
jquery-tmpl-master.zip
jquery-tmpl
wu.tmpl.js, 高性能模板引擎 (js template)
解决 [object HTMLInputElement]之类默认值的bug,作者已经7年没有更新此插件了,因此遇到此问题我对源码做了修改,修改时间:2017-11-01。有问题请联系我:31705252@qq.com
昨晚无意中发现一个有趣的jQuery插件.tmpl(),其文档在这里。官方解释对该插件的说明:将匹配的第一个元素作为模板,render指定的数据,签名如下: .tmpl([data,][options]) 其中参数data的用途很明显:用于render...
钉钉告警信息模板,本人确保真实可靠,且已经验证过,不会浪费大家的积分!
网址:http://api.jquery.com/jquery.tmpl/。 Tmpl提供了几种tag: ${}:等同于{{=}},是输出变量,通过了html编码的。 {{html}}:输出变量html,但是没有html编码,适合输出html代码。 {{if }} {{else}}:提供了分支...
解决 PHP 拼数据这方面的问题而有了 Smarty 这些模版,JavaScript 也可以利用模版来解决这些问题,比如基于 jQuery 的 jquery.tmpl
利用latex来自动生成一份自己的ACM模板,可以将自己所有的板子放在一个文件夹里,对应算法放置对应文件夹即可,在需要生成模板打印时,运行python代码,稍等即可生成板子,,可以自己自行修改模板样式
template.js 一款 JavaScript 模板引擎,简单,好用。提供一套模板语法,用户可以写一个模板区块,每次根据传入的数据,生成对应数据产生的HTML片段,渲染不同的效果。https://github.com/aui/artTemplate 1、特性 ...