第二个礼拜基地调查

package com.estone.declaration.jddc.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * JddcTHdkzyfz entity. 科普基地活动开展和发展情况表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "jddc_t_hdkzyfz")
public class JddcTHdkzyfz implements java.io.Serializable {

    /**
     * 主键id
     */
    private Integer id;
    /**
     * 统计调查外键
     */
    private JddcTTjdc fkJddcId;
    /**
     * 曾是否举办以青少年科普教育为重点的活动     1是0否
     */
    private Integer isJbkphd;
    /**
     * 若填“是”,请列出:2014年场数
     */
    private Integer ncc1;
    /**
     * 2015年场数
     */
    private Integer ncc2;
    /**
     * 2016年场数
     */
    private Integer ncc3;
    /**
     * 承担区级以上科普活动任务    1、区级  2、市级  3、部级  4、国家级
     */
    private Integer cdhdlx;
    /**
     * 门票收费情况    1、免费  2、收费
     */
    private Integer isFees;
    /**
     * 收费金额 元
     */
    private Double sfje;
    /**
     * 是否愿意参加北京科普基地联盟一卡通活动     1、有意愿  2、无意愿
     */
    private Integer isCjykt;
    /**
     * 如有意愿参加,门票可优惠幅度     1、5折2、8折 3、无折扣4、其他折扣
     */
    private Integer yhfd;
    /**
     * 其他折扣
     */
    private String zkOnther;
    /**
     * 如有其他收费项目,票价可优惠幅度      1、5折2、8折 3、无折扣4、其他折扣
     */
    private Integer oyhfd;
    /**
     * 其他折扣
     */
    private String ozkOnther;

    private Date createTime;
    private Date updateTime;
    private Integer isDele;

    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name = "fk_jddc_id")
    public JddcTTjdc getFkJddcId() {
        return this.fkJddcId;
    }

    public void setFkJddcId(JddcTTjdc fkJddcId) {
        this.fkJddcId = fkJddcId;
    }

    @Column(name = "is_jbkphd")
    public Integer getIsJbkphd() {
        return this.isJbkphd;
    }

    public void setIsJbkphd(Integer isJbkphd) {
        this.isJbkphd = isJbkphd;
    }

    @Column(name = "ncc1")
    public Integer getNcc1() {
        return this.ncc1;
    }

    public void setNcc1(Integer ncc1) {
        this.ncc1 = ncc1;
    }

    @Column(name = "ncc2")
    public Integer getNcc2() {
        return this.ncc2;
    }

    public void setNcc2(Integer ncc2) {
        this.ncc2 = ncc2;
    }

    @Column(name = "ncc3")
    public Integer getNcc3() {
        return this.ncc3;
    }

    public void setNcc3(Integer ncc3) {
        this.ncc3 = ncc3;
    }

    @Column(name = "cdhdlx")
    public Integer getCdhdlx() {
        return this.cdhdlx;
    }

    public void setCdhdlx(Integer cdhdlx) {
        this.cdhdlx = cdhdlx;
    }

    @Column(name = "is_fees")
    public Integer getIsFees() {
        return this.isFees;
    }

    public void setIsFees(Integer isFees) {
        this.isFees = isFees;
    }

    @Column(name = "sfje", precision = 22, scale = 0)
    public Double getSfje() {
        return this.sfje;
    }

    public void setSfje(Double sfje) {
        this.sfje = sfje;
    }

    @Column(name = "is_cjykt")
    public Integer getIsCjykt() {
        return this.isCjykt;
    }

    public void setIsCjykt(Integer isCjykt) {
        this.isCjykt = isCjykt;
    }

    @Column(name = "yhfd")
    public Integer getYhfd() {
        return this.yhfd;
    }

    public void setYhfd(Integer yhfd) {
        this.yhfd = yhfd;
    }

    @Column(name = "zk_onther")
    public String getZkOnther() {
        return this.zkOnther;
    }

    public void setZkOnther(String zkOnther) {
        this.zkOnther = zkOnther;
    }

    @Column(name = "create_time", length = 0)
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time", length = 0)
    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;
    }
    @Column(name = "oyhfd")
    public Integer getOyhfd() {
        return oyhfd;
    }

    public void setOyhfd(Integer oyhfd) {
        this.oyhfd = oyhfd;
    }
    @Column(name = "ozk_onther")
    public String getOzkOnther() {
        return ozkOnther;
    }

    public void setOzkOnther(String ozkOnther) {
        this.ozkOnther = ozkOnther;
    }

}

JddcTHdkzyfz科普基地活动开展和发展情况表

package com.estone.declaration.jddc.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * JddcTDdsfqk entity. 园中单独收费情况表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "jddc_t_ddsfqk")
public class JddcTDdsfqk implements java.io.Serializable {

    /**
     * 主键id
     */
    private Integer id;
    /**
     * 统计调查外键
     */
    private JddcTTjdc fkJddcId;
    /**
     * 项目
     */
    private String xmName;
    /**
     * 价格
     */
    private Double fees;
    /**
     * 如有其他收费项目,票价可优惠幅度        1、5折2、8折 3、无折扣4、其他折扣
     */
    private Integer yhfd;
    /**
     * 其他折扣
     */
    private String zkOnther;

    private Date createTime;
    private Date updateTime;
    private Integer isDele;

    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name = "fk_jddc_id")
    public JddcTTjdc getFkJddcId() {
        return this.fkJddcId;
    }

    public void setFkJddcId(JddcTTjdc fkJddcId) {
        this.fkJddcId = fkJddcId;
    }

    @Column(name = "xm_name")
    public String getXmName() {
        return this.xmName;
    }

    public void setXmName(String xmName) {
        this.xmName = xmName;
    }

    @Column(name = "fees", precision = 22, scale = 0)
    public Double getFees() {
        return this.fees;
    }

    public void setFees(Double fees) {
        this.fees = fees;
    }

    @Column(name = "yhfd")
    public Integer getYhfd() {
        return this.yhfd;
    }

    public void setYhfd(Integer yhfd) {
        this.yhfd = yhfd;
    }

    @Column(name = "zk_onther")
    public String getZkOnther() {
        return this.zkOnther;
    }

    public void setZkOnther(String zkOnther) {
        this.zkOnther = zkOnther;
    }

    @Column(name = "create_time", length = 0)
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time", length = 0)
    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;
    }

}

JddcTDdsfqk园中单独收费情况表

package com.estone.declaration.jddc.hdkzhfz.action;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.estone.declaration.jddc.model.JddcTHdkzyfz;
import com.estone.declaration.user.model.UnitInfo;
import com.estone.manage.dictionary.model.Dictionary;
import com.estone.manage.district.model.District;
import com.estone.util.Loggers;
import com.estone.util.Page;
import com.estone.util.Param;
import com.estone.util.Util;
import com.estone.util.action.UtilBaseAction;
@ParentPackage("declarePackage")
@Namespace("/hdap")
@Action("hdap")
@Results({
    @Result(name = "kphdapqk_add",  location = "/declaration/jddc/hdkzhfz/hdap_add.jsp"),
    @Result(name = "kphdapqk_list", location = "/declaration/jddc/hdkzhfz/kphdapqk_list.jsp"),
    @Result(name = "hdap_edit_2014", location = "/declaration/jddc/hdkzhfz/hdap_edit.jsp"),
    @Result(name = "hdap_edit_2015", location = "/declaration/jddc/hdkzhfz/hdap_edit.jsp"),
    @Result(name = "hdap_edit_2016", location = "/declaration/jddc/hdkzhfz/hdap_edit.jsp")

})
@SuppressWarnings("all")
public class HdapAction extends UtilBaseAction {
    private JddcTHdkzyfz jddcTHdkzyfz;
    List<JddcTHdkzyfz> jddcTHdkzyfzList;
    private String ids;
    private String type;
    private String flag;
    private String taskFlag;
    private String pid;

    public String kphdapqkList(){
        System.out.println("-------------------列表加载的方法-------------------");
        try {
            int size = 10;
            int num = 1;
            int rowCount = 0;

            if(str_num!=null&&!"".equals(str_num)){
                num = Integer.parseInt(str_num);
            }
            if(str_size!=null&&!"".equals(str_size)){
                num = Integer.parseInt(str_size);
            }

            String order = "id asc";

            rowCount = (Integer) utilService.getCollection("JddcTHdkzyfz", null, order, 0, 0, null);
            Page page = new Page(size, num, rowCount);
            this.setPage(page);

            jddcTHdkzyfzList = (List<JddcTHdkzyfz>) utilService.getCollection("JddcTHdkzyfz", null, order, page.getStartRow(), page.getSize(), null);

            if(pid!=null&&!"".equals(pid)&&!"0".equals(pid)){

                jddcTHdkzyfz = (JddcTHdkzyfz) this.utilService.getObjectById(JddcTHdkzyfz.class, Integer.parseInt(pid));
            }
                return "kphdapqk_list";
        } catch (Exception e) {
            // TODO: handle exception
            e.printStackTrace();
        }

        return ERROR;
    }
    /**
     * 跳转到添加
     *
     */
    public String kphdapqkAdd(){
        System.out.println("-------------------跳转到增加页面的方法-------------------");
        try {
            return "kphdapqk_add" ;
        } catch (Exception e) {

            e.printStackTrace();
        }
        return ERROR;
    }
    /**
     * 增加
     *
     */
    public String kphdapqkSave(){
        System.out.println("-------------------增加的方法-------------------");
        try {
                jddcTHdkzyfz.setCreateTime(new Date());
                jddcTHdkzyfz.setUpdateTime(new Date());
                jddcTHdkzyfz.setIsDele(0);
                this.utilService.save(jddcTHdkzyfz);
                return kphdapqkList();
        } catch (Exception e) {
            Loggers.error("---------------hdap方法中的kphdapqkSave()方法出错:" + e.getMessage());
            e.printStackTrace();
        }
        return ERROR;
    }

    /**
     * 跳转到修改页面
     */

    public String kphdapqkEdit(){
        System.out.println("-------------------跳转到修改页面的方法-------------------");
        try {
            if(ids!=null&&!"".equals(ids)){
                jddcTHdkzyfz = (JddcTHdkzyfz) utilService.getObjectById(JddcTHdkzyfz.class, Integer.parseInt(ids));
                System.out.println(jddcTHdkzyfz.getCreateTime());
            }
            /*if(taskFlag != null && taskFlag.equals("2014")){
                return "hdap_edit_2014";
            }else if(taskFlag != null && taskFlag.equals("2015")){
                return "hdap_edit_2015";
            }else if(taskFlag != null && taskFlag.equals("2016")){
                return "hdap_edit_2016";
            }*/
            return "hdap_edit_2014";
        } catch (Exception e) {
            e.printStackTrace();
        }
        return ERROR;
    }

    /**
     * 修改
     */
    public String kphdapqkUpdate(){
        System.out.println("-------------------修改的方法-------------------");
        System.out.println("ids+++++++++++++++++++"+ids);
        try {
            if (ids != null && !"".equals(ids)) {
                JddcTHdkzyfz jddcTHdkzyfzOld = (JddcTHdkzyfz) this.utilService.getObjectById(JddcTHdkzyfz.class, Integer.parseInt(ids));
                jddcTHdkzyfzOld.setIsJbkphd(this.jddcTHdkzyfz.getIsJbkphd());
                jddcTHdkzyfzOld.setNcc1(this.jddcTHdkzyfz.getNcc1());
                jddcTHdkzyfzOld.setNcc2(this.jddcTHdkzyfz.getNcc2());
                jddcTHdkzyfzOld.setNcc3(this.jddcTHdkzyfz.getNcc3());
                jddcTHdkzyfzOld.setCdhdlx(this.jddcTHdkzyfz.getCdhdlx());
                jddcTHdkzyfzOld.setIsFees(this.jddcTHdkzyfz.getIsFees());
                jddcTHdkzyfzOld.setSfje(this.jddcTHdkzyfz.getSfje());
                jddcTHdkzyfzOld.setIsCjykt(this.jddcTHdkzyfz.getIsCjykt());
                jddcTHdkzyfzOld.setYhfd(this.jddcTHdkzyfz.getYhfd());
                jddcTHdkzyfzOld.setZkOnther(this.jddcTHdkzyfz.getZkOnther());
                jddcTHdkzyfzOld.setOyhfd(this.jddcTHdkzyfz.getOyhfd());
                jddcTHdkzyfzOld.setOzkOnther(this.jddcTHdkzyfz.getOzkOnther());
                jddcTHdkzyfzOld.setUpdateTime(new Date());
                this.utilService.update(jddcTHdkzyfzOld);
            }
            return kphdapqkList();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return ERROR;
    }

    /**
     *
     * 删除
     */
    //删除
        public String dictionaryDel(){
            try {
                if (ids != null && !"".equals(ids)) {

                        utilService.updateAll("update JddcTHdkzyfz j set j.isDele=1 where j.id="+ids);

                }
                return kphdapqkList();
            } catch (Exception e) {
                e.printStackTrace();
            }
            return ERROR;
        }

    public JddcTHdkzyfz getJddcTHdkzyfz() {
        return jddcTHdkzyfz;
    }
    public void setJddcTHdkzyfz(JddcTHdkzyfz jddcTHdkzyfz) {
        this.jddcTHdkzyfz = jddcTHdkzyfz;
    }
    public List<JddcTHdkzyfz> getJddcTHdkzyfzList() {
        return jddcTHdkzyfzList;
    }
    public void setJddcTHdkzyfzList(List<JddcTHdkzyfz> jddcTHdkzyfzList) {
        this.jddcTHdkzyfzList = jddcTHdkzyfzList;
    }
    public String getIds() {
        return ids;
    }
    public void setIds(String ids) {
        this.ids = ids;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getFlag() {
        return flag;
    }
    public void setFlag(String flag) {
        this.flag = flag;
    }
    public String getTaskFlag() {
        return taskFlag;
    }
    public void setTaskFlag(String taskFlag) {
        this.taskFlag = taskFlag;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}

HdapAction

package com.estone.declaration.jddc.ddsfqk.action;

import java.util.Date;
import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import antlr.Utils;

import com.estone.declaration.jddc.model.JddcTDdsfqk;
import com.estone.util.action.UtilBaseAction;
/**
 *
 * 单独收费情况
 *
 */

@SuppressWarnings("all")
@ParentPackage("declarePackage")
@Namespace("/ddsfqk")
@Action("ddsfqk")
@Results({
    @Result(name="ddsfqk_list",location="/declaration/jddc/ddsfqk/ddsfqk_list.jsp"),
    @Result(name="ddsfqk_edit",location="/declaration/jddc/ddsfqk/ddsfqk_edit.jsp"),

})
public class DdsfqkAction extends UtilBaseAction {
    private JddcTDdsfqk jddcTDdsfqk;
    private List<JddcTDdsfqk> jddcTDdsfqkList;
    private String ids;
    private  String fkJddcId;
    private String id;

    /**
     * 加载列表
     */
    public String ddsfqkEdit(){
        if(ids!=null&&!"".equals(ids)){
            return "ddsfqk_edit";
        }

        return ERROR;
    }

    /**
     * 单独收费列表
     *
     */
    public String ddsfqkList(){
        try {
            if(ids!=null&&!"".equals(ids)){
                jddcTDdsfqkList = (List<JddcTDdsfqk>) utilService.getHqlAll("from JddcTDdsfqk j where j.isDele=0");
            }
            return "ddsfqk_list";
        } catch (Exception e) {
            // TODO: handle exception
        }

        return ERROR;
    }
    /**
     *
     *增加方法
     */

    public String ddsfqkSave(){
        try {
                jddcTDdsfqk.setCreateTime(new Date());
                jddcTDdsfqk.setIsDele(0);
                utilService.save(jddcTDdsfqk);
            return SUCCESS;
        } catch (Exception e) {
            // TODO: handle exception
        }

        return ERROR;
    }

    /**
     *
     * 修改方法
     */
    public String ddsfqkUpdate(){
        try {
            if(id!=null&&!"".equals(id)){
                JddcTDdsfqk jddcTDdsfqkOld = (JddcTDdsfqk) utilService.getObjectById(JddcTDdsfqk.class,Integer.parseInt(id));
                jddcTDdsfqkOld.setXmName(jddcTDdsfqk.getXmName());
                jddcTDdsfqkOld.setFees(jddcTDdsfqk.getFees());
                utilService.update(jddcTDdsfqkOld);
            }
            return SUCCESS;
        } catch (Exception e) {
            // TODO: handle exception
        }
        return ERROR;
    }

    public JddcTDdsfqk getJddcTDdsfqk() {
        return jddcTDdsfqk;
    }
    public void setJddcTDdsfqk(JddcTDdsfqk jddcTDdsfqk) {
        this.jddcTDdsfqk = jddcTDdsfqk;
    }
    public List<JddcTDdsfqk> getJddcTDdsfqkList() {
        return jddcTDdsfqkList;
    }
    public void setJddcTDdsfqkList(List<JddcTDdsfqk> jddcTDdsfqkList) {
        this.jddcTDdsfqkList = jddcTDdsfqkList;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getFkJddcId() {
        return fkJddcId;
    }

    public void setFkJddcId(String fkJddcId) {
        this.fkJddcId = fkJddcId;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

}

DdsfqkAction

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
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 xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <base href="<%=basePath%>"/>
    <title>近三年科普影视(片)放映情况</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/style.css"/>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/report.css"/>

    <script src="<%=basePath%>js/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/iframefit.js" type="text/javascript"></script>
    <script type="text/javascript">

        function showDialog(url,reload){
            window.top.showDialog(url,reload);
        }
        function getVideoSize(){
            var table = document.getElementById("eduVideo");
            return table.rows.length;
        }
    </script>

  </head>

  <body>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="report01">
        <tr>
            <td id="title_px" colspan="3">园中单独收费项目(<font color="red">可添加行</font>)</td>
        </tr>
        <tr>
            <th class="table_rleft">项目</th>
            <th class="table_rleft">价格</th>
            <th class="table_rleft">操作</th>
        </tr>
        <tbody id="eduVideo">
            <s:iterator var="item" value="jddcTDdsfqkList">
                <tr>
                    <td class="table_rleft">
                        <a href="javascript:void(0;)" onclick="show(${item.id})">${item.xmName }</a>
                    </td>
                    <td class="table_rleft">
                        ${item.fees }
                    </td>
                    <td class="table_rleft">

                    </td>
                </tr>
            </s:iterator>
        </tbody>
        <tr>
            <td colspan="3" id="btn_px">
                <font color="red">可以使用添加行增加项目列表</font>
                <input type="button" value="添加行" onclick="showDialog(‘url:<%=basePath%>declaration/jddc/ddsfqk/ddsfqk_add.jsp?ids=${ids }‘,‘true‘)" />

            </td>
        </tr>
    </table>
  </body>
</html>

ddsfqk_list.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
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 xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <base href="<%=basePath%>"/>
    <title>添加单独收费项目</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/report.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.min.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 src="${pageContext.request.contextPath}/plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function showDialog(url){
             $.dialog({
                 title:‘单独收费项目‘,
                 lock:true,
                 content:url,
                 width:900,
                 height:400,
                 close:function(){
                    window.frames[‘jddcTDdsfqkList‘].location.reload();
                 }
             });
        }
    </script>
  </head>

  <body>
    <table border="0" cellspacing="0" cellpadding="0" align="center" style="border:#bce8ff solid 1px">
        <tr>
            <td width="6px"></td>
            <td style="width:750px;" valign="top">
                <div class="right">
                    <div class="right_list">
                    <form action="<%=basePath%>ddsfqk/ddsfqk!ddsfqkUpdate.action" method="post" name="financeFrm" id="myFrm" >
                    <s:token/>
                        <input type="hidden" name="ids" value="${ids}"/>
                        <input type="hidden" name="taskFlag" value="${taskFlag} "/>
                        <div class="right_con">
                            <table width="99%" border="0" cellspacing="0" cellpadding="0" class="report" align="center">
                                <tr>
                                    <td style="padding-right: 1px;">
                                        <iframe id="ifm" name="jddcTDdsfqkList" src="<%=basePath%>ddsfqk/ddsfqk!ddsfqkList.action?ids=${ids}&taskFlag=${taskFlag}" width="100%" frameborder="0" style="border-right:1px solid #b3e5f0;margin-top: 10px; " ></iframe>
                                    </td>
                                </tr>

                            </table>    

                        </div>
                        <div class="right_link">
                            <input type="submit" id="dosearch" class="link_button" value="保 存"/>
                        </div>
                    </form>
                    </div>
                </div>
            </td>
        </tr>
    </table>
  </body>
</html>

ddsfqk_edit.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
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 xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <base href="<%=basePath%>"/>
    <title>添加单独收费项目</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/report.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.min.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 src="${pageContext.request.contextPath}/plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript"></script>
    <script type="text/javascript">

    </script>
  </head>

  <body>
    <table border="0" cellspacing="0" cellpadding="0" align="center" style="border:#bce8ff solid 1px">
        <tr>
            <td width="6px"></td>
            <td style="width:750px;" valign="top">
                <div class="right">
                    <div class="right_list">
                    <form action="<%=basePath%>ddsfqk/ddsfqk!ddsfqkSave.action" method="post" name="financeFrm" id="myFrm" >
                    <s:token/>
                        <input type="hidden" name="ids" value="${ids}"/>
                        <input type="hidden" name="taskFlag" value="${taskFlag} "/>
                        <div class="right_con">
                            <table width="99%" border="0" cellspacing="0" cellpadding="0" class="report" align="center">
                                <tr>
                                    <td class="tishi">带 <span>*</span> 为必填项</td>
                                </tr>
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" class="table_addlist">
                                            <tr>
                                                 <td width="20%" class="table_rleft">
                                                     项目:
                                                </td>
                                                <td width="60%">
                                                     <input name="jddcTDdsfqk.xmName" type="text" class="input_normal required" maxlength="100" value="${jddcTDdsfqk.xmName }"/>
                                                    <label class="note4">*</label>
                                                </td>
                                               </tr>
                                               <tr>
                                                 <td width="20%" class="table_rleft">
                                                     价格:
                                                </td>
                                                <td width="60%">
                                                     <input name="jddcTDdsfqk.fees" type="text" class="input_normal required" maxlength="100" value="${jddcTDdsfqk.fees}"/>
                                                    <label class="note4">*</label>
                                                </td>
                                               </tr>

                                           </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="right_link">
                            <input type="submit" id="dosearch" class="link_button" value="保 存"/>
                        </div>
                    </form>
                    </div>
                </div>
            </td>
        </tr>
    </table>
  </body>
</html>

ddsfqk_add.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
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%>"/>
    <link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>js/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/checkBoxUtil.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/table.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/table_show.js" type="text/javascript"></script>
    <script src="<%=basePath%>plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript" ></script>

  </head>

  <body style="margin:0;padding:0">
      <div class="right">
          <div class="right_box">
              <div class="right_nav">
                  <h1>
                      <img src="<%=basePath%>images/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/right/icon_02.gif"/>列表内容</div>
                                  <div class="table_info_icon"><a onclick="chg(‘table_show‘)" id="table_show_a"><img src="<%=basePath%>images/right/upp.jpg"/></a></div>
                              </th>
                          </tr>
                          <tr>
                              <th class="table_iconbutton">
                                  <h1><input type="checkbox" name="checkbox" id="checkbox" class="selectAll" onclick="noSelectAll()"/></h1><h2>全选</h2>

                                      <a href="<%=basePath%>hdap/hdap!kphdapqkAdd.action">
                                          <h1><img src="<%=basePath%>images/manage/main/tianjia_11.jpg" border="0"/>
                                          </h1><h2>增加</h2>
                                      </a>

                                      <a href="javascript:void(0)" onclick="selectSubmit(‘<%=basePath%>hdap/hdap!dictionaryDel.action‘,‘是否删除?‘)">
                                          <h1><img src="<%=basePath%>images/manage/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>2014年场数</th>
                                          <th>2015年场数</th>
                                          <th>2016年场数</th>
                                          <th>承担区级以上科普活动</th>
                                        <th>门票收费情况</th>
                                          <th>门票费用</th>
                                        <th>是否愿意参加北京科普基地联盟一卡通活动</th>
                                        <th>如有意愿参加,门票可优惠幅度</th>
                                        <th>其他折扣</th>
                                        <th>如有其他收费项目,票价可优惠幅度</th>
                                        <th>其他折扣</th>
                                        <th>创建时间</th>
                                        <th>操作</th>

                                      </tr>
                                      <s:if test="jddcTHdkzyfzList.size>0">
                                          <s:iterator value="jddcTHdkzyfzList" var="item" status="x">
                                              <tr>
                                                  <td    align="center">
                                                      <input type="checkbox" name="ids" id="deleteBox" class="selectBox" value="${item.id}" onclick="checkSelectAll(this)"/>
                                                  </td>
                                                  <td align="center">${x.index+1+(page.num-1)*page.size }</td>
                                                  <td align="center">
                                                  <s:if test="isJbkphd==1">是</s:if>
                                                  <s:if test="isJbkphd==0">否</s:if>
                                                  </td>
                                                  <td align="center">${item.ncc1 }场</td>
                                                  <td align="center">${item.ncc2 }场</td>
                                                  <td align="center">${item.ncc3 }场</td>
                                                <td align="center">
                                                <s:if test="cdhdlx==1">区级</s:if>
                                                <s:if test="cdhdlx==2">市级</s:if>
                                                <s:if test="cdhdlx==3">部级</s:if>
                                                <s:if test="cdhdlx==4">国家级</s:if>
                                                </td>
                                                  <td align="center">
                                                  <s:if test="isFees==1">免费</s:if>
                                                  <s:if test="isFees==2">收费</s:if>
                                                  </td>
                                                  <td align="center">${item.sfje}元</td>
                                                  <td align="center">
                                                  <s:if test="isCjykt==1">有意愿</s:if>
                                                  <s:if test="isCjykt==2">无意愿</s:if>
                                                  </td>
                                                  <td align="center">
                                                  <s:if test="yhfd==1">5折</s:if>
                                                  <s:if test="yhfd==2">8折</s:if>
                                                  <s:if test="yhfd==3">无折扣</s:if>
                                                  <s:if test="yhfd==4">其他折扣</s:if>
                                                  </td>
                                                  <td align="center">${item.zkOnther}折</td>
                                                  <td align="center">
                                                  <s:if test="oyhfd==1">5折</s:if>
                                                  <s:if test="oyhfd==2">8折</s:if>
                                                  <s:if test="oyhfd==3">无折扣</s:if>
                                                  <s:if test="oyhfd==4">其他折扣</s:if>
                                                  </td>
                                                  <td align="center">${item.ozkOnther}折</td>
                                                  <td align="center">${item.createTime}</td>
                                                  <td align="center">
                                                      <a href="<%=basePath%>hdap/hdap!kphdapqkEdit.action?ids=${item.id}">修改</a>
                                                   <a href="<%=basePath%>ddsfqk/ddsfqk!ddsfqkEdit.action?ids=${item.id}">单独收费情况</a>
                                                  </td>
                                              </tr>

                                          </s:iterator>
                                      </s:if>
                                      <s:else>
                                          <td colspan="9" align="center">
                                          暂无数据!
                                      </td>
                                      </s:else>
                                  </table>
                              </td>
                          </tr>
                      </table>
                  </div>
              </div>

          </div>

      <div class="page">
           <jsp:include flush="true" page="../../../declaration/fenye.jsp">
            <jsp:param name="url4page" value="/hdap/hdap!kphdapqkList.action"/>
           </jsp:include>
      </div>
      </div>

  </body>
</html>

kphdapqk_list.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
    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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<title>科普活动安排情况</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/report.css" />

<script src="<%=basePath%>js/jquery-1.7.min.js" type="text/javascript"></script>

<script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script>

<link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css" />
<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 src="<%=basePath%>plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript"></script>
<script>
     function isShow(flag){
            if(flag == "true"){
                $("#showInfo").show();
            } else{
                $(".ncc1").val("");
                $(".ncc2").val("");
                $(".ncc3").val("");
                $("#showInfo").hide();
            }
        }
       function sfisShow(flag){
           if(flag == "true"){
                $("#sfshowInfo").show();
            } else{
                $("#sfje").val(0);
                $("#sfshowInfo").hide();
            }
       }
       function zkisShow(flag){

       if(flag == "true"){
                $("#yhshowInfo").show();
            } else{
                $(".zkOnther").val("");
                $(".oyhfd").val(0);
                $(".ozkOnther").val("");
                $("#yhshowInfo").hide();
            }
       }
       function qtyhisShow(flag){
       if(flag == "true"){
                $("#oyhshowInfo").show();
            } else{
                $("#ozkOnther").val(0);
                $("#oyhshowInfo").hide();
            }
       }
        function lmisShow(flag){
       if(flag == "true"){
                $("#lmshowInfo").show();
            } else{
                $(".yhfd").val(0);
                $(".zkOnther").val("");
                $(".oyhfd").val(0);
                $(".ozkOnther").val("");

                $("#lmshowInfo").hide();
            }
       }

</script>

</head>
<body>
    <table border="0" cellspacing="0" cellpadding="0" width="1004px" height="100%" align="center" style="border:#bce8ff solid 1px">
        <tr>

            <td width="6px"></td>
            <td style="width:750px;" valign="top">
                <div class="right">
                    <div class="t_nav">
                        当前位置: &gt;&gt; &gt;&gt; <span>科普活动安排情况</span>
                    </div>
                    <div class="right_list">
                        <form action="<%=basePath%>hdap/hdap!kphdapqkUpdate.action" method="post" name="financeFrm" id="myFrm">
                            <input type="hidden" name="type" value="${type}" />
                            <input type="hidden" name="ids" value="${ids}"/>
                            <input type="hidden" name="flag" value="${flag}"/>
                            <input type="hidden" name="totalRootCode" value="${totalRootCode}"/>
                        <input type="hidden" name="taskFlag" value="${taskFlag}"/>

                            <div class="right_con">
                                <table width="99%" border="0" cellspacing="0" cellpadding="0"
                                    class="report" align="center">
                                    <tr>
                                        <th>科普活动安排情况</th>
                                    </tr>

                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0"
                                                class="table_addlist">

                                                <tr>
                                                    <td width="20%" class="table_rleft">(1)曾否举办以青少年科普教育为重点的活动:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isJbkphd" name="jddcTHdkzyfz.isJbkphd" value="1"  onclick="isShow(‘true‘)" <s:if test="jddcTHdkzyfz.isJbkphd==1">checked="checked"</s:if>/>是
                                                        <input type="radio" class="isJbkphd" name="jddcTHdkzyfz.isJbkphd"  value="0" onclick="isShow(‘false‘)" <s:if test="jddcTHdkzyfz.isJbkphd==0">checked="checked"</s:if>/>否
                                                    </td>
                                                </tr>
                                                <s:if test="jddcTHdkzyfz.isJbkphd==1">
                                                    <tbody style="display: table-row-group;" id="showInfo">
                                                        <td width="20%" class="table_rleft">若填“是”,请列出:</td>
                                                        <td width="80%">
                                                        2014年场数<input type="text" size="6" class="ncc1" name="jddcTHdkzyfz.ncc1" value="${jddcTHdkzyfz.ncc1 }"/>&nbsp;&nbsp;2015年场数<input type="text" size="6" class="ncc2" name="jddcTHdkzyfz.ncc2" value="${jddcTHdkzyfz.ncc2 }"/>&nbsp;&nbsp;2016年场数<input type="text" class="ncc3" size="6" name="jddcTHdkzyfz.ncc3" value="${jddcTHdkzyfz.ncc3 }"/>
                                                    </td>
                                                    </tbody>
                                                </s:if>
                                                <s:else>
                                                <tbody style="display: none;" id="showInfo">
                                                        <td width="20%" class="table_rleft">若填“是”,请列出:</td>
                                                        <td width="80%">
                                                        2014年场数<input type="text" size="6" class="ncc1" name="jddcTHdkzyfz.ncc1" value="${jddcTHdkzyfz.ncc1 }"/>&nbsp;&nbsp;2015年场数<input type="text" size="6" class="ncc2" name="jddcTHdkzyfz.ncc2" value="${jddcTHdkzyfz.ncc2 }"/>&nbsp;&nbsp;2016年场数<input type="text" class="ncc3" size="6" name="jddcTHdkzyfz.ncc3" value="${jddcTHdkzyfz.ncc3 }"/>
                                                    </td>
                                                    </tbody>
                                                </s:else>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(2)承担区级以上科普活动任务:</td>
                                                    <td width="80%">
                                                        <select name="jddcTHdkzyfz.cdhdlx" class="cdhdlx">
                                                            <option value="-1" selected="selected">--请选择--</option>
                                                            <option value="1" <s:if test="jddcTHdkzyfz.cdhdlx==1">selected="selected"</s:if>>区级</option>
                                                            <option value="2" <s:if test="jddcTHdkzyfz.cdhdlx==2">selected="selected"</s:if>>市级</option>
                                                            <option value="3" <s:if test="jddcTHdkzyfz.cdhdlx==3">selected="selected"</s:if>>部级</option>
                                                            <option value="4" <s:if test="jddcTHdkzyfz.cdhdlx==4">selected="selected"</s:if>>国家级</option>
                                                        </select>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(3)门票收费情况:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isFees" name="jddcTHdkzyfz.isFees" value="1" onclick="sfisShow(‘false‘)"  <s:if test="jddcTHdkzyfz.isFees==1">checked="checked"</s:if>/>免费
                                                        <input type="radio" class="isFees" name="jddcTHdkzyfz.isFees" value="2" onclick="sfisShow(‘true‘)" <s:if test="jddcTHdkzyfz.isFees==2">checked="checked"</s:if>/>收费
                                                <s:if test="jddcTHdkzyfz.isFees==2">
                                                <span style="display: inline;" id="sfshowInfo">
                                                    &nbsp;&nbsp;门票<input type="text" class="sfje" id="sfje" size="6" name="jddcTHdkzyfz.sfje" value="${jddcTHdkzyfz.sfje}" />元
                                                </span>
                                                </s:if>
                                                <s:else>
                                                    <span style="display: none;" id="sfshowInfo">
                                                    &nbsp;&nbsp;门票<input type="text" class="sfje" id="sfje" size="6" name="jddcTHdkzyfz.sfje" value="${jddcTHdkzyfz.sfje}" />元
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(4)是否愿意参加北京科普基地联盟一卡通活动:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isCjykt" name="jddcTHdkzyfz.isCjykt" id="isCjykt" value="1" onclick="lmisShow(‘true‘)" <s:if test="jddcTHdkzyfz.isCjykt==1">checked="checked"</s:if>/>有意愿
                                                        <input type="radio" class="isCjykt" name="jddcTHdkzyfz.isCjykt" id="isCjykt" value="0"  onclick="lmisShow(‘false‘)" <s:if test="jddcTHdkzyfz.isCjykt==2">checked="checked"</s:if>/>无意愿
                                                        <p>(一卡通是由北京市科委和北京科普基地联盟共同推出的一项惠民措施,拟将北京科普基地资源整合起来,让市民更便捷、更实惠的享受到优质科普服务。)</p>
                                                    </td>
                                                </tr>
                                                <s:if test="jddcTHdkzyfz.isCjykt==1">
                                                    <tbody style="display:table-row-group;" id="lmshowInfo">

                                                    <tr>
                                                    <td width="20%" class="table_rleft">(5)如有意愿参加,门票可优惠幅度:</td>
                                                    <td width="80%">
                                                        <select id="yhfd" name="jddcTHdkzyfz.yhfd" >
                                                            <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="yhfd" id="yhfd" value="1"  <s:if test="jddcTHdkzyfz.yhfd==1">selected="selected"</s:if>>5折</option>
                                                            <option class="yhfd" id="yhfd" value="2"  <s:if test="jddcTHdkzyfz.yhfd==2">selected="selected"</s:if>>8折</option>
                                                            <option class="yhfd" id="yhfd" value="3"  <s:if test="jddcTHdkzyfz.yhfd==3">selected="selected"</s:if>>无折扣</option>
                                                            <option class="yhfd" id="yhfd" value="4"  <s:if test="jddcTHdkzyfz.yhfd==4">selected="selected"</s:if>>其他折扣</option>
                                                        </select>
                                                <s:if test="jddcTHdkzyfz.yhfd==4">
                                                <span style="display: inline;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:if>
                                                <s:else>
                                                <span style="display: none;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                        <tr>
                                                        <td width="20%" class="table_rleft">(6)如有其他收费项目,票价可优惠幅度:</td>
                                                        <td width="80%">
                                                        <select id="oyhfd" name="jddcTHdkzyfz.oyhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="oyhfd"  value="1"  <s:if test="jddcTHdkzyfz.oyhfd==1">selected="selected"</s:if>>5折</option>
                                                            <option class="oyhfd"  value="2"  <s:if test="jddcTHdkzyfz.oyhfd==2">selected="selected"</s:if>>8折</option>
                                                            <option class="oyhfd"  value="3"  <s:if test="jddcTHdkzyfz.oyhfd==3">selected="selected"</s:if>>无折扣</option>
                                                            <option class="oyhfd"  value="4"  <s:if test="jddcTHdkzyfz.oyhfd==4">selected="selected"</s:if>>其他折扣</option>
                                                        </select>
                                                        <s:if test="jddcTHdkzyfz.oyhfd==4">
                                                    <span style="display:inline;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>

                                                    </s:if>
                                                    <s:else>
                                                    <span style="display:none;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>

                                                    </s:else>

                                                        </td>
                                                    </tr>

                                                </tbody>
                                                </s:if>
                                                <s:else>
                                                <tbody style="display:none;" id="lmshowInfo">
                                                    <tr>
                                                    <td width="20%" class="table_rleft">(5)如有意愿参加,门票可优惠幅度:</td>
                                                    <td width="80%">
                                                    <select id="yhfd" name="jddcTHdkzyfz.yhfd" >
                                                    <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="yhfd"  value="1"  <s:if test="jddcTHdkzyfz.yhfd==1">selected="selected"</s:if>>5折</option>
                                                            <option class="yhfd"  value="2"  <s:if test="jddcTHdkzyfz.yhfd==2">selected="selected"</s:if>>8折</option>
                                                            <option class="yhfd"  value="3"  <s:if test="jddcTHdkzyfz.yhfd==3">selected="selected"</s:if>>无折扣</option>
                                                            <option class="yhfd"  value="4"  <s:if test="jddcTHdkzyfz.yhfd==4">selected="selected"</s:if>>其他折扣</option>
                                                        </select>
                                                <s:if test="jddcTHdkzyfz.yhfd==4">
                                                <span style="display: inline;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:if>
                                                <s:else>
                                                <span style="display: none;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                        <tr>
                                                        <td width="20%" class="table_rleft">(6)如有其他收费项目,票价可优惠幅度:</td>
                                                        <td width="80%">
                                                        <select id="oyhfd" name="jddcTHdkzyfz.oyhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="oyhfd"  value="1"  <s:if test="jddcTHdkzyfz.oyhfd==1">selected="selected"</s:if>>5折</option>
                                                            <option class="oyhfd"  value="2"  <s:if test="jddcTHdkzyfz.oyhfd==2">selected="selected"</s:if>>8折</option>
                                                            <option class="oyhfd"  value="3"  <s:if test="jddcTHdkzyfz.oyhfd==3">selected="selected"</s:if>>无折扣</option>
                                                            <option class="oyhfd"  value="4"  <s:if test="jddcTHdkzyfz.oyhfd==4">selected="selected"</s:if>>其他折扣</option>
                                                        </select>
                                                        <s:if test="jddcTHdkzyfz.oyhfd==4">
                                                    <span style="display:inline;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>

                                                    </s:if>
                                                    <s:else>
                                                    <span style="display:none;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>

                                                    </s:else>

                                                        </td>
                                                    </tr>

                                                </tbody>
                                                </s:else>

                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="right_link">
                                <input type="submit" id="dosearch" class="link_button"
                                    value="保 存" />
                            </div>
                        </form>
                    </div>
                </div>
            </td>
        </tr>
    </table>
<script>
$("#oyhfd").on("change",function(){
    if($("option:selected",this).val()==4){
        $("#oyhshowInfo").show();
    }else{
        $("#ozkOnther").val("");
        $("#oyhshowInfo").hide();
    }
});
$("#yhfd").on("change",function(){
    if($("option:selected",this).val()==4){
        $("#yhshowInfo").show();
    }else{
        $("#zkOnther").val("");
        $("#yhshowInfo").hide();
    }
});
</script>
</body>

</html>

hdap_edit.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
    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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<title>科普活动安排情况</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/declaration/report.css" />

<script src="<%=basePath%>js/jquery-1.7.min.js" type="text/javascript"></script>

<script src="<%=basePath%>plug-in-js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script>

<link href="<%=basePath%>plug-in-js/jquery-validate/css/jquery-validation/validate.css" rel="stylesheet" type="text/css" />
<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 src="<%=basePath%>plug-in-js/lhgdialog4.2.0/lhgdialog.min.js" type="text/javascript"></script>
<script>
     function isShow(flag){
            if(flag == "true"){
                $("#showInfo").show();
            } else{
                $(".ncc1").val("");
                $(".ncc2").val("");
                $(".ncc3").val("");
                $("#showInfo").hide();
            }
        }
       function sfisShow(flag){
           if(flag == "true"){
                $("#sfshowInfo").show();
            } else{
                $("#sfje").val(0);
                $("#sfshowInfo").hide();
            }
       }
       function zkisShow(flag){

       if(flag == "true"){
                $("#yhshowInfo").show();
            } else{
                $(".zkOnther").val("");
                $(".oyhfd").val(0);
                $(".ozkOnther").val("");
                $("#yhshowInfo").hide();
            }
       }
       function qtyhisShow(flag){
       if(flag == "true"){
                $("#oyhshowInfo").show();
            } else{
                $("#ozkOnther").val(0);
                $("#oyhshowInfo").hide();
            }
       }
        function lmisShow(flag){
       if(flag == "true"){
                $("#lmshowInfo").show();

            } else{
                $(".yhfd").val("");
                $(".zkOnther").val("");
                $(".oyhfd").val("");
                $(".ozkOnther").val("");

                $("#lmshowInfo").hide();
            }
       }

</script>

</head>
<body>
    <table border="0" cellspacing="0" cellpadding="0" width="1004px" height="100%" align="center" style="border:#bce8ff solid 1px">
        <tr>

            <td width="6px"></td>
            <td style="width:750px;" valign="top">
                <div class="right">
                    <div class="t_nav">
                        当前位置: &gt;&gt; &gt;&gt; <span>科普活动安排情况</span>
                    </div>
                    <div class="right_list">
                        <form action="<%=basePath%>hdap/hdap!kphdapqkSave.action" method="post" name="financeFrm" id="myFm">
                            <input type="hidden" name="type" value="${type}" />
                            <input type="hidden" name="ids" value="${ids}"/>
                            <input type="hidden" name="flag" value="${flag}"/>
                            <input type="hidden" name="totalRootCode" value="${totalRootCode}"/>
                        <input type="hidden" name="taskFlag" value="${taskFlag}"/>

                            <div class="right_con">
                                <table width="99%" border="0" cellspacing="0" cellpadding="0"
                                    class="report" align="center">
                                    <tr>
                                        <th>科普活动安排情况</th>
                                    </tr>

                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0"
                                                class="table_addlist">

                                                <tr>
                                                    <td width="20%" class="table_rleft">(1)曾否举办以青少年科普教育为重点的活动:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isJbkphd" name="jddcTHdkzyfz.isJbkphd" value="1"  onclick="isShow(‘true‘)" <s:if test="jddcTHdkzyfz.isJbkphd==1">checked="checked"</s:if>/>是
                                                        <input type="radio" class="isJbkphd" name="jddcTHdkzyfz.isJbkphd"  value="0" onclick="isShow(‘false‘)" <s:if test="jddcTHdkzyfz.isJbkphd==0">checked="checked"</s:if>/>否
                                                    </td>
                                                </tr>
                                                <s:if test="jddcTHdkzyfz.isJbkphd==1">
                                                    <tbody style="display: table-row-group;" id="showInfo">
                                                        <td width="20%" class="table_rleft">若填“是”,请列出:</td>
                                                        <td width="80%">
                                                        2014年场数<input type="text" size="6" class="ncc1" name="jddcTHdkzyfz.ncc1" value="${jddcTHdkzyfz.ncc1 }"/>&nbsp;&nbsp;2015年场数<input type="text" size="6" class="ncc2" name="jddcTHdkzyfz.ncc2" value="${jddcTHdkzyfz.ncc2 }"/>&nbsp;&nbsp;2016年场数<input type="text" class="ncc3" size="6" name="jddcTHdkzyfz.ncc3" value="${jddcTHdkzyfz.ncc3 }"/>
                                                    </td>
                                                    </tbody>
                                                </s:if>
                                                <s:else>
                                                <tbody style="display: none;" id="showInfo">
                                                        <td width="20%" class="table_rleft">若填“是”,请列出:</td>
                                                        <td width="80%">
                                                        2014年场数<input type="text" size="6" class="ncc1" name="jddcTHdkzyfz.ncc1" value="${jddcTHdkzyfz.ncc1 }"/>&nbsp;&nbsp;2015年场数<input type="text" size="6" class="ncc2" name="jddcTHdkzyfz.ncc2" value="${jddcTHdkzyfz.ncc2 }"/>&nbsp;&nbsp;2016年场数<input type="text" class="ncc3" size="6" name="jddcTHdkzyfz.ncc3" value="${jddcTHdkzyfz.ncc3 }"/>
                                                    </td>
                                                    </tbody>
                                                </s:else>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(2)承担区级以上科普活动任务:</td>
                                                    <td width="80%">
                                                        <select name="jddcTHdkzyfz.cdhdlx" class="cdhdlx">
                                                            <option value="-1" selected="selected">--请选择--</option>
                                                            <option value="1" <s:if test="jddcTHdkzyfz.cdhdlx==1">selected="selected"</s:if>>区级</option>
                                                            <option value="2" <s:if test="jddcTHdkzyfz.cdhdlx==2">selected="selected"</s:if>>市级</option>
                                                            <option value="3" <s:if test="jddcTHdkzyfz.cdhdlx==3">selected="selected"</s:if>>部级</option>
                                                            <option value="4" <s:if test="jddcTHdkzyfz.cdhdlx==4">selected="selected"</s:if>>国家级</option>
                                                        </select>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(3)门票收费情况:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isFees" name="jddcTHdkzyfz.isFees" value="1" onclick="sfisShow(‘false‘)"  <s:if test="jddcTHdkzyfz.isFees==1">checked="checked"</s:if>/>免费
                                                        <input type="radio" class="isFees" name="jddcTHdkzyfz.isFees" value="2" onclick="sfisShow(‘true‘)" <s:if test="jddcTHdkzyfz.isFees==2">checked="checked"</s:if>/>收费
                                                <s:if test="jddcTHdkzyfz.isFees==2">
                                                <span style="display: inline;" id="sfshowInfo">
                                                    &nbsp;&nbsp;门票<input type="text" class="sfje" id="sfje" size="6" name="jddcTHdkzyfz.sfje" value="${jddcTHdkzyfz.sfje}" />元
                                                </span>
                                                </s:if>
                                                <s:else>
                                                    <span style="display: none;" id="sfshowInfo">
                                                    &nbsp;&nbsp;门票<input type="text" class="sfje" id="sfje" size="6" name="jddcTHdkzyfz.sfje" value="${jddcTHdkzyfz.sfje}" />元
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td width="20%" class="table_rleft">(4)是否愿意参加北京科普基地联盟一卡通活动:</td>
                                                    <td width="80%">
                                                        <input type="radio" class="isCjykt" name="jddcTHdkzyfz.isCjykt" id="isCjykt" value="1" onclick="lmisShow(‘true‘)" <s:if test="jddcTHdkzyfz.isCjykt==1">checked="checked"</s:if>/>有意愿
                                                        <input type="radio" class="isCjykt" name="jddcTHdkzyfz.isCjykt" id="isCjykt" value="0"  onclick="lmisShow(‘false‘)" <s:if test="jddcTHdkzyfz.isCjykt==2">checked="checked"</s:if>/>无意愿
                                                        <p>(一卡通是由北京市科委和北京科普基地联盟共同推出的一项惠民措施,拟将北京科普基地资源整合起来,让市民更便捷、更实惠的享受到优质科普服务。)</p>
                                                    </td>
                                                </tr>
                                                <s:if test="jddcTHdkzyfz.isCjykt==1">
                                                    <tbody style="display:table-row-group;" id="lmshowInfo">

                                                    <tr>
                                                    <td width="20%" class="table_rleft">(5)如有意愿参加,门票可优惠幅度:</td>
                                                    <td width="80%">
                                                        <select id="yhfd" name="jddcTHdkzyfz.yhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="yhfd"  value="1"  >5折</option>
                                                            <option class="yhfd"  value="2"  >8折</option>
                                                            <option class="yhfd"  value="3"  >无折扣</option>
                                                            <option class="yhfd"  value="4"  >其他折扣</option>
                                                        </select>
                                                <s:if test="jddcTHdkzyfz.yhfd==4">
                                                <span style="display: inline;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:if>
                                                <s:else>
                                                <span style="display: none;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                        <tr>
                                                        <td width="20%" class="table_rleft">(6)如有其他收费项目,票价可优惠幅度:</td>
                                                        <td width="80%">
                                                        <select id="oyhfd" name="jddcTHdkzyfz.oyhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="oyhfd"  value="1"  >5折</option>
                                                            <option class="oyhfd"  value="2"  >8折</option>
                                                            <option class="oyhfd"  value="3"  >无折扣</option>
                                                            <option class="oyhfd"  value="4" >其他折扣</option>
                                                        </select>
                                                        <s:if test="jddcTHdkzyfz.oyhfd==4">
                                                        <span style="display:inline;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.oyhfd" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>
                                                        </s:if>
                                                        <s:else>
                                                        <span style="display:none;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.oyhfd" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>
                                                        </s:else>
                                                        </td>
                                                    </tr>

                                                </tbody>
                                                </s:if>
                                                <s:else>
                                                <tbody style="display:none;" id="lmshowInfo">
                                                    <tr>
                                                    <td width="20%" class="table_rleft">(5)如有意愿参加,门票可优惠幅度:</td>
                                                    <td width="80%">
                                                        <select id="yhfd" name="jddcTHdkzyfz.yhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="yhfd"  value="1"  >5折</option>
                                                            <option class="yhfd"  value="2"  >8折</option>
                                                            <option class="yhfd"  value="3"  >无折扣</option>
                                                            <option class="yhfd"  value="4"  >其他折扣</option>
                                                        </select>
                                                <s:if test="jddcTHdkzyfz.yhfd==4">
                                                <span style="display: inline;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:if>
                                                <s:else>
                                                <span style="display: none;" id="yhshowInfo">
                                                <input type="text" class="zkOnther" id="zkOnther" size="6" name="jddcTHdkzyfz.zkOnther" value="${jddcTHdkzyfz.zkOnther}"/>折
                                                </span>
                                                </s:else>
                                                    </td>
                                                </tr>

                                                        <tr>
                                                        <td width="20%" class="table_rleft">(6)如有其他收费项目,票价可优惠幅度:</td>
                                                        <td width="80%">
                                                        <select id="oyhfd" name="jddcTHdkzyfz.oyhfd" >
                                                        <option value="-1" selected="selected">--请选择--</option>
                                                            <option class="oyhfd"  value="1"  >5折</option>
                                                            <option class="oyhfd"  value="2"  >8折</option>
                                                            <option class="oyhfd"  value="3"  >无折扣</option>
                                                            <option class="oyhfd"  value="4"  >其他折扣</option>
                                                        </select>
                                                        <s:if test="jddcTHdkzyfz.oyhfd==4">
                                                        <span style="display:inline;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>
                                                        </s:if>
                                                        <s:else>
                                                        <span style="display:none;" id="oyhshowInfo">
                                                        <input type="text" class="ozkOnther" id="ozkOnther" size="6" name="jddcTHdkzyfz.ozkOnther" value="${jddcTHdkzyfz.ozkOnther }"/>折
                                                        </span>
                                                        </s:else>
                                                        </td>
                                                    </tr>

                                                </tbody>
                                                </s:else>

                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="right_link">
                                <input type="submit" id="dosearch" class="link_button"
                                    value="保 存" />
                            </div>
                            <s:token/>
                        </form>
                    </div>
                </div>
            </td>
        </tr>
    </table>
<script>
$("#oyhfd").on("change",function(){
    if($("option:selected",this).val()==4){
        $("#oyhshowInfo").show();
    }else{
        $("#ozkOnther").val("");
        $("#oyhshowInfo").hide();
    }
});
$("#yhfd").on("change",function(){
    if($("option:selected",this).val()==4){
        $("#yhshowInfo").show();
    }else{
        $("#zkOnther").val("");
        $("#yhshowInfo").hide();
    }
});
</script>
</body>
</html>

hdap_add.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <title>上传图片预览示例二</title>
    <meta name="author" content="熊仔其人-2017年3月3日" />
    <meta name="keywords" content="" />
    <meta name="description" content="实际运用多张图片上传和预览,可设置默认图片,且可移除选择" />

    <style type="text/css">
        .image_container {
            display: inline-block;
            float: left;
        }

            #tdRoomPicture a, .image_container a {
                text-align: center;
                vertical-align: middle;
                text-decoration: none;
            }

        a.addImg {
            width: 100px;
            height: 100px;
            line-height: 100px;
            display: inline-block;
            font-size: 50px;
            background-color: #dae6f3;
        }

        .image_container a.previewBox {
            background-color: #dae6f3;
            margin: 0 3px 0 0;
            display: none;
            /*display: inline-block;*/
        }

        .image_container .delImg {
            position: absolute;
            color: #f00;
            margin: 0 0 0 84px;
            font-size: 16px;
            width: 16px;
            height: 16px;
            line-height: 16px;
            text-align: center;
            vertical-align: middle;
            background-color: #c3c3c3;
        }

        .defaultImg {
            border: 1px solid #f90303;
        }

            .defaultImg:before {
                content: "默认图片";
                float: left;
                position: absolute;
                color: #f90303;
                font-size: 14px;
            }

            .defaultImg:after {
                content: "";
            }
    </style>

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

</head>
<body>
    <form id="Form1" method="post" enctype="multipart/form-data">
        <div id="tdRoomPicture">

            <!--<div class="image_container" data-picId="1">
                <input id="RoomInfo1_RoomPicture1" name="RoomInfo1_RoomPicture1" type="file" accept="image/jpeg,image/png,image/gif" style="display: none;" />
                <input id="RoomInfo1_RoomPictureHidDefault1" name="RoomInfo1_RoomPictureHidDefault1" type="hidden" value="0" />
                <a href="javascript:;" id="previewBox1" class="previewBox defaultImg">
                    <div class="delImg">&times;</div>
                    <img id="preview1" style="height: 100px; width: 100px; border-width: 0px;" />
                </a>
            </div>-->

            <a href="javascript:;" class="addImg" data-picid="0">+</a>
        </div>
    </form>

    <script type="text/javascript">
        $(function () {
            var picId = 0;
            var pictureUploading = false;
            $("#Form1").delegate(".addImg", "click", function () {
                if (!!pictureUploading) return;
                pictureUploading = true;

                picId = parseInt($(this).attr("data-picId"));
                picId++;
                $(this).attr("data-picId", picId);

                $(this).before("<div class=\"image_container\" data-picId=\"" + picId + "\">"
                                + "<input id=\"RoomInfo1_RoomPicture" + picId + "\" name=\"RoomInfo1_RoomPicture" + picId + "\" type=\"file\" accept=\"image/jpeg,image/png,image/gif\" style=\"display: none;\" />"
                                + "<input id=\"RoomInfo1_RoomPictureHidDefault" + picId + "\" name=\"RoomInfo1_RoomPictureHidDefault" + picId + "\" type=\"hidden\" value=\"0\" />"
                                + "<a href=\"javascript:;\" id=\"previewBox" + picId + "\" class=\"previewBox\">"
                                    + "<div class=\"delImg\">&times;</div>"
                                    + "<img id=\"preview" + picId + "\" style=\"height:100px;width:100px;border-width:0px;\" />"
                                + "</a>"
                            + "</div>");

                $("#RoomInfo1_RoomPicture" + picId).change(function () {
                    var $file = $(this);
                    var fileObj = $file[0];
                    var windowURL = window.URL || window.webkitURL;
                    var dataURL;

                    $("#previewBox" + picId).css("display", "inline-block");
                    var $img = $("#preview" + picId);
                    //var $img = $("#preview1");

                    if (fileObj && fileObj.files && fileObj.files[0]) {
                        dataURL = windowURL.createObjectURL(fileObj.files[0]);
                        $img.attr(‘src‘, dataURL);
                    } else {
                        dataURL = $file.val();
                        var imgObj = $img; //document.getElementById("preview");
                        // 两个坑:
                        // 1、在设置filter属性时,元素必须已经存在在DOM树中,动态创建的Node,也需要在设置属性前加入到DOM中,先设置属性在加入,无效;
                        // 2、src属性需要像下面的方式添加,上面的两种方式添加,无效;
                        imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                        imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = dataURL;
                    }

                    if (1 === picId) {
                        defaultImg(picId, true);
                    }
                    pictureUploading = false;

                });
                $("#RoomInfo1_RoomPicture" + picId).click();

                //设置默认图片
                $(".previewBox").click(function () {
                    var _picId = parseInt($(this).parent(".image_container").attr("data-picId"));
                    $(".image_container").each(function () {
                        var i = parseInt($(this).attr("data-picId"));
                        if (i === _picId)
                            defaultImg(i, true);
                        else
                            defaultImg(i, false);
                    });
                });

                //删除上传的图片
                $(".delImg").click(function () {
                    var _picId = parseInt($(this).parent().parent(".image_container").attr("data-picId"));
                    $(".image_container[data-picid=‘" + _picId + "‘]").remove();
                    if ($(".image_container").length > 0 && $(".defaultImg").length < 1) {
                        $(".image_container").each(function () {
                            var i = parseInt($(this).attr("data-picId"));
                            defaultImg(i, true);
                            return false;
                        });
                    }

                });

            });

            function defaultImg(picId, selected) {
                if (!picId) return;
                if (!!selected) {
                    $("#RoomInfo1_RoomPictureHidDefault" + picId).val(1);
                    $("#previewBox" + picId).addClass("defaultImg");
                }
                else {
                    $("#RoomInfo1_RoomPictureHidDefault" + picId).val(0);
                    $("#previewBox" + picId).removeClass("defaultImg");
                }
            }
        });
    </script>
</body>
</html>

多张图片上传预览

时间: 2024-10-29 19:07:28

第二个礼拜基地调查的相关文章

学习在第二个礼拜

一个礼拜一下子就过去了,上个礼拜学完了c语言,以前在大学也没怎么学过c语言的我,在这里,一个礼拜就学完了,虽然不是学的特别精,但是现在三个循环 指针 倒也能运用自如了.这个礼拜刚接触oc,我感觉自己有点笨,学的不是很好,老师讲的也没有全部记住,于是,从昨天开始,我决定早起了早起一小时,别人八点到学校,我得7点到,得把落后的补上去,虽然这样有点累,但是我相信我可以坚持下去. 这是我昨天写的几行代码,虽然不是很复杂,但是,作为初学者的我,也还可以将就吧!在班上我落后了因此我不会因为一点点成绩而骄傲,

倪静(201550919)第二次作业网络调查问卷的制作

网络调查问卷的制作 1.登录问卷星 2.创建问卷 3.完成编辑,问卷浏览 4.问卷完成 5.问卷回收

郭佳庆(201551296)第二次作业:调查问卷的制作

调查问卷的制作 一.登录问卷星 二.进入问卷星注册之后,创建调查问卷添加调查名称 三.添加问卷说明 四.添加问卷题目 五.批量添加题目 六.发布问卷

2014中国软件开发者调查(一):Java最受欢迎 第二语言JS使用比例最高

2014 年 3 月 20 日到 4 月 25 日期间,CSDN 通过在线问卷渠道进行了中国软件开发者调查,本次调查问卷得到了近万名开发者踊跃支持.日前这份调查报告已经出炉,CSDN 将就调查结果连续撰稿,为大家解读当前中国软件开发者形势. 首先需要指出的是,本次调查中,受访者男性占 9 成以上,年龄主要集中在 21-35 岁,学历以本科为主(为 64.09%),开发经验在 5 年以内的占大多数. 从调查数据来看,从业时间越长的人群中,女性比例开始走低,其中从业 15 年以上的女性开发者在样本中

北上深金融业2

胡润新金融50强发布 北上深杭承包了44家 2017年01月08日 12:06:58 来源: 胡润研究院 记者 袁华明 浙江在线1月8日讯 1月8日上午10点,胡润研究院联合相关单位发布<2017胡润中国新金融50强>及<2017胡润中国最具影响力财经自媒体50强>.这是胡润百富连续第二年发布面向新金融领域的排行榜.和去年相比,今年的评选范围从12大细分领域拓展到15大细分领域,覆盖的范围更广:其次对每个细分领域能够入选最终榜单的企业都作了严格审查,例如网贷行业上榜企业从去年的15

预付式消费陷阱频现 深圳重拳出击失信重灾区z

医学笔记对我们的半期考试和期末考试特别有用!据中国之声<央广新闻>报道,国家安监总局今天(21日)召开煤矿安全生产电视电话会议.其实,对老百姓而言,需要的是客观公正做事.多个路人赶紧上前推开车将老人救出,急救人员赶到后发现老人已不幸身亡.幼时的顽劣,使得童年时经常挨揍,屁股上有五个手指印是常事.法新社说,在泰国过去几年的政治斗争中,宪法法院一直就扮演着重要角色.他说,销售一辆宾利这样的豪车,利润在20多万元,而本案的赔偿金额是74000元,仅为一辆车利润的三分之一.创新技术,打造"无

解读二调

“二调”是什么?      第二次全国土地调查,简称“二调”,作为一项重大的国情国力调查,目的是全面查清目前全国土地利用状况,掌握真实的土地基础数据,建立和完善土地调查.统计和登记制度,实现土地资源信息的社会化服务,满足经济社会发展及国土资源管理的需要. “二调”为什么?       一是国家的需要       土地是重要的资源和资产,在国民经济和社会发展中的地位和作用越来越突出.国家对土地问题十分重视,将土地作为参与宏观调控的重要手段.曾培炎副总理曾明 确指示,土地数据口径要统一,要尽快建立起

校外实习-7.15

今天是我实习的第十天,也是我实习的第二个礼拜,时间转瞬即逝,今天到单位以后依旧和往常一样,去找老师报道,然后准备新的一天,学习新的知识.今天老师教我的是简单js轮播图模版套用.今天总体来说学的还是可以的,老师给我留的作业是:休息这两天尽量把前几天教的复习巩固一下.

如何制作外挂

一.先说一下写一个外挂需要什么条件 1.熟练的C语言知识 目前的外挂大部分都是用BC或者是vc写的,拥有熟练的C语言知识是写外挂的基本条件 2.具有很强的汇编基础 一般游戏都不可能有原代码的,必须靠反汇编或者跟踪的办法来探索其中的机理 ,所以有强的汇编基础也是必不可少的条件 3.熟练掌握跟踪和调试的工具 有了上面2个条件后,掌握一些工具也是很有必要的 跟踪的工具,softice当然是不二之选,至于反汇编的工具,我推荐用IDA PRO 这个工具反汇编出来的代码结构清晰,非常好读 如果你不具有上面的