客户关系管理系统部分代码 网站

本词条由 刘媛媛审核 2020-05-18 13:10 收藏
连接数据库: hibernate-configuration session-factory !-- 数据库驱动 -- property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property !-- 数据库url -- property name=hibernate.connection.urljdbc:mysql:///crm_32/p...

连接数据库:

<hibernate-configuration>
<session-factory>

<!-- 数据库驱动 -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<!-- 数据库url -->
<property name="hibernate.connection.url">jdbc:mysql:///crm_32</property>
<!-- 数据库连接用户名 -->
<property name="hibernate.connection.username">root</property>
<!-- 数据库连接密码 -->
<property name="hibernate.connection.password">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>


<!-- 将hibernate生成的sql语句打印到控制台 -->
<property name="hibernate.show_sql">true</property>
<!-- 将hibernate生成的sql语句格式化(语法缩进) -->
<property name="hibernate.format_sql">true</property>
<!-- 
自动导出表结构. 自动建表
-->
<property name="hibernate.hbm2ddl.auto">update</property>

<!-- 引入实体配置文件 -->
<mapping resource="cn/itcast/domain/Customer.hbm.xml" />
<mapping resource="cn/itcast/domain/LinkMan.hbm.xml" />
<mapping resource="cn/itcast/domain/User.hbm.xml" />

</session-factory>
</hibernate-configuration>

 menu.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD id=Head1>
<TITLE>导航</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>
BODY {
PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px;
MARGIN: 0px;
PADDING-TOP: 0px;
BACKGROUND-COLOR: #2a8dc8
}

BODY {
FONT-SIZE: 11px;
COLOR: #003366;
FONT-FAMILY: Verdana
}

TD {
FONT-SIZE: 11px;
COLOR: #003366;
FONT-FAMILY: Verdana
}

DIV {
FONT-SIZE: 11px;
COLOR: #003366;
FONT-FAMILY: Verdana
}

P {
FONT-SIZE: 11px;
COLOR: #003366;
FONT-FAMILY: Verdana
}

.mainMenu {
FONT-WEIGHT: bold;
FONT-SIZE: 14px;
cursor: pointer;
COLOR: #000000
}

A.style2:link {
PADDING-LEFT: 4px;
COLOR: #0055bb;
TEXT-DECORATION: none
}

A.style2:visited {
PADDING-LEFT: 4px;
COLOR: #0055bb;
TEXT-DECORATION: none
}

A.style2:hover {
PADDING-LEFT: 4px;
COLOR: #ff0000;
TEXT-DECORATION: none
}

A.active {
PADDING-LEFT: 4px;
COLOR: #ff0000;
TEXT-DECORATION: none
}

.span {
COLOR: #ff0000;
}
</STYLE>

<SCRIPT language=javascript>
function MenuDisplay(obj_id) {
for (var i = 1; i <= 9; i++) {
var obj = document.getElementById('table_' + i);
if(obj){
document.getElementById('table_' + i).style.display = 'none';
document.getElementById('table_' + i + 'Span').innerText = '+';
}

}
var obj = document.getElementById(obj_id);
if(obj){
if (obj.style.display == 'none') {
obj.style.display = 'block';
document.getElementById(obj_id + 'Span').innerText = '-';
} else {
obj.style.display = 'none';
document.getElementById(obj_id + 'Span').innerText = '+';
}
}

}
</SCRIPT>

<META content="MSHTML 6.00.2900.3492" name=GENERATOR>
</HEAD>
<BODY>
<FORM id=form1 name=form1 action=YHMenu.aspx method=post>
<TABLE cellSpacing=0 cellPadding=0 width=210 align=center border=0>
<TBODY>
<TR>
<TD width=15><IMG src="images/new_005.jpg" border=0></TD>
<TD align=middle width=180 background=images/new_006.jpg
height=35><B>人力资源 -功能菜单</B></TD>
<TD width=15><IMG src="images/new_007.jpg" border=0></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=210 align=center border=0>
<TBODY>
<TR>
<TD width=15 background=images/new_008.jpg></TD>
<TD vAlign=top width=180 bgColor=#ffffff>
<TABLE cellSpacing=0 cellPadding=3 width=165 align=center border=0>
<TBODY>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_1');"><SPAN
class=span id=table_1Span>+</SPAN> 客户管理</TD>
</TR>
<TR>
<TD>
<TABLE id=table_1 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/jsp/customer/add.jsp" 
target=main>- 新增客户</A></TD>
</TR>
<TR> 
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/CustomerAction_list"
target=main>- 客户列表</A></TD>
</TR>

</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background=images/new_027.jpg height=1></TD>
</TR>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_2');"><SPAN
class=span id=table_2Span>+</SPAN> 联系人管理</TD>
</TR>
<TR>
<TD>
<TABLE id=table_2 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/jsp/linkman/add.jsp"
target=main>- 新增联系人</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/LinkManAction_list"
target=main>-联系人列表</A></TD>
</TR>

</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background=images/new_027.jpg height=1></TD>
</TR>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_5');"><SPAN
class=span id=table_5Span>+</SPAN> 客户拜访管理</TD>
</TR>
<TR>
<TD>
<TABLE id=table_5 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/jsp/salevisit/add.jsp"
target=main>-新增客户拜访</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/SaleVisitAction_list"
target=main>-客户拜访列表</A></TD>
</TR>

</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background=images/new_027.jpg height=1></TD>
</TR>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_3');"><SPAN
class=span id=table_3Span>+</SPAN> 综合查询</TD>
</TR>
<TR>
<TD>
<TABLE id=table_3 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>- 客户信息查询</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>- 联系人信息查询</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>- 客户拜访记录查询</A></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background=images/new_027.jpg height=1></TD>
</TR>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_4');"><SPAN
class=span id=table_4Span>+</SPAN> 统计分析</TD>
</TR>
<TR>
<TD>
<TABLE id=table_4 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="${pageContext.request.contextPath}/CustomerAction_industryCount"
target=main>-客户行业统计</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>-客户来源统计</A></TD>
</TR>

</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background=images/new_027.jpg height=1></TD>
</TR>
<TR>
<TD class="mainMenu" onClick="MenuDisplay('table_6');"><SPAN
class=span id=table_6Span>+</SPAN>系统管理</TD>
</TR>
<TR>
<TD>
<TABLE id=table_6 style="DISPLAY: none" cellSpacing=0
cellPadding=2 width=155 align=center border=0>
<TBODY>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>-角色管理</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>-用户管理</A></TD>
</TR>
<TR>
<TD class="menuSmall"><A class="style2" href="#"
target=main>-数据字典</A></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width=15 background=images/new_009.jpg></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=210 align=center border=0>
<TBODY>
<TR>
<TD width=15><IMG src="images/new_010.jpg" border=0></TD>
<TD align=middle width=180 background=images/new_011.jpg
height=15></TD>
<TD width=15><IMG src="images/new_012.jpg" border=0></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</BODY>
</HTML>

 

login.jsp

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/frameset.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>
BODY {
FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: 宋体
}
TD {
FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: 宋体
}
</STYLE>

 

<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<script type="text/javascript">
window.οnlοad=function(){

if(window.parent != window){
window.parent.location.href = "${pageContext.request.contextPath}/login.jsp";
}

};
</script>

 

</HEAD>
<BODY>
<FORM id=form1 name=form1 action="${pageContext.request.contextPath}/UserAction_login" method=post>

 

<DIV id=UpdatePanel1>
<DIV id=div1 
style="LEFT: 0px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #0066ff"></DIV>
<DIV id=div2 
style="LEFT: 0px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #0066ff"></DIV>

 


<DIV>&nbsp;&nbsp; </DIV>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width=900 align=center border=0>
<TBODY>
<TR>
<TD style="HEIGHT: 105px"><IMG src="images/login_1.gif" 
border=0></TD></TR>
<TR>
<TD background=images/login_2.jpg height=300>
<TABLE height=300 cellPadding=0 width=900 border=0>
<TBODY>
<TR>
<TD colSpan=2 height=35></TD></TR>
<TR>
<TD width=360></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=2 border=0>
<TBODY>
<TR>
<TD style="HEIGHT: 28px" width=80>登 录 名:</TD>
<TD style="HEIGHT: 28px" width=150><INPUT id=txtName 
style="WIDTH: 130px" name="user_code"></TD>
<TD style="HEIGHT: 28px" width=370><SPAN 
id=RequiredFieldValidator3 
style="FONT-WEIGHT: bold; VISIBILITY: hidden; COLOR: white">请输入登录名</SPAN></TD></TR>
<TR>
<TD style="HEIGHT: 28px">登录密码:</TD>
<TD style="HEIGHT: 28px"><INPUT id=txtPwd style="WIDTH: 130px" 
type=password name="user_password"></TD>
<TD style="HEIGHT: 28px"><SPAN id=RequiredFieldValidator4 
style="FONT-WEIGHT: bold; VISIBILITY: hidden; COLOR: white">请输入密码</SPAN></TD></TR>
<TR>
<TD style="HEIGHT: 28px">验证码:</TD>
<TD style="HEIGHT: 28px"><INPUT id=txtcode 
style="WIDTH: 130px" name=txtcode></TD>
<TD style="HEIGHT: 28px">&nbsp;</TD></TR>
<TR>
<TD style="HEIGHT: 18px" colspan="2" ><font color="red" ><s:property value="exception.message" /> </font></TD>
<TD style="HEIGHT: 18px"></TD></TR>
<TR>
<TD colspan="2" ><INPUT id=btn 
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
type=image src="images/login_button.gif" name=btn>
<img src="images/regist_button.png" style="cursor: pointer;" οnclick="window.location.href='${pageContext.request.contextPath}/regist.jsp'" >
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG src="images/login_3.jpg" 
border=0></TD></TR></TBODY></TABLE></DIV></DIV>

</FORM>
<s:debug></s:debug>
</BODY></HTML>

附上好管家crm客户管理软件正版软件下载链接

下载链接

详细信息

版本更新 [7.0.0.0]2020/02/21
官网 https://wlyy.haoguanjiasoft.cn
官网下载 http://www.haoguanjiasoft.com/download/wlyy/hgjsoft-wlyy.zip
win10专用版下载 http://www.haoguanjiasoft.com/download/wlyy/hgjsoft-wlyy-win10.zip
 
  • 说        明

    可以加微信索要最新版好管家crm管理软件

  • 联系电话

    18245145213(微信同号)

                                                             
收到的礼物:
说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!