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

📄 card_great.jsp

📁 此为图书管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.*,java.text.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<jsp:useBean id="ConnBean" scope="page" class="com.bean.db.conn" />
<%
try{
String str=request.getParameter("act");
if (str.equals("save"))
{
String cID=request.getParameter("cID");
String cName=request.getParameter("cName");
String cclass=request.getParameter("cclass");
String xid=request.getParameter("xid");
String adder=request.getParameter("adder");
String Cdh=request.getParameter("Cdh");
String sql="insert into card (c_id,name,class,xid,adder,dh) values ('"+cID+"','"+cName+"','"+cclass+"','"+xid+"','"+adder+"',"+Cdh+")";
if(ConnBean.execute(sql).equals("OK")){
	out.println("<script language='javascript'>alert('"+cName+"同学的借书证:"+cID+"已成功办理!');</script>");
}
}
}
catch(Exception e){
}
 %>

<style type="text/css">
<!--
BODY {
	BACKGROUND-IMAGE: none; BACKGROUND-COLOR: #ade3ff
}
.STYLE1 {
	font-family: "楷体_GB2312";
	font-weight: bold;
}
.STYLE2 {color: #ADE3FF}
.STYLE3 {color: #000000}
-->
</style>
</head>

<body>
<div align="center">
  <h2 class="STYLE1">新书入库</h2>
</div>
<form id="form1" name="form1" method="post" action="?act=save">
  <label>
  <div align="center">借书证编号:
    <input name="cID" type="text" id="cID" value="BKCD-<%=new SimpleDateFormat("yyyyMMdd-HHmmss").format(Calendar.getInstance().getTime())%>" />
    <br />
    <br />
  姓<span class="STYLE2">——</span>名:
  <input name="cName" type="text" id="cName" />
  <br />
  </div>
  </label>
  <p align="center"> 班    <span class="STYLE2">——</span>级:
    <input name="cclass" type="text" id="cclass" />
  </p>
  <p align="center">学<span class="STYLE2">——<span class="STYLE3">号</span></span>:
    <input name="xid" type="text" id="xid" />
  </p>
  <p align="center">  
    地<span class="STYLE2">——<span class="STYLE3">址</span></span>:
    <input name="adder" type="text" id="adder" />
  </p>
  <p align="center">电<span class="STYLE2">——<span class="STYLE3">话</span></span>:
      <input name="Cdh" type="text" id="Cdh" />
  </p>
  <p align="center">
    <label>
    <input type="submit" name="Submit" value="提交" />
    </label>
  </p>
</form>
</body>
</html>

⌨️ 快捷键说明

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