第三个礼拜考试培训
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第三个礼拜考试培训相关的知识,希望对你有一定的参考价值。
package com.xcaj.www.manage.performanceAppraisal.train.model; import java.sql.Timestamp; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; /** * TSafeinfoTrainForm entity.培训表单表 */ @SuppressWarnings("all") @Entity @Table(name = "t_safeinfo_train_form") public class TSafeinfoTrainForm implements java.io.Serializable { /** * 主键 */ private String id; /** * 考试培训内容 */ private String kspxnr; /** * 考试培训时间 */ private Date kspxsj; /** * 类型 1.培训 2.考试 */ private Integer lx; /** * 培训类型 1。集体培训 2。专项培训 */ private Integer pxlx; /** * 考试及格分数 */ private Double ksjgfs; private Date createTime; private Date updateTime; private Integer isDele; @GenericGenerator(name = "generator", strategy = "uuid.hex") @Id @GeneratedValue(generator = "generator") @Column(name = "id", unique = true, nullable = false, length = 32) public String getId() { return this.id; } public void setId(String id) { this.id = id; } @Column(name = "kspxnr") public String getKspxnr() { return this.kspxnr; } public void setKspxnr(String kspxnr) { this.kspxnr = kspxnr; } @Column(name = "kspxsj", length = 23) public Date getKspxsj() { return this.kspxsj; } public void setKspxsj(Date kspxsj) { this.kspxsj = kspxsj; } @Column(name = "lx") public Integer getLx() { return this.lx; } public void setLx(Integer lx) { this.lx = lx; } @Column(name = "pxlx") public Integer getPxlx() { return this.pxlx; } public void setPxlx(Integer pxlx) { this.pxlx = pxlx; } @Column(name = "ksjgfs", precision = 53, scale = 0) public Double getKsjgfs() { return this.ksjgfs; } public void setKsjgfs(Double ksjgfs) { this.ksjgfs = ksjgfs; } @Column(name = "create_time", length = 23) public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Column(name = "update_time", length = 23) public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Column(name = "is_dele") public Integer getIsDele() { return this.isDele; } public void setIsDele(Integer isDele) { this.isDele = isDele; } }
package com.xcaj.www.manage.performanceAppraisal.train.service; import com.xcaj.www.manage.performanceAppraisal.train.model.TSafeinfoTrainForm; public interface TrainService { /** * 增加 */ public void trainSave(String totalRootCode,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs,Integer lx) throws Exception; /** * 修改 */ public void trainUpdate(String totalRootCode,TSafeinfoTrainForm tSafeinfoTrainForm,String id,String kspxsjs) throws Exception; /** * 删除 */ public void trainDel(String ids) throws Exception; }
package com.xcaj.www.manage.performanceAppraisal.train.service.impl; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.xcaj.www.manage.performanceAppraisal.train.model.TSafeinfoTrainForm; import com.xcaj.www.manage.performanceAppraisal.train.service.TrainService; import com.xcaj.www.util.dao.UtilDao; @Service public class TrainServiceImpl implements TrainService{ @Autowired private UtilDao utilDao; @Transactional public void trainSave(String totalRootCode,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs,Integer lx) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); Date date = (Date) sdf.parseObject(kspxsjs); tSafeinfoTrainForm.setLx(lx); tSafeinfoTrainForm.setKspxsj(date); tSafeinfoTrainForm.setCreateTime(new Date()); tSafeinfoTrainForm.setIsDele(0); utilDao.save(tSafeinfoTrainForm); } @Transactional public void trainUpdate(String totalRootCode, TSafeinfoTrainForm tSafeinfoTrainForm,String id,String kspxsjs) throws Exception { TSafeinfoTrainForm tSafeinfoTrainFormOld = (TSafeinfoTrainForm) utilDao.getObjectById(TSafeinfoTrainForm.class, id); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); Date date = (Date) sdf.parseObject(kspxsjs); tSafeinfoTrainFormOld.setKspxsj(date); tSafeinfoTrainFormOld.setUpdateTime(new Date()); tSafeinfoTrainFormOld.setKspxnr(tSafeinfoTrainForm.getKspxnr()); if(tSafeinfoTrainFormOld.getLx()==1){ tSafeinfoTrainFormOld.setPxlx(tSafeinfoTrainForm.getPxlx()); }else if (tSafeinfoTrainFormOld.getLx()==2) { tSafeinfoTrainFormOld.setKsjgfs(tSafeinfoTrainForm.getKsjgfs()); } utilDao.update(tSafeinfoTrainFormOld); } public void trainDel(String ids) throws Exception { if(ids!=null&&!"".equals(ids)){ String[] str = ids.split(","); if(ids != null && str.length > 0){ for (String id : str) { TSafeinfoTrainForm tSafeinfoTrainForm=(TSafeinfoTrainForm) utilDao.getObjectById(TSafeinfoTrainForm.class, id); tSafeinfoTrainForm.setIsDele(1); utilDao.update(tSafeinfoTrainForm); } } } } }
package com.xcaj.www.manage.performanceAppraisal.train.controller; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import jxl.write.DateFormat; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import com.xcaj.www.manage.performanceAppraisal.train.model.TSafeinfoTrainForm; import com.xcaj.www.manage.performanceAppraisal.train.service.TrainService; import com.xcaj.www.util.controller.UtilBaseController; import com.xcaj.www.util.pojo.Page; import com.xcaj.www.util.pojo.Param; /** * 考试表单 */ @Controller @RequestMapping("/manage/trainks") @SuppressWarnings("all") public class TrainksController extends UtilBaseController{ @Autowired private TrainService trainService; /** * 考试列表 */ @RequestMapping("trainksList.do") public String trainksList(Model model,String str_num,String str_size,String totalRootCode,String ksnr,String kssj1,String kssj2){ try { int num = 1; int size = 10; int rowCount = 0; if (str_num != null && !"".equals(str_num)) { num = Integer.parseInt(str_num); } if (str_size != null && !"".equals(str_size)) { size = Integer.parseInt(str_size); } List<Param> params = new ArrayList<Param>(); Param param = new Param("lx","=",2); params.add(param); if(ksnr!=null&&!"".equals(ksnr)){ Param param1 = new Param("kspxnr","like",ksnr); params.add(param1); } if(kssj1!=null&&!"".equals(kssj1)){ Param param2 = new Param("kspxsj",">=",kssj1+" 00:00:00"); params.add(param2); } if(kssj2!=null&&!"".equals(kssj2)){ Param param3 = new Param("kspxsj","<=",kssj2+" 23:59:59"); params.add(param3); } String orders = "createTime asc"; rowCount = (Integer) utilService.getCollection("TSafeinfoTrainForm", params, "", 0, 0, null); Page page = new Page(size, num, rowCount); List<TSafeinfoTrainForm> tSafeinfoTrainFormList = (List<TSafeinfoTrainForm>) utilService.getCollection("TSafeinfoTrainForm", params, orders, page.getStartRow(), page.getSize(), null); model.addAttribute("tSafeinfoTrainFormList", tSafeinfoTrainFormList) .addAttribute("page", page).addAttribute("str_size", str_size) .addAttribute("str_num", str_num) .addAttribute("totalRootCode", totalRootCode) .addAttribute("ksnr", ksnr).addAttribute("kssj1", kssj1) .addAttribute("kssj2", kssj2); return "/manage/performanceAppraisal/trainks/trainks_list"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 增加页面 */ @RequestMapping("trainksAdd.do") public String trainksAdd(Model model,String totalRootCode){ try { model.addAttribute("totalRootCode", totalRootCode); return "/manage/performanceAppraisal/trainks/trainks_add"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 增加方法 */ @RequestMapping("trainksSave.do") public String trainksSave(Model model,String totalRootCode,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs){ try { trainService.trainSave(totalRootCode,tSafeinfoTrainForm,kspxsjs,2); return "redirect:/manage/trainks/trainksList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 修改页面 */ @RequestMapping("trainksEdit.do") public String trainksEdit(Model model,String totalRootCode,String id){ try { TSafeinfoTrainForm tSafeinfoTrainForm =(TSafeinfoTrainForm) utilService.getObjectById(TSafeinfoTrainForm.class,id); model.addAttribute("tSafeinfoTrainForm", tSafeinfoTrainForm) .addAttribute("id", id) .addAttribute("totalRootCode", totalRootCode); return "/manage/performanceAppraisal/trainks/trainks_edit"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 修改方法 */ @RequestMapping("trainksUpdate.do") public String trainksUpdate(Model model,String totalRootCode,String id,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs){ try { trainService.trainUpdate( totalRootCode, tSafeinfoTrainForm, id,kspxsjs); return "redirect:/manage/trainks/trainksList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 查看 */ @RequestMapping("trainksShow.do") public String trainksShow(Model model,String id){ try { TSafeinfoTrainForm tSafeinfoTrainForm = (TSafeinfoTrainForm) this.utilService.getObjectById(TSafeinfoTrainForm.class, id); model.addAttribute("tSafeinfoTrainForm", tSafeinfoTrainForm); return "/manage/performanceAppraisal/trainks/trainks_show"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 删除 */ @RequestMapping("trainksDel.do") public String trainksDel(Model model,String ids){ try { trainService.trainDel(ids); return "redirect:/manage/trainks/trainksList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } }
package com.xcaj.www.manage.performanceAppraisal.train.controller; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import jxl.write.DateFormat; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import com.xcaj.www.manage.performanceAppraisal.train.model.TSafeinfoTrainForm; import com.xcaj.www.manage.performanceAppraisal.train.service.TrainService; import com.xcaj.www.util.controller.UtilBaseController; import com.xcaj.www.util.pojo.Page; import com.xcaj.www.util.pojo.Param; /** * 培训表单 */ @Controller @RequestMapping("/manage/train") @SuppressWarnings("all") public class TrainController extends UtilBaseController{ @Autowired private TrainService trainService; /** * 培训列表 */ @RequestMapping("trainList.do") public String trainList(Model model,String str_num,String str_size,String totalRootCode,String pxnr,String pxlxs,String pxsj1,String pxsj2){ try { int num = 1; int size = 10; int rowCount = 0; if (str_num != null && !"".equals(str_num)) { num = Integer.parseInt(str_num); } if (str_size != null && !"".equals(str_size)) { size = Integer.parseInt(str_size); } List<Param> params = new ArrayList<Param>(); Param param = new Param("lx", "=",1); params.add(param); if(pxnr!=null&&!"".equals(pxnr)){ Param param1 = new Param("kspxnr","like",pxnr); params.add(param1); } if(pxlxs!=null&&!"".equals(pxlxs)){ if(pxlxs.equals("1")||pxlxs.equals("2")){ Param param2 = new Param("pxlx","=",pxlxs); params.add(param2); } } if(pxsj1!=null&&!"".equals(pxsj1)){ Param param2 = new Param("kspxsj",">=",pxsj1+" 00:00:00"); params.add(param2); } if(pxsj2!=null&&!"".equals(pxsj2)){ Param param3 = new Param("kspxsj","<=",pxsj2+" 23:59:59"); params.add(param3); } String orders = "createTime asc"; rowCount = (Integer) utilService.getCollection("TSafeinfoTrainForm", params, "", 0, 0, null); Page page = new Page(size, num, rowCount); List<TSafeinfoTrainForm> tSafeinfoTrainFormList = (List<TSafeinfoTrainForm>) utilService.getCollection("TSafeinfoTrainForm", params, orders, page.getStartRow(), page.getSize(), null); model.addAttribute("tSafeinfoTrainFormList", tSafeinfoTrainFormList) .addAttribute("page", page).addAttribute("str_size", str_size) .addAttribute("str_num", str_num) .addAttribute("totalRootCode", totalRootCode) .addAttribute("pxnr", pxnr).addAttribute("pxlxs", pxlxs).addAttribute("pxsj1", pxsj1) .addAttribute("pxsj2", pxsj2); return "/manage/performanceAppraisal/trainy/train_list"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 增加页面 */ @RequestMapping("trainAdd.do") public String trainAdd(Model model,String totalRootCode,String kspxsjs){ try { model.addAttribute("kspxsjs", kspxsjs) .addAttribute("totalRootCode", totalRootCode); return "/manage/performanceAppraisal/trainy/train_add"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 增加方法 */ @RequestMapping("trainSave.do") public String trainSave(Model model,String totalRootCode,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs){ try { trainService.trainSave( totalRootCode, tSafeinfoTrainForm,kspxsjs,1); return "redirect:/manage/train/trainList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 修改页面 */ @RequestMapping("trainEdit.do") public String trainEdit(Model model,String totalRootCode,String id,String kspxsjs){ try { TSafeinfoTrainForm tSafeinfoTrainForm =(TSafeinfoTrainForm) utilService.getObjectById(TSafeinfoTrainForm.class,id); model.addAttribute("tSafeinfoTrainForm", tSafeinfoTrainForm) .addAttribute("kspxsjs", kspxsjs).addAttribute("id", id) .addAttribute("totalRootCode", totalRootCode); return "/manage/performanceAppraisal/trainy/train_edit"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 修改方法 */ @RequestMapping("trainUpdate.do") public String trainUpdate(Model model,String totalRootCode,String id,TSafeinfoTrainForm tSafeinfoTrainForm,String kspxsjs){ try { trainService.trainUpdate( totalRootCode, tSafeinfoTrainForm, id,kspxsjs); return "redirect:/manage/train/trainList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 查看 */ @RequestMapping("trainShow.do") public String trainShow(Model model,String id){ try { TSafeinfoTrainForm tSafeinfoTrainForm = (TSafeinfoTrainForm) this.utilService.getObjectById(TSafeinfoTrainForm.class, id); model.addAttribute("tSafeinfoTrainForm", tSafeinfoTrainForm); return "/manage/performanceAppraisal/trainy/train_show"; } catch (Exception e) { e.printStackTrace(); } return "error"; } /** * 删除 */ @RequestMapping("trainDel.do") public String trainDel(Model model,String ids){ try { trainService.trainDel(ids); return "redirect:/manage/train/trainList.do"; } catch (Exception e) { e.printStackTrace(); } return "error"; } }
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>查看</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>考试表单 >> 查看 </h2> </div> <div class="right_table"> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>查看 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 类型: </td> <td width="80%"> 考试 </td> </tr> <tr> <td class="table_rleft"> 考试内容: </td> <td> ${tSafeinfoTrainForm.kspxnr} </td> </tr> <tr> <td class="table_rleft"> 考试时间: </td> <td> <fmt:formatDate value="${tSafeinfoTrainForm.kspxsj}" pattern="yyyy-MM-dd HH:mm"/> </td> </tr> <tr> <td class="table_rleft"> 及格分数: </td> <td> ${tSafeinfoTrainForm.ksjgfs } </td> </tr> <tr> <td class="table_rleft"> 创建时间: </td> <td> <fmt:formatDate value="${tSafeinfoTrainForm.createTime}" pattern="yyyy-MM-dd HH:mm"/> </td> </tr> </table> </td> </tr> </table> </div> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>考试表单</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/checkBoxUtil.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> function show(url){ //var J = $.noConflict(); $.dialog({ title:‘查看‘, content: ‘url:<%=basePath%>‘+url, width:‘750px‘, hight:‘500px‘, min:false, max:false, lock:true }); } function cleanForm(){ $("#ksnr").val(""); $("#kssj1").val(""); $("#kssj2").val(""); } </script> </head> <body style="margin:0; padding:0;"> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif" /> </h1> <h2> <b>当前位置: 考试表单</b> </h2> </div> <div class="right_table"> <div class="right_table_list"> <form action="<%=basePath%>manage/trainks/trainksList.do" name = "myform" method="post"> <input type="hidden" name="totalRootCode" value="${totalRootCode }"/> <table border="0" cellpadding="0" cellspacing="0" class="top_search"> <tr> <td ><label>考试内容:</label> <input type="text" id="ksnr" name="ksnr" class="input_normal" value="${ksnr}" style="width: 85px;"/> <label>考试时间:</label> <input type="text" id="kssj1" name="kssj1" class="input_normal Wdate" style="width: 85px;" value="${kssj1}" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘});"/>-- <input type="text" id="kssj2" name="kssj2" class="input_normal Wdate" style="width: 85px;" value="${kssj2}" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘});"/> <input type="submit" id="dosearch" class="button_icon icon_cx" onmouseover="this.className=‘button_icon_over icon_cx‘;" onmouseout="this.className=‘button_icon icon_cx‘;" name="btncx" value="查询"/> <input type="button" name="btncx" class="button_icon icon_re" onmouseover="this.className=‘button_icon_over icon_re‘;" onmouseout="this.className=‘button_icon icon_re‘;" value="重置" onclick="cleanForm();"/> </td> </tr> </table> </form> </div> <div class="right_table"> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info" > <tr> <th> <div class="table_info_tit"><img src="<%=basePath%>images/system/right/icon_02.gif"/>考试表单</div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg" title="收起"/> </a> </div> </th> </tr> <tr> <th class="table_iconbutton"> <h1><input type="checkbox" class="selectAll" onclick="selectAllDeselect();"/></h1><h2>全选</h2> <a href="<%=basePath%>manage/trainks/trainksAdd.do?totalRootCode=2"> <h1><img src="<%=basePath%>images/system/main/tianjia_11.jpg" border="0"/></h1> <h2>添加</h2> </a> <a href="javascript:void(0)" onclick = "selectSubmit(‘<%=basePath%>manage/trainks/trainksDel.do?totalRootCode=4‘,‘确定删除?‘)" > <h1><img src="<%=basePath%>images/system/main/shanchu_13.jpg" border="0"/></h1><h2>删除</h2> </a> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%" class="mytable"> <table border="0" align="center" cellpadding="0" cellspacing="0" class="table_list"> <tr> <th>选择</th> <th>序列</th> <th>考试内容</th> <th>考试时间</th> <th>及格分数</th> <th>创建时间</th> <th>操作</th> </tr> <c:if test="${!empty tSafeinfoTrainFormList}"> <c:forEach items="${tSafeinfoTrainFormList}" var="item" varStatus="x"> <tr> <td align="center"> <input type="checkbox" class="selectBox" name="ids" value="${item.id}" onclick="checkSelectAll()" /> </td> <td align="center">${x.index+1+(page.num-1)*page.size}</td> <td align="center">${item.kspxnr} </td> <td align="center"><fmt:formatDate value="${item.kspxsj}" pattern="yyyy-MM-dd HH:mm"/> </td> <td align="center">${item.ksjgfs} </td> <td align="center"> <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd"/> </td> <td align="center"> <a href="<%=basePath%>manage/trainks/trainksEdit.do?id=${item.id}&totalRootCode=8&str_num=${str_num}&str_size=${str_size}" > 修改 </a> <a onclick="show(‘/manage/trainks/trainksShow.do?id=${item.id}&totalRootCode=16&str_num=${str_num}&str_size=${str_size}‘)" href="javascript:void(0);" > 查看 </a> </td> </tr> </c:forEach> </c:if> <c:if test="${empty tSafeinfoTrainFormList}"> <tr> <td colspan="7" align="center"> 暂无数据! </td> </tr> </c:if> </table> </td> </tr> </table> </div> </div> <div class="page"> <jsp:include flush="true" page="../../../../../fenye.jsp"> <jsp:param name="url4page" value="/manage/trainks/trainksList.do?totalRootCode=${totalRootCode}"/> </jsp:include> </div> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>修改考试</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> <script type="text/javascript" src="<%=basePath%>js/my_jquery_validate.js"></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> $(document).ready(function() { $("#myFrm").validate({ submitHandler: function() { form.submit(); }, rules: { "kspxnr": { required: true }, "kspxsjs": { required: true }, "ksjgfs": { required: true } } }); }); </script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>考试表单 >> 修改考试 </h2> </div> <div class="right_table"> <form action="<%=basePath%>manage/trainks/trainksUpdate.do" name="myform" id="myFrm" method="post" > <input type="hidden" name="totalRootCode" value="${totalRootCode}"/> <input type="hidden" name="id" value="${id}"/> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>修改考试 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 考试内容: </td> <td width="80%"> <input type="text" id="kspxnr" name="kspxnr" value="${tSafeinfoTrainForm.kspxnr }" class="input_normal"/> <img src="<%=basePath%>images/system/main/xinghao_03.jpg" /> </td> </tr> <tr> <td width="20%" class="table_rleft"> 考试时间: </td> <td width="80%"> <input type="text" id="kspxsjs" name="kspxsjs" class="input_normal Wdate" style="width: 150px;" value="<fmt:formatDate value="${tSafeinfoTrainForm.kspxsj}" type="both" pattern="yyyy-MM-dd HH:mm" />" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd HH:mm‘});"/> </td> </tr> <tr> <td class="table_rleft"> 及格分数: </td> <td> <input type="text" id="ksjgfs" name="ksjgfs" value="${tSafeinfoTrainForm.ksjgfs }" class="input_normal"/> </td> </tr> </table> </td> </tr> </table> </div> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_foot"> <tr> <td> <input type="submit" class="button" value="保存"/> <input type="button" class="button" onclick="window.location.href=‘<%=basePath%>manage/trainks/trainksList.do‘" value="返回"/> </td> </tr> </table> </div> </form> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>增加考试</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> <script type="text/javascript" src="<%=basePath%>js/my_jquery_validate.js"></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> $(document).ready(function() { $("#myFrm").validate({ submitHandler: function() { form.submit(); }, rules: { "kspxnr": { required: true }, "kspxsjs": { required: true }, "ksjgfs": { required: true } } }); }); </script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>考试表单 >> 增加考试 </h2> </div> <div class="right_table"> <form action="<%=basePath%>manage/trainks/trainksSave.do" name="myform" id="myFrm" method="post" > <input type="hidden" name="totalRootCode" value="${totalRootCode}"/> <input type="hidden" name="id" value="${id}"/> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>增加考试 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 考试内容: </td> <td width="80%"> <input type="text" id="kspxnr" name="kspxnr" value="${tSafeinfoTrainForm.kspxnr }" class="input_normal"/> <img src="<%=basePath%>images/system/main/xinghao_03.jpg" /> </td> </tr> <tr> <td width="20%" class="table_rleft"> 考试时间: </td> <td width="80%"> <input type="text" id="kspxsjs" name="kspxsjs" class="input_normal Wdate" style="width: 150px;" value="<fmt:formatDate value="${tSafeinfoTrainForm.kspxsj}" type="both" pattern="yyyy-MM-dd HH:mm" />" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd HH:mm‘});"/> </td> </tr> <tr> <td class="table_rleft"> 及格分数: </td> <td> <input type="text" id="ksjgfs" name="ksjgfs" value="${tSafeinfoTrainForm.ksjgfs }" class="input_normal"/> </td> </tr> </table> </td> </tr> </table> </div> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_foot"> <tr> <td> <input type="submit" class="button" value="保存"/> <input type="button" class="button" onclick="window.location.href=‘<%=basePath%>manage/trainks/trainksList.do‘" value="返回"/> </td> </tr> </table> </div> </form> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>查看</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>培训表单 >> 查看 </h2> </div> <div class="right_table"> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>查看 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 类型: </td> <td width="80%"> 培训 </td> </tr> <tr> <td class="table_rleft"> 培训内容: </td> <td> ${tSafeinfoTrainForm.kspxnr} </td> </tr> <tr> <td class="table_rleft"> 培训时间: </td> <td> <fmt:formatDate value="${tSafeinfoTrainForm.kspxsj}" pattern="yyyy-MM-dd HH:mm"/> </td> </tr> <tr> <td class="table_rleft"> 培训类型: </td> <td> <c:if test="${tSafeinfoTrainForm.pxlx==1}">集体培训</c:if> <c:if test="${tSafeinfoTrainForm.pxlx==2}">专项培训</c:if> </td> </tr> <tr> <td class="table_rleft"> 创建时间: </td> <td> <fmt:formatDate value="${tSafeinfoTrainForm.createTime}" pattern="yyyy-MM-dd HH:mm"/> </td> </tr> </table> </td> </tr> </table> </div> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>培训表单</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/checkBoxUtil.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> function show(url){ //var J = $.noConflict(); $.dialog({ title:‘查看‘, content: ‘url:<%=basePath%>‘+url, width:‘750px‘, hight:‘500px‘, min:false, max:false, lock:true }); } function cleanForm(){ $("#pxnr").val(""); $("#pxlxs").val("0"); $("#pxsj1").val(""); $("#pxsj2").val(""); } </script> </head> <body style="margin:0; padding:0;"> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif" /> </h1> <h2> <b>当前位置: 培训表单</b> </h2> </div> <div class="right_table"> <div class="right_table_list"> <form action="<%=basePath%>manage/train/trainList.do" name = "myform" method="post"> <input type="hidden" name="totalRootCode" value="${totalRootCode }"/> <table border="0" cellpadding="0" cellspacing="0" class="top_search"> <tr> <td ><label>培训内容:</label> <input type="text" id="pxnr" name="pxnr" class="input_normal" value="${pxnr}" style="width: 85px;"/> <label>培训类型:</label> <select id="pxlxs" name="pxlxs" class="input_normal" style="width: 85px;"> <option value="0" selected="selected">--请选择--</option> <option value="1" <c:if test="${pxlxs==1}">selected="selected"</c:if>>集体培训</option> <option value="2" <c:if test="${pxlxs==2}">selected="selected"</c:if>>专项培训</option> </select> <label>培训时间:</label> <input type="text" id="pxsj1" name="pxsj1" class="input_normal Wdate" style="width: 85px;" value="${pxsj1}" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘});"/>-- <input type="text" id="pxsj2" name="pxsj2" class="input_normal Wdate" style="width: 85px;" value="${pxsj2}" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘});"/> <input type="submit" id="dosearch" class="button_icon icon_cx" onmouseover="this.className=‘button_icon_over icon_cx‘;" onmouseout="this.className=‘button_icon icon_cx‘;" name="btncx" value="查询"/> <input type="button" name="btncx" class="button_icon icon_re" onmouseover="this.className=‘button_icon_over icon_re‘;" onmouseout="this.className=‘button_icon icon_re‘;" value="重置" onclick="cleanForm();"/> </td> </tr> </table> </form> </div> <div class="right_table"> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info" > <tr> <th> <div class="table_info_tit"><img src="<%=basePath%>images/system/right/icon_02.gif"/>培训表单</div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg" title="收起"/> </a> </div> </th> </tr> <tr> <th class="table_iconbutton"> <h1><input type="checkbox" class="selectAll" onclick="selectAllDeselect();"/></h1><h2>全选</h2> <a href="<%=basePath%>manage/train/trainAdd.do?totalRootCode=2"> <h1><img src="<%=basePath%>images/system/main/tianjia_11.jpg" border="0"/></h1> <h2>添加</h2> </a> <a href="javascript:void(0)" onclick = "selectSubmit(‘<%=basePath%>manage/train/trainDel.do?totalRootCode=4‘,‘确定删除?‘)" > <h1><img src="<%=basePath%>images/system/main/shanchu_13.jpg" border="0"/></h1><h2>删除</h2> </a> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%" class="mytable"> <table border="0" align="center" cellpadding="0" cellspacing="0" class="table_list"> <tr> <th>选择</th> <th>序列</th> <th>培训内容</th> <th>培训类型</th> <th>培训时间</th> <th>创建时间</th> <th>操作</th> </tr> <c:if test="${!empty tSafeinfoTrainFormList}"> <c:forEach items="${tSafeinfoTrainFormList}" var="item" varStatus="x"> <tr> <td align="center"> <input type="checkbox" class="selectBox" name="ids" value="${item.id}" onclick="checkSelectAll()" /> </td> <td align="center">${x.index+1+(page.num-1)*page.size}</td> <td align="center">${item.kspxnr} </td> <c:if test="${item.pxlx==1}"> <td align="center">集体培训</td></c:if> <c:if test="${item.pxlx==2}"> <td align="center">专项培训</td></c:if> <td align="center"><fmt:formatDate value="${item.kspxsj}" pattern="yyyy-MM-dd HH:mm"/> </td> <td align="center"> <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd"/> </td> <td align="center"> <a href="<%=basePath%>manage/train/trainEdit.do?id=${item.id}&totalRootCode=8&str_num=${str_num}&str_size=${str_size}" > 修改 </a> <a onclick="show(‘/manage/train/trainShow.do?id=${item.id}&totalRootCode=16&str_num=${str_num}&str_size=${str_size}‘)" href="javascript:void(0);" > 查看 </a> </td> </tr> </c:forEach> </c:if> <c:if test="${empty tSafeinfoTrainFormList}"> <tr> <td colspan="7" align="center"> 暂无数据! </td> </tr> </c:if> </table> </td> </tr> </table> </div> </div> <div class="page"> <jsp:include flush="true" page="../../../../../fenye.jsp"> <jsp:param name="url4page" value="/manage/train/trainList.do?totalRootCode=${totalRootCode}"/> </jsp:include> </div> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>修改培训</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> <script type="text/javascript" src="<%=basePath%>js/my_jquery_validate.js"></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> $(document).ready(function() { $("#myFrm").validate({ submitHandler: function() { form.submit(); }, rules: { "kspxnr": { required: true }, "kspxsjs": { required: true }, "pxlx": { required: true } } }); }); </script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>培训表单 >> 修改培训 </h2> </div> <div class="right_table"> <form action="<%=basePath%>manage/train/trainUpdate.do" name="myform" id="myFrm" method="post" > <input type="hidden" name="totalRootCode" value="${totalRootCode}"/> <input type="hidden" name="id" value="${id}"/> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>修改培训 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 培训内容: </td> <td width="80%"> <input type="text" id="kspxnr" name="kspxnr" value="${tSafeinfoTrainForm.kspxnr }" class="input_normal"/> <img src="<%=basePath%>images/system/main/xinghao_03.jpg" /> </td> </tr> <tr> <td width="20%" class="table_rleft"> 培训时间: </td> <td width="80%"> <input type="text" id="kspxsjs" name="kspxsjs" class="input_normal Wdate" style="width: 150px;" value="<fmt:formatDate value="${tSafeinfoTrainForm.kspxsj}" type="both" pattern="yyyy-MM-dd HH:mm" />" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd HH:mm‘});"/> </td> </tr> <tr> <td class="table_rleft"> 培训类型: </td> <td> <input type="radio" id="pxlx" name="pxlx" value="1" <c:if test="${tSafeinfoTrainForm.pxlx==1}">checked="checked"</c:if>/>集体培训 <input type="radio" id="pxlx" name="pxlx" value="2" <c:if test="${tSafeinfoTrainForm.pxlx==2}">checked="checked"</c:if>/>专项培训 </td> </tr> </table> </td> </tr> </table> </div> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_foot"> <tr> <td> <input type="submit" class="button" value="保存"/> <input type="button" class="button" onclick="window.location.href=‘<%=basePath%>manage/train/trainList.do?‘" value="返回"/> </td> </tr> </table> </div> </form> </div> </div> </div> </body> </html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <base href="<%=basePath%>"/> <title>添加培训</title> <link href="<%=basePath%>css/system/style.css" rel="stylesheet" type="text/css" /> <link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css"/> <script src="<%=basePath%>js/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="<%=basePath%>js/tableUtil.js" type="text/javascript" ></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=basePath%>plug-in-js/jquery-validate/js/messages_cn.js" type="text/javascript"></script> <script type="text/javascript" src="<%=basePath%>js/my_jquery_validate.js"></script> <script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script> <script type="text/javascript"> $(document).ready(function() { $("#myFrm").validate({ submitHandler: function() { form.submit(); }, rules: { "kspxnr": { required: true }, "kspxsjs": { required: true }, "pxlx": { required: true } } }); }); </script> </head> <body> <div class="right"> <div class="right_box"> <div class="right_nav"> <h1> <img src="<%=basePath%>images/system/right/icon_01.gif"/> </h1> <h2> <b>当前位置:</b>培训表单 >> 添加培训 </h2> </div> <div class="right_table"> <form action="<%=basePath%>manage/train/trainSave.do" name="myform" id="myFrm" method="post" > <input type="hidden" name="totalRootCode" value="${totalRootCode}"/> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_info"> <tr> <th> <div class="table_info_tit"> <img src="<%=basePath%>images/system/right/icon_02.gif"/>添加培训 </div> <div class="table_info_icon"> <a href="javascript:void(0)" onclick="chg(‘table_show‘);" id="table_show_a"> <img src="<%=basePath%>images/system/right/upp.jpg"/> </a> </div> </th> </tr> <tr> <td id="table_show" style="display: block;width:100%"> <table border="0" cellpadding="0" cellspacing="0" class="table_addlist"> <tr> <td width="20%" class="table_rleft"> 培训内容: </td> <td width="80%"> <input type="text" id="kspxnr" name="kspxnr" value="" class="input_normal"/> <img src="<%=basePath%>images/system/main/xinghao_03.jpg" /> </td> </tr> <tr> <td width="20%" class="table_rleft"> 培训时间: </td> <td width="80%"> <input type="text" id="kspxsjs" name="kspxsjs" class="input_normal Wdate" style="width: 150px;" value="${tSafeinfoTrainForm.kspxnr }" readonly="readonly" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd HH:mm‘});"/> </td> </tr> <tr> <td class="table_rleft"> 培训类型: </td> <td> <input type="radio" id="pxlx" name="pxlx" value="1"/>集体培训 <input type="radio" id="pxlx" name="pxlx" value="2"/>专项培训 </td> </tr> </table> </td> </tr> </table> </div> <div class="right_table_list"> <table border="0" cellpadding="0" cellspacing="0" class="table_foot"> <tr> <td> <input type="submit" class="button" value="保存"/> <input type="button" class="button" onclick="window.location.href=‘<%=basePath%>manage/train/trainList.do‘" value="返回"/> </td> </tr> </table> </div> </form> </div> </div> </div> </body> </html>
以上是关于第三个礼拜考试培训的主要内容,如果未能解决你的问题,请参考以下文章