第三个礼拜考试培训

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;
    }

}

TSafeinfoTrainForm考试培训

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;

}

TrainService

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);
                    }
                }
            }
        }

}

TrainServiceImpl

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";
    }

}

TrainksController

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";
    }

}

TrainController

<%@ 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>考试表单 &gt;&gt; 查看
                </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>

trainks_show.jsp

<%@ 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;"/>&nbsp;&nbsp;
                                <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‘});"/>&nbsp;
                                <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="查询"/>&nbsp;
                                  <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>

trainks_list.jsp

<%@ 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>考试表单 &gt;&gt; 修改考试
                </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>

trainks_edit.jsp

<%@ 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>考试表单 &gt;&gt; 增加考试
                </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>

trainks_add.jsp

<%@ 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>培训表单 &gt;&gt; 查看
                </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>

train_show.jsp

<%@ 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;"/>&nbsp;&nbsp;
                                <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>&nbsp;&nbsp;
                                <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‘});"/>&nbsp;
                                <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="查询"/>&nbsp;
                                  <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>

train_list.jsp

<%@ 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>培训表单 &gt;&gt; 修改培训
                </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>

train_edit.jsp

<%@ 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>培训表单 &gt;&gt; 添加培训
                </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>

train_add.jsp

时间: 2024-11-17 08:24:41

第三个礼拜考试培训的相关文章

希赛电子商务设计师考试培训视频教程(2016)介绍

 一.课程简介 <电子商务设计师考试培训视频教程(2016)>由希赛教育高级讲师王勇.王群滨主编和讲解.根据最新的电子商务设计师考试动态,对考试中所有知识点进行了归类分析和总结,挖掘出了其中的考试重点和难点,指出了考试的命题方向以及每个知识点在实际考试中所占的分数比例. 本视频教程就考试中经常出现的一些问题进行了归纳和总结,压缩了所有考试重点和难点知识.所总结的考试重点知识包括了(基础知识.案例分析)实际考试时除专业英语以外的90%以上的考试知识点,而这些知识点几乎在每次考试中都会出现.本视频

考试培训市场的一些情况

目前来说,考试考证书,和对应之的培训,仍然是比较占据主流的,在教育市场,这个占据不少. 考培分两块,一块是学生,一块是老师.学生来源,一般由做这块的企业自己的销售团队去扩展,各种广告去找学生:老师来源,主要来自各大院校或者来自企业实践者. 有些老师是自由讲师,不隶属于任何一家企业,只是负责讲课,他们会被培训咨询企业邀请,去某个地方讲某些课程. 有些搞评估认证的评估师,也是自由之身,可以同时和几家企业签约,有业务了,就去搞评估. 如果有些人想要转行当 讲师.咨询师.评估师,必须多做一些准备,这块市

大三上 期中考试

自己做的,仅供参考.对错自负 湛江师范学院2014-2015学年度第 1学期 期中试卷 科目:LINUX平台及应用 题号 一. 操作 二. C 编程 三. shell编程 四. 辩论 总分 评分 复核 分值 25 25 25 25 100 蔡广基   得分 得分 评卷人   蔡广基 一.操作题.添加一个 1.0GB 的硬盘,分区为 /dev/sdb1 (10分),格式化它 (5分).每次开机时自动挂载它到 /mnt/b (10分).试写出具体的步骤. 1. 打开VMware Workstatio

科目三(番禺化龙展贸东路)考试录20170224

今天终于考完科目三,也无惊无险的过了. 讲起考驾照,科目二和科目三是个磨人的东西,在考试的前一周,整个人都在焦虑的状态,做什么都不能集中精神,总在查各种考试技巧和注意事项,并且脑里模拟自己在考试时候该怎么做,要是挂了怎么办,可能挂在哪,过了百分比是多少,挂了该过多久才能重考等等,我想这种情况我应该不是唯一一个人. 科目三是在15号预约的,而考前几天练几下就考是科目三的特色,之所以考前几天才练,我估计是因为考前三天才知道考试路段的原因--知哪练哪.后面我约到的是24号,在21号下午就知道我在展贸东

FOJ Problem 2254 英语考试

                                                                                                                                                                                    Problem 2254 英语考试 Accept: 36    Submit: 73Time Limit: 1000 mSec    Mem

PMP认证知识普及:PMP考试介绍

1 PMP简介 PMP(Project Management Professional)指项目管理专业人士(人事)资格认证.美国项目管理协会(PMI)举办的项目管理专业人员(PMP)认证考试在全球190多个国家和地区推广,是目前项目管理领域含金量最高的认证.获取PMP证书,不仅提升项目经理的项目管理水平,也直接体现项目经理的个人竞争力,是项目管理专业人士身份的象征. 国内自1999年开始推行PMP认证,由国际监考机构普尔文进行监考及考试组织! PMP作为项目管理资格认证考试,已在国际上树立了其权

PMP考试的过与只是

我在一年多时间里參加了三次PMP考试,前两次都失败,直到第三次才成功.怎样对待失败?这是每个人都会遇到的挑战.假设我们能用正确的态度对待临时的失败,那么终于的成功也就不远了.我希望通过本文与大家分享一下,自己是怎样从一个考试失败者蜕变成一名合格的PMP的.在这个蜕变的过程中,充满了艰辛和荆棘,但相同也充满了愉悦和快感.亲爱的朋友,假设你不幸地与我一样第一次没有考过,甚至第二次还没有考过,那么你也与我一样幸运地获得了一次甚至两次"痛并快乐着"成长的机会.临时的失败不可怕,可怕的是终于的失

北京大学CMA—让CMA考试更简单

不论你是初学者还是处于考试冲刺阶段,只要你准备参加CMA考试,只要你想把CMA考试变得简单,就可以来学习北京大学CMA. CMA考试应如何应对? 1.大量的课后练习 北大为考生准备的CMA新纲考试题库,10000+的练习 2.计划答题时间: 4个小时100道选择题加2道简答题,时间非常有限,所以保持稳定的答题速度是关键一步 3.把握考试重点 任何课程考试都有大纲,也都有一条主线,都有一定的重点,如果我们能够把握这条主线.这些重点,也就是说抓住课程的精髓,许多的问题将会迎刃而解.考试就不会觉得太难

一次考试也是一次项目,需要使用项目管理的思想来备考、应考

为什么说一次考试也是 一次项目? 项目(project):为创造一件独特的产品.一项服务或者一种结果而进行的临时性努力. 项目特征: }具有一个明确定义的目标 }是临时性的,具有明确的起止时间:简言之—一次性的!! }需要随着发展而逐渐细化 }需要来自不同领域的资源 }应该有一位主要客户或项目发起人 }包含不确定性(项目管理富于挑战性的主要原因之一) 考试这个项目分为以下几个阶段: 1.启动项目 2.组织与准备 3.执行项目工作 4.结束项目 因为计算机二级MYSQL和软考中级(软件设计师)都考