IE-WEB 8 months ago
parent 1f8896dce4
commit 6e4ee270fb

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/FCKeditor-2.3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-io-1.3.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/dwr.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/fckeditor-java-core-2.4.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/javaee.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jspsmartupload.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jstl-1.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jtds-1.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/msbase.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mssqlserver.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/msutil.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mysql-connector-java-5.0.4-bin.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/slf4j-api-1.5.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/slf4j-simple-1.5.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/sqljdbc.jar"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mysql-connector-java-8.0.21.jar"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.5">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.common.project.facet.core.builder"/>
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.jsdt.core.javascriptValidator"/>
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/../../../../../../:\Users\86184\Desktop\dingcan\.idea/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

@ -0,0 +1,31 @@
<component name="ArtifactManager">
<artifact type="exploded-war" name="dingcan:war exploded">
<output-path>$PROJECT_DIR$/classes/artifacts/dingcan_war_exploded</output-path>
<root id="root">
<element id="directory" name="WEB-INF">
<element id="directory" name="classes">
<element id="module-output" name="dingcan" />
</element>
<element id="directory" name="lib">
<element id="library" level="module" name="FCKeditor-2.3.jar" module-name="dingcan" />
<element id="library" level="module" name="commons-fileupload-1.2.1.jar" module-name="dingcan" />
<element id="library" level="module" name="commons-io-1.3.2.jar" module-name="dingcan" />
<element id="library" level="module" name="dwr.jar" module-name="dingcan" />
<element id="library" level="module" name="fckeditor-java-core-2.4.1.jar" module-name="dingcan" />
<element id="library" level="module" name="jspsmartupload.jar" module-name="dingcan" />
<element id="library" level="module" name="jstl-1.2.jar" module-name="dingcan" />
<element id="library" level="module" name="jtds-1.2.jar" module-name="dingcan" />
<element id="library" level="module" name="msbase.jar" module-name="dingcan" />
<element id="library" level="module" name="mssqlserver.jar" module-name="dingcan" />
<element id="library" level="module" name="msutil.jar" module-name="dingcan" />
<element id="library" level="module" name="mysql-connector-java-5.0.4-bin.jar" module-name="dingcan" />
<element id="library" level="module" name="slf4j-api-1.5.2.jar" module-name="dingcan" />
<element id="library" level="module" name="slf4j-simple-1.5.2.jar" module-name="dingcan" />
<element id="library" level="module" name="sqljdbc.jar" module-name="dingcan" />
<element id="library" level="module" name="mysql-connector-java-8.0.21.jar" module-name="dingcan" />
</element>
</element>
<element id="javaee-facet-resources" facet="dingcan/web/Web" />
</root>
</artifact>
</component>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="GBK">
<file url="file://$PROJECT_DIR$/src/com/itbaizhan/dao/DB.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/src/com/itbaizhan/orm/TAdmin.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/com/itbaizhan/service/cartService.java" charset="GBK" />
<file url="PROJECT" charset="GBK" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/dingcan.iml" filepath="$PROJECT_DIR$/dingcan.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/src/com/itbaizhan/action/test" vcs="Git" />
</component>
</project>

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="dingcan"
id="myeclipse.1495105121066"
context-root="/dingcan"
j2ee-spec="5.0"
archive="dingcan.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>dingcan</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}

@ -0,0 +1,14 @@
{
"ExpandedNodes": [
"",
"\\.idea",
"\\classes",
"\\out",
"\\src",
"\\src\\com",
"\\src\\com\\itbaizhan",
"\\src\\com\\itbaizhan\\dao"
],
"SelectedNode": "\\src\\com\\itbaizhan\\dao\\DB.java",
"PreviewInSolutionExplorer": false
}

Binary file not shown.

@ -0,0 +1,27 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\dingcan--idea(2)\\dingcan\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:2:0:{e8b06f52-6d01-11d2-aa7d-00c04f990343}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
}
]
}
]
}
]
}

@ -0,0 +1,62 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\dingcan--idea(2)\\dingcan\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\dingcan--idea(2)\\dingcan\\src\\com\\itbaizhan\\dao\\DB.java||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\com\\itbaizhan\\dao\\DB.java||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\dingcan--idea(2)\\dingcan\\.classpath||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:.classpath||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 2,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:2:0:{e8b06f52-6d01-11d2-aa7d-00c04f990343}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "DB.java",
"DocumentMoniker": "D:\\dingcan--idea(2)\\dingcan\\src\\com\\itbaizhan\\dao\\DB.java",
"RelativeDocumentMoniker": "src\\com\\itbaizhan\\dao\\DB.java",
"ToolTip": "D:\\dingcan--idea(2)\\dingcan\\src\\com\\itbaizhan\\dao\\DB.java",
"RelativeToolTip": "src\\com\\itbaizhan\\dao\\DB.java",
"ViewState": "AgIAAA8AAAAAAAAAAADwvwAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2024-11-28T11:14:02.114Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": ".classpath",
"DocumentMoniker": "D:\\dingcan--idea(2)\\dingcan\\.classpath",
"RelativeDocumentMoniker": ".classpath",
"ToolTip": "D:\\dingcan--idea(2)\\dingcan\\.classpath",
"RelativeToolTip": ".classpath",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2024-11-28T11:13:50.766Z",
"EditorCaption": ""
}
]
}
]
}
]
}

Binary file not shown.

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlowViewLayout Version="1.2">
<StrutsActivity path="/catelogAction.do" location="650,750" dimension="159,104" />
<StrutsActivity path="/goodsAction.do" location="50,950" dimension="154,104" />
<StrutsActivity path="/userAction.do" location="1250,450" dimension="141,104" />
<StrutsActivity path="/orderAction.do" location="1250,850" dimension="149,104" />
<StrutsActivity path="/indexAction.do" location="650,1150" dimension="147,104" />
<StrutsActivity path="/buyAction.do" location="50,1350" dimension="137,104" />
<StrutsActivity path="msg;6" location="50,50" dimension="149,87" />
<StrutsActivity path="success;6" location="950,50" dimension="168,87" />
<StrutsActivity path="/admin/catelog/catelogMana.jsp" location="950,850" dimension="222,53" />
<StrutsActivity path="/admin/goods/goodsDetailHou.jsp" location="650,950" dimension="236,53" />
<StrutsActivity path="/qiantai/goods/goodsByCatelog.jsp" location="50,1150" dimension="241,53" />
<StrutsActivity path="/admin/goods/goodsMana.jsp" location="350,950" dimension="212,53" />
<StrutsActivity path="/qiantai/goods/goodsDetailQian.jsp" location="350,1150" dimension="242,53" />
<StrutsActivity path="/admin/user/userMana.jsp" location="50,350" dimension="186,53" />
<StrutsActivity path="/admin/order/orderMana.jsp" location="1250,1050" dimension="202,53" />
<StrutsActivity path="/qiantai/index.jsp" location="1250,1250" dimension="132,53" />
<StrutsActivity path="/qiantai/order/orderSubmit.jsp" location="950,1450" dimension="212,53" />
<StrutsActivity path="/qiantai/order/orderDetail.jsp" location="1250,1450" dimension="205,53" />
<StrutsActivity path="/qiantai/order/myorder.jsp" location="650,1350" dimension="189,53" />
<StrutsActivity path="/common/msg.jsp" location="350,150" dimension="138,53" />
<StrutsActivity path="/common/success.jsp" location="650,150" dimension="157,53" />
<StrutsActivity path="/admin/gonggao/gonggaoDetail.jsp" location="650,550" dimension="244,53" />
<StrutsActivity path="/qiantai/gonggao/gonggaoDetailQian.jsp" location="50,750" dimension="274,53" />
<StrutsActivity path="/admin/gonggao/gonggaoMana.jsp" location="350,550" dimension="244,53" />
<StrutsActivity path="/indexPage.jsp" location="350,50" dimension="124,48" />
<StrutsActivity path="/login.jsp" location="650,50" dimension="100,48" />
<StrutsActivity path="/admin/user/userQuMana.jsp" location="350,350" dimension="203,53" />
<StrutsActivity path="/auser/jine/userJine.jsp" location="650,350" dimension="166,53" />
<StrutsActivity path="/admin/user/userCunMana.jsp" location="950,450" dimension="208,53" />
<StrutsActivity path="/admin/gonggaoMana.jsp" location="50,550" dimension="185,53" />
<StrutsActivity path="/admin/gonggao/gonggaoDetailQian.jsp" location="950,650" dimension="271,53" />
<StrutsActivity path="/admin/goods/goodsByCatelog.jsp" location="950,1050" dimension="238,53" />
<StrutsActivity path="/admin/index/indexMana.jsp" location="950,1250" dimension="198,53" />
<StrutsActivity path="/qiantai/buy.jsp" location="350,1350" dimension="122,53" />
<StrutsActivity path="/qiantai/denglu/userLogin.jsp" location="50,1550" dimension="203,53" />
<StrutsTransition id="msg;6,null,/common/msg.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="0,0" />
<AbsolutePoint location="0,0" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/catelogAction.do,catelogMana,/admin/catelog/catelogMana.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="809,802" />
<AbsolutePoint location="1061,802" />
<AbsolutePoint location="1061,850" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/indexAction.do,index,/qiantai/index.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="797,1202" />
<AbsolutePoint location="1316,1202" />
<AbsolutePoint location="1316,1250" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/goodsAction.do,goodsDetailHou,/admin/goods/goodsDetailHou.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="204,1018" />
<AbsolutePoint location="768,1018" />
<AbsolutePoint location="768,1003" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/buyAction.do,orderDetail,/qiantai/order/orderDetail.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="118,1402" />
<AbsolutePoint location="0,0" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/goodsAction.do,goodsDetailQian,/qiantai/goods/goodsDetailQian.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="127,1054" />
<AbsolutePoint location="127,1069" />
<AbsolutePoint location="471,1069" />
<AbsolutePoint location="471,1150" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/userAction.do,userMana,/admin/user/userMana.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="1250,518" />
<AbsolutePoint location="143,518" />
<AbsolutePoint location="143,403" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/goodsAction.do,goodsByCatelog,/qiantai/goods/goodsByCatelog.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="97,1054" />
<AbsolutePoint location="97,1150" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/orderAction.do,orderMana,/admin/order/orderMana.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="1324,954" />
<AbsolutePoint location="1324,1050" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/buyAction.do,myorder,/qiantai/order/myorder.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="187,1418" />
<AbsolutePoint location="714,1418" />
<AbsolutePoint location="714,1403" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="success;6,null,/common/success.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="0,0" />
<AbsolutePoint location="0,0" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/goodsAction.do,goodsMana,/admin/goods/goodsMana.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="204,988" />
<AbsolutePoint location="350,988" />
</AutomaticBendpoints>
</StrutsTransition>
<StrutsTransition id="/buyAction.do,orderSubmit,/qiantai/order/orderSubmit.jsp,1" routingType="0">
<AutomaticBendpoints>
<AbsolutePoint location="118,1454" />
<AbsolutePoint location="118,1476" />
<AbsolutePoint location="950,1476" />
</AutomaticBendpoints>
</StrutsTransition>
</FlowViewLayout>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">
<dwr> <!-- 实现AJAX框架的配置信息 -->
<allow>
<create creator="new" javascript="loginService"> <!-- 指定javascript中可以访问的java类名new意味着DWR应当调用类的默认构造函数来获得实例 -->
<param name="class" value="com.itbaizhan.service.loginService"></param>
</create>
<create creator="new" javascript="cartService">
<param name="class" value="com.itbaizhan.service.cartService"></param>
</create>
<convert converter="bean" match="com.itbaizhan.orm.Tcatelog"> <!-- 设置转换器 -->
<param name="include" value="id,name"></param>
</convert>
</allow>
</dwr>

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<welcome-file-list>
<welcome-file>/site/default.jsp</welcome-file> <!-- 首页为 -->
</welcome-file-list>
<filter>
<filter-name>SetChartEncoding</filter-name>
<filter-class>com.itbaizhan.util.EncodingFilter</filter-class> <!-- 设置过滤器SetChartEncoding类为.. -->
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value> <!--设置你想用的字符集UTF-8-->
</init-param>
</filter>
<filter-mapping>
<filter-name>SetChartEncoding</filter-name>
<url-pattern>/*</url-pattern> <!--设置你想过滤的页面或者是Servlet这里过滤所有页面-->
</filter-mapping>
<servlet> <!--设置servlet名称和类-->
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>
org.directwebremoting.servlet.DwrServlet
</servlet-class>
<init-param> <!--初始化参数-->
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>activeReverseAjaxEnabled</param-name> <!--实现AJAX技术-->
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>initApplicationScopeCreatorsAtStartup</param-name> <!--启动应用程序时初始化程序所有对象-->
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>maxWaitAfterWrite</param-name> <!--最长等待时间-->
<param-value>500</param-value>
</init-param>
<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping> <!--截获请求-->
<servlet-name>dwr-invoker</servlet-name> <!--dwr调用-->
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>index</servlet-name> <!--index类-->
<servlet-class>com.itbaizhan.action.index_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>index</servlet-name> <!--执行http://localhost:8080/站点名称/index 时跳转到http://localhost:8080/站点名称/index -->
<url-pattern>/index</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>user</servlet-name>
<servlet-class>com.itbaizhan.action.user_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>user</servlet-name>
<url-pattern>/user</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>catelog</servlet-name>
<servlet-class>com.itbaizhan.action.catelog_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>catelog</servlet-name>
<url-pattern>/catelog</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>goods</servlet-name>
<servlet-class>com.itbaizhan.action.goods_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>goods</servlet-name>
<url-pattern>/goods</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>buy</servlet-name>
<servlet-class>com.itbaizhan.action.buy_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>buy</servlet-name>
<url-pattern>/buy</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>order</servlet-name>
<servlet-class>com.itbaizhan.action.order_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>order</servlet-name>
<url-pattern>/order</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>liuyan</servlet-name>
<servlet-class>com.itbaizhan.action.liuyan_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>liuyan</servlet-name>
<url-pattern>/liuyan</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>xinyong</servlet-name>
<servlet-class>com.itbaizhan.action.xinyong_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xinyong</servlet-name>
<url-pattern>/xinyong</url-pattern>
</servlet-mapping>
</web-app>

@ -0,0 +1,61 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 c()//判断是否有菜品类别信息输入
{
if(document.formAdd.name.value=="")
{
alert("请输入类别名称");
return false;
}
document.formAdd.submit();//输入菜品类别信息,提交
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/catelog?type=catelogAdd" name="formAdd" method="post">
<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="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="name" size="40"/>
</td>
</tr>
<tr align='center' 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>

@ -0,0 +1,70 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 catelogDel(id)//确定删除确定后跳转界面删除菜品类别的id
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/catelog?type=catelogDel&id="+id;
}
}
function catelogAdd()//菜品类别添加
{
var url="<%=path %>/admin/catelog/catelogAdd.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="4" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="10%">序号</td>
<td width="80%">类别名称</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.catelogList}" var="catelog" varStatus="sta"><!-- 依次读取菜品信息 -->
<tr align='center' bgcolor="#FFFFFF" height="22">
<td bgcolor="#FFFFFF" align="center">
${sta.index+1}
</td>
<td bgcolor="#FFFFFF" align="center">
${catelog.name}
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="catelogDel(${catelog.id})"/>
</td>
</tr>
</c:forEach>
</table>
<table width='98%' border='0'style="margin-top:8px;margin-left: 8px;">
<tr>
<td>
<input type="button" value="添加菜品类别" style="width: 120px;" onclick="catelogAdd()" />
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,74 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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 href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"/> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<!--脚本类型是JavaScript-->
<script type="text/javascript">
function switchSysBar(){
var locate=location.href.replace('<%=path %>/admin/cont.jsp',''); //定义一个变量locate取得当前url地址代替上述域名
var ssrc=document.all("img1").src.replace(locate,''); //将所有name = img1的图片地址中去掉刚才上面得到的路径 只留下类似images/*.gif的字符串
if (ssrc=="/jiaju/images/cont_19.gif") //如果图片是/jiaju/images/cont_19.gif则将它换成/jiaju/images/cont_1_19.gif并隐藏frmTitle
{
document.all("img1").src="/jiaju/images/cont_1_19.gif";
document.all("frmTitle").style.display="none"
}
else
{
document.all("img1").src="/jiaju/images/cont_19.gif";
document.all("frmTitle").style.display=""
} //否则将图片替换成/jiaju/images/cont_19.gif并显示frmTitle
}
</script>
</head>
<body>
<body style="overflow:hidden"> <!-- 隐藏滚动条 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="cont_tab"> <!--表格宽度为100% 高度为100% 表中小格子边框为0小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起样式为css中的cont_tab-->
<tr>
<td width="180" id="frmTitle" align="center" valign="top">
<iframe name="left" height="100%" width="180" src="<%=path %>/admin/left.jsp" frameborder="0" scrolling="no">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe> </td>
<!-- <td width="8" valign="middle" onClick="switchSysBar()"><img src="/jiaju/images/cont_19.gif" width="8" height="64" name="img1" id="img1" title="打开/关闭左侧栏" style="cursor:hand;"></td> -->
<td align="center" valign="top" style="padding-right:8px;"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td height="13" style=" line-height:13px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_l">&nbsp;</td>
<td class="cont_tab_m">&nbsp;</td>
<td class="cont_tab_r">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td><iframe name="I1" height="100%" width="100%" src="<%=path %>/admin/right.jsp" border="0" frameborder="0" scrolling="auto"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table></td>
</tr>
<tr>
<td height="13" style="line-height:13px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_bl">&nbsp;</td>
<td class="cont_tab_bm">&nbsp;</td>
<td class="cont_tab_br">&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,20 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
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 href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
</head>
<body>
<div id="foot"></div> <!-- div起到分割作用div的id=food 颜色为蓝色-->
</body>
</html>

@ -0,0 +1,157 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 type="text/javascript" src="<%=path %>/js/popup.js"></script>
<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">
var i=0;
function catelogAll()//获得所有菜品类别函数
{
if(i==0)
{
document.getElementById("indicator").style.display="block";
loginService.catelogAll(callback);
i=1;
}
}
function callback(data)
{
document.getElementById("indicator").style.display="none";
DWRUtil.addOptions("catelog_id",data,"id","name");
}
function up() //上传图片函数 通过Popup.js打开对话框
{
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});//pop类型为1内嵌iframe关闭后不重新加载页面
pop.setContent("contentUrl","<%=path %>/upload/upload.jsp");//跳转到上传界面
pop.setContent("title","文件上传");
pop.build();
pop.show();
}
function check()//检查信息是否输入完整
{
if(document.formAdd.catelog_id.value==0)
{
alert("请选择类别");
return false;
}
if(document.formAdd.bianhao.value=="")
{
alert("请输入编号");
return false;
}
if(document.formAdd.mingcheng.value=="")
{
alert("请输入名称");
return false;
}
return true;
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/goods?type=goodsAdd" name="formAdd" method="post">
<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="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<table border="0">
<tr>
<td>
<select name="catelog_id" id="catelog_id" style="width: 250px;" onclick="catelogAll()">
<option value="0">请选择类别</option>
</select>
</td>
<td>
<img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/>
<!-- 插入载入动画 -->
</td>
</tr>
</table>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
编号:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="bianhao" style="width: 250px;"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="mingcheng" style="width: 250px;"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
介绍:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<FCK:editor instanceName="jieshao" basePath="/fckeditor" width="550" height="200" value="" toolbarSet="Basic">
</FCK:editor> <!-- 添加fck编辑器名字叫介绍基于路径/fckeditor初值为空基础形式 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
图片:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="fujian" id="fujian" style="width: 250px;" readonly="readonly"/>
<input type="button" value="上传" onclick="up()"/> <!-- 上传触发up函数 -->
<input type="hidden" name="fujian" id="fujian"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
价格:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="shichangjia" value="100" style="width: 250px;" onpropertychange="onchange1(this.value)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<!--插入菜品的价格框onpropertychange当输入框属性变化时触发onchange1属性修改数据库菜品价格 下一句为按键之后触发将输入值为非数字的字符替换为空,粘贴之后触发将输入值为非数字的字符替换为空-->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="submit" value="提交" onclick="return check()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,24 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!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">
</head>
<body>
<table align="center">
<tr>
<td>
<c:out value="${requestScope.goods.jieshao}" escapeXml="false"></c:out> <!--输出菜品的介绍信息将其中的xml文档解析出来 -->
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,118 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 %>/js/popup.js"></script>
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function goodsDel(id)//删除之后跳转到删除成功界面并删除菜品的id传入菜品删除的界面
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/goods?type=goodsDel&id="+id;
}
}
function goodsPre(id)//添加菜品信息函数
{
window.location.href="<%=path %>/goods?type=goodsPre&id="+id;
}
function goodsAdd()//跳转到goodsAdd.jsp,完成菜品的添加
{
var url="<%=path %>/admin/goods/goodsAdd.jsp";
window.location.href=url;
}
function over(picPath)//鼠标移到图片二字时显示图片的函数,并定义了图片的显示格式
{
if (picPath=="")picPath="/img/default.jpg";
x = event.clientX;
y = event.clientY;
document.all.tip.style.display = "block";
document.all.tip.style.top = y;
document.all.tip.style.left = x+10;
document.all.photo.src = ".."+picPath;
}
function out()//鼠标移开图片二字的时候什么也不显示
{
document.all.tip.style.display = "none";
}
function goodsDetailHou(id)//商品具体的描述信息
{
var url="<%=path %>/goods?type=goodsDetailHou&id="+id;
var n="";
var w="480px";
var h="500px";
var s="resizable:no;help:no;status:no;scroll:yes"; //不可改变大小,无帮助栏,无状态栏,有滚动条
openWin(url,n,w,h,s);//打开一个这样的窗口 高500宽480不可改变大小无帮助栏无状态栏有滚动条
}
</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="42" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="5%">序号</td>
<td width="7%">编号</td>
<td width="15%">名称</td>
<td width="7%">介绍</td>
<td width="7%">图片</td>
<td width="7%">价格</td>
<td width="7%">操作</td>
</tr>
<c:forEach items="${requestScope.goodsList}" var="goods" varStatus="sta">
<tr align='center' bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF" align="center">${sta.index+1}</td>
<td bgcolor="#FFFFFF" align="center">${goods.bianhao}</td>
<td bgcolor="#FFFFFF" align="center">${goods.mingcheng}</td>
<td bgcolor="#FFFFFF" align="center"><a href="#" onclick="goodsDetailHou(${goods.id})" class="pn-loperator">商品描述</a></td>
<!--a href="#"表示联接到当前页面-->
<td bgcolor="#FFFFFF" align="center"><div onmouseover = "over('<%=path %>/${goods.fujian}')" onmouseout = "out()" style="cursor:hand;">图片</div></td>
<!-- 当鼠标移上去显示菜品的图片,鼠标移开时什么也不显示 -->
<td bgcolor="#FFFFFF" align="center">${goods.shichangjia}</td> <!--市场价,即菜品的价格 -->
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="goodsDel(${goods.id})"/>
<input type="button" value="编辑" onclick="goodsPre(${goods.id})"/>
</td>
</tr>
</c:forEach>
</table>
<table width='98%' border='0'style="margin-top:8px;margin-left: 8px;">
<tr>
<td>
<input type="button" value="添加菜品信息" style="width: 120px;" onclick="goodsAdd()" />
</td>
</tr>
</table>
<div id="tip" style="position:absolute;display:none;border:0px;width:80px; height:80px;">
<!-- 通过绝对定位来对图片定位,下面进一步定义图片的显示格式 -->
<TABLE id="tipTable" border="0" bgcolor="#ffffee">
<TR align="center">
<TD><img id="photo" src="" height="150" width="150"></TD>
</TR>
</TABLE>
</div>
</body>
</html>

@ -0,0 +1,159 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 type="text/javascript" src="<%=path %>/js/popup.js"></script>
<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">
var i=0;//获取菜品的所有类别
function catelogAll()
{
if(i==0)
{
document.getElementById("indicator").style.display="block";
loginService.catelogAll(callback);
i=1;
}
}
function callback(data)
{
document.getElementById("indicator").style.display="none";
DWRUtil.addOptions("catelog_id",data,"id","name");//创建一系列属性 查询出来的数据分别填充 菜品类别id菜品的id菜品的名字
}
function up() //上传图片函数 通过Popup.js打开对话框
{
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200}); //pop类型为1内嵌iframe关闭后不重新加载页面
pop.setContent("contentUrl","<%=path %>/upload/upload.jsp");
pop.setContent("title","文件上传"); //跳转到上传界面
pop.build();
pop.show();
}
function check() //检查信息是否输入完整
{
if(document.formAdd.catelog_id.value==0)
{
alert("请选择类别");
return false;
}
if(document.formAdd.bianhao.value=="")
{
alert("请输入编号");
return false;
}
if(document.formAdd.mingcheng.value=="")
{
alert("请输入名称");
return false;
}
return true;
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/goods?type=goodsEdit" name="formAdd" method="post">
<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="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
类别:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<table border="0">
<tr>
<td>
<select name="catelog_id" id="catelog_id" style="width: 250px;" onclick="catelogAll()">
<option value="0">请选择类别</option> <!--下拉菜单 -->
</select>
</td>
<td>
<img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/> <!--插入载入动画 -->
</td>
</tr>
</table>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
编号:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="bianhao" style="width: 250px;" value="${requestScope.goods.bianhao }"/> <!--获取菜品的编号-->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
名称:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="mingcheng" style="width: 250px;" value="${requestScope.goods.mingcheng }"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
介绍:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<FCK:editor instanceName="jieshao" basePath="/fckeditor"
width="550" height="200" value="${requestScope.goods.jieshao }" toolbarSet="Basic">
</FCK:editor> <!-- 插入fck基本格式的编辑器 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
图片:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="fujian" id="fujian" value="${requestScope.goods.fujian }" style="width: 250px;" readonly="readonly"/><!--规定图片为只读属性-->
<input type="button" value="上传" onclick="up()"/>
<input type="hidden" name="fujian" id="fujian"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
价格:
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="text" name="shichangjia" value="${requestScope.goods.shichangjia }" style="width: 250px;" onpropertychange="onchange1(this.value)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<!--插入菜品的价格框onpropertychange当输入框属性变化时触发onchange1属性修改数据库菜品价格 下一句为按键之后触发将输入值为非数字的字符替换为空,粘贴之后触发将输入值为非数字的字符替换为空 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="25%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="75%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="id" value="${requestScope.goods.id }"/>
<input type="submit" value="提交" onclick="return check()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,23 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath(); //获得当前的项目根目录路径赋值给path
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <!-- XHTML namespace命名空间 通过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"/> <!-- 清除浏览器中的缓存它和其它几句合起来用就可以使你再次进入曾经访问过的页面时ie浏览器必须从服务端下载最新的内容达到刷新的效果。 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <!-- 向搜索引擎说明你的网页的关键词 -->
<meta http-equiv="description" content="This is my page"/> <!-- 告诉搜索引擎你的站点的主要内容 -->
</head>
<frameset rows="100,*,20" cols="*" framespacing="0" frameborder="no" border="0"> <!-- 设置浏览器划分成左右100像素剩余20像素上下不分框架与框架间保留的空白的距离为0没有框架边框框架边框厚度为0 -->
<frame src="<%=path %>/admin/top.jsp" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" frameborder="0" />
<frame src="<%=path %>/admin/cont.jsp" name="mainFrame" id="mainFrame" frameborder="0" />
<frame src="<%=path %>/admin/foot.jsp" name="footFrame" id="footFrame" frameborder="0" />
</frameset> <!--框架显示的界面分别是path的值/admin/top.jspcont.jspfoot.jsp 框架没有滚动条 无法调整框架的大小id="topframe",框架边框厚度为0-->
<noframes><body></body></noframes> <!--noframes 元素可为那些不支持框架的浏览器显示文本 body中无文本-->
</html>

@ -0,0 +1,295 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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 href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<style type="text/css">
.STYLE1 {color: #FFFFFF;font-size: 12px;}
</style>
<script type="text/javascript">
function show(str)
{
var str1="td"+str;
var str="show"+str;
document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";//每添加一个菜单,都要在这里添加。 getElementById得到id=td1的值即修改登录密码
document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("show1").style.display="none";
document.getElementById("show2").style.display="none";
document.getElementById("show3").style.display="none";
document.getElementById("show4").style.display="none";
document.getElementById("show5").style.display="none";
document.getElementById("show6").style.display="none";
document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')";
document.getElementById(str).style.display="block";//变成块级元素
}//迭代使用show函数使用show函数完成叠菜单
function sho(str)
{
var str1="t"+str;
var str="sho"+str;
document.getElementById("t1").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t2").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho1").style.display="none";
document.getElementById("sho2").style.display="none";
document.getElementById("sho3").style.display="none";
document.getElementById("sho4").style.display="none";
document.getElementById("sho5").style.display="none";
document.getElementById("sho6").style.display="none";
document.getElementById(str1).style.background="url('/dingcan/images/3_13.gif')";
document.getElementById(str).style.display="block";
}
</script>
</head>
<body>
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0"> <!--表格宽度为180 高度为100% 表中小格子边框为0无边框小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起-->
<tr>
<td height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <!-- 在表中再建立一个表分成3部分放入图片组成一栏 -->
<tr>
<td width="48"><img src="/dingcan/images/left_09.gif" width="48" height="34"></td>
<td align="center" background="/dingcan/images/left_10.gif"><span class="STYLE1">导航菜单</span></td> <!--定义行内元素导航菜单样式为STYLE1-->
<td width="48"><img src="/dingcan/images/l_09.gif" width="48" height="34"></td> <!--在34高度上插入3个图片组成一栏 -->
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid"> <!-- 放置顶端图片 为left_mid类型-->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp; <!-- 点击触发show1即打开下拉菜单 -->
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;"> <!-- 这一行左边距30px -->
修改登录密码
</span>
</td>
</tr>
<!-- 1111 -->
<tr>
<td id="show1" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a> <!-- 点击修改密码进入path/admin/userinfo/userPw.jsp界面 -->
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td2" onClick="show(2)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品类别管理
</span>
</td>
</tr>
<tr>
<td id="show2" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a> <!-- ?是AJAX技术后面可以接传递的参数 -->
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/catelog/catelogAdd.jsp" target="I1" style="color: black;">添加菜品类别</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td3" onClick="show(3)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品信息管理
</span>
</td>
</tr>
<tr>
<td id="show3" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/goods?type=goodsMana" target="I1" style="color: black;">菜品信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/goods/goodsAdd.jsp" target="I1" style="color: black;">菜品信息添加</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td4" onClick="show(4)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
会员信息管理
</span>
</td>
</tr>
<tr>
<td id="show4" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/user?type=userMana" target="I1" style="color: black;">会员信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td5" onClick="show(5)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
订单信息管理
</span>
</td>
</tr>
<tr>
<td id="show5" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/order?type=orderMana" target="I1" style="color: black;">订单信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td6" onClick="show(6)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
留言信息管理
</span>
</td>
</tr>
<tr>
<td id="show6" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/liuyan?type=liuyanMana" target="I1" style="color: black;">留言信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
</table>
</td>
</tr>
<tr>
<td height="13"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48"><img src="/dingcan/images/left_31.gif" width="48" height="13"></td>
<td background="/dingcan/images/left_32.gif" class="left_b_m">&nbsp;</td>
<td width="48"><img src="/dingcan/images/left_31_l.gif" width="48" height="13"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,62 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ 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>
<base target="_self"/>
<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 c()//无内容提示请输入回复内容
{
if(document.formAdd.huifu.value=="")
{
alert("请输入回复内容");
return false;
}
document.formAdd.submit();//有内容将内容提交
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/liuyan?type=liuyanHuifu" 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="huifu" size="80"/>
</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="hidden" name="id" value="<%=request.getParameter("id") %>"/> <!-- 获得id属性 -->
<input type="button" value="提交" onclick="c()"/>&nbsp; <!-- 触发之前定义的是否有内容的判断 -->
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,80 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function liuyanDel(id)//确认是否删除
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/liuyan?type=liuyanDel&id="+id;//跳转页面,进行留言删除
}
}
function liuyanHuifu(id)//留言回复函数
{
var strUrl = "<%=path %>/admin/liuyan/liuyanHuifu.jsp?id="+id;
var ret = window.open(strUrl,"","dialogWidth:700px; dialogHeight:400px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
//建立一个模型对话框对话框高度为400宽度为700无状态栏窗口无滚动栏不可调整大小
window.location.reload(); //重新加载页面
}
</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="4%">序号</td>
<td width="20%">信息内容</td>
<td width="8%">发布时间</td>
<td width="8%">回复信息</td>
<td width="8%">回复时间</td>
<td width="8%">操作</td>
</tr>
<c:forEach items="${requestScope.liuyanList}" var="liuyan" varStatus="sta">
<tr align='center' bgcolor="#FFFFFF" height="22">
<td bgcolor="#FFFFFF" align="center">
${sta.index+1 } <!-- 设置序号从1开始 -->
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.neirong }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.liuyanshi }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.huifu }
</td>
<td bgcolor="#FFFFFF" align="center">
${liuyan.huifushi }
</td>
<td bgcolor="#FFFFFF" align="center">
<input type="button" value="删除" onclick="liuyanDel(${liuyan.id })"/><!-- 执行liuyanDelid-->
<input type="button" value="回复" onclick="liuyanHuifu(${liuyan.id })"/><!-- 执行liuyanHuifuid-->
</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -0,0 +1,62 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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 c()//没有输入任何信息,提示请输入信息内容。
{
if(document.formAdd.huifu.value=="")
{
alert("请输入信息内容");
return false;
}
document.formAdd.submit();//否则,将回复信息发送
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
<form action="<%=path %>/order?type=huifuAdd" name="formAdd" method="post">
<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="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
信息内容:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="text" name="huifu" size="40"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="id" value="<%=request.getParameter("id") %>"/>
<input type="button" value="提交" onclick="c()"/>&nbsp; <!-- 提交时触发c函数判断是否未回复内容 -->
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,121 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script language="javascript">
function orderDetail(order_id)//订单明细信息
{
var url="<%=path %>/buy?type=orderDetail&order_id="+order_id; //跳转页面
var n="";
var w="600px";//宽度
var h="500px";//高度
var s="resizable:no;help:no;status:no;scroll:yes"; //不可调整大小 无帮助栏 无状态栏 有滚动条
openWin(url,n,w,h,s);
}
function orderDel(id)
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/order?type=orderDel&id="+id; //?后传入参数,&为参数间的分隔符
}
}
function orderShouli(id)
{
if(confirm('您确定受理订单吗?'))
{
window.location.href="<%=path %>/order?type=orderShouli&id="+id;
}
}
function huifuAdd(id)
{
var url="<%=path %>/admin/order/huifuAdd.jsp?id="+id;
window.location.href=url;
}
function userDetail(id)
{
var url="<%=path %>/user?type=userDetail&id="+id;
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="44" background="<%=path %>/img/tbg.gif">&nbsp;&nbsp;</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
<td width="4%">序号</td>
<td width="10%">订单编号</td>
<td width="10%">下单时间</td>
<td width="10%">状态</td>
<td width="10%">排队计时</td>
<td width="15%">送货地址</td>
<td width="10%">付款方式</td>
<td width="10%">总金额</td>
<td width="10%">明细</td>
<td width="10%">用户信息</td>
<td width="10%">操作</td>
</tr>
<c:forEach items="${requestScope.orderList}" var="order" varStatus="ss">
<tr align='center' bgcolor="#FFFFFF" height="22"> <!--取得订单的各种信息序号从1开始-->
<td bgcolor="#FFFFFF" align="center">${ss.index+1}</td>
<td bgcolor="#FFFFFF" align="center">${order.bianhao}</td>
<td bgcolor="#FFFFFF" align="center">${order.shijian}</td>
<td bgcolor="#FFFFFF" align="center">
<c:if test="${order.zhuangtai=='no'}"> <!-- 如果状态=no显示未受理点击受理订单触发受理订单orderShouliid函数 -->
未受理&nbsp;&nbsp;&nbsp;<a href="#" style="color: red" onclick="orderShouli(${order.id})" class="pn-loperator">受理订单</a>
</c:if>
<c:if test="${order.zhuangtai=='yes'}"> <!--如果状态=yes显示已受理-->
已受理
</c:if>
</td>
<td bgcolor="#FFFFFF" align="center">
${order.huifu}
&nbsp;&nbsp;&nbsp;<a href="#" style="color: red" onclick="huifuAdd(${order.id})" class="pn-loperator">计时</a>
<!-- 点击计时可以触发huifuAddid函数来为用户进行消息回复如几点过来取-->
</td>
<td bgcolor="#FFFFFF" align="center">${order.songhuodizhi}</td>
<td bgcolor="#FFFFFF" align="center">${order.fukuanfangshi}</td>
<td bgcolor="#FFFFFF" align="center">${order.jine}</td> <!-- 获得付款方式,送货地址,总金额信息 -->
<td><input value="明细" type="button" onclick="orderDetail(${order.id})"/></td>
<!-- 点击明细触发前面定义的订单明细orderDetailid-->
<td><input value="查看用户" type="button" onclick="userDetail('${order.user_id}')"/></td>
<!-- 点击查看用户触发前面定义的用户明细userDetailid-->
<td>
<input type="button" onclick="orderDel(${order.id})" value="删除"/>
</td>
</tr>
</c:forEach>
</table>
</body>
</html>

@ -0,0 +1,21 @@
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
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">
</head>
<body>
welcome. <br>
</body>
</html>

@ -0,0 +1,41 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
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 href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<script type="text/javascript">
function logout()
{
if(confirm("确定要退出本系统吗??"))
{
window.parent.location="<%=path %>/login.jsp";
} //点击确定返回后台登录界面
}
function index()
{
window.parent.location="<%=path %>/site/default.jsp";
}//返回首页
</script>
</head>
<body style="background:url(/dingcan/images/top_05.jpg)">
<span style="float:left;margin-left: 20px;color: white;font-size: 30px;margin-top: 30px;">基于JSP的高校快餐店订餐系统</span>
<!-- 标题向左浮动距离左边20像素白色字体30像素距离顶端30像素 -->
<span style="float:right;margin-right: 30px;margin-top: 30px;">
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="logout()">注销退出</a> <!-- 向右浮动 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="index()">返回首页</a>
</span>
</body>
</html>

@ -0,0 +1,96 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ 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}"; //从session范围里取得管理员的密码赋值给userPwReal
if(document.formPw.userPw.value !=userPwReal) //如果取得的输入密码与原密码不同,提示原密码不正确
{
alert("原密码不正确");
return ;
}
if(document.formPw.userPw1.value =="") //如果新密码设置为空,提示新密码不能为空
{
alert("新密码不能空");
return ;
}
document.getElementById("indicator").style.display="block"; //将每一栏设置成块级,自动换行
loginService.adminPwEdit(document.formPw.userPw1.value,callback);
//调用loginService.adminPwEdit函数来对用户的账号密码是否正确做判断
}
function callback(data)//callback函数原密码与新密码通过后执行callback提示修改成功
{
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"/>
<!--登录名取得是session范围里取得管理员的用户名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">
&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 %>/images/loading.gif" alt="Loading..." style="display:none"/> <!-- 插入载入动画 -->
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,83 @@
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ 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"> <!-- 1.插入时间格式的包.2.插入处理时间的包。34.使用JSTLJSP标准标签库5.使得EL不当成字符串处理-->
<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 c() //如果评价内容为空,提示请输入评论内容
{
if(document.formAdd.neirong.value=="")
{
alert("请输入评价内容");
return false;
}
document.formAdd.submit(); //如果不为空则提交信息
}
</script>
</head>
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'> <!-- 距离左边为2距离上面为9背景图片为。。 -->
<form action="<%=path %>/xinyong?type=xinyongAdd" name="formAdd" method="post"> <!--表单的方法为提交 -->
<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="#FFFFFF" onMouseMove="javascript:this.bgColor='red';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价属性:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="radio" name="shuxing" value="好评" checked="checked" style="border: 0px;"/>好评
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="shuxing" value="差评" style="border: 0px;"/>差评
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价内容:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="text" name="neirong" size="40"/>
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
评价时间:
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="text" name="shijian" size="40" value="<%=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date())%>"/>
<!-- 取得系统当前时间格式为yyyy年-MM月-dd号 HH点mm分 -->
</td>
</tr>
<tr align='center' bgcolor="#FFFFFF" height="22">
<td width="10%" bgcolor="#FFFFFF" align="right">
&nbsp;
</td>
<td width="90%" bgcolor="#FFFFFF" align="left">
<input type="hidden" name="user_id" value="<%=request.getParameter("user_id") %>"/> <!-- 插入隐藏域获得用户的id -->
<input type="button" value="提交" onclick="c()"/>&nbsp;
<input type="reset" value="重置"/>&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>

@ -0,0 +1,23 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- 返回该网页的根urlrequest.getScheme()返回协议的名称http。request.getServerName()获取服务器的名称localhostrequest.getServerPort()获取端口8080-->
<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">
</head>
<!--使用JSTL标签库-->
<body>
<center>账号或密码错误</center>
</body>
</html>

@ -0,0 +1,23 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
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>
<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">
</head>
<body>
<div style="color: green;" align="left">${requestScope.msg}</div> <!-- 返回的request作用域里面的msg属性的值 -->
</body>
</html>

@ -0,0 +1,23 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
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>
<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">
</head>
<body>
<center>通过验证,登录成功</center>
</body>
</html>

@ -0,0 +1,28 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getAttribute("path").toString();
String message = request.getAttribute("message").toString();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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">
</head>
<html>
<script language="javascript">
<% if(message != null) { %>
alert("<%=message%>"); //如果 message不为空弹出message信息
<% } %>
<% if(path != null) { %>
document.location.href = "<%=path%>"; //如果路径不为空跳转到取得的path路径
<% } else {%>
window.history.back(); //否则返回历史记录中上一界面
<% } %>
</script>
<body>
</body>
</html>

@ -0,0 +1,288 @@
* {
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; }
/*.a为类名*/
.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;
}

@ -0,0 +1,110 @@
/* CSS Document */
body{
padding:0px;
margin:0px;
font-size:12px;
}
/*==========TOP页面设置==========*/
.top_tab{
background-image:url(/dingcan/images/top_01.gif);
background-repeat:repeat-x;
height:90px;
width:100%;
}
.top_logo{
width:197px;
background-image:url(/dingcan/images/top_02.gif);
}
.top_tex{
background:url(/dingcan/images/top_03.gif) no-repeat;
}
.top_r{
width:361px;
background:url(/dingcan/images/top_05.gif) no-repeat;
}
/*==========右侧页面(主内容显示部分)设置==========*/
.right_body{
padding-left:5px;
padding-right:5px;
}
.right_font{
font-size:13px;
cursor:hand;
}
/*==========所有的图片相关连接全部写在CSS,这样是为了制作多颜色版本==========*/
.cont_tab{
background-color:#4374A3;
}
.cont_tab_l{
background-image:url(/dingcan/images/r_14.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_m{
background-image:url(/dingcan/images/r_16.gif);
background-repeat:repeat-x;
height:13px;
}
.cont_tab_r{
background-image:url(/dingcan/images/r_14_r.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_bl{
background-image:url(/dingcan/images/r_24.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
.cont_tab_bm{
background-image:url(/dingcan/images/r_29.gif);
background-repeat:repeat-x;
height:13px;
}
.cont_tab_br{
background-image:url(/dingcan/images/r_24_r.gif);
background-repeat:no-repeat;
width:12px;
height:13px;
}
/*==========LEFT页面设置==========*/
.left_b_m{
line-height:13px;
font-size:1px;
}
.left_mid{
padding-left:2px;
padding-right:1px;
}
.menu_first_img{
background-image:url(/dingcan/images/l_b_05.gif);
background-repeat:no-repeat;
}.menu_second_img{
background-image:url(/dingcan/images/l_b_03.gif);
background-repeat:no-repeat;
}
.mouse{
cursor:hand;
width:176px;
height:29px;
line-height:29px;
}
.left{
background-image:url(/dingcan/images/menu_26.gif);
height:29px;
padding-bottom:4px;
}
/*==========Foot==========*/
#foot{
background-color:#4374A3;
height:17px;
font-size:12px;
color:#ffffff;
letter-spacing:3px;
text-align:center;
padding-top:3px;
}

@ -0,0 +1,42 @@
/* CSS Document */
body{
margin:0px;
padding:50px 0px 0px 0px;
background-color:#5c86ad;
font-size:12px;
color:#133B61;
}
/*indexÒ³ÃæCSSÉèÖÃ*/
.tab1{
background-image:url(/dingcan/images/dx_01.gif);
background-repeat:no-repeat;
height:160px;
width:708px;
}
.tab2{
background-image:url(/dingcan/images/dx_02.gif);
background-repeat:no-repeat;
width:273px;
height:200px;
padding-left:335px;
padding-right:90px;
font-size:12px;
letter-spacing: 3px;
color:#18345A;
padding-top:10px;
}
.tab3{
background-image:url(/dingcan/images/dx_03.gif);
background-repeat:no-repeat;
width:708px;
height:216px;
}
.id{
height:18px;
border:1px solid #255FAD;
filter: Alpha(Opacity=60);
}
input:hover{
background-color:#A0D1FF;
}

@ -0,0 +1,424 @@
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
body {
margin: 0;
padding: 0;
background: url(/dingcan/images/img01.jpg) repeat-x left top;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #66665E;
}
h1, h2, h3 {
margin: 0;
text-transform: uppercase;
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-weight: normal;
color: #0C95C9;
}
h1 { font-size: 44px; }
h2 { font-size: 18px; }
h3 { }
p, ul, ol {
margin-top: 0;
line-height: 240%;
text-align: justify;
}
ul, ol { }
blockquote { }
a { color: #0C95C9; }
a:hover { text-decoration: none; }
a img {
border: none;
}
img.left {
float: left;
margin: 7px 30px 0 0;
}
img.right {
float: right;
margin: 7px 0 0 30px;
}
hr { display: none; }
.list1 {
}
.list1 li {
float: left;
line-height: normal;
}
.list1 li img {
margin: 0 30px 30px 0;
}
.list1 li.alt img {
margin-right: 0;
}
#wrapper {
}
/* Header */
#header-wrapper {
}
#header {
width: 920px;
height: 45px;
margin: 0 auto;
}
/* Menu */
#menu {
float: left;
width: 540px;
height: 45px;
}
#menu ul {
margin: 0;
padding: 10px 0px 0px 5px;
list-style: none;
line-height: normal;
}
#menu li {
display: block;
float: left;
}
#menu a {
display: block;
float: left;
margin-right: 3px;
padding: 3px 8px 2px 8px;
text-decoration: none;
text-transform: capitalize;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
}
#menu a:hover { text-decoration: underline; }
#menu .current_page_item a {
height: 20px;
background: #FEC200 url(/dingcan/images/img02.jpg) repeat-x left top;
color: #FFFFFF;
}
#menu .first {
background: none;
}
/* Search */
#search {
float: right;
width: 305px;
height: 45px;
}
#search form {
float: right;
margin: 0;
padding: 12px 30px 0 0;
}
#search fieldset {
margin: 0;
padding: 0;
border: none;
}
#search input {
float: left;
font: 12px Georgia, "Times New Roman", Times, serif;
border: none;
}
#search-text {
width: 135px;
height: 18px;
padding: 3px 0 0 5px;
border: 1px solid #333333;
background: #ECF9E4;
color: #000000;
}
#search-submit {
height: 21px;
margin-left: 10px;
padding: 0px 5px;
background: #000000;
color: #FFFFFF;
}
/* Page */
#page {
width: 920px;
margin: 0 auto;
}
#page-bgtop {
padding-top: 30px;
}
/** LOGO */
#logo {
width: 860px;
height: 134px;
margin: 0 auto;
background: url(/dingcan/images/img04.jpg) no-repeat right top;
}
#logo h1, #logo p {
margin: 0px;
line-height: normal;
text-transform: lowercase;
font-weight: normal;
color: #FFFFFF;
}
#logo p {
text-transform: lowercase;
font-size: 10px;
}
#logo h1 {
padding-top: 54px;
font-size: 34px;
}
#logo a {
text-decoration: none;
color: #FFFFFF;
}
/* Content */
#content {
float: right;
width: 658px;
padding-top: 10px;
padding-right: 30px;
}
/* ·¢ËÍ */
.post {
background: url(/dingcan/images/img07.jpg) repeat-x left bottom;
margin-bottom: 25px;
}
.post .title {
height: 30px;
color: #549900;
}
.post .title a {
text-decoration: none;
color: #585D60;
}
.post .date {
}
.post .meta {
margin-top: -10px;
padding: 2px 30px 2px 16px;
background: url(/dingcan/images/img03.gif) no-repeat left 8px;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 10px;
color: #66665E;
}
.post .meta span {
display: block;
margin-top: -10px;
}
.post .meta a { }
.post .entry {
padding: 10px 0;
}
.post .links {
margin: 0 250px 0 0;
padding: 0 0 0 0px;
}
.post .links .comments {
}
.post .links .permalink {
padding-left: 17px;
}
/* ²à±ßÀ¸ */
#sidebar {
float: left;
width: 177px;
padding-left: 22px;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #585D60;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#sidebar li {
margin-bottom: 30px;
padding: 0 0 10px 0px;
}
#sidebar li ul {
}
#sidebar li li {
margin: 0;
padding: 7px 10px 10px 7px;
background: url(/dingcan/images/img07.jpg) repeat-x left bottom;
}
#sidebar p {
margin: 0;
padding: 0px 10px;
}
#sidebar h2 {
height: 26px;
margin: 0 0 10px 0px;
padding: 12px 0 2px 7px;
text-transform: capitalize;
font-size: 18px;
font-weight: normal;
color: #464F54;
}
#sidebar p {
line-height: 200%;
}
#sidebar a {
text-align: left;
text-decoration: none;
font-weight: normal;
color: #585D60;
}
/* ÈÕÀú */
#calendar {
}
#calendar caption {
padding-bottom: 5px;
font-weight: bold;
}
#calendar table {
width: 100%;
border-collapse: collapse;
border-bottom: 1px solid #24130F;
border-left: 1px solid #24130F;
border-right: 1px solid #24130F;
}
#calendar thead th {
padding: 5px 0;
text-align: center;
border-top: 1px solid #24130F;
border-left: 1px solid #24130F;
background: #24130F;
}
#calendar tbody td {
padding: 5px 0;
text-align: center;
border-top: 1px solid #24130F;
border-left: 1px solid #24130F;
border-bottom: 1px solid #24130F;
}
#calendar tfoot td {
padding: 5px;
border-left: 1px solid #24130F;
border-bottom: 1px solid #24130F;
}
#calendar tfoot #next {
border-top: 1px solid #24130F;
text-align: right;
}
#calendar tfoot #prev {
border-top: 1px solid #24130F;
}
#calendar .pad {
border-bottom: 1px solid #24130F;
}
#calendar #today {
background: #24130F;
}
/* Footer */
#footer {
width: 920px;
height: 49px;
margin: 0 auto;
padding-top: 50px;
}
#footer-bgcontent {
margin: 0px;
padding: 0px;
height: 99px;
background: #394144;
}
#footer p {
margin: 0;
text-align: center;
line-height: normal;
text-transform: uppercase;
font-size: 10px;
color: #FFFFFF;
}
#footer a {
color: #E5FFC4;
}

@ -0,0 +1,38 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FCKeditor - Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body { font-family: arial, verdana, sans-serif }
p { margin-left: 20px }
</style>
</head>
<body>
<h1>
FCKeditor Documentation</h1>
<p>
You can find the official documentation for FCKeditor online, at <a href="http://docs.fckeditor.net/">
http://docs.fckeditor.net/</a>.</p>
</body>
</html>

@ -0,0 +1,38 @@
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the sample plugin definition file.
*/
// Register the related commands.
FCKCommands.RegisterCommand( 'My_Find' , new FCKDialogCommand( FCKLang['DlgMyFindTitle'] , FCKLang['DlgMyFindTitle'] , FCKConfig.PluginsPath + 'findreplace/find.html' , 340, 170 ) ) ;
FCKCommands.RegisterCommand( 'My_Replace' , new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle'] , FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ;
// Create the "Find" toolbar button.
var oFindItem = new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ;
oFindItem.IconPath = FCKConfig.PluginsPath + 'findreplace/find.gif' ;
FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ; // 'My_Find' is the name used in the Toolbar config.
// Create the "Replace" toolbar button.
var oReplaceItem = new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ;
oReplaceItem.IconPath = FCKConfig.PluginsPath + 'findreplace/replace.gif' ;
FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ; // 'My_Replace' is the name used in the Toolbar config.

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

@ -0,0 +1,172 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the sample "Find" plugin window.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="noindex, nofollow" name="robots">
<script type="text/javascript">
var oEditor = window.parent.InnerDialogLoaded() ;
function OnLoad()
{
// Whole word is available on IE only.
if ( oEditor.FCKBrowserInfo.IsIE )
document.getElementById('divWord').style.display = '' ;
// First of all, translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage( document ) ;
window.parent.SetAutoSize( true ) ;
}
function btnStat(frm)
{
document.getElementById('btnFind').disabled =
( document.getElementById('txtFind').value.length == 0 ) ;
}
function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll )
{
for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
{
var oNode = parentNode.childNodes[i] ;
if ( oNode.nodeType == 3 )
{
var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
if ( oNode.nodeValue != sReplaced )
{
oNode.nodeValue = sReplaced ;
if ( ! replaceAll )
return true ;
}
}
else
{
if ( ReplaceTextNodes( oNode, regex, replaceValue ) )
return true ;
}
}
return false ;
}
function GetRegexExpr()
{
if ( document.getElementById('chkWord').checked )
var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
else
var sExpr = document.getElementById('txtFind').value ;
return sExpr ;
}
function GetCase()
{
return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
}
function Ok()
{
if ( document.getElementById('txtFind').value.length == 0 )
return ;
if ( oEditor.FCKBrowserInfo.IsIE )
FindIE() ;
else
FindGecko() ;
}
var oRange = null ;
function FindIE()
{
if ( oRange == null )
oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
var iFlags = 0 ;
if ( chkCase.checked )
iFlags = iFlags | 4 ;
if ( chkWord.checked )
iFlags = iFlags | 2 ;
var bFound = oRange.findText( document.getElementById('txtFind').value, 1, iFlags ) ;
if ( bFound )
{
oRange.scrollIntoView() ;
oRange.select() ;
oRange.collapse(false) ;
oLastRangeFound = oRange ;
}
else
{
oRange = null ;
alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ;
}
}
function FindGecko()
{
var bCase = document.getElementById('chkCase').checked ;
var bWord = document.getElementById('chkWord').checked ;
// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
}
</script>
</head>
<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
<div align="center">
This is my Plugin!
</div>
<table cellSpacing="3" cellPadding="2" width="100%" border="0">
<tr>
<td nowrap>
<label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>&nbsp;
</td>
<td width="100%">
<input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
</td>
<td>
<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" disabled
onclick="Ok();" type="button" value="Find" fckLang="DlgMyFindFindBtn">
</td>
</tr>
<tr>
<td valign="bottom" colSpan="3">
&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
case</label>
<br>
<div id="divWord" style="DISPLAY: none">
&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
whole word</label>
</div>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,33 @@
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* English language file for the sample plugin.
*/
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Replace' ;
FCKLang['DlgMyReplaceFindLbl'] = 'Find what:' ;
FCKLang['DlgMyReplaceReplaceLbl'] = 'Replace with:' ;
FCKLang['DlgMyReplaceCaseChk'] = 'Match case' ;
FCKLang['DlgMyReplaceReplaceBtn'] = 'Replace' ;
FCKLang['DlgMyReplaceReplAllBtn'] = 'Replace All' ;
FCKLang['DlgMyReplaceWordChk'] = 'Match whole word' ;
FCKLang['DlgMyFindTitle'] = 'Plugin - Find' ;
FCKLang['DlgMyFindFindBtn'] = 'Find' ;

@ -0,0 +1,33 @@
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* French language file for the sample plugin.
*/
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Remplacer' ;
FCKLang['DlgMyReplaceFindLbl'] = 'Chercher:' ;
FCKLang['DlgMyReplaceReplaceLbl'] = 'Remplacer par:' ;
FCKLang['DlgMyReplaceCaseChk'] = 'Respecter la casse' ;
FCKLang['DlgMyReplaceReplaceBtn'] = 'Remplacer' ;
FCKLang['DlgMyReplaceReplAllBtn'] = 'Remplacer Tout' ;
FCKLang['DlgMyReplaceWordChk'] = 'Mot entier' ;
FCKLang['DlgMyFindTitle'] = 'Plugin - Chercher' ;
FCKLang['DlgMyFindFindBtn'] = 'Chercher' ;

@ -0,0 +1,33 @@
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Italian language file for the sample plugin.
*/
FCKLang['DlgMyReplaceTitle'] = 'Plugin - Sostituisci' ;
FCKLang['DlgMyReplaceFindLbl'] = 'Trova:' ;
FCKLang['DlgMyReplaceReplaceLbl'] = 'Sostituisci con:' ;
FCKLang['DlgMyReplaceCaseChk'] = 'Maiuscole/minuscole' ;
FCKLang['DlgMyReplaceReplaceBtn'] = 'Sostituisci' ;
FCKLang['DlgMyReplaceReplAllBtn'] = 'Sostituisci tutto' ;
FCKLang['DlgMyReplaceWordChk'] = 'Parola intera' ;
FCKLang['DlgMyFindTitle'] = 'Plugin - Cerca' ;
FCKLang['DlgMyFindFindBtn'] = 'Cerca' ;

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

@ -0,0 +1,135 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the sample "Replace" plugin window.
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="noindex, nofollow" name="robots">
<script type="text/javascript">
var oEditor = window.parent.InnerDialogLoaded() ;
function OnLoad()
{
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage( document ) ;
window.parent.SetAutoSize( true ) ;
}
function btnStat(frm)
{
document.getElementById('btnReplace').disabled =
document.getElementById('btnReplaceAll').disabled =
( document.getElementById('txtFind').value.length == 0 ) ;
}
function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll, hasFound )
{
for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
{
var oNode = parentNode.childNodes[i] ;
if ( oNode.nodeType == 3 )
{
var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
if ( oNode.nodeValue != sReplaced )
{
oNode.nodeValue = sReplaced ;
if ( ! replaceAll )
return true ;
hasFound = true ;
}
}
hasFound = ReplaceTextNodes( oNode, regex, replaceValue, replaceAll, hasFound ) ;
if ( ! replaceAll && hasFound )
return true ;
}
return hasFound ;
}
function GetRegexExpr()
{
if ( document.getElementById('chkWord').checked )
var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
else
var sExpr = document.getElementById('txtFind').value ;
return sExpr ;
}
function GetCase()
{
return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
}
function Replace()
{
var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ;
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false ) ;
}
function ReplaceAll()
{
var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ;
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true ) ;
window.parent.Cancel() ;
}
</script>
</head>
<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
<div align="center">
This is my Plugin!
</div>
<table cellSpacing="3" cellPadding="2" width="100%" border="0">
<tr>
<td noWrap><label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>
</td>
<td width="100%"><input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
</td>
<td><input id="btnReplace" style="WIDTH: 100%" disabled onclick="Replace();" type="button"
value="Replace" fckLang="DlgMyReplaceReplaceBtn">
</td>
</tr>
<tr>
<td vAlign="top" nowrap><label for="txtReplace" fckLang="DlgMyReplaceReplaceLbl">Replace
with:</label>
</td>
<td vAlign="top"><input id="txtReplace" style="WIDTH: 100%" tabIndex="2" type="text">
</td>
<td><input id="btnReplaceAll" disabled onclick="ReplaceAll()" type="button" value="Replace All"
fckLang="DlgMyReplaceReplAllBtn">
</td>
</tr>
<tr>
<td vAlign="bottom" colSpan="3">&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
case</label>
<br>
&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
whole word</label>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,73 @@
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is a sample plugin definition file.
*/
// Here we define our custom Style combo, with custom widths.
var oMyBigStyleCombo = new FCKToolbarStyleCombo() ;
oMyBigStyleCombo.FieldWidth = 250 ;
oMyBigStyleCombo.PanelWidth = 300 ;
FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ;
// ##### Defining a custom context menu entry.
// ## 1. Define the command to be executed when selecting the context menu item.
var oMyCMCommand = new Object() ;
oMyCMCommand.Name = 'OpenImage' ;
// This is the standard function used to execute the command (called when clicking in the context menu item).
oMyCMCommand.Execute = function()
{
// This command is called only when an image element is selected (IMG).
// Get image URL (src).
var sUrl = FCKSelection.GetSelectedElement().src ;
// Open the URL in a new window.
window.top.open( sUrl ) ;
}
// This is the standard function used to retrieve the command state (it could be disabled for some reason).
oMyCMCommand.GetState = function()
{
// Let's make it always enabled.
return FCK_TRISTATE_OFF ;
}
// ## 2. Register our custom command.
FCKCommands.RegisterCommand( 'OpenImage', oMyCMCommand ) ;
// ## 3. Define the context menu "listener".
var oMyContextMenuListener = new Object() ;
// This is the standard function called right before sowing the context menu.
oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
{
// Let's show our custom option only for img.
if ( tagName == 'IMG' )
{
contextMenu.AddSeparator() ;
contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ;
}
}
// ## 4. Register our context menu listener.
FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save