📄 edittopic_alipay.jsp
字号:
UserDirDb udd = new UserDirDb();
String checked = "";
if (Topic.isBlog())
checked = "checked";
%>
<select name=blogUserDir>
<option value="<%=UserDirDb.DEFAULT%>">默认目录</option>
<%=udd.toOptions(privilege.getUser(request))%>
</select>
<script>
frmAnnounce.blogUserDir.value = "<%=Topic.getBlogUserDir()%>";
</script>
<input name=isBlog value=1 type=checkbox <%=checked%>>
发表至博客</td>
</tr>
<%}
}%>
<tr>
<td>支付宝账号</td>
<td>
<%
AlipayDb ad = new AlipayDb();
ad = ad.getAlipaydDb(Topic.getId());
%>
<input class="input" maxlength="200" size="35" name="alipay_seller" value="<%=ad.getSeller()%>">
<input name="plugin2Code" value="alipay" type="hidden"> </td>
</tr>
<tr>
<td>商品名称</td>
<td><input class="input" maxlength="200" size="25" name="alipay_subject" value="<%=ad.getSubject()%>">
价格
<input class="input" maxlength="20" size="5" name="alipay_price" value="<%=ad.getPrice()%>">
元</td>
</tr>
<tr>
<td>邮费承担方</td>
<td><input id="alipay_transport" onClick="checkTransport();" type="radio" value="3" name="alipay_transport" <%=ad.getTransport()==3?"checked":""%>>
虚拟物品不需邮递
<input id="alipay_transport" onClick="checkTransport();" type="radio" checked value="2" name="alipay_transport" <%=ad.getTransport()==2?"checked":""%>>
卖家承担运费
<input id="alipay_transport" onClick="checkTransport();" type="radio" value="1" name="alipay_transport" <%=ad.getTransport()==1?"checked":""%>>
买家承担运费
<br>
平邮
<input class="input" disabled maxlength="20" size="5" name="alipay_ordinary" value="<%=ad.getOrdinary()%>">
元 快递
<input class="input" disabled maxlength="20" size="5" name="alipay_express" value="<%=ad.getExpress()%>">
元 (不填为平邮)</td>
</tr>
<tr>
<td>演示网址</td>
<td><input class="input" maxlength="200" size="35" name="alipay_demo" value="<%=ad.getDemo()%>">
商品说明请填写于信息内容中</td>
</tr>
<tr>
<td>联系方式</td>
<td>淘宝旺旺
<input class="input" maxlength="20" size="10" name="alipay_ww" value="<%=ad.getWw()%>">
腾讯QQ
<input class="input" maxlength="20" size="10" name="alipay_qq" value="<%=ad.getQq()%>">
让买家在线联系您 </td>
</tr>
<tr>
<td width="20%">回复标题:</td>
<td width="80%"> <SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
<OPTION selected value="">选择话题</OPTION>
<OPTION value=[原创]>[原创]</OPTION>
<OPTION value=[转帖]>[转帖]</OPTION>
<OPTION value=[灌水]>[灌水]</OPTION>
<OPTION value=[讨论]>[讨论]</OPTION>
<OPTION value=[求助]>[求助]</OPTION>
<OPTION value=[推荐]>[推荐]</OPTION>
<OPTION value=[公告]>[公告]</OPTION>
<OPTION value=[注意]>[注意]</OPTION>
<OPTION value=[贴图]>[贴图]</OPTION>
<OPTION value=[建议]>[建议]</OPTION>
<OPTION value=[下载]>[下载]</OPTION>
<OPTION value=[分享]>[分享]</OPTION>
</SELECT>
<input name="topic" type="text" id="topic" size="60" maxlength="80" value="<%=topic%>">
<input type=hidden name="editid" value="<%=editid%>">
<input type="hidden" name="boardcode" value="<%=boardcode%>">
<input type="hidden" name="boardname" value="<%=boardname%>">
<input type="hidden" name="hit" value="<%=hit%>">
<input type="hidden" name="privurl" value="<%=privurl%>"> </td>
</tr>
<tr>
<td valign="top" width="20%">当前心情:<br>
将放在帖子的前面</td>
<td><iframe src="iframe_emote.jsp?expression=<%=Topic.getExpression()%>" height="25" width="500px" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes"></iframe>
<input type="hidden" name="expression" value="<%=Topic.getExpression()%>"></td>
</tr>
<tr>
<td rowspan="2" valign="bottom"><%if (privilege.isManager(request, boardcode)) {%>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><a href="javascript:replyCanSee()">回复可见</a></td>
</tr>
<tr>
<td><a href="javascript:experienceCanSee()">经验可见</a></td>
</tr>
</table>
<%}%>
<br>
<input type="checkbox" id="email_notify" name="email_notify" value="1" <%=Topic.getEmailNotify()==1?"checked":""%>>
有回复通知我
<script language="JavaScript">
<!--
<% if (rootid==-1) {
if (email_notify.equals("1")){ %>
frmAnnounce.email_notify.checked = true;
<% }
} %>
<% if (show_ubbcode.equals("0")) { %>
frmAnnounce.show_ubbcode.checked = true;
<% } %>
<% if (show_smile.equals("0")) { %>
frmAnnounce.show_smile.checked = true;
<% } %>
//-->
</script> </td>
<td><%if (attachments.size()<maxAttachmentCount) {%>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class=tablebody1 valign=top height=30>
文件 <input type="file" name="filename" size=10>
可以上传:
<select name="filetype" size=1>
<option value="">文件类型</option>
<option value=rar>rar</option><option value=gif>gif</option><option value=jpg>jpg</option><option value=bmp>bmp</option><option value=zip>zip</option><option value=png>png</option><option value=swf>swf</option><option value=doc>doc</option>
</select>
限制:<%=maxAttachmentCount%>个,限制大小<%=maxAttachmentSize%>K
<input name="button" type=button onClick="AddAttach()" value="增加附件">
</td>
</tr>
</table>
<%}%>
<div id=updiv name=updiv></div></td>
</tr>
<tr>
<td><%@ include file="../editor_full/editor.jsp"%>
<input type=hidden name="Content">
<input type=hidden name="isWebedit" value="<%=MsgDb.WEBEDIT_NORMAL%>">
<br>
<textarea name="tmpContent" style="display:none"><%=content%></textarea>
<script>
IframeID.document.body.innerHTML=frmAnnounce.tmpContent.value;
</script>
<%
if (Topic!=null) {
Iterator ir = attachments.iterator();
while (ir.hasNext()) {
Attachment am = (Attachment) ir.next(); %>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4%" align="center"><img src=../images/attach.gif width="17" height="17"></td>
<td width="96%">
<input name="attach_name<%=am.getId()%>" value="<%=am.getName()%>" size="30">
<a href="javascript:changeAttachName('<%=am.getId()%>', '<%=Topic.getId()%>', '<%="attach_name"+am.getId()%>')">改名</a>
<a href="javascript:delAttach('<%=am.getId()%>', '<%=Topic.getId()%>')">删除</a> <a target=_blank href="<%=am.getVisualPath()%>">查看</a> </td>
</tr>
</table>
<%}
}
%>
<input type=submit value=" 发 出 ">
<input type=reset value=" 重 写 "> </td>
</tr>
</TBODY>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form name="form3" action="?" method="post">
<td align="center"><input name="newname" type="hidden">
</td>
</form>
</tr>
</table>
<iframe id="hideframe" name="hideframe" src="edittopicdo_we.jsp" width=0 height=0></iframe>
<%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
<%@ include file="inc/footer.jsp"%>
<%}%>
</body>
<script>
function getRadioValue(myitem)
{
var radioboxs = document.all.item(myitem);
if (radioboxs!=null)
{
//如果只有一个radio
if (radioboxs.length==null) {
if (radioboxs.type=="radio" && radioboxs.checked)
return radioboxs.value;
else
return "";
}
for (i=0; i<radioboxs.length; i++)
{
if (radioboxs[i].type=="radio" && radioboxs[i].checked)
{
return radioboxs[i].value;
}
}
}
return "";
}
function checkTransport() {
if (getRadioValue("alipay_transport")=="1") {
frmAnnounce.alipay_ordinary.disabled = false;
frmAnnounce.alipay_express.disabled = false;
} else {
frmAnnounce.alipay_ordinary.disabled = true;
frmAnnounce.alipay_express.disabled = true;
}
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -