@ -0,0 +1,8 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,17 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="exploded-war" name="jspmjsfglxthsg8101W6B8:war exploded">
|
||||
<output-path>$PROJECT_DIR$/classes/artifacts/jspmjsfglxthsg8101W6B8_war_exploded</output-path>
|
||||
<root id="root">
|
||||
<element id="directory" name="WEB-INF">
|
||||
<element id="directory" name="classes">
|
||||
<element id="module-output" name="jspmjsfglxthsg8101W6B8" />
|
||||
</element>
|
||||
<element id="directory" name="lib">
|
||||
<element id="library" level="module" name="zxing-1.6-core.jar" module-name="jspmjsfglxthsg8101W6B8" />
|
||||
<element id="library" level="project" name="lib" />
|
||||
</element>
|
||||
</element>
|
||||
<element id="javaee-facet-resources" facet="jspmjsfglxthsg8101W6B8/web/Web" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/control/MainCtrl.java" charset="GBK" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,17 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Java EE 6-Java EE 6">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.annotation.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.servlet.jsp.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.jms.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.servlet.jsp.jstl.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.transaction.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.resource.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.persistence.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.servlet.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/WebRoot/WEB-INF/lib/javax.ejb.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
@ -0,0 +1,10 @@
|
||||
<component name="libraryTable">
|
||||
<library name="lib">
|
||||
<CLASSES>
|
||||
<root url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
<jarDirectory url="file://$PROJECT_DIR$/WebRoot/WEB-INF/lib" recursive="false" />
|
||||
</library>
|
||||
</component>
|
@ -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="1.8" 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$/jspmjsfglxthsg8101W6B8.iml" filepath="$PROJECT_DIR$/jspmjsfglxthsg8101W6B8.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$/../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path=""/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
@ -0,0 +1,3 @@
|
||||
#Thu Sep 17 22:13:03 CST 2015
|
||||
eclipse.preferences.version=1
|
||||
encoding//WebRoot/index.jsp=UTF-8
|
@ -0,0 +1,12 @@
|
||||
#Fri Sep 18 22:19:32 CST 2015
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="QRCode">
|
||||
<wb-resource deploy-path="/" source-path="/WebRoot"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
|
||||
<property name="context-root" value="/QRCode"/>
|
||||
<property name="java-output-path" value="/QRCode/WebRoot/WEB-INF/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<installed facet="java" version="1.5"/>
|
||||
<installed facet="jst.web" version="2.5"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
</faceted-project>
|
@ -0,0 +1 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
@ -0,0 +1 @@
|
||||
Window
|
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="gb2312"?>
|
||||
<web-app version="2.5"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
||||
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
<display-name></display-name>
|
||||
<servlet>
|
||||
<servlet-name>QRCode</servlet-name>
|
||||
<servlet-class>servlet.QRCode</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>QRCode</servlet-name>
|
||||
<url-pattern>/qrcode</url-pattern>
|
||||
</servlet-mapping>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
<filter>
|
||||
<filter-name>characterEncoding</filter-name>
|
||||
<filter-class>util.SetChar</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>characterEncoding</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
|
||||
<servlet>
|
||||
<description>This is the description of my J2EE component</description>
|
||||
<display-name>This is the display name of my J2EE component</display-name>
|
||||
<servlet-name>MainCtrl</servlet-name>
|
||||
<servlet-class>control.MainCtrl</servlet-class>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<description>This is the description of my J2EE component</description>
|
||||
<display-name>This is the display name of my J2EE component</display-name>
|
||||
<servlet-name>Upload</servlet-name>
|
||||
<servlet-class>control.Upload</servlet-class>
|
||||
</servlet>
|
||||
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>MainCtrl</servlet-name>
|
||||
<url-pattern>/jspmjsfglxthsg8101W6B8</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Upload</servlet-name>
|
||||
<url-pattern>/upload</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
</web-app>
|
||||
|
||||
|
@ -0,0 +1,135 @@
|
||||
package control;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import util.Info;
|
||||
|
||||
public class Upload extends HttpServlet {
|
||||
|
||||
/**
|
||||
* Constructor of the object.
|
||||
*/
|
||||
public Upload() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Destruction of the servlet. <br>
|
||||
*/
|
||||
public void destroy() {
|
||||
super.destroy(); // Just puts "destroy" string in log
|
||||
// Put your code here
|
||||
}
|
||||
|
||||
/**
|
||||
* The doGet method of the servlet. <br>
|
||||
*
|
||||
* This method is called when a form has its tag value method equals to get.
|
||||
*
|
||||
* @param request the request send by the client to the server
|
||||
* @param response the response send by the server to the client
|
||||
* @throws ServletException if an error occurred
|
||||
* @throws IOException if an error occurred
|
||||
*/
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
this.doPost(request, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* The doPost method of the servlet. <br>
|
||||
*
|
||||
* This method is called when a form has its tag value method equals to post.
|
||||
*
|
||||
* @param request the request send by the client to the server
|
||||
* @param response the response send by the server to the client
|
||||
* @throws ServletException if an error occurred
|
||||
* @throws IOException if an error occurred
|
||||
*/
|
||||
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
StringBuffer sb = new StringBuffer(50);
|
||||
response.setContentType("application/x-msdownload;charset=GB2312");
|
||||
try {
|
||||
response.setHeader("Content-Disposition", new String(sb.toString()
|
||||
.getBytes(), "ISO8859-1"));
|
||||
} catch (UnsupportedEncodingException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
}
|
||||
String filename = request.getParameter("filename");
|
||||
if (request.getHeader("User-Agent").toLowerCase().indexOf("firefox") > 0){
|
||||
try {
|
||||
filename = new String(filename.getBytes("gb2312"), "ISO8859-1");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
else
|
||||
if (request.getHeader("User-Agent").toUpperCase().indexOf("MSIE") > 0){
|
||||
try {
|
||||
filename = URLEncoder.encode(filename, "gb2312");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
// TODO Auto-generated catch block
|
||||
|
||||
}
|
||||
}
|
||||
response.setContentType("text/plain");
|
||||
response.setHeader("Location",filename);
|
||||
response.reset();
|
||||
response.setHeader("Cache-Control", "max-age=0" );
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + filename);
|
||||
|
||||
|
||||
try {
|
||||
BufferedInputStream bis = null;
|
||||
BufferedOutputStream bos = null;
|
||||
OutputStream fos = null;
|
||||
// File f = new File(request.getRealPath("/upfile/")+"/"+filename);
|
||||
//System.out.println(f);
|
||||
bis = new BufferedInputStream((InputStream)new FileInputStream(request.getRealPath("/upfile/")+"/"+filename));
|
||||
fos = response.getOutputStream();
|
||||
bos = new BufferedOutputStream(fos);
|
||||
|
||||
int bytesRead = 0;
|
||||
byte[] buffer = new byte[5 * 1024];
|
||||
while ((bytesRead = bis.read(buffer)) != -1) {
|
||||
bos.write(buffer, 0, bytesRead);
|
||||
}
|
||||
bos.close();
|
||||
bis.close();
|
||||
fos.close();
|
||||
|
||||
new Info().delPic(request.getRealPath("/upfile/")+"/", filename);
|
||||
} catch (Exception e) {
|
||||
|
||||
}finally{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialization of the servlet. <br>
|
||||
*
|
||||
* @throws ServletException if an error occurs
|
||||
*/
|
||||
public void init() throws ServletException {
|
||||
// Put your code here
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
|
||||
<%@page import="dao.CommDAO"%>
|
||||
<%@page import="util.Info"%>
|
||||
<%
|
||||
String table = request.getParameter("table")==null?"":request.getParameter("table");
|
||||
String col = request.getParameter("col")==null?"":request.getParameter("col");
|
||||
String value = request.getParameter("value")==null?"":request.getParameter("value");
|
||||
String checktype = request.getParameter("checktype")==null?"":request.getParameter("checktype");
|
||||
String valuecopy = "";
|
||||
for(String str:value.split(","))
|
||||
{
|
||||
if(str.startsWith("sysuser-"))
|
||||
{
|
||||
str = Info.getUser(request).get(str.split("-")[1]).toString();
|
||||
}
|
||||
valuecopy+=str+",";
|
||||
}
|
||||
if(valuecopy.length()>1)valuecopy=valuecopy.substring(0,valuecopy.length()-1);
|
||||
value = valuecopy;
|
||||
if(checktype.equals("insert"))
|
||||
{
|
||||
value = Info.getGBKStr(value);
|
||||
System.out.println(value);
|
||||
List list = new CommDAO().select("select * from "+table+" where "+col+"='"+value+"'");
|
||||
if(list.size()>0)
|
||||
{
|
||||
out.print("Y");
|
||||
}else{
|
||||
out.print("N");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(checktype.equals("iinsert"))
|
||||
{
|
||||
value = Info.getGBKStr(value);
|
||||
String fno = request.getParameter("fno");
|
||||
List list = new CommDAO().select("select * from fangyd where fno='"+fno+"' and stime<='"+value+"' and etime>='"+value+"'");
|
||||
if(list.size()>0)
|
||||
{
|
||||
out.print("Y");
|
||||
}else{
|
||||
out.print("N");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(checktype.equals("zhinsert"))
|
||||
{
|
||||
value = Info.getGBKStr(value);
|
||||
System.out.println(value);
|
||||
String sql = "select * from "+table+" where 1=1 ";
|
||||
String[] cols = col.split(",");
|
||||
String[] values = value.split(",");
|
||||
for(int i=0;i<cols.length;i++)
|
||||
{
|
||||
String pcol = cols[i]==null?"":cols[i];
|
||||
String pvalue = values[i]==null?"":values[i];
|
||||
if(pcol.equals(""))continue;
|
||||
if(pvalue.equals(""))continue;
|
||||
sql+=" and "+pcol+"='"+pvalue+"' " ;
|
||||
}
|
||||
System.out.println(sql);
|
||||
List list = new CommDAO().select(sql);
|
||||
if(list.size()>0)
|
||||
{
|
||||
out.print("Y");
|
||||
}else{
|
||||
out.print("N");
|
||||
}
|
||||
}
|
||||
|
||||
if(checktype.equals("update"))
|
||||
{
|
||||
String id = request.getParameter("id")==null?"":request.getParameter("id");
|
||||
value = Info.getGBKStr(value);
|
||||
System.out.println(value);
|
||||
List list = new CommDAO().select("select * from "+table+" where "+col+"='"+value+"' and id!="+id);
|
||||
System.out.println("select * from "+table+" where "+col+"='"+value+"' and id!="+id);
|
||||
if(list.size()>0)
|
||||
{
|
||||
out.print("Y");
|
||||
}else{
|
||||
out.print("N");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(checktype.equals("zhupdate"))
|
||||
{
|
||||
String id = request.getParameter("id")==null?"":request.getParameter("id");
|
||||
value = Info.getGBKStr(value);
|
||||
String sql = "select * from "+table+" where 1=1 ";
|
||||
String[] cols = col.split(",");
|
||||
String[] values = value.split(",");
|
||||
for(int i=0;i<cols.length;i++)
|
||||
{
|
||||
String pcol = cols[i]==null?"":cols[i];
|
||||
String pvalue = values[i]==null?"":values[i];
|
||||
if(pcol.equals(""))continue;
|
||||
if(pvalue.equals(""))continue;
|
||||
sql+=" and "+pcol+"='"+pvalue+"' " ;
|
||||
}
|
||||
sql+=" and id!="+id;
|
||||
System.out.println(sql);
|
||||
List list = new CommDAO().select(sql);
|
||||
|
||||
if(list.size()>0)
|
||||
{
|
||||
out.print("Y");
|
||||
}else{
|
||||
out.print("N");
|
||||
}
|
||||
}
|
||||
|
||||
%>
|
@ -0,0 +1,173 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
|
||||
<%@page import="dao.CommDAO"%>
|
||||
<%@page import="util.Info"%>
|
||||
<%
|
||||
String glb = request.getParameter("glb")==null?"":request.getParameter("glb");
|
||||
String glzd = request.getParameter("glzd")==null?"":request.getParameter("glzd");
|
||||
String value = request.getParameter("value")==null?"":request.getParameter("value");
|
||||
String ctype = request.getParameter("ctype")==null?"":request.getParameter("ctype");
|
||||
String jlzd = request.getParameter("jlzd")==null?"":request.getParameter("jlzd");
|
||||
String jlzdb = request.getParameter("jlzdb")==null?"":request.getParameter("jlzdb");
|
||||
String zd = request.getParameter("zd")==null?"":request.getParameter("zd");
|
||||
System.out.println(ctype+" ------------------------------------------");
|
||||
glzd = Info.getGBKStr(glzd);
|
||||
value = Info.getGBKStr(value);
|
||||
String insql = value.replaceAll(" ","");
|
||||
String insqld = "";
|
||||
for(String str:insql.split("-"))
|
||||
{
|
||||
if(str.split(":").length==1){
|
||||
insqld+=str.trim()+",";
|
||||
}else{
|
||||
insqld+=str.split(":")[1].trim()+",";
|
||||
}
|
||||
}
|
||||
|
||||
if(insqld.length()>0)insqld = insqld.substring(0,insqld.length()-1);
|
||||
String likesql = "";
|
||||
for(String str:insqld.split(","))
|
||||
{
|
||||
if(!str.trim().equals(""))
|
||||
{
|
||||
if(jlzdb.equals("tglparentid")||jlzdb.equals("datashowname"))
|
||||
{
|
||||
likesql+= " or tglparentid in( select id from "+glb+" where datashowname like'%"+str+"%' ) ";
|
||||
}else{
|
||||
likesql+= " or "+jlzdb+" like'%"+str+"%' ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
String sql = "select * from "+glb+" where 1!=1 "+likesql;
|
||||
|
||||
if(ctype.equals("select")){
|
||||
String select = "@@@";
|
||||
for(HashMap permap:new CommDAO().select(sql)){
|
||||
String optionstr = "";
|
||||
if(glzd.split(";").length==1){
|
||||
optionstr=permap.get(glzd.split("~")[0]).toString();
|
||||
}else{
|
||||
for(String str:glzd.split(";"))
|
||||
{
|
||||
String zdstr = str.split("~")[0];
|
||||
String zdnamestr = str.split("~")[1].equals("无名")?"":(str.split("~")[1]+":");
|
||||
optionstr+=zdnamestr+permap.get(zdstr)+" - ";
|
||||
}
|
||||
}
|
||||
if(optionstr.indexOf(" - ")>-1)optionstr=optionstr.substring(0,optionstr.length()-3);
|
||||
select+=optionstr+"@@@";
|
||||
}
|
||||
if(select.length()>3)select.substring(0,select.length()-3).trim();
|
||||
|
||||
out.print(select);
|
||||
}
|
||||
|
||||
|
||||
if(ctype.equals("text")){
|
||||
String select = "";
|
||||
for(HashMap permap:new CommDAO().select(sql)){
|
||||
String optionstr = "";
|
||||
if(glzd.split(";").length==1){
|
||||
optionstr=permap.get(glzd.split("~")[0]).toString();
|
||||
}else{
|
||||
for(String str:glzd.split(";"))
|
||||
{
|
||||
String zdstr = str.split("~")[0];
|
||||
String zdnamestr = str.split("~")[1].equals("无名")?"":(str.split("~")[1]+":");
|
||||
optionstr+=zdnamestr+permap.get(zdstr)+" - ";
|
||||
}
|
||||
}
|
||||
if(optionstr.indexOf(" - ")>-1)optionstr=optionstr.substring(0,optionstr.length()-3);
|
||||
select+=optionstr+" ";
|
||||
}
|
||||
|
||||
out.print(select.trim());
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(ctype.equals("radio")){
|
||||
String radio = "";
|
||||
int dxii = 0;
|
||||
for(HashMap permap:new CommDAO().select(sql)){
|
||||
String check="";
|
||||
if(dxii==0)check="checked=checked";
|
||||
String optionstr = "";
|
||||
if(glzd.split(";").length==1){
|
||||
optionstr=permap.get(glzd.split("~")[0]).toString();
|
||||
}else{
|
||||
|
||||
for(String str:glzd.split(";"))
|
||||
{
|
||||
String zdstr = str.split("~")[0];
|
||||
String zdnamestr = str.split("~")[1].equals("无名")?"":(str.split("~")[1]+":");
|
||||
optionstr+=zdnamestr+permap.get(zdstr)+" - ";
|
||||
}
|
||||
}
|
||||
if(optionstr.indexOf(" - ")>-1)optionstr=optionstr.substring(0,optionstr.length()-3);
|
||||
radio+="<label><input type='radio' name='"+zd+"' "+check+" value=\""+optionstr+"\">"+optionstr+"</label>\n";
|
||||
dxii++;
|
||||
}
|
||||
if(radio.length()>3)radio.substring(0,radio.length()-3).trim();
|
||||
|
||||
out.print(radio);
|
||||
}
|
||||
|
||||
|
||||
if(ctype.equals("checkbox")){
|
||||
String checkbox = "";
|
||||
int dxii = 0;
|
||||
for(HashMap permap:new CommDAO().select(sql)){
|
||||
String check="";
|
||||
if(dxii==0)check="checked=checked";
|
||||
String optionstr = "";
|
||||
System.out.println(glzd);
|
||||
if(glzd.split(";").length==1){
|
||||
optionstr=permap.get(glzd.split("~")[0]).toString();
|
||||
}else{
|
||||
|
||||
for(String str:glzd.split(";"))
|
||||
{
|
||||
String zdstr = str.split("~")[0];
|
||||
String zdnamestr = str.split("~")[1].equals("无名")?"":(str.split("~")[1]+":");
|
||||
optionstr+=zdnamestr+permap.get(zdstr)+" - ";
|
||||
}
|
||||
}
|
||||
if(optionstr.indexOf(" - ")>-1)optionstr=optionstr.substring(0,optionstr.length()-3);
|
||||
checkbox+="<label><input type='checkbox' name='"+zd+"' "+check+" value=\""+optionstr+"\">"+optionstr+"</label>\n";
|
||||
dxii++;
|
||||
}
|
||||
checkbox+="<input type=hidden name='"+zd+"' value='' />";
|
||||
if(checkbox.length()>3)checkbox.substring(0,checkbox.length()-3).trim();
|
||||
|
||||
out.print(checkbox);
|
||||
}
|
||||
|
||||
|
||||
if(ctype.equals("checkboxdk")){
|
||||
String checkbox = "";
|
||||
int i=0;
|
||||
for(HashMap permap:new CommDAO().select(sql)){
|
||||
|
||||
String optionstr = "";
|
||||
for(String str:glzd.split(";"))
|
||||
{
|
||||
String zdstr = str.split("~")[0];
|
||||
String zdnamestr = str.split("~")[1].equals("无名")?"":(str.split("~")[1]+":");
|
||||
optionstr+=zdnamestr+permap.get(zdstr)+" - ";
|
||||
}
|
||||
if(optionstr.length()>0)optionstr=optionstr.substring(0,optionstr.length()-3);
|
||||
String nbs = "";
|
||||
if(i>0)nbs=" ";
|
||||
checkbox+="<label>"+nbs+"<input type='checkbox' name='"+zd+"' value=\""+optionstr+"\">"+optionstr+"</label> \n";
|
||||
checkbox+="<label> - 这里要改 <input type='text' size='5' name='"+optionstr+"' value=\"\"></label><br />\n";
|
||||
i++;
|
||||
}
|
||||
checkbox+="<input type=hidden name='"+zd+"' value='' /><input type=hidden name='dk-"+zd+"-value' value='这里要改' />";
|
||||
|
||||
out.print(checkbox);
|
||||
}
|
||||
|
||||
|
||||
%>
|
@ -0,0 +1,30 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
|
||||
<%@page import="dao.CommDAO"%>
|
||||
<%@page import="util.Info"%>
|
||||
<%
|
||||
String blno = request.getParameter("blno")==null?"":request.getParameter("blno");
|
||||
String isyb = new CommDAO().select("select * from bl where blno='"+blno+"'").get(0).get("isyb").toString();
|
||||
|
||||
String select = "@@@";
|
||||
|
||||
if(isyb.equals("否")){
|
||||
for(HashMap permap:new CommDAO().select("select * from yaopin")){
|
||||
String optionstr = "";
|
||||
select+=permap.get("yname")+" - 单价:"+permap.get("price")+"@@@";
|
||||
}
|
||||
}else{
|
||||
for(HashMap permap:new CommDAO().select("select * from yaopin where isyb='是'")){
|
||||
String optionstr = "";
|
||||
select+=permap.get("yname")+" - 单价:"+permap.get("ybprice")+"@@@";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(select.length()>3)select.substring(0,select.length()-3).trim();
|
||||
|
||||
out.print(select);
|
||||
|
||||
|
||||
%>
|
@ -0,0 +1,36 @@
|
||||
@charset "gb2312";
|
||||
body { color:#5A5A5A; line-height:24px;
|
||||
margin:0px;
|
||||
text-align:center;
|
||||
font-size: 12px;
|
||||
background-image: url(../images/back.jpg);
|
||||
}
|
||||
a{color:#5A5A5A; text-decoration: none}
|
||||
a:hover{
|
||||
color: #CA3225;
|
||||
text-decoration: none;
|
||||
}
|
||||
.meun{width:850px; color:#fff; float:left; margin-left:115px;}
|
||||
.meun a {display:block;text-align: center;color:#fff;text-decoration:none; width:103px;line-height:30px;float:left;font-size:12px;height:31px;}
|
||||
.meun a:link{color:#fff;text-decoration: none;}
|
||||
.meun a:visited {color:#fff;text-decoration: none;}
|
||||
.meun a:hover {color: #fff;background: url(../images/meun1.jpg);cursor: pointer; width:93px;}
|
||||
.meun a.m_a{
|
||||
color: #ffae00;
|
||||
}
|
||||
.meun a.m_a:hover{
|
||||
color: #fff
|
||||
}
|
||||
.dd{ border-bottom:1px dotted #CCCCCC}
|
||||
.hd{ border-bottom:1px solid #999}
|
||||
.left{width:180px; color:#000; float:left;}
|
||||
.left a {display:block;text-align: left;color:#000;text-decoration:none; width:180px;line-height:27px;float:left;height:27px;background: url(../images/hq.jpg);}
|
||||
.left a:link{color:#000;text-decoration: none;}
|
||||
.lin{ margin-left:20px;}
|
||||
.left a:visited {color:#000;text-decoration: none;}
|
||||
.left a:hover {color: #fff;background: url(../images/hg.jpg);cursor: pointer; width:180px;}
|
||||
.right{ color:#FFFFFF; font-weight:bold;}
|
||||
.right a{ color:#FFFFFF;}
|
||||
.right a:link{color:#fff;text-decoration: none;}
|
||||
.right a:visited {color:#fff;text-decoration: none;}
|
||||
.right a:hover {color: #fff; text-decoration:underline}
|
@ -0,0 +1,119 @@
|
||||
//替换空格
|
||||
function toReplace(strs) {
|
||||
if (strs.length > 0) {
|
||||
alert(strs.replace(new RegExp("\uff0c", "gm"), ","));
|
||||
}
|
||||
}
|
||||
var http_request = false;
|
||||
function send_request(productId, productName) {
|
||||
http_request = false;
|
||||
if (productId == "") {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
// alert(productName);
|
||||
// alert(productId);
|
||||
var pro = escape(productName);
|
||||
var url = "product!toCollect.action?productId=" + productId + "&productName=" + pro + "&rodom=" + new Date().getTime();
|
||||
// var url="product!toCollect.action?productName="+pro+"&productId="+productId;
|
||||
if (window.XMLHttpRequest) {
|
||||
http_request = new XMLHttpRequest();
|
||||
if (http_request.overrideMimeType) {
|
||||
http_request.overrideMimeType("text/xml");
|
||||
}
|
||||
} else {
|
||||
if (window.ActiveXObject) {
|
||||
try {
|
||||
http_request = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
}
|
||||
catch (e) {
|
||||
try {
|
||||
http_request = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!http_request) {
|
||||
window.alert("\u4f60\u6240\u8bf7\u6c42\u7684\u9875\u9762\u5f02\u5e38!");
|
||||
return false;
|
||||
}
|
||||
http_request.onreadystatechange = processResponse;
|
||||
http_request.open("GET", url, true);
|
||||
http_request.send(null);
|
||||
}
|
||||
}
|
||||
function processResponse() {
|
||||
if (http_request.readyState == 4) {
|
||||
if (http_request.status == 200) {
|
||||
var responseText = http_request.responseText;
|
||||
display(responseText);
|
||||
} else {
|
||||
alert("XXXX!");
|
||||
}
|
||||
}
|
||||
}
|
||||
function display(responseText) {
|
||||
alert(responseText);
|
||||
//window.location.href="index.jsp";
|
||||
}
|
||||
|
||||
|
||||
//var http_request2= false;
|
||||
//
|
||||
// function send_request2(intergral){
|
||||
// alert(intergral);
|
||||
// http_request2= false;
|
||||
// if (intergral==""){
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// else{
|
||||
// var url="product!toIntegeral.action?intergral="+intergral;
|
||||
// if(window.XMLHttpRequest) {
|
||||
// http_request2= new XMLHttpRequest();
|
||||
// if (http_request2.overrideMimeType) {
|
||||
// http_request2.overrideMimeType("text/xml");
|
||||
// }
|
||||
// }
|
||||
// else if (window.ActiveXObject) {
|
||||
// try {
|
||||
// http_request2 = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
// } catch (e) {
|
||||
// try {
|
||||
// http_request2 = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
// } catch (e) {}
|
||||
// }
|
||||
// }
|
||||
// if (!http_request2) {
|
||||
// window.alert("你所请求的页面异常!");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// http_request2.onreadystatechange = processResponse2;
|
||||
// http_request2.open("GET", url, true);
|
||||
// http_request2.send(null);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// function processResponse2() {
|
||||
// if (http_request2.readyState == 4) {
|
||||
// if (http_request2.status == 200) {
|
||||
// var responseText2 = http_request2.responseText;
|
||||
// display2(responseText2);
|
||||
// } else {
|
||||
// alert("XXXX!");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// function display2(responseText2){
|
||||
// if(responseText2=="12"){
|
||||
// alert("12");
|
||||
// }else{
|
||||
// window.location.href="/jsplib/tointegral_jsp/showIntegeralCart.jsp";
|
||||
// }
|
||||
// }
|
||||
//
|
||||
|
@ -0,0 +1,121 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@font-face {
|
||||
font-family: "dashboard";
|
||||
src:url("../fonts/dashboard.eot");
|
||||
src:url("../fonts/dashboard.eot?#iefix") format("embedded-opentype"),
|
||||
url("../fonts/dashboard.woff") format("woff"),
|
||||
url("../fonts/dashboard.ttf") format("truetype"),
|
||||
url("../fonts/dashboard.svg#dashboard") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
|
||||
[data-icon]:before {
|
||||
font-family: "dashboard" !important;
|
||||
content: attr(data-icon);
|
||||
font-style: normal !important;
|
||||
font-weight: normal !important;
|
||||
font-variant: normal !important;
|
||||
text-transform: none !important;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: "dashboard" !important;
|
||||
font-style: normal !important;
|
||||
font-weight: normal !important;
|
||||
font-variant: normal !important;
|
||||
text-transform: none !important;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-home:before {
|
||||
content: "\62";
|
||||
}
|
||||
.icon-form:before {
|
||||
content: "\61";
|
||||
}
|
||||
.icon-list:before {
|
||||
content: "\63";
|
||||
}
|
||||
.icon-presentation:before {
|
||||
content: "\65";
|
||||
}
|
||||
.icon-bill:before {
|
||||
content: "\66";
|
||||
}
|
||||
.icon-check:before {
|
||||
content: "\67";
|
||||
}
|
||||
.icon-list-1:before {
|
||||
content: "\68";
|
||||
}
|
||||
.icon-padnote:before {
|
||||
content: "\69";
|
||||
}
|
||||
.icon-pencil-case:before {
|
||||
content: "\6a";
|
||||
}
|
||||
.icon-user:before {
|
||||
content: "\6b";
|
||||
}
|
||||
.icon-bars:before {
|
||||
content: "\6c";
|
||||
}
|
||||
.icon-line-chart:before {
|
||||
content: "\70";
|
||||
}
|
||||
.icon-flask:before {
|
||||
content: "\6d";
|
||||
}
|
||||
.icon-grid:before {
|
||||
content: "\6e";
|
||||
}
|
||||
.icon-picture:before {
|
||||
content: "\6f";
|
||||
}
|
||||
.icon-website:before {
|
||||
content: "\71";
|
||||
}
|
||||
.icon-screen:before {
|
||||
content: "\72";
|
||||
}
|
||||
.icon-interface-windows:before {
|
||||
content: "\73";
|
||||
}
|
||||
.icon-clock:before {
|
||||
content: "\74";
|
||||
}
|
||||
.icon-rss-feed:before {
|
||||
content: "\75";
|
||||
}
|
||||
.icon-mail:before {
|
||||
content: "\64";
|
||||
}
|
||||
.icon-ios-email-outline:before {
|
||||
content: "\76";
|
||||
}
|
||||
.icon-paper-airplane:before {
|
||||
content: "\77";
|
||||
}
|
||||
.icon-ios-email:before {
|
||||
content: "\78";
|
||||
}
|
||||
.icon-page:before {
|
||||
content: "\41";
|
||||
}
|
||||
.icon-close:before {
|
||||
content: "\79";
|
||||
}
|
||||
.icon-search:before {
|
||||
content: "\7a";
|
||||
}
|
@ -0,0 +1 @@
|
||||
.gmpc{position:relative}.gmpc-percent-text{position:absolute;width:100%;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}
|
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,148 @@
|
||||
body {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
input[type=submit],input[name=submit]{
|
||||
color: #fff;
|
||||
background-color:#FF66CC;
|
||||
border-color:#993399;
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.42857143;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#input[type=submit2]{
|
||||
color: #fff;
|
||||
background-color: #337ab7;
|
||||
border-color: #2e6da4;
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.42857143;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
a:active:hover{
|
||||
color: #fff;
|
||||
background-color: #269abc;
|
||||
border-color: #1b6d85;
|
||||
background-image:none;
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.42857143;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.form-control{
|
||||
width: 300px;
|
||||
margin: 10px;
|
||||
border:1px solid #9c5555 !important;
|
||||
float:left;
|
||||
|
||||
|
||||
}
|
||||
.form-control2{
|
||||
width: 100px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control3{
|
||||
width: 600px;
|
||||
margin: 10px;
|
||||
height:58px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control4{
|
||||
width: 140px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control5{
|
||||
width: 600px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.fy{text-align:center;padding-top:20px}
|
||||
.fy a{display:inline-block;padding:4px 10px;border:1px solid #f5e703;margin:0 2px;color:#d75e15;text-decoration:none}
|
||||
.fy .ac{background:#3c9fee;border-color:#83c414;color:#fff}
|
||||
.fy a:hover{background:#FFCC99;border-color:#83c414;color:#fff}
|
||||
|
||||
.button, button, input[type="button"]{
|
||||
display: inline-block;
|
||||
|
||||
background:#FF9966;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
-webkit-transition: all 0.2s ease-in-out;
|
||||
-moz-transition: all 0.2s ease-in-out;
|
||||
-ms-transition: all 0.2s ease-in-out;
|
||||
-o-transition: all 0.2s ease-in-out;
|
||||
transition: all 0.2s ease-in-out;
|
||||
font-weight: 800;
|
||||
height:30px;
|
||||
border-radius: 4px;
|
||||
border: 0;
|
||||
}
|
||||
.button:hover, .button:focus, button:hover, button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="reset"]:focus {
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
background:#CC3366;
|
||||
color: #fff
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.button1:hover {
|
||||
background-color:#FFCC99;
|
||||
color: white;
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
body {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
input[type=submit],input[name=submit]{
|
||||
color: #fff;
|
||||
background-color:#FF66CC;
|
||||
border-color:#993399;
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.42857143;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#input[type=submit2]{
|
||||
color: #fff;
|
||||
background-color: #337ab7;
|
||||
border-color: #2e6da4;
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.42857143;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
.form-control{
|
||||
width: 300px;
|
||||
margin: 10px;
|
||||
border:1px solid #9c5555 !important;
|
||||
float:left;
|
||||
|
||||
|
||||
}
|
||||
.form-control2{
|
||||
width: 100px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control3{
|
||||
width: 600px;
|
||||
margin: 10px;
|
||||
height:58px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control4{
|
||||
width: 140px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.form-control5{
|
||||
width: 600px;
|
||||
margin: 10px;
|
||||
height:28px;
|
||||
border:1px solid #996666 !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.fy{text-align:center;padding-top:20px}
|
||||
.fy a{display:inline-block;padding:4px 10px;border:1px solid #f5e703;margin:0 2px;color:#d75e15;text-decoration:none}
|
||||
.fy .ac{background:#3c9fee;border-color:#83c414;color:#fff}
|
||||
.fy a:hover{background:#FFCC99;border-color:#83c414;color:#fff}
|
||||
|
||||
.button, button, input[type="button"]{
|
||||
display: inline-block;
|
||||
|
||||
background:#FF9966;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
-webkit-transition: all 0.2s ease-in-out;
|
||||
-moz-transition: all 0.2s ease-in-out;
|
||||
-ms-transition: all 0.2s ease-in-out;
|
||||
-o-transition: all 0.2s ease-in-out;
|
||||
transition: all 0.2s ease-in-out;
|
||||
font-weight: 800;
|
||||
|
||||
border-radius: 4px;
|
||||
border: 0;
|
||||
}
|
||||
.button:hover, .button:focus, button:hover, button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="reset"]:focus {
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
background:#CC3366;
|
||||
color: #fff
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.button1:hover {
|
||||
background-color:#FFCC99;
|
||||
color: white;
|
||||
}
|
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,256 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Font Reference - Dashboard</title>
|
||||
<link href="http://fonts.googleapis.com/css?family=Dosis:400,500,700" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<style type="text/css">html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline}body{line-height:1;color:#000;background:#fff}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0;vertical-align:middle}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}a img{border:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{font-family:'Dosis','Tahoma',sans-serif}.container{margin:15px auto;width:80%}h1{margin:40px 0 20px;font-weight:700;font-size:38px;line-height:32px;color:#fb565e}h2{font-size:18px;padding:0 0 21px 5px;margin:45px 0 0 0;text-transform:uppercase;font-weight:500}.small{font-size:14px;color:#a5adb4;}.small a{color:#a5adb4;}.small a:hover{color:#fb565e}.glyphs.character-mapping{margin:0 0 20px 0;padding:20px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}.glyphs.character-mapping li{margin:0 30px 20px 0;display:inline-block;width:90px}.glyphs.character-mapping .icon{margin:10px 0 10px 15px;padding:15px;position:relative;width:55px;height:55px;color:#162a36 !important;overflow:hidden;-webkit-border-radius:3px;border-radius:3px;font-size:32px;}.glyphs.character-mapping .icon svg{fill:#000}.glyphs.character-mapping input{margin:0;padding:5px 0;line-height:12px;font-size:12px;display:block;width:100%;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;text-align:center;outline:0;}.glyphs.character-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.character-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.css-mapping{margin:0 0 60px 0;padding:30px 0 20px 30px;color:rgba(0,0,0,0.5);border:1px solid #d8e0e5;-webkit-border-radius:3px;border-radius:3px;}.glyphs.css-mapping li{margin:0 30px 20px 0;padding:0;display:inline-block;overflow:hidden}.glyphs.css-mapping .icon{margin:0;margin-right:10px;padding:13px;height:50px;width:50px;color:#162a36 !important;overflow:hidden;float:left;font-size:24px}.glyphs.css-mapping input{margin:0;margin-top:5px;padding:8px;line-height:16px;font-size:16px;display:block;width:150px;height:40px;border:1px solid #d8e0e5;-webkit-border-radius:5px;border-radius:5px;background:#fff;outline:0;float:right;}.glyphs.css-mapping input:focus{border:1px solid #fbde4a;-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}.glyphs.css-mapping input:hover{-webkit-box-shadow:inset 0 0 3px #fbde4a;box-shadow:inset 0 0 3px #fbde4a}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Dashboard</h1>
|
||||
<p class="small">This font was created with<a href="http://fontastic.me/">Fontastic</a></p>
|
||||
<h2>CSS mapping</h2>
|
||||
<ul class="glyphs css-mapping">
|
||||
<li>
|
||||
<div class="icon icon-home"></div>
|
||||
<input type="text" readonly="readonly" value="home">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-form"></div>
|
||||
<input type="text" readonly="readonly" value="form">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-list"></div>
|
||||
<input type="text" readonly="readonly" value="list">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-presentation"></div>
|
||||
<input type="text" readonly="readonly" value="presentation">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-bill"></div>
|
||||
<input type="text" readonly="readonly" value="bill">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-check"></div>
|
||||
<input type="text" readonly="readonly" value="check">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-list-1"></div>
|
||||
<input type="text" readonly="readonly" value="list-1">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-padnote"></div>
|
||||
<input type="text" readonly="readonly" value="padnote">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-pencil-case"></div>
|
||||
<input type="text" readonly="readonly" value="pencil-case">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-user"></div>
|
||||
<input type="text" readonly="readonly" value="user">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-bars"></div>
|
||||
<input type="text" readonly="readonly" value="bars">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-line-chart"></div>
|
||||
<input type="text" readonly="readonly" value="line-chart">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-flask"></div>
|
||||
<input type="text" readonly="readonly" value="flask">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-grid"></div>
|
||||
<input type="text" readonly="readonly" value="grid">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-picture"></div>
|
||||
<input type="text" readonly="readonly" value="picture">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-website"></div>
|
||||
<input type="text" readonly="readonly" value="website">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-screen"></div>
|
||||
<input type="text" readonly="readonly" value="screen">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-interface-windows"></div>
|
||||
<input type="text" readonly="readonly" value="interface-windows">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-clock"></div>
|
||||
<input type="text" readonly="readonly" value="clock">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-rss-feed"></div>
|
||||
<input type="text" readonly="readonly" value="rss-feed">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-mail"></div>
|
||||
<input type="text" readonly="readonly" value="mail">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-ios-email-outline"></div>
|
||||
<input type="text" readonly="readonly" value="ios-email-outline">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-paper-airplane"></div>
|
||||
<input type="text" readonly="readonly" value="paper-airplane">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-ios-email"></div>
|
||||
<input type="text" readonly="readonly" value="ios-email">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-page"></div>
|
||||
<input type="text" readonly="readonly" value="page">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-close"></div>
|
||||
<input type="text" readonly="readonly" value="close">
|
||||
</li>
|
||||
<li>
|
||||
<div class="icon icon-search"></div>
|
||||
<input type="text" readonly="readonly" value="search">
|
||||
</li>
|
||||
</ul>
|
||||
<h2>Character mapping</h2>
|
||||
<ul class="glyphs character-mapping">
|
||||
<li>
|
||||
<div data-icon="b" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="b">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="a" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="a">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="c" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="c">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="e" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="e">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="f" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="f">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="g" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="g">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="h" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="h">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="i" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="i">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="j" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="j">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="k" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="k">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="l" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="l">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="p" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="p">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="m" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="m">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="n" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="n">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="o" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="o">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="q" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="q">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="r" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="r">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="s" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="s">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="t" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="t">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="u" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="u">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="d" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="d">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="v" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="v">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="w" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="w">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="x" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="x">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="A" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="A">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="y" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="y">
|
||||
</li>
|
||||
<li>
|
||||
<div data-icon="z" class="icon"></div>
|
||||
<input type="text" readonly="readonly" value="z">
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<script>(function() {
|
||||
var glyphs, i, len, ref;
|
||||
|
||||
ref = document.getElementsByClassName('glyphs');
|
||||
for (i = 0, len = ref.length; i < len; i++) {
|
||||
glyphs = ref[i];
|
||||
glyphs.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'INPUT') {
|
||||
return event.target.select();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}).call(this);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,121 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@font-face {
|
||||
font-family: "dashboard";
|
||||
src:url("fonts/dashboard.eot");
|
||||
src:url("fonts/dashboard.eot?#iefix") format("embedded-opentype"),
|
||||
url("fonts/dashboard.woff") format("woff"),
|
||||
url("fonts/dashboard.ttf") format("truetype"),
|
||||
url("fonts/dashboard.svg#dashboard") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
|
||||
[data-icon]:before {
|
||||
font-family: "dashboard" !important;
|
||||
content: attr(data-icon);
|
||||
font-style: normal !important;
|
||||
font-weight: normal !important;
|
||||
font-variant: normal !important;
|
||||
text-transform: none !important;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {
|
||||
font-family: "dashboard" !important;
|
||||
font-style: normal !important;
|
||||
font-weight: normal !important;
|
||||
font-variant: normal !important;
|
||||
text-transform: none !important;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-home:before {
|
||||
content: "\62";
|
||||
}
|
||||
.icon-form:before {
|
||||
content: "\61";
|
||||
}
|
||||
.icon-list:before {
|
||||
content: "\63";
|
||||
}
|
||||
.icon-presentation:before {
|
||||
content: "\65";
|
||||
}
|
||||
.icon-bill:before {
|
||||
content: "\66";
|
||||
}
|
||||
.icon-check:before {
|
||||
content: "\67";
|
||||
}
|
||||
.icon-list-1:before {
|
||||
content: "\68";
|
||||
}
|
||||
.icon-padnote:before {
|
||||
content: "\69";
|
||||
}
|
||||
.icon-pencil-case:before {
|
||||
content: "\6a";
|
||||
}
|
||||
.icon-user:before {
|
||||
content: "\6b";
|
||||
}
|
||||
.icon-bars:before {
|
||||
content: "\6c";
|
||||
}
|
||||
.icon-line-chart:before {
|
||||
content: "\70";
|
||||
}
|
||||
.icon-flask:before {
|
||||
content: "\6d";
|
||||
}
|
||||
.icon-grid:before {
|
||||
content: "\6e";
|
||||
}
|
||||
.icon-picture:before {
|
||||
content: "\6f";
|
||||
}
|
||||
.icon-website:before {
|
||||
content: "\71";
|
||||
}
|
||||
.icon-screen:before {
|
||||
content: "\72";
|
||||
}
|
||||
.icon-interface-windows:before {
|
||||
content: "\73";
|
||||
}
|
||||
.icon-clock:before {
|
||||
content: "\74";
|
||||
}
|
||||
.icon-rss-feed:before {
|
||||
content: "\75";
|
||||
}
|
||||
.icon-mail:before {
|
||||
content: "\64";
|
||||
}
|
||||
.icon-ios-email-outline:before {
|
||||
content: "\76";
|
||||
}
|
||||
.icon-paper-airplane:before {
|
||||
content: "\77";
|
||||
}
|
||||
.icon-ios-email:before {
|
||||
content: "\78";
|
||||
}
|
||||
.icon-page:before {
|
||||
content: "\41";
|
||||
}
|
||||
.icon-close:before {
|
||||
content: "\79";
|
||||
}
|
||||
.icon-search:before {
|
||||
content: "\7a";
|
||||
}
|
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 102 B |
After Width: | Height: | Size: 100 B |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.0 KiB |
@ -0,0 +1,222 @@
|
||||
/*global $, document, LINECHARTEXMPLE*/
|
||||
$(document).ready(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
var brandPrimary = 'rgba(51, 179, 90, 1)';
|
||||
|
||||
var LINECHARTEXMPLE = $('#lineChartExample'),
|
||||
PIECHARTEXMPLE = $('#pieChartExample'),
|
||||
BARCHARTEXMPLE = $('#barChartExample'),
|
||||
RADARCHARTEXMPLE = $('#radarChartExample'),
|
||||
POLARCHARTEXMPLE = $('#polarChartExample');
|
||||
|
||||
|
||||
var lineChartExample = new Chart(LINECHARTEXMPLE, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: ["January", "February", "March", "April", "May", "June", "July"],
|
||||
datasets: [
|
||||
{
|
||||
label: "Data Set One",
|
||||
fill: true,
|
||||
lineTension: 0.3,
|
||||
backgroundColor: "rgba(51, 179, 90, 0.38)",
|
||||
borderColor: brandPrimary,
|
||||
borderCapStyle: 'butt',
|
||||
borderDash: [],
|
||||
borderDashOffset: 0.0,
|
||||
borderJoinStyle: 'miter',
|
||||
borderWidth: 1,
|
||||
pointBorderColor: brandPrimary,
|
||||
pointBackgroundColor: "#fff",
|
||||
pointBorderWidth: 1,
|
||||
pointHoverRadius: 5,
|
||||
pointHoverBackgroundColor: brandPrimary,
|
||||
pointHoverBorderColor: "rgba(220,220,220,1)",
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 1,
|
||||
pointHitRadius: 10,
|
||||
data: [50, 20, 40, 31, 32, 22, 10],
|
||||
spanGaps: false
|
||||
},
|
||||
{
|
||||
label: "Data Set Two",
|
||||
fill: true,
|
||||
lineTension: 0.3,
|
||||
backgroundColor: "rgba(75,192,192,0.4)",
|
||||
borderColor: "rgba(75,192,192,1)",
|
||||
borderCapStyle: 'butt',
|
||||
borderDash: [],
|
||||
borderDashOffset: 0.0,
|
||||
borderJoinStyle: 'miter',
|
||||
borderWidth: 1,
|
||||
pointBorderColor: "rgba(75,192,192,1)",
|
||||
pointBackgroundColor: "#fff",
|
||||
pointBorderWidth: 1,
|
||||
pointHoverRadius: 5,
|
||||
pointHoverBackgroundColor: "rgba(75,192,192,1)",
|
||||
pointHoverBorderColor: "rgba(220,220,220,1)",
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 1,
|
||||
pointHitRadius: 10,
|
||||
data: [65, 59, 30, 81, 56, 55, 40],
|
||||
spanGaps: false
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
var pieChartExample = new Chart(PIECHARTEXMPLE, {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: [
|
||||
"First",
|
||||
"Second",
|
||||
"Third"
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
data: [300, 50, 100],
|
||||
borderWidth: [1, 1, 1],
|
||||
backgroundColor: [
|
||||
brandPrimary,
|
||||
"rgba(75,192,192,1)",
|
||||
"#FFCE56"
|
||||
],
|
||||
hoverBackgroundColor: [
|
||||
brandPrimary,
|
||||
"rgba(75,192,192,1)",
|
||||
"#FFCE56"
|
||||
]
|
||||
}]
|
||||
}
|
||||
});
|
||||
|
||||
var pieChartExample = {
|
||||
responsive: true
|
||||
};
|
||||
|
||||
var barChartExample = new Chart(BARCHARTEXMPLE, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ["January", "February", "March", "April", "May", "June", "July"],
|
||||
datasets: [
|
||||
{
|
||||
label: "Data Set 1",
|
||||
backgroundColor: [
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)',
|
||||
'rgba(51, 179, 90, 0.6)'
|
||||
],
|
||||
borderColor: [
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)',
|
||||
'rgba(51, 179, 90, 1)'
|
||||
],
|
||||
borderWidth: 1,
|
||||
data: [65, 59, 80, 81, 56, 55, 40],
|
||||
},
|
||||
{
|
||||
label: "Data Set 2",
|
||||
backgroundColor: [
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)',
|
||||
'rgba(203, 203, 203, 0.6)'
|
||||
],
|
||||
borderColor: [
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)',
|
||||
'rgba(203, 203, 203, 1)'
|
||||
],
|
||||
borderWidth: 1,
|
||||
data: [35, 40, 60, 47, 88, 27, 30],
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
var polarChartExample = new Chart(POLARCHARTEXMPLE, {
|
||||
type: 'polarArea',
|
||||
data: {
|
||||
datasets: [{
|
||||
data: [
|
||||
11,
|
||||
16,
|
||||
7
|
||||
],
|
||||
backgroundColor: [
|
||||
"rgba(51, 179, 90, 1)",
|
||||
"#FF6384",
|
||||
"#FFCE56"
|
||||
],
|
||||
label: 'My dataset' // for legend
|
||||
}],
|
||||
labels: [
|
||||
"First",
|
||||
"Second",
|
||||
"Third"
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
var polarChartExample = {
|
||||
responsive: true
|
||||
};
|
||||
|
||||
|
||||
var radarChartExample = new Chart(RADARCHARTEXMPLE, {
|
||||
type: 'radar',
|
||||
data: {
|
||||
labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling"],
|
||||
datasets: [
|
||||
{
|
||||
label: "My First dataset",
|
||||
backgroundColor: "rgba(179,181,198,0.2)",
|
||||
borderWidth: 2,
|
||||
borderColor: "rgba(179,181,198,1)",
|
||||
pointBackgroundColor: "rgba(179,181,198,1)",
|
||||
pointBorderColor: "#fff",
|
||||
pointHoverBackgroundColor: "#fff",
|
||||
pointHoverBorderColor: "rgba(179,181,198,1)",
|
||||
data: [65, 59, 90, 81, 56, 55]
|
||||
},
|
||||
{
|
||||
label: "My Second dataset",
|
||||
backgroundColor: "rgba(51, 179, 90, 0.2)",
|
||||
borderWidth: 2,
|
||||
borderColor: "rgba(51, 179, 90, 1)",
|
||||
pointBackgroundColor: "rgba(51, 179, 90, 1)",
|
||||
pointBorderColor: "#fff",
|
||||
pointHoverBackgroundColor: "#fff",
|
||||
pointHoverBorderColor: "rgba(51, 179, 90, 1)",
|
||||
data: [28, 48, 40, 19, 96, 27]
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
var radarChartExample = {
|
||||
responsive: true
|
||||
};
|
||||
|
||||
|
||||
|
||||
});
|
@ -0,0 +1,105 @@
|
||||
/*global $, document, Chart, LINECHART, data, options, window*/
|
||||
$(document).ready(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Main Template Color
|
||||
var brandPrimary = '#33b35a';
|
||||
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Line Chart
|
||||
// ------------------------------------------------------ //
|
||||
var LINECHART = $('#lineCahrt');
|
||||
var myLineChart = new Chart(LINECHART, {
|
||||
type: 'line',
|
||||
options: {
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
},
|
||||
data: {
|
||||
labels: ["Jan", "Feb", "Mar", "Apr", "May", "June", "July"],
|
||||
datasets: [
|
||||
{
|
||||
label: "My First dataset",
|
||||
fill: true,
|
||||
lineTension: 0.3,
|
||||
backgroundColor: "rgba(77, 193, 75, 0.4)",
|
||||
borderColor: brandPrimary,
|
||||
borderCapStyle: 'butt',
|
||||
borderDash: [],
|
||||
borderDashOffset: 0.0,
|
||||
borderJoinStyle: 'miter',
|
||||
borderWidth: 1,
|
||||
pointBorderColor: brandPrimary,
|
||||
pointBackgroundColor: "#fff",
|
||||
pointBorderWidth: 1,
|
||||
pointHoverRadius: 5,
|
||||
pointHoverBackgroundColor: brandPrimary,
|
||||
pointHoverBorderColor: "rgba(220,220,220,1)",
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 1,
|
||||
pointHitRadius: 0,
|
||||
data: [50, 20, 60, 31, 52, 22, 40],
|
||||
spanGaps: false
|
||||
},
|
||||
{
|
||||
label: "My First dataset",
|
||||
fill: true,
|
||||
lineTension: 0.3,
|
||||
backgroundColor: "rgba(75,192,192,0.4)",
|
||||
borderColor: "rgba(75,192,192,1)",
|
||||
borderCapStyle: 'butt',
|
||||
borderDash: [],
|
||||
borderDashOffset: 0.0,
|
||||
borderJoinStyle: 'miter',
|
||||
borderWidth: 1,
|
||||
pointBorderColor: "rgba(75,192,192,1)",
|
||||
pointBackgroundColor: "#fff",
|
||||
pointBorderWidth: 1,
|
||||
pointHoverRadius: 5,
|
||||
pointHoverBackgroundColor: "rgba(75,192,192,1)",
|
||||
pointHoverBorderColor: "rgba(220,220,220,1)",
|
||||
pointHoverBorderWidth: 2,
|
||||
pointRadius: 1,
|
||||
pointHitRadius: 10,
|
||||
data: [65, 59, 30, 81, 46, 55, 30],
|
||||
spanGaps: false
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Pie Chart
|
||||
// ------------------------------------------------------ //
|
||||
var PIECHART = $('#pieChart');
|
||||
var myPieChart = new Chart(PIECHART, {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: [
|
||||
"First",
|
||||
"Second",
|
||||
"Third"
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
data: [300, 50, 100],
|
||||
borderWidth: [1, 1, 1],
|
||||
backgroundColor: [
|
||||
brandPrimary,
|
||||
"rgba(75,192,192,1)",
|
||||
"#FFCE56"
|
||||
],
|
||||
hoverBackgroundColor: [
|
||||
brandPrimary,
|
||||
"rgba(75,192,192,1)",
|
||||
"#FFCE56"
|
||||
]
|
||||
}]
|
||||
}
|
||||
});
|
||||
|
||||
});
|
@ -0,0 +1,138 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Custom Scrollbar
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
if ($(window).outerWidth() > 992) {
|
||||
$("nav.side-navbar").mCustomScrollbar({
|
||||
scrollInertia: 200
|
||||
});
|
||||
}
|
||||
|
||||
// Main Template Color
|
||||
var brandPrimary = '#33b35a';
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Side Navbar Functionality
|
||||
// ------------------------------------------------------ //
|
||||
$('#toggle-btn').on('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
if ($(window).outerWidth() > 1194) {
|
||||
$('nav.side-navbar').toggleClass('shrink');
|
||||
$('.page').toggleClass('active');
|
||||
} else {
|
||||
$('nav.side-navbar').toggleClass('show-sm');
|
||||
$('.page').toggleClass('active-sm');
|
||||
}
|
||||
});
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Tooltips init
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Universal Form Validation
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
$('.form-validate').each(function() {
|
||||
$(this).validate({
|
||||
errorElement: "div",
|
||||
errorClass: 'is-invalid',
|
||||
validClass: 'is-valid',
|
||||
ignore: ':hidden:not(.summernote),.note-editable.card-block',
|
||||
errorPlacement: function (error, element) {
|
||||
// Add the `invalid-feedback` class to the error element
|
||||
error.addClass("invalid-feedback");
|
||||
//console.log(element);
|
||||
if (element.prop("type") === "checkbox") {
|
||||
error.insertAfter(element.siblings("label"));
|
||||
}
|
||||
else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
// ------------------------------------------------------- //
|
||||
// Material Inputs
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
var materialInputs = $('input.input-material');
|
||||
|
||||
// activate labels for prefilled values
|
||||
materialInputs.filter(function () {
|
||||
return $(this).val() !== "";
|
||||
}).siblings('.label-material').addClass('active');
|
||||
|
||||
// move label on focus
|
||||
materialInputs.on('focus', function () {
|
||||
$(this).siblings('.label-material').addClass('active');
|
||||
});
|
||||
|
||||
// remove/keep label on blur
|
||||
materialInputs.on('blur', function () {
|
||||
$(this).siblings('.label-material').removeClass('active');
|
||||
|
||||
if ($(this).val() !== '') {
|
||||
$(this).siblings('.label-material').addClass('active');
|
||||
} else {
|
||||
$(this).siblings('.label-material').removeClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// Jquery Progress Circle
|
||||
// ------------------------------------------------------ //
|
||||
var progress_circle = $("#progress-circle").gmpc({
|
||||
color: brandPrimary,
|
||||
line_width: 5,
|
||||
percent: 80
|
||||
});
|
||||
progress_circle.gmpc('animate', 80, 3000);
|
||||
|
||||
// ------------------------------------------------------- //
|
||||
// External links to new window
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
$('.external').on('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
window.open($(this).attr("href"));
|
||||
});
|
||||
|
||||
// ------------------------------------------------------ //
|
||||
// For demo purposes, can be deleted
|
||||
// ------------------------------------------------------ //
|
||||
|
||||
var stylesheet = $('link#theme-stylesheet');
|
||||
$("<link id='new-stylesheet' rel='stylesheet'>").insertAfter(stylesheet);
|
||||
var alternateColour = $('link#new-stylesheet');
|
||||
|
||||
if ($.cookie("theme_csspath")) {
|
||||
alternateColour.attr("href", $.cookie("theme_csspath"));
|
||||
}
|
||||
|
||||
$("#colour").change(function () {
|
||||
|
||||
if ($(this).val() !== '') {
|
||||
|
||||
var theme_csspath = 'css/style.' + $(this).val() + '.css';
|
||||
|
||||
alternateColour.attr("href", theme_csspath);
|
||||
|
||||
$.cookie("theme_csspath", theme_csspath, {
|
||||
expires: 365,
|
||||
path: document.URL.substr(0, document.URL.lastIndexOf('/'))
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
@ -0,0 +1 @@
|
||||
!function(a){function d(a){return a.indexOf("px")?a.substring(0,a.length-2):canvas_height.indexOf("%")?a.substring(0,a.length-1):void 0}function e(a){if(a.toString().indexOf("px")<-1&&a.toString().indexOf("%")<-1)return a+="px"}function f(a,b){if(b<0){var c=parseInt(a)/100*360,d=c*(Math.PI/180);return d-Math.PI/2}var e=(parseInt(a)+parseInt(b))/100*360,f=e*(Math.PI/180);return f-Math.PI/2}function g(c){a(".gmpc-percent-text").text(Math.round(b.percent)+"%")}function h(a){var c=d(b.height.toString()),e=d(b.width.toString()),h=document.createElement("canvas");h.height=c,h.width=e;var i=h.getContext("2d");i.strokeStyle=b.color,i.lineWidth=b.line_width,i.beginPath();var j=f(b.starting_position,-1),k=f(b.starting_position,b.percent),l=0,m=e/2,n=c/2;return l=c>=e?.9*e/2-2*b.line_width:.9*c/2-2*b.line_width,i.arc(m,n,l,j,k,b.counter_clockwise),i.stroke(),"percent"==b.text&&g(a),h}var b={},c={init:function(c){var d=a.extend({color:"#0B2546",height:"200px",width:"200px",line_width:8,starting_position:25,percent:100,counter_clockwise:!1,text:"percent",font_size:"28px",font_family:"Helvetica"},c);b=d;var f=a("<div class='gmpc-percent-text'></div>");return f.css({"font-size":b.font_size,"font-family":b.font_family}),"percent"!=b.text&&f.text(b.text),a(this).append(f),100!=b.starting_position&&(b.starting_position=b.starting_position%100),100!=b.ending_position&&(b.ending_position=b.ending_position%100),e(b.width),e(b.height),a(this).css({height:b.height,width:b.width}),a(this).addClass("gmpc"),a(this).find("canvas").remove(),a(this).append(h(a(this))),this},percent:function(c){return b.percent=c,a(this).css({height:b.height,width:b.width}),a(this).children("canvas").remove(),a(this).append(h(a(this))),this},animate:function(c,d){a(this).css({height:b.height,width:b.width});var e=d/10,f=(c-b.percent)/e,g=a(this),i=setInterval(function(){b.percent<c?(g.children("canvas").remove(),b.percent+=f,g.append(h(g))):clearInterval(i)},10);return this}};a.fn.gmpc=function(b){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist."):c.init.apply(this,arguments)}}(jQuery);
|