📄 avatar.tag
字号:
<%--用户头像 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="Conright">
<div id="control-left2">
<form action="save_usercpavatar.htm" method="post" enctype="multipart/form-data" name="postpm" id="postpm" >
<div id="pannel-list-nav" style="border-bottom:1px solid #DCE6F1;">
<div id="bbs-title">
<h3>编辑个人头像</h3>
</div>
<div class="from-nav">
<div class="Mtitle"><span>当前头像:</span></div>
<div class="Mright">
<c:choose>
<c:when test="${empty requestScope.userportrait}">
暂无头像
</c:when>
<c:otherwise>
<img src="${pageContext.request.contextPath}${requestScope.userportrait}" style="margin:15px;width:${user.portraitwidth }px;height:${user.portraitheight }px;"/>
<input type="hidden" name="currentportrait" value="${requestScope.userportrait}"/>
</c:otherwise>
</c:choose>
<input name="showavatarlist" type="button" id="showavatarlist" value="从论坛头像库中选择" class="lightbutton" style="margin-bottom:4px;" onclick="location.replace('usercpavatarlist.htm')"/>
</div>
</div>
<div class="from-nav">
<div class="Mtitle"><span> </span></div>
<div class="Mright">
<input type="radio" name="avatartype" value="1"
onclick="document.getElementById('file').disabled=false;document.getElementById('avatarurl').disabled=document.getElementById('avatarwidth').disabled=document.getElementById('avatarheight').disabled=true;"
/>上传新头像:<input name="file" id="file" type="file" size="40" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" disabled="disabled" />
</div>
</div>
<div class="from-nav">
<div class="Mtitle"><span> </span></div>
<div class="Mright"><input type="radio" name="avatartype" value="2" onclick="document.getElementById('file').disabled=true;document.getElementById('avatarurl').disabled=document.getElementById('avatarwidth').disabled=document.getElementById('avatarheight').disabled=false;"
/>有效的图片URL地址:
<input name="avatarurl" type="text" class="colorblue" id="avatarurl" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" value="${user.portraitaddress }" size="50" disabled="disabled" /><br />
宽度:
<input name="avatarwidth" type="text" id="avatarwidth" value="${user.portraitwidth }" size="3" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" disabled="disabled" />
高度:
<input name="avatarheight" type="text" id="avatarheight" value="${user.portraitheight }" size="3" class="colorblue" onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" disabled="disabled" />
</div>
</div>
<div class="btn-area">
<input type="submit" name="Submit" value="确定" class="sbutton" />
</div>
</div>
</form>
</div>
</div>
<iframe style="display: none;" src="upload"></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -