⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 post.jsp

📁 JSP购物车(SQLserver版) ================== 简单的JSP电子商务网站购物车 带结算功能,带注册系统 大二时自己编写的,供大家参考学习 功能不是很详尽,美工
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="inc/common.jsp" %><%
String act = ParamUtils.getStringParameter(request,"act","");
ForumJsp forumJsp = new ForumJsp(request,response);
/*com.yeqiangwei.club.view.model.ModelsOfForumView modelsOfForumView = forumJsp.getModelsOfForumView();*/
%><c:set var="forum" value="<%=forumJsp.getModelsOfForumView()%>"/><%if(ParamUtils.getStringParameter(request,"topicId",null)!=null){
%><c:set var="topic" value="<%=forumJsp.findTopicAndContentById()%>"/><%}%><!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>
<title><club:logic type="whichStr" defaultStr="发表文章" whichStr="addtopic|edittopic" logic="发表文章|编辑文章" logicKey="<%=ParamUtils.getStringParameter(request,"act","addtopic")%>"/> - <c:out value="${forum.forumView.forumName} - ${basic.title}"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="${basic.keywords}"/>
<meta name="description" content="${forum.forumView.description}"/>
<meta name="author" content="YeQiangWei.com"/>
<link href="images/favicon.ico" rel="Bookmark" /> 
<link href="images/favicon.ico" rel="icon" type="image/x-icon" />
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<club:html type="css" />
<link id="YeQiangWeiEditor" href="YQWeditor/YeQiangWeiEditor.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript" src="YQWeditor/YQWeditor.js"></script>
<script type="text/javascript">
String.prototype.replaceAll = stringReplaceAll;
function stringReplaceAll(AFindText,ARepText){
  var raRegExp = new RegExp(AFindText.replace(/([\(\)\[\]\{\}\^\$\+\-\*\?\.\"\'\|\/\\])/g,"\\$1"),"g");
  return this.replace(raRegExp,ARepText); 
}
function cpr(va){
	var o = c.o("cp"+va);
	var str = "该文章为免费共享可任意转载传抄";
	switch(va){
		case "0":
			str = "";
		break;
		case "1":
			str = "作者声明:该文版权归作者个人所有,<c:out value="${basic.name}"/>享有网络发表权,其他网站、媒体未经书面许可,不得以任何形式转载!";
		break;
		case "2":
			str = "作者声明:该文版权为网络共享,大家喜欢的话可以任意转载,传抄,谢绝传统媒体转载!";
		break;
		case "3":
			str = "作者声明:该文在未经商业用途的情况下,可任意转载,传抄……";
		break;
	}
	if(o.checked){
		c.o("cp").innerHTML=str;
	}
}
</script>
</head>
<body>
<%@ include file="inc/nav.jsp" %><%@ include file="inc/header.jsp" %>
<div class="sitemap">
<ul>
<li>您的位置:</li><li><a href="/club/" target="_parent">社区首页</a>&gt;&gt;</li><li><a href="main.jsp" target="_self">进站画面</a>&gt;&gt;</li><c:forEach var="f" items="${forum.forumViews}"><li><club:link type="forumName" forum="${f}" />&gt;&gt;</li></c:forEach>
</ul>
</div><c:set var="f" value="<%=forumJsp.getTopicPostForm()%>"/>
<div class="psidebar gform">
<form name="YQWforms" id="YQWforms" onSubmit="return ed.prepareSubmit(c.o('title').value, 2);" method="post" action="topic.do" >
<fieldset>
<legend><club:logic type="whichStr" defaultStr="发表文章" whichStr="addtopic|edittopic|addreply|editreply" logic="发表文章|编辑文章:|回复文章:|编辑回复:" logicKey="<%=act%>"/><%
if(!act.equals("addtopic")&&act.indexOf("edit")==-1){ //如果是回复
%><c:out value="${topic.title}" escapeXml="false"/><em>(详细内容在下面...)</em><%
}
%></legend><%
if(act.indexOf("edit")==-1&&user==null){
%>
<div class="postdiv"><label for="userName">用户:</label><club:html type="input" name="userName" id="userName" htmlType="text" value="${f.userName}" property=" class=\"input\""/></div>
<div class="postdiv"><label for="password">密码:</label><club:html type="input" name="password" id="password" htmlType="password" value="${f.password}" property=" class=\"input\""/></div>
<%}%><div class="postdiv"><label for="topic">标题:</label><club:html type="input" name="title" id="title" htmlType="text" value="${f.title}" property=" class=\"input\" onblur=\"ed.checkFocus();\"" escapeUBB="false"/></div>
<%if(act.equals("addtopic")||act.equals("edittopic")){
%><c:if test="${forum.forumView.labelList!=null}"><div class="postdiv"><label for="topic">分类:</label><select id="labelId" name="labelId">
<option value="0" selected>选择</option>
<c:forEach var="l" items="${forum.forumView.labelList}">
<option value="<c:out value="${l.labelId}"/>" <c:if test="${f.labelId==l.labelId}">selected</c:if>><c:out value="${l.labelName}"/></option>
</c:forEach>
</select>&nbsp;&nbsp;<c:if test="${forum.forumView.needLabel==1}"><font class="red">必选</font></c:if>
</div></c:if><%
}%>
<div class="postdiv"><label for="mood">心情:</label>
<script language="javascript">
var a = 0;
for(i=1; i<11; i++){
	document.write("<input type=\"radio\" name=\"mood\" value=\""+i+"\" ");
	if(i==a){
		document.write(" checked");
	}
	document.write("/>");
	document.write("<img alt=\"心情"+i+"\" src=\"${basic.imagePath}mood/"+i+".gif\" />&nbsp;&nbsp;");
}
</script>
</div>
<div class="hide" id="oContent"><club:topic type="editcontent" request="<%=request%>" object="${topic}" escapeUBB="false"/></div>
<%@ include file="YQWeditor/YQWeditor.jsp" %>
<div></div>
<div><%@ include file="inc/msgHint.jsp" %><label for="content_save"></label>
<input type="submit" name="content_save" class="btn" id="content_save" value=" <club:logic type="whichStr" defaultStr="发表文章" whichStr="addtopic|edittopic|addreply" logic="|确定发表|确定编辑|确定回复" logicKey="<%=ParamUtils.getStringParameter(request,"act","addtopic")%>"/> "/>&nbsp;<font class="green">(Alt+q 快捷键)</font>
<span class="lab"><input type="checkbox" name="localizeImage" id="localizeImage" value="1" /><label for="localizeImage">本地化图片</label></span>
<input type="hidden" name="upfilesname" value="" />
<club:html type="input" name="topicId" id="topicId" htmlType="hidden" value="<%=String.valueOf(forumJsp.getTopicId())%>"/>
<club:html type="input" name="replyId" id="replyId" htmlType="hidden" value="<%=ParamUtils.getStringParameter(request,"replyId","0")%>"/>
<club:html type="input" name="lastReplyId" id="lastReplyId" htmlType="hidden" value="${f.replyId}"/>
<club:html type="input" name="forumId" id="forumId" htmlType="hidden" value="<%=String.valueOf(forumJsp.getForumId())%>"/>
<club:html type="input" name="page" id="page" htmlType="hidden" value="<%=String.valueOf(forumJsp.getPage())%>"/>
<club:html type="input" name="lpage" id="lpage" htmlType="hidden" value="<%=String.valueOf(forumJsp.getLastpage())%>"/>
<club:html type="input" name="act" id="act" htmlType="hidden" value="<%=ParamUtils.getStringParameter(request,"act")%>"/>
<club:html type="input" name="storey" id="storey" htmlType="hidden" value="<%=ParamUtils.getStringParameter(request,"storey","-1")%>"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="lab" style="height:28px; margin-top:10px;">
<club:html type="input" name="listSignatures" id="pn1" htmlType="radio" value="1" ovalue="${f.listSignatures}"/><label for="pn1">显示签名</label>
<club:html type="input" name="listSignatures" id="pn0" htmlType="radio" value="0" ovalue="${f.listSignatures}"/><label for="pn0">不显示签名</label>
</div>
<div class="lab">
<club:html type="input" name="copyright" id="cp0" htmlType="radio" value="0" ovalue="0" property=" onclick=\"javascript:cpr('0');\""/><label for="cp0">无版权声明</label>
<club:html type="input" name="copyright" id="cp1" htmlType="radio" value="1" ovalue="0" property=" onclick=\"javascript:cpr('1');\""/><label for="cp1">本站独享</label>
<club:html type="input" name="copyright" id="cp2" htmlType="radio" value="2" ovalue="0" property=" onClick=\"javascript:cpr('2');\""/><label for="cp2">网络共享</label>
<club:html type="input" name="copyright" id="cp3" htmlType="radio" value="3" ovalue="0" property=" onClick=\"javascript:cpr('3');\""/><label for="cp3">非商业性共享</label>
<p id="cp"></p>
</div>
<!--
<div class="postdiv">
<label for="needReply"><club:html type="input" name="needReply" id="needReply" htmlType="checkbox" value="1" ovalue="0" />需要回复</label>
&nbsp;请将需要回复才能看见的内容放入[reply]和[/reply]之间。
</div>
<div class="postdiv">
<label for="needScore"><club:html type="input" name="needScore" id="needScore" htmlType="checkbox" value="1" ovalue="0" />需要积分</label>
<club:html type="input" htmlType="text" name="needScoreNum" id="needScoreNum" value="0" />&nbsp;请将需要用户积分到指定数量以上才能看见的文章内容放入[score]和[/score]之间。
</div>
<div class="postdiv">
<label for="needHelp"><club:html type="input" name="needHelp" id="needHelp" htmlType="checkbox" value="1" ovalue="0" />需要帮助</label>
<club:html type="input" htmlType="text" name="needHelpNum" id="needHelpNum" value="0" />&nbsp;输入获得帮助后将要送出的积分数。
</div>
<div class="postdiv">
<label for="needMoney"><club:html type="input" name="needMoney" id="needMoney" htmlType="checkbox" value="1" ovalue="0" />需要支付</label>
<club:html type="input" htmlType="text" name="needMoneyNum" id="needMoneyNum" value="0" />&nbsp;请将需要支付金币才能看见的文章内容放入[money]和[/money]之间。
</div>
-->
</fieldset>
<br/><br/>
</form>
</div><%
if(!act.equals("addtopic")&&act.indexOf("edit")==-1){
%>
<div class="list bg_2" style="margin-top:2px;">
<div class="tr">&nbsp;<span class="txt_b"><c:out value="${topic.title}" escapeXml="false"/></span></div>
<div class="centent" style="padding:4px;"><club:topic type="content" request="<%=request%>" object="${topic}" escapeUBB="false"/></div>
</div><%
}
%><script language="javascript" type="text/javascript">
<!--
YeQiangWei_init();
function DivOperate(){
	var mouseModes = new Array();
		mouseModes = {"down" : [ "#fff", "1px solid #316AC5"]
		, "hover" : [ "#C1D2EE", "1px #316AC5 solid"]
		, "normal" : [ "none", "1px #D4D0C8 solid"]
		, "selected" : [ "#fff", "1px #316AC5 solid"]
	};
	var elements = new Array();
		elements = {"image" : [ "imageUrl", "iw", "ih", 380, 100, "content_hint_insertImage"]
		, "music" : [ "musicUrl", "mw", "mh", 380, 280, "content_hint_insertMusic"]
		, "flash" : [ "flashUrl", "fw", "fh", 380, 180, "content_hint_insertFlash"]
		, "upload" : [ "fileUrl", "uw", "uh", 380, -1, "content_hint_upload"]
		, "tools" : [ "", "", "", 0, 0, ""]
	};
	this.setContents = function(flag,url,w,h,s){
		var ohtml = ed.getEditorContents();
		if(ohtml!="<P></P>"&&ohtml.length>0){
			ohtml += "<br/>"
		};
		switch(flag){
			case "image":
				txt = "<img src=\""+url+"\"/>";
			break;
			case "music":
				txt = "[video="+w+","+h+"]"+url+"[/video]";
				if(s!=undefined&&s.length>0){
					txt += "<br/>[lrc]"+s+"[/lrc]";
				}
			break;
			case "flash":

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -