家庭记账本web开发

这个系统的整体结构:

GitHub:https://github.com/lq1998lq/Test.git

com.action包:

package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TAdminDAO;
import com.model.TAdmin;
import com.opensymphony.xwork2.ActionSupport;

public class adminAction extends ActionSupport
{
    private int userId;
    private String userName;
    private String userPw;
     
    private String message;
    private String path;
    
    private int index=1;

    private TAdminDAO adminDAO;
    
    
    public String adminAdd()
    {
        TAdmin admin=new TAdmin();
        admin.setUserName(userName);
        admin.setUserPw(userPw);
        adminDAO.save(admin);
        this.setMessage("�����ɹ�");
        this.setPath("adminManage.action");
        return "succeed";
    }
    
    
    
    public String adminManage()
    {
        List adminList=adminDAO.findAll();
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("adminList", adminList);
        return ActionSupport.SUCCESS;
    }
    
    
    public String adminDel()
    {
        adminDAO.delete(adminDAO.findById(userId));
        this.setMessage("ɾ���ɹ�");
        this.setPath("adminManage.action");
        return "succeed";
    }
    
    

    public TAdminDAO getAdminDAO()
    {
        return adminDAO;
    }

    public void setAdminDAO(TAdminDAO adminDAO)
    {
        this.adminDAO = adminDAO;
    }

    public String getMessage()
    {
        return message;
    }

    public int getIndex()
    {
        return index;
    }



    public void setIndex(int index)
    {
        this.index = index;
    }



    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public int getUserId()
    {
        return userId;
    }

    public void setUserId(int userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserPw()
    {
        return userPw;
    }

    public void setUserPw(String userPw)
    {
        this.userPw = userPw;
    }
     
}
package com.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TRizhiDAO;
import com.model.TAdmin;
import com.model.TRizhi;
import com.model.TUser;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class rizhiAction extends ActionSupport
{
    private Integer id;
    private String title;
    private String content;
    private String shijian;

    private Integer userId;
    
    private String message;
    private String path;
    
    private TRizhiDAO rizhiDAO;
    
    public String rizhiAdd()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        TRizhi rizhi=new TRizhi();
        
        rizhi.setTitle(title);
        rizhi.setContent(content);
        rizhi.setShijian(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
        rizhi.setUserId(user.getUserId());
        
        rizhiDAO.save(rizhi);
        this.setMessage("������");
        this.setPath("rizhiMana.action");
        return "succeed";
    }
    
    
    public String rizhiMana()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        String sql="from TRizhi where userId="+user.getUserId();
        List rizhiList =rizhiDAO.getHibernateTemplate().find(sql);
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("rizhiList", rizhiList);
        return ActionSupport.SUCCESS;
    }
    
    public String rizhiDel()
    {
        TRizhi rizhi=rizhiDAO.findById(id);
        rizhiDAO.delete(rizhi);
        this.setMessage("ɾ�����");
        this.setPath("rizhiMana.action");
        return "succeed";
    }


    public String getContent()
    {
        return content;
    }


    public void setContent(String content)
    {
        this.content = content;
    }


    public Integer getId()
    {
        return id;
    }


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


    public String getMessage()
    {
        return message;
    }


    public void setMessage(String message)
    {
        this.message = message;
    }


    public String getPath()
    {
        return path;
    }


    public void setPath(String path)
    {
        this.path = path;
    }


    public TRizhiDAO getRizhiDAO()
    {
        return rizhiDAO;
    }


    public void setRizhiDAO(TRizhiDAO rizhiDAO)
    {
        this.rizhiDAO = rizhiDAO;
    }


    public String getShijian()
    {
        return shijian;
    }


    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }


    public String getTitle()
    {
        return title;
    }


    public void setTitle(String title)
    {
        this.title = title;
    }


    public Integer getUserId()
    {
        return userId;
    }


    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    
}
package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TShouruDAO;
import com.model.TShouru;
import com.model.TUser;
import com.opensymphony.xwork2.ActionSupport;

public class shouruAction extends ActionSupport
{
    private Integer id;
    private String shijian;
    private Double jine;
    private String chengyuan;

    private String leixing;
    private String beizhu;
    private Integer userId;
    
    private String message;
    private String path;
    
    private TShouruDAO shouruDAO;
    
    
    public String shouruAdd()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        TShouru shouru=new TShouru();
        
        shouru.setShijian(shijian);
        shouru.setJine(jine);
        shouru.setChengyuan(chengyuan);
        shouru.setLeixing(leixing);
        
        shouru.setBeizhu(beizhu);
        shouru.setUserId(user.getUserId());
        
        shouruDAO.save(shouru);
        this.setMessage("�����ɹ�");
        this.setPath("shouruMana.action");
        return "succeed";
    }
    
    public String shouruMana()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        String sql ="from TShouru where userId="+user.getUserId();
        List shouruList=shouruDAO.getHibernateTemplate().find(sql);
        
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("shouruList", shouruList);
        return ActionSupport.SUCCESS;
    }
    
    public String shouruDel()
    {
        TShouru shouru=shouruDAO.findById(id);
        shouruDAO.delete(shouru);
        this.setMessage("�����ɹ�");
        this.setPath("shouruMana.action");
        return "succeed";
    }

    public String getBeizhu()
    {
        return beizhu;
    }

    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getChengyuan()
    {
        return chengyuan;
    }

    public void setChengyuan(String chengyuan)
    {
        this.chengyuan = chengyuan;
    }

    public Integer getId()
    {
        return id;
    }

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

    public Double getJine()
    {
        return jine;
    }

    public void setJine(Double jine)
    {
        this.jine = jine;
    }

    public String getLeixing()
    {
        return leixing;
    }

    public void setLeixing(String leixing)
    {
        this.leixing = leixing;
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }


    public String getShijian()
    {
        return shijian;
    }

    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }

    public TShouruDAO getShouruDAO()
    {
        return shouruDAO;
    }

    public void setShouruDAO(TShouruDAO shouruDAO)
    {
        this.shouruDAO = shouruDAO;
    }

    public Integer getUserId()
    {
        return userId;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    
}
package com.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.dao.TShouruDAO;
import com.dao.TXiaofeiDAO;
import com.model.TUser;
import com.opensymphony.xwork2.ActionSupport;

public class tongjiAction extends ActionSupport
{
        
    private String message;
    private String path;
    
    private TShouruDAO shouruDAO;
    private TXiaofeiDAO xiaofeiDAO;
    
    
    public String tongji_meiri()
    {
        HttpServletRequest req=ServletActionContext.getRequest();
        HttpSession sess=req.getSession();
        TUser user=(TUser)sess.getAttribute("user");
        
        String shijian="";
        if(req.getParameter("shijian")==null)
        {
            shijian=new SimpleDateFormat("yyyy-MM-dd").format(new Date());
        }
        else
        {
            shijian=req.getParameter("shijian");
        }
        
        
        String sql ="from TShouru where shijian=? and userId="+user.getUserId();
        Object c[]={shijian};
        List shouruList=shouruDAO.getHibernateTemplate().find(sql,c);
        req.setAttribute("shouruList", shouruList);
        
        
        String sql1 ="from TXiaofei where shijian=? and userId="+user.getUserId();
        Object c1[]={shijian};
        List xiaofeiList=xiaofeiDAO.getHibernateTemplate().find(sql1,c1);
        req.setAttribute("xiaofeiList", xiaofeiList);
        
        req.setAttribute("shijian", shijian);
        
        return ActionSupport.SUCCESS;
    }
    
    
    public String tongji_meiyue()
    {
        HttpServletRequest req=ServletActionContext.getRequest();
        HttpSession sess=req.getSession();
        TUser user=(TUser)sess.getAttribute("user");
        
        String shijian="";
        if(req.getParameter("shijian")==null)
        {
            shijian=new SimpleDateFormat("yyyy-MM").format(new Date());
        }
        else
        {
            shijian=req.getParameter("shijian");
        }
        
        System.out.println(shijian+"RRR");
        
        String sql ="from TShouru where shijian like '%"+shijian+"%'"+" and userId="+user.getUserId();
        List shouruList=shouruDAO.getHibernateTemplate().find(sql);
        req.setAttribute("shouruList", shouruList);
        
        
        String sql1 ="from TXiaofei where shijian like '%"+shijian+"%'"+" and userId="+user.getUserId();
        List xiaofeiList=xiaofeiDAO.getHibernateTemplate().find(sql1);
        req.setAttribute("xiaofeiList", xiaofeiList);
        
        req.setAttribute("shijian", shijian);
        
        return ActionSupport.SUCCESS;
    }
    
    

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public TShouruDAO getShouruDAO()
    {
        return shouruDAO;
    }

    public void setShouruDAO(TShouruDAO shouruDAO)
    {
        this.shouruDAO = shouruDAO;
    }

    public TXiaofeiDAO getXiaofeiDAO()
    {
        return xiaofeiDAO;
    }



    public void setXiaofeiDAO(TXiaofeiDAO xiaofeiDAO)
    {
        this.xiaofeiDAO = xiaofeiDAO;
    }

}
package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TShouruDAO;
import com.dao.TTouziDAO;
import com.model.TShouru;
import com.model.TTouzi;
import com.model.TUser;
import com.opensymphony.xwork2.ActionSupport;

public class touziAction extends ActionSupport
{
    private Integer id;
    private String xangmu;
    private Double benjin;
    private String kaishi;

    private String jiehsu;
    private Double shouyi;
    private Integer userId;
    
    private String message;
    private String path;
    
    private TTouziDAO touziDAO;
    
    
    public String touziAdd()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        TTouzi touzi=new TTouzi();
        
        touzi.setXangmu(xangmu);
        touzi.setBenjin(benjin);
        touzi.setKaishi(kaishi);
        touzi.setJiehsu(jiehsu);
        
        touzi.setShouyi(shouyi);
        touzi.setUserId(user.getUserId());
        
        touziDAO.save(touzi);
        this.setMessage("�����ɹ�");
        this.setPath("touziMana.action");
        return "succeed";
    }
    
    public String touziMana()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        String sql ="from TTouzi where userId="+user.getUserId();
        List touziList=touziDAO.getHibernateTemplate().find(sql);
        
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("touziList", touziList);
        return ActionSupport.SUCCESS;
    }
    
    public String touziDel()
    {
        TTouzi touzi=touziDAO.findById(id);
        touziDAO.delete(touzi);
        this.setMessage("�����ɹ�");
        this.setPath("touziMana.action");
        return "succeed";
    }

    public Double getBenjin()
    {
        return benjin;
    }

    public void setBenjin(Double benjin)
    {
        this.benjin = benjin;
    }

    public Integer getId()
    {
        return id;
    }

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

    public String getJiehsu()
    {
        return jiehsu;
    }

    public void setJiehsu(String jiehsu)
    {
        this.jiehsu = jiehsu;
    }

    public String getKaishi()
    {
        return kaishi;
    }

    public void setKaishi(String kaishi)
    {
        this.kaishi = kaishi;
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public Double getShouyi()
    {
        return shouyi;
    }

    public void setShouyi(Double shouyi)
    {
        this.shouyi = shouyi;
    }

    public TTouziDAO getTouziDAO()
    {
        return touziDAO;
    }

    public void setTouziDAO(TTouziDAO touziDAO)
    {
        this.touziDAO = touziDAO;
    }

    public Integer getUserId()
    {
        return userId;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public String getXangmu()
    {
        return xangmu;
    }

    public void setXangmu(String xangmu)
    {
        this.xangmu = xangmu;
    }
    
}
package com.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.dao.TUserDAO;
import com.model.TUser;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport
{
    private Integer userId;
    private String userRealname;
    private String userSex;
    private String userTel;
    
    private String userAddress;
    private String userName;
    private String userPw;
    private String userDel;
    
   
    
    
    
    private String message;
    private String path;
    
    private TUserDAO userDAO;
    
    
    public String userReg()
    {
        HttpServletRequest request=ServletActionContext.getRequest();
        
        String sql="from TUser where userName=?";
        Object[] c={userName.trim()};
        List list=userDAO.getHibernateTemplate().find(sql,c);
        if(list.size()>0)
        {
            request.setAttribute("msg", "�û����ѱ�ռ��,������ע��");
        }
        else
        {
            TUser user=new TUser();
            
            user.setUserRealname(userRealname);
            user.setUserSex(userSex);
            user.setUserTel(userTel);
            user.setUserAddress(userAddress);
            
            user.setUserName(userName.trim());
            user.setUserPw(userPw);
            user.setUserDel("no");
            
            userDAO.save(user);
            
            request.setAttribute("msg", "ע��ɹ������¼");
        }
        
        return "msg";
    }
    
    
    public String userDel()
    {
        TUser user=userDAO.findById(userId);
        user.setUserDel("yes");
        userDAO.getHibernateTemplate().update(user);
        this.setMessage("ɾ���ɹ�");
        this.setPath("userMana.action");
        return "succeed";
    }
    
    
    public String userMana()
    {
        List userList=userDAO.findAll();
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("userList", userList);
        return ActionSupport.SUCCESS;
    }
    
    public String userEdit()
    {
        TUser user=userDAO.findById(userId);
        
        user.setUserPw(userPw);
        user.setUserRealname(userRealname);
        user.setUserSex(userSex);
        user.setUserTel(userTel);
        user.setUserAddress(userAddress);
        
        
        user.setUserDel("no");
        
        userDAO.attachDirty(user);
        
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("msg", "�޸ijɹ������µ�¼����Ч");
        return "msg";
    }

    public String userLogout()
    {
        Map session= ServletActionContext.getContext().getSession();
        session.remove("user");
        return ActionSupport.SUCCESS;
    }

    public String getMessage()
    {
        return message;
    }


    public void setMessage(String message)
    {
        this.message = message;
    }


    public String getPath()
    {
        return path;
    }


    public void setPath(String path)
    {
        this.path = path;
    }


    public String getUserAddress()
    {
        return userAddress;
    }


    public void setUserAddress(String userAddress)
    {
        this.userAddress = userAddress;
    }


    public TUserDAO getUserDAO()
    {
        return userDAO;
    }


    public void setUserDAO(TUserDAO userDAO)
    {
        this.userDAO = userDAO;
    }


    public String getUserDel()
    {
        return userDel;
    }


    public void setUserDel(String userDel)
    {
        this.userDel = userDel;
    }


    public Integer getUserId()
    {
        return userId;
    }


    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }


    public String getUserName()
    {
        return userName;
    }


    public void setUserName(String userName)
    {
        this.userName = userName;
    }


    public String getUserPw()
    {
        return userPw;
    }


    public void setUserPw(String userPw)
    {
        this.userPw = userPw;
    }


    public String getUserRealname()
    {
        return userRealname;
    }


    public void setUserRealname(String userRealname)
    {
        this.userRealname = userRealname;
    }


    public String getUserSex()
    {
        return userSex;
    }


    public void setUserSex(String userSex)
    {
        this.userSex = userSex;
    }


    public String getUserTel()
    {
        return userTel;
    }


    public void setUserTel(String userTel)
    {
        this.userTel = userTel;
    }
    
}
package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TShouruDAO;
import com.dao.TXiaofeiDAO;
import com.model.TShouru;
import com.model.TUser;
import com.model.TXiaofei;
import com.opensymphony.xwork2.ActionSupport;

public class xiaofeiAction extends ActionSupport
{
    private Integer id;
    private String shijian;
    private Double jine;
    private String chengyuan;

    private String leixing;
    private String beizhu;
    private Integer userId;
    
    private String message;
    private String path;
    
    private TXiaofeiDAO xiaofeiDAO;
    
    
    public String xiaofeiAdd()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        TXiaofei xiaofei=new TXiaofei();
        
        xiaofei.setShijian(shijian);
        xiaofei.setJine(jine);
        xiaofei.setChengyuan(chengyuan);
        xiaofei.setLeixing(leixing);
        
        xiaofei.setBeizhu(beizhu);
        xiaofei.setUserId(user.getUserId());
        
        xiaofeiDAO.save(xiaofei);
        this.setMessage("�����ɹ�");
        this.setPath("xiaofeiMana.action");
        return "succeed";
    }
    
    public String xiaofeiMana()
    {
        Map session= ServletActionContext.getContext().getSession();
        TUser user=(TUser)session.get("user");
        
        String sql ="from TXiaofei where userId="+user.getUserId();
        List xiaofeiList=xiaofeiDAO.getHibernateTemplate().find(sql);
        
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("xiaofeiList", xiaofeiList);
        return ActionSupport.SUCCESS;
    }
    
    public String xiaofeiDel()
    {
        TXiaofei xiaofei=xiaofeiDAO.findById(id);
        xiaofeiDAO.delete(xiaofei);
        this.setMessage("�����ɹ�");
        this.setPath("xiaofeiMana.action");
        return "succeed";
    }

    public String getBeizhu()
    {
        return beizhu;
    }

    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getChengyuan()
    {
        return chengyuan;
    }

    public void setChengyuan(String chengyuan)
    {
        this.chengyuan = chengyuan;
    }

    public TXiaofeiDAO getXiaofeiDAO()
    {
        return xiaofeiDAO;
    }

    public void setXiaofeiDAO(TXiaofeiDAO xiaofeiDAO)
    {
        this.xiaofeiDAO = xiaofeiDAO;
    }

    public Integer getId()
    {
        return id;
    }

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

    public Double getJine()
    {
        return jine;
    }

    public void setJine(Double jine)
    {
        this.jine = jine;
    }

    public String getLeixing()
    {
        return leixing;
    }

    public void setLeixing(String leixing)
    {
        this.leixing = leixing;
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }


    public String getShijian()
    {
        return shijian;
    }

    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }


    public Integer getUserId()
    {
        return userId;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    
}

com.dao包:

package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TAdmin;

/**
 * Data access object (DAO) for domain model class TAdmin.
 * 
 * @see com.model.TAdmin
 * @author MyEclipse Persistence Tools
 */

public class TAdminDAO extends HibernateDaoSupport {
    private static final Log log = LogFactory.getLog(TAdminDAO.class);

    // property constants
    public static final String USER_NAME = "userName";

    public static final String USER_PW = "userPw";

    protected void initDao() {
        // do nothing
    }

    public void save(TAdmin transientInstance) {
        log.debug("saving TAdmin instance");
        try {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re) {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TAdmin persistentInstance) {
        log.debug("deleting TAdmin instance");
        try {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re) {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TAdmin findById(java.lang.Integer id) {
        log.debug("getting TAdmin instance with id: " + id);
        try {
            TAdmin instance = (TAdmin) getHibernateTemplate().get(
                    "com.model.TAdmin", id);
            return instance;
        } catch (RuntimeException re) {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TAdmin instance) {
        log.debug("finding TAdmin instance by example");
        try {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re) {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value) {
        log.debug("finding TAdmin instance with property: " + propertyName
                + ", value: " + value);
        try {
            String queryString = "from TAdmin as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re) {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findByUserName(Object userName) {
        return findByProperty(USER_NAME, userName);
    }

    public List findByUserPw(Object userPw) {
        return findByProperty(USER_PW, userPw);
    }

    public List findAll() {
        log.debug("finding all TAdmin instances");
        try {
            String queryString = "from TAdmin";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re) {
            log.error("find all failed", re);
            throw re;
        }
    }

    public TAdmin merge(TAdmin detachedInstance) {
        log.debug("merging TAdmin instance");
        try {
            TAdmin result = (TAdmin) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re) {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TAdmin instance) {
        log.debug("attaching dirty TAdmin instance");
        try {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re) {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TAdmin instance) {
        log.debug("attaching clean TAdmin instance");
        try {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re) {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TAdminDAO getFromApplicationContext(ApplicationContext ctx) {
        return (TAdminDAO) ctx.getBean("TAdminDAO");
    }
}
package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TRizhi;

/**
 * Data access object (DAO) for domain model class TRizhi.
 * 
 * @see com.model.TRizhi
 * @author MyEclipse Persistence Tools
 */

public class TRizhiDAO extends HibernateDaoSupport
{
    private static final Log log = LogFactory.getLog(TRizhiDAO.class);

    protected void initDao()
    {
        // do nothing
    }

    public void save(TRizhi transientInstance)
    {
        log.debug("saving TRizhi instance");
        try
        {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re)
        {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TRizhi persistentInstance)
    {
        log.debug("deleting TRizhi instance");
        try
        {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re)
        {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TRizhi findById(java.lang.Integer id)
    {
        log.debug("getting TRizhi instance with id: " + id);
        try
        {
            TRizhi instance = (TRizhi) getHibernateTemplate().get(
                    "com.model.TRizhi", id);
            return instance;
        } catch (RuntimeException re)
        {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TRizhi instance)
    {
        log.debug("finding TRizhi instance by example");
        try
        {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re)
        {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value)
    {
        log.debug("finding TRizhi instance with property: " + propertyName
                + ", value: " + value);
        try
        {
            String queryString = "from TRizhi as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re)
        {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findAll()
    {
        log.debug("finding all TRizhi instances");
        try
        {
            String queryString = "from TRizhi";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re)
        {
            log.error("find all failed", re);
            throw re;
        }
    }

    public TRizhi merge(TRizhi detachedInstance)
    {
        log.debug("merging TRizhi instance");
        try
        {
            TRizhi result = (TRizhi) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re)
        {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TRizhi instance)
    {
        log.debug("attaching dirty TRizhi instance");
        try
        {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TRizhi instance)
    {
        log.debug("attaching clean TRizhi instance");
        try
        {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TRizhiDAO getFromApplicationContext(ApplicationContext ctx)
    {
        return (TRizhiDAO) ctx.getBean("TRizhiDAO");
    }
}
package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TShouru;

/**
 * Data access object (DAO) for domain model class TShouru.
 * 
 * @see com.model.TShouru
 * @author MyEclipse Persistence Tools
 */

public class TShouruDAO extends HibernateDaoSupport
{
    private static final Log log = LogFactory.getLog(TShouruDAO.class);

    protected void initDao()
    {
        // do nothing
    }

    public void save(TShouru transientInstance)
    {
        log.debug("saving TShouru instance");
        try
        {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re)
        {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TShouru persistentInstance)
    {
        log.debug("deleting TShouru instance");
        try
        {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re)
        {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TShouru findById(java.lang.Integer id)
    {
        log.debug("getting TShouru instance with id: " + id);
        try
        {
            TShouru instance = (TShouru) getHibernateTemplate().get(
                    "com.model.TShouru", id);
            return instance;
        } catch (RuntimeException re)
        {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TShouru instance)
    {
        log.debug("finding TShouru instance by example");
        try
        {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re)
        {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value)
    {
        log.debug("finding TShouru instance with property: " + propertyName
                + ", value: " + value);
        try
        {
            String queryString = "from TShouru as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re)
        {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findAll()
    {
        log.debug("finding all TShouru instances");
        try
        {
            String queryString = "from TShouru";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re)
        {
            log.error("find all failed", re);
            throw re;
        }
    }

    public TShouru merge(TShouru detachedInstance)
    {
        log.debug("merging TShouru instance");
        try
        {
            TShouru result = (TShouru) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re)
        {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TShouru instance)
    {
        log.debug("attaching dirty TShouru instance");
        try
        {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TShouru instance)
    {
        log.debug("attaching clean TShouru instance");
        try
        {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TShouruDAO getFromApplicationContext(ApplicationContext ctx)
    {
        return (TShouruDAO) ctx.getBean("TShouruDAO");
    }
}
package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TTouzi;

/**
 * Data access object (DAO) for domain model class TTouzi.
 * 
 * @see com.model.TTouzi
 * @author MyEclipse Persistence Tools
 */

public class TTouziDAO extends HibernateDaoSupport
{
    private static final Log log = LogFactory.getLog(TTouziDAO.class);

    protected void initDao()
    {
        // do nothing
    }

    public void save(TTouzi transientInstance)
    {
        log.debug("saving TTouzi instance");
        try
        {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re)
        {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TTouzi persistentInstance)
    {
        log.debug("deleting TTouzi instance");
        try
        {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re)
        {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TTouzi findById(java.lang.Integer id)
    {
        log.debug("getting TTouzi instance with id: " + id);
        try
        {
            TTouzi instance = (TTouzi) getHibernateTemplate().get(
                    "com.model.TTouzi", id);
            return instance;
        } catch (RuntimeException re)
        {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TTouzi instance)
    {
        log.debug("finding TTouzi instance by example");
        try
        {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re)
        {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value)
    {
        log.debug("finding TTouzi instance with property: " + propertyName
                + ", value: " + value);
        try
        {
            String queryString = "from TTouzi as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re)
        {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findAll()
    {
        log.debug("finding all TTouzi instances");
        try
        {
            String queryString = "from TTouzi";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re)
        {
            log.error("find all failed", re);
            throw re;
        }
    }

    public TTouzi merge(TTouzi detachedInstance)
    {
        log.debug("merging TTouzi instance");
        try
        {
            TTouzi result = (TTouzi) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re)
        {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TTouzi instance)
    {
        log.debug("attaching dirty TTouzi instance");
        try
        {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TTouzi instance)
    {
        log.debug("attaching clean TTouzi instance");
        try
        {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TTouziDAO getFromApplicationContext(ApplicationContext ctx)
    {
        return (TTouziDAO) ctx.getBean("TTouziDAO");
    }
}
package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TUser;

/**
 * Data access object (DAO) for domain model class TUser.
 * 
 * @see com.model.TUser
 * @author MyEclipse Persistence Tools
 */

public class TUserDAO extends HibernateDaoSupport
{
    private static final Log log = LogFactory.getLog(TUserDAO.class);

    protected void initDao()
    {
        // do nothing
    }

    public void save(TUser transientInstance)
    {
        log.debug("saving TUser instance");
        try
        {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re)
        {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TUser persistentInstance)
    {
        log.debug("deleting TUser instance");
        try
        {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re)
        {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TUser findById(java.lang.Integer id)
    {
        log.debug("getting TUser instance with id: " + id);
        try
        {
            TUser instance = (TUser) getHibernateTemplate().get(
                    "com.model.TUser", id);
            return instance;
        } catch (RuntimeException re)
        {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TUser instance)
    {
        log.debug("finding TUser instance by example");
        try
        {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re)
        {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value)
    {
        log.debug("finding TUser instance with property: " + propertyName
                + ", value: " + value);
        try
        {
            String queryString = "from TUser as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re)
        {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findAll()
    {
        log.debug("finding all TUser instances");
        try
        {
            String queryString = "from TUser where userDel='no'";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re)
        {
            log.error("find all failed", re);
            throw re;
        }
    }
    
    
    

    public TUser merge(TUser detachedInstance)
    {
        log.debug("merging TUser instance");
        try
        {
            TUser result = (TUser) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re)
        {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TUser instance)
    {
        log.debug("attaching dirty TUser instance");
        try
        {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TUser instance)
    {
        log.debug("attaching clean TUser instance");
        try
        {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TUserDAO getFromApplicationContext(ApplicationContext ctx)
    {
        return (TUserDAO) ctx.getBean("TUserDAO");
    }
}
package com.dao;

import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TXiaofei;

/**
 * Data access object (DAO) for domain model class TXiaofei.
 * 
 * @see com.model.TXiaofei
 * @author MyEclipse Persistence Tools
 */

public class TXiaofeiDAO extends HibernateDaoSupport
{
    private static final Log log = LogFactory.getLog(TXiaofeiDAO.class);

    protected void initDao()
    {
        // do nothing
    }

    public void save(TXiaofei transientInstance)
    {
        log.debug("saving TXiaofei instance");
        try
        {
            getHibernateTemplate().save(transientInstance);
            log.debug("save successful");
        } catch (RuntimeException re)
        {
            log.error("save failed", re);
            throw re;
        }
    }

    public void delete(TXiaofei persistentInstance)
    {
        log.debug("deleting TXiaofei instance");
        try
        {
            getHibernateTemplate().delete(persistentInstance);
            log.debug("delete successful");
        } catch (RuntimeException re)
        {
            log.error("delete failed", re);
            throw re;
        }
    }

    public TXiaofei findById(java.lang.Integer id)
    {
        log.debug("getting TXiaofei instance with id: " + id);
        try
        {
            TXiaofei instance = (TXiaofei) getHibernateTemplate().get(
                    "com.model.TXiaofei", id);
            return instance;
        } catch (RuntimeException re)
        {
            log.error("get failed", re);
            throw re;
        }
    }

    public List findByExample(TXiaofei instance)
    {
        log.debug("finding TXiaofei instance by example");
        try
        {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re)
        {
            log.error("find by example failed", re);
            throw re;
        }
    }

    public List findByProperty(String propertyName, Object value)
    {
        log.debug("finding TXiaofei instance with property: " + propertyName
                + ", value: " + value);
        try
        {
            String queryString = "from TXiaofei as model where model."
                    + propertyName + "= ?";
            return getHibernateTemplate().find(queryString, value);
        } catch (RuntimeException re)
        {
            log.error("find by property name failed", re);
            throw re;
        }
    }

    public List findAll()
    {
        log.debug("finding all TXiaofei instances");
        try
        {
            String queryString = "from TXiaofei";
            return getHibernateTemplate().find(queryString);
        } catch (RuntimeException re)
        {
            log.error("find all failed", re);
            throw re;
        }
    }

    public TXiaofei merge(TXiaofei detachedInstance)
    {
        log.debug("merging TXiaofei instance");
        try
        {
            TXiaofei result = (TXiaofei) getHibernateTemplate().merge(
                    detachedInstance);
            log.debug("merge successful");
            return result;
        } catch (RuntimeException re)
        {
            log.error("merge failed", re);
            throw re;
        }
    }

    public void attachDirty(TXiaofei instance)
    {
        log.debug("attaching dirty TXiaofei instance");
        try
        {
            getHibernateTemplate().saveOrUpdate(instance);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public void attachClean(TXiaofei instance)
    {
        log.debug("attaching clean TXiaofei instance");
        try
        {
            getHibernateTemplate().lock(instance, LockMode.NONE);
            log.debug("attach successful");
        } catch (RuntimeException re)
        {
            log.error("attach failed", re);
            throw re;
        }
    }

    public static TXiaofeiDAO getFromApplicationContext(ApplicationContext ctx)
    {
        return (TXiaofeiDAO) ctx.getBean("TXiaofeiDAO");
    }
}

com.model包:

package com.model;

/**
 * TAdmin generated by MyEclipse Persistence Tools
 */

public class TAdmin implements java.io.Serializable {

    // Fields

    private Integer userId;

    private String userName;

    private String userPw;

    // Constructors

    /** default constructor */
    public TAdmin() {
    }

    /** full constructor */
    public TAdmin(String userName, String userPw) {
        this.userName = userName;
        this.userPw = userPw;
    }

    // Property accessors


    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPw() {
        return this.userPw;
    }

    public void setUserPw(String userPw) {
        this.userPw = userPw;
    }

    public Integer getUserId()
    {
        return userId;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

}
package com.model;

/**
 * TRizhi generated by MyEclipse Persistence Tools
 */

public class TRizhi implements java.io.Serializable
{

    private Integer id;
    private String title;
    private String content;
    private String shijian;

    private Integer userId;

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public Integer getId()
    {
        return id;
    }

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

    public String getShijian()
    {
        return shijian;
    }

    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public Integer getUserId()
    {
        return userId;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

}
package com.model;


/**
 * TShouru generated by MyEclipse Persistence Tools
 */

public class TShouru implements java.io.Serializable
{

    private Integer id;
    private String shijian;
    private Double jine;
    private String chengyuan;

    private String leixing;
    private String beizhu;
    private Integer userId;
    
    
    public String getBeizhu()
    {
        return beizhu;
    }
    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }
    public String getChengyuan()
    {
        return chengyuan;
    }
    public void setChengyuan(String chengyuan)
    {
        this.chengyuan = chengyuan;
    }
    public Integer getId()
    {
        return id;
    }
    public void setId(Integer id)
    {
        this.id = id;
    }
    public Double getJine()
    {
        return jine;
    }
    public void setJine(Double jine)
    {
        this.jine = jine;
    }
    public String getLeixing()
    {
        return leixing;
    }
    public void setLeixing(String leixing)
    {
        this.leixing = leixing;
    }
    
    public String getShijian()
    {
        return shijian;
    }
    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }
    public Integer getUserId()
    {
        return userId;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

}
package com.model;

/**
 * TTouzi generated by MyEclipse Persistence Tools
 */

public class TTouzi implements java.io.Serializable
{

    private Integer id;
    private String xangmu;
    private Double benjin;
    private String kaishi;

    private String jiehsu;
    private Double shouyi;
    private Integer userId;
    
    
    public Double getBenjin()
    {
        return benjin;
    }
    public void setBenjin(Double benjin)
    {
        this.benjin = benjin;
    }
    public Integer getId()
    {
        return id;
    }
    public void setId(Integer id)
    {
        this.id = id;
    }
    public String getJiehsu()
    {
        return jiehsu;
    }
    public void setJiehsu(String jiehsu)
    {
        this.jiehsu = jiehsu;
    }
    public String getKaishi()
    {
        return kaishi;
    }
    public void setKaishi(String kaishi)
    {
        this.kaishi = kaishi;
    }
    
    public Double getShouyi()
    {
        return shouyi;
    }
    public void setShouyi(Double shouyi)
    {
        this.shouyi = shouyi;
    }
    public Integer getUserId()
    {
        return userId;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    public String getXangmu()
    {
        return xangmu;
    }
    public void setXangmu(String xangmu)
    {
        this.xangmu = xangmu;
    }

}
package com.model;

import java.util.Date;

/**
 * TUser generated by MyEclipse Persistence Tools
 */

public class TUser implements java.io.Serializable
{

    private Integer userId;
    private String userRealname;
    private String userSex;
    private String userTel;
    
    private String userAddress;
    private String userName;
    private String userPw;
    private String userDel;
    
    public String getUserAddress()
    {
        return userAddress;
    }
    public void setUserAddress(String userAddress)
    {
        this.userAddress = userAddress;
    }
    public Integer getUserId()
    {
        return userId;
    }
    
    public String getUserDel()
    {
        return userDel;
    }
    public void setUserDel(String userDel)
    {
        this.userDel = userDel;
    }
    
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }
    public String getUserName()
    {
        return userName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    public String getUserPw()
    {
        return userPw;
    }
    public void setUserPw(String userPw)
    {
        this.userPw = userPw;
    }
    public String getUserRealname()
    {
        return userRealname;
    }
    public void setUserRealname(String userRealname)
    {
        this.userRealname = userRealname;
    }
    public String getUserSex()
    {
        return userSex;
    }
    public void setUserSex(String userSex)
    {
        this.userSex = userSex;
    }
    public String getUserTel()
    {
        return userTel;
    }
    public void setUserTel(String userTel)
    {
        this.userTel = userTel;
    }
    

}
package com.model;

/**
 * TXiaofei generated by MyEclipse Persistence Tools
 */

public class TXiaofei implements java.io.Serializable
{

    private Integer id;
    private String shijian;
    private Double jine;
    private String chengyuan;

    private String leixing;
    private String beizhu;
    private Integer userId;
    
    public String getBeizhu()
    {
        return beizhu;
    }
    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }
    public String getChengyuan()
    {
        return chengyuan;
    }
    public void setChengyuan(String chengyuan)
    {
        this.chengyuan = chengyuan;
    }
    public Integer getId()
    {
        return id;
    }
    public void setId(Integer id)
    {
        this.id = id;
    }
    public Double getJine()
    {
        return jine;
    }
    public void setJine(Double jine)
    {
        this.jine = jine;
    }
    public String getLeixing()
    {
        return leixing;
    }
    public void setLeixing(String leixing)
    {
        this.leixing = leixing;
    }
    public String getShijian()
    {
        return shijian;
    }
    public void setShijian(String shijian)
    {
        this.shijian = shijian;
    }
    public Integer getUserId()
    {
        return userId;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TAdmin" table="t_admin">
        <id name="userId" type="java.lang.Integer">
            <column name="userId" />
            <generator class="increment" />
        </id>
        <property name="userName" type="java.lang.String">
            <column name="userName" length="50" />
        </property>
        <property name="userPw" type="java.lang.String">
            <column name="userPw" length="50" />
        </property>
    </class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TRizhi" table="t_rizhi" catalog="db_licai">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator class="increment" />
        </id>
        <property name="title" type="java.lang.String">
            <column name="title" length="200" />
        </property>
        <property name="content" type="java.lang.String">
            <column name="content" length="5000" />
        </property>
        <property name="shijian" type="java.lang.String">
            <column name="shijian" length="200" />
        </property>
        <property name="userId" type="java.lang.Integer">
            <column name="user_id" />
        </property>
    </class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TShouru" table="t_shouru">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator class="increment" />
        </id>
        <property name="shijian" type="java.lang.String">
            <column name="shijian" length="23" />
        </property>
        <property name="jine" type="java.lang.Double">
            <column name="jine" precision="18" />
        </property>
        <property name="chengyuan" type="java.lang.String">
            <column name="chengyuan" length="50" />
        </property>
        <property name="leixing" type="java.lang.String">
            <column name="leixing" length="50" />
        </property>
        <property name="beizhu" type="java.lang.String">
            <column name="beizhu" length="5000" />
        </property>
        <property name="userId" type="java.lang.Integer">
            <column name="user_id" />
        </property>
    </class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TTouzi" table="t_touzi">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator class="increment" />
        </id>
        <property name="xangmu" type="java.lang.String">
            <column name="xangmu" length="50" />
        </property>
        <property name="benjin" type="java.lang.Double">
            <column name="benjin" precision="18" />
        </property>
        <property name="kaishi" type="java.lang.String">
            <column name="kaishi" length="50" />
        </property>
        <property name="jiehsu" type="java.lang.String">
            <column name="jiehsu" length="50" />
        </property>
        <property name="shouyi" type="java.lang.Double">
            <column name="shouyi" precision="18" />
        </property>
        <property name="userId" type="java.lang.Integer">
            <column name="user_id" />
        </property>
    </class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TUser" table="t_user">
        <id name="userId" type="java.lang.Integer">
            <column name="user_id" />
            <generator class="increment" />
        </id>
        <property name="userRealname" type="java.lang.String">
            <column name="user_realname" length="50" />
        </property>
        <property name="userSex" type="java.lang.String">
            <column name="user_sex" length="50" />
        </property>
        <property name="userTel" type="java.lang.String">
            <column name="user_tel" length="50" />
        </property>
        <property name="userAddress" type="java.lang.String">
            <column name="user_address" length="50" />
        </property>
        <property name="userName" type="java.lang.String">
            <column name="user_name" length="50" />
        </property>
        <property name="userPw" type="java.lang.String">
            <column name="user_pw" length="50" />
        </property>
        <property name="userDel" type="java.lang.String">
            <column name="user_del" length="50" />
        </property>
    </class>
</hibernate-mapping>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
    <class name="com.model.TXiaofei" table="t_xiaofei">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator class="increment" />
        </id>
        <property name="shijian" type="java.lang.String">
            <column name="shijian" length="50" />
        </property>
        <property name="jine" type="java.lang.Double">
            <column name="jine" precision="18" />
        </property>
        <property name="chengyuan" type="java.lang.String">
            <column name="chengyuan" length="50" />
        </property>
        <property name="leixing" type="java.lang.String">
            <column name="leixing" length="50" />
        </property>
        <property name="beizhu" type="java.lang.String">
            <column name="beizhu" length="5000" />
        </property>
        <property name="userId" type="java.lang.Integer">
            <column name="user_id" />
        </property>
    </class>
</hibernate-mapping>

com.service包:

package com.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

import com.dao.TAdminDAO;
import com.dao.TUserDAO;
import com.model.TAdmin;
import com.model.TUser;

public class loginService
{
    private TUserDAO userDAO;
    private TAdminDAO adminDAO;
    public TUserDAO getUserDAO()
    {
        return userDAO;
    }
    public void setUserDAO(TUserDAO userDAO)
    {
        this.userDAO = userDAO;
    }


    public TAdminDAO getAdminDAO()
    {
        return adminDAO;
    }
    public void setAdminDAO(TAdminDAO adminDAO)
    {
        this.adminDAO = adminDAO;
    }
    public String login(String userName,String userPw,int userType)
    {
        System.out.println("userType"+userType);
        try
        {
            Thread.sleep(700);
        } catch (InterruptedException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        
        String result="no";
        
        if(userType==0)//ϵͳ����Ա��½
        {
            String sql="from TAdmin where userName=? and userPw=?";
            Object[] con={userName,userPw};
            List adminList=adminDAO.getHibernateTemplate().find(sql,con);
            if(adminList.size()==0)
            {
                 result="no";
            }
            else
            {
                 WebContext ctx = WebContextFactory.get(); 
                 HttpSession session=ctx.getSession(); 
                 TAdmin admin=(TAdmin)adminList.get(0);
                 session.setAttribute("userType", 0);
                 session.setAttribute("admin", admin);
                 result="yes";
            }
        }
        if(userType==1)//
        {
            String sql="from TUser where userName=? and userPw=?";
            Object[] con={userName.trim(),userPw};
            List userList=userDAO.getHibernateTemplate().find(sql,con);
            if(userList.size()==0)
            {
                 result="no";
            }
            else
            {
                 WebContext ctx = WebContextFactory.get(); 
                 HttpSession session=ctx.getSession(); 
                 TUser user=(TUser)userList.get(0);
                 session.setAttribute("userType", 1);
                 session.setAttribute("user", user);
                 result="yes";
            }
        }
        if(userType==2)//
        {
            
        }
        return result;
    }
    
    
    public String adminPwEdit(String userPwNew)
    {
        System.out.println("DDDD");
        try 
        {
            Thread.sleep(700);
        } 
        catch (InterruptedException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        WebContext ctx = WebContextFactory.get(); 
        HttpSession session=ctx.getSession(); 
         
        TAdmin admin=(TAdmin)session.getAttribute("admin");
        admin.setUserPw(userPwNew);
        
        adminDAO.getHibernateTemplate().update(admin);
        session.setAttribute("admin", admin);
        
        return "yes";
    }
    
    
    public String userPwEdit(String userPwNew)
    {
        System.out.println("DDDD");
        try 
        {
            Thread.sleep(700);
        } 
        catch (InterruptedException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        WebContext ctx = WebContextFactory.get(); 
        HttpSession session=ctx.getSession(); 
         
        TUser user=(TUser)session.getAttribute("user");
        user.setUserPw(userPwNew);
        
        userDAO.getHibernateTemplate().update(user);
        session.setAttribute("user", user);
        
        return "yes";
    }

}

com.util包:

package com.util;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Date;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class upload extends ActionSupport
{
    private static final int BUFFER_SIZE = 16 * 1024;
    private File fujian;
    private String fujianFileName;
    private String fujianContentType;
    
    
    public String upload()
    {
        String newFujianName=new Date().getTime()+fujianFileName.substring(fujianFileName.indexOf("."));
        String dstPath = ServletActionContext.getServletContext().getRealPath("upload")+ "\\" + newFujianName;
        File dstFile = new File(dstPath);
        copy(this.getFujian(),dstFile);
        Map request=(Map)ServletActionContext.getContext().get("request");
        request.put("newFujianName", newFujianName);
        request.put("oldFujianName", fujianFileName);
        request.put("fujianPath", "/upload"+ "/" + newFujianName);
        return ActionSupport.SUCCESS;
    }
    
    
    private static void copy(File src, File dst) 
    {
        InputStream in = null;
        OutputStream out = null;
        try 
        {
            in = new BufferedInputStream(new FileInputStream(src), BUFFER_SIZE);
            out = new BufferedOutputStream(new FileOutputStream(dst),BUFFER_SIZE);
            byte[] buffer = new byte[BUFFER_SIZE];
            int len = 0;
            while ((len = in.read(buffer)) > 0) 
            {
                out.write(buffer, 0, len);
            }
        } 
        catch (Exception e)
        {
            e.printStackTrace();
        } 
        finally
        {
            if (null != in) 
            {
                try 
                {
                    in.close();
                } 
                catch (IOException e) 
                {
                    e.printStackTrace();
                }
            }
            if (null != out) 
            {
                try 
                {
                    out.close();
                } 
                catch (IOException e) 
                {
                    e.printStackTrace();
                }
            }
        }
    }


    public File getFujian()
    {
        return fujian;
    }


    public void setFujian(File fujian)
    {
        this.fujian = fujian;
    }


    public String getFujianContentType()
    {
        return fujianContentType;
    }


    public void setFujianContentType(String fujianContentType)
    {
        this.fujianContentType = fujianContentType;
    }


    public String getFujianFileName()
    {
        return fujianFileName;
    }


    public void setFujianFileName(String fujianFileName)
    {
        this.fujianFileName = fujianFileName;
    }

}
package com.util;

import java.text.ParseException;
import java.util.Date;
import java.util.GregorianCalendar;

public class Util {
    public static Date newDate(String s) throws ParseException {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy-MM-dd");
        Date date = new Date();
        date = sdf.parse(s);
        return date;
    }

    public static Date newDate1(String s) throws ParseException {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy-MM-dd HH:mm");
        Date date = new Date();
        date = sdf.parse(s);
        return date;
    }

    public static Date FormatFullDate(String s) throws ParseException {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        date = sdf.parse(s);
        return date;

    }

    public static String splitDate(Date d) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy-MM-dd");
        return sdf.format(d);
    }

    public static String splitDate1(Date d) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy��MM��dd��");
        return sdf.format(d);
    }

    /**
     * ���ַ����ض̣�ȡǰn���ַ���Ӣ�������ַ���
     * 
     * @param orignalString
     *            ԭ�ַ���
     * @param length
     *            ����
     * @param chopedString
     *            �������ֵı�ʾ�ַ���
     * @return ��ȡ���ַ���
     */
    public static String chop(String orignalString, double length,
            String chopedString) {
        if (orignalString == null || orignalString.length() == 0) {
            return orignalString;
        }
        orignalString = orignalString.replaceAll(" ", " ");
        if (orignalString.length() < length) {
            return orignalString;
        }
        StringBuffer buffer = new StringBuffer((int) length);
        length = length * 2;
        int count = 0;
        int stringLength = orignalString.length();
        int i = 0;
        for (; count < length && i < stringLength; i++) {
            char c = orignalString.charAt(i);
            if (c < '\u00ff') {
                count++;
            } else {
                count += 2;
            }
            buffer.append(c);
        }
        if (i < stringLength) {
            buffer.append(chopedString);
        }
        return buffer.toString();
    }

    public static long getPrimeKey() {
        GregorianCalendar calendar = new GregorianCalendar();
        return calendar.getTimeInMillis();
    }

    public static long stringToLong(String source) {
        return Long.parseLong(source);
    }
    /*
     * public static void main(String[] args){ for(int i=0;i<10;i++){
     * System.out.println(Util.getPrimeKey()); } }
     */
}

admin文件:

   index文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 

<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
            function closeOpen()
            {
               window.returnValue=false;
               window.close();
            }
            
        </script>
    </head>

    <body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
            <form action="<%=path %>/adminAdd.action" name="formAdd" method="post">
                     <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
                        <tr bgcolor="#EEF4EA">
                            <td colspan="3" background="<%=path %>/img/wbg.gif" class='title'><span>管理员添加</span></td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 用户名:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input type="text" name="userName" size="20"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                密码:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input type="password" name="userPw" id="userPw" size="22"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                &nbsp;
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="submit" value="提交"/>&nbsp; 
                               <input type="reset" value="重置"/>&nbsp;
                               <input type="button" value="取消" onclick="closeOpen()"/>
                            </td>
                        </tr>
                     </table>
            </form>
   </body>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
           function adminDel(userId)
           {
               if(confirm('您确定删除吗?'))
               {
                   window.location.href="<%=path %>/adminDel.action?userId="+userId;
               }
           }
           
           function adminAdd()
           {
                 var url="<%=path %>/admin/index/adminAdd.jsp";
                 //var n="";
                 //var w="480px";
                 //var h="500px";
                 //var s="resizable:no;help:no;status:no;scroll:yes";
                 //openWin(url,n,w,h,s);
                 window.location.href=url;
           }
       </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="4" background="<%=path %>/img/tbg.gif">&nbsp;管理员维护&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="25%">ID</td>
                    <td width="25%">用户名</td>
                    <td width="25%">密码</td>
                    <td width="25%">操作</td>
                </tr>    
                <s:iterator value="#request.adminList" id="admin">
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td width="25%" bgcolor="#FFFFFF" align="center">
                        <s:property value="#admin.userId"/>
                    </td>
                    <td width="25%" bgcolor="#FFFFFF" align="center">
                        <s:property value="#admin.userName"/>
                    </td>
                    <td width="25%" bgcolor="#FFFFFF" align="center">
                        <s:property value="#admin.userPw"/>
                    </td>
                    <td width="25%" bgcolor="#FFFFFF" align="center">
                        <a href="#" onclick="adminDel(<s:property value="#admin.userId"/>)" class="pn-loperator">删除</a>
                    </td>
                </tr>
                </s:iterator>
            </table>
            
            <table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
              <tr>
                <td>
                  <input type="button" value="添加" style="width: 80px;" onclick="adminAdd()" />
                </td>
              </tr>
            </table>
    </body>
</html>

   user文件夹:

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
           function userDel(userId)
           {
               if(confirm('您确定删除吗?'))
               {
                   window.location.href="<%=path %>/userDel.action?userId="+userId;
               }
           }
           function userEditPre(userId)
           {
                   window.location.href="<%=path %>/userEditPre.action?userId="+userId;
           }
       </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="8" background="<%=path %>/img/tbg.gif">&nbsp;用户管理&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="15%">姓名</td>
                    <td width="10%">性别</td>
                    <td width="10%">住址</td>
                    <td width="15%">联系方式</td>
                    <td width="20%">邮箱</td>
                    <td width="10%">密码</td>
                    <td width="10%">操作</td>
                </tr>    
                <s:iterator value="#request.userList" id="user">
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userRealname"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userSex"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userAddress"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userTel"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userName"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#user.userPw"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <a href="#" onclick="userDel(<s:property value="#user.userId"/>)" class="pn-loperator">删除</a>
                    </td>
                </tr>
                </s:iterator>
            </table>
    </body>
</html>

  userinto文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 

<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
        <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
        
        <script language="javascript">
            function check()
            {
                 var userPwReal="${sessionScope.admin.userPw}";
                 if(document.formPw.userPw.value !=userPwReal)
                 {
                     alert("原密码不正确");
                     return ;
                 }
                 
                 if(document.formPw.userPw1.value =="")
                 {
                     alert("新密码不能空");
                     return ;
                 }
                 if(document.formPw.userPw1.value != document.formPw.userPw2.value)
                 {
                     alert("两次输入的密码不一致");
                     return ;
                 }
                 
                 document.getElementById("indicator").style.display="block";
                 loginService.adminPwEdit(document.formPw.userPw1.value,callback);
            }
            function callback(data)
            {
                document.getElementById("indicator").style.display="none";
                alert("修改成功");
            }
        </script>
    </head>

    <body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
            <form method="post" action="<%=path %>/userPwEdit.action" name="formPw">
            <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
                <tr bgcolor="#EEF4EA">
                    <td colspan="2" background="<%=path %>/img/wbg.gif" class='title'><span>密码修改</span></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                    <td width="25%" bgcolor="#FFFFFF" align="right">
                         帐号:
                    </td>
                    <td width="75%" bgcolor="#FFFFFF">
                        <input type="text" value="${sessionScope.admin.userName }" name="userName" size="20" disabled="disabled"/>
                    </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                    <td width="25%" bgcolor="#FFFFFF" align="right">
                        原密码:
                    </td>
                    <td width="75%" bgcolor="#FFFFFF">
                        <input type="password" name="userPw" id="userPw" size="22"/>
                    </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                    <td width="25%" bgcolor="#FFFFFF" align="right">
                         新密码:
                    </td>
                    <td width="75%" bgcolor="#FFFFFF">
                        <input type="password" id="userPw1" name="userPw1" size="22"/>
                    </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                    <td width="25%" bgcolor="#FFFFFF" align="right">
                        确认密码:
                    </td>
                    <td width="75%" bgcolor="#FFFFFF">
                           <input type="password" name="userPw2" id="userPw2" size="22"/>
                    </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                    <td width="25%" bgcolor="#FFFFFF" align="right">
                        &nbsp;
                    </td>
                    <td width="75%" bgcolor="#FFFFFF">
                         <input type="button" value="修改" onclick="check()"/>
                         &nbsp;&nbsp;&nbsp;
                         <input type="reset" value="重置"/>
                         <img id="indicator" src="<%=path %>/img/loading.gif" alt="Loading..." style="display:none"/>
                    </td>
                </tr>
            </table>
            </form>
   </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <style>
    body
    {
      scrollbar-base-color:#C0D586;
      scrollbar-arrow-color:#FFFFFF;
      scrollbar-shadow-color:DEEFC6;
    }
    </style>
  </head>
  <frameset rows="60,*" cols="*" frameborder="no" border="0" framespacing="0">
      <frame src="<%=path %>/admin/top.jsp" name="topFrame" scrolling="no">
      <frameset cols="180,*" name="btFrame" frameborder="NO" border="0" framespacing="0">
        <frame src="<%=path %>/admin/menu.jsp" noresize name="menu" scrolling="yes">
        <frame src="<%=path %>/admin/index/sysPro.jsp" noresize name="main" scrolling="yes">
      </frameset>
  </frameset>
  <noframes>
      <body>您的浏览器不支持框架!</body>
  </noframes>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'menu.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" href="<%=path %>/css/base.css" type="text/css" />
    <link rel="stylesheet" href="<%=path %>/css/menu.css" type="text/css" />
    <style type="text/css">
        div {
            padding:0px;
            margin:0px;
        }
        
        body {
         scrollbar-base-color:#bae87c;
         scrollbar-arrow-color:#FFFFFF;
         scrollbar-shadow-color:#c1ea8b;
         padding:0px;
         margin:auto;
         text-align:center;
         background-color:#9ad075;
        }
        
        dl.bitem {
            width:148px;
            margin:0px 0px 5px 4px;
        }
        
        dl.bitem dt {
          background:url(<%=path %>/img/menubg.gif);
          height:26px;
          line-height:26px;
          text-align:center;
          cursor:pointer;
        }
        
        dl.bitem dd {
          padding:3px 3px 3px 3px;
          background-color:#fff;
        }
        
        .fllct
        {
            float:left;
            
            width:90px;
        }
        
        .flrct
        {
            padding-top:3px;
            float:left;
        }
        
        div.items
        {
            line-height:22px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 9px;
        }
        
        span.items
        {
            padding:10px 0px 10px 22px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 12px;
        }
        
        ul {
          padding-top:3px;
        }
        
        li {
          height:22px;
        }
        
        .sitemu li {
            padding:0px 0px 0px 22px;
            line-height:24px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 9px;
        }
    </style>
    <script language='javascript'>var curopenItem = '1';</script>
    <script language="javascript" type="text/javascript" src="<%=path %>/js/menu.js"></script>
    <base target="main" />
  </head>
  
  <body target="main">
    <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'>
      <tr>
        <td style='padding-left:3px;padding-top:8px' valign="top">
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>修改个人密码</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/admin/userinfo/userPw.jsp' target='main'>修改个人密码</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items2_1")'><b>注册用户管理</b></dt>
            <dd style='display:block' class='sitem' id='items2_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/userMana.action' target='main'>注册用户管理</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items99_1")'><b>安全退出系统</b></dt>
            <dd style='display:block' class='sitem' id='items99_1'>
              <ul class='sitemu'>
                <li><a href='#' onclick='javascript:window.parent.location="<%=path %>/login.jsp"'>安全退出系统</a></li>
              </ul>
            </dd>
          </dl>
        </td>
      </tr>
    </table>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="<%=path %>/css/base.css" rel="stylesheet" type="text/css">
    <script language='javascript'>
        var preFrameW = '206,*';
        var FrameHide = 0;
        var curStyle = 1;
        var totalItem = 9;
        function ChangeMenu(way){
            var addwidth = 10;
            var fcol = top.document.all.btFrame.cols;
            if(way==1) addwidth = 10;
            else if(way==-1) addwidth = -10;
            else if(way==0){
                if(FrameHide == 0){
                    preFrameW = top.document.all.btFrame.cols;
                    top.document.all.btFrame.cols = '0,*';
                    FrameHide = 1;
                    return;
                }else{
                    top.document.all.btFrame.cols = preFrameW;
                    FrameHide = 0;
                    return;
                }
            }
            fcols = fcol.split(',');
            fcols[0] = parseInt(fcols[0]) + addwidth;
            top.document.all.btFrame.cols = fcols[0]+',*';
        }
        
        function logout()
        {
           if(confirm("确定要退出本系统吗??"))
           {
               window.parent.location="<%=path %>/login.jsp";
           }
        }
    </script>
  </head>
  
  <body bgColor='#ffffff' style="margin: 0;padding: 0">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="<%=path %>/img/topbg.gif">
      <tr>
        <td width='50%' height="60" style="font-size:26px; font-weight: bold;">&nbsp;&nbsp;基于web的家庭理财系统</td>
        <td width='50%' align="right">
            <table width="550" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td align="right" height="26" style="padding-right:10px;line-height:26px;font-size:17px">
                        <font style="font-size:16px; font-weight: bold;">
                            您好:系统管理员&nbsp;&nbsp;&nbsp;&nbsp;
                        </font>
                        <!--  [<a href="" target="_blank">网站主页</a>]-->
                        
                        [<a href="#" onclick="logout()">注销退出</a>]
                        [<a href="javascript:ChangeMenu(0);">显示主框架</a>]
                  </td>
              </tr>
            </table>
        </td>
      </tr>
    </table>
  </body>
</html>

auser文件:

     rizhi文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>

<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
        </script>
    </head>

    <body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
            <form action="<%=path %>/rizhiAdd.action" name="formAdd" method="post">
                     <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
                        <tr bgcolor="#EEF4EA">
                            <td colspan="3" background="<%=path %>/img/wbg.gif" class='title'><span>理财日志管理</span></td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                  日志标题:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input type="text" name="title" size="70"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 日志内容:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <FCK:editor instanceName="content"  basePath="/fckeditor" width="400" height="150" value="" toolbarSet="Basic">
                                </FCK:editor>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                &nbsp;
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="submit" value="提交"/>&nbsp; 
                               <input type="reset" value="重置"/>&nbsp;
                            </td>
                        </tr>
                     </table>
            </form>
   </body>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
        
        <script language="javascript">
           function rizhiAdd()
           {
              var url="<%=path %>/auser/rizhi/rizhiAdd.jsp";
              window.location.href=url;
           }
       </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/img/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="14" background="<%=path %>/img/tbg.gif">&nbsp;理财日志管理&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="5%">序号</td>
                    <td width="20%">日志标题</td>
                    <td width="50%">日志内容</td>
                    <td width="10%">发布时间</td>
                    <td width="10%">操作</td>
                </tr>    
                <s:iterator value="#request.rizhiList" id="rizhi" status="ss">
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                         <s:property value="#ss.index+1"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#rizhi.title"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#rizhi.content" escape="false"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#rizhi.shijian"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <a class="pn-loperator" href="<%=path %>/rizhiDel.action?id=<s:property value="#rizhi.id"/>">删除</a>
                    </td>
                </tr>
                </s:iterator>
            </table>
            
            <table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
              <tr>
                <td>
                  <input type="button" value="添加理财日志" style="width: 80px;" onclick="rizhiAdd()" />
                </td>
              </tr>
            </table>
    </body>
</html>

    shouru文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.text.SimpleDateFormat"/>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 

<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        <script type="text/javascript" src="<%=path %>/My97DatePicker/WdatePicker.js"></script> 
        <script language="javascript">
            function c()
            {
                if(document.formPw.shijian.value=="")
                {
                    alert("请输入时间");
                    return false;
                }
                
                if(document.formPw.jine.value=="")
                {
                    alert("请金额");
                    return false;
                }
                
                document.formPw.submit();
            }
        </script>
    </head>

    <body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'>
            <form method="post" action="<%=path %>/shouruAdd.action" name="formPw">
                     <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
                        <tr bgcolor="#EEF4EA">
                            <td colspan="3" background="<%=path %>/images/wbg.gif" class='title'><span>收入信息管理</span></td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 时间:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input name="shijian" value="<%=new SimpleDateFormat("yyyy-MM-dd").format(new Date())%>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 金额:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="text" value="0.0" name="jine" size="22" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 成员:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="radio" name="chengyuan" value="本人" checked="checked" style="border: 0px;"/>本人&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="chengyuan" value="配偶" style="border: 0px;"/>配偶&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="chengyuan" value="爸爸" style="border: 0px;"/>爸爸&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="chengyuan" value="妈妈" style="border: 0px;"/>妈妈&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="chengyuan" value="子女" style="border: 0px;"/>子女&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                类型:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="text" name="leixing" size="22"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                备注:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <textarea rows="4" cols="30" name="beizhu"></textarea>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                &nbsp;
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="button" value="提交" onclick="c()"/>&nbsp; 
                               <input type="reset" value="重置"/>&nbsp;
                            </td>
                        </tr>
                     </table>
            </form>
   </body>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
           function shouruDel(id)
           {
               if(confirm('您确定删除吗?'))
               {
                   window.location.href="<%=path %>/shouruDel.action?id="+id;
               }
           }
           
           function shouruAdd()
           {
                 var url="<%=path %>/auser/shouru/shouruAdd.jsp";
                 window.location.href=url;
           }
       </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="25" background="<%=path %>/images/tbg.gif">&nbsp;收入信息管理&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="5%">序号</td>
                    <td width="10%">时间</td>
                    <td width="10%">金额</td>
                    <td width="10%">成员</td>
                    <td width="10%">类型</td>
                    <td width="10%">备注</td>
                    <td width="10%">操作</td>
                </tr>    
                <s:iterator value="#request.shouruList" id="shouru" status="ss">
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#ss.index+1"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#shouru.shijian"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#shouru.jine"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#shouru.chengyuan"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#shouru.leixing"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#shouru.beizhu" escape="false"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <a href="#" onclick="shouruDel(<s:property value="#shouru.id"/>)" class="pn-loperator">删除</a>
                    </td>
                </tr>
                </s:iterator>
            </table>
            
            <table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
              <tr>
                <td>
                  <input type="button" value="添加" style="width: 80px;" onclick="shouruAdd()" />
                </td>
              </tr>
            </table>
    </body>
</html>

   tong_meiri文件:

<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="com.model.TShouru"/>
<jsp:directive.page import="com.model.TXiaofei"/>
<jsp:directive.page import="org.jfree.data.general.DefaultPieDataset"/>
<jsp:directive.page import="org.jfree.chart.JFreeChart"/>
<jsp:directive.page import="org.jfree.chart.ChartFactory"/>
<jsp:directive.page import="org.jfree.chart.title.TextTitle"/>
<jsp:directive.page import="org.jfree.chart.plot.PiePlot"/>
<jsp:directive.page import="java.awt.Font"/>
<jsp:directive.page import="org.jfree.chart.labels.StandardPieSectionLabelGenerator"/>
<jsp:directive.page import="org.jfree.chart.title.LegendTitle"/>
<jsp:directive.page import="java.io.OutputStream"/>
<jsp:directive.page import="org.jfree.chart.ChartUtilities"/>
<jsp:directive.page import="java.io.FileOutputStream"/>
<jsp:directive.page import="java.text.NumberFormat"/>
<jsp:directive.page import="java.text.DecimalFormat"/>
<jsp:directive.page import="java.io.File"/>
<jsp:directive.page import="java.util.Date"/>

<%
    String path = request.getContextPath();
    
    List shouruList=(List)request.getAttribute("shouruList");
    List xiaofeiList=(List)request.getAttribute("xiaofeiList");
    String shijian=(String)request.getAttribute("shijian");
    double shouru_1=0;
    double xiaofei_1=0;
    
    for(int i=0;i<shouruList.size();i++)
    {
        TShouru shouru=(TShouru)shouruList.get(i);
        shouru_1=shouru_1+shouru.getJine();
    }
    
    for(int i=0;i<xiaofeiList.size();i++)
    {
        TXiaofei xiaofei=(TXiaofei)xiaofeiList.get(i);
        xiaofei_1=xiaofei_1+xiaofei.getJine();
    }
    
    

  
    DefaultPieDataset defaultPieDataset=new DefaultPieDataset();//数据集
    defaultPieDataset.setValue("收入",shouru_1);
    defaultPieDataset.setValue("消费",xiaofei_1);
    
    JFreeChart freeChart=ChartFactory.createPieChart("每日统计分析饼图", defaultPieDataset,true,false,false);
    //JFreeChart freeChart=ChartFactory.createPieChart3D("某公司的人员组织结构图", defaultPieDataset,true,true,false);
    //共5个参数
    //第一个图的标题
    //第二个数据集
    //第三个
    //第四个鼠标指上是否有提示信息
    //第五个是否有超链接

    
    
    //为了防止乱码才这样写的
    TextTitle title=freeChart.getTitle();
    title.setFont(new Font("宋体", Font.BOLD, 25));
    
    PiePlot plot=(PiePlot)freeChart.getPlot();
    plot.setLabelFont(new Font("宋体", Font.BOLD, 15));
       plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0}:{1}({2})", NumberFormat.getNumberInstance(),new DecimalFormat("0.0%")));
    
    LegendTitle legendTitle=freeChart.getLegend();
    legendTitle.setItemFont(new Font("宋体", Font.BOLD, 15));
       //为了防止乱码才这样写的
    
    
    String tu_mingzi=String.valueOf(new Date().getTime())+".jpg";
    String url = request.getSession().getServletContext().getRealPath("tutu")+"\\"+tu_mingzi;
    
    OutputStream os=new FileOutputStream(url);
    ChartUtilities.writeChartAsJPEG(os, freeChart, 500, 500);
    os.close();
    
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script type="text/javascript" src="<%=path %>/My97DatePicker/WdatePicker.js"></script> 
        
        
        <script language="javascript">
            function c()
            {
                document.formPw.submit();
            }
            
        </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="25" background="<%=path %>/images/tbg.gif">&nbsp;每日统计分析&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="5%">序号</td>
                    <td width="10%">时间</td>
                    <td width="10%">收入</td>
                    <td width="10%">消费</td>
                    <td width="10%">结余</td>
                </tr>    
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                        1
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <%=shijian %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=shouru_1 %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=xiaofei_1 %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=shouru_1-xiaofei_1 %>
                    </td>
                </tr>
            </table>
            
            <form action="<%=path %>/tongji_meiri.action" name="formPw" method="post">
                <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
                    <tr>
                        <td>
                            <input name="shijian" value="<%=shijian %>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/>
                            <input type="button" value="统计" style="width: 80px;" onclick="c()" />
                        </td>
                    </tr>
                </table>
            </form>
            
            
            <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
                <tr>
                    <td>
                        <%
                           String url11="/licai/tutu/"+tu_mingzi;
                        %>
                        <img src="<%=url11 %>" width="300" height="300" border="0" />
                    </td>
                </tr>
            </table>
    </body>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="com.model.TShouru"/>
<jsp:directive.page import="com.model.TXiaofei"/>
<jsp:directive.page import="org.jfree.data.general.DefaultPieDataset"/>
<jsp:directive.page import="org.jfree.chart.JFreeChart"/>
<jsp:directive.page import="org.jfree.chart.ChartFactory"/>
<jsp:directive.page import="org.jfree.chart.title.TextTitle"/>
<jsp:directive.page import="org.jfree.chart.plot.PiePlot"/>
<jsp:directive.page import="java.awt.Font"/>
<jsp:directive.page import="org.jfree.chart.labels.StandardPieSectionLabelGenerator"/>
<jsp:directive.page import="org.jfree.chart.title.LegendTitle"/>
<jsp:directive.page import="java.io.OutputStream"/>
<jsp:directive.page import="org.jfree.chart.ChartUtilities"/>
<jsp:directive.page import="java.io.FileOutputStream"/>
<jsp:directive.page import="java.text.NumberFormat"/>
<jsp:directive.page import="java.text.DecimalFormat"/>
<jsp:directive.page import="java.io.File"/>
<jsp:directive.page import="java.util.Date"/>

<%
    String path = request.getContextPath();
    
    List shouruList=(List)request.getAttribute("shouruList");
    List xiaofeiList=(List)request.getAttribute("xiaofeiList");
    String shijian=(String)request.getAttribute("shijian");
    double shouru_1=0;
    double xiaofei_1=0;
    
    for(int i=0;i<shouruList.size();i++)
    {
        TShouru shouru=(TShouru)shouruList.get(i);
        shouru_1=shouru_1+shouru.getJine();
    }
    
    for(int i=0;i<xiaofeiList.size();i++)
    {
        TXiaofei xiaofei=(TXiaofei)xiaofeiList.get(i);
        xiaofei_1=xiaofei_1+xiaofei.getJine();
    }
    
    

  
    DefaultPieDataset defaultPieDataset=new DefaultPieDataset();//数据集
    defaultPieDataset.setValue("收入",shouru_1);
    defaultPieDataset.setValue("消费",xiaofei_1);
    
    JFreeChart freeChart=ChartFactory.createPieChart("每月统计分析饼图", defaultPieDataset,true,false,false);
    //JFreeChart freeChart=ChartFactory.createPieChart3D("某公司的人员组织结构图", defaultPieDataset,true,true,false);
    //共5个参数
    //第一个图的标题
    //第二个数据集
    //第三个
    //第四个鼠标指上是否有提示信息
    //第五个是否有超链接

    
    
    //为了防止乱码才这样写的
    TextTitle title=freeChart.getTitle();
    title.setFont(new Font("宋体", Font.BOLD, 25));
    
    PiePlot plot=(PiePlot)freeChart.getPlot();
    plot.setLabelFont(new Font("宋体", Font.BOLD, 15));
       plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0}:{1}({2})", NumberFormat.getNumberInstance(),new DecimalFormat("0.0%")));
    
    LegendTitle legendTitle=freeChart.getLegend();
    legendTitle.setItemFont(new Font("宋体", Font.BOLD, 15));
       //为了防止乱码才这样写的
    
    String tu_mingzi=String.valueOf(new Date().getTime())+".jpg";
    String url = request.getSession().getServletContext().getRealPath("tutu")+"\\"+tu_mingzi;
    
    OutputStream os=new FileOutputStream(url);
    ChartUtilities.writeChartAsJPEG(os, freeChart, 500, 500);
    os.close();
    
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script type="text/javascript" src="<%=path %>/My97DatePicker/WdatePicker.js"></script> 
        
        
        <script language="javascript">
            function c()
            {
                document.formPw.submit();
            }
            
        </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="25" background="<%=path %>/images/tbg.gif">&nbsp;每月统计分析&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="5%">序号</td>
                    <td width="10%">月份</td>
                    <td width="10%">收入</td>
                    <td width="10%">消费</td>
                    <td width="10%">结余</td>
                </tr>    
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                        1
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <%=shijian %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=shouru_1 %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=xiaofei_1 %>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <%=shouru_1-xiaofei_1 %>
                    </td>
                </tr>
            </table>
            
            <form action="<%=path %>/tongji_meiyue.action" name="formPw" method="post">
                <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
                    <tr>
                        <td>
                            <input name="shijian" value="<%=shijian %>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM'})"/>
                            <input type="button" value="统计" style="width: 80px;" onclick="c()" />
                        </td>
                    </tr>
                </table>
            </form>
            
            
            <table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
                <tr>
                    <td>
                        <%
                           String url11="/licai/tutu/"+tu_mingzi;
                        %>
                        <img src="<%=url11 %>" width="300" height="300" border="0" />
                    </td>
                </tr>
            </table>
    </body>
</html>

 

    touzi文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.text.SimpleDateFormat"/>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 

<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />
        
        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        <script type="text/javascript" src="<%=path %>/My97DatePicker/WdatePicker.js"></script> 
        <script language="javascript">
            function c()
            {
                document.formPw.submit();
            }
        </script>
    </head>

    <body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'>
            <form method="post" action="<%=path %>/touziAdd.action" name="formPw">
                     <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
                        <tr bgcolor="#EEF4EA">
                            <td colspan="3" background="<%=path %>/images/wbg.gif" class='title'><span>投资信息管理</span></td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 投资项目:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="radio" name="xangmu" value="股票" checked="checked" style="border: 0px;"/>股票&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="xangmu" value="基金" style="border: 0px;"/>基金&nbsp;&nbsp;&nbsp;&nbsp;
                               <input type="radio" name="xangmu" value="房产" style="border: 0px;"/>房产&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 投资本金:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="text" value="0.0" name="benjin" size="22" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 投资时间:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input name="kaishi" value="<%=new SimpleDateFormat("yyyy-MM-dd").format(new Date())%>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                 收益时间:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                                <input name="jiehsu" value="<%=new SimpleDateFormat("yyyy-MM-dd").format(new Date())%>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                       收益情况:
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="text" value="0.0" name="shouyi" size="22" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
                            </td>
                        </tr>
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <td width="25%" bgcolor="#FFFFFF" align="right">
                                &nbsp;
                            </td>
                            <td width="75%" bgcolor="#FFFFFF" align="left">
                               <input type="button" value="提交" onclick="c()"/>&nbsp; 
                               <input type="reset" value="重置"/>&nbsp;
                            </td>
                        </tr>
                     </table>
            </form>
   </body>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
        <meta http-equiv="description" content="This is my page" />

        <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
        
        <script language="javascript">
           function touziDel(id)
           {
               if(confirm('您确定删除吗?'))
               {
                   window.location.href="<%=path %>/touziDel.action?id="+id;
               }
           }
           
           function touziAdd()
           {
                 var url="<%=path %>/auser/touzi/touziAdd.jsp";
                 window.location.href=url;
           }
       </script>
    </head>

    <body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
                <tr bgcolor="#E7E7E7">
                    <td height="14" colspan="25" background="<%=path %>/images/tbg.gif">&nbsp;投资信息管理&nbsp;</td>
                </tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="5%">序号</td>
                    <td width="10%">投资项目</td>
                    <td width="10%">投资本金</td>
                    <td width="10%">投资时间</td>
                    <td width="10%">收益时间</td>
                    <td width="10%">收益情况</td>
                    <td width="10%">操作</td>
                </tr>    
                <s:iterator value="#request.touziList" id="touzi" status="ss">
                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#ss.index+1"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                        <s:property value="#touzi.xangmu"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#touzi.benjin"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#touzi.kaishi"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#touzi.jiehsu"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <s:property value="#touzi.shouyi" escape="false"/>
                    </td>
                    <td bgcolor="#FFFFFF" align="center">
                       <a href="#" onclick="touziDel(<s:property value="#touzi.id"/>)" class="pn-loperator">删除</a>
                    </td>
                </tr>
                </s:iterator>
            </table>
            
            <table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
              <tr>
                <td>
                  <input type="button" value="添加" style="width: 80px;" onclick="touziAdd()" />
                </td>
              </tr>
            </table>
    </body>
</html>

    xiaofei文件:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <style>
    body
    {
      scrollbar-base-color:#C0D586;
      scrollbar-arrow-color:#FFFFFF;
      scrollbar-shadow-color:DEEFC6;
    }
    </style>
  </head>
  <frameset rows="60,*" cols="*" frameborder="no" border="0" framespacing="0">
      <frame src="<%=path %>/auser/top.jsp" name="topFrame" scrolling="no">
      <frameset cols="180,*" name="btFrame" frameborder="NO" border="0" framespacing="0">
        <frame src="<%=path %>/auser/menu.jsp" noresize name="menu" scrolling="yes">
        <frame src="<%=path %>/auser/index/sysPro.jsp" noresize name="main" scrolling="yes">
      </frameset>
  </frameset>
  <noframes>
      <body>您的浏览器不支持框架!</body>
  </noframes>
</html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'menu.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" href="<%=path %>/css/base.css" type="text/css" />
    <link rel="stylesheet" href="<%=path %>/css/menu.css" type="text/css" />
    <style type="text/css">
        div {
            padding:0px;
            margin:0px;
        }
        
        body {
         scrollbar-base-color:#bae87c;
         scrollbar-arrow-color:#FFFFFF;
         scrollbar-shadow-color:#c1ea8b;
         padding:0px;
         margin:auto;
         text-align:center;
         background-color:#9ad075;
        }
        
        dl.bitem {
            width:148px;
            margin:0px 0px 5px 4px;
        }
        
        dl.bitem dt {
          background:url(<%=path %>/img/menubg.gif);
          height:26px;
          line-height:26px;
          text-align:center;
          cursor:pointer;
        }
        
        dl.bitem dd {
          padding:3px 3px 3px 3px;
          background-color:#fff;
        }
        
        .fllct
        {
            float:left;
            
            width:90px;
        }
        
        .flrct
        {
            padding-top:3px;
            float:left;
        }
        
        div.items
        {
            line-height:22px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 9px;
        }
        
        span.items
        {
            padding:10px 0px 10px 22px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 12px;
        }
        
        ul {
          padding-top:3px;
        }
        
        li {
          height:22px;
        }
        
        .sitemu li {
            padding:0px 0px 0px 22px;
            line-height:24px;
            background:url(<%=path %>/img/arr4.gif) no-repeat 10px 9px;
        }
    </style>
    <script language='javascript'>var curopenItem = '1';</script>
    <script language="javascript" type="text/javascript" src="<%=path %>/js/menu.js"></script>
    <base target="main" />
  </head>
  
  <body target="main">
    <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'>
      <tr>
        <td style='padding-left:3px;padding-top:8px' valign="top">
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>修改个人信息</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/auser/userinfo/userPw.jsp' target='main'>修改个人信息</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>收入信息管理</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/auser/shouru/shouruAdd.jsp' target='main'>收入信息添加</a> </li>
                <li><a href='<%=path %>/shouruMana.action' target='main'>收入信息管理</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>消费信息管理</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/auser/xiaofei/xiaofeiAdd.jsp' target='main'>消费信息添加</a> </li>
                <li><a href='<%=path %>/xiaofeiMana.action' target='main'>消费信息管理</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>投资信息管理</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/auser/touzi/touziAdd.jsp' target='main'>投资信息添加</a> </li>
                <li><a href='<%=path %>/touziMana.action' target='main'>投资信息管理</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>统计分析模块</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/tongji_meiri.action' target='main'>每日统计分析</a> </li>
                <li><a href='<%=path %>/tongji_meiyue.action' target='main'>每月统计分析</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items1_1")'><b>理财日志模块</b></dt>
            <dd style='display:block' class='sitem' id='items1_1'>
              <ul class='sitemu'>
                <li><a href='<%=path %>/auser/rizhi/rizhiAdd.jsp' target='main'>理财日志添加</a> </li>
                <li><a href='<%=path %>/rizhiMana.action' target='main'>理财日志管理</a> </li>
              </ul>
            </dd>
          </dl>
          <dl class='bitem'>
            <dt onClick='showHide("items99_1")'><b>安全退出系统</b></dt>
            <dd style='display:block' class='sitem' id='items99_1'>
              <ul class='sitemu'>
                <li><a href='#' onclick='javascript:window.parent.location="<%=path %>/login.jsp"'>安全退出系统</a></li>
              </ul>
            </dd>
          </dl>
        </td>
      </tr>
    </table>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="<%=path %>/css/base.css" rel="stylesheet" type="text/css">
    <script language='javascript'>
        var preFrameW = '206,*';
        var FrameHide = 0;
        var curStyle = 1;
        var totalItem = 9;
        function ChangeMenu(way){
            var addwidth = 10;
            var fcol = top.document.all.btFrame.cols;
            if(way==1) addwidth = 10;
            else if(way==-1) addwidth = -10;
            else if(way==0){
                if(FrameHide == 0){
                    preFrameW = top.document.all.btFrame.cols;
                    top.document.all.btFrame.cols = '0,*';
                    FrameHide = 1;
                    return;
                }else{
                    top.document.all.btFrame.cols = preFrameW;
                    FrameHide = 0;
                    return;
                }
            }
            fcols = fcol.split(',');
            fcols[0] = parseInt(fcols[0]) + addwidth;
            top.document.all.btFrame.cols = fcols[0]+',*';
        }
        
        function logout()
        {
           if(confirm("确定要退出本系统吗??"))
           {
               window.parent.location="<%=path %>/login.jsp";
           }
        }
    </script>
  </head>
  
  <body bgColor='#ffffff' style="margin: 0;padding: 0">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="<%=path %>/img/topbg.gif">
      <tr>
        <td width='50%' height="60" style="font-size:26px; font-weight: bold;">&nbsp;&nbsp;基于web的家庭理财系统</td>
        <td width='50%' align="right">
            <table width="550" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td align="right" height="26" style="padding-right:10px;line-height:26px;font-size:17px">
                        <font style="font-size:16px; font-weight: bold;">
                            您好:<s:property value="#session.user.userName"/>&nbsp;&nbsp;&nbsp;&nbsp;
                        </font>
                        <!--  [<a href="" target="_blank">网站主页</a>]-->
                        
                        [<a href="#" onclick="logout()">注销退出</a>]
                        [<a href="javascript:ChangeMenu(0);">显示主框架</a>]
                  </td>
              </tr>
            </table>
        </td>
      </tr>
    </table>
  </body>
</html>

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.text.SimpleDateFormat"/>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %>


<%
String path = request.getContextPath();
%>


<!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>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />

<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type="text/javascript" src="<%=path %>/My97DatePicker/WdatePicker.js"></script>
<script language="javascript">
function c()
{
if(document.formPw.shijian.value=="")
{
alert("请输入时间");
return false;
}

if(document.formPw.jine.value=="")
{
alert("请金额");
return false;
}

document.formPw.submit();
}
</script>
</head>


<body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'>
<form method="post" action="<%=path %>/xiaofeiAdd.action" name="formPw">
<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
<tr bgcolor="#EEF4EA">
<td colspan="3" background="<%=path %>/images/wbg.gif" class='title'><span>消费信息管理</span></td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
时间:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input name="shijian" value="<%=new SimpleDateFormat("yyyy-MM-dd").format(new Date())%>" class="Wdate" readonly="readonly" type="text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
金额:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" value="0.0" name="jine" size="22" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
成员:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="radio" name="chengyuan" value="本人" checked="checked" style="border: 0px;"/>本人&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="chengyuan" value="配偶" style="border: 0px;"/>配偶&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="chengyuan" value="爸爸" style="border: 0px;"/>爸爸&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="chengyuan" value="妈妈" style="border: 0px;"/>妈妈&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="chengyuan" value="子女" style="border: 0px;"/>子女&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类型:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="leixing" size="22"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
备注:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<textarea rows="4" cols="30" name="beizhu"></textarea>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="button" value="提交" onclick="c()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!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>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />

<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />

<script language="javascript">
function xiaofeiDel(id)
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/xiaofeiDel.action?id="+id;
}
}

function xiaofeiAdd()
{
var url="<%=path %>/auser/xiaofei/xiaofeiAdd.jsp";
window.location.href=url;
}
</script>
</head>

<body leftmargin="2" topmargin="2" background='<%=path %>/images/allbg.gif'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
<td height="14" colspan="25" background="<%=path %>/images/tbg.gif">&nbsp;消费信息管理&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="5%">序号</td>
<td width="10%">时间</td>
<td width="10%">金额</td>
<td width="10%">成员</td>
<td width="10%">类型</td>
<td width="10%">备注</td>
<td width="10%">操作</td>
</tr>
<s:iterator value="#request.xiaofeiList" id="xiaofei" status="ss">
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td bgcolor="#FFFFFF" align="center">
<s:property value="#ss.index+1"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<s:property value="#xiaofei.shijian"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<s:property value="#xiaofei.jine"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<s:property value="#xiaofei.chengyuan"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<s:property value="#xiaofei.leixing"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<s:property value="#xiaofei.beizhu" escape="false"/>
</td>
<td bgcolor="#FFFFFF" align="center">
<a href="#" onclick="xiaofeiDel(<s:property value="#xiaofei.id"/>)" class="pn-loperator">删除</a>
</td>
</tr>
</s:iterator>
</table>

<table width='98%' border='0'style="margin-top:8px;margin-left: 5px;">
<tr>
<td>
<input type="button" value="添加" style="width: 80px;" onclick="xiaofeiAdd()" />
</td>
</tr>
</table>
</body>
</html>

 

    common文件:

<%@ page language="java" 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 HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'msg.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->

  </head>
  
  <body>
      <center>
         <s:property value="#request.msg"/>
      </center>
  </body>
</html>
<%@ page language="java"  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 HTML 4.01 Transitional//EN">
<html>
  <head>
       <script type="text/javascript">
           <s:if test="message!=null">
               alert("<s:property value='message'/>");
           </s:if>
           
           <s:if test="path!=null">
              document.location.href="<%=path%>/<s:property value='path'/>";
           </s:if>
       </script>
  </head>
  
  <body>
       
  </body>
</html>

 

css文件:

* {
    font-size: 12px;
    font-family: "����";
}

td { line-height: 1.5; }

body {
  font-size: 12px;
  line-height: 1.5;
  font-family: "����";
}

form,h1,h2,h3,ul,ol,div{    margin: 0; padding:0;}

td,th,div {
    word-break:break-all;
    word-wrap:break-word;
}

b,strong {
    color:#666600;
}

li,dd {
  list-style-type:none; margin:0px; padding:0px; 
}

input[type=button]{
 background-color: #F1F8B4;
}

h1 { color:#171B16; font-size:130%; font-weight:bold; }
h2 { color:#171B16; font-size:115%; font-weight:bold; }
h3 { color:#171B16; font-size:100%; font-weight:bold;}

a:link { font-size: 9pt; color: #000000; text-decoration: none; font-family: ""����""; }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none; font-family: ""����""; }
a:hover {color: red; font-family: ""����"";}
a img { border-style:none; }

b a {
    color:#666600;
}
strong a {
    color:#666600;
}

a b{
    color:#666600;
}
a strong{
    color:#666600;
}

input { border: 1px solid #ababab; }

.pubinputs {
    height: 22px;
  width:250px;
    padding:4px 3px 2px 3px;
    border-width:1px;
    border-style:solid;
    border-color:#999999 #dddddd #dddddd #999999;
}

.iptxt {
    height:22px;
    padding:4px 3px 2px 3px;
    border-width:1px;
    border-style:solid;
    border-color:#999999 #dddddd #dddddd #999999;
}

.alltxt {
    padding:4px 3px 2px 3px;
    border-width:1px;
    border-style:solid;
    border-color:#999999 #dddddd #dddddd #999999;
}

.pubinput {
    height: 24px;
    width:250px;
    padding-top:3px;
    padding-bottom:0px;
}
.pubinputl {
    height: 24px;
    width:350px;
    padding-top:3px;
    padding-bottom:0px;
}

.np {
    border:none;
}

.linerow{border-bottom: 1px solid #ACACAC;}

.coolbg {
  border-right: 1px solid #ACACAC;
  border-bottom: 1px solid #ACACAC;
  background-color: #F1F8B4;
  padding:2px;
  padding-right:5px;
  padding-left:5px;
  background: url(allbtbg2.gif) #EFF7D0;
  cursor:pointer;
}

.coolbg2 {
  border: 1px solid #000000;
  background-color: #DFDDD2;
  height:18px
}

.ll {
  border-right: 2px solid #ACACAC;
  border-bottom: 2px solid #ACACAC;
  background-color: #E6E6E6
}

.bline {border-bottom: 1px dotted #BCBCBC; height:28px; background-color: #FFFFFF;}
#uploadfield{float:left;}
.bline2 {border-bottom: 1px solid #BCBCBC;}

.coolbt {
  border-left: 1px solid #EFEFEF;
  border-top: 1px solid #EFEFEF;
  border-right: 1px solid #ACACAC;
  border-bottom: 1px solid #ACACAC;
  background-color: #E4F7D7;
  cursor:pointer;
}

.coolbt2 {
  border-left: 1px solid #EFEFEF;
  border-top: 1px solid #EFEFEF;
  border-right: 1px solid #ACACAC;
  border-bottom: 1px solid #ACACAC;
  background-color: #F7FCDA
}

.coolbg3 {
  border: 1px solid #BDC5B4;
  background-color: #DFDDD2;
  height:20px;
  width:140px;
  text-align:right;
}

.coolbg61 {
    line-height:26px;
    width:380px;
    border-top:1px solid #BDC5B4;
    border-left:1px solid #BDC5B4;
    border-right:1px solid #BDC5B4;
    height:26px;
    text-align:right;
    background-color: #E7F3B1;
}

.coolbg62 {
  border: 1px solid #BDC5B4;
  background-color: #F8FDF0;
  height:300px;
  width:380px;
  padding:5px;
}

.coolbg4 {
  border-bottom: 1px solid #C9CFC1;
  background-color: #EDEBE5;
  height:20px;
  width:190px;
  text-align:right;
}

.coolbg5 {
  border-top: 1px solid #BDC5B4;
  background-color: #EDEBE5;
  font-size:1pt;
  height:6px;
  width:190px;
}

.dlg {
  border: 2px solid #749F4D;
  background-color: #F0FAEB;
  padding: 2px;
  width: 360px;
  line-height:160%;
}

.dlgws {
  border: 2px solid #749F4D;
  background-color: #F0FAEB;
  padding: 2px;
  width: 280px;
  line-height:160%;
}
.dlgws div {
  width: 100%;
}

.dlgTesttitle {
  border: 2px solid #749F4D;
  background-color: #F0FAEB;
  padding: 2px;
  width: 200px;
  line-height:150%;
}

#_mysource{ z-index:5000; }
#_mywriter{ z-index:6000; }

.option1{ background-color: #DCECA6; }
.option2{ background-color: #F7FBD2; }
.option3{ background-color: #FFFFFF; }

.ininput{
width:96%;
height:20px;
border:1px solid #ffffff;
}

.nbt{ 
  padding: 1px;
  background-image:url('allbtbg.gif');
  background-color:#ffffff;
  border:1px solid #A5AF83;
}

.tdt{
  padding-left: 6px;
}

.waitpage
{
  top:0;
  left:0;
  filter:Alpha(opacity=70);
  -moz-opacity:0.7;
  position:absolute;
  z-index:10000;
}

.divpre
{
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}

.autoinput {
    padding-left:3px;
    width:90%;
    height:22px
}

.bodytitle
{
  margin:auto;
  height:28px;
  border:1px dotted #BFD67C;
  background:url('wbg.gif');
  margin-bottom:6px;
  width:98%;
  font-weight:bold;
}
.bodytitle div 
{
  float:left
}
.bodytitletxt
{
  padding-left:6px;
  line-height:28px;
}
.tbtitle td{ padding:3px; }

.tblist td{
    background:#FFFFFF;
    padding:6px;
}
.tblist td.tbsname{
    background:#F9FFE6;
    padding:6px;
}
BODY {
    PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 2px
}
FORM {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
UL {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
LI {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
P {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
DL {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
DD {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
DT {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
h {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
TD {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
TH {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
H3 {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
LI {
    LIST-STYLE-TYPE: none
}
UL {
    LIST-STYLE-TYPE: none
}
TD {
    VERTICAL-ALIGN: top; COLOR: #333333
}
INPUT {
    BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid
}
TEXTAREA {
    BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid
}
.wrap {
    MARGIN: auto; WIDTH: 950px
}
#banner_ad {
    MARGIN-TOP: 5px
}
A {
    FONT-SIZE: 12px
}
A:link {
    COLOR: #333333; TEXT-DECORATION: none
}
A:visited {
    COLOR: #333333; TEXT-DECORATION: none
}
A:hover {
    COLOR: #4e667b; TEXT-DECORATION: underline
}
A:active {
    TEXT-DECORATION: none
}
#toplogin {
    BACKGROUND: #e3f5fc; HEIGHT: 20px
}
#toplogin .jstime {
    MARGIN-TOP: 5px; MARGIN-RIGHT: 5px
}
#toplogin INPUT.login_name {
    WIDTH: 90px; HEIGHT: 15px
}
#toplogin INPUT.login_pwd {
    WIDTH: 90px; HEIGHT: 15px
}
#toplogin INPUT.login_sub {
    BACKGROUND: #d2e4fc; WIDTH: 40px; HEIGHT: 19px
}
#header DIV {
    FLOAT: left
}
#header DIV.ad {
    FLOAT: center
}
#header {
    BORDER-TOP: #ccc 1px solid; MARGIN-BOTTOM: 10px
}
#header TD {
    PADDING-TOP: 8px
}
#guide {
    BORDER-TOP: #6b92d6 1px solid; MARGIN-TOP: 5px; BACKGROUND: url(/qianhoutai1/img/head1.gif) #d2e4fc; BORDER-BOTTOM: #a7cafa 1px solid; HEIGHT: 28px
}
#guide TD {
    BORDER-RIGHT: #fff 0px solid; PADDING-RIGHT: 3px; BORDER-TOP: #fff 1px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 4px; BORDER-LEFT: #fff 0px solid; PADDING-TOP: 6px; BORDER-BOTTOM: #fff 1px solid
}
#guide2 {
    BACKGROUND: #f5fafe; BORDER-BOTTOM: #a7cafa 1px solid; HEIGHT: 24px
}
#guide2 TD {
    PADDING-LEFT: 2px; PADDING-TOP: 6px
}
.chooseGuide {
    BORDER-BOTTOM: #333 1px dotted
}
.MainTable .guide {
    BORDER-RIGHT: #a7cafa 1px solid; BORDER-TOP: #a7cafa 1px solid; MARGIN-TOP: 5px; BACKGROUND: url() #f5fafe; BORDER-LEFT: #a7cafa 1px solid; BORDER-BOTTOM: #a7cafa 1px solid; HEIGHT: 20px
}
.MainTable .guide TD {
    PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px
}
.dragTable {
    BORDER-RIGHT: #a7cafa 1px solid; BORDER-TOP: #a7cafa 1px solid; MARGIN-TOP: 5px; BORDER-LEFT: #a7cafa 1px solid; WIDTH: 100%; BORDER-BOTTOM: #a7cafa 1px solid
}
.dragTable .head {
    BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #fff 1px solid; PADDING-LEFT: 1.8em; BACKGROUND: url(/qianhoutai1/img/head1.gif); BORDER-LEFT: #fff 1px solid; PADDING-TOP: 7px; BORDER-BOTTOM: #fff 1px solid; HEIGHT: 20px
}
.dragTable .TAG {
    FONT-WEIGHT: bold; FLOAT: left; COLOR: #000066;
}
.dragTable .TAG2 {
    FONT-WEIGHT: bold; FLOAT: left; COLOR: #EC3A06
}
.dragTable .TAG A {
    COLOR: #000066
}
.dragTable .more A {
    COLOR: #000066; MARGIN-RIGHT: 1em
}
.MainTable {
    MARGIN-TOP: 5px
}
.MainTable .Side .dragTable {
    WIDTH: 100%
}
.MainTable .Side .dragTable .middle {
    
}
.dragTable .middle {
    PADDING-RIGHT: 1px; PADDING-LEFT: 7px; PADDING-BOTTOM: 4px; LINE-HEIGHT: 20px; PADDING-TOP: 6px; HEIGHT: 50px
}
.MainTable .Side .dragTable .middle UL LI {
    OVERFLOW: hidden; WIDTH: 210px; WHITE-SPACE: nowrap; TEXT-OVERFLOW: ellipsis
}
.MainTable .Side .dragTable .middle UL LI A {
    DISPLAY: block; BACKGROUND: url() no-repeat left 50%; MARGIN-LEFT: 4px; TEXT-INDENT: 0.6em
}
#AutoRows .dragTable .middle {
    PADDING-BOTTOM: 0px; PADDING-TOP: 0px; HEIGHT: 100px
}
#AutoRows .dragTable UL LI {
    DISPLAY: block; BACKGROUND: url() no-repeat 0px 40%; TEXT-INDENT: 0.6em; LINE-HEIGHT: 18px
}
#AutoRows .dragTable .list_title {
    BACKGROUND: url() no-repeat 0px 40%; TEXT-INDENT: 0.6em; LINE-HEIGHT: 18px
}
.listpic {
    PADDING-RIGHT: 0px; PADDING-LEFT: 4px; FLOAT: left; PADDING-BOTTOM: 3px; WIDTH: 127px; PADDING-TOP: 3px
}
.listpic .title {
    OVERFLOW: hidden; WIDTH: 127px; WHITE-SPACE: nowrap; TEXT-OVERFLOW: ellipsis; TEXT-ALIGN: center
}
.listpic IMG {
    BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #fff 1px solid; BORDER-LEFT: #fff 1px solid; WIDTH: 120px; BORDER-BOTTOM: #fff 1px solid; HEIGHT: 90px
}
.listpic .img A {
    BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; DISPLAY: block; MARGIN-BOTTOM: 5px; BORDER-LEFT: #ccc 1px solid; WIDTH: 120px; BORDER-BOTTOM: #ccc 1px solid; HEIGHT: 90px; TEXT-ALIGN: center
}
.listarticle TD {
    PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 7px; BORDER-BOTTOM: #ccc 1px dashed
}
.listarticle SPAN {
    DISPLAY: block; FLOAT: left
}
.listarticle SPAN.title {
    BACKGROUND: url() no-repeat 0em 40%; TEXT-INDENT: 0.6em
}
.listarticle SPAN.time {
    FLOAT: right
}
.page {
    CLEAR: both; MARGIN-TOP: 1em; WIDTH: 98%
}
.page A {
    BORDER-RIGHT: #ccc 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #ccc 1px solid; DISPLAY: block; PADDING-LEFT: 4px; FLOAT: left; PADDING-BOTTOM: 1px; BORDER-LEFT: #ccc 1px solid; MARGIN-RIGHT: 3px; PADDING-TOP: 2px; BORDER-BOTTOM: #ccc 1px solid
}
.content_word {
    FONT-SIZE: 15px
}
.content_word P {
    FONT-SIZE: 15px
}
.ListPhoto UL {
    DISPLAY: block; MARGIN: 8px 8px 0px 10px; WIDTH: 96%; BORDER-BOTTOM: #ccc 1px dotted; HEIGHT: 100px
}
.ListPhoto UL LI {
    DISPLAY: block; FLOAT: left
}
.ListPhoto UL LI.img {
    BORDER-RIGHT: #ccc 1px dotted; WIDTH: 130px
}
.ListPhoto UL LI.img IMG {
    BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid
}
.ListPhoto UL LI.img A {
    BORDER-RIGHT: #333 1px solid; BORDER-TOP: #333 1px solid; DISPLAY: block; BACKGROUND: #eee; BORDER-LEFT: #333 1px solid; WIDTH: 120px; BORDER-BOTTOM: #333 1px solid; HEIGHT: 90px; TEXT-ALIGN: center
}
.ListPhoto UL LI.word {
    MARGIN-LEFT: 1em
}
.ListPhoto UL LI.word SPAN {
    DISPLAY: block
}
.ListPhoto UL LI.word SPAN.title A {
    FONT-WEIGHT: bold
}
#comment .content {
    BORDER-RIGHT: #ddd 1px dotted; BORDER-TOP: #ddd 1px dotted; MARGIN-BOTTOM: 10px; BORDER-LEFT: #ddd 1px dotted; BORDER-BOTTOM: #ddd 1px dotted
}
#comment .content .word {
    PADDING-LEFT: 5px; BORDER-BOTTOM: #ddd 1px solid; HEIGHT: 50px
}
#comment .content .img {
    BORDER-RIGHT: #ddd 1px dotted; PADDING-RIGHT: 1em; PADDING-LEFT: 1em; PADDING-BOTTOM: 1em; PADDING-TOP: 1em
}
#comment .content .info {
    PADDING-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 2px
}
.guestbook {
    BORDER-RIGHT: #a7cafa 1px dotted; BORDER-TOP: #a7cafa 1px dotted; MARGIN-BOTTOM: 4px; BORDER-LEFT: #a7cafa 1px dotted; BORDER-BOTTOM: #a7cafa 1px dotted
}
.guestbook .Ftd {
    BORDER-RIGHT: #a7cafa 1px dotted; PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px
}
.guestbook .Atd {
    BORDER-TOP: #d2e4fc 1px solid; PADDING-LEFT: 4px
}
.guestbook .Ctd {
    PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px
}
#footer {
    BORDER-TOP: #cbcbcb 1px solid; MARGIN-TOP: 4px
}
#footer TD {
    PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 1em; PADDING-TOP: 1em
}
.Space {
    MARGIN-TOP: 4px; BACKGROUND: url(); HEIGHT: 23px
}
.Space .L {
    PADDING-RIGHT: 0px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; COLOR: #fff; PADDING-TOP: 5px
}
.Space .L {
    FLOAT: left
}
.Space .R {
    PADDING-RIGHT: 5px; PADDING-LEFT: 0px; FLOAT: right; PADDING-BOTTOM: 0px; PADDING-TOP: 5px
}
#AjaxEditTable {
    BORDER-RIGHT: #beddff 1px solid; BORDER-TOP: #beddff 1px solid; BACKGROUND: #fff; BORDER-LEFT: #beddff 1px solid; BORDER-BOTTOM: #beddff 1px solid
}
#AjaxEditTable .head {
    PADDING-RIGHT: 5px; PADDING-LEFT: 7px; BACKGROUND: #dbeaff; PADDING-BOTTOM: 0px; PADDING-TOP: 3px; BORDER-BOTTOM: #beddff 1px solid; HEIGHT: 21px
}
#AjaxEditTable .head A {
    COLOR: #fff
}
#AjaxEditTable .head SPAN {
    DISPLAY: block; FLOAT: right
}
#AjaxEditTable .middle {
    PADDING-RIGHT: 5px; PADDING-LEFT: 5px; BACKGROUND: #fff; PADDING-BOTTOM: 5px; LINE-HEIGHT: 18px; PADDING-TOP: 5px
}
#AjaxEditTable .middle INPUT {
    BORDER-RIGHT: #beddff 1px solid; BORDER-TOP: #beddff 1px solid; BACKGROUND: #fff; BORDER-LEFT: #beddff 1px solid; BORDER-BOTTOM: #beddff 1px solid
}
#AjaxEditTable .middle TEXTAREA {
    BORDER-RIGHT: #beddff 1px solid; BORDER-TOP: #beddff 1px solid; BACKGROUND: #fff; BORDER-LEFT: #beddff 1px solid; BORDER-BOTTOM: #beddff 1px solid
}
.showsortname {
    PADDING-LEFT: 0.3em; FONT-WEIGHT: bold; BACKGROUND: url() no-repeat 0.3em 0px; FLOAT: left; TEXT-INDENT: 1.5em
}
.list_sortTCP {
    MARGIN-BOTTOM: 12px; WIDTH: 99%
}
.list_sortTCP .pic {
    PADDING-RIGHT: 1em
}
.list_sortTCP .content {
    TEXT-INDENT: 2em; BORDER-BOTTOM: #ccc 1px dotted
}
.list_sortTC {
    MARGIN-BOTTOM: 5px; WIDTH: 99%; BORDER-BOTTOM: #ccc 1px dotted
}
.list_sortTC .content {
    TEXT-INDENT: 2em
}
#menuTable {
    BORDER-RIGHT: #a7cafa 1px solid; BORDER-TOP: #a7cafa 1px solid; BACKGROUND: #f5fcfe; FILTER: Alpha(Opacity=80); BORDER-LEFT: #a7cafa 1px solid; BORDER-BOTTOM: #a7cafa 1px solid
}
#menuTable TD {
    PADDING-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-BOTTOM: 3px; LINE-HEIGHT: 15px; PADDING-TOP: 3px
}
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landr�               |
|--------------------------------------------------*/

.dtree {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}
.dtree img {
    border: 0px;
    vertical-align: middle;
}
.dtree a {
    color: #333;
    text-decoration: none;
}
.dtree a.node, .dtree a.nodeSel {
    white-space: nowrap;
    padding: 1px 2px 1px 2px;
}
.dtree a.node:hover, .dtree a.nodeSel:hover {
    color: #333;
    text-decoration: underline;
}
.dtree a.nodeSel {
    background-color: #c0d2ec;
}
.dtree .clip {
    overflow: hidden;
}
.img-vm{vertical-align:middle}
.f-right{float:right}
.f-left{float:left}
.clear{clear:both}
.p2-crr{color:#FF0000;font-weight:bold;}

.pg-3{font-size:12px;font-family:Verdana;margin:5px auto;padding:3px;text-align:center;}
.pg-3 a,.total{border:#eee 1px solid; padding:2px 5px; margin:2px; color:#036cb4; text-decoration:none;}
.pg-3 a:hover{border:#999 1px solid; color:#666;}
.pg-3 a:active{border:#999 1px solid; color: #666;}
.pg-3 .current{border:#036cb4 1px solid; padding:2px 5px; font-weight:bold; margin:2px; color:#fff; background:#036cb4;}
.pg-3 .disabled{border:#eee 1px solid; padding:2px 5px; margin:2px; color:#ddd;}

.pg-4{font-size:12px;font-family:Verdana;margin:5px auto;padding:3px;text-align:right;}
.pg-4 a,.count{border: #ddd 1px solid; padding:2px 5px; color: #88af3f; margin-right: 2px; text-decoration: none;}    
.pg-4 a:hover{border: #85bd1e 1px solid; color: #638425; background-color: #f1ffd6;}    
.pg-4 a:active{border:#85bd1e 1px solid; color: #638425; background-color: #f1ffd6;}
.pg-4 .current{border:#b2e05d 1px solid; padding:2px 5px; font-weight:bold; color:#fff; margin-right:2px; background:#b2e05d;}
.pg-4 .disabled{border:#f3f3f3 1px solid; padding:2px 5px; color: #ccc; margin-right:2px;}

.c1-bline{border-bottom:#999 1px dashed;border-top:1px;}

label.error{background:url(img/unchecked.gif) no-repeat 0px 0px;padding-left:16px;margin-left:3px;}
label.success{background:url(img/checked.gif) no-repeat 0px 0px;padding-left:16px;margin-left:3px;}

.j-chkcode{position:absolute;display:none;top:50px;left:50px;z-index:100;border:1px solid #999999;background-color:#FFFFFF;}
.j-chkcode img{cursor:pointer}
.top {overflow:hidden; height:6px;}
.cbody {padding:6px; margin: 0px auto; width:953px; background-color:#ffffff;}
.toplogo {width:200px; margin-top:14px; float:left;}
.topbanner {margin-top:18px; float:left; margin-left:20px; width:530px; color:#ffffff;}
.toplink {margin-top:25px; float:left; margin-left:40px; width:160px}
.toplink ul li {width:80px; line-height:24px; height:24px; text-align:center; float:left;}

.btn_1{border:#ccc 1px solid; background-color:#FFFFFF; font-size:12px; height:22px; line-height:22px;}


.topmenu {background: url(../img/topmenu_bg.gif) #d10e00 repeat-x left top; height: 35px;}
.cbody1 {margin: 0px auto; width: 966px; background-color: #ffffff;}
.topmenu ul {font-weight: bold; margin: 0px auto; overflow: hidden; width: 100%; height: 35px;}
.topmenu ul li {background: url(../img/topmenu_bg.gif) no-repeat left bottom; float: left; margin-left: -2px; text-align: center;}
.topmenu ul li a {padding-right: 12px; display: block; PADDING-LEFT: 14px; float: left; color: #ffffff; LINE-height: 37px; height: 35px; text-decoration:none;}
.topmenu ul li a:hover {background: url(../img/topmenu_o.gif) no-repeat center bottom; color: #cccccc; text-decoration:none;}
.topmenu ul li a.thisclass {background: url(../img/topmenu_o.gif) no-repeat center bottom; color: #ffff00;}


.topsearch{height:37px;    width:966px; margin-top:3px; border-right:1px solid #EEE; background:url(../img/topsearch_bg.gif) repeat-x; overflow:hidden; margin:0px auto;}
.topsearch .title{height:37px;width:83px;float:left;background:url(../img/topsearch_title.gif) left center no-repeat;}
#page_search_left{width:220px;float:left; text-align:center;padding-top:8px;}
#page_search_btn{width:80px;float:left;padding-top:8px;}
#page_search_right{width:170px; height:33px;line-height:33px; float:right; text-align:center;}
.topsearch .inputText{height:16px;width:200px;border-width:1px;border-style:solid;border-color:#808080 #D4D0C8 #D4D0C8 #808080;}
.topsearch .hots{height:33px;line-height:33px;float:left;}


.page_row{width:950px; padding:8px !important;  padding:8px 8px 0px 8px; margin:0px auto; margin-top:5px; background-color:#ffffff;}
#jdt {float:left;}

.list{border:#cccccc 1px solid;}
.list_bar{height:28px; line-height:28px; background-image:url(../img/title-bg.gif); color:#d14500; text-indent:10px;}
.list_content{text-align:center; padding:6px;}

.hot_news{width:414px; float:right;}

.tbtn1 {border:#ccc 1px solid;}
.cmd_news{width:260px; float:right;}
.tbtncon {background:url(../img/title_bg1.gif); height:29px;}
.tbtncon li {border-right:#ccc 1px solid; display:block; float:left; width: 80px; cursor:pointer; color:#333333; line-height:28px; height:28px; text-align:center; text-decoration:none;}
.tbtncon li:hover {text-decoration:none;}
.tbtncon li.curr {background: #fff; border-bottom:1px #fff solid; cursor:pointer; color: #d14500;}

.normaltab{border-right:#ccc 1px solid; display:block; float:left; width: 80px; cursor:pointer; color:#333333; line-height:28px; height:28px; text-align:center; text-decoration:none;}
.dis{display:block;}
.undis{display:none;}


.left{float:left;}
.right{float:right;}
.run_news{width:830px; height:25px; line-height:25px;}

.page_main_msg{width:650px;}
.left_row{margin-bottom:5px;}
.pic_news{width:678px;}
#tw{padding:5px !important; padding:5px 5px 0px 5px;}
#tw img{border:1px solid #ccc; padding:3px;}

.cycle_news_row{width:688px; margin-bottom:5px; text-align:center;}
.cycle_news{width:334px; float:left; text-align:left;margin-right: 6px; margin-bottom: 4px; margin-top: 4px;}

.page_other_msg{width:260px;}
.right_row{margin-bottom:5px;}

.page_nav{width:100%; height:28px; line-height:28px; background-image:url(../img/title-bg.gif); color:#d14500; text-indent:10px;}


.ctitle {margin:0px 8px; border-bottom:#cc0000 2px solid;}
.ctitle1 {font-size:20px; color:#26519d; line-height:60px; font-family:����; height:60px; text-align:center;}
.ctitleinfo {margin:0px 8px; color:#999999; line-height:30px; border-bottom:#cccccc 1px solid; height:30px; text-align:center;}
.pbox {font-size:14px; margin:0px auto; overflow:hidden; width:660px; line-height:22px; padding-top:15px; text-align:left;}
.pbox a {color:#009900; text-decoration:underline;}
.pbox img {margin: 5px; WIDTH: expression(this.width > this.height && this.width >650 ? 650 : true); max-width: 650px}

.intr{width:620px; border:#cccccc 1px solid; background-color: #FBFCDC; padding:8px; text-indent:10px; margin:5px auto; line-height:1.6em;}
.intr_front{font-size:14px; font-weight:bold; color:#d14500;}

.page_no {padding-top:10px; text-align:center;}

.page_tag {padding:5px; margin:3px auto; width:650px; line-height:15px; border-bottom:#cccccc 1px solid;}
.pagedownl {font-weight:bold; color:#ff0000; text-decoration:underline;}
.arti_ref{padding:10px 0px; text-align:center; border-bottom:#cc0000 2px solid;}

.comment_item{margin-top:5px; border:1px #ccc solid; padding:2px;}
.comment_bar{height:20px; padding:8px 0px 0px 10px; background-color:#f3f3f3;}
.comment_content{padding:5px;}

.pl_row{width:750px; margin:0px auto;}
.pl_top{border-bottom:2px #FF0000 solid;}
.pl_logo{width:310px; float:left;}
.pl_path{float:left; padding-top:30px;}
.pl_title{height:30px; line-height:30px; font-weight:bold; color:#0000FF; font-size:26px; margin-top:15px;}
.pl_run{height:25px; line-height:25px; border:#cccccc 1px solid;background-color:#F8F7E9; padding:2px; margin-top:10px;}

.pl_list{border:#eee 1px solid; padding:1px; background-color:#EDF0F1; margin-top:8px;}
.pl_bar{height:25px; padding-top:8px; text-indent:10px; font-weight:bold; background-color:#fff;}
.pl_item{width:98%; border-bottom:1px #003399  dashed; margin:5px auto;}
.pl_msg{height:25px; line-height:25px; text-indent:10px; color:#003399;}
.pl_content{padding:5px; line-height:1.8em; word-break:break-all;}
.pl-input{margin-top:8px;}
.pl_foot{height:30px; margin-top:5px; background:url(../img/footbg.gif) repeat-x; border:#eeeeee 1px solid; border-top:0px;line-height:2em; text-align:center; padding-top:20px;}

.msg_title{height:20px; line-height:20px; color:#003399; text-align:left; font-weight:bold;}
.msg_content{line-height:1.8em; word-break:break-all; text-align:left; border-bottom:1px #003399 dashed; text-indent:10px; }


.foot{width:950px; padding:8px; margin:5px auto; background-color:#ffffff;}
.foot_pic{width:210px; padding-top:5px; float:left;}
.foot_msg{width:730px; line-height:1.6em;}
td {
    padding:3px 0px 5px 3px;
}
.title {
    color:#666600;
    font-weight:bold;
}
.title span {
    padding-left:3px;
}
#addTab {
    position:absolute;
    left:455px;
    top:64px;
    width:360px;
    height:180px;
    z-index:2;
    background-color: #FFFFFF;
    border:1px solid #889D8F;
    padding:0px;
    display:none;
}
#editTab {
    position:absolute;
    left:455px;
    top:64px;
    width:360px;
    height:350px;
    z-index:1;
    background-color: #FFFFFF;
    border:1px solid #889D8F;
    padding:0px;
    display:none;
}
.icoitem {
    float:left;
    margin-right:12px;
    height:24px;
    line-height:24px;
}
.ico {
  float:left;
  margin-right:4px;
  padding-top:4px;
}
.txt {
    float:left;
}
.updatedvt {
    height:20px;
    line-height:20px;
    padding-left:3px;
    width:98%;
    border-bottom:1px dashed #dcdcdc;
}
.upinfotitle {
    border-bottom:1px solid #cccccc;
    color:red;
    font-weight:bold;
    line-height:26px;
}
.verline {
    border-bottom:1px dashed #cccccc;
    line-height:26px;
}

#loaddiv
{
  top:0;
  left:0;
  background:#cccccc;
  filter:Alpha(opacity=70);
  -moz-opacity:0.7;
  position:absolute;
  z-index:10000;
  width:100%;
  height:100%;
}
body{margin:0px auto;padding:0px;font-size:12px;font-family:Verdana, Arial, Helvetica, sans-serif; background-color:#d9d9d9}
img{border:0px;}
form{margin:0px;padding:0px;}
ul{margin:0px;padding:0px;}
li{text-align:left;list-style:none;}
a{color:#333333;text-decoration:none;}
a:hover {color: #ff3300;text-decoration:underline}

a.channel{font-weight:bold;}
a.channel:link {color: #ffffff; }
a.channel:visited {color: #ffffff;}
a.channel:hover{color: #ffff00;}
a.channel:active {color: #000000;}

.f12b-white{font-size:12px;color:#ffffff;font-weight:bold;}

.input{border:#ccc 1px solid;background:#ffffff;padding-top:3px;}
A:link {
    FONT-SIZE: 9pt; COLOR: #666666; TEXT-DECORATION: none
}
A:visited {
    FONT-SIZE: 9pt; COLOR: #666666; TEXT-DECORATION: none
}
A:active {
    FONT-SIZE: 9pt; COLOR: #ff9900; TEXT-DECORATION: underline
}
A:hover {
    FONT-SIZE: 9pt; COLOR: #ff9900; TOP: 1px; TEXT-DECORATION: underline
}
A.A1:link {
    FONT-SIZE: 9pt; COLOR: #e0e2e4; TEXT-DECORATION: none
}
A.A1:visited {
    FONT-SIZE: 9px; TEXT-DECORATION: none
}
A.A1:active {
    FONT-SIZE: 9pt; COLOR: #ffcc00; TEXT-DECORATION: underline
}
A.A1:hover {
    FONT-SIZE: 9pt; CURSOR: hand; COLOR: #ffcc00; TOP: 1px; TEXT-DECORATION: underline
}
.tpt {
    FONT-SIZE: 9pt; COLOR: #666666; LINE-HEIGHT: 150%
}
.hand {
    FONT-SIZE: 9pt; CURSOR: hand; LINE-HEIGHT: 130%
}
index1:link {
    FONT-SIZE: 9px; TEXT-DECORATION: none
}
index1:hover {
    FONT-SIZE: 9px; COLOR: #ffcc00; TEXT-DECORATION: underline
}
index1:active {
    FONT-SIZE: 9px; COLOR: #ffcc00; TEXT-DECORATION: none
}
.unnamed1 {
    FONT-SIZE: 9pt; LINE-HEIGHT: 120%
}
.wz2Copy {
    FONT-SIZE: 9pt; COLOR: #ffffff
}
.wz2 {
    FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #666666; TEXT-DECORATION: none
}
.e12 {
    FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; LINE-HEIGHT: normal; FONT-STYLE: normal
}
.f12 {
    FONT-SIZE: 12px; COLOR: #006699; FONT-STYLE: normal
}
.z12 {
    FONT-SIZE: 12px; COLOR: #000000; LINE-HEIGHT: normal; FONT-STYLE: normal
}
.l12 {
    FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #5a5aad
}
.link2 {
    FONT-SIZE: 12px; COLOR: #0066ff
}
.tpt200 {
    FONT-SIZE: 12px; LINE-HEIGHT: 200%; FONT-STYLE: normal; TEXT-DECORATION: none
}
.box {
    BORDER-RIGHT: #003300 1px; PADDING-RIGHT: 0px; BORDER-TOP: #003300 1px; PADDING-LEFT: 0px; Z-INDEX: 1; LEFT: 1px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: #003300 1px; CLIP: ; CURSOR: hand; COLOR: #ffffff; PADDING-TOP: 0px; BORDER-BOTTOM: #000000 1px; POSITION: relative; TOP: 1px; BACKGROUND-COLOR: #cc0000
}
.hand2 {
    FONT-SIZE: 9pt; CURSOR: hand; LINE-HEIGHT: 130%; TEXT-DECORATION: underline
}
.box2 {
    BORDER-RIGHT: #003300 1px; PADDING-RIGHT: 0px; BORDER-TOP: #003300 1px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: #003300 1px; CURSOR: hand; COLOR: #ffffff; PADDING-TOP: 0px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #999900
}
.box3 {
    BORDER-RIGHT: #003300 1px; PADDING-RIGHT: 0px; BORDER-TOP: #003300 1px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: #003300 1px; CURSOR: hand; COLOR: #ffffff; PADDING-TOP: 0px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #0066cc
}
.tptCopy {
    FONT-SIZE: xx-small; COLOR: #666666; LINE-HEIGHT: 150%; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

等等

 

posted on 2019-03-06 21:15  不愧下学  阅读(231)  评论(0编辑  收藏  举报

导航