课程设计,大作业,毕业设计,项目练习,学习演示等
/**
*
* @param 下一页的分页链接
* @param 一页最大记录数
* @param 当前HttpServletRequest对象
* @param 数据库操作对象
*/
public static PageManager getPage(String path, int pageSize,
HttpServletRequest request) {
return new PageManager(path, pageSize, request);
}
/**
*
*
* @param hql语句
*
*/
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<%
String hql = " from Pj where 1=1 and goodid='"+gid+"' ";
String url = "/myproject/good.jsp?1=1&gid="+gid;
hql+=" order by id desc";
%>
<div>
<table class="table">
<thead>
<tr>
<th>评价等级</th>
<th>评价内容</th>
<th>评价人</th>
<th>评价时间</th>
</tr>
</thead>
</div>
</div>
<form>
<div class="control-group">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-envelope"></i></span>
<input class="span2" id="inputIcon" type="text" placeholder="Email address">
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-key"></i></span>
<input class="span2" id="inputIcon2" type="text" placeholder="Password">
</div>
goods.setNote(note);
if(!upFileFileName.equals("")){
String hz = upFileFileName.substring(upFileFileName.lastIndexOf(".")+1);
String img = Info.getAutoId()+"."+hz;
String filePath=ServletActionContext.getServletContext().getRealPath("upfile")+"/"+img;
File targetFile=new File(filePath);
upLoadFile(upFile,targetFile);
goods.setFilename(img);
}
commonDAO.update(goods);
suc="编辑商品成功";
return "success";
}
//设置特价
public String goodstjset(){
Goods gd = (Goods)commonDAO.findById(id, "Goods");
if(!tprice.equals("")){
if(Double.valueOf(tprice)>=Double.valueOf(gd.getPrice())){
suc="特价必须低于原价!";
}else{
gd.setTprice(tprice);
commonDAO.update(gd);
public static void main(String[] g )
{
System.out.print(Info.getDateStr());
}
public static String getUTFStr(String str) {
if(str==null){
return "";
}
try {
str = new String(str.getBytes("ISO-8859-1"),"utf-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
</div>
</div>
<div class="product-grid single-product">
<a href="single.html">
<div class="more-product"><span> </span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<img src="images/m3.png" class="img-responsive" alt="">
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button>View</button>
</h4>
</div>
</div>
DemoObj d51 = new DemoObj();
d51.id="160"; d51.pId="38"; d51.code="111403"; d51.name="土地整理储备贷款"; d51.state="0";
demoDataMap.put(d51.id, d51);
DemoObj d52 = new DemoObj();
d52.id="161"; d52.pId="38"; d52.code="111404"; d52.name="园区开发区建设贷款"; d52.state="0";
demoDataMap.put(d52.id, d52);
DemoObj d53 = new DemoObj();
d53.id="39"; d53.pId="5"; d53.code="111500"; d53.name="项目融资贷款"; d53.state="0";
demoDataMap.put(d53.id, d53);
DemoObj d54 = new DemoObj();
d54.id="397"; d54.pId="39"; d54.code="aaa"; d54.name="bbb"; d54.state="0";
demoDataMap.put(d54.id, d54);
DemoObj d55 = new DemoObj();
d55.id="40"; d55.pId="5"; d55.code="111600"; d55.name="授信垫款"; d55.state="0";
demoDataMap.put(d55.id, d55);
<li><a class="list" href="products.html">Strawberry</a></li>
<li><a class="list" href="products.html">Vanilla</a></li>
<li><a class="list" href="products.html">Eggless Cakes</a></li>
</ul>
</div>
<div class="col-sm-3">
<h4>By Theme</h4>
<ul class="multi-column-dropdown">
<li><a class="list" href="products.html">Heart shaped</a></li>
<li><a class="list" href="products.html">Cartoon Cakes</a></li>
<li><a class="list" href="products.html">2-3 Tier Cakes</a></li>
<li><a class="list" href="products.html">Square shape</a></li>
<li><a class="list" href="products.html">Round shape</a></li>
<li><a class="list" href="products.html">Photo cakes</a></li>
</ul>
</div>
<div class="col-sm-3">
<h4>Weight</h4>
Map session= ServletActionContext.getContext().getSession();
session.remove("member");
return "success";
}
//管理员退出
public String adminExit(){
Map session= ServletActionContext.getContext().getSession();
session.remove("admin");
return "success";
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsertype() {
return usertype;
}
*
* @param block
*/
private void md5Transform(byte block[]) {
long a = state[0], b = state[1], c = state[2], d = state[3];
long[] x = new long[16];
Decode(x, block, 64);
/* Round 1 */
a = FF(a, b, c, d, x[0], S11, 0xd76aa478L); /* 1 */
d = FF(d, a, b, c, x[1], S12, 0xe8c7b756L); /* 2 */
c = FF(c, d, a, b, x[2], S13, 0x242070dbL); /* 3 */
b = FF(b, c, d, a, x[3], S14, 0xc1bdceeeL); /* 4 */
a = FF(a, b, c, d, x[4], S11, 0xf57c0fafL); /* 5 */
d = FF(d, a, b, c, x[5], S12, 0x4787c62aL); /* 6 */
c = FF(c, d, a, b, x[6], S13, 0xa8304613L); /* 7 */
b = FF(b, c, d, a, x[7], S14, 0xfd469501L); /* 8 */
a = FF(a, b, c, d, x[8], S11, 0x698098d8L); /* 9 */
d = FF(d, a, b, c, x[9], S12, 0x8b44f7afL); /* 10 */
c = FF(c, d, a, b, x[10], S13, 0xffff5bb1L); /* 11 */
b = FF(b, c, d, a, x[11], S14, 0x895cd7beL); /* 12 */
a = FF(a, b, c, d, x[12], S11, 0x6b901122L); /* 13 */
private int index=1;
private CommonDAO commonDAO;
private File upFile;
private String upFileContentType;
private String upFileFileName;
private static final int FILE_SIZE=16*1024;
private String bsid;
//文件上传
public void upLoadFile(File source,File target){
InputStream in=null;
OutputStream out=null;
try{
in=new BufferedInputStream(new FileInputStream(source),FILE_SIZE);
out=new BufferedOutputStream(new FileOutputStream(target),FILE_SIZE);
byte[] image=new byte[FILE_SIZE];
while(in.read(image)>0){
out.write(image);
}
}catch(IOException ex){
ex.printStackTrace();
}finally{
try{
运行环境
Java≥8、Tomcat≥7.0、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
技术框架
JSP JavaScript jquery bootstrap Spring Struts2 Hibernate
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
后台管理员:管理各种信息
用户:购买和发布商品,留言,求购等
前台
后台