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

📄 dealwithcenter.jsp

📁 J.LB.PurchaseStore v1.0 Beta
💻 JSP
字号:
<%@ include file = "../../config.jsp" %>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=GBK"%>
<jsp:useBean id="ManagerProduct" scope="page" class="myshop.product_sys.ManagerProduct"/>
<jsp:useBean id="ManagerCatalog" scope="page" class="myshop.catalog_sys.ManagerCatalog"/>
<jsp:useBean id="Handle" scope="page" class="myshop.Handle"/>
<%
//--- 判断处理行为 ---
if (Handle.getString(request,"action").equals("modify")) {
	ManagerProduct.Modify(request,tb_shop_product_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("del")) {
	ManagerProduct.Del(request,tb_shop_product_info,tb_gbook_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("show_out")) {
	ManagerProduct.ShowOut(request,tb_shop_product_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("unshow_out")) {
	ManagerProduct.UnShowOut(request,tb_shop_product_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("mark_absence")) {
	ManagerProduct.MarkAbsence(request,tb_shop_product_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("unmark_absence")) {
	ManagerProduct.UnMarkAbsence(request,tb_shop_product_info);
	response.sendRedirect("control.jsp");
}
else if (Handle.getString(request,"action").equals("moveproducts")) {
	ManagerProduct.MoveProducts(tb_shop_product_info,request);
	response.sendRedirect("control.jsp");
}

//--- 读取商品信息 ---
Hashtable ProductInfo = new Hashtable();
int Pid = Handle.getInt(request,"Pid");
ProductInfo = ManagerProduct.DetailProInfo(tb_shop_catalog,tb_shop_product_info,Pid);
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../style" rel="stylesheet" type="text/css">
</head>

<body>
<form name="form1" method="post" action="">
<input type="hidden" name="action" value="modify">
<input type="hidden" name="Pid" value="<%=Pid%>">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr> 
            <td colspan="2" bgcolor="33ccff">商品操作 -&gt; 管理商品 -&gt; 修改商品</td>
          </tr>
          <tr> 
            <td width="21%" bgcolor="eeeeee">名称:</td>
            <td width="79%" bgcolor="eeeeee"><input name="name" type="text" value="<%=ProductInfo.get("name")%>"></td>
          </tr>
          <tr> 
            <td bgcolor="eeeeee">简介:</td>
            <td bgcolor="eeeeee"><textarea name="description" cols="40" rows="7"><%=ProductInfo.get("description_txt")%></textarea></td>
          </tr>
          <tr> 
            <td bgcolor="eeeeee">关键字:</td>
            <td bgcolor="eeeeee"><input name="keywords" type="text" value="<%=ProductInfo.get("keywords")%>"></td>
          </tr>
          <tr>
            <td bgcolor="eeeeee">货架:</td>
            <td bgcolor="eeeeee"><select name="catalog_id">
<%
int catalog_id = Integer.parseInt(ProductInfo.get("catalog_id") + "");
out.print(ManagerCatalog.ListCatalog(tb_shop_catalog,catalog_id));
%>
              </select></td>
          </tr>
          <tr> 
            <td bgcolor="eeeeee">价钱:</td>
            <td bgcolor="eeeeee"><input name="price" type="text" value="<%=ProductInfo.get("price")%>"></td>
          </tr>
          <tr align="center" valign="middle"> 
            <td colspan="2" bgcolor="eeeeee"><input type="submit" name="Submit" value="修改"> 
              <input type="button" onclick="history.back()" value="返回"></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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