code
string
repo_name
string
path
string
language
string
license
string
size
int64
/** * reference dwz.util.date.js * @author ZhangHuihua@msn.com * */ (function($){ $.setRegional("datepicker", { dayNames:['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], monthNames:['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }); $.fn.datepicker = functi...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.datepicker.js
JavaScript
gpl3
8,763
/** * @author ZhangHuihua@msn.com * */ /** * 普通ajax表单提交 * @param {Object} form * @param {Object} callback */ function validateCallback(form, callback) { var $form = $(form); if (!$form.valid()) { return false; } $.ajax({ type: form.method || 'POST', url:$form.attr("action"), dat...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.ajax.js
JavaScript
gpl3
6,575
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.cssv = function(pre){ var cssPre = $(this).css(pre); return cssPre.substring(0, cssPre.indexOf("px")) * 1; }; $.fn.jBar = function(options){ var op = $.extend({container:"#container", collapse:".collapse", toggleBut:".toggleCollapse div"...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.barDrag.js
JavaScript
gpl3
3,203
/** * @author Roger Wu */ (function($){ $.fn.dialogDrag = function(options){ if (typeof options == 'string') { if (options == 'destroy') return this.each(function() { var dialog = this; $("div.dialogHeader", dialog).unbind("mousedown"); }); ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.dialogDrag.js
JavaScript
gpl3
1,899
/** * @author Roger Wu * reference:dwz.drag.js, dwz.dialogDrag.js, dwz.resize.js, dwz.taskBar.js */ (function($){ $.pdialog = { _op:{height:300, width:500, minH:40, minW:50, total:20, max:false, mask:false, resizable:true, drawable:true, maxable:true,minable:true,flesh:true}, _current:null, _zIndex:42, getC...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.jDialog.js
JavaScript
gpl3
11,265
/** * @author Roger Wu */ (function($){ $.fn.jDrag = function(options){ if (typeof options == 'string') { if (options == 'destroy') return this.each(function(){ $(this).unbind('mousedown', $.rwdrag.start); $.data(this, 'pp-rwdrag', null); }); } return this.each(function(){ ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.drag.js
JavaScript
gpl3
3,023
/** * @requires jquery.validate.js * @author ZhangHuihua@msn.com */ (function($){ $.validator.addMethod("alphanumeric", function(value, element) { return this.optional(element) || /^\w+$/i.test(value); }, "Letters, numbers or underscores only please"); $.validator.addMethod("lettersonly", function(va...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.validate.method.js
JavaScript
gpl3
1,319
/** * @author Roger Wu * @version 1.0 */ (function($){ $.extend($.fn, { jPanel:function(options){ var op = $.extend({header:"panelHeader", headerC:"panelHeaderContent", content:"panelContent", coll:"collapsable", exp:"expandable", footer:"panelFooter", footerC:"panelFooterContent"}, options); return this.ea...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.panel.js
JavaScript
gpl3
2,026
/** * * @author ZhangHuihua@msn.com * @param {Object} opts Several options */ (function($){ $.fn.pagination = function(opts){ var setting = { first$:"li.j-first", prev$:"li.j-prev", next$:"li.j-next", last$:"li.j-last", nums$:"li.j-num>a", jumpto$:"li.jumpto", pageNumFrag:'<li class="#liClass#"><...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.pagination.js
JavaScript
gpl3
3,827
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.extend({jTask:function(options){ return this.each(function(){ var task = this; var id = $(task).attr("id"); $(task).click(function(e){ var dialog = $("body").data(id); if ($(task).hasClass("selected")) { $("a.minimize", dialog).tri...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.taskBar.js
JavaScript
gpl3
8,524
/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ * $Rev: 2446 $ * *...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/jquery.bgiframe.js
JavaScript
gpl3
3,044
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.extend({jresize:function(options) { if (typeof options == 'string') { if (options == 'destroy') return this.each(function() { var dialog = this; $("div[class^='resizable']",dialog).each(function() { ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.resize.js
JavaScript
gpl3
3,896
/** * @author Roger Wu */ (function($) { var jmenus = new Map(); // If the DWZ scope is not available, add it $.dwz = $.dwz || {}; $(window).resize(function(){ setTimeout(function(){ for (var i=0; i<jmenus.size();i++){ fillSpace(jmenus.element(i).key); } }, 100); }); $.fn.extend({ accordi...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.accordion.js
JavaScript
gpl3
8,724
/** * @author ZhangHuihua@msn.com */ $.setRegional("alertMsg", { title:{error:"Error", info:"Information", warn:"Warning", correct:"Successful", confirm:"Confirmation"}, butMsg:{ok:"OK", yes:"Yes", no:"No", cancel:"Cancel"} }); var alertMsg = { _boxId: "#alertMsgBox", _bgId: "#alertBackground", _closeT...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.alertMsg.js
JavaScript
gpl3
2,889
/** * @author Roger Wu */ /*@cc_on _d=document;eval('var document=_d')@*/ /*@cc_on eval((function(props) {var code = [];for (var i = 0,l = props.length;i<l;i++){var prop = props[i];window['_'+prop]=window[prop];code.push(prop+'=_'+prop);}return 'var '+code.join(',');})('document self top parent alert setInterval ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/speedup.js
JavaScript
gpl3
374
/** * @author Roger Wu */ (function($){ $.extend($.fn, { jBlindUp: function(options){ var op = $.extend({duration: 500, easing: "swing", call: function(){}}, options); return this.each(function(){ var $this = $(this); $(this).animate({height: 0}, { step: function(){}, duration: op.duration,...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.effects.js
JavaScript
gpl3
3,297
/** * @author ZhangHuihua@msn.com * */ (function($){ $.fn.extend({ /** * options: reverse[true, false], eventType[click, hover], currentIndex[default index 0] * stTab[tabs selector], stTabPanel[tab panel selector] * ajaxClass[ajax load], closeClass[close tab] */ tabs: function (...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.tab.js
JavaScript
gpl3
3,102
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/jquery.cookie.js
JavaScript
gpl3
4,028
/** * @author zhanghuihua@msn.com */ (function($){ $.fn.switchEnv = function(){ var op = {cities$:">ul>li", boxTitle$:">a>span"}; return this.each(function(){ var $this = $(this); $this.click(function(){ if ($this.hasClass("selected")){ _hide($this); } else { _show($this); ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/javascripts/dwz.switchEnv.js
JavaScript
gpl3
1,051
<script type="text/javascript"> function testConfirmMsg(accountId){ alertMsg.confirm("您修改的资料未保存,请选择保存或取消!", { okCall: function(){ $.post("ajaxDone.html", { accountId: accountId }, DWZ.ajaxDone, "json"); } }); } </script> <h2 class="contentTitle">提示对话框演示</h2> <div style="padding:0 10px;">...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_alert.html
HTML
gpl3
2,611
<h2 class="contentTitle">多选框/单选框</h2> <form method="post" action="ajaxDone.html" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)"> <div class="pageFormContent" layoutH="98"> <label><input type="radio" name="r1" />选择1</label> <label><input type="radio" name="r1" />选择2<...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_checkbox.html
HTML
gpl3
1,717
<h2 class="contentTitle">选项卡面板演示</h2> <div class="pageContent"> <div class="tabs" currentIndex="2" eventType="click"> <div class="tabsHeader"> <div class="tabsHeaderContent"> <ul> <li><a href="javascript:void(0)"><span>标题1</span></a></li> <li><a href="javascript:void(0)"><span>标题2</span></a...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_tabs.html
HTML
gpl3
1,607
<div class="page"> <div class="pageContent"> <form action="#" class="pageForm"> <div class="pageFormContent" layoutH="57"> <div> <label>资产总额:</label> <input class="textInputRequired" type="text" size="30" /> </div> <div class="textareaBar"> <label>数据来源:</label> <textarea ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/demo_page5.html
HTML
gpl3
1,181
<h2 class="contentTitle">按钮</h2> <div style="float:left; width:100px; height:200px; padding:10px;"> <div style="display:block; height:50px;"> <a class="button" href="#"><span>显示警告</span></a> </div> <div style="display:block; height:50px;"> <a class="buttonActive" href="#"><span>显示警告</span></a> </div> ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_button.html
HTML
gpl3
989
新建窗口1
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/newPage1.html
HTML
gpl3
13
<div class="accordion" fillSpace="sideBar"> <div class="accordionHeader"> <h2><span>Folder</span>典型页面</h2> </div> <div class="accordionContent"> <ul class="tree treeFolder treeCheck"> <li><a href="demo_upload.html" target="navTab" rel="demo_upload">文件上传表单提交示例</a></li> <li><a href="demo_page1.html" t...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/sidebar_sh.html
HTML
gpl3
962
<!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="Content-Type" content="text/html; charset=utf-8" /> <title>风险管理平台</title> <link href="themes/css/login.css" rel="stylesheet"...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/login.html
HTML
gpl3
2,484
@charset "utf-8"; /* Icon */ .tabsHeader li.main a span span, #taskbar li .taskbutton span { background:url(./images/icon.png) no-repeat;} /* Panel */ .panel, .panel .panelHeader, .panel .panelHeaderContent, .panel .panelHeaderContent h1, .panel .panelFooter, .panel .panelFooterContent { background:url(./imag...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/default/style.css
CSS
gpl3
10,936
@charset "utf-8"; /* Icon */ .tabsHeader li.main a span span, #taskbar li .taskbutton span { background:url(../default/images/icon.png) no-repeat;} /* Panel */ .panel, .panel .panelHeader, .panel .panelHeaderContent, .panel .panelHeaderContent h1, .panel .panelFooter, .panel .panelFooterContent { background:u...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/silver/style.css
CSS
gpl3
10,899
@charset "utf-8"; /* Core Code */ 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, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legen...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/css/core.css
CSS
gpl3
37,437
@charset "utf-8"; html, body { *overflow:hidden;} #header .nav li a { line-height:14px;} #header .menu li a, #header .menu li span { line-height:37px;} #taskbar li .taskbutton span { line-height:31px;} .toggleCollapse h2 { line-height:27px;} /* Panel */ .panel .panelHeaderContent h1 { line-height:32px;} ...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/css/ieHack.css
CSS
gpl3
3,612
@charset "utf-8"; 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, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, captio...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/css/login.css
CSS
gpl3
2,879
@charset "utf-8"; /* 1.改模板的颜色.panel .panelContent { border-color:#}全部为目标颜色 2.改body的background 3.改图片的路径 4.改 #sidebar_s .collapse和#sidebar_s .collapse:hover颜色 5.改.tree .selected { background:#d0fc68;}颜色 */ /* Icon */ .tabsHeader li.main a span span, #taskbar li .taskbutton span { background:url(../default/images...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/purple/style.css
CSS
gpl3
10,918
@charset "utf-8"; /* Icon */ .tabsHeader li.main a span span, #taskbar li .taskbutton span { background:url(../default/images/icon.png) no-repeat;} /* Panel */ .panel, .panel .panelHeader, .panel .panelHeaderContent, .panel .panelHeaderContent h1, .panel .panelFooter, .panel .panelFooterContent { background:u...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/themes/green/style.css
CSS
gpl3
10,586
<h2 class="contentTitle">uploadify多文件上传</h2> <div style="float:left; margin:10px"> <div id="fileQueue" class="fileQueue"></div> <input id="testFileInput" type="file" name="image" uploader="uploadify/scripts/uploadify.swf" cancelImg="uploadify/cancel.png" script="ajaxDone.html" scriptData="{PHPSESS...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_uploadify.html
HTML
gpl3
758
<form id="pagerForm" method="post" action="demo_page1.html"> <input type="hidden" name="status" value="${param.status}"> <input type="hidden" name="keywords" value="${param.keywords}" /> <input type="hidden" name="pageNum" value="1" /> <input type="hidden" name="numPerPage" value="${model.numPerPage}" /> <inp...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/demo_page1.html
HTML
gpl3
31,079
<div class="page"> <div class="pageContent"> <form method="post" action="ajaxDone.html" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);"> <div class="pageFormContent" layoutH="56"> <p> <label>客 户 号:</label> <input name="sn" type="text" size="30" valu...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/demo_page4.html
HTML
gpl3
3,662
<!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="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>简单实用国产jQuery...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/index.html
HTML
gpl3
15,472
新建窗口3
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/newPage3.html
HTML
gpl3
13
<h2 class="contentTitle">编辑器</h2> <div style="display:block; overflow:hidden; padding:0 10px; line-height:21px;"> <div class="tabs"> <div class="tabsHeader"> <div class="tabsHeaderContent"> <ul> <li class="selected"><a href="#"><span>示例</span></a></li> <li><a href="#"><span>代码</span></a></...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_editor.html
HTML
gpl3
2,273
<div class="page"> <h2 class="contentTitle">弹出窗口</h2> <div class="pageContent" layoutH="42"> <div style="float:left; display:block; overflow:hidden; width:400px; padding:0 10px; line-height:21px;"> <a class="button" href="demo_page1.html" target="dialog" rel="dlg_page1" max="true" title="打开窗口1 [自定义标题]" wid...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_dialog.html
HTML
gpl3
2,126
<div class="page"> <div class="pageContent"> <form method="post" action="ajaxDone.html" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)"> <div class="pageFormContent" layoutH="58"> <div class="unit"> <label>旧密码:</label> <input type="password" name="ol...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/changepwd.html
HTML
gpl3
1,150
<div class="accountInfo"> <div class="alertInfo"> <!-- <h2>最新消息:</h2> <a href="">深交所:中小散户是股票上市首日买入主体 占比56%</a> --> <h2><a href="doc/dwz-user-guide.pdf" target="_blank">DWZ框架使用手册下载</a></h2> <a href="doc/dwz-user-guide.swf" target="_blank">DWZ框架视频教材下载</a> </div> <div class="right"> <p>待办工作32项,消...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/main.html
HTML
gpl3
2,557
<h2 class="contentTitle">文本框/文本域</h2> <div style="float:left; width:150px; height:200px; padding:10px;"> <div style="display:block; height:50px;"> <input type="text" alt="提示信息" /> </div> <div style="display:block; height:50px;"> <input type="text" value="正常" /> </div> <div style="display:block; height:...
zy-myjava
trunk/springmvc/src/main/webapp/resources/plugins/dwz/w_textInput.html
HTML
gpl3
1,509
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, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot...
zy-myjava
trunk/springmvc/src/main/webapp/resources/css/style.css
CSS
gpl3
3,117
<#ftl strip_whitespace=true> <#-- * spring.ftl * * This file consists of a collection of FreeMarker macros aimed at easing * some of the common requirements of web applications - in particular * handling of forms. * * Spring's FreeMarker support will automatically make this file and therefore * all macros withi...
zy-myjava
trunk/springmvc/src/main/webapp/META-INF/spring.ftl
Fluent
gpl3
14,216
<#function getBasePath > <#--local path = path + req.getContextPath()--> <#return "http://127.0.0.1:8080/springmvc"> </#function> <#--取得头像上传地址--> <#function getHeadPhotoUploadUrl> <#local path = "http://localhost/connect-upload/profile/logo/form-action"> <#return path> </#function> <#--取得相片上传地址--> <#fun...
zy-myjava
trunk/springmvc/src/main/webapp/META-INF/macros.ftl
FreeMarker
gpl3
1,914
<#import "/META-INF/spring.ftl" as spring /> <#import "common/common.ftl" as c /> <#--assign title="Dynamic home page title" in c --> <@c.layoutDefault> <div class="content_detail"> <h1> Hello world! </h1> <P> The time on the server is ${serverTime}. </P> </div> </@c.layoutDefault>
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/home.ftl
Fluent
gpl3
287
<#import "/META-INF/spring.ftl" as spring /> <#import "common/common.ftl" as c /> <#--assign title="Dynamic home page title" in c --> <@c.layoutDefault> <div class="content_detail"> <h1> Hello world! </h1> <P> first name: ${user.firstName}. </P> </div> </@c.layoutDefault>
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/test.ftl
Fluent
gpl3
287
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page session="false" %> <html> <head> <title>Home</title> </head> <body> <h1> Hello world! </h1> <P> The time on the server is ${serverTime}. </P> </body> </html>
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/home.jsp
Java Server Pages
gpl3
238
<#import "/META-INF/spring.ftl" as spring /> <#import "common/common.ftl" as c /> <!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="Content-Type" content="text/html; charset=...
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/workbench.ftl
Fluent
gpl3
19,531
<#function getBasePath > <#--local path = path + req.getContextPath()--> <#return "http://127.0.0.1:8080/springmvc"> </#function> <#macro layoutDefault> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html> <head> <title> ${title...
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/common/common.ftl
FreeMarker
gpl3
979
<div id="layout_header"> <h1>Demo Site</h1> <h2>slogan of this site</h2> </div><!-- end header --> <div id="top-menu"> <ul> <li class="active"><a href="#">Home</a></li> <li><a href="#">Tag 1</a></li> <li><a href="#">Tag 2</a></li> <li><a href="#">Contact</a></li> </ul> </div><!-- end top-nav -->
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/common/header.ftl
Fluent
gpl3
319
<div> Menu Bar: </div> <div> <ul> <li>&nbsp&nbsp Menu Item1 </li> <li>&nbsp&nbsp Menu Item2 </li> <li>&nbsp&nbsp Menu Item3 </li> <li>&nbsp&nbsp Menu Item4 </li> <li>&nbsp&nbsp Menu Item5 </li> <li>&nbsp&nbsp Menu Item6 </li> </ul> </div>
zy-myjava
trunk/springmvc/src/main/webapp/WEB-INF/views/common/left-menu.ftl
FreeMarker
gpl3
265
package com.def.springmvc.service; import com.def.springmvc.entity.identity.User; import com.def.springmvc.util.Page; /** * * @author gavin * @since 1.0.0 * @create Jan 29, 2011 - 11:07:44 AM * <a href="http://www.opensourceforce.org">开源力量</a> */ public interface UserService { User getUser(Long userId); ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/service/UserService.java
Java
gpl3
563
package com.def.springmvc.service.impl; import static org.junit.Assert.assertNotNull; import java.util.Date; import java.util.List; import java.util.UUID; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.apache.commons.lang.StringUtils; import com.def.springmvc.entity...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/service/impl/UserServiceImpl.java
Java
gpl3
3,607
package com.def.springmvc.util; import java.util.List; /** * * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a> * @since 0.1.0 * @create May 16, 2011 - 3:51:31 PM * <a href="http://www.opensourceforce.org">开源力量</a> */ public class Page<T> { protected Integer pageNo = 1; protected Integer pageSize ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/util/Page.java
Java
gpl3
2,616
/** * Copyright (c) 2005-2010 springside.org.cn * * Licensed under the Apache License, Version 2.0 (the "License"); * * $Id: JsonBinder.java 1216 2010-09-12 13:52:48Z calvinxiu $ */ package com.def.springmvc.util; import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFor...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/util/JsonBinder.java
Java
gpl3
3,209
package com.def.springmvc.util; public abstract class StringUtils { /** * Check whether the given CharSequence has actual text. * More specifically, returns <code>true</code> if the string not <code>null</code>, * its length is greater than 0, and it contains at least one non-whitespace character. *...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/util/StringUtils.java
Java
gpl3
2,237
package com.def.springmvc.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.security.Key; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import sun.misc.BASE64Decoder; import sun....
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/util/CipherUtil.java
Java
gpl3
1,783
package com.def.springmvc.util; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.TreeMap; /** * * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a> * @s...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/util/CollectionUtil.java
Java
gpl3
1,556
package com.def.springmvc.dao.identity; import org.apache.commons.lang.StringUtils; import com.def.springmvc.dao.identity.UserDao; import com.def.springmvc.entity.identity.User; import com.def.springmvc.dao.base.AbstractDao; import com.def.springmvc.util.Page; import org.springframework.stereotype.Repository;...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/identity/UserDaoImpl.java
Java
gpl3
1,282
package com.def.springmvc.dao.identity; import com.def.springmvc.entity.identity.User; import com.def.springmvc.dao.base.BaseDao; import com.def.springmvc.util.Page; /** * * @author gavin * @since 1.0.0 * @create Jan 29, 2011 - 10:07:53 AM * <a href="http://www.opensourceforce.org">开源力量</a> */ public interfac...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/identity/UserDao.java
Java
gpl3
513
package com.def.springmvc.dao.base; public interface BaseSearchDao { }
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/base/BaseSearchDao.java
Java
gpl3
73
package com.def.springmvc.dao.base; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.apache.lucene.search.Query; import org.apache.lucene.search.Sort; import org.apache.lucene.search.SortField; import org.hibernate.search.SearchFactory; import org...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/base/AbstractSearchDao.java
Java
gpl3
2,727
package com.def.springmvc.dao.base; import com.def.springmvc.entity.base.IdEntity; /** * * @author <a href="mailto:haozhonghu@hotmail.com">gavin</a> * @since 0.1.0 * @create May 16, 2011 - 3:51:25 PM * <a href="http://www.opensourceforce.org">开源力量</a> */ public interface BaseDao<T extends IdEntity> { <PK> T ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/base/BaseDao.java
Java
gpl3
443
package com.def.springmvc.dao.base; import org.hibernate.cfg.ImprovedNamingStrategy; /** * Prefix Support Naming Strategy extends from hibernate ImprovedNamingStrategy */ public class PrefixImprovedNamingStrategy extends ImprovedNamingStrategy { private static final long serialVersionUID = 3097086534970692039L; ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/base/PrefixImprovedNamingStrategy.java
Java
gpl3
1,009
package com.def.springmvc.dao.base; import java.util.List; import java.util.Map; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.persistence.TypedQuery; import javax.persistence.criteria.Crite...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/dao/base/AbstractDao.java
Java
gpl3
5,561
package com.def.springmvc.web; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; imp...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/HomeController.java
Java
gpl3
1,900
/* * CookieUtils.java * * Created on 2010-5-28 * * Copyright(C) 2010, by Ambow Develop & Research Branch. * * Original Author: sunhaibo * Contributor(s): * * Changes * ------- * $Log$ */ package com.def.springmvc.web.session; import javax.servlet.http.Cookie; import javax.servlet.ht...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/CookieUtils.java
Java
gpl3
2,238
package com.def.springmvc.web.session.event; import org.apache.log4j.Logger; import com.def.springmvc.web.session.UserSessionConstants; import com.def.springmvc.web.session.UserSessionException; import com.def.springmvc.web.session.store.SessionStore; import com.def.springmvc.web.session.store.SessionStoreFact...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/event/DefSessionListenerImpl.java
Java
gpl3
1,846
package com.def.springmvc.web.session.event; import java.util.Map; public class UserSessionEvent { private String sessionId; private String key; private String val; private Map<String,String> attributesMap; public UserSessionEvent() { } public UserSessionEvent(String sessionI...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/event/UserSessionEvent.java
Java
gpl3
1,165
package com.def.springmvc.web.session.event; /** * session事件类型的标识类 * @author sunhaibo * */ public final class EventType { /** * session 被创建时的事件类型. */ public static final EventType SESSION_CREATEED = new EventType(); /** * session 销毁时的事件类型. */ public static fi...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/event/EventType.java
Java
gpl3
777
package com.def.springmvc.web.session.event; import com.def.springmvc.web.session.UserSessionException; public interface UserSessionListener { /** * 创建session事件 * * @param event * @throws UserSessionException * * create date: 2009-11-04 * author: liujia */ void sessionCreated(User...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/event/UserSessionListener.java
Java
gpl3
1,234
/* * SessionManager.java * * Created on 2009-10-30 * * Copyright(C) 2009, by Ambow Develope & Research Branch. * * Original Author: pengqing * Contributor(s): * * Changes * ------- * $Log$ */ package com.def.springmvc.web.session; import java.security.MessageDigest; import java.secu...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/SessionManager.java
Java
gpl3
4,586
/* * UserSessionLifecycleTestFilter.java * * Created on 2010-5-18 * * Copyright(C) 2010, by Ambow Develop & Research Branch. * * Original Author: sunhaibo * Contributor(s): * * Changes * ------- * $Log$ */ package com.def.springmvc.web.session; import java.io.IOException; import j...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionLifecycleTestFilter.java
Java
gpl3
2,798
package com.def.springmvc.web.session; import com.def.springmvc.web.session.SessionManager; import com.def.springmvc.web.session.UserSession; import com.def.springmvc.web.session.UserSessionConstants; import com.def.springmvc.util.StringUtils; /** * * @author sunhaibo * */ public abstract class UserSes...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionUtils.java
Java
gpl3
1,178
package com.def.springmvc.web.session; public class UserSessionException extends RuntimeException { public UserSessionException() { } public UserSessionException(String message, Throwable cause) { super(message, cause); } public UserSessionException(String message) { super(message); } publi...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionException.java
Java
gpl3
457
package com.def.springmvc.web.session; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import com.def.springmvc.web.session.event.EventType; import com.def.springmvc.web.session.event.UserSessionEvent; @SuppressWarnings("serial") public class StandardSession implements UserSession { p...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/StandardSession.java
Java
gpl3
3,407
package com.def.springmvc.web.session; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.Htt...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionLifecycleFilter.java
Java
gpl3
2,073
/* * UserSession.java * * Created on 2009-10-30 * * Copyright(C) 2009, by Ambow Develope & Research Branch. * * Original Author: pengqing * Contributor(s): * * Changes * ------- * $Log$ */ package com.def.springmvc.web.session; import java.io.Serializable; public interface UserSes...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSession.java
Java
gpl3
1,654
/* * UserSessionLifecycleSupportFlashFilter.java * * Created on 2010-5-28 * * Copyright(C) 2010, by Ambow Develop & Research Branch. * * Original Author: sunhaibo * Contributor(s): * * Changes * ------- * $Log$ */ package com.def.springmvc.web.session; import java.io.IOException; ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionLifecycleSupportFlashFilter.java
Java
gpl3
2,559
package com.def.springmvc.web.session; public final class UserSessionConstants { public static final String USER_SESSION_KEY = "userSession"; public static final String USER_SESSION_COOKIE_NAME = "sessionid"; public static final String USER_INFO_KEY = "userInfoKey"; public static final String SESSIO...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/UserSessionConstants.java
Java
gpl3
452
package com.def.springmvc.web.session.store; public class SessionStoreFactory { public static SessionStore getSessionStore(){ return new MemCacheSessionStore(); } }
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/store/SessionStoreFactory.java
Java
gpl3
186
package com.def.springmvc.web.session.store; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Date; import org.apache.commons.codec.binary.Hex; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.def.springmvc.we...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/store/MemCacheSessionStore.java
Java
gpl3
4,240
package com.def.springmvc.web.session.store; import com.def.springmvc.web.session.StandardSession; import com.def.springmvc.web.session.UserSessionException; public interface SessionStore { /** * 根据id返回获取到的session,当session不存在或失效时返回null * * @param id sessionId * @return 返回session对象 * @throws ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/store/SessionStore.java
Java
gpl3
2,269
package com.def.springmvc.web.session; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.apache.log4j.Logger; import com.def.springmvc.web.session.event.EventType; import com.def.springmv...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/session/Config.java
Java
gpl3
6,159
package com.def.springmvc.web; import javax.servlet.jsp.tagext.Tag; import com.def.springmvc.entity.identity.User; import com.def.springmvc.util.Page; /** * * @author Byron */ public abstract class AttributeKeys { public static final String BASE_KEY_READABLE = "base"; public static final String SITE_DOMAI...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/AttributeKeys.java
Java
gpl3
1,766
package com.def.springmvc.web.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.def.springmvc.web.interceptor.AuthorityException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.servlet.ModelAndView; im...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/interceptor/ExceptionInterceptor.java
Java
gpl3
1,877
package com.def.springmvc.web.interceptor; /** * 用户的权限异常 * @author shunh * */ public class AuthorityException extends RuntimeException { /** * */ private static final long serialVersionUID = 1L; public AuthorityException() { } public AuthorityException(String message, Throwable cause) {...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/interceptor/AuthorityException.java
Java
gpl3
512
package com.def.springmvc.web.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.def.springmvc.web.AttributeKeys; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/interceptor/UserLoginSessionInterceptor.java
Java
gpl3
2,079
package com.def.springmvc.web.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.math.NumberUtils; import com.def.springmvc.entity.identity.User; import org.springframework.beans.factory...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/interceptor/ObjectExposeInterceptor.java
Java
gpl3
2,123
package com.def.springmvc.web.interceptor; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.SystemUtils; import com.def.springmvc.entity.identity.User; import com.def.springmvc.service.UserService; import com...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/web/interceptor/RememberMeInterceptor.java
Java
gpl3
3,662
package com.def.springmvc.entity.identity; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Ge...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/entity/identity/Organization.java
Java
gpl3
1,740
package com.def.springmvc.entity.identity; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import ...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/entity/identity/User.java
Java
gpl3
2,249
package com.def.springmvc.entity.identity; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; im...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/entity/identity/Permission.java
Java
gpl3
1,254
package com.def.springmvc.entity.identity; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persis...
zy-myjava
trunk/springmvc/src/main/java/com/def/springmvc/entity/identity/Role.java
Java
gpl3
1,953
package Code; import javax.microedition.lcdui.Choice; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.List; public class MainMenuScreen extends List implements CommandListener { priva...
zumavietlm
trunk/Zuma/src/Code/MainMenuScreen.java
Java
asf20
1,336
package Code; //import game.MainCanvas; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; /** * Class redefines codes of mobile phone to our constant values. * Class can give to developers following information: * <ul> * <li/><i>defined platform name</i><br> * In case if devic...
zumavietlm
trunk/Zuma/src/Code/KeyCodeAdapter.java
Java
asf20
24,184
package Code; import Code.StartMidlet; import java.io.IOException; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Font; import javax.microedition.lcdui.Graphics; /* * To change this template, choose Tools | Templat...
zumavietlm
trunk/Zuma/src/Code/SunnetFlash.java
Java
asf20
11,969