html前台页面表示只读和禁用
来源:互联网 发布:大数据现状 编辑:程序博客网 时间:2024/05/16 15:43
只读:
<input type= "text " readonly="readonly"> //只读
<input type= "text " readonly="true">
<input type= "text " disabled="disabled"> //禁用
<input type="file" name="file1" id="file1" value="浏览"contenteditable="false"onchange="checkFile(this)" title="单击浏览上传附件"/></td>
function zm(url){
return encodeURI(url);
}
<a href="javascript:zm('aaa.php?region=四川省')">aaa </a>
确认: if (confirm("您确定要修改该模板状态吗?")) {
alert("ok");
}
<c:forEach var="map" items="${map}">
<td>${map.key}</td>
<td>${map.value}</td>
<c:forEach var="domain" items="${domains.result}">
<tr onMouseOver="this.bgColor='#CCCFFF'" onMouseOut="this.bgColor='#FFFFFF'">
<td height="25" valign="middle"><input type="checkbox" name="chbox" value="${domain.id }" ></td>
<td height="25" valign="middle">${domain.id }</td>
<td height="25" valign="middle"><a href="domain_info.do?&domainid=${domain.id}&email=${domain.user.email }" target="_blank">${domain.name }</a></td>
<td height="25" valign="middle">${domain.user.id }</td>
<td height="25" valign="middle">${domain.user.email }</td>
<td height="25" valign="middle"><span title="注册联系人CNNIC ID:${domain.template.registrant.idString}">${domain.template.id }</span></td>
<td height="25" valign="middle"><fmt:formatDate type="both" value="${domain.creationTime }"/></td>
<td height="25" valign="middle"><fmt:formatDate type="both" value="${domain.expirationTime }"/></td>
<td height="25" valign="middle">
<% pageContext.setAttribute("dsSet", DomainStatus.fromInteger(((Domain) pageContext.getAttribute("domain")).getStatus())); %>
<c:forEach var="ds" items="${dsSet}">
${ds }
</c:forEach>
<% pageContext.removeAttribute("dsSet"); %>
</td>
<td height="25" valign="middle">
<a href="#" onclick="delDomain(${domain.id} ,'${domain.name }');return false;">删除</a>
<c:if test="${param.domainStatus == 'TRANSFERING'}">
<a href="#" onclick="refuse(${domain.id}); return false;">拒绝转出</a>
</c:if>
<a href="domain_info.do?&domainid=${domain.id }&email=${domain.user.email }" target="_blank">管理</a>>
<a href="domain_info.do?method=manageBrandAndBeian&domainid=${domain.id }&email=${domain.user.email }" target="_blank">商标备案</a>>
<form:hidden path = "userEmail" />
<form:hidden path="regDate" />
<form:hidden path="pageNo" />
</td>
</tr>
</c:forEach>
EL表达式:
<c:if test="${user.userGroup.name=='普通用户'}">
<tr align="left" valign="middle">
<td height="56" colspan="8" bgcolor="#DFE8EE"> <a href="payment.do?method=onlineVoucher&amount=1000" title="充值1000元立即升级为高级用户,将有更多优惠!"><font color="red">立即充值升级为高级用户>></font></a> <br>
使用积分升级为高级用户:<a href="payment.do?method=upGrade"><font color="red">test>></font></a></td>
</tr>
</table></td>
</tr>
</c:if>
<c:if test="${user.userGroup.name}=='普通用户'">
<tr align="left" valign="middle">
<td height="56" colspan="8" bgcolor="#DFE8EE"> <a href="payment.do?method=onlineVoucher&amount=1000" title="充值1000元立即升级为高级用户,将有更多优惠!"><font color="red">立即充值升级为高级用户>></font></a> <br>
使用积分升级为高级用户:<a href="payment.do?method=upGrade"><font color="red">test>></font></a></td>
</tr>
</table></td>
</tr>
<select name="registrant.organizationCodeType">
<option value="ORG">组织机构代码证</option>
<option value="YYZZ" <c:if test="${template.registrant.organizationCodeType=='YYZZ'}">selected</c:if>>工商营业执照</option>
</select>
</c:if>
JS中的EL表达式:
if(${domainRecognizedInfo.domainId==0}) alert(11);else alert(22);
if(${domainRecognizedInfo.domainId==null}) alert(1);else alert(2);
js可以写在外面;
Event.observe(window, "load", init);//页面加载时执行init方法
- html前台页面表示只读和禁用
- 前台技术--页面只读JS写法
- text只读和禁用的区别
- 前台页面控制台输出日志和弹出html代码
- 前台autoForm控件的只读和隐藏
- html页面右键菜单禁用
- html页面右键菜单禁用
- 禁用页面控件(即改为只读)的方式
- angular2响应式表单禁用和只读设置
- 如何禁用HTML页面的上下文菜单
- 如何禁用HTML页面的上下文菜单
- 网站前台静态页面html模板
- html/js等前台页面debuger调试
- 前台HTML页面显示XML内容
- 【前端技巧】html右键禁用和web页面中添加加入qq群的方式
- 详解html和thymeleaf中的相对路径,解决springboot前台页面的相对路径问题
- 详解html和thymeleaf中的相对路径,解决springboot前台页面的相对路径问题
- 只读的表示键和值(字典)的集合
- ★【AC自动机】【树状数组】【NOI2011】阿狸的打字机
- 关于SVN的那些事儿
- Zabbix agent for Windows的安装、配置与启动
- 如何进行财务数据的安全保护
- 设计模式C++描述----07.建造者(Builder)模式
- html前台页面表示只读和禁用
- Struts2感言
- Android GPRS的自动打开与关闭。
- UNICON是一个架构描述语言 翻译 BY Lychee
- git 学习记录
- ubuntu 全键盘操作电脑
- 不用到处找资料,2天掌握Asp.net Mvc 3
- 私有云
- Linux下的C编程实战