code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * This is the sample plugin definition file. */ // Register the related commands. FCKCommands.RegisterCommand( 'My_Find' , new FCKDialogCommand( FCKLang['DlgMyFindTitle'] , FCKLang['DlgMyFindTitle'] , FCKConfig.PluginsPath + 'findreplace/find.html' , 340, 170 ) ) ; FCKCommands.RegisterCommand( 'My_Replace' , new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle'] , FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ; // Create the "Find" toolbar button. var oFindItem = new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ; oFindItem.IconPath = FCKConfig.PluginsPath + 'findreplace/find.gif' ; FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ; // 'My_Find' is the name used in the Toolbar config. // Create the "Replace" toolbar button. var oReplaceItem = new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ; oReplaceItem.IconPath = FCKConfig.PluginsPath + 'findreplace/replace.gif' ; FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ; // 'My_Replace' is the name used in the Toolbar config.
100mall
trunk/100mall/webapps/plugins/fckeditor/_samples/_plugins/findreplace/fckplugin.js
JavaScript
oos
1,735
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * This is a sample plugin definition file. */ // Here we define our custom Style combo, with custom widths. var oMyBigStyleCombo = new FCKToolbarStyleCombo() ; oMyBigStyleCombo.FieldWidth = 250 ; oMyBigStyleCombo.PanelWidth = 300 ; FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ; // ##### Defining a custom context menu entry. // ## 1. Define the command to be executed when selecting the context menu item. var oMyCMCommand = new Object() ; oMyCMCommand.Name = 'OpenImage' ; // This is the standard function used to execute the command (called when clicking in the context menu item). oMyCMCommand.Execute = function() { // This command is called only when an image element is selected (IMG). // Get image URL (src). var sUrl = FCKSelection.GetSelectedElement().src ; // Open the URL in a new window. window.top.open( sUrl ) ; } // This is the standard function used to retrieve the command state (it could be disabled for some reason). oMyCMCommand.GetState = function() { // Let's make it always enabled. return FCK_TRISTATE_OFF ; } // ## 2. Register our custom command. FCKCommands.RegisterCommand( 'OpenImage', oMyCMCommand ) ; // ## 3. Define the context menu "listener". var oMyContextMenuListener = new Object() ; // This is the standard function called right before sowing the context menu. oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName ) { // Let's show our custom option only for images. if ( tagName == 'IMG' ) { contextMenu.AddSeparator() ; contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ; } } // ## 4. Register our context menu listener. FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ;
100mall
trunk/100mall/webapps/plugins/fckeditor/_samples/_plugins/samples/fckplugin.js
JavaScript
oos
2,392
/* * My97 DatePicker 4.7 Skin:whyGreen */ .WdateDiv{ width:180px; background-color:#fff; border:#C5E1E4 1px solid; padding:2px; } .WdateDiv2{ width:360px; } .WdateDiv *{font-size:9pt;} .WdateDiv .NavImg a{ cursor:pointer; display:block; width:16px; height:16px; margin-top:1px; } .WdateDiv .NavImgll a{ float:left; background:url(img.gif) no-repeat; } .WdateDiv .NavImgl a{ float:left; background:url(img.gif) no-repeat -16px 0px; } .WdateDiv .NavImgr a{ float:right; background:url(img.gif) no-repeat -32px 0px; } .WdateDiv .NavImgrr a{ float:right; background:url(img.gif) no-repeat -48px 0px; } .WdateDiv #dpTitle{ height:24px; padding:1px; border:#c5d9e8 1px solid; background:url(bg.jpg); margin-bottom:2px; } .WdateDiv .yminput{ margin-top:2px; text-align:center; border:0px; height:20px; width:50px; color:#034c50; background-color:transparent; cursor:pointer; } .WdateDiv .yminputfocus{ margin-top:2px; text-align:center; border:#939393 1px solid; font-weight:bold; color:#034c50; height:20px; width:50px; } .WdateDiv .menuSel{ z-index:1; position:absolute; background-color:#FFFFFF; border:#A3C6C8 1px solid; display:none; } .WdateDiv .menu{ cursor:pointer; background-color:#fff; color:#11777C; } .WdateDiv .menuOn{ cursor:pointer; background-color:#BEEBEE; } .WdateDiv .invalidMenu{ color:#aaa; } .WdateDiv .YMenu{ margin-top:20px; } .WdateDiv .MMenu{ margin-top:20px; *width:62px; } .WdateDiv .hhMenu{ margin-top:-90px; margin-left:26px; } .WdateDiv .mmMenu{ margin-top:-46px; margin-left:26px; } .WdateDiv .ssMenu{ margin-top:-24px; margin-left:26px; } .WdateDiv .Wweek { text-align:center; background:#DAF3F5; border-right:#BDEBEE 1px solid; } .WdateDiv .MTitle{ color:#13777e; background-color:#bdebee; } .WdateDiv .WdayTable2{ border-collapse:collapse; border:#BEE9F0 1px solid; } .WdateDiv .WdayTable2 table{ border:0; } .WdateDiv .WdayTable{ line-height:20px; color:#13777e; background-color:#edfbfb; border:#BEE9F0 1px solid; } .WdateDiv .WdayTable td{ text-align:center; } .WdateDiv .Wday{ cursor:pointer; } .WdateDiv .WdayOn{ cursor:pointer; background-color:#74d2d9 ; } .WdateDiv .Wwday{ cursor:pointer; color:#ab1e1e; } .WdateDiv .WwdayOn{ cursor:pointer; background-color:#74d2d9; } .WdateDiv .Wtoday{ cursor:pointer; color:blue; } .WdateDiv .Wselday{ background-color:#A7E2E7; } .WdateDiv .WspecialDay{ background-color:#66F4DF; } .WdateDiv .WotherDay{ cursor:pointer; color:#0099CC; } .WdateDiv .WotherDayOn{ cursor:pointer; background-color:#C0EBEF; } .WdateDiv .WinvalidDay{ color:#aaa; } .WdateDiv #dpTime{ float:left; margin-top:3px; margin-right:30px; } .WdateDiv #dpTime #dpTimeStr{ margin-left:1px; color:#497F7F; } .WdateDiv #dpTime input{ height:20px; width:18px; text-align:center; color:#333; border:#61CAD0 1px solid; } .WdateDiv #dpTime .tB{ border-right:0px; } .WdateDiv #dpTime .tE{ border-left:0; border-right:0; } .WdateDiv #dpTime .tm{ width:7px; border-left:0; border-right:0; } .WdateDiv #dpTime #dpTimeUp{ height:10px; width:13px; border:0px; background:url(img.gif) no-repeat -32px -16px; } .WdateDiv #dpTime #dpTimeDown{ height:10px; width:13px; border:0px; background:url(img.gif) no-repeat -48px -16px; } .WdateDiv #dpQS { float:left; margin-right:3px; margin-top:3px; background:url(img.gif) no-repeat 0px -16px; width:20px; height:20px; cursor:pointer; } .WdateDiv #dpControl { text-align:right; margin-top:3px; } .WdateDiv .dpButton{ height:20px; width:45px; margin-top:2px; border:#38B1B9 1px solid; background-color:#CFEBEE; color:#08575B; }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/skin/whyGreen/datepicker.css
CSS
oos
3,933
.Wdate{ border:#999 1px solid; height:20px; background:#fff url(datePicker.gif) no-repeat right; } .WdateFmtErr{ font-weight:bold; color:red; }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/skin/WdatePicker.css
CSS
oos
158
/* * My97 DatePicker 4.7 */ .WdateDiv{ width:180px; background-color:#FFFFFF; border:#bbb 1px solid; padding:2px; } .WdateDiv2{ width:360px; } .WdateDiv *{font-size:9pt;} .WdateDiv .NavImg a{ display:block; cursor:pointer; height:16px; width:16px; } .WdateDiv .NavImgll a{ float:left; background:transparent url(img.gif) no-repeat scroll 0 0; } .WdateDiv .NavImgl a{ float:left; background:transparent url(img.gif) no-repeat scroll -16px 0; } .WdateDiv .NavImgr a{ float:right; background:transparent url(img.gif) no-repeat scroll -32px 0; } .WdateDiv .NavImgrr a{ float:right; background:transparent url(img.gif) no-repeat scroll -48px 0; } .WdateDiv #dpTitle{ height:24px; margin-bottom:2px; padding:1px; } .WdateDiv .yminput{ margin-top:2px; text-align:center; height:20px; border:0px; width:50px; cursor:pointer; } .WdateDiv .yminputfocus{ margin-top:2px; text-align:center; font-weight:bold; height:20px; color:blue; border:#ccc 1px solid; width:50px; } .WdateDiv .menuSel{ z-index:1; position:absolute; background-color:#FFFFFF; border:#ccc 1px solid; display:none; } .WdateDiv .menu{ cursor:pointer; background-color:#fff; } .WdateDiv .menuOn{ cursor:pointer; background-color:#BEEBEE; } .WdateDiv .invalidMenu{ color:#aaa; } .WdateDiv .YMenu{ margin-top:20px; } .WdateDiv .MMenu{ margin-top:20px; *width:62px; } .WdateDiv .hhMenu{ margin-top:-90px; margin-left:26px; } .WdateDiv .mmMenu{ margin-top:-46px; margin-left:26px; } .WdateDiv .ssMenu{ margin-top:-24px; margin-left:26px; } .WdateDiv .Wweek { text-align:center; background:#DAF3F5; border-right:#BDEBEE 1px solid; } .WdateDiv .MTitle{ background-color:#BDEBEE; } .WdateDiv .WdayTable2{ border-collapse:collapse; border:#c5d9e8 1px solid; } .WdateDiv .WdayTable2 table{ border:0; } .WdateDiv .WdayTable{ line-height:20px; border:#c5d9e8 1px solid; } .WdateDiv .WdayTable td{ text-align:center; } .WdateDiv .Wday{ cursor:pointer; } .WdateDiv .WdayOn{ cursor:pointer; background-color:#C0EBEF; } .WdateDiv .Wwday{ cursor:pointer; color:#FF2F2F; } .WdateDiv .WwdayOn{ cursor:pointer; color:#000; background-color:#C0EBEF; } .WdateDiv .Wtoday{ cursor:pointer; color:blue; } .WdateDiv .Wselday{ background-color:#A9E4E9; } .WdateDiv .WspecialDay{ background-color:#66F4DF; } .WdateDiv .WotherDay{ cursor:pointer; color:#6A6AFF; } .WdateDiv .WotherDayOn{ cursor:pointer; background-color:#C0EBEF; } .WdateDiv .WinvalidDay{ color:#aaa; } .WdateDiv #dpTime{ float:left; margin-top:3px; margin-right:30px; } .WdateDiv #dpTime #dpTimeStr{ margin-left:1px; } .WdateDiv #dpTime input{ width:18px; height:20px; text-align:center; border:#ccc 1px solid; } .WdateDiv #dpTime .tB{ border-right:0px; } .WdateDiv #dpTime .tE{ border-left:0; border-right:0; } .WdateDiv #dpTime .tm{ width:7px; border-left:0; border-right:0; } .WdateDiv #dpTime #dpTimeUp{ height:10px; width:13px; border:0px; background:url(img.gif) no-repeat -32px -16px; } .WdateDiv #dpTime #dpTimeDown{ height:10px; width:13px; border:0px; background:url(img.gif) no-repeat -48px -16px; } .WdateDiv #dpQS { float:left; margin-right:3px; margin-top:3px; background:url(img.gif) no-repeat 0px -16px; width:20px; height:20px; cursor:pointer; } .WdateDiv #dpControl { text-align:right; } .WdateDiv .dpButton{ height:20px; width:45px; border:#ccc 1px solid; margin-top:2px; margin-right:1px; }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/skin/default/datepicker.css
CSS
oos
3,726
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], clearStr: "\u6E05\u7A7A", todayStr: "\u4ECA\u5929", okStr: "\u78BA\u5B9A", updateStr: "\u78BA\u5B9A", timeStr: "\u6642\u9593", quickStr: "\u5FEB\u901F\u9078\u64C7", err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!' }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/lang/zh-tw.js
JavaScript
oos
1,088
var $lang={ errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"], clearStr: "\u6E05\u7A7A", todayStr: "\u4ECA\u5929", okStr: "\u786E\u5B9A", updateStr: "\u786E\u5B9A", timeStr: "\u65F6\u95F4", quickStr: "\u5FEB\u901F\u9009\u62E9", err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!' }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/lang/zh-cn.js
JavaScript
oos
1,089
var $lang={ errAlertMsg: "Invalid date or the date out of range,redo or not?", aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"], aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"], clearStr: "Clear", todayStr: "Today", okStr: "OK", updateStr: "OK", timeStr: "Time", quickStr: "Quick Selection", err_1: 'MinDate Cannot be bigger than MaxDate!' }
100mall
trunk/100mall/webapps/plugins/My97DatePicker/lang/en.js
JavaScript
oos
644
function showHide(objname) { //只对主菜单设置cookie var obj = document.getElementById(objname); if(objname.indexOf('_1')<0 || objname.indexOf('_10')>0) { if(obj.style.display == 'block' || obj.style.display =='') obj.style.display = 'none'; else obj.style.display = 'block'; return true; } //正常设置cookie var ckstr = getCookie('menuitems'); var ckstrs = null; var okstr =''; var ischange = false; if(ckstr==null) ckstr = ''; ckstrs = ckstr.split(','); objname = objname.replace('items',''); if(obj.style.display == 'block' || obj.style.display =='') { obj.style.display = 'none'; for(var i=0; i < ckstrs.length; i++) { if(ckstrs[i]=='') continue; if(ckstrs[i]==objname){ ischange = true; } else okstr += (okstr=='' ? ckstrs[i] : ','+ckstrs[i] ); } if(ischange) setCookie('menuitems',okstr,7); } else { obj.style.display = 'block'; ischange = true; for(var i=0; i < ckstrs.length; i++) { if(ckstrs[i]==objname) { ischange = false; break; } } if(ischange) { ckstr = (ckstr==null ? objname : ckstr+','+objname); setCookie('menuitems',ckstr,7); } } } //读写cookie函数 function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "=") if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";",c_start); if (c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c_start,c_end)); } } return null } function setCookie(c_name,value,expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" +escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); //使设置的有效时间正确。增加toGMTString() } //检查以前用户展开的菜单项 var totalitem = 12; function CheckOpenMenu() { //setCookie('menuitems',''); var ckstr = getCookie('menuitems'); var curitem = ''; var curobj = null; //cross_obj = document.getElementById("staticbuttons"); //setInterval("initializeIT()",20); if(ckstr==null) { ckstr='1_1,2_1,3_1'; setCookie('menuitems',ckstr,7); } ckstr = ','+ckstr+','; for(i=0;i<totalitem;i++) { curitem = i+'_'+curopenItem; curobj = document.getElementById('items'+curitem); if(ckstr.indexOf(curitem) > 0 && curobj != null) { curobj.style.display = 'block'; } else { if(curobj != null) curobj.style.display = 'none'; } } } var curitem = 1; function ShowMainMenu(n) { var curLink = $DE('link'+curitem); var targetLink = $DE('link'+n); var curCt = $DE('ct'+curitem); var targetCt = $DE('ct'+n); if(curitem==n) return false; if(targetCt.innerHTML!='') { curCt.style.display = 'none'; targetCt.style.display = 'block'; curLink.className = 'mm'; targetLink.className = 'mmac'; curitem = n; } else { var myajax = new DedeAjax(targetCt); myajax.SendGet2("index_menu_load.php?openitem="+n); if(targetCt.innerHTML!='') { curCt.style.display = 'none'; targetCt.style.display = 'block'; curLink.className = 'mm'; targetLink.className = 'mmac'; curitem = n; } DedeXHTTP = null; } }
100mall
trunk/100mall/webapps/plugins/theme/skin/js/frame/menu.js
JavaScript
oos
3,340
td { padding:3px 0px 5px 3px; } .title { color:#666600; font-weight:bold; } .title span { padding-left:3px; } #addTab { position:absolute; left:455px; top:64px; width:360px; height:180px; z-index:2; background-color: #FFFFFF; border:1px solid #889D8F; padding:0px; display:none; } #editTab { position:absolute; left:455px; top:64px; width:360px; height:350px; z-index:1; background-color: #FFFFFF; border:1px solid #889D8F; padding:0px; display:none; } .icoitem { float:left; margin-right:12px; height:24px; line-height:24px; } .ico { float:left; margin-right:4px; padding-top:4px; } .txt { float:left; } .updatedvt { height:20px; line-height:20px; padding-left:3px; width:98%; border-bottom:1px dashed #dcdcdc; } .upinfotitle { border-bottom:1px solid #cccccc; color:red; font-weight:bold; line-height:26px; } .verline { border-bottom:1px dashed #cccccc; line-height:26px; } #loaddiv { top:0; left:0; background:#cccccc; filter:Alpha(opacity=70); -moz-opacity:0.7; position:absolute; z-index:10000; width:100%; height:100%; }
100mall
trunk/100mall/webapps/plugins/theme/skin/css/main.css
CSS
oos
1,168
* { font-size: 12px; } td { line-height: 1.5; } body { font-size: 12px; line-height: 1.5; } form,h1,h2,h3,ul,ol,div{ margin: 0; padding:0;} td,th,div { word-break:break-all; word-wrap:break-word; } b,strong { color:#666600; } li,dd { list-style-type:none; margin:0px; padding:0px; } input[type=button]{ background-color: #F1F8B4; } h1 { color:#171B16; font-size:130%; font-weight:bold; } h2 { color:#171B16; font-size:115%; font-weight:bold; } h3 { color:#171B16; font-size:100%; font-weight:bold;} a:link { font-size: 9pt; color: #000000; text-decoration: none;} a:visited{ font-size: 9pt; color: #000000; text-decoration: none; } a:hover {color: red;} a img { border-style:none; } b a { color:#666600; } strong a { color:#666600; } a b{ color:#666600; } a strong{ color:#666600; } input { border: 1px solid #ababab; } .pubinputs { height: 22px; width:250px; padding:4px 3px 2px 3px; border-width:1px; border-style:solid; border-color:#999999 #dddddd #dddddd #999999; } .iptxt { height:22px; padding:4px 3px 2px 3px; border-width:1px; border-style:solid; border-color:#999999 #dddddd #dddddd #999999; } .alltxt { padding:4px 3px 2px 3px; border-width:1px; border-style:solid; border-color:#999999 #dddddd #dddddd #999999; } .pubinput { height: 24px; width:250px; padding-top:3px; padding-bottom:0px; } .pubinputl { height: 24px; width:350px; padding-top:3px; padding-bottom:0px; } .np { border:none; } .linerow{border-bottom: 1px solid #ACACAC;} .coolbg { border-right: 1px solid #ACACAC; border-bottom: 1px solid #ACACAC; background-color: #F1F8B4; padding:2px; padding-right:5px; padding-left:5px; background: url(allbtbg2.gif) #EFF7D0; cursor:pointer; } .coolbg2 { border: 1px solid #000000; background-color: #DFDDD2; height:18px } .ll { border-right: 2px solid #ACACAC; border-bottom: 2px solid #ACACAC; background-color: #E6E6E6 } .bline {border-bottom: 1px dotted #BCBCBC; height:28px; background-color: #FFFFFF;} #uploadfield{float:left;} .bline2 {border-bottom: 1px solid #BCBCBC;} .coolbt { border-left: 1px solid #EFEFEF; border-top: 1px solid #EFEFEF; border-right: 1px solid #ACACAC; border-bottom: 1px solid #ACACAC; background-color: #E4F7D7; cursor:pointer; } .coolbt2 { border-left: 1px solid #EFEFEF; border-top: 1px solid #EFEFEF; border-right: 1px solid #ACACAC; border-bottom: 1px solid #ACACAC; background-color: #F7FCDA } .coolbg3 { border: 1px solid #BDC5B4; background-color: #DFDDD2; height:20px; width:140px; text-align:right; } .coolbg61 { line-height:26px; width:380px; border-top:1px solid #BDC5B4; border-left:1px solid #BDC5B4; border-right:1px solid #BDC5B4; height:26px; text-align:right; background-color: #E7F3B1; } .coolbg62 { border: 1px solid #BDC5B4; background-color: #F8FDF0; height:300px; width:380px; padding:5px; } .coolbg4 { border-bottom: 1px solid #C9CFC1; background-color: #EDEBE5; height:20px; width:190px; text-align:right; } .coolbg5 { border-top: 1px solid #BDC5B4; background-color: #EDEBE5; font-size:1pt; height:6px; width:190px; } .dlg { border: 2px solid #749F4D; background-color: #F0FAEB; padding: 2px; width: 360px; line-height:160%; } .dlgws { border: 2px solid #749F4D; background-color: #F0FAEB; padding: 2px; width: 280px; line-height:160%; } .dlgws div { width: 100%; } .dlgTesttitle { border: 2px solid #749F4D; background-color: #F0FAEB; padding: 2px; width: 200px; line-height:150%; } #_mysource{ z-index:5000; } #_mywriter{ z-index:6000; } .option1{ background-color: #DCECA6; } .option2{ background-color: #F7FBD2; } .option3{ background-color: #FFFFFF; } .ininput{ width:96%; height:20px; border:1px solid #ffffff; } .nbt{ padding: 1px; background-image:url('allbtbg.gif'); background-color:#ffffff; border:1px solid #A5AF83; } .tdt{ padding-left: 6px; } .waitpage { top:0; left:0; filter:Alpha(opacity=70); -moz-opacity:0.7; position:absolute; z-index:10000; background:url(../images/frame/loading1.gif) #ababab center no-repeat; } .divpre { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale); } .autoinput { padding-left:3px; width:90%; height:22px } .bodytitle { margin:auto; height:28px; border:1px dotted #BFD67C; background:url('wbg.gif'); margin-bottom:6px; width:98%; font-weight:bold; } .bodytitle div { float:left } .bodytitletxt { padding-left:6px; line-height:28px; } .tbtitle td{ padding:3px; } .tblist td{ background:#FFFFFF; padding:6px; } .tblist td.tbsname{ background:#F9FFE6; padding:6px; }
100mall
trunk/100mall/webapps/plugins/theme/skin/css/base.css
CSS
oos
4,965
div { padding:0px; margin:0px; } body { scrollbar-base-color:#bae87c; scrollbar-arrow-color:#FFFFFF; scrollbar-shadow-color:#c1ea8b; padding:0px; margin:auto; text-align:center; background-color:#9ad075; } dl.bitem { width:148px; margin:0px 0px 5px 4px; } dl.bitem dt { background:url(../images/frame/menubg.gif); height:26px; line-height:26px; text-align:center; cursor:pointer; } dl.bitem dd { padding:3px 3px 3px 3px; background-color:#fff; } .fllct { float:left; width:90px; } .flrct { padding-top:3px; float:left; } div.items { line-height:22px; background:url(../images/frame/arr4.gif) no-repeat 10px 9px; } span.items { padding:10px 0px 10px 22px; background:url(../images/frame/arr4.gif) no-repeat 10px 12px; } ul { padding-top:3px; } li { height:22px; } .sitemu li { padding:0px 0px 0px 22px; line-height:24px; background:url(../images/frame/arr4.gif) no-repeat 10px 9px; }
100mall
trunk/100mall/webapps/plugins/theme/skin/css/menu.css
CSS
oos
1,005
/** * Copyright (c) 2010 Anders Ekdahl (http://coffeescripter.com/) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.2.4 * * Demo and documentation: http://coffeescripter.com/code/ad-gallery/ */ (function($) { $.fn.adGallery = function(options) { var defaults = { loader_image: '../img/loader.gif', start_at_index: 0, description_wrapper: false, thumb_opacity: 0.7, animate_first_image: false, animation_speed: 400, width: false, height: false, display_next_and_prev: true, display_back_and_forward: true, scroll_jump: 0, // If 0, it jumps the width of the container slideshow: { enable: true, autostart: false, speed: 5000, start_label: start_message, stop_label: stop_message, stop_on_scroll: true, countdown_prefix: '(', countdown_sufix: ')', onStart: false, onStop: false }, effect: 'slide-hori', // or 'slide-vert', 'fade', or 'resize', 'none' enable_keyboard_move: true, cycle: true, callbacks: { init: false, afterImageVisible: false, beforeImageVisible: false } }; var settings = $.extend(false, defaults, options); if(options && options.slideshow) { settings.slideshow = $.extend(false, defaults.slideshow, options.slideshow); }; if(!settings.slideshow.enable) { settings.slideshow.autostart = false; }; var galleries = []; $(this).each(function() { var gallery = new AdGallery(this, settings); galleries[galleries.length] = gallery; }); // Sorry, breaking the jQuery chain because the gallery instances // are returned so you can fiddle with them return galleries; }; function VerticalSlideAnimation(img_container, direction, desc) { var current_top = parseInt(img_container.css('top'), 10); if(direction == 'left') { var old_image_top = '-'+ this.image_wrapper_height +'px'; img_container.css('top', this.image_wrapper_height +'px'); } else { var old_image_top = this.image_wrapper_height +'px'; img_container.css('top', '-'+ this.image_wrapper_height +'px'); }; if(desc) { desc.css('bottom', '-'+ desc[0].offsetHeight +'px'); desc.animate({bottom: 0}, this.settings.animation_speed * 2); }; if(this.current_description) { this.current_description.animate({bottom: '-'+ this.current_description[0].offsetHeight +'px'}, this.settings.animation_speed * 2); }; return {old_image: {top: old_image_top}, new_image: {top: current_top}}; }; function HorizontalSlideAnimation(img_container, direction, desc) { var current_left = parseInt(img_container.css('left'), 10); if(direction == 'left') { var old_image_left = '-'+ this.image_wrapper_width +'px'; img_container.css('left',this.image_wrapper_width +'px'); } else { var old_image_left = this.image_wrapper_width +'px'; img_container.css('left','-'+ this.image_wrapper_width +'px'); }; if(desc) { desc.css('bottom', '-'+ desc[0].offsetHeight +'px'); desc.animate({bottom: 0}, this.settings.animation_speed * 2); }; if(this.current_description) { this.current_description.animate({bottom: '-'+ this.current_description[0].offsetHeight +'px'}, this.settings.animation_speed * 2); }; return {old_image: {left: old_image_left}, new_image: {left: current_left}}; }; function ResizeAnimation(img_container, direction, desc) { var image_width = img_container.width(); var image_height = img_container.height(); var current_left = parseInt(img_container.css('left'), 10); var current_top = parseInt(img_container.css('top'), 10); img_container.css({width: 0, height: 0, top: this.image_wrapper_height / 2, left: this.image_wrapper_width / 2}); return {old_image: {width: 0, height: 0, top: this.image_wrapper_height / 2, left: this.image_wrapper_width / 2}, new_image: {width: image_width, height: image_height, top: current_top, left: current_left}}; }; function FadeAnimation(img_container, direction, desc) { img_container.css('opacity', 0); return {old_image: {opacity: 0}, new_image: {opacity: 1}}; }; // Sort of a hack, will clean this up... eventually function NoneAnimation(img_container, direction, desc) { img_container.css('opacity', 0); return {old_image: {opacity: 0}, new_image: {opacity: 1}, speed: 0}; }; function AdGallery(wrapper, settings) { this.init(wrapper, settings); }; AdGallery.prototype = { // Elements wrapper: false, image_wrapper: false, gallery_info: false, nav: false, loader: false, preloads: false, thumbs_wrapper: false, scroll_back: false, scroll_forward: false, next_link: false, prev_link: false, slideshow: false, image_wrapper_width: 0, image_wrapper_height: 0, current_index: 0, current_image: false, current_description: false, nav_display_width: 0, settings: false, images: false, in_transition: false, animations: false, init: function(wrapper, settings) { var context = this; this.wrapper = $(wrapper); this.settings = settings; this.setupElements(); this.setupAnimations(); if(this.settings.width) { this.image_wrapper_width = this.settings.width; this.image_wrapper.width(this.settings.width); this.wrapper.width(this.settings.width); } else { this.image_wrapper_width = this.image_wrapper.width(); }; if(this.settings.height) { this.image_wrapper_height = this.settings.height; this.image_wrapper.height(this.settings.height); } else { this.image_wrapper_height = this.image_wrapper.height(); }; this.nav_display_width = this.nav.width(); this.current_index = 0; this.current_image = false; this.current_description = false; this.in_transition = false; this.findImages(); if(this.settings.display_next_and_prev) { this.initNextAndPrev(); }; // The slideshow needs a callback to trigger the next image to be shown // but we don't want to give it access to the whole gallery instance var nextimage_callback = function(callback) { return context.nextImage(callback); }; this.slideshow = new AdGallerySlideshow(nextimage_callback, this.settings.slideshow); this.controls.append(this.slideshow.create()); if(this.settings.slideshow.enable) { this.slideshow.enable(); } else { this.slideshow.disable(); }; if(this.settings.display_back_and_forward) { this.initBackAndForward(); }; if(this.settings.enable_keyboard_move) { this.initKeyEvents(); }; var start_at = parseInt(this.settings.start_at_index, 10); if(window.location.hash && window.location.hash.indexOf('#ad-image') === 0) { start_at = window.location.hash.replace(/[^0-9]+/g, ''); // Check if it's a number if((start_at * 1) != start_at) { start_at = this.settings.start_at_index; }; }; this.loading(true); this.showImage(start_at, function() { // We don't want to start the slideshow before the image has been // displayed if(context.settings.slideshow.autostart) { context.preloadImage(start_at + 1); context.slideshow.start(); }; } ); this.fireCallback(this.settings.callbacks.init); }, setupAnimations: function() { this.animations = { 'slide-vert': VerticalSlideAnimation, 'slide-hori': HorizontalSlideAnimation, 'resize': ResizeAnimation, 'fade': FadeAnimation, 'none': NoneAnimation }; }, setupElements: function() { this.controls = this.wrapper.find('.ad-controls'); this.gallery_info = $('<p class="ad-info"></p>'); this.controls.append(this.gallery_info); this.image_wrapper = this.wrapper.find('.ad-image-wrapper'); this.image_wrapper.empty(); this.nav = this.wrapper.find('.ad-nav'); this.thumbs_wrapper = this.nav.find('.ad-thumbs'); this.preloads = $('<div class="ad-preloads"></div>'); this.loader = $('<img class="ad-loader" src="'+ this.settings.loader_image +'">'); this.image_wrapper.append(this.loader); this.loader.hide(); $(document.body).append(this.preloads); }, loading: function(bool) { if(bool) { this.loader.show(); } else { this.loader.hide(); }; }, addAnimation: function(name, fn) { if($.isFunction(fn)) { this.animations[name] = fn; }; }, findImages: function() { var context = this; this.images = []; var thumb_wrapper_width = 0; var thumbs_loaded = 0; var thumbs = this.thumbs_wrapper.find('a'); var thumb_count = thumbs.length; if(this.settings.thumb_opacity < 1) { thumbs.find('img').css('opacity', this.settings.thumb_opacity); }; thumbs.each( function(i) { var link = $(this); var image_src = link.attr('href'); var thumb = link.find('img'); // Check if the thumb has already loaded if(!context.isImageLoaded(thumb[0])) { thumb.load( function() { thumb_wrapper_width += this.parentNode.parentNode.offsetWidth; thumbs_loaded++; } ); } else{ thumb_wrapper_width += thumb[0].parentNode.parentNode.offsetWidth; thumbs_loaded++; }; link.addClass('ad-thumb'+ i); link.click( function() { context.showImage(i); context.slideshow.stop(); return false; } ).hover( function() { if(!$(this).is('.ad-active') && context.settings.thumb_opacity < 1) { $(this).find('img').fadeTo(300, 1); }; context.preloadImage(i); }, function() { if(!$(this).is('.ad-active') && context.settings.thumb_opacity < 1) { $(this).find('img').fadeTo(300, context.settings.thumb_opacity); }; } ); var link = false; if(thumb.data('ad-link')) { link = thumb.data('ad-link'); } else if(thumb.attr('longdesc') && thumb.attr('longdesc').length) { link = thumb.attr('longdesc'); }; var desc = false; if(thumb.data('ad-desc')) { desc = thumb.data('ad-desc'); } else if(thumb.attr('alt') && thumb.attr('alt').length) { desc = thumb.attr('alt'); }; var title = false; if(thumb.data('ad-title')) { title = thumb.data('ad-title'); } else if(thumb.attr('title') && thumb.attr('title').length) { title = thumb.attr('title'); }; context.images[i] = { thumb: thumb.attr('src'), image: image_src, error: false, preloaded: false, desc: desc, title: title, size: false, link: link }; } ); // Wait until all thumbs are loaded, and then set the width of the ul var inter = setInterval( function() { if(thumb_count == thumbs_loaded) { thumb_wrapper_width -= 100; var list = context.nav.find('.ad-thumb-list'); list.css('width', thumb_wrapper_width +'px'); var i = 1; var last_height = list.height(); while(i < 201) { list.css('width', (thumb_wrapper_width + i) +'px'); if(last_height != list.height()) { break; } last_height = list.height(); i++; } clearInterval(inter); }; }, 100 ); }, initKeyEvents: function() { var context = this; $(document).keydown( function(e) { if(e.keyCode == 39) { // right arrow context.nextImage(); context.slideshow.stop(); } else if(e.keyCode == 37) { // left arrow context.prevImage(); context.slideshow.stop(); }; } ); }, initNextAndPrev: function() { this.next_link = $('<div class="ad-next"><div class="ad-next-image"></div></div>'); this.prev_link = $('<div class="ad-prev"><div class="ad-prev-image"></div></div>'); this.image_wrapper.append(this.next_link); this.image_wrapper.append(this.prev_link); var context = this; this.prev_link.add(this.next_link).mouseover( function(e) { // IE 6 hides the wrapper div, so we have to set it's width $(this).css('height', context.image_wrapper_height); $(this).find('div').show(); } ).mouseout( function(e) { $(this).find('div').hide(); } ).click( function() { if($(this).is('.ad-next')) { context.nextImage(); context.slideshow.stop(); } else { context.prevImage(); context.slideshow.stop(); }; } ).find('div').css('opacity', 0.7); }, initBackAndForward: function() { var context = this; this.scroll_forward = $('<div class="ad-forward"></div>'); this.scroll_back = $('<div class="ad-back"></div>'); this.nav.append(this.scroll_forward); this.nav.prepend(this.scroll_back); var has_scrolled = 0; var thumbs_scroll_interval = false; $(this.scroll_back).add(this.scroll_forward).click( function() { // We don't want to jump the whole width, since an image // might be cut at the edge var width = context.nav_display_width - 50; if(context.settings.scroll_jump > 0) { var width = context.settings.scroll_jump; }; if($(this).is('.ad-forward')) { var left = context.thumbs_wrapper.scrollLeft() + width; } else { var left = context.thumbs_wrapper.scrollLeft() - width; }; if(context.settings.slideshow.stop_on_scroll) { context.slideshow.stop(); }; context.thumbs_wrapper.animate({scrollLeft: left +'px'}); return false; } ).css('opacity', 0.6).hover( function() { var direction = 'left'; if($(this).is('.ad-forward')) { direction = 'right'; }; thumbs_scroll_interval = setInterval( function() { has_scrolled++; // Don't want to stop the slideshow just because we scrolled a pixel or two if(has_scrolled > 30 && context.settings.slideshow.stop_on_scroll) { context.slideshow.stop(); }; var left = context.thumbs_wrapper.scrollLeft() + 1; if(direction == 'left') { left = context.thumbs_wrapper.scrollLeft() - 1; }; context.thumbs_wrapper.scrollLeft(left); }, 10 ); $(this).css('opacity', 1); }, function() { has_scrolled = 0; clearInterval(thumbs_scroll_interval); $(this).css('opacity', 0.6); } ); }, _afterShow: function() { this.gallery_info.html((this.current_index + 1) +' / '+ this.images.length); if(!this.settings.cycle) { // Needed for IE this.prev_link.show().css('height', this.image_wrapper_height); this.next_link.show().css('height', this.image_wrapper_height); if(this.current_index == (this.images.length - 1)) { this.next_link.hide(); }; if(this.current_index == 0) { this.prev_link.hide(); }; }; this.fireCallback(this.settings.callbacks.afterImageVisible); }, /** * Checks if the image is small enough to fit inside the container * If it's not, shrink it proportionally */ _getContainedImageSize: function(image_width, image_height) { if(image_height > this.image_wrapper_height) { var ratio = image_width / image_height; image_height = this.image_wrapper_height; image_width = this.image_wrapper_height * ratio; }; if(image_width > this.image_wrapper_width) { var ratio = image_height / image_width; image_width = this.image_wrapper_width; image_height = this.image_wrapper_width * ratio; }; return {width: image_width, height: image_height}; }, /** * If the image dimensions are smaller than the wrapper, we position * it in the middle anyway */ _centerImage: function(img_container, image_width, image_height) { img_container.css('top', '0px'); if(image_height < this.image_wrapper_height) { var dif = this.image_wrapper_height - image_height; img_container.css('top', (dif / 2) +'px'); }; img_container.css('left', '0px'); if(image_width < this.image_wrapper_width) { var dif = this.image_wrapper_width - image_width; img_container.css('left', (dif / 2) +'px'); }; }, _getDescription: function(image) { var desc = false; if(image.desc.length || image.title.length) { var title = ''; if(image.title.length) { title = '<strong class="ad-description-title">'+ image.title +'</strong>'; }; var desc = ''; if(image.desc.length) { desc = '<span>'+ image.desc +'</span>'; }; desc = $('<p class="ad-image-description">'+ title + desc +'</p>'); }; return desc; }, /** * @param function callback Gets fired when the image has loaded, is displaying * and it's animation has finished */ showImage: function(index, callback) { if(this.images[index] && !this.in_transition) { var context = this; var image = this.images[index]; this.in_transition = true; if(!image.preloaded) { this.loading(true); this.preloadImage(index, function() { context.loading(false); context._showWhenLoaded(index, callback); }); } else { this._showWhenLoaded(index, callback); }; }; }, /** * @param function callback Gets fired when the image has loaded, is displaying * and it's animation has finished */ _showWhenLoaded: function(index, callback) { if(this.images[index]) { var context = this; var image = this.images[index]; var img_container = $(document.createElement('div')).addClass('ad-image'); var img = $(new Image()).attr('src', image.image); if(image.link) { var link = $('<a href="'+ image.link +'" target="_blank"></a>'); link.append(img); img_container.append(link); } else { img_container.append(img); } this.image_wrapper.prepend(img_container); var size = this._getContainedImageSize(image.size.width, image.size.height); img.attr('width', size.width); img.attr('height', size.height); img_container.css({width: size.width +'px', height: size.height +'px'}); this._centerImage(img_container, size.width, size.height); var desc = this._getDescription(image, img_container); if(desc) { if(!this.settings.description_wrapper) { img_container.append(desc); var width = size.width - parseInt(desc.css('padding-left'), 10) - parseInt(desc.css('padding-right'), 10); desc.css('width', width +'px'); } else { this.settings.description_wrapper.append(desc); } }; this.highLightThumb(this.nav.find('.ad-thumb'+ index)); var direction = 'right'; if(this.current_index < index) { direction = 'left'; }; this.fireCallback(this.settings.callbacks.beforeImageVisible); if(this.current_image || this.settings.animate_first_image) { var animation_speed = this.settings.animation_speed; var easing = 'swing'; var animation = this.animations[this.settings.effect].call(this, img_container, direction, desc); if(typeof animation.speed != 'undefined') { animation_speed = animation.speed; }; if(typeof animation.easing != 'undefined') { easing = animation.easing; }; if(this.current_image) { var old_image = this.current_image; var old_description = this.current_description; old_image.animate(animation.old_image, animation_speed, easing, function() { old_image.remove(); if(old_description) old_description.remove(); } ); }; img_container.animate(animation.new_image, animation_speed, easing, function() { context.current_index = index; context.current_image = img_container; context.current_description = desc; context.in_transition = false; context._afterShow(); context.fireCallback(callback); } ); } else { this.current_index = index; this.current_image = img_container; context.current_description = desc; this.in_transition = false; context._afterShow(); this.fireCallback(callback); }; }; }, nextIndex: function() { if(this.current_index == (this.images.length - 1)) { if(!this.settings.cycle) { return false; }; var next = 0; } else { var next = this.current_index + 1; }; return next; }, nextImage: function(callback) { var next = this.nextIndex(); if(next === false) return false; this.preloadImage(next + 1); this.showImage(next, callback); return true; }, prevIndex: function() { if(this.current_index == 0) { if(!this.settings.cycle) { return false; }; var prev = this.images.length - 1; } else { var prev = this.current_index - 1; }; return prev; }, prevImage: function(callback) { var prev = this.prevIndex(); if(prev === false) return false; this.preloadImage(prev - 1); this.showImage(prev, callback); return true; }, preloadAll: function() { var context = this; var i = 0; function preloadNext() { if(i < context.images.length) { i++; context.preloadImage(i, preloadNext); }; }; context.preloadImage(i, preloadNext); }, preloadImage: function(index, callback) { if(this.images[index]) { var image = this.images[index]; if(!this.images[index].preloaded) { var img = $(new Image()); img.attr('src', image.image); if(!this.isImageLoaded(img[0])) { this.preloads.append(img); var context = this; img.load( function() { image.preloaded = true; image.size = { width: this.width, height: this.height }; context.fireCallback(callback); } ).error( function() { image.error = true; image.preloaded = false; image.size = false; } ); } else { image.preloaded = true; image.size = { width: img[0].width, height: img[0].height }; this.fireCallback(callback); }; } else { this.fireCallback(callback); }; }; }, isImageLoaded: function(img) { if(typeof img.complete != 'undefined' && !img.complete) { return false; }; if(typeof img.naturalWidth != 'undefined' && img.naturalWidth == 0) { return false; }; return true; }, highLightThumb: function(thumb) { this.thumbs_wrapper.find('.ad-active').removeClass('ad-active'); thumb.addClass('ad-active'); if(this.settings.thumb_opacity < 1) { this.thumbs_wrapper.find('a:not(.ad-active) img').fadeTo(300, this.settings.thumb_opacity); thumb.find('img').fadeTo(300, 1); }; var left = thumb[0].parentNode.offsetLeft; left -= (this.nav_display_width / 2) - (thumb[0].offsetWidth / 2); this.thumbs_wrapper.animate({scrollLeft: left +'px'}); }, fireCallback: function(fn) { if($.isFunction(fn)) { fn.call(this); }; } }; function AdGallerySlideshow(nextimage_callback, settings) { this.init(nextimage_callback, settings); }; AdGallerySlideshow.prototype = { start_link: false, stop_link: false, countdown: false, controls: false, settings: false, nextimage_callback: false, enabled: false, running: false, countdown_interval: false, init: function(nextimage_callback, settings) { var context = this; this.nextimage_callback = nextimage_callback; this.settings = settings; }, create: function() { this.start_link = $('<span class="ad-slideshow-start">'+ this.settings.start_label +'</span>'); this.stop_link = $('<span class="ad-slideshow-stop">'+ this.settings.stop_label +'</span>'); this.countdown = $('<span class="ad-slideshow-countdown"></span>'); this.controls = $('<div class="ad-slideshow-controls"></div>'); this.controls.append(this.start_link).append(this.stop_link).append(this.countdown); this.countdown.hide(); var context = this; this.start_link.click( function() { context.start(); } ); this.stop_link.click( function() { context.stop(); } ); $(document).keydown( function(e) { if(e.keyCode == 83) { // 's' if(context.running) { context.stop(); } else { context.start(); }; }; } ); return this.controls; }, disable: function() { this.enabled = false; this.stop(); this.controls.hide(); }, enable: function() { this.enabled = true; this.controls.show(); }, toggle: function() { if(this.enabled) { this.disable(); } else { this.enable(); }; }, start: function() { if(this.running || !this.enabled) return false; var context = this; this.running = true; this.controls.addClass('ad-slideshow-running'); this._next(); this.fireCallback(this.settings.onStart); return true; }, stop: function() { if(!this.running) return false; this.running = false; this.countdown.hide(); this.controls.removeClass('ad-slideshow-running'); clearInterval(this.countdown_interval); this.fireCallback(this.settings.onStop); return true; }, _next: function() { var context = this; var pre = this.settings.countdown_prefix; var su = this.settings.countdown_sufix; clearInterval(context.countdown_interval); this.countdown.show().html(pre + (this.settings.speed / 1000) + su); var slide_timer = 0; this.countdown_interval = setInterval( function() { slide_timer += 1000; if(slide_timer >= context.settings.speed) { var whenNextIsShown = function() { // A check so the user hasn't stoped the slideshow during the // animation if(context.running) { context._next(); }; slide_timer = 0; }; if(!context.nextimage_callback(whenNextIsShown)) { context.stop(); }; slide_timer = 0; }; var sec = parseInt(context.countdown.text().replace(/[^0-9]/g, ''), 10); sec--; if(sec > 0) { context.countdown.html(pre + sec + su); }; }, 1000 ); }, fireCallback: function(fn) { if($.isFunction(fn)) { fn.call(this); }; } }; })(jQuery);
100mall
trunk/100mall/webapps/plugins/theme/gallery/jquery.ad-gallery.js
JavaScript
oos
29,656
.ad-gallery, .ad-gallery * { margin: 0; padding: 0; } .ad-gallery .ad-image-wrapper { width: 100%; height: 400px; margin-bottom: 10px; position: relative; overflow: hidden; } .ad-gallery .ad-image-wrapper .ad-loader { position: absolute; z-index: 10; top: 48%; left: 48%; border: 0px solid #CCC; filter:alpha(opacity=60); -moz-opacity:.60; opacity:0.6 } .ad-gallery .ad-image-wrapper .ad-next { position: absolute; right: 0; top: 0; width: 25%; height: 100%; cursor: pointer; display: block; z-index: 100; } .ad-gallery .ad-image-wrapper .ad-prev { position: absolute; left: 0; top: 0; width: 25%; height: 100%; cursor: pointer; display: block; z-index: 100; } .ad-gallery .ad-image-wrapper .ad-prev, .ad-gallery .ad-image-wrapper .ad-next { /* Or else IE will hide it */ background: url(non-existing.jpg)\9 } .ad-gallery .ad-image-wrapper .ad-prev .ad-prev-image, .ad-gallery .ad-image-wrapper .ad-next .ad-next-image { background: url(ad_prev.png); width: 30px; height: 30px; display: none; position: absolute; top: 47%; left: 0; z-index: 101; } .ad-gallery .ad-image-wrapper .ad-next .ad-next-image { background: url(ad_next.png); width: 30px; height: 30px; right: 0; left: auto; } .ad-gallery .ad-image-wrapper .ad-image { position: absolute; overflow: hidden; top: 0; left: 0; z-index: 9; } .ad-gallery .ad-image-wrapper .ad-image a img { border: 0; } .ad-gallery .ad-image-wrapper .ad-image .ad-image-description { position: absolute; bottom: 0px; left: 0px; padding: 7px; text-align: left; width: 100%; z-index: 2; background: url(opa75.png); color: #000; } * html .ad-gallery .ad-image-wrapper .ad-image .ad-image-description { background: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, sizingMethod=scale, src='opa75.png'); } .ad-gallery .ad-image-wrapper .ad-image .ad-image-description .ad-description-title { display: block; } .ad-gallery .ad-controls { height: 20px; } .ad-gallery .ad-info { float: left; } .ad-gallery .ad-slideshow-controls { float: right; } .ad-gallery .ad-slideshow-controls .ad-slideshow-start, .ad-gallery .ad-slideshow-controls .ad-slideshow-stop { padding-left: 5px; cursor: pointer; } .ad-gallery .ad-slideshow-controls .ad-slideshow-countdown { padding-left: 5px; font-size: 0.9em; } .ad-gallery .ad-slideshow-running .ad-slideshow-start { cursor: default; font-style: italic; } .ad-gallery .ad-nav { width: 100%; position: relative; } .ad-gallery .ad-forward, .ad-gallery .ad-back { position: absolute; top: 0; height: 100%; z-index: 10; } /* IE 6 doesn't like height: 100% */ * html .ad-gallery .ad-forward, .ad-gallery .ad-back { height: 100px; } .ad-gallery .ad-back { cursor: pointer; left: -20px; width: 13px; display: block; background: url(ad_scroll_back.png) 0px 22px no-repeat; } .ad-gallery .ad-forward { cursor: pointer; display: block; right: -20px; width: 13px; background: url(ad_scroll_forward.png) 0px 22px no-repeat; } .ad-gallery .ad-nav .ad-thumbs { overflow: hidden; width: 100%; } .ad-gallery .ad-thumbs .ad-thumb-list { float: left; width: 9000px; list-style: none; } .ad-gallery .ad-thumbs li { float: left; padding-right: 5px; } .ad-gallery .ad-thumbs li a { display: block; } .ad-gallery .ad-thumbs li a img { border: 3px solid #CCC; display: block; } .ad-gallery .ad-thumbs li a.ad-active img { border: 3px solid #616161; } /* Can't do display none, since Opera won't load the images then */ .ad-preloads { position: absolute; left: -9000px; top: -9000px; }
100mall
trunk/100mall/webapps/plugins/theme/gallery/jquery.ad-gallery.css
CSS
oos
4,634
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/localeBundle.jsp'%> <%@ taglib uri="http://www.legendesign.net/tags" prefix="ls"%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>LegendShop Biz Tags Example</title> </head> <body> <table border="1" width="100%"> <tr> <td>Biz Tags名称</td> <td>用法</td> <td>示例</td> </tr> <tr> <td>com.legendshop.business.tag.SortTag(sort)</td> <td>用法</td> <td> <table border="1" style="border-collapse: collapse;"> <td>Sort List</td><td>sortId</td><td>sortName</td><td>nsort size</td> <lb:sort var="sort" loadAll="true" sortType="P"> <tr><td>${sortIndex}</td><td>${sort.sortId}</td><td>${sort.sortName}</td> <td> <c:forEach items="${sort.nsort}" var="nsort" >${nsort.nsortName}<br></c:forEach> </td></tr> </lb:sort> </table> </td> </tr> <tr> <td>com.legendshop.business.tag.ShopDetailTag(ShopDetailTag)</td> <td>用法</td> <td> <lb:shopDetail var="shopDetail" /> ${shopDetail.sitename} </td> </tr> <tr> <td>com.legendshop.core.tag.CurrentShopTag</td> <td>用法</td> <td><lb:currentShop /></td> </tr> <tr> <td>com.legendshop.core.tag.CurrentUserTag</td> <td>用法</td> <td><lb:currentUser /></td> </tr> <tr> <td>com.legendshop.core.tag.UserLoginedTag</td> <td>用法</td> <td><lb:logined >当前登录用户: <lb:currentUser /></lb:logined></td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/system/biztags.jsp
Java Server Pages
oos
1,787
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <html> <head> <base target="_blank"> <title>LegendShop - 开发者辅佐工具</title> </head> <body> <div style="font-weight: bold;">LegendShop - 开发者辅佐工具</div><br> <a href='sql/sqlCode.jsp' target='_blank'>系统SQL配置管理和刷新SQL缓存</a><br> <a href='cookies/login_user.jsp' target='_blank'>查看当前登录用户的权限</a><br> <a href='file/log_view.jsp' target='_blank'>下载文件管理</a><br> <a href='file/secured_file_view.jsp' target='_blank'>安全文件管理</a><br> <a href='file/securest_file_view.jsp' target='_blank'>保密文件管理</a><br> <a href='cookies/ReadSession.jsp' target='_blank'>Session管理</a><br> <a href='cookies/ReadCookies.jsp' target='_blank'>Cookies管理</a><br> <a href='system.jsp' target='_blank'>系统参数和内存管理</a><br> <a href='memery.jsp' target='_blank'>内存管理</a><br><br> <a href='tags.jsp' target='_blank'>LegendShop Tags Example</a><br> <a href='biztags.jsp' target='_blank'>LegendShop Biz Tags Example</a><br> </body> </html>
100mall
trunk/100mall/webapps/system/index.jsp
Java Server Pages
oos
1,200
<%@ page language="java" pageEncoding="utf-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="java.io.File"%> <%@page import="java.sql.Timestamp"%> <html> <head> <title>文件下载</title> </head> <body> <div align="center"><span class="title1">上传的文件列表</span><br> </div> <center> <table width="567" class="tableBorder"> <tr> <td width="180" >文件名</td> <td width="180" >时间</td> <td width="30" >下载</td> </tr> <% String filePath = PropertiesUtil.getDownloadFilePath() + "securest/"; // System.out.println("filePath = "+filePath); File dir = new File(filePath); File[] files=null; if(dir.isDirectory()){ files=dir.listFiles(); } if(files!=null){ for(int i=0;i<files.length;i++){ %> <tr > <td ><%=files[i].getName() %></td> <td ><%=new Timestamp(files[i].lastModified())%></td> <td> <a href="<%=request.getContextPath()%>/servlet/downloadfileservlet/securest/<%=java.net.URLEncoder.encode(files[i].getName(),"UTF-8") %>">下载</a> </td> </tr> <%} }%> </table> </center> </body> </html>
100mall
trunk/100mall/webapps/system/file/securest_file_view.jsp
Java Server Pages
oos
1,732
<%@ page language="java" pageEncoding="utf-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="java.io.File"%> <%@page import="java.sql.Timestamp"%> <%@page import="com.legendshop.util.FileTimeWrapper"%> <%@page import="java.util.Arrays"%> <%@page import="java.text.DecimalFormat"%><html> <head> <title>文件下载</title> </head> <body> <div align="center"><span class="title1">上传的文件列表</span><br> </div> <center> <table width="567" class="tableBorder"> <tr> <td width="180" >文件名</td> <td width="180" >时间</td> <td width="180" >大小</td> <td width="30" >下载</td> </tr> <% //String filePath = "/v0/done/logs/"; String filePath = PropertiesUtil.getDownloadFilePath(); File dir = new File(filePath); File[] files=null; if(dir.isDirectory()){ files=dir.listFiles(); } if(files!=null){ FileTimeWrapper [] fileWrappers = new FileTimeWrapper[files.length]; for (int j=0; j<files.length; j++) { fileWrappers[j] = new FileTimeWrapper(files[j]); } Arrays.sort(fileWrappers); for(int i=0;i<fileWrappers.length;i++){ DecimalFormat format = new DecimalFormat("#.#"); String str = format.format(fileWrappers[i].getFile().length()/1024.0); %> <tr > <td ><%=fileWrappers[i].getFile().getName() %></td> <td ><%=new Timestamp(fileWrappers[i].getFile().lastModified())%></td> <td ><%=str %></td> <td > <a href="<%=request.getContextPath()%>/servlet/downloadfileservlet/<%=java.net.URLEncoder.encode(fileWrappers[i].getFile().getName(),"UTF-8") %>">下载</a> </td> </tr> <%} }%> </table> </center> </body> </html>
100mall
trunk/100mall/webapps/system/file/log_view.jsp
Java Server Pages
oos
2,431
<%@ page language="java" pageEncoding="utf-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="java.io.File"%> <%@page import="java.sql.Timestamp"%> <html> <head> <title>文件下载</title> </head> <body> <div align="center"><span class="title1">上传的文件列表</span><br> </div> <center> <table width="567" class="tableBorder"> <tr> <td width="180" >文件名</td> <td width="180" >时间</td> <td width="30" >下载</td> </tr> <% String filePath = PropertiesUtil.getDownloadFilePath() + "secured/"; // System.out.println("filePath = "+filePath); File dir = new File(filePath); File[] files=null; if(dir.isDirectory()){ files=dir.listFiles(); } if(files!=null){ for(int i=0;i<files.length;i++){ %> <tr > <td ><%=files[i].getName() %></td> <td ><%=new Timestamp(files[i].lastModified())%></td> <td > <a href="<%=request.getContextPath()%>/servlet/downloadfileservlet/secured/<%=java.net.URLEncoder.encode(files[i].getName(),"UTF-8") %>">下载</a> </td> </tr> <%} }%> </table> </center> </body> </html>
100mall
trunk/100mall/webapps/system/file/secured_file_view.jsp
Java Server Pages
oos
1,731
<%@ page language="java" pageEncoding="utf-8"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@ include file="/pages/common/common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@page import="java.io.File"%> <%@page import="java.sql.Timestamp"%> <html> <head> <title>文件下载</title> </head> <body> <div align="center"><span class="title1">上传的文件列表</span><br> </div> <center> <table width="567" class="tableBorder"> <tr> <td width="180" >文件名</td> <td width="180" >时间</td> <td width="30" >下载</td> </tr> <% String filePath = PropertiesUtil.getDownloadFilePath(); // System.out.println("filePath = "+filePath); File dir = new File(filePath); File[] files=null; if(dir.isDirectory()){ files=dir.listFiles(); } if(files!=null){ for(int i=0;i<files.length;i++){ %> <tr > <td ><%=files[i].getName()%></td> <td ><%=new Timestamp(files[i].lastModified())%></td> <td > <a href="<%=request.getContextPath()%>/servlet/downloadfileservlet/<%=java.net.URLEncoder.encode(files[i].getName(),"UTF-8") %>">下载</a> </td> </tr> <%} }%> </table> </center> </body> </html>
100mall
trunk/100mall/webapps/system/file/file_view.jsp
Java Server Pages
oos
1,743
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.util.sql.ConfigCode"%> <% String isDebug = request.getParameter("isDebug"); int debug = Integer.valueOf(isDebug); if(debug == 1){ ConfigCode.getInstance().setDebug(true); }else{ ConfigCode.getInstance().setDebug(false); } System.out.println("sQLCode isDebug = " + ConfigCode.getInstance().isDebug()); %> 设置调试模式成功,当前值为<%=ConfigCode.getInstance().isDebug() %><br> <a href="sqlCode.jsp">返回</a>
100mall
trunk/100mall/webapps/system/sql/changeLogdebug.jsp
Java Server Pages
oos
535
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.util.sql.ConfigCode"%> <% ConfigCode sQLCode = ConfigCode.refresh(); System.out.println("sQLCode isDebug = " + sQLCode.isDebug()); %> <a href="sqlCode.jsp">刷新成功,返回</a>
100mall
trunk/100mall/webapps/system/sql/refresh.jsp
Java Server Pages
oos
274
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.util.sql.ConfigCode"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@page import="java.util.Map"%> <bean:parameter id="debug" name="isDebug" value="1"/> <% String signnature = request.getParameter("signnature"); ConfigCode configCode = ConfigCode.getInstance(); Map<String, String> sqls = configCode.getParameters(); request.setAttribute("sqls",sqls); int isDebug = 0; if(configCode.isDebug()){ isDebug = 1; } request.setAttribute("isDebug",isDebug); //搜索 String result =""; if(signnature!=null){ result = ConfigCode.getInstance().getCode(signnature); request.setAttribute("result",result); }else{ signnature=""; } %> <html> <head> <title>系统配置文件</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <auth:auth ifNotGranted = "OP_DATA_RIGHT_TEST"> <a href="refresh.jsp">刷新缓存</a><br> <form name="form2" method="post" action="changeLogdebug.jsp"> 设置调试模式,如果设置为“是”则每次更改都会自动加载配置文件,设置为“否”则可以提高运行效率<br><br> <select name="isDebug"> <c:if test="${isDebug eq 1}"> <option value="1" selected="selected">是</option> <option value="0" >否</option> </c:if> <c:if test="${isDebug eq 0}"> <option value="1" >是</option> <option value="0" selected="selected">否</option> </c:if> </select> <input type="submit" name="Submit" value="提交"> </form> </auth:auth> <!-- <auth:auth ifNotGranted = "OP_LOGOUT"> <a href="javascript:window.parent.location='${DOMAIN_NAME}/cas/logout?next-chain=${DOMAIN_NAME}/j_acegi_logout'"> 系统注销</a> </auth:auth> --> <br><br> 通过ID查找系统参数的对应值: <form name="form1" method="post" action="sqlCode.jsp"> <input type="text" name="signnature" value="<%=signnature %>"> <input type="submit" name="Submit" value="提交"> </form> <table width="100%" border="1"> <tbody> <c:if test="${not empty result}"> <tr> <td>${result}&nbsp;</td> </tr> </c:if> </tbody> </table> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><font color="red">系统配置如下:</font></td> </tr> <c:if test="${not empty sqls}"> <c:forEach var="sql" items="${sqls}" varStatus="rowStatus"> <c:if test="${rowStatus.index % 2 eq 0}"> <tr bgcolor="#FFFFFF"> </c:if> <c:if test="${rowStatus.index % 2 eq 1}"> <tr bgcolor="#E6E6E6"> </c:if> <td style="border:#cccccc 1px solid" width="30" align="center">${rowStatus.index}</td> <td style="border:#cccccc 1px solid" width="15%" nowrap="nowrap">${sql.key}</td> <td style="border:#cccccc 1px solid">${sql.value}</td> </tr> </c:forEach> </c:if> </table> </body> </html>
100mall
trunk/100mall/webapps/system/sql/sqlCode.jsp
Java Server Pages
oos
3,529
<%@ page language="java" pageEncoding="UTF-8"%> <%@ page import="java.util.*, java.io.*"%> <%@page import="java.text.NumberFormat"%> <br>系统参数配置<br> <% try { System.getProperties().list(new PrintWriter(out)); } catch (Exception e) { e.printStackTrace() ; } %> <br><br/><br/>系统内存(M)<br/> <% Runtime runtime = Runtime.getRuntime(); NumberFormat format = NumberFormat.getInstance(); StringBuilder sb = new StringBuilder(); long maxMemory = runtime.maxMemory(); long allocatedMemory = runtime.totalMemory(); long freeMemory = runtime.freeMemory(); sb.append("free memory: " + format.format(freeMemory / 1024 /1024) + "<br/>"); sb.append("allocated memory: " + format.format(allocatedMemory / 1024/1024) + "<br/>"); sb.append("max memory: " + format.format(maxMemory / 1024/1024) + "<br/>"); sb.append("total free memory: " + format.format((freeMemory + (maxMemory - allocatedMemory))/1024/1024)); out.print(sb.toString()); %>
100mall
trunk/100mall/webapps/system/system.jsp
Java Server Pages
oos
1,007
<% Runtime lRuntime = Runtime.getRuntime(); out.println("*** BEGIN MEMORY STATISTICS ***<br/>"); out.println("Free Memory: "+lRuntime.freeMemory()+"<br/>"); out.println("Max Memory: "+lRuntime.maxMemory()+"<br/>"); out.println("Total Memory: "+lRuntime.totalMemory()+"<br/>"); out.println("Available Processors : "+lRuntime.availableProcessors()+"<br/>"); out.println("*** END MEMORY STATISTICS ***"); %>
100mall
trunk/100mall/webapps/system/memery.jsp
Java Server Pages
oos
413
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>Session信息</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <b>request参数</b><br> <% Enumeration requestContent = request.getAttributeNames(); %> <table border="1" style="border: 1px solid;border-collapse: collapse;"> <% while (requestContent.hasMoreElements()) { String next = (String) requestContent.nextElement(); %> <tr> <td><%=next %></td> <td><%=request.getAttribute(next).toString() %></td> </tr> <% } %> </table> <br> <b>session参数</b><br> <% Enumeration sessionContent = session.getAttributeNames(); %> <table border="1" style="border: 1px solid;border-collapse: collapse;"> <% while (sessionContent.hasMoreElements()) { String next = (String) sessionContent.nextElement(); %> <tr> <td><%=next %></td> <td><%=session.getAttribute(next).toString() %></td> </tr> <% } %> </table> <br> <b>Application参数</b><br> <% Enumeration applicationContent = session.getServletContext().getAttributeNames(); %> <table border="1" style="border: 1px solid;border-collapse: collapse;"> <% while (applicationContent.hasMoreElements()) { String next = (String) applicationContent.nextElement(); %> <tr> <td><%=next %></td> <td><%=session.getServletContext().getAttribute(next).toString() %></td> </tr> <% } %> </table> </body> </html>
100mall
trunk/100mall/webapps/system/cookies/ReadSession.jsp
Java Server Pages
oos
2,348
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>Cookies信息</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <table border=1 style="border: 1px solid;border-collapse: collapse;"> <tr><td>Name</td><td>value</td></tr> <% Cookie cookies[]=request.getCookies(); Cookie sCookie=null; String svalue=null; String sname=null; if(cookies!=null) for(int i=0;i<cookies.length;i++) { sCookie=cookies[i]; svalue=sCookie.getValue(); sname=sCookie.getName(); %> <tr><td><%=sname%></td><td><%=svalue%></td></tr> <% } %> </table> </body> </html>
100mall
trunk/100mall/webapps/system/cookies/ReadCookies.jsp
Java Server Pages
oos
1,344
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="com.legendshop.core.UserManager"/> <%@page import="org.springframework.security.core.context.SecurityContextImpl"%> <%@page import="org.springframework.security.core.Authentication"%> <%@page import="org.springframework.security.core.context.SecurityContext"%> <%@include file='/pages/common/taglib.jsp'%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; if(UserManager.getUser(request.getSession())!=null) if(UserManager.getUser(request.getSession()) != null){ pageContext.setAttribute("auth",UserManager.getUser(request.getSession()).getAuthorities()); pageContext.setAttribute("function",UserManager.getPrincipalFunctionByAuthorities(request.getSession())); } %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>用户信息</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> UserId:<%=UserManager.getUserId(request) %> <br> Username:${sessionScope.SPRING_SECURITY_LAST_USERNAME} <br><br> Has Function F_VIEW_ALL_DATA:<%=UserManager.hasFunction(request,"F_VIEW_ALL_DATA") %> <br><br> 登录用户所拥有的角色: <br> <c:forEach items="${auth}" var="authorities" varStatus="status"> ${status.index+1}: ${authorities}<br> </c:forEach> <br><br> 登录用户所拥有的权限: <br> <c:forEach items="${function}" var="function" varStatus="status"> ${status.index+1}: ${function}<br> </c:forEach> <br> <br> <br> <% // 得到用户名称 //ACEGI_SECURITY_CONTEXT SecurityContext context=(SecurityContext)session.getAttribute("SPRING_SECURITY_CONTEXT"); // 得到用户的密码 SecurityContextImpl securityContext=(SecurityContextImpl)session.getAttribute("SPRING_SECURITY_CONTEXT"); Authentication authentication = null; if(securityContext != null){ authentication = securityContext.getAuthentication(); } //String password=authentication.getCredentials(); %> </body> </html>
100mall
trunk/100mall/webapps/system/cookies/login_user.jsp
Java Server Pages
oos
2,573
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>WriteCookies</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> 增加Cookies <% String cookieName=request.getParameter("name"); if(cookieName==null) cookieName = "defaultName"; String cookieValue=request.getParameter("value"); if(cookieValue==null) cookieValue = "defaultValue"; Cookie cookie=new Cookie(cookieName,cookieValue); cookie.setMaxAge(10000); cookie.setPath("/"); response.addCookie(cookie); %> <br> </body> </html>
100mall
trunk/100mall/webapps/system/cookies/WriteCookies.jsp
Java Server Pages
oos
1,231
<table width="100%" class="tables"> <tr> <td style="background-color: #ECECEC;font-weight: bold;"><table width="100%"><tr><td width="80%">评论内容</td><td>评价人</td></tr><tr></table></td> <#list productCommentList as comment> <tr> <td><table width="100%"><tr > <td align="left" style="width: 80%"> <div><span style="color: #8A1F11">&nbsp;[${comment.addtime?string("yyyy-MM-dd HH:mm:ss")}]</span> &nbsp; ${comment.content} </div> <#if comment.replyContent??> <div style="margin-left: 10px">[回复]&nbsp;&nbsp; ${comment.replyContent?default("")}</div> <#else> </#if> </td> <td> ${comment.userName} <#if owner??> [<a target="_blank" href="/admin/productcomment/load/${comment.id}.c">回复</a>] </#if> </td> </tr></table> </tr> </#list> <tr><td align="right">一共<b>${totalProductComment}</b>条评论 ${toolBar?default("")}</td></tr> </table>
100mall
trunk/100mall/webapps/system/template/productComment_zh_CN.ftl
Fluent
oos
911
<table width="100%" class="tables"> <tr> <td style="background-color: #ECECEC;font-weight: bold;"><table width="100%"><tr><td width="80%">评论内容</td><td>评价人</td></tr><tr></table></td> <#list productCommentList as comment> <tr> <td><table width="100%"><tr > <td align="left" style="width: 80%"> <div><span style="color: #8A1F11">&nbsp;[${comment.addtime?string("yyyy-MM-dd HH:mm:ss")}]</span> &nbsp; ${comment.content} </div> <#if comment.replyContent??> <div style="margin-left: 10px">[回复]&nbsp;&nbsp; ${comment.replyContent?default("")}</div> <#else> </#if> </td> <td> ${comment.userName} <#if owner??> [<a target="_blank" href="admin/productcomment/load/${comment.id}.c">回复</a>] </#if> </td> </tr></table> </tr> </#list> <tr><td align="right">一共${totalProductComment}条评论 ${toolBar?default("")}</td></tr> </table>
100mall
trunk/100mall/webapps/system/template/productComment.ftl
Fluent
oos
903
<table width="100%" class="tables"> <tr> <td style="background-color: #ECECEC;font-weight: bold;"><table width="100%"><tr><td width="80%">Comments</td><td>Appraiser</td></tr><tr></table></td> <#list productCommentList as comment> <tr> <td><table width="100%"><tr > <td align="left" style="width: 80%"> <div><span style="color: #8A1F11">&nbsp;[${comment.addtime?string("yyyy-MM-dd HH:mm:ss")}]</span> &nbsp; ${comment.content} </div> <#if comment.replyContent??> <div style="margin-left: 10px">[Reply]&nbsp;&nbsp;${comment.replyContent?default("")}</div> <#else> </#if> </td> <td> ${comment.userName} <#if owner??> [<a target="_blank" href="/admin/productcomment/load/${comment.id}.c">Reply</a>] </#if> </td> </tr></table> </tr> </#list> <tr><td align="right">Total <b>${totalProductComment}</b> comments ${toolBar?default("")}</td></tr> </table>
100mall
trunk/100mall/webapps/system/template/productComment_en_US.ftl
Fluent
oos
904
<link rel="stylesheet" type="text/css" media='screen' href="/common/css/showdynamic.css" /> ${dynamicProperties}
100mall
trunk/100mall/webapps/system/template/showdynamic.ftl
FreeMarker
oos
120
<style> body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:25px;padding:8px 10px;margin:0;} pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:14px;font-family:arial,verdana,sans-serif;line-height:25px;padding:8px 10px;margin:0; } .rm_line{border-top:2px solid #F1F1F1; font-size:0; margin:15px 0} .atchImg img{border:2px solid #c3d9ff;} .lnkTxt{ color:#0066CC} .rm_PicArea *{ font-family:Arial, sans-serif; font-size:14px;font-weight:700;} .fbk3{ color:#333; line-height:160%} .fTip{ font-size:11px; font-weight:normal} </style> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>LegendShop - Java企业级多用户商城系统</title> <style type="text/css"> <!-- body a{color:#07f;}body a:hover{text-decoration:underline;} body p, body div table tr td{line-height:1.5;} body div table tr td{font-size:14px;} body div{font-size:12px;} --> </style> </head> <body style="font:12px/1em Tahoma, 宋体, sans-serif;width:100%;margin:0;padding:20px 0 0;"><table width="700" align="center" cellspacing="0" style="width:700px;"><tr><td> <div style="width:700px;margin:0 auto;border-bottom:1px solid #ccc;margin-bottom:30px;"> <table cellpadding="0" cellspacing="0" width="700" height="39" style="font:12px Tahoma, Arial, 宋体;"> <tr> <td width="210"><a target="_blank" href="${DOMAIN_NAME}"><img src="${DOMAIN_NAME}/img/legendshop.gif" width="110" height="39" alt="LegendShop" border="0"></a></td> <td width="490" align="right" valign="bottom" style="padding-bottom:10px;"><a target="_blank" style="color:#07f;text-decoration:none;font-size:12px;" href="${DOMAIN_NAME}/login${applicationScope.WEB_SUFFIX}">登录</a> | <a target="_blank" style="color:#07f;text-decoration:none;padding-right:5px;font-size:12px;" href="${DOMAIN_NAME}/club">论坛</a></td> </tr> </table> </div> <div style="width:680px;padding:0 10px;margin:0 auto;"> <div style="line-height:1.5;font-size:14px;margin-bottom:25px;color:#4d4d4d;"><strong style="display:block;margin-bottom:15px;">亲爱的会员:#nickName#, 您好!</strong> <p>您已经成功注册LegendShop, LegendShop致力于社区的快捷营销,使得货物能更快的到达您的手上。</p> <p>请牢记您的用户名和密码:</p> </div> <div style="margin-bottom:30px;"><strong style="display:block;margin-bottom:20px;font-size:14px;"> 用户名:#userName# &nbsp;, &nbsp; 密码:#password# </strong> </div> #registerCode# <p>请登录<a href="${DOMAIN_NAME}/login${applicationScope.WEB_SUFFIX}">LegendShop</a>, 完善您的个人资料。</p> </div> <div style="width:700px;margin:0 auto;"> <div style="padding:0 10px;width:585px;margin-bottom:30px;"> <p style="padding-top:10px;border-top:1px dashed #ccc;">我们的目标是更快的把货物送到您的手上,如果您对送货速度有异议,请到论坛上<a target="_blank" style="color:#07f;text-decoration:none;" href="${DOMAIN_NAME}">投诉</a></p> </div> <div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#999;margin-bottom:20px;line-height:1.3em;font-size:12px;"> <p style="margin-bottom:15px;">此为系统邮件,请勿回复<br> 请保管好您的邮箱,避免支账户被他人盗用</p> <p>如有任何疑问,可查看 <a target="_blank" style="color:#666;text-decoration:none;" href="${DOMAIN_NAME}">相关规则</a><br> Copyright LegendShop 2009-2011 All Right Reserved</p> </div> </div> </td></tr></table></body> </html>
100mall
trunk/100mall/webapps/system/mailTemplate/registersuccess.jsp
Java Server Pages
oos
3,755
<style> body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:25px;padding:8px 10px;margin:0;} pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size:14px;font-family:arial,verdana,sans-serif;line-height:25px;padding:8px 10px;margin:0; } .rm_line{border-top:2px solid #F1F1F1; font-size:0; margin:15px 0} .atchImg img{border:2px solid #c3d9ff;} .lnkTxt{ color:#0066CC} .rm_PicArea *{ font-family:Arial, sans-serif; font-size:14px;font-weight:700;} .fbk3{ color:#333; line-height:160%} .fTip{ font-size:11px; font-weight:normal} </style> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>LegendShop - Java企业级多用户商城系统</title> <style type="text/css"> <!-- body a{color:#07f;}body a:hover{text-decoration:underline;} body p, body div table tr td{line-height:1.5;} body div table tr td{font-size:14px;} body div{font-size:12px;} --> </style> </head> <body style="font:12px/1em Tahoma, 宋体, sans-serif;width:100%;margin:0;padding:20px 0 0;"><table width="700" align="center" cellspacing="0" style="width:700px;"><tr><td> <div style="width:700px;margin:0 auto;border-bottom:1px solid #ccc;margin-bottom:30px;"> <table cellpadding="0" cellspacing="0" width="700" height="39" style="font:12px Tahoma, Arial, 宋体;"> <tr> <td width="210"><a target="_blank" href="${DOMAIN_NAME}"><img src="${DOMAIN_NAME}/img/legendshop.gif" width="110" height="39" alt="LegendShop"></a></td> <td width="490" align="right" valign="bottom" style="padding-bottom:10px;"><a target="_blank" style="color:#07f;text-decoration:none;font-size:12px;" href="${DOMAIN_NAME}/login${applicationScope.WEB_SUFFIX}">登录</a> | <a target="_blank" style="color:#07f;text-decoration:none;padding-right:5px;font-size:12px;" href="${DOMAIN_NAME}/club">论坛</a></td> </tr> </table> </div> <div style="width:680px;padding:0 10px;margin:0 auto;"> <div style="line-height:1.5;font-size:14px;margin-bottom:25px;color:#4d4d4d;"><strong style="display:block;margin-bottom:15px;">亲爱的会员:#nickName#, 您好!</strong> <p>您已经成功修改密码!</p> <p>请牢记您的用户名和密码:</p> </div> <div style="margin-bottom:30px;"><strong style="display:block;margin-bottom:20px;font-size:14px;"> 用户名:#userName# &nbsp;, &nbsp; 密码:#password# </strong> </div> <p>请登录<a href="${DOMAIN_NAME}/login${applicationScope.WEB_SUFFIX}">系统</a>, 完善您的个人资料。</p> </div> <div style="width:700px;margin:0 auto;"> <div style="padding:0 10px;width:585px;margin-bottom:30px;"> <p style="padding-top:10px;border-top:1px dashed #ccc;">我们的目标是更快的把货物送到您的手上,如果您对送货速度有异议,请到论坛上<a target="_blank" style="color:#07f;text-decoration:none;" href="${DOMAIN_NAME}">投诉</a></p> </div> <div style="padding:10px 10px 0;border-top:1px solid #ccc;color:#999;margin-bottom:20px;line-height:1.3em;font-size:12px;"> <p style="margin-bottom:15px;">此为系统邮件,请勿回复<br> 请保管好您的邮箱,避免支账户被他人盗用</p> <p>如有任何疑问,可查看 <a target="_blank" style="color:#666;text-decoration:none;" href="${DOMAIN_NAME}">相关规则</a><br> Copyright LegendShop 2009-2011 All Right Reserved</p> </div> </div> </td></tr></table></body> </html>
100mall
trunk/100mall/webapps/system/mailTemplate/resetpassmail.jsp
Java Server Pages
oos
3,625
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/localeBundle.jsp'%> <%@ taglib uri="http://www.legendesign.net/tags" prefix="ls"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>LegendShop Tags Example</title> </head> <body> <table border="1" width="100%"> <tr> <td>Tags 名称</td> <td>用法</td> <td>示例</td> </tr> <tr> <td>国际化com.legendshop.core.tag.I18nTag(i18n)</td> <td> 支持无参数和有参数两种,根据Locale从对应的文件拿到记录<br> 支持参数嵌套,例如message:user.name </td> <td>1.无参数<br><ls:i18n key="user.name"/> <br><br> 2.有参数,动态参数名,start with message: will replace with locale message<br> <ls:i18n key="errors.minlength" name="message:user.name" length="8"/> <br><br> </td> </tr> <tr> <td>地址com.legendshop.core.tag.URLTag(url)</td> <td>主动加上前后缀:ContextPath + address + WEB_SUFFIX</td> <td> <a href="<ls:url address='/index'/>" target="blank">首页</a> </td> </tr> <tr> <td>com.legendshop.core.tag.TemplateResourceTag(templateResource)</td> <td>资源定位器,主要针对css js 图片等资源</td> <td> <style type="text/css">@import url( <ls:templateResource item='/styles/SyntaxHighlighter.css'/> );</style> <br><img src="<ls:templateResource item='/img/addtocart.jpg'/>" /> </td> </tr> <tr> <td>com.legendshop.core.tag.SettingsTag(settings)</td> <td>用于显示系统参数配置</td> <td><ls:settings key="USE_SCORE" >USE_SCORE is true</ls:settings><br> <ls:settings key="LOGIN_LOG_ENABLE" >VISIT_HW_LOG_ENABLE is true</ls:settings><br> <ls:settings key="OPEN_SHOP" >OPEN_SHOP is true</ls:settings><br> <ls:settings key="VISIT_HW_LOG_ENABLE" >VISIT_HW_LOG_ENABLE is true</ls:settings><br> </td> </tr> <tr> <td>com.legendshop.core.tag.AuthorizeActionTag(auth)</td> <td>权限管理</td> <td><ls:auth ifAnyGranted="F_VIEW_ALL_DATA">have access right F_VIEW_ALL_DATA</ls:auth></td> </tr> <tr> <td>com.legendshop.core.tag.OptionGroupTag(optionGroup)</td> <td>用法</td> <td> <select id="status" name="status"> <ls:optionGroup type="select" required="true" cache="true" beanName="SHOP_STATUS" selectedValue="${bean.status}"/> </select> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/system/tags.jsp
Java Server Pages
oos
2,700
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <title>用户消息列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer)request.getAttribute("offset"); %> <form id="form1" name="form1" action="${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}?status=0">消息管理</a></td></tr> </thead> </table> <input type="hidden" name="curPageNO" id="curPageNO" value="${curPageNO}"/> 用户名称&nbsp; <input type="text" name="userName" maxlength="50" value="<%=request.getAttribute("userName")%>" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="search" maxlength="50" value="<%=request.getAttribute("search")%>" /> </auth:auth> <select id="status" name="status"> <option value="">全部</option> <option value="0">未读</option> <option value="1">已读</option> </select> <input type="submit" value="搜索"/> <c:if test="${requestScope.list != null && fn:length(requestScope.list) > 0}"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/userComment/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="登录用户" sortable="true" sortName="userName"> <c:choose> <c:when test="${item.userName !=null && item.userName != 'null'}">${item.userName}</c:when> <c:otherwise>未登录</c:otherwise> </c:choose> </display:column> <display:column title="用户昵称" property="yourName" sortable="true" sortName="yourName"></display:column> <display:column title="消息内容" property="content" sortable="true" sortName="content"></display:column> <display:column title="回复内容" property="answer" sortable="true" sortName="answer"></display:column> <display:column title="添加时间" property="addtime" sortable="true" sortName="addtime"></display:column> <display:column title="IP来源" property="postip" sortable="true" sortName="postip"></display:column> <display:column title="状态" sortable="true" sortName="status"> <c:choose> <c:when test="${item.status==1}">已读</c:when> <c:when test="${item.status==0}">未读</c:when> <c:otherwise>其他</c:otherwise> </c:choose> </display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="toUserName" sortable="true" sortName="toUserName"></display:column> </auth:auth> <auth:auth ifAnyGranted="F_OPERATOR"> <display:column title="操作" media="html"> <a href="javascript:openWindows('${item.id}')" title="回复"><img alt="回复" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='${pageContext.request.contextPath}/admin/deleteUserComment${applicationScope.WEB_SUFFIX}?id=${item.id}' onclick="return confirmDelete();" title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </auth:auth> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </c:if> </form> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 用户在您的商城上浏览之后可以通过站内信给您发信息,状态为未读<br> 2. 登录用户为当前登录用户名,如果用户没有登录发表信息,则显示为匿名用户<br> 3. 当您阅读该信息后,可以回复该信息,该信息状态为已读<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm(" 确定要删除?"); } function openWindows(id) { var win = window.open('${pageContext.request.contextPath}/admin/userComment/update/'+id + '${applicationScope.WEB_SUFFIX}','回复用户消息','height=350px,width=650px, scroll=no, status=yes,top=250,left=250'); win.focus() ; } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } window.onload=function(){ var statusValue = '${status}'; DWRUtil.setValues({status:statusValue}); highlightTableRows("item"); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/userComment/userCommentList.jsp
Java Server Pages
oos
5,675
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <%@page import="com.legendshop.core.UserManager"%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <title>回复用户消息</title> <script type="text/javascript"> jQuery(document).ready(function() { $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}?status=0">消息管理</a> &raquo; 回复用户消息</td></tr> </thead> </table> <table class="${tableclass}" style="width: 100%" id="col1"> <thead> <tr> <th colspan="2"><center>回复用户消息</center></th> </tr> </thead> <tr> <td width="20%"><div align="right">评论内容 <input type="hidden" id="id" value="${comment.id}" name="id"/></div></td> <td width="80%"> ${comment.content} </td> </tr> <tr> <td width="20%"><div align="right">回复<font color="#ff0000">*</font></div></td> <td width="80%"> <p><textarea rows="6" id="answer" name="answer"></textarea></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="button" value="回复" onclick="javascript:answerWord();"/> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="javasrcript:closeWin();" /> </div> </td> </tr> </table> <script type="text/javascript"> function answerWord() { var id = $("#id").val(); var answer = $("#answer").val(); if(answer == null || answer.length <5){ alert("请认真填写回复内容,不能少于5个字"); return; } CommonService.answerWord(id,answer, function(retData){ if(retData == null){ alert("回复成功"); window.opener.location.reload(); //关键是这句:刷新父窗口 window.close(); }else{ alert("回复失败: " + retData); } }); } function closeWin(){ window.opener.location.reload(); //关键是这句:刷新父窗口 window.close(); } </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/userComment/userComment.jsp
Java Server Pages
oos
3,625
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建 VisitLog</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/visitLog/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="visitId" name="visitId" value="${bean.visitId}" type=" <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建 VisitLog </div> </th> </tr> </thead> <tr> <td> <div align="center">Ip: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="ip" id="ip" value="${bean.ip}" /></p> </td> </tr> <tr> <td> <div align="center">Country: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="country" id="country" value="${bean.country}" /></p> </td> </tr> <tr> <td> <div align="center">Area: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="area" id="area" value="${bean.area}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${bean.userName}" /></p> </td> </tr> <tr> <td> <div align="center">ShopName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="shopName" id="shopName" value="${bean.shopName}" /></p> </td> </tr> <tr> <td> <div align="center">ProductName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="productName" id="productName" value="${bean.productName}" /></p> </td> </tr> <tr> <td> <div align="center">Page: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="page" id="page" value="${bean.page}" /></p> </td> </tr> <tr> <td> <div align="center">Date: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="date" id="date" value="${bean.date}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/visitLog/visitLog.jsp
Java Server Pages
oos
4,737
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/My97DatePicker/WdatePicker.js"></script> <title>用户访问历史列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}">浏览历史</a></td></tr> </thead> </table> <div align="left" style="padding: 5px"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> &nbsp; 商城 <input type="text" name="shopName" maxlength="50" value="${bean.shopName}" /> </auth:auth> &nbsp;开始&nbsp; <input readonly="readonly" name="startTime" id="startTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${bean.startTime}" pattern="yyyy-MM-dd"/>' /> &nbsp;结束 <input readonly="readonly" name="endTime" id="endTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${bean.endTime}" pattern="yyyy-MM-dd"/>' /> </div><div align="left" style="padding: 5px"> 用户名&nbsp;<input type="text" name="userName" maxlength="50" value="${bean.userName}" /> &nbsp;页面 <select id="page" name="page"> <option:optionGroup type="select" required="false" cache="true" beanName="VISIT_LOG_TYPE" selectedValue="${bean.page}"/> </select> &nbsp;商品名称 <input type="text" name="productName" maxlength="50" value="${bean.productName}" /> <input type="submit" value="搜索"/> </div> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/visitLog/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="用户名" property="userName" sortable="true" sortName="userName"></display:column> <display:column title="IP" property="ip" sortable="true" sortName="ip"></display:column> <display:column title="国家" property="country" sortable="true" sortName="country"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="地区" property="area" sortable="true" sortName="area"></display:column> <display:column title="商城名" property="shopName" sortable="true" sortName="shopName"></display:column> </auth:auth> <display:column title="商品名" sortable="true" autolink="${pageContext.request.contextPath}/views/${item.productId}${applicationScope.WEB_SUFFIX}" sortName="productName"> <c:if test="${item.productName != null}"> ${item.productName} </c:if> </display:column> <display:column title="页面"> <c:if test="${item.page == 0}">首页</c:if> <c:if test="${item.page == 1}">商品</c:if> </display:column> <display:column title="日期"> <fmt:formatDate value="${item.date}" pattern="yyyy-MM-dd HH:mm"/> </display:column> <display:column title="访问次数" property="visitNum"> </display:column> <%-- <auth:auth ifAllGranted="F_VIEW_ALL_DATA,F_OPERATOR"> <display:column title="操作" media="html" style="width:40px"> <a href='javascript:deleteById("${item.visitId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </display:column> </auth:auth> --%> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 页面访问历史,记录用户于何时何地访问您的商城<br> 2. 如果是系统用户访问,可以在论坛中找到该用户的联系方式<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/visitLog/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/visitLog/visitLogList.jsp
Java Server Pages
oos
6,046
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <title>创建商品品牌</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { brandName: { required: true } }, messages: { brandName: { required: "请输入商品品牌名称" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/brand/save${applicationScope.WEB_SUFFIX}" method="post" id="form1" enctype="multipart/form-data"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}">商品品牌管理</a> &raquo; 创建商品品牌</td></tr> </thead> </table> <input id="brandId" name="brandId" value="${bean.brandId}" type="hidden"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建商品品牌 </div> </th> </tr> </thead> <tr> <td> <div align="center">品牌 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="brandName" id="brandName" value="${bean.brandName}" maxlength="30"/></p> </td> </tr> <!-- <tr> <td> <div align="center">上传图片 <font color="ff0000">*</font></div> </td> <td> <p> <input type="file" name="file" id="file"/> <input type="hidden" name="brandPic" id="brandPic" value="${bean.brandPic}" /> </p> </td> </tr> --> <tr> <td> <div align="center">备注</div> </td> <td> <p><input type="text" name="memo" id="memo" value="${bean.memo}" size="31" maxlength="50"/></p> </td> </tr> <!-- <c:if test="${bean.brandPic!=null}"> <tr> <td> <div align="center"> 原有图片 </div> </td> <td> <a href="${pageContext.request.contextPath}/photoserver/photo/${bean.brandPic}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${bean.brandPic}" height="65"/> </a> </td> </tr> </c:if> --> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/brand/brand.jsp
Java Server Pages
oos
4,451
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>商品品牌列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}">品牌管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${bean.userName}" /> <input type="submit" value="搜索"/> </auth:auth> <input type="button" value="创建商品品牌" onclick='window.location="${pageContext.request.contextPath}/admin/brand/load${applicationScope.WEB_SUFFIX}"'/> <input type="button" value="返回商品列表" onclick='window.location="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/brand/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="品牌名称" property="brandName"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="备注" property="memo"></display:column> <display:column title="操作" media="html" style="width:40px"> <a href= "${pageContext.request.contextPath}/admin/brand/update/${item.brandId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.brandId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 商品品牌带有一个品牌图片<br> 2. 品牌可以挂在商品三级类型上,在用户选择了三级类型之后出现对应的品牌<br> 3. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮<br> 4. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮,删除品牌,如果删除品牌则不影响其下的商品<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/brand/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/brand/brandList.jsp
Java Server Pages
oos
4,666
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>用户详细信息列表</title> </head> <body> <%Integer offset = (Integer)request.getAttribute("offset");%> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}">用户信息管理</a></td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}" id="form1" name="form1"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> &nbsp;用户名 <input type="text" name="userName" maxlength="50" value="${requestScope.userName}" /> <auth:auth ifAllGranted="F_OPERATOR"> &nbsp;邮件 <input type="text" name="userMail" maxlength="50" value="${requestScope.userMail}" /> </auth:auth> &nbsp;用户类型 <select id="haveShop" name="haveShop"> <option value="">请选择</option> <option value="1">网店用户</option> <option value="0" >普通用户</option> </select> &nbsp;状态 <select id="enabled" name="enabled"> <option value="">请选择</option> <option value="1">有效</option> <option value="0" >无效</option> </select> <input type="submit" value="搜索"/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/system/userDetail/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.userId}" arg="${item.userName}"/><%=offset++%></display:column> <display:column title="用户名" property="userName" sortable="true" sortName="u.user_name"></display:column> <display:column title="用户昵称" property="nickName" sortable="true" sortName="u.nick_name"></display:column> <auth:auth ifAllGranted="F_OPERATOR"> <display:column title="邮件" property="userMail"></display:column> </auth:auth> <display:column title="注册IP" property="userRegip"></display:column> <display:column title="修改时间" sortable="true" sortName="u.modify_time"> <fmt:formatDate value="${item.modifyTime}" pattern="yyyy-MM-dd HH:mm"/> </display:column> <display:column title="注册时间" sortable="true" sortName="u.user_regtime"> <fmt:formatDate value="${item.userRegtime}" pattern="yyyy-MM-dd HH:mm"/> </display:column> <display:column title="状态" sortable="true" sortName="s.enabled" style="width:40px"> <c:choose> <c:when test="${item.enabled == 1}">有效</c:when> <c:otherwise><font color="red">无效</font></c:otherwise> </c:choose> </display:column> <auth:auth ifAnyGranted="F_OPERATOR"> <display:column title="操作" media="html" style="width:75px"> <auth:auth ifAnyGranted="F_SECUREST"> <a href='${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}?userName=${item.userName}' target="_blank" title="查看用户${item.userName}信息"><img alt="查看用户${item.userName}信息" src="${pageContext.request.contextPath}/img/ind_left_login.gif"></a> </auth:auth> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <c:choose> <c:when test="${item.shopId != null}"> <a href='${pageContext.request.contextPath}/admin/shopDetail/load/${item.shopId}${applicationScope.WEB_SUFFIX}?userName=${item.userName}' title="修改用户${item.userName}当前商城"><img alt="修改用户当前商城" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> </c:when> <c:otherwise> <c:if test="${supportOpenShop == 'true' && 'C2C' == applicationScope.BUSINESS_MODE}"> <a href='${pageContext.request.contextPath}/admin/shopDetail/load/0${applicationScope.WEB_SUFFIX}?userName=${item.userName}'><img alt="为用户${item.userName}增加商城" src="${pageContext.request.contextPath}/img/grid_add.png"></a> </c:if> </c:otherwise> </c:choose> </c:if> <a href='javascript:confirmDelete("${item.userId}","${item.userName}")' title="删除用户${item.userName}所有信息"><img alt="删除用户${item.userName}所有信息" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </display:column> </auth:auth> </display:table> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="button" value="刪除" style="float: left" onclick="return deleteAction();"/> </auth:auth> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteAction() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); if(!checkSelect(selAry)){ window.alert('删除时至少选中一条记录!'); return false; } if(confirm("确定要删除吗?")){ DWREngine.setAsync(false); for(i=0;i<selAry.length;i++){ if(selAry[i].checked){ var userId = selAry[i].value; var userName = selAry[i].getAttribute("arg"); deleteMultiUserDetail(userId,userName); } } DWREngine.setAsync(true); } window.location = '${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}'; return true; } function confirmDelete(userId,userName) { if(confirm("确定要删除 "+userName+" 吗?")){ deleteUserDetail(userId,userName); } } function deleteUserDetail(userId,userName) { CommonService.deleteUserDetail(userId,userName, function(retData){ if(retData == null ){ window.location.reload() ; }else{ alert(retData) ; } }) ; } function deleteMultiUserDetail(userId,userName) { CommonService.deleteUserDetail(userId,userName, function(retData){ }) ; } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } window.onload=function(){ var enabled = '${enabled}'; var haveShop = '${haveShop}'; initStatus(enabled,haveShop); } function initStatus(enabledValue,haveShopValue){ DWRUtil.setValues({enabled:enabledValue}); DWRUtil.setValues({haveShop:haveShopValue}); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/userDetail/userDetailList.jsp
Java Server Pages
oos
7,767
<%@page pageEncoding="UTF-8" language="java"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <html> <head> <title>商品动态属性</title> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <% Integer type = (Integer)request.getAttribute("DYNAMIC_TYPE"); String userName = (String)session.getAttribute("SPRING_SECURITY_LAST_USERNAME"); Object[] params = new Object[]{type.shortValue(),userName}; request.setAttribute("params",params); %> <style type="text/css"> .modelType{border: 1px solid ; margin: 3px;padding: 1px;background-color: #FFFFF6;} .modelType:hover{background:#CCCCBB;} .textOptionType { padding: 3px ;margin-left:68px ; } .selectType { padding: 3px ;margin-left:68px ; } .selectOption { padding: 3px ;margin-left:68px ; } .CheckBoxType { padding: 3px ;margin-left:68px ; } .radioType { padding: 3px ;margin-left:68px ; } .selectOption {padding: 3px ;margin-left:100px ;} </style> </head> <body> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">商品管理</a> &raquo; <a href="${pageContext.request.contextPath}/admin/product/load${applicationScope.WEB_SUFFIX}">创建商品</a> <c:if test="${prod.name != null}"> &raquo; <a href= "${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" target="_blank">${prod.name}</a></c:if> </td></tr> </thead> <tr class="odd"> <td><div align="left"> <jsp:include page="/admin/product/createsetp${applicationScope.WEB_SUFFIX}"> <jsp:param name="step" value="3"/> </jsp:include> </div></td> </tr> </table> <table style="width: 100%; border: 0px"> <tr> <td width="300px">选择模板 <!-- <select id="modelType" name="modelType"> <option value="Text">参数</option> <option value="Select">下拉列表</option> <option value="Radio">单选框</option> <option value="CheckBox">多选框</option> </select> --> <select id="tempId" name="tempId"> <option:optionGroup type="select" required="false" cache="fasle" defaultDisp="-- 属性模板 --" hql="select t.id, t.name from DynamicTemp t where t.type =? and t.userName = ?" params="${params}"/> </select> <input type='button' value='加载' onclick="applyTemp()"> <input type='button' value='修改' onclick="modifyTemp()"> <br><br> 模板名称 <input type="text" value="" id="tempName" name="tempName" size="14" maxlength="50"> <a href="javascript:addTemp('${DYNAMIC_TYPE}')" title="根据现有配置,创建商品属性模板"><img alt="创建商品属性模板" src="${pageContext.request.contextPath}/img/grid_add.png"></a> <a href="javascript:deleteTemp('${DYNAMIC_TYPE}')" title="删除商品属性模板"><img alt="删除商品属性模板" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> <br><br><br><br> <c:choose> <c:when test="${DYNAMIC_TYPE == 1}">创建动态属性: <br> <!-- <input type="button" value="下拉列表" onclick="addRowRecord('Select')"> --> <input type="button" value="单选框" onclick="addRowRecord('Radio')"> <input type="button" value="多选框" onclick="addRowRecord('CheckBox')"> </c:when> <c:otherwise>创建动态参数: <br><input type="button" value="参数" onclick="addRowRecord('Text')"> </c:otherwise> </c:choose> <br><br> <input type="button" value="保存设置" onclick="javascript:save()"/> </td> <td width="650px"><div class="box" id="target" style="border: 1px"></div></td> </tr> </table> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1.<img alt="创建商品属性模板" src="${pageContext.request.contextPath}/img/grid_add.png">&nbsp;以“模板名称”为名称,以当前的属性配置作为内容,创建商品属性模板,在属性内容编辑器中则用于创建一个动态属性<br> 2.<img alt="删除商品属性模板" src="${pageContext.request.contextPath}/img/grid_delete.png">&nbsp;删除选择模板中选定的商品属性模板,在属性内容编辑器中则用于删除属性或者属性下的选项<br> </td><tr></table> <script language="javascript"><!-- function load() { var table = document.getElementById("target"); var dataArray = eval('${imgFileJSON}'); if(dataArray!=null && dataArray.length >0){ for(var i = 0; i < dataArray.length; i++){ addModel(table,dataArray[i]); } } } function save() { var temp = getTemplate(); //alert(temp); var type = '${DYNAMIC_TYPE}'; CommonService.saveDynamic('${prod.prodId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}', type, temp, function(retData){ if(retData){ if(type != null && type ==1){ alert("保存商品动态属性成功"); }else{ alert("保存商品动态参数成功"); } }else{ alert("保存失败"); } }) ; } function getTemplate() { var temp = []; var target = document.getElementById("target"); for(var i = 0 ; i<target.childNodes.length; i++){ var jModel = {id:"",type:"",items:[]}; var model = target.childNodes[i]; var type = model.getAttribute("type"); var jItems = []; if(type == "Text"){ var jItem = {key:"",value:""}; for(var item = model.childNodes[0].firstChild; item; item = item.nextSibling){ if(item.name == "textInput"){ jModel.id = item.value; jItem.key = item.value; } if(item.name == "textValue"){ jItem.value= item.value; } } jItems.push(jItem); }else{ for(var items = model.childNodes[0].nextSibling; items; items = items.nextSibling){ var jItem = {key:"",value:""}; for(var item = items.firstChild; item; item = item.nextSibling){ //alert(item.nodeType +" ,nodeValue = " +item.nodeValue +" ,value = " +item.value+" , name = " +item.name); if(item.name == "textInput"){ jItem.key= item.value; } } jItems.push(jItem); } for(var item2 = model.childNodes[0].firstChild; item2; item2 = item2.nextSibling){ if(item2.name == "textInput"){ jModel.id = item2.value; } } } jModel.items = jItems; jModel.type = type; temp.push(jModel); } return temp; } function addModel(table,model){ switch(model.type){ case 'Select':addSelect(table,model); break; case 'Text':addText(table,model); break; case 'Radio':addRadio(table,model); break; case 'CheckBox':addCheckBox(table,model); break; default:alert('Other'); } } function add(table,type){ switch(type){ case 'Select':addSelect(table); break; case 'Text':addText(table); break; case 'Radio':addRadio(table); break; case 'CheckBox':addCheckBox(table); break; default:alert('Other'); } } function addText(table,model){ var text; var value; if(model){ text = "参数:<input id='textInput' name ='textInput' type='text' value='" + model.id + "'/>"; if(model!=null && model.items !=null){ var itemValue = model.items.length > 0 ? model.items[0].value : ""; value = "&nbsp;&nbsp;值:<input id='textValue' name ='textValue' type='text' value='" + itemValue + "'/>"; } }else{ text = "参数:<input id='textInput' name ='textInput' type='text'/>"; value = "&nbsp;&nbsp;值:<input id='textValue' name ='textValue' type='text' />"; } //var del = "<input id='textButton' name ='textButton' type='button' value='删除参数框' onclick='del(this.parentNode)'/>"; var del = "<a href='#' onclick='del(this.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除'/></a>"; var up = "&nbsp;&nbsp;<a href='#' onclick='moveUp(this.parentNode)'><img src='${pageContext.request.contextPath}/img/up.gif' title='上移'/></a>"; var down = "&nbsp;<a href='#' onclick='moveDown(this.parentNode)'><img src='${pageContext.request.contextPath}/img/down.gif' title='下移'/></a>"; var e = element("div", {"class": "textOptionType","className": "textOptionType"}, [text,value,del, up, down]); table.appendChild(element("div",{"class": "modelType","className": "modelType","type": "Text"},[e])); } function addSelect(table, model){ var text; if(model){ text = "下拉列表:<input id='textInput' name ='textInput' type='text' value='" + model.id + "'/>"; }else{ text = "下拉列表:<input id='textInput' name ='textInput' type='text'/>"; } var add = "<a href='#' onclick='addSelectOption(this.parentNode.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_add.png'/></a>"; // var del = "<input id='textButton' name ='textButton' type='button' value='删除选择框' onclick='del(this.parentNode)'/>"; var del = "<a href='#' onclick='del(this.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除'/></a>"; var up = "&nbsp;&nbsp;<a href='#' onclick='moveUp(this.parentNode)'><img src='${pageContext.request.contextPath}/img/up.gif' title='上移'/></a>"; var down = "&nbsp;<a href='#' onclick='moveDown(this.parentNode)'><img src='${pageContext.request.contextPath}/img/down.gif' title='下移'/></a>"; var e = element("div", {"class": "selectType","className": "selectType"}, [text,add,del, up, down]); var e1 = element("div",{"class": "modelType","className": "modelType","type": "Select"},[e]); if(model!=null && model.items !=null){ for(var i = 0; i< model.items.length; i++){ e1.appendChild(getSelectOption(model.items[i])); } } table.appendChild(e1); } function addSelectOption(obj, item){ var text; if(item){ text = "选项&nbsp;<input id='textInput' name ='textInput' type='text' value='"+ item.value + "'/>"; }else{ text = "选项&nbsp;<input id='textInput' name ='textInput' type='text'/>"; } var del = "<input id='textButton' name ='textButton' type='image' src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除' onclick='del(this)'/>"; var e = element("div", {"class": "selectOption","className": "selectOption"}, [text,del]); obj.appendChild(e); } function getSelectOption(item){ var text; if(item){ text = "选项&nbsp;<input id='textInput' name ='textInput' type='text' value='"+ item.key + "'/>"; }else{ text = "选项&nbsp;<input id='textInput' name ='textInput' type='text'/>"; } var del = "<input id='textButton' name ='textButton' type='image' src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除' onclick='del(this)'/>"; var e = element("div", {"class": "selectOption","className": "selectOption"}, [text,del]); return e; } function addCheckBox(table,model){ var text; if(model){ text = "多选框:<input id='textInput' name ='textInput' type='text' value='" + model.id + "'/>"; }else{ text = "多选框:<input id='textInput' name ='textInput' type='text'/>"; } var add = "<a href='#' onclick='addSelectOption(this.parentNode.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_add.png'/></a>"; var del = "<a href='#' onclick='del(this.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除'/></a>"; var up = "&nbsp;&nbsp;<a href='#' onclick='moveUp(this.parentNode)'><img src='${pageContext.request.contextPath}/img/up.gif' title='上移'/></a>"; var down = "&nbsp;<a href='#' onclick='moveDown(this.parentNode)'><img src='${pageContext.request.contextPath}/img/down.gif' title='下移'/></a>"; var e = element("div", {"class": "CheckBoxType","className": "CheckBoxType"}, [text,add,del,up,down]); var e1 = element("div",{"class": "modelType","className": "modelType","type": "CheckBox"},[e]); if(model!=null && model.items !=null){ for(var i = 0; i< model.items.length; i++){ e1.appendChild(getSelectOption(model.items[i])); } } table.appendChild(e1); } function addRadio(table,model){ var text; if(model){ text = "单选框:<input id='textInput' name ='textInput' type='text' value='" + model.id + "'/>"; }else{ text = "单选框:<input id='textInput' name ='textInput' type='text'/>"; } var add = "<a href='#' onclick='addSelectOption(this.parentNode.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_add.png'/></a>"; //var del = "<input id='textButton' name ='textButton' type='button' value='删除单选框' onclick='del(this.parentNode)'/>"; var del = "<a href='#' onclick='del(this.parentNode)'><img src='${pageContext.request.contextPath}/img/grid_delete.png' title='删除'/></a>"; var up = "&nbsp;&nbsp;<a href='#' onclick='moveUp(this.parentNode)'><img src='${pageContext.request.contextPath}/img/up.gif' title='上移'/></a>"; var down = "&nbsp;<a href='#' onclick='moveDown(this.parentNode)'><img src='${pageContext.request.contextPath}/img/down.gif' title='下移'/></a>"; var e = element("div", {"class": "radioType","className": "radioType"}, [text,add,del,up,down]); var e1 = element("div",{"class": "modelType","className": "modelType","type": "Radio"},[e]); if(model!=null && model.items !=null){ for(var i = 0; i< model.items.length; i++){ e1.appendChild(getSelectOption(model.items[i])); } } table.appendChild(e1); } function del(obj){ var child = obj.parentNode; child.parentNode.removeChild(child); } function addRowRecord(attributeType){ var table = document.getElementById("target"); add(table,attributeType); } function addRow(){ var table = document.getElementById("target"); var modelType = document.getElementById("modelType"); add(table,modelType.options[modelType.selectedIndex].value); } function addTemp(type){ var temp = getTemplate(); var tempName = document.getElementById("tempName").value; CommonService.saveDynamicTemp(tempName,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', type ,temp, function(retData){ if(retData){ alert("保存成功"); window.location.reload(); }else{ alert("操作失败,检查名称是否重复"); } }) ; } function modifyTemp(){ var tempId = document.getElementById("tempId").value; var temp = getTemplate(); if(tempId == null || tempId == '' || temp == null || temp == ''){ alert("请先加载属性模板"); return; } CommonService.updateDynamicTemp(tempId,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', '${DYNAMIC_TYPE}',temp, function(retData){ if(retData){ alert("更新成功"); } }) ; } function deleteTemp(type){ var tempId = document.getElementById("tempId"); CommonService.deleteDynamicTemp(tempId.options[tempId.selectedIndex].value,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ if(retData){ alert("操作成功"); window.location.reload(); }else{ alert("操作失败,检查名称是否重复"); } }) ; } function applyTemp(){ var table = document.getElementById("target"); var tempId = document.getElementById("tempId").value; table.innerHTML = ""; CommonService.loadDynamicAttributeFromTemp(tempId,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ for(var i = 0; i < retData.length; i++){ addModel(table,retData[i]); } }) ; } function moveUp(e) { var obj = e.parentNode; var toPos = obj.previousSibling; while (toPos && toPos.nodeType != 1){ toPos = toPos.previousSibling; } // alert(toPos.tagName +" = "+ obj.tagName+ " "+ toPos.id +" = " + obj.id); if (toPos && toPos.tagName == obj.tagName && toPos.id == obj.id) { obj.parentNode.removeChild(obj); toPos.parentNode.insertBefore(obj, toPos); }else{ return; } } function redrawOrder(){ order = 1; var rules = document.getElementsByName("rules"); if(rules!=null){ for(var i=0;i<rules.length;i++){ rules[i].firstChild.nodeValue = order +". Routing Rule Type "; if(order % 2 != 0){ rules[i].setAttribute("class","rules"); rules[i].setAttribute("className","rules"); }else{ rules[i].setAttribute("class","ruleseven"); rules[i].setAttribute("className","ruleseven"); } order ++; } } } function moveDown(e) { var obj = e.parentNode; var toPos = obj.nextSibling; while (toPos && toPos.nodeType != 1){ toPos = toPos.nextSibling; } //alert(addroutingRule.innerHTML); //alert(toPos.innerHTML); if (toPos && toPos.tagName == obj.tagName && toPos.id == obj.id) { toPos.parentNode.removeChild(toPos); obj.parentNode.insertBefore(toPos, obj); }else{ return; } //redrawOrder(); } function element(tagName, attributes, children) { var e = document.createElement(tagName); for ( var a in attributes) { e.setAttribute(a, attributes[a]); } if (children) for ( var i = 0; i < children.length; i++) if (typeof (children[i]) == "string") { e.innerHTML += children[i]; } else { e.appendChild(children[i]); } return e; } function isElement(obj){ if(window.DOMParser){//Firefox if(obj instanceof Element){ return true; }else{ return false; } }else{ return true;//IE } } load(); --></script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/xml/dynamicAttribute.jsp
Java Server Pages
oos
20,387
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/css/prodAttribute.css" /> <table width="100%" id="prodAttributes"> <c:forEach items="${requestScope.list}" var="model" varStatus="pos"> <tr> <td width="80px">${model.id}</td> <td> <ul id="modelId${pos.index}"> <input type="hidden" autocomplete="off" id="prodAttr${pos.index}" name="prodAttr${pos.index}" dataValue="${model.id}" class="attrselect" value=""> <c:forEach items="${model.items}" var="item" varStatus="status"> <li dataValue="${item.key}"><a href="#">${item.key}</a></li> </c:forEach> </ul> </td> </tr> </c:forEach> </table> <script language="javascript" type="text/javascript"> function loadprodAttribute(){ var dataArray = eval('${list}'); if(dataArray!="undefined" || dataArray != null){ for(var i in dataArray){ var data = dataArray[i] ; var modelId = "modelId"+i; if("CheckBox" == data.type){ new Select(modelId,{ Radio:false, Max:6, Current:i, //Default:"袜子,扣子", OnClick:function(selected,current){ document.getElementById("prodAttr" + current).value = selected.join(","); } }); }else{ new Select(modelId,{ Radio :true , //是否为单选,默认为true,如果设置为true,Default,Max选项将失效 Current:i, OnClick:function(selected,current){ document.getElementById("prodAttr" + current).value = selected.join(",") } }); } } } } function Select(id,config){ this.config = config||{}; this.id = typeof(id)=='string'?document.getElementById(id):id; this.items = this.id.getElementsByTagName("li"); this.selectClass = "select"; this.selected = new Array(); var _this = this; this.selectOpt = function(value,opt){ var exist = false; for(var i=0;i<_this.selected.length;i++){ if(_this.selected[i]==value){ exist = true ; if(opt=="remove"){ _this.selected.splice(i,1);} break; } } if(!exist && opt=="add"){_this.selected.push(value);} }; //初始化对象 (function(_this){ //是否有默认配置的选择项 if(_this.config.Default){ var arr = _this.config.Default.split(","); for(var i=0;i<arr.length;i++)_this.selectOpt(arr[i],"add"); } for(var i=0;i<_this.items.length;i++){ //将defalut中配置的项加上样式 if( _this.selected.join(",").indexOf(_this.items[i].getAttribute('dataValue'))>-1 && _this.items[i].className==""){ _this.items[i].className=_this.selectClass; } //如果有样式中定义了默认 if(_this.items[i].className==_this.selectClass){ _this.selectOpt(_this.items[i].getAttribute('dataValue'),"add"); } //加点单击事件 _this.items[i].onclick=function(){ //是否为单选 var radio = _this.config.Raido?_this.config.Raido:true; if(_this.config.Radio==null || _this.config.Radio){ if(this.className!=_this.selectClass){ var items = this.parentNode.getElementsByTagName("li"); for(var i=0;i<items.length;i++){ items[i].className=""; } _this.selected.length = 0; _this.selected.push(this.getAttribute('dataValue')); this.className=_this.selectClass; } }else{ var Max = _this.config.Max?_this.config.Max:1; if(this.className==_this.selectClass){ this.className=""; _this.selectOpt(this.getAttribute('dataValue'),"remove"); }else{ if(_this.selected.length>=Max){ alert("最多只能选择"+Max+"项"); }else{ this.className=_this.selectClass; _this.selectOpt(this.getAttribute('dataValue'),"add"); } } } //去掉那个虚线框 this.firstChild.blur(); //调用回调函数 if(_this.config.OnClick)_this.config.OnClick.call(this,_this.selected,_this.config.Current); return false; } } })(_this); } loadprodAttribute(); </script>
100mall
trunk/100mall/webapps/pages/backend/default/xml/showDynamicAttribute.jsp
Java Server Pages
oos
4,292
<%@page pageEncoding="UTF-8" language="java"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/showdynamic.css" /> ${dynamicProperties}
100mall
trunk/100mall/webapps/pages/backend/default/xml/showdynamic.jsp
Java Server Pages
oos
624
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建广告</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { linkUrl: { required: true, minlength: 3 }, file: { required: "#picUrlName:blank" } }, messages: { linkUrl: { required: "请输入链接地址", minlength: "请认真填写,链接地址不能少于3个字符" }, file: { required : "请上传广告图片" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/advertisement/save${applicationScope.WEB_SUFFIX}" method="post" id="form1" enctype="multipart/form-data"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}">广告管理</a> &raquo; 创建广告</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建广告 </div> </th> </tr> </thead> <tr> <td width="28%"> <div align="right">广告类型: <font color="ff0000">*</font></div> </td> <td> <p> <select id="type" name="type"> <option:optionGroup type="select" required="true" cache="true" beanName="ADVERTISEMENT_TYPE" selectedValue="${bean.type}"/> </select> </p> </td> </tr> <tr> <td> <div align="right">链接地址<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="linkUrl" id="linkUrl" value="${bean.linkUrl}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">标题</div> </td> <td> <p><input type="text" name="title" id="title" value="${bean.title}" size="50" maxlength="255"/></p> </td> </tr> <tr> <td> <div align="right">需求描述</div> </td> <td> <p><input type="text" name="sourceInput" id="sourceInput" value="${bean.sourceInput}" size="50" maxlength="255"/></p> </td> </tr> <tr> <td> <div align="right">状态<font color="ff0000">*</font></div> </td> <td> <p> <select id="enabled" name="enabled"> <option:optionGroup type="select" required="true" cache="true" beanName="ONOFF_STATUS" selectedValue="${bean.enabled}"/> </select> </p> </td> </tr> <tr> <td> <div align="right"> 上传广告图片(对联广告只能上传一张,大小为110*300) <font color="ff0000">*</font> </div> </td> <td> <p> <input type="file" name="file" id="file" size="50"/> <input type="hidden" name="picUrlName" id="picUrlName" size="80" value="${bean.picUrl}" /> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/advertisement/advertisement.jsp
Java Server Pages
oos
5,735
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>广告列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}">广告管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp; <input type="text" name="userName" maxlength="50" value="${bean.userName}" /> <input type="submit" value="搜索"/> </auth:auth> <input type="button" value="创建广告" onclick='window.location="${pageContext.request.contextPath}/admin/advertisement/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <c:if test="${not empty list}"> <display:table name="list" requestURI="/admin/advertisement/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="类型" sortable="true"> <option:optionGroup type="label" required="true" cache="true" beanName="ADVERTISEMENT_TYPE" selectedValue="${item.type}" defaultDisp=""/> </display:column> <display:column title="链接地址"><a href="${item.linkUrl}" target="_blank">${item.linkUrl }</a></display:column> <display:column title="标题" property="title" sortable="true"></display:column> <display:column title="状态" sortable="true"> <c:choose> <c:when test="${item.enabled == 1}">上线</c:when> <c:otherwise><font color="red">下线</font></c:otherwise> </c:choose> </display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName" sortable="true"></display:column> </auth:auth> <display:column title="图片"> <a href="${pageContext.request.contextPath}/photoserver/photo/${item.picUrl}" target="_blank"><img src="${pageContext.request.contextPath}/img/filter_search.png"></a></a> </display:column> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/advertisement/load/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> </c:if> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 设置首页、商品、商品详细信息页面的广告位<br> 2. 广告处于上线状态页面可见,处于下线状态页面不可见<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/advertisement/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/advertisement/advertisementList.jsp
Java Server Pages
oos
5,230
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>Event列表</title> </head> <body> <form action="<ls:url address='/admin/event/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/event/query'/>">Event</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${event.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建Event" onclick='window.location="<ls:url address='/admin/event/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/event/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="EventId" property="eventId"></display:column> <display:column title="UserId" property="userId"></display:column> <display:column title="UserName" property="userName"></display:column> <display:column title="Type" property="type"></display:column> <display:column title="Operation" property="operation"></display:column> <display:column title="RelateData" property="relateData"></display:column> <display:column title="CreateTime" property="createTime"></display:column> <display:column title="Action" media="html"> <a href="<ls:url address='/admin/event/load/${item.eventId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.eventId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/event/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/event/eventList.jsp
Java Server Pages
oos
3,635
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建Event</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="<ls:url address='/admin/event/save'/>" method="post" id="form1"> <input id="eventId" name="eventId" value="${event.eventId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建Event </div> </th> </tr> </thead> <tr> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${event.userId}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${event.userName}" /></p> </td> </tr> <tr> <td> <div align="center">Type: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="type" id="type" value="${event.type}" /></p> </td> </tr> <tr> <td> <div align="center">Operation: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="operation" id="operation" value="${event.operation}" /></p> </td> </tr> <tr> <td> <div align="center">RelateData: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="relateData" id="relateData" value="${event.relateData}" /></p> </td> </tr> <tr> <td> <div align="center">CreateTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="createTime" id="createTime" value="${event.createTime}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/event/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/event/event.jsp
Java Server Pages
oos
4,261
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>商城信息</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}">商城管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="storeName" maxlength="50" value="${shopDetail.storeName}" size="30"/> &nbsp;类型&nbsp; <select id="type" name="type"> <option:optionGroup type="select" required="false" cache="true" beanName="SHOP_TYPE" selectedValue="${shopDetail.type}"/> </select> &nbsp;风格&nbsp; <select id="colorStyle" name="colorStyle"> <option:optionGroup type="select" required="false" cache="true" beanName="COLOR_STYLE" selectedValue="${shopDetail.colorStyle}"/> </select> &nbsp;状态&nbsp; <select id="status" name="status"> <option:optionGroup type="select" required="false" cache="true" beanName="SHOP_STATUS" selectedValue="${shopDetail.status}" /> </select> <input type="submit" value="搜索"/> <c:if test="${fn:length(list) == 0}"> <input type="button" value="创建商城" onclick='window.location="${pageContext.request.contextPath}/admin/shopDetail/load${applicationScope.WEB_SUFFIX}"'/> </c:if> </auth:auth> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/shopDetail/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE }"> <display:column title="商城名称"> <a href="${pageContext.request.contextPath}/shop/${item.storeName}${applicationScope.WEB_SUFFIX}">${item.storeName}</a> </display:column> </c:if> <display:column title="网站名称" property="sitename"> </display:column> <display:column title="商品数量" property="productNum" sortable="true" sortName="productNum" style="width:65px"></display:column> <display:column title="下线商品" property="offProductNum" sortable="true" sortName="offProductNum" style="width:65px"></display:column> <display:column title="类型" sortable="true" sortName="type" style="width:40px"> <option:optionGroup type="label" required="false" cache="true" beanName="SHOP_TYPE" selectedValue="${item.type}"/> </display:column> <%-- <display:column title="语言" style="width:55px"> <option:optionGroup type="label" required="false" cache="true" beanName="LANG_STYLE" selectedValue="${item.langStyle}" defaultDisp=""/> </display:column> --%> <display:column title="风格" style="width:70px"> <option:optionGroup type="label" required="false" cache="true" beanName="COLOR_STYLE" selectedValue="${item.colorStyle}" defaultDisp=""/> </display:column> <auth:auth ifAllGranted="F_VIEW_ALL_DATA"> <display:column title="创建国家" property="createCountryCode" /> <display:column title="地区" property="createAreaCode" /> </auth:auth> <display:column title="状态" style="width:30px"> <font color="red"> <option:optionGroup type="label" required="false" cache="true" beanName="SHOP_STATUS" selectedValue="${item.status}" defaultDisp=""/></font> </display:column> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/shopDetail/load/${item.shopId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAllGranted="F_VIEW_ALL_DATA,F_OPERATOR"> <a href='javascript:deleteById("${item.shopId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 商城为上线状态才可以正常访问<br> 2. 您可以选择不同的页面风格,或者每天随即挑取其中一个风格<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/shopDetail/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/shopDetail/shopDetailList.jsp
Java Server Pages
oos
6,721
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <html> <head> <title>创建商城</title> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/linked-select.js"></script> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { sitename: { required: true, minlength: 2 }, maddr: "required", briefDesc: "required" }, messages: { maddr: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, msn: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, mname: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, code: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, ymname: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, ymaddr: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' }, briefDesc: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, sitename: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); $("#colorStyle").get(0).value ='${shopDetail.colorStyle}'; }); //更改商城状态 function auditShop(userId,shopId,status) { var str ="上线"; if(status == 0){ str = "下线"; }else if(status == -1){ str = "审核中"; }else if(status == -2){ str = "拒绝"; }else if(status == -3){ str = "关闭"; } if(confirm('确认状态变更为 ' + str + " ?")){ CommonService.auditShop('${sessionScope.SPRING_SECURITY_LAST_USERNAME}',userId,shopId,status, function(retData){ if(retData == null){ alert('成功') ; window.location.reload(); }else{ alert('失败') ; } }) ; } } function changeCity(provinceid) { DWREngine.setAsync(false); if(provinceid!=null &&provinceid!=''){ var sql ="select cityid id, city name from ls_cities where provinceid = '"+provinceid+"'"; changeLinkedOptions1("cityid", false, sql,"-- 城市 --"); } DWREngine.setAsync(true); } function changeAreas(cityid) { DWREngine.setAsync(false); if(cityid!=null && cityid!=''){ var sql ="select areaid as id, area as name from ls_areas where cityid = '"+cityid+"'"; changeLinkedOptions1("areaid", false, sql,"-- 地区 --"); } DWREngine.setAsync(true); } function initSelect(provinceidValue,cityidValue,areasidValue){ DWRUtil.setValues({provinceid:provinceidValue}); changeCity(provinceidValue); DWRUtil.setValues({cityid:cityidValue}); changeAreas(cityidValue); DWRUtil.setValues({areaid:areasidValue}); } window.onload=function(){ initSelect('${shopDetail.provinceid}','${shopDetail.cityid}','${shopDetail.areaid}'); } </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/shopDetail/save${applicationScope.WEB_SUFFIX}" method="post" id="form1" enctype="multipart/form-data"> <input id="userId" name="userId" value="${shopDetail.userId == null ? param.userId:shopDetail.userId}" type="hidden"> <input id="id" name="id" value="${id}" type="hidden"> <input id="shopId" name="shopId" value="${shopDetail.shopId}" type="hidden"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}">商城管理</a> &raquo; 创建商城</td></tr> </thead> </table> <table style="width: 100%" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建商城 </div> </th> </tr> </thead> <tr> <td width="150px"> <div align="right">用户名:</div> </td> <td> <p><input type="text" name="storeName" id="storeName" value="${shopDetail.storeName == null ? param.userName : shopDetail.storeName}" size="50" readonly="readonly"/> <a href="${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}" target="_blank">我的账号</a></p> </td> </tr> <tr> <td> <div align="right">网店名称: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="sitename" id="sitename" value="${shopDetail.sitename}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">网店地址: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="maddr" id="maddr" value="${shopDetail.maddr}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">银行汇款帐号:</div> </td> <td> <p><input type="text" name="msn" id="msn" value="${shopDetail.msn}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">收款人姓名:</div> </td> <td> <p><input type="text" name="mname" id="mname" value="${shopDetail.mname}" size="50" /></p> </td> </tr> <tr> <td> <div align="right">邮政编码:</div> </td> <td> <p><input type="text" name="code" id="code" value="${shopDetail.code}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">汇款地址:</div> </td> <td> <p><input type="text" name="ymaddr" id="ymaddr" value="${shopDetail.ymaddr}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">邮递接收人: </div> </td> <td> <p><input type="text" name="ymname" id="ymname" value="${shopDetail.ymname}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">界面风格: <font color="ff0000">*</font></div> </td> <td><!-- see BusinessService getColorTyle --> <select id="colorStyle" name="colorStyle"> <option:optionGroup type="select" required="true" cache="true" beanName="COLOR_STYLE" selectedValue="${shopDetail.colorStyle}"/> </select> </td> </tr> <c:if test="${applicationScope.LANGUAGE_MODE == 'userChoice'}"> <tr> <td> <div align="right">语言选项: <font color="ff0000">*</font></div> </td> <td> <select id="langStyle" name="langStyle"> <option:optionGroup type="select" required="true" cache="true" beanName="LANG_STYLE" selectedValue="${shopDetail.langStyle}"/> </select> </td> </tr> </c:if> <tr> <td> <div align="right">地区选项: <font color="ff0000">*</font></div> </td> <td> 省份 <select id="provinceid" name="provinceid" onChange="changeCity(this.value)"> <option:optionGroup type="select" required="false" cache="fasle" defaultDisp="-- 省份 --" sql="select t.provinceid, t.province from ls_provinces t"/> </select>&nbsp; 城市 <select id="cityid" name="cityid" onChange="changeAreas(this.value)"> <option value="">-- 城市 --</option> </select>&nbsp; 地区 <select id="areaid" name="areaid"> <option value="">-- 地区 --</option><br> </select> </td> </tr> <tr> <td> <div align="right">简要描述: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="briefDesc" id="briefDesc" value="${shopDetail.briefDesc}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">商城服务(出现在商品说明中): </div> </td> <td> <p> <textarea name="detailDesc" id="detailDesc">${shopDetail.detailDesc}</textarea> </p> </td> </tr> <tr> <td> <div align="right">状态设置: <font color="ff0000">*</font></div> </td> <td> <!-- for管理员 --> <auth:auth ifAllGranted="F_VIEW_ALL_DATA,F_OPERATOR"> <font color="red">当前状态: <option:optionGroup type="label" required="true" cache="true" beanName="SHOP_STATUS" selectedValue="${shopDetail.status}"/></font>&nbsp;&nbsp; <c:choose> <c:when test="${shopDetail.status == -1 }"> <a href='javascript:auditShop("${shopDetail.userId}","${shopDetail.shopId}",1)'>同意申请</a> <a href='javascript:auditShop("${shopDetail.userId}","${shopDetail.shopId}",-2)'>拒绝申请</a> </c:when> <c:otherwise> <a href='javascript:auditShop("${shopDetail.userId}","${shopDetail.shopId}",1)'>上线</a> <a href='javascript:auditShop("${shopDetail.userId}","${shopDetail.shopId}",0)'>下线</a> <a href='javascript:auditShop("${shopDetail.userId}","${shopDetail.shopId}",-3)'>违规关闭(用户将不能登录后台)</a> </c:otherwise> </c:choose> </auth:auth> <!-- for user 已经审核成功的 --> <c:if test="${shopDetail.status != -1 && shopDetail.status != -3 }"> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <select id="status" name="status"> <option:optionGroup type="select" required="true" cache="true" beanName="SHOP_STATUS" selectedValue="${shopDetail.status}" exclude="-1,-2,-3"/> </select> </auth:auth> </c:if> <!-- 还没有审核 --> <c:if test="${shopDetail.status == -1 || shopDetail.status == -3}"> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <font color="red"> <option:optionGroup type="label" required="true" cache="true" beanName="SHOP_STATUS" selectedValue="${shopDetail.status}"/></font> </auth:auth> </c:if> </td> </tr> <c:if test="${shopDetail.addtime!=null}"> <tr> <td> <div align="right">修改时间: <font color="ff0000">*</font></div> </td> <td><fmt:formatDate value="${shopDetail.modifyTime}" pattern="yyyy-MM-dd HH:mm"/></td> </tr> </c:if> <c:if test="${shopDetail.addtime!=null}"> <tr> <td> <div align="right">创建时间: <font color="ff0000">*</font></div> </td> <td><fmt:formatDate value="${shopDetail.addtime}" pattern="yyyy-MM-dd HH:mm"/></td> </tr> </c:if> <tr> <td><div align="right">商城图片</div></td> <td><p><input type="file" name="file" id="file"/><br> <c:if test="${shopDetail.shopPic != null}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${shopDetail.shopPic}" height="150" width="200"/> &nbsp;&nbsp;&nbsp; </c:if> </p></td> </tr> <tr> <td> <div align="right">验证信息: </div> </td> <td> <p> <c:if test="${shopDetail.type != null}"> 网店类型: <option:optionGroup type="label" required="false" cache="true" beanName="SHOP_TYPE" selectedValue="${shopDetail.type}"/><br><br> </c:if> <c:if test="${shopDetail.idCardNum != null}"> 身份证: ${shopDetail.idCardNum}<br><br> </c:if> <c:if test="${shopDetail.idCardPic != null}"> 身份证照片: <img src="${pageContext.request.contextPath}/photoserver/photo/${shopDetail.idCardPic }" height="150" width="200"/> &nbsp;&nbsp;&nbsp; </c:if> <c:if test="${shopDetail.trafficPic != null}"> 营业执照照片: <img src="${pageContext.request.contextPath}/photoserver/photo/${shopDetail.trafficPic }" height="150" width="200"/><br> </c:if> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/shopDetail/shopDetail.jsp
Java Server Pages
oos
15,815
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>首页广告图片列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer)request.getAttribute("offset");%> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}">首页Flash图片管理</a></td></tr> </thead> </table> <form id="form1" action="${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称 <input type="text" name="userName" id="userName" maxlength="50" value="${indexJpg.userName}" /> <input type="submit" value="搜索"/> </auth:auth> <input type="button" value="创建首页图片" onclick='window.location="${pageContext.request.contextPath}/admin/indexjpg/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/indexjpg/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="说明文字" property="alt"></display:column> <display:column title="标题" property="title"></display:column> <display:column title="小标题" property="stitle"></display:column> <display:column title="图片"><a href="${pageContext.request.contextPath}/photoserver/photo/${item.img}" target="_blank"><img src="${pageContext.request.contextPath}/img/filter_search.png"></a></display:column> <display:column title="链接"> <a href="${item.link}" target="_blank"><img src="${pageContext.request.contextPath}/img/grid_refresh.png" title="图片"></a> <a href="${pageContext.request.contextPath}/${item.titleLink}" target="_blank"><img src="${pageContext.request.contextPath}/img/grid_refresh.png" title="文字"></a> </display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href="${pageContext.request.contextPath}/admin/indexjpg/update/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 首页中上部广告图片,文字均可以加上超链接<br> 2. 创建首页中上部广告图片,注意:最多上传<b><%=PropertiesUtil.getObject(ParameterEnum.MAX_INDEX_JPG,Integer.class)%></b>张图片<br> 3. <img src="${pageContext.request.contextPath}/img/grid_refresh.png" title="文字连接">指向图片、文字连接地址<br> 4. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮<br> 5. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/indexjpg/delete/"+id +"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/indexjpg/indexjpgList.jsp
Java Server Pages
oos
5,058
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <title>创建首页图片</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { $("#indexJpgForm").validate({ rules: { alt: "required", title: "required", stitle: "required", link: "required", titleLink: "required", file: { required: "#imgName:blank" } }, messages: { alt: "说明文字不能少于5个字符", title:"请输入说明文字", stitle:"请输入说明文字", link:"请输入说明文字", titleLink:"请输入说明文字", file:"上传文件不能为空" } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/indexjpg/save${applicationScope.WEB_SUFFIX}" method="post" id="indexJpgForm" enctype="multipart/form-data" > <input id="id" name="id" value="${index.id}" type="hidden"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}">首页广告图片管理</a> &raquo; 创建首页图片</td></tr> </thead> </table> <table class="${tableclass}" id="col1" style="width:100%"> <thead> <tr> <th colspan="2"><div align="center">创建首页图片</div></th> </tr> </thead> <tr style="display: none;"> <td width="30%"><div align="right">链接地址<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="href" id="href" size="30" value="${index.href}"> </p> </td> </tr> <tr> <td width="30%"><div align="right">说明文字<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="alt" id="alt" size="30" value="${index.alt}"> </p> </td> </tr> <tr> <td width="30%"><div align="right">标题<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="title" id="title" size="30" value="${index.title}"> </p> </td> </tr> <tr> <td width="30%"><div align="right">小标题<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="stitle" id="stitle" size="30" value="${index.stitle}"> </p> </td> </tr> <tr> <td width="30%"><div align="right">图片链接地址<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="link" id="link" size="30" value="${index.link}"> </p> </td> </tr> <tr> <td width="30%"><div align="right">标题链接地址<font color="#ff0000">*</font></div></td> <td width="70%"> <p> <input type="text" name="titleLink" id="titleLink" size="30" value="${index.titleLink}"> </p> </td> </tr> <tr> <td> <div align="right">上传图片,不能大于3M,大小为530*290<font color="#ff0000">*</font></div></td> <td> <p> <input type="file" name="file" id="file" size="30"/> </p> <input type="hidden" name="imgName" id="imgName" size="30" value="${index.img}"/> </td> </tr> <tr> <td ><div align="right">原有图片</div></td> <td> <c:if test="${index.img!=null}"> <a href="${pageContext.request.contextPath}/photoserver/photo/${index.img}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${index.img}" height="145" width="265"/></a> </c:if> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/indexjpg/indexjpg.jsp
Java Server Pages
oos
5,287
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <title>创建商品类型</title> </head> <body class="bodymargin"> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { $("#sortForm").validate({ rules: { sortName: "required", seq: { required: true, number: true }, file: { required: "#pictureName:blank" } }, messages: { sortName: "请输入类型名称", seq: { required: "请输入次序", number: "请输入数字" }, file:"请上传商品类型图片" } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> <form action="${pageContext.request.contextPath}/admin/sort/save${applicationScope.WEB_SUFFIX}" id="sortForm" method="post" enctype="multipart/form-data"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}">类型管理</a> &raquo; 创建商品类型</td></tr> </thead> </table> <table class="${tableclass}" style="width: 100%" id="col1" > <thead> <tr> <td width="30%" ><div align="center">类型名称:<font color="#ff0000">*</font></div></td> <td width="70%" ><input type="text" name="sortName" id="sortName" size="30" value="${sort.sortName}"> <input id="sortId" name="sortId" value="${sort.sortId}" type="hidden"> </td> </tr> </thead> <tbody> <tr> <td width="30%" ><div align="center">次序(必须为数字):</div></td> <td width="70%" > <input type="text" name="seq" id="seq" size="30" value="${sort.seq}"> </td> </tr> <tr> <td ><div align="center">类型图片(765*180)<font color="#ff0000">*</font></div></td> <td > <input type="file" name="file" id="file" size="30"/> <input type="hidden" name="pictureName" id="pictureName" size="30" value="${sort.picture}"/> </td> </tr> <tr> <td ><div align="center">原有图片</div></td> <td > <c:if test="${sort.picture!=null}"> <a href="${pageContext.request.contextPath}/photoserver/photo/${sort.picture}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${sort.picture}" height="60" width="300"/></a> </c:if> </td> </tr> <tr> <td colspan="2" ><div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交"/> </auth:auth> <input type="reset" value="重置"/> <input type="button" value="返回" onclick='window.location="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}"' /> </div></td> </tr> </tbody> </table> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/sort/sort.jsp
Java Server Pages
oos
3,789
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>分类列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer)request.getAttribute("offset"); %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}">类型管理</a></td></tr> </thead> </table> <form id="form1" action="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> &nbsp; 类型名称 <input type="text" name="sortName" id="sortName" maxlength="50" value="${sort.sortName}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> &nbsp; 商城名称 <input type="text" name="userName" id="userName" maxlength="50" value="${sort.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建商品类型" onclick='window.location="${pageContext.request.contextPath}/admin/sort/load${applicationScope.WEB_SUFFIX}"'/> <input type="button" value="返回商品列表" onclick='window.location="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/sort/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="名称" property="sortName" sortable="true" sortName="sortName"></display:column> <display:column title="次序" property="seq" sortable="true" sortName="seq"></display:column> <display:column title="图片" style="width:300px" media="html"><a href="${pageContext.request.contextPath}/photoserver/photo/${item.picture}" target="_blank"><img src="${pageContext.request.contextPath}/photoserver/photo/${item.picture}" height="60" width="300"/></a></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"><display:column title="商城名称" property="userName" sortable="true" sortName="userName"></display:column></auth:auth> <display:column title="操作" media="html" style="width:100px"> <a href="${pageContext.request.contextPath}/admin/nsort/query${applicationScope.WEB_SUFFIX}?sortId=${item.sortId}">二级类型</a> <a href="${pageContext.request.contextPath}/admin/sort/update/${item.sortId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteSort("${item.sortId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 商品类型分为三级,一级商品类型带有一个说明图片,用于页面广告介绍,三级分类下可以挑选对应的商品品牌<br> 2. 商品可以挂在一级,二级或者三级之上,三个级别有关联关系<br> 3. <img alt="创建商品类型" src="${pageContext.request.contextPath}/img/grid_add.png">&nbsp;创建商品类型,在不同列表中创建不同级别的商品类型<br> 4. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮,在一级商品类型列表中编辑一级商品类型,其他级别一样<br> 5. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮,在一级商品类型列表中编辑删除一级商品类型,其他级别一样,删除前确保其下的元素已经删除<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function deleteSort(sortId){ if(confirmDelete()){ window.location.href = "${pageContext.request.contextPath}/admin/sort/delete/"+sortId +"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/sort/sortList.jsp
Java Server Pages
oos
5,285
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <html> <head> <title>修改权限</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true }, protectFunction: { required: true } }, messages: { name: { required: '<fmt:message key="name.required"/>' }, protectFunction: { required: '<fmt:message key="function.required"/>' } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <div align="center"> <form action="${pageContext.request.contextPath}/member/right/save${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; 权限管理 &raquo; 修改权限</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 修改权限 </div> </th> </tr> </thead> <tr style="display: none"> <td width="163" height="29" align="center" class="forumRow"> 主键:</td> <td width="211" align="center" class="forumRow"> <input type="text" name="id" value="${bean.id }" readonly="true"> </td> </tr> <tr> <td height="27" align="center" class="forumRow"> <div align="right">名称 <font color="ff0000">*</font></div></td> <td align="center" class="forumRow"><input type="text" name="name" value="${bean.name}"></td> </tr> <tr> <td height="27" align="center" class="forumRow"><div align="right">权限名称 <font color="#ff0000">*</font></div></td> <td align="center" class="forumRow"><input type="text" name="protectFunction" value="${bean.protectFunction }"/></td> </tr> <tr> <td height="27" align="center" class="forumRow"><div align="right">备注:</div></td> <td align="center" class="forumRow"><input type="text" name="note" value="${bean.note}"></td> </tr> <tr > <td height="42" colspan="2" class="forumRow"> <div align="center"> <input type="submit" name="Submit" value="修改"> <input type="reset" name="cancel" value="重置"> </div> </td> </tr> </table> </form> </div> <p>&nbsp; </p> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/updateFunction.jsp
Java Server Pages
oos
3,996
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function selAll(){ chk = document.getElementById("checkbox"); allSel = document.getElementsByName("strArray"); if(!chk.checked) for(i=0;i<allSel.length;i++) { allSel[i].checked=false; } else for(i=0;i<allSel.length;i++) { allSel[i].checked=true; } } function deleteAction() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); count = 0; selValue = ""; for(i=0;i<selAry.length;i++) { if(selAry[i].checked) { count++; selValue = selAry[i].value; } } if(count<1) { window.alert('删除时至少选中一条记录!'); } else { if( confirmDelete()){ document.forms[0].action="${pageContext.request.contextPath}/member/role/deletePermissionByRoleId${applicationScope.WEB_SUFFIX}"; document.forms[0].submit(); return true ; }else{ return false ; } } return false; } //--> </script> <title>权限列表</title> </head> <body> <% int offset=1; %> <form action="${pageContext.request.contextPath}/member/role/deletePermissionByRoleId${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">角色管理</a>&raquo;角色[${bean.name }]对应的权限列表 </td></tr> </thead> </table> <input type="hidden" name="roleId" value="${bean.id }"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.id}" /><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="权限名称 " property="protectFunction" sortable="true"></display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <P><input type="submit" value="删除" onclick="return deleteAction();"/><p> <a href="${pageContext.request.contextPath}/member/role/otherFunctions/${bean.id}${applicationScope.WEB_SUFFIX}"> 增加</a> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/findFunctionByRole.jsp
Java Server Pages
oos
3,592
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <title>创建角色</title> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true }, roleType: { required: true } }, messages: { name: { required: '<fmt:message key="name.required"/>' }, roleType: { required: '<fmt:message key="roletype.required"/>' } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/member/role/save${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}">角色管理</a> &raquo; <c:choose> <c:when test="${not empty bean}">修改角色</c:when> <c:otherwise>创建角色</c:otherwise> </c:choose> </td></tr> </thead> </table> <input type="hidden" name="id" value="${bean.id }"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> <c:choose> <c:when test="${not empty bean}">修改角色</c:when> <c:otherwise>创建角色</c:otherwise> </c:choose> </div> </th> </tr> </thead> <tr> <td> <div align="center">名称 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="name" id="name" value="${bean.name}"/></p> </td> </tr> <tr> <td> <div align="center">角色名称 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="roleType" id="roleType" value="${bean.roleType}" /></p> </td> </tr> <tr> <td> <div align="center">状态</div> </td> <td> <p> <label> <input type="radio" name="enabled" value="1" checked="checked" /> 有效</label> &nbsp; &nbsp; <label> <input type="radio" name="enabled" value="0" <c:if test="${bean.enabled eq 0}"> checked="checked" </c:if> /> 无效</label> </p> </td> </tr> <tr> <td> <div align="center">备注</div> </td> <td> <p><input name="note" type="text" value="${bean.note}"></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"><input type="submit" value="提交" /></auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/saveRole.jsp
Java Server Pages
oos
4,639
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html:html> <head> <LINK title=Style href="${pageContext.request.contextPath}/common/css/back_style.css" type=text/css rel=stylesheet> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } //--> </script> <title>权限列表</title> </head> <body> <% String curPageNO = (String) request.getParameter("curPageNO"); int curpage = 1; if ("".equals(curPageNO) || curPageNO == null) curpage = 1; else { curpage = Integer.parseInt(curPageNO); } int offset=((Integer)request.getAttribute("offset")).intValue(); //String toolBar = (String) request.getAttribute("toolBar"); %> <br> <br> <html:form action="/member/right/listFunction${applicationScope.WEB_SUFFIX}"> <input type="hidden" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>"> <div align="center"> &nbsp; 根据权限名称查找 : <input type="text" name="search" maxlength="50" value="<%=request.getAttribute("search")%>" /> <input type="submit" value="搜索"/> &nbsp;&nbsp; </div> <table width="900" align="center" class="tableBorder"> <tr> <th height="29" colspan="9" scope="col">权限列表</th> </tr> <logic:present name="functionList" scope="request"> <tr> <td align="center" class="forumRow">顺序</td> <td align="center" class="forumRow">名称</td> <td align="center" class="forumRow">权限名称</td> <td align="center" class="forumRow">备注</td> <td align="center" class="forumRow">对应角色</td> <td align="center" class="forumRow">修改&nbsp;</td> <td align="center" class="forumRow">删除&nbsp;</td> </tr> <logic:iterate id="function" name="functionList"> <logic:present name="function"> <tr> <td align="center" class="forumRow"><%=offset++%></td> <td align="center" class="forumRow"><bean:write name="function" property="name"/></td> <td align="center" class="forumRow"><bean:write name="function" property="parentName"/></td> <td align="center" class="forumRow"><bean:write name="function" property="url"/></td> <td align="center" class="forumRow"><bean:write name="function" property="protectFunction"/></td> <td align="center" class="forumRow"><bean:write name="function" property="note"/></td> <td align="center" class="forumRow"><html:link href="findRoleByFunction${applicationScope.WEB_SUFFIX}" paramId="functionId" paramName="function" paramProperty="id"> 角色 </html:link></td> <td align="center" class="forumRow"><html:link href="findFunctionById${applicationScope.WEB_SUFFIX}" paramId="id" paramName="function" paramProperty="id">修改</html:link> </td> <td align="center" class="forumRow"><html:link page="/member/right/deleteFunctionById${applicationScope.WEB_SUFFIX}" paramId="id" paramName="function" paramProperty="id" onclick="return confirmDelete();">删除</html:link> </td> </tr> </logic:present> </logic:iterate> </logic:present> </table> </html:form> <div align="center"> <logic:present name="toolBar"> <bean:write name="toolBar" filter="false"/> </logic:present> </div> <div align="center"> <P> 点击此处 <html:link page="/member/right/saveFunction.jsp">增加权限</html:link> </div> </body> </html:html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/saveFunctionToRoleList.jsp
Java Server Pages
oos
3,572
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html:html> <head> <LINK title=Style href="${pageContext.request.contextPath}/common/css/back_style.css" type=text/css rel=stylesheet> <title>创建权限</title> </head> <br> <br> <script language="javascript"> function checkform() { var name = document.getElementById("name").value; var protectFunction = document.getElementById("protectFunction").value; if(name == "" || name == null) { alert("请输入权限名!"); name.focus(); return false; } if(protectFunction == "" || protectFunction == null) { alert("请输入受保护的权限名称!"); protectFunction.focus(); return false; } return true ; } </script> <html:form action="member/right/saveFunction${applicationScope.WEB_SUFFIX}"> <table width="489" height="129" align="center" bordercolor="#0099FF" class="tableBorder"> <tr> <th colspan="2">创建权限</th> </tr> <tr> <td class="forumRow"><div align="center">名称<font color="#ff0000">*</font></div></td> <td class="forumRow"><input id="name" name="function.name" type="text" value=""></td> </tr> <tr> <td class="forumRow"><div align="center">权限名称<font color="#ff0000">*</font></div></td> <td class="forumRow"><input id="protectFunction" name="function.protectFunction" type="text" value=""></td> </tr> <tr> <td class="forumRow"><div align="center">备注</div></td> <td class="forumRow"><input name="function.note" type="text" value=""></td> </tr> <tr> <td colspan="2" class="forumRow"><div align="center"> <input type="submit" value="添加"/> <html:reset value="重置"/> </div></td> </tr> </table> </html:form> </html:html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/saveFunction.jsp
Java Server Pages
oos
1,993
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>角色列表</title> </head> <body> <%int offset=1; %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限管理</a>&raquo;拥有[${bean.name }]权限的角色列表 </td></tr> </thead> </table> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="顺序"><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="角色名称 " property="roleType" sortable="true"></display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/> </display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <P><a href="javascript:history.go(-1)">返回</a></div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/findRoleByFunction.jsp
Java Server Pages
oos
2,181
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html:html> <head> <LINK title=Style href="${pageContext.request.contextPath}/common/css/back_style.css" type=text/css rel=stylesheet> <title>修改角色</title> </head> <body> <br> <br> <div align="center"> <table width="386" height="185" > <tr> <td width="380" height="181"><html:form action="/member/right/updateRoleById${applicationScope.WEB_SUFFIX}"> <table width="380" align="center" bordercolor="#66CCFF" class="tableBorder" style="border-collapse:collapse " > <tr> <th colspan="2"> 修改角色 </th> </tr> <tr style="display: none"> <td width="163" height="29" align="center" class="forumRow"> 主键:</td> <td width="211" align="center" class="forumRow"> <input type="text" name="role.id" value=<%=request.getParameter("id")%> readonly="true"> </td> </tr> <tr> <td height="27" align="center" class="forumRow">名称 <font color="#ff0000">*</font></td> <td align="center" class="forumRow"><input type="text" name="role.name" value="<bean:write name="role" property="name"/>"></td> </tr> <tr> <td height="27" align="center" class="forumRow">角色名称<font color="#ff0000">*</font></td> <td align="center" class="forumRow"><input type="text" name="role.roleType" value="<bean:write name="role" property="roleType"/>"></td> </tr> <tr> <td height="27" align="center" class="forumRow">状态</td> <td align="center" class="forumRow"> <logic:equal name="role" property="enabled" value="1"> <input name="role.enabled" type="radio" value="1" checked >有效 <input name="role.enabled" type="radio" value="0" >无效 </logic:equal> <logic:equal name="role" property="enabled" value="0"> <input name="role.enabled" type="radio" value="1">有效 <input name="role.enabled" type="radio" value="0" checked>无效 </logic:equal> </td> </tr> <tr> <td height="27" align="center" class="forumRow">备注 </td> <td align="center" class="forumRow"><input type="text" name="role.note" value="<bean:write name="role" property="note"/>"></td> </tr> <tr bordercolor="#FFFFFF"> <td height="42" colspan="2" class="forumRow"><table width="338" > <tr> <td width="162" align="center"> <input type="submit" name="Submit" value="修改"></td> <td width="166" align="center"><input type="reset" name="cancel" value="重置"></td> </tr> </table></td> </tr> </table> </html:form></td> </tr> </table> </div> <p>&nbsp; </p> </body> </html:html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/updateRole.jsp
Java Server Pages
oos
3,171
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } //--> </script> <title>角色列表</title> </head> <body> <% String curPageNO = (String) request.getParameter("curPageNO"); int curpage = 1; if ("".equals(curPageNO) || curPageNO == null) curpage = 1; else { curpage = Integer.parseInt(curPageNO); } int offset=((Integer)request.getAttribute("offset")).intValue(); %> <form action="${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}">角色管理</a> </td></tr> </thead> </table> <input type="hidden" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>"> &nbsp; 名称 : <input type="text" name="name" maxlength="50" value="${bean.name }" /> &nbsp;状态 <select id="enabled" name="enabled"> <option:optionGroup type="select" required="true" cache="true" beanName="ENABLED" selectedValue="${bean.enabled}"/> </select> <input type="submit" value="搜索"/> <input type="button" value="创建角色" onclick='window.location="${pageContext.request.contextPath}/member/role/load${applicationScope.WEB_SUFFIX}"'/> &nbsp;&nbsp; </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="角色名称 " property="roleType"></display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/> </display:column> <display:column title="备注" property="note"></display:column> <display:column title="对应权限"> <a href="${pageContext.request.contextPath}/member/role/functions/${item.id}${applicationScope.WEB_SUFFIX}">权限</a> </display:column> <display:column title="操作" media="html" style="width:75px"> <a href="${pageContext.request.contextPath}/member/role/update/${item.id}${applicationScope.WEB_SUFFIX}" ><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <a href="${pageContext.request.contextPath}/member/role/delete/${item.id}${applicationScope.WEB_SUFFIX}" title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/roleList.jsp
Java Server Pages
oos
4,131
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } //--> </script> <title>权限列表</title> </head> <body> <% int offset=((Integer)request.getAttribute("offset")).intValue(); %> <form action="${pageContext.request.contextPath}/member/right/query${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/right/query${applicationScope.WEB_SUFFIX}">权限管理</a> </td></tr> </thead> </table> <input type="hidden" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>"> &nbsp; 名称 : <input type="text" name="name" maxlength="50" value="${bean.name }" /> <input type="submit" value="搜索"/> <input type="button" value="创建权限" onclick='window.location="${pageContext.request.contextPath}/member/right/load${applicationScope.WEB_SUFFIX}"'/> &nbsp;&nbsp; </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/member/right/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="权限名称 " property="protectFunction"></display:column> <display:column title="备注" property="note"></display:column> <display:column title="对应角色"> <a href="${pageContext.request.contextPath}/member/right/roles/${item.id}${applicationScope.WEB_SUFFIX}">角色</a> </display:column> <display:column title="操作" media="html" style="width:75px"> <a href="${pageContext.request.contextPath}/member/right/update/${item.id}${applicationScope.WEB_SUFFIX}" ><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <a href="${pageContext.request.contextPath}/member/right/delete/${item.id}${applicationScope.WEB_SUFFIX}" title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/functionList.jsp
Java Server Pages
oos
3,494
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function selAll(){ chk = document.getElementById("checkbox"); allSel = document.getElementsByName("strArray"); if(!chk.checked) for(i=0;i<allSel.length;i++) { allSel[i].checked=false; } else for(i=0;i<allSel.length;i++) { allSel[i].checked=true; } } function saveLeastOne() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); count = 0; selValue = ""; //判断是否只有一条记录被选中 for(i=0;i<selAry.length;i++) { if(selAry[i].checked) { count++; selValue = selAry[i].value; } } if(count==0) { window.alert('至少选中一条记录!'); } else { return true; } return false; } //--> </script> <title>权限列表</title> </head> <body> <% int offset=((Integer)request.getAttribute("offset")).intValue(); %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">角色管理</a>&raquo;增加角色[${bean.name }]权限</td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/member/role/saveFunctionsToRole${applicationScope.WEB_SUFFIX}" id="form1" name="form1"> <input type="hidden" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>"> <input type="hidden" name="roleId" value="${bean.id }"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.id}" /><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="权限名称 " property="protectFunction" sortable="true"></display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <input type="submit" value="增加" onclick="return saveLeastOne();"/> </div> </form> <div align="center"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/right/findOtherfunctionList.jsp
Java Server Pages
oos
3,485
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function selAll(){ chk = document.getElementById("checkbox"); allSel = document.getElementsByName("strArray"); if(!chk.checked) for(i=0;i<allSel.length;i++) { allSel[i].checked=false; } else for(i=0;i<allSel.length;i++) { allSel[i].checked=true; } } function deleteAction() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); count = 0; selValue = ""; for(i=0;i<selAry.length;i++) { if(selAry[i].checked) { count++; selValue = selAry[i].value; } } if(count<1) { window.alert('删除时至少选中一条记录!'); } else { if( confirmDelete()){ document.forms[0].action="${pageContext.request.contextPath}/member/user/deleteUserRoleByUserId${applicationScope.WEB_SUFFIX}"; document.forms[0].submit(); return true ; }else{ return false ; } } return false; } //--> </script> <title>权限列表</title> </head> <body> <% int offset=1; %> <form action="${pageContext.request.contextPath}/member/user/roles${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a>&raquo;用户[${bean.name }]角色列表 </td></tr> </thead> </table> <input type="hidden" name="userId" value="${bean.id }"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.id}" /><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="角色名称 " property="roleType" sortable="true"></display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/> </display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <P><input type="submit" value="删除" onclick="return deleteAction();"/><p> <a href="${pageContext.request.contextPath}/member/user/otherRoles/${bean.id}${applicationScope.WEB_SUFFIX}" > 增加</a> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/findRoleByUser.jsp
Java Server Pages
oos
3,779
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <title>用户列表</title> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </head> <body> <% int offset=((Integer)request.getAttribute("offset")).intValue(); %> <form action="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a> </td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="<%=request.getAttribute("curPageNO")%>"> &nbsp; 用户名 <input type="text" name="name" maxlength="50" value="${bean.name }" /> &nbsp;状态 <select id="enabled" name="enabled"> <option:optionGroup type="select" required="true" cache="true" beanName="ENABLED" selectedValue="${bean.enabled}"/> </select> <input type="submit" value="搜索"/> <input type="button" value="创建用户" onclick='window.location="${pageContext.request.contextPath}/member/user/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/member/user/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="用户名 " property="name" sortable="true"></display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/> </display:column> <display:column title="备注" property="note"></display:column> <display:column title="用户角色"> <a href="${pageContext.request.contextPath}/member/user/roles/${item.id}${applicationScope.WEB_SUFFIX}">用户角色</a> </display:column> <display:column title="用户权限"> <a href="${pageContext.request.contextPath}/member/user/functions/${item.id}${applicationScope.WEB_SUFFIX}" >用户权限</a> </display:column> <display:column title="修改密码"> <a href="${pageContext.request.contextPath}/member/user/update/${item.id}${applicationScope.WEB_SUFFIX}">修改密码</a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <div align="center"> <P> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/userlist.jsp
Java Server Pages
oos
3,929
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <title>修改密码</title> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true }, password: { required: true }, passwordag: { required: true, equalTo:"#password" } }, messages: { brandName: { required: "请输入商品品牌名称" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/member/user/updatePassword${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a> &raquo; 修改用户</td></tr> </thead> </table> <input type="hidden" name="id" value="${bean.id }"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 修改用户 </div> </th> </tr> </thead> <tr> <td> <div align="center">名称 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="name" id="name" value="${bean.name}" maxlength="30" <c:if test="${not empty bean}"> <c:out value="readonly=\"true\""></c:out> </c:if> /></p> </td> </tr> <tr> <td> <div align="center">密码 <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="password" id="password" value="" maxlength="30"/></p> </td> </tr> <tr> <td> <div align="center">确认密码 <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="passwordag" id="passwordag" value="" maxlength="30"/></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"><input type="submit" value="提交" /></auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/updateUserPassword.jsp
Java Server Pages
oos
3,994
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html:html> <head> <LINK title=Style href="${pageContext.request.contextPath}/common/css/back_style.css" type=text/css rel=stylesheet> <title>修改角色</title> </head> <body> <br> <br> <div align="center"> <table width="386" height="185" > <tr> <td width="380" height="181"> <html:form action="/member/user/updateUserStatus${applicationScope.WEB_SUFFIX}"> <input type="hidden" name="user.id" value="<bean:write name="user" property="id"/>"> <table width="380" align="center" bordercolor="#66CCFF" class="tableBorder" style="border-collapse:collapse " > <tr> <th colspan="2"> 修改用户 </th> </tr> <tr> <td height="27" align="center" class="forumRow">名称</td> <td align="center" class="forumRow"><input type="text" name="user.name" readonly="true" style="color: gray" value="<bean:write name="user" property="name"/>"></td> </tr> <tr> <td height="27" align="center" class="forumRow">状态</td> <td align="center" class="forumRow"> <logic:equal name="user" property="enabled" value="1"> <input name="user.enabled" type="radio" value="1" checked >有效 <input name="user.enabled" type="radio" value="0" >无效 </logic:equal> <logic:equal name="user" property="enabled" value="0"> <input name="user.enabled" type="radio" value="1">有效 <input name="user.enabled" type="radio" value="0" checked>无效 </logic:equal> </td> </tr> <tr> <td height="27" align="center" class="forumRow">备注</td> <td align="center" class="forumRow"><input type="text" name="user.note" value="<bean:write name="user" property="note"/>"></td> </tr> <tr bordercolor="#FFFFFF"> <td height="42" colspan="2" class="forumRow"><table width="338" > <tr> <td width="162" align="center"> <input type="submit" name="Submit" value="修改"></td> <td width="166" align="center"><input type="reset" name="cancel" value="重置"></td> </tr> </table></td> </tr> </table> </html:form></td> </tr> </table> </div> <p>&nbsp; </p> </body> </html:html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/updateUserStatus.jsp
Java Server Pages
oos
2,589
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- function confirmDelete() { return con = confirm("确定要删除吗?"); } function selAll(){ chk = document.getElementById("checkbox"); allSel = document.getElementsByName("strArray"); if(!chk.checked) for(i=0;i<allSel.length;i++) { allSel[i].checked=false; } else for(i=0;i<allSel.length;i++) { allSel[i].checked=true; } } function saveLeastOne() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); count = 0; selValue = ""; //判断是否只有一条记录被选中 for(i=0;i<selAry.length;i++) { if(selAry[i].checked) { count++; selValue = selAry[i].value; } } if(count==0) { window.alert('至少选中一条记录!'); } else { return true; } return false; } //--> </script> <title>角色列表</title> </head> <body> <%int offset=((Integer)request.getAttribute("offset")).intValue();%> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a>&raquo;增加用户[${bean.name }]角色</td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/member/user/saveRoleToUser${applicationScope.WEB_SUFFIX}" id="form1" name="form1"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> <input type="hidden" name="userId" value="${bean.id }"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.id}" /><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="角色名称 " property="roleType" sortable="true"></display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.enabled}" defaultDisp=""/> </display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <input type="submit" value="添加" onclick="return saveLeastOne();"/> </div> </form> <div align="center"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/findOtherRoleByUser.jsp
Java Server Pages
oos
3,653
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <title>创建用户</title> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true }, password: { required: true }, passwordag: { required: true, equalTo:"#password" } }, messages: { name: { required: '<fmt:message key="username.required"/>', minlength: '<fmt:message key="username.minlength"/>' }, password: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>' }, passwordag: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>', equalTo: '<fmt:message key="password.equalTo"/>' } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); // check if confirm password is still valid after password changed jQuery("#password").blur(function() { jQuery("#passwordag").valid(); }) </script> </head> <form action="${pageContext.request.contextPath}/member/user/save${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a> &raquo; 创建用户</td></tr> </thead> </table> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建用户 </div> </th> </tr> </thead> <tr> <td> <div align="center">名称 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="name" id="name" value="" maxlength="30" /></p> </td> </tr> <tr> <td> <div align="center">密码 <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="password" id="password" value="" maxlength="30"/></p> </td> </tr> <tr> <td> <div align="center">确认密码 <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="passwordag" id="passwordag" value="" maxlength="30"/></p> </td> </tr> <tr> <td> <div align="center">状态</div> </td> <td> <p> <label> <input type="radio" name="enabled" value="1" checked="checked" /> 有效</label> &nbsp; &nbsp; <label> <input type="radio" name="enabled" value="0" <c:if test="${bean.enabled eq 0}"> checked="checked" </c:if> /> 无效</label> </p> </td> </tr> <tr> <td> <div align="center">注释</div> </td> <td> <p><input type="text" name="note" id="note" value=""/></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"><input type="submit" value="提交" /></auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/saveUser.jsp
Java Server Pages
oos
5,125
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>权限列表</title> </head> <body> <% int offset=1; %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}">权限用户管理</a>&raquo;用户[${bean.name }]权限列表 </td></tr> </thead> </table> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column style="width:70px" title="顺序"><%=offset++%></display:column> <display:column title="名称 " property="name" sortable="true"></display:column> <display:column title="权限名称 " property="protectFunction" sortable="true"></display:column> <display:column title="备注" property="note"></display:column> </display:table> </div> <div align="center"> <P><a href="javascript:history.go(-1)">返回</a></div> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/member/user/findFunctionByUser.jsp
Java Server Pages
oos
1,952
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> ${payment_result} </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/payment/payto.jsp
Java Server Pages
oos
215
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/My97DatePicker/WdatePicker.js"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <html> <%Integer offset = (Integer)request.getAttribute("offset");%> <head> <title>用户登录历史列表</title> </head> <body> <auth:auth ifAnyGranted="F_SYSTEM"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/admin/loginHistory/query${applicationScope.WEB_SUFFIX}">用户登录历史</a></td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/admin/loginHistory/query${applicationScope.WEB_SUFFIX}" id="form1"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> &nbsp;用户名称 <input type="text" name="userName" id="userName" maxlength="50" value="${login.userName}" size="15"/> &nbsp;开始时间 <input readonly="readonly" name="startTime" id="startTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${login.startTime}" pattern="yyyy-MM-dd"/>' /> &nbsp;结束时间 <input readonly="readonly" name="endTime" id="endTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${login.endTime}" pattern="yyyy-MM-dd"/>' /> <input type="submit" value="搜索" /> </div> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/loginHistory/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="用户名" property="userName"></display:column> <display:column title="IP" property="ip"></display:column> <display:column title="国家" property="country" sortable="true" sortName="country"></display:column> <display:column title="登录时间"> <fmt:formatDate value="${item.time}" pattern="yyyy-MM-dd HH:mm"/> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </auth:auth> <script language="JavaScript" type="text/javascript"> <!-- function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/loginhistory/loginHistoryList.jsp
Java Server Pages
oos
3,254
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/My97DatePicker/WdatePicker.js"></script> <html> <% Integer offset = (Integer)request.getAttribute("offset"); %> <head> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>用户登录历史列表次数</title> </head> <body> <auth:auth ifAnyGranted="F_SYSTEM"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 用户管理 &raquo; <a href="${pageContext.request.contextPath}/admin/loginHistory/sum${applicationScope.WEB_SUFFIX}">用户登录次数历史列表</a></td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/admin/loginHistory/sum${applicationScope.WEB_SUFFIX}" id="form1"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"> &nbsp;用户名称 <input type="text" name="userName" id="userName" maxlength="50" value="${login.userName}" size="15"/> &nbsp;开始时间 <input readonly="readonly" name="startTime" id="startTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${login.startTime}" pattern="yyyy-MM-dd"/>' /> &nbsp;结束时间 <input readonly="readonly" name="endTime" id="endTime" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${login.endTime}" pattern="yyyy-MM-dd"/>' /> <input type="submit" value="搜索" /> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/loginHistory/sum${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="用户名">${item[0]}</display:column> <display:column title="登录次数">${item[1]}</display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </auth:auth> <script language="JavaScript" type="text/javascript"> <!-- function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/loginhistory/loginHistorySum.jsp
Java Server Pages
oos
3,001
<%@ page contentType="text/html; charset=utf-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script language="javascript" src='${pageContext.request.contextPath}/common/js/ScrachParam.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/json.js"></script> <html> <head> <title>增加品牌</title> <link href="${pageContext.request.contextPath}/common/style/global_base.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function onEnter(e){ var ev = window.event|| e; if(ev.keyCode == 13){ loadDataByName(); } } function saveBrand(obj){ obj.disabled = "disabled" ; var idMap = []; var nameMap = []; for(i=0;i<document.getElementById("Select2").options.length;i++){ var brandId = document.getElementById("Select2").options[i].value; var brandName = document.getElementById("Select2").options[i].text; idMap.push(brandId) ; nameMap.push(brandName); } var idJson = JSON.stringify(idMap); var nameJson = JSON.stringify(nameMap); CommonService.saveBrandItem(idJson,nameJson,'${nsortId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(data){ if(data==null){ alert("操作成功"); window.close(); }else{ alert("操作失败: "+data) ; } obj.disabled = false ; }) ; } function loadDataByName(){ var name = "%"+document.getElementById("selectname").value+"%"; CommonService.getUsableBrandByName('${nsortId}', '${sessionScope.SPRING_SECURITY_LAST_USERNAME}', name,function(dataArray){ try{ dwr.util.removeAllOptions("Select1"); for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select1", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }) ; } function loadData(){ //alert("loadData " + '${nsortId}' +" " + '${sessionScope.SPRING_SECURITY_LAST_USERNAME}'); //未有选择 CommonService.getUsableBrand('${nsortId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(dataArray){ try{ for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select1", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }); //已经选择的 CommonService.getUsedBrand('${nsortId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(dataArray){ try{ for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select2", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }) ; } function toRight(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ if(leftObj.options[i].selected){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool) continue ; rightObj.options.add(new Option(e.text, e.value)); } } } function toLeft(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ if(leftObj.options[i].selected){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool){ continue ; } rightObj.options.add(new Option(e.text, e.value)); } } //toRight(rightObj,leftObj) ; } function toRightAll(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } if(bool) continue ; rightObj.options.add(new Option(e.text, e.value)); leftObj.remove(i); i=i-1; } } function toLeftAll(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool){ continue ; } rightObj.options.add(new Option(e.text, e.value)); } //toRightAll(rightObj,leftObj) ; } </script> </head> <body scroll="no" onLoad="loadData()"> <table width="100%" height="100%" cellpadding="1" cellspacing="1"> <tr> <td><br> &nbsp;&nbsp;<img src="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/menusearch.gif">商品品牌 <input name="selectname" type="text" id="selectname" size="15" onKeyDown="javascript:onEnter(event)" > <input name="search" type="button" id="search" onClick="loadDataByName()" value="查询" class="s"></td> </tr> <tr> <td> <fieldset> <legend>选择</legend> <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td width="45%" class="fim_l"> <table width="*" cellpadding="0" cellspacing="0" class=""> <tr> <td> </td> <td> &nbsp;可选择商品品牌</td> </tr> </table> </td> <td width="2%"> </td> <td width="45%"> <table width="*" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td> &nbsp;已选择商品品牌</td> </tr> </table> </td> </tr> <tr> <td valign="top" rowspan="2"> <table width="100%" height="100%"> <tr> <td width="100%" colspan="2" height="*"> <select id="Select1" multiple ondblclick="toRight(Select1,Select2)" name="Select1" style="width: 100%; height:220px"> </select> </td> </tr> </table> </td> <td class="" rowspan="2"> <input type="button" value=">>" title="全部添加" onClick="toRightAll(Select1,Select2)" id="Button3" name="Button1" class="s"><br> <input type="button" value=">" title="添加" onClick="toRight(Select1,Select2)" id="Button4" name="Button2" class="s"><br> <input type="button" value="<" title="删除" onClick="toLeft(Select2,Select1)" id="Button11" name="Button3" class="s"><br> <input type="button" value="<<" title="全部删除" onClick="toLeftAll(Select2,Select1)" id="Button12" name="Button4" class="s"><br> </td> <td class="fim_m"> <select id="Select2" multiple ondblclick="toLeft(Select2,Select1)" class="com_textarea" style="width: 100%; height: 220px"> </select> </td> </tr> </table> </fieldset> </td> </tr> <tr> <td align="center"> <input type="button" class="s" onClick="saveBrand(this)" value="确定" id="Button1" name="Button1"> <input type="button" class="s" onclick="window.close();" value="取消" id="Button2" name="Button2"><br><br> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/nsort/appendBrand.jsp
Java Server Pages
oos
9,843
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>二级分类列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/nsort/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}">类型管理</a> &raquo; <a href="${pageContext.request.contextPath}/admin/nsort/query${applicationScope.WEB_SUFFIX}?sortId=${param.sortId}">二级商品类型管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <input type="hidden" id="sortId" name="sortId" value="${bean.sortId}" /> 二级类型 <input type="text" name="name" maxlength="50" value="${name}" /> <input type="submit" value="搜索"/> <input type="button" value="创建二级商品类型" onclick='window.location="${pageContext.request.contextPath}/admin/nsort/load${applicationScope.WEB_SUFFIX}?sortId=${bean.sortId}"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/nsort/query${applicationScope.WEB_SUFFIX}" id="parent" export="false" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="二级商品类型" property="nsortName"></display:column> <display:column title="次序" property="seq"></display:column> <c:set var="subSortList" value="${parent.subSort}" scope="request"/> <display:column title="三级商品类型" > <c:if test="${fn:length(subSortList) > 0}"> <display:table name="subSortList" id="child" cellpadding="0" cellspacing="0"> <display:column title="三级商品类型" property="nsortName"></display:column> <display:column title="次序" property="seq"></display:column> <display:column title="操作" media="html" autolink="true"> <auth:auth ifAnyGranted="F_OPERATOR"> <a href= "${pageContext.request.contextPath}/admin/nsort/update/${child.nsortId}${applicationScope.WEB_SUFFIX}?sortId=${bean.sortId}&parentNsortId=${parent.nsortId}"><img alt="修改三级商品类型" src="${pageContext.request.contextPath}/img/grid_edit.png" title="修改三级商品类型"></a> <a href='javascript:deleteById("${child.nsortId}")'><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png" title="删除三级商品类型"></a> </auth:auth> </display:column> </display:table> </c:if> </display:column> <display:column title="操作" media="html" style="width:80px"> <auth:auth ifAnyGranted="F_OPERATOR"> <a href= "${pageContext.request.contextPath}/admin/nsort/load${applicationScope.WEB_SUFFIX}?sortId=${bean.sortId}&parentNsortId=${parent.nsortId}"><img alt="创建三级商品类型" src="${pageContext.request.contextPath}/img/grid_add.png" title="创建三级商品类型"></a> <a href= "${pageContext.request.contextPath}/admin/nsort/update/${parent.nsortId}${applicationScope.WEB_SUFFIX}?sortId=${bean.sortId}&parentNsortId=${parent.nsortId}""><img alt="修改二级商品类型" src="${pageContext.request.contextPath}/img/grid_edit.png" title="修改二级商品类型"></a> <a href='javascript:deleteById("${parent.nsortId}")'><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png" title="删除二级商品类型"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/nsort/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("parent"); highlightTableRows("child"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/nsort/nsortList.jsp
Java Server Pages
oos
5,564
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建二级商品类型</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { nsortName: "required", seq: { number:true } }, messages: { nsortName: { required: "请输入分类名称" }, seq: { number: "请输入数字" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/common.js"></script> <script type="text/javascript"> function appendBrand(id){ var win = openWindow("${pageContext.request.contextPath}/admin/nsort/appendBrand/" + id + "${applicationScope.WEB_SUFFIX}","appendBrand",'500','450') ; win.focus() ; } </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/nsort/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}">类型管理</a> &raquo; <a href="${pageContext.request.contextPath}/admin/nsort/query${applicationScope.WEB_SUFFIX}?sortId=${param.sortId}">二级商品类型管理</a> &raquo; 创建二级商品类型 <c:if test="${param.parentNsortId != null}"> &raquo; 创建三级商品类型</c:if> </td></tr> </thead> </table> <input id="nsortId" name="nsortId" value="${bean.nsortId}" type="hidden"> <input id="sortId" name="sortId" value="${param.sortId}" type="hidden"> <input id="parentNsortId" name="parentNsortId" value="${param.parentNsortId}" type="hidden"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> <c:choose> <c:when test="${param.parentNsortId == null}">创建二级商品类型</c:when> <c:otherwise>创建三级商品类型</c:otherwise> </c:choose> </div> </th> </tr> </thead> <tr> <td> <div align="center">商品类型名称: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="nsortName" id="nsortName" value="${bean.nsortName}" /></p> </td> </tr> <tr> <td> <div align="center">排序(必须为数字):</div> </td> <td> <p><input type="text" name="seq" id="seq" value="${bean.seq}" /></p> </td> </tr> <c:if test="${param.parentNsortId != null && bean.nsortId != null}"> <tr> <td> <div align="center">品牌:</div> </td> <td> <p><a href="javascript:appendBrand(${bean.nsortId})">增加品牌</a>&nbsp;还没有商品品牌?请先&nbsp;<a href="${pageContext.request.contextPath}/admin/brand/load${applicationScope.WEB_SUFFIX}">创建品牌</a></p> </td> </tr> </c:if> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/nsort/nsort.jsp
Java Server Pages
oos
5,251
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>物流公司列表</title> </head> <body> <form action="<ls:url address='/admin/deliveryCorp/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/deliveryCorp/query'/>">物流公司</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${deliveryCorp.userName}" /> </auth:auth> 物流公司名称&nbsp;<input type="text" name="name" maxlength="50" value="${deliveryCorp.name}" /> <input type="submit" value="搜索"/> <input type="button" value="创建物流公司" onclick='window.location="<ls:url address='/admin/deliveryCorp/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="<ls:url address='/admin/deliveryCorp/query'/>" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序">${item_rowNum}</display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="公司名称" property="name"></display:column> <display:column title="URL" property="url"></display:column> <%-- <display:column title="创建时间" property="createTime"></display:column> <display:column title="修改时间" property="modifyTime"></display:column> --%> <display:column title="操作" media="html"> <a href="<ls:url address='/admin/deliveryCorp/load/${item.dvyId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.dvyId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/deliveryCorp/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/deliveryCorp/deliveryCorpList.jsp
Java Server Pages
oos
3,800
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建物流公司</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true, }, url: { required: true, } }, messages: { name: { required: '<fmt:message key="deliverycorp.name.required"/>', }, url: { required: '<fmt:message key="deliverycorp.url.required"/>', } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/deliveryCorp/query'/>">物流公司</a> </td> </tr> </thead> </table> <form action="<ls:url address='/admin/deliveryCorp/save'/>" method="post" id="form1"> <input id="dvyId" name="dvyId" value="${deliveryCorp.dvyId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> <c:choose> <c:when test="${not empty deliveryCorp}">修改物流公司</c:when> <c:otherwise>创建物流公司</c:otherwise> </c:choose> </div> </th> </tr> </thead> <tr> <td> <div align="center"> 物流公司名称: <font color="ff0000">*</font> </div> </td> <td> <p> <input type="text" name="name" id="name" value="${deliveryCorp.name}" /> </p> </td> </tr> <tr> <td> <div align="center"> URL: <font color="ff0000">*</font> </div> </td> <td> <p> <input type="text" name="url" id="url" value="${deliveryCorp.url}" /> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="保存" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/deliveryCorp/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/deliveryCorp/deliveryCorp.jsp
Java Server Pages
oos
3,402
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>PayType 列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}">支付管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 用户名&nbsp;<input type="text" name="userName" maxlength="50" value="${bean.userName}" /> <input type="submit" value="搜索"/> </auth:auth> <input type="button" value="创建支付方式" onclick='window.location="${pageContext.request.contextPath}/admin/paytype/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/paytype/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="用户名" property="userName"></display:column> </auth:auth> <display:column title="支付方式" property="payTypeName"></display:column> <display:column title="合作身份者ID(Partner)" property="partner"></display:column> <display:column title="安全检验码" property="validateKey"></display:column> <display:column title="签约账号" property="sellerEmail"></display:column> <display:column title="备注" property="memo"></display:column> <display:column title="操作" media="html" style="width:40px"> <a href= "${pageContext.request.contextPath}/admin/paytype/load/${item.payId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.payId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 创建支付方式,每个支付方式只需建立一个,建立之后用户在订购商品时可以选择该支付方式<br> 2. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮<br> 3. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/paytype/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/payType/payTypeList.jsp
Java Server Pages
oos
4,649
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建支付方式</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/paytype/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="payId" name="payId" value="${bean.payId}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}">支付管理</a> &raquo; 创建支付方式</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建支付方式 </div> </th> </tr> </thead> <tr> <td> <div align="center">支付方式: <font color="ff0000">*</font></div> </td> <td> <select id="payTypeId" name="payTypeId"> <option:optionGroup type="select" required="true" cache="true" beanName="PAY_TYPE" selectedValue="${bean.payTypeId}"/> </select> </td> </tr> <tr> <td> <div align="center">合作身份者ID(Partner):</div> </td> <td> <p><input type="text" name="partner" id="partner" value="${bean.partner}" size="50" maxlength="100"/></p> </td> </tr> <tr> <td> <div align="center">安全检验码:</div> </td> <td> <p><input type="text" name="validateKey" id="validateKey" value="${bean.validateKey}" size="50" maxlength="50"/></p> </td> </tr> <tr> <td> <div align="center">签约账号:</div> </td> <td> <p><input type="text" name="sellerEmail" id="sellerEmail" value="${bean.sellerEmail}" size="50" maxlength="100"/></p> </td> </tr> <tr> <td> <div align="center">备注:</div> </td> <td> <p><input type="text" name="memo" id="memo" value="${bean.memo}" size="50" maxlength="100"/></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"><input type="submit" value="提交"/></auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 如果选择货到付款方式,则无需填写合作身份者ID,安全检验码和签约账号<br> </td><tr></table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/payType/payType.jsp
Java Server Pages
oos
4,979
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>重新建立索引</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); function chooseByPostId(field) { var value = field.value; if (value.length > 0) { if (isNaN(value * 1)) { alert("输入ID范围有误"); field.value = ""; } else { var f = field.form; f.fromDay.selectedIndex = 0; f.fromMonth.selectedIndex = 0; f.fromYear.selectedIndex = 0; f.fromHour.value = ""; f.fromMinutes.value = ""; f.toDay.selectedIndex = 0; f.toMonth.selectedIndex = 0; f.toYear.selectedIndex = 0; f.toHour.value = ""; f.toMinutes.value = ""; f.type[1].checked = true; } } } function writeOptions(fieldName, from, to) { document.write("<select name='" + fieldName + "' onChange='chooseByDate(this.form);'>"); document.write("<option value=''>--</option>"); for (var i = from; i <= to; i++) { document.write("<option value='" + i + "'>" + i + "</option>"); } document.write("</select>&nbsp;&nbsp;"); } function chooseByDate(f) { f.firstPostId.value = ""; f.lastPostId.value = ""; f.type[0].checked = true; } function validateReindexForm(f) { if (f.type[0].checked) { return validateDateRange(f); } else { return validatePostIdRange(f); } } function validatePostIdRange(f) { if (f.firstPostId.value.length == 0 || isNaN(f.firstPostId.value * 1) || f.lastPostId.value.length == 0 || isNaN(f.lastPostId.value * 1)) { alert("输入ID范围有误"); return false; } return true; } function validateDateRange(f) { var fromHour = f.fromHour.value * 1; var fromMinutes = f.fromMinutes.value * 1 var toHour = f.toHour.value * 1; var toMinutes = f.toMinutes.value * 1 if (f.fromDay.selectedIndex == 0 || f.fromMonth.selectedIndex == 0 || f.fromYear.selectedIndex == 0 || f.fromHour.value.length == 0 || f.fromMinutes.value.length == 0 || isNaN(fromHour) || isNaN(fromMinutes) || fromHour < 0 || fromHour > 59 || fromMinutes < 0 || fromMinutes > 59 || f.toDay.selectedIndex == 0 || f.toMonth.selectedIndex == 0 || f.toYear.selectedIndex == 0 || f.toHour.value.length == 0 || f.toMinutes.value.length == 0 || isNaN(toHour) || isNaN(toMinutes) || toHour < 0 || toHour > 59 || toMinutes < 0 || toMinutes > 59) { alert("输入时间范围有误"); return false; } return true; } function writeTimeGroup(fieldNamePrefix) { document.write("<input type='text' style='width: 35px;' maxlength='2' name='" + fieldNamePrefix + "Hour'> : "); document.write("<input type='text' style='width: 35px;' maxlength='2' name='" + fieldNamePrefix + "Minutes'>"); } </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/system/lucene/reindex${applicationScope.WEB_SUFFIX}" method="post" id="form1" onSubmit="return validateReindexForm(this);"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 系统管理 &raquo; <a href="${pageContext.request.contextPath}/system/lucene/query${applicationScope.WEB_SUFFIX}">重建索引</a></td></tr> </thead> </table> <%@ include file="/pages/common/messages.jsp"%> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 重建索引 </div> </th> </tr> </thead> <tr> <td> <div align="right"> <input type="radio" id="reindexByDate" value="1" name="type" checked="checked">依日期 <font color="ff0000">*</font> </div> </td> <td> <p> 开始 <span class="gensmall">(dd/mm/yyyy hh:mm)</span> <script type="text/javascript"> writeOptions("fromDay", 1, 31); writeOptions("fromMonth", 1, 12); writeOptions("fromYear", 1995, new Date().getFullYear()); writeTimeGroup("from"); </script> <br>结束 <span class="gensmall">(dd/mm/yyyy hh:mm)</span> <script type="text/javascript"> writeOptions("toDay", 1, 31); writeOptions("toMonth", 1, 12); writeOptions("toYear", 1995, new Date().getFullYear()); writeTimeGroup("to"); </script> </p> </td> </tr> <tr> <td> <div align="right"> <input type="radio" id="reindexByMessage" value="2" name="type">依实体类型 <font color="ff0000">*</font> </div> </td> <td> <input type="radio" id="prodType" name="entityType" value="0" checked="checked"/> 商品 <input type="radio" id="shopType" name="entityType"/ value="1"> 商城 <!-- <input type="radio" id="newsType" name="entityType" value="2"/> 新闻 --> </td> </tr> <tr> <td> <div align="right"> 依实体Id <font color="ff0000">*</font> </div> </td> <td> <p> 开始 <input type="text" name="firstPostId" onblur="chooseByPostId(this);" /> 结束 <input type="text" name="lastPostId" onBlur="chooseByPostId(this);" /> </p> </td> </tr> <tr> <td> <div align="right"> 选项 </div> </td> <td> <input type="checkbox" id="avoidDuplicated" name="avoidDuplicatedRecords" value="yes" checked="checked" /> 加入索引前检查文章是否存在,这样可以避免数据重复, 但是建立索引的过程将花较久的时间完成<br> <input type="radio" name="indexOperationType" id="operationTypeAppend" value="append" checked="checked"/> 加入文件到索引,将纪录加到现存的索引数据库而不重新建立.<br> <input type="radio" name="indexOperationType" id="operationTypeRecreate" value="recreate" /> 从无到有重建索引,建立一个全新的索引数据库. 这样将会删除所有存在的纪录. </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/lucene/reindexer.jsp
Java Server Pages
oos
7,325
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>系统配置参数列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 系统管理 &raquo; <a href="${pageContext.request.contextPath}/system/systemParameter/query${applicationScope.WEB_SUFFIX}">系统参数配置管理</a></td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/system/systemParameter/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> &nbsp; 参数名称&nbsp;<input type="text" name="name" id="name" maxlength="50" size="50" value="${bean.name}" /> <input type="submit" value="搜索"/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/system/systemParameter/query${applicationScope.WEB_SUFFIX}" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="功能说明" property="memo"></display:column> <display:column title="参数名称" property="name"></display:column> <display:column title="参数值"> <c:choose> <c:when test="${item.type == 'Selection'}"> <option:optionGroup type="label" required="true" cache="true" beanName="${item.optional}" selectedValue="${item.value}"/> </c:when> <c:otherwise>${item.value}</c:otherwise> </c:choose> </display:column> <display:column title="操作" media="html"> <a href= "${pageContext.request.contextPath}/system/systemParameter/load/${item.name}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/system/systemParameter/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/systemParameter/systemParameterList.jsp
Java Server Pages
oos
3,740
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建 SystemParameter</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/system/systemParameter/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="name" name="name" value="${bean.name}" type="hidden"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> ${bean.name} 参数 </div> </th> </tr> </thead> <tr> <td> <div align="center">功能说明</div> </td> <td> <p> ${bean.memo} </p> </td> </tr> <tr> <td> <div align="center">参数值</div> </td> <td> <p> <c:choose> <c:when test="${bean.type == 'Selection' || bean.type == 'Boolean'}"> <select id="value" name="value"> <option:optionGroup type="select" required="true" cache="true" beanName="${bean.optional}" selectedValue="${bean.value}"/> </select> </c:when> <c:otherwise> <input type="text" name="value" id="value" value="${bean.value}" size="50" maxlength="200"/> </c:otherwise> </c:choose> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/system/systemParameter/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/systemParameter/systemParameter.jsp
Java Server Pages
oos
3,879
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <html> <head> <title>创建供应商</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { partnerName: { required: true, }, <c:if test='${empty partner}'> password: { required: true, }, passwordag: { required: true, equalTo:"#password" }, </c:if> title: { required: true, }, location: { required: true, }, open: { required: true, }, status: { required: true, }, open: { required: true, } }, messages: { partnerName: { required: '<fmt:message key="partner.username.required"/>', }, password: { required: '<fmt:message key="password.required"/>', }, passwordag: { required: '<fmt:message key="password.required"/>', equalTo: '<fmt:message key="password.equalTo"/>' }, title: { required: '<fmt:message key="partner.title.required"/>', }, location: { required: '<fmt:message key="partner.location.required"/>', } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/partner/query'/>">供应商管理</a> </td> </tr> </thead> </table> <form action="<ls:url address='/admin/partner/save'/>" method="post" id="form1" enctype="multipart/form-data"> <input id="partnerId" name="partnerId" value="${partner.partnerId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> <c:choose> <c:when test="${not empty partner}">修改供应商</c:when> <c:otherwise>创建供应商</c:otherwise> </c:choose> </div> </th> </tr> </thead> <tr> <td> <div align="center">供应商登录名: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="partnerName" id="partnerName" value="${partner.partnerName}" /></p> </td> </tr> <c:if test="${empty partner}"> <tr> <td> <div align="center">登录密码: <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="password" id="password" value="${partner.password}" /></p> </td> </tr> <tr> <td> <div align="center">确认密码: <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="passwordag" id="passwordag" value="${partner.password}" /></p> </td> </tr> </c:if> <tr> <td> <div align="center">供应商名称: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="title" id="title" value="${partner.title}" /></p> </td> </tr> <tr> <td> <div align="center">供应商主页: </div> </td> <td> <p><input type="text" name="homepage" id="homepage" value="${partner.homepage}" /></p> </td> </tr> <tr> <td> <div align="center">银行名称: </div> </td> <td> <p><input type="text" name="bankName" id="bankName" value="${partner.bankName}" /></p> </td> </tr> <tr> <td> <div align="center">银行账号: </div> </td> <td> <p><input type="text" name="bankNo" id="bankNo" value="${partner.bankNo}" /></p> </td> </tr> <tr> <td> <div align="center">银行用户名: </div> </td> <td> <p><input type="text" name="bankUser" id="bankUser" value="${partner.bankUser}" /></p> </td> </tr> <tr> <td> <div align="center">商户所在位置: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="location" id="location" value="${partner.location}" /></p> </td> </tr> <tr> <td> <div align="center">联系人: </div> </td> <td> <p><input type="text" name="contact" id="contact" value="${partner.contact}" /></p> </td> </tr> <tr> <td> <div align="center">商户图片1: </div> </td> <td> <p> <c:if test="${not empty partner.image}"> <img width="300px" src="${pageContext.request.contextPath}/photoserver/photo/${partner.image}"/><br/> </c:if> <input type="file" name="imageFile" id="file" size="50"/></p> <input type="hidden" name="image" id="image" value="${partner.image}" /> </td> </tr> <tr> <td> <div align="center">商户图片2: </div> </td> <td> <p> <c:if test="${not empty partner.image1}"> <img width="300px" src="${pageContext.request.contextPath}/photoserver/photo/${partner.image1}"/><br/> </c:if> <input type="file" name="imageFile1" id="file" size="50"/></p> <input type="hidden" name="image1" id="image1" value="${partner.image1}" /> </td> </tr> <tr> <td> <div align="center">商户图片3: </div> </td> <td> <p> <c:if test="${not empty partner.image2}"> <img width="300px" src="${pageContext.request.contextPath}/photoserver/photo/${partner.image2}"/><br/> </c:if> <input type="file" name="imageFile2" id="file" size="50"/></p> <input type="hidden" name="image2" id="image2" value="${partner.image2}" /> </td> </tr> <tr> <td> <div align="center">联系电话: </div> </td> <td> <p><input type="text" name="phone" id="phone" value="${partner.phone}" /></p> </td> </tr> <tr> <td> <div align="center">商户地址: </div> </td> <td> <p><input type="text" name="address" id="address" value="${partner.address}" /></p> </td> </tr> <tr> <td> <div align="center">商户其他信息: </div> </td> <td> <p><input type="text" name="other" id="other" value="${partner.other}" /></p> </td> </tr> <tr> <td> <div align="center">商户手机号码: </div> </td> <td> <p><input type="text" name="mobile" id="mobile" value="${partner.mobile}" /></p> </td> </tr> <tr> <td> <div align="center">是否展示相关信息: <font color="ff0000">*</font></div> </td> <td> <p> <select id="open" name="open"> <option:optionGroup type="select" required="true" cache="true" beanName="YES_NO" selectedValue="${partner.open}"/> </select> </td> </tr> <tr> <td> <div align="center">商户状态: <font color="ff0000">*</font></div> </td> <td> <p> <select id="status" name="status"> <option:optionGroup type="select" required="true" cache="true" beanName="ENABLED" selectedValue="${partner.status}"/> </select> </p> </td> </tr> <tr> <td> <div align="center">是否显示首页: <font color="ff0000">*</font></div> </td> <td> <p> <select id="display" name="display"> <option:optionGroup type="select" required="true" cache="true" beanName="YES_NO" selectedValue="${partner.display}"/> </select> </p> </td> </tr> <c:if test="${not empty partner}"> <tr> <td> <div align="center">评论满意数量: </div> </td> <td> <p><input disabled="disabled" type="text" name="commentGood" id="commentGood" value="${partner.commentGood}" /></p> </td> </tr> <tr> <td> <div align="center">评论一般数量: </div> </td> <td> <p><input disabled="disabled" type="text" name="commentNone" id="commentNone" value="${partner.commentNone}" /></p> </td> </tr> <tr> <td> <div align="center">评论失望数量: </div> </td> <td> <p><input disabled="disabled" type="text" name="commentBad" id="commentBad" value="${partner.commentBad}" /></p> </td> </tr> </c:if> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="保存" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/partner/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/partner/partner.jsp
Java Server Pages
oos
11,437
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <html> <head> <title>修改供应商密码</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { password: { required: true, }, passwordag: { required: true, equalTo:"#password" } }, messages: { password: { required: '<fmt:message key="password.required"/>', }, passwordag: { required: '<fmt:message key="password.required"/>', equalTo: '<fmt:message key="password.equalTo"/>' } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/partner/query'/>">供应商管理</a> </td> </tr> </thead> </table> <form action="<ls:url address='/admin/partner/savePassword'/>" method="post" id="form1"> <input id="partnerId" name="partnerId" value="${partner.partnerId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center">修改供应商密码</div> </th> </tr> </thead> <tr> <td> <div align="center">供应商登录名: <font color="ff0000">*</font></div> </td> <td> <p>${partner.partnerName}</p> </td> </tr> <tr> <td> <div align="center">登录密码: <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="password" id="password" /></p> </td> </tr> <tr> <td> <div align="center">确认密码: <font color="ff0000">*</font></div> </td> <td> <p><input type="password" name="passwordag" id="passwordag" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="保存" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/partner/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/partner/partnerChangePassword.jsp
Java Server Pages
oos
4,086
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>供应商列表</title> </head> <body> <form action="<ls:url address='/admin/partner/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/partner/query'/>">供应商管理</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${partner.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建供应商" onclick='window.location="<ls:url address='/admin/partner/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/partner/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="顺序">${item_rowNum}</display:column> <display:column title="登录名" property="partnerName"></display:column> <display:column title="名称" property="title"></display:column> <display:column title="主页" property="homepage"></display:column> <display:column title="银行名称" property="bankName"></display:column> <display:column title="所在位置" property="location"></display:column> <display:column title="联系人" property="contact"></display:column> <display:column title="联系电话" property="phone"></display:column> <display:column title="展示相关信息"> <option:optionGroup type="label" required="true" cache="true" beanName="YES_NO" selectedValue="${item.open}" defaultDisp=""/> </display:column> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ENABLED" selectedValue="${item.status}" defaultDisp=""/> </display:column> <display:column title="显示首页"> <option:optionGroup type="label" required="true" cache="true" beanName="YES_NO" selectedValue="${item.display}" defaultDisp=""/> </display:column> <display:column title="评论满意" property="commentGood"></display:column> <display:column title="评论一般" property="commentNone"></display:column> <display:column title="评论失望" property="commentBad"></display:column> <display:column title="操作" media="html"> <a href="<ls:url address='/admin/partner/load/${item.partnerId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.partnerId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> <a href="<ls:url address='/admin/partner/changePassword/${item.partnerId}'/>" title="修改密码">修改密码</a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/partner/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/partner/partnerList.jsp
Java Server Pages
oos
4,794
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ include file="/pages/common/back-common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type="text/javascript"> <!-- function submitForm(){ var reslut = true; var newsTitle = $("#newsTitle").val(); if(newsTitle == null|| newsTitle ==''){ reslut = false; alert("新闻标题不能为空"); return; } if(reslut){ document.getElementById('form1').submit(); } } $(document).ready(function() { jQuery("#form1").validate({ rules: { newsTitle: { required: true, minlength: 3 } }, messages: { newsTitle: { required: "请输入新闻标题", minlength: "请认真填写,新闻标题不能少于3个字符" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); //--> </script> </head> <body class="bodymargin"> <center> <form method="post" action="${pageContext.request.contextPath}/admin/news/save${applicationScope.WEB_SUFFIX}" id="form1"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}">新闻管理</a> &raquo; 创建新闻</td></tr> </thead> <table style="width:80%;" class="${tableclass}" id="col1"> <thead> <tr> <th colspan="2"> <div align="center">创建新闻</div> </th> </tr> </thead> <tbody> <tr> <td> 新闻标题<font color="FF0000">*</font> <input type="text" name="newsTitle" id="newsTitle" size="40" class=input value="${news.newsTitle}" /> <input type="hidden" id="newsId" name="newsId" value="${news.newsId}"/> </td> </tr> <tr> <td> <span title="如果不填写则以新闻内容前面部分代替" style="cursor: pointer;">新闻提要</span> <input type="text" name="newsBrief" id="newsBrief" size="120" maxlength="200" class=input value="${news.newsBrief}" /> </td> </tr> <tr><td> 新闻类型 <select id="status" name="status"> <option:optionGroup type="select" required="true" cache="true" beanName="NEWCATEGORY_STAUS" selectedValue="${news.status}"/> </select> 栏目 <select id="newsCategoryId" name="newsCategoryId"> <option:optionGroup type="select" required="false" cache="fasle" beanName="NewsCategory" beanId="newsCategoryId" beanDisp="newsCategoryName" defaultDisp="-- 请选择 --" hql="select t.newsCategoryId, t.newsCategoryName from NewsCategory t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${news.newsCategoryId}"/> </select> 产品分类 <select id="sortId" name="sortId"> <option:optionGroup type="select" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" defaultDisp="-- 请选择 --" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${news.sortId}"/> </select> 是否重点 <select id="highLine" name="highLine"> <option:optionGroup type="select" required="false" cache="true" beanName="YES_NO" selectedValue="${news.highLine}"/> </select> 还没有商品类型?请先&nbsp;<a href="${pageContext.request.contextPath}/admin/sort/load${applicationScope.WEB_SUFFIX}">商品类型</a>&nbsp;<a href="${pageContext.request.contextPath}/pages/newsCategory/newsCategory.jsp">创建栏目</a> </td> </tr> <tr> <td> <auth:auth ifAnyGranted="F_OPERATOR"> <FCK:editor instanceName="newsContent" height="400px" width="100%" basePath="/plugins/fckeditor"> <jsp:attribute name="value">${news.newsContent}</jsp:attribute> </FCK:editor> </auth:auth> <auth:auth ifNotGranted="F_OPERATOR"> 你无权编辑该内容,请与管理员联系 </auth:auth> </td> </tr> </tbody> </table> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}'" /> </auth:auth> </form> </center> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/news/news.jsp
Java Server Pages
oos
5,942
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>新闻列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}">新闻管理</a></td></tr> </thead> </table> <div align="left" style="padding: 5px"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> 标题 <input type="text" name="newsTitle" maxlength="50" size="30" value="${bean.newsTitle}"/> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城 <input type="text" name="userName" maxlength="50" value="${bean.userName}" /> </auth:auth> </div><div align="left" style="padding: 5px"> 新闻类型 <select id="status" name="status"> <option:optionGroup type="select" required="false" cache="true" beanName="NEWCATEGORY_STAUS" selectedValue="${bean.status}"/> </select> 栏目 <select id="newsCategoryId" name="newsCategoryId"> <option:optionGroup type="select" required="false" cache="fasle" beanName="NewsCategory" beanId="newsCategoryId" beanDisp="newsCategoryName" hql="select t.newsCategoryId, t.newsCategoryName from NewsCategory t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${bean.newsCategoryId}"/> </select> 产品分类 <select id="sortId" name="sortId"> <option:optionGroup type="select" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${bean.sortId}"/> </select> <input type="submit" value="搜索"/> <input type="button" value="创建新闻" onclick='window.location="${pageContext.request.contextPath}/admin/news/load${applicationScope.WEB_SUFFIX}"'/> <input type="button" value="创建新闻栏目" onclick='window.location="${pageContext.request.contextPath}/admin/newsCategory/load${applicationScope.WEB_SUFFIX}"'/> </div> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/news/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="标题"><a href="${pageContext.request.contextPath}/news/${item.newsId}${applicationScope.WEB_SUFFIX}" target="_blank">${item.newsTitle}</a></display:column> <display:column title="栏目"> ${item.newsCategoryName} </display:column> <display:column title="分类"> ${item.sortName} </display:column> <display:column title="录入时间" property="newsDate" format="{0,date,yyyy-MM-dd HH:mm}" sortable="true" sortName="n.newsDate"></display:column> <display:column title="状态" sortable="true" sortName="n.status"> <c:choose> <c:when test="${item.status == 0}"><font color="red">下线</font></c:when> <c:otherwise>上线</c:otherwise> </c:choose> </display:column> <display:column title="重点" sortable="true" sortName="n.highLine"> <c:choose> <c:when test="${item.highLine == 1}"><font color="red">是</font></c:when> <c:otherwise></c:otherwise> </c:choose> </display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城" property="userName" sortable="true" sortName="n.userName"></display:column> </auth:auth> <display:column title="操作" media="html" style="width:40px"> <a href= "${pageContext.request.contextPath}/admin/news/load/${item.newsId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.newsId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 每个文章都是挂在栏目下面<br> 2. 文章处于上线状态页面可见,处于下线状态页面不可见<br> 3. 分类,指产品分类,用于标识该文章是描述那一个产品类型<br> 4. 是否重点,如果是重点则在页面中以醒目颜色标注<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/news/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/news/newsList.jsp
Java Server Pages
oos
6,981
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>栏目列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}">栏目管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> 栏目名称 <input type="text" name="newsCategoryName" maxlength="50" value="${bean.newsCategoryName}" /> 状态 <select id="status" name="status"> <option:optionGroup type="select" required="false" cache="true" beanName="NEWCATEGORY_STAUS" selectedValue="${bean.status}"/> </select> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城 <input type="text" name="userName" maxlength="50" value="${bean.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建栏目" onclick='window.location="${pageContext.request.contextPath}/admin/newsCategory/load${applicationScope.WEB_SUFFIX}"'/> <input type="button" value="新闻列表" onclick='window.location="${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/newsCategory/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="栏目名称" property="newsCategoryName"></display:column> <display:column title="状态"> <c:choose> <c:when test="${item.status == 0}"><font color="red">下线</font></c:when> <c:otherwise>上线</c:otherwise> </c:choose> </display:column> <display:column title="建立时间" property="newsCategoryDate" format="{0,date,yyyy-MM-dd HH:mm}" sortable="true"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城" property="userName"></display:column> </auth:auth> <display:column title="操作" media="html" style="width:40px"> <a href= "${pageContext.request.contextPath}/admin/newsCategory/load/${item.newsCategoryId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.newsCategoryId}")'title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 每个文章都是挂在栏目下面,是文章的分类<br> 2. 栏目处于上线状态页面可见,处于下线状态页面不可见<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/newsCategory/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/newsCategory/newsCategoryList.jsp
Java Server Pages
oos
5,089
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建栏目</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> jQuery.validator.setDefaults({ }); jQuery(document).ready(function() { jQuery("#form1").validate({ rules: { newsCategoryName: { required: true, minlength: 3 } }, messages: { newsCategoryName: { required: "请输入栏目名称", minlength: "请认真填写,栏目名称不能少于3个字" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/newsCategory/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="newsCategoryId" name="newsCategoryId" value="${bean.newsCategoryId}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}">栏目管理</a> &raquo; 创建栏目</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建栏目 </div> </th> </tr> </thead> <tr> <td width="30%"> <div align="right">栏目名称 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="newsCategoryName" id="newsCategoryName" value="${bean.newsCategoryName}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">状态 <font color="ff0000">*</font></div> </td> <td> <p> <select id="status" name="status"> <c:choose> <c:when test="${bean.status == '0'}"> <option value="1">上线</option> <option value="0" selected="selected">下线</option> </c:when> <c:otherwise> <option value="1" selected="selected">上线</option> <option value="0">下线</option> </c:otherwise> </c:choose> </select> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"><input type="submit" value="提交"/></auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/newsCategory/newsCategory.jsp
Java Server Pages
oos
4,249
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建 ImgFile</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/imgFile/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="fileId" name="fileId" value="${bean.fileId}" type=" <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建 ImgFile </div> </th> </tr> </thead> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${bean.userName}" /></p> </td> </tr> <tr> <td> <div align="center">ProductId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="productId" id="productId" value="${bean.productId}" /></p> </td> </tr> <tr> <td> <div align="center">ProductType: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="productType" id="productType" value="${bean.productType}" /></p> </td> </tr> <tr> <td> <div align="center">FilePath: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="filePath" id="filePath" value="${bean.filePath}" /></p> </td> </tr> <tr> <td> <div align="center">FileType: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="fileType" id="fileType" value="${bean.fileType}" /></p> </td> </tr> <tr> <td> <div align="center">FileSize: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="fileSize" id="fileSize" value="${bean.fileSize}" /></p> </td> </tr> <tr> <td> <div align="center">UpoadTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="upoadTime" id="upoadTime" value="${bean.upoadTime}" /></p> </td> </tr> <tr> <td> <div align="center">Status: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="status" id="status" value="${bean.status}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/imgFile/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/imgFile/imgFile.jsp
Java Server Pages
oos
4,806
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <title>商品图片列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/imgFile/save${applicationScope.WEB_SUFFIX}" id="form1" method="post" enctype="multipart/form-data"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">商品管理</a> &raquo; <a href="${pageContext.request.contextPath}/admin/product/load${applicationScope.WEB_SUFFIX}">创建商品</a> <c:if test="${prod.name != null}">&raquo; <a href= "${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" target="_blank">${prod.name}</a></c:if> </td></tr> </thead> <tr class="odd"> <td><div align="left"> <jsp:include page="/admin/product/createsetp${applicationScope.WEB_SUFFIX}"> <jsp:param name="step" value="2"/> </jsp:include> </div></td> </tr> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> 商品图片<font color="ff0000">*</font> <input type="file" name="file" id="file" size="30"/> <input type="hidden" name="productId" id="productId" value="${productId}"/><input type="submit" value="提交"> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/imgFile/query${applicationScope.WEB_SUFFIX}" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="文件"><a href="${pageContext.request.contextPath}/photoserver/photo/${item.filePath}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${item.filePath}" height="110px" width="150px"/></a> </display:column> <display:column title="文件类型" property="fileType"></display:column> <display:column title="文件大小" property="fileSize"></display:column> <display:column title="上传时间"><fmt:formatDate value="${item.upoadTime}" pattern="yyyy-MM-dd HH:mm" /></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="状态"> <option:optionGroup type="label" required="true" cache="true" beanName="ONOFF_STATUS" selectedValue="${item.status}" defaultDisp=""/> </display:column> <display:column title="Action" media="html" style="width:50px"> <auth:auth ifAnyGranted="F_OPERATOR"> <c:choose> <c:when test="${item.status == 1}"> <a href='javascript:imgFileOffline("${item.fileId}")'>下线</a> </c:when> <c:otherwise> <a href='javascript:imgFileOnline("${item.fileId}")'><font color="red">上线</font></a> </c:otherwise> </c:choose> <a href='javascript:deleteById("${item.fileId}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 点击选择,再点击提交则为商品增加一个图片,大小不能超过2M<br> 3. 支持上传的图片格式有<font color="red">.jpg,.gif,.png,.jpeg</font>,其余文件格式不支持<br> 2. 图片处于上线状态则会在商品的详细信息页面出现,处于下线状态则不会在页面上显示<br> 3. 图片删除则不会再显示<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/imgFile/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } function imgFileOnline(prodId) { if(confirm('确定商品图片上线?')){ CommonService.imgFileOnline(prodId, function(retData){ if(retData == null ){ alert("成功上线!") ; window.location.reload() ; }else{ alert("上线失败!") ; } }) ; } } function imgFileOffline(fileId) { if(confirm('确定商品图片下线?')){ CommonService.imgFileOffline(fileId, function(retData){ if(retData == null ){ alert("成功下线!") ; window.location.reload() ; }else{ alert("下线失败!") ; } }) ; } } $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { file: "required" }, messages: { file: { required: "请上传商品图片" } } }); }); highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/imgFile/imgFileList.jsp
Java Server Pages
oos
6,920
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>加盟商城列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}">加盟商城管理</a></td></tr> </thead> </table> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA">&nbsp;商城 <input type="text" name="userId" maxlength="50" value="${bean.userId}" /> </auth:auth> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" />加盟商城 <input type="text" name="friendId" maxlength="50" value="${bean.friendId}" /> <input type="submit" value="搜索"/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/myleague/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="加盟商城"> <a href="${pageContext.request.contextPath}/shop/${item.friendId}${applicationScope.WEB_SUFFIX}" target="_blank">${item.friendId}</a> </display:column> <display:column title="加盟商城说明" property="friendName"></display:column> <display:column title="显示顺序" property="displayOrder" sortable="true"></display:column> <display:column title="申请时间" property="addtime" sortable="true"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城" property="userId" sortable="true"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/myleague/load/${item.id}${applicationScope.WEB_SUFFIX}"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAllGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")'><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 加盟商城将会出现在您的商城的加盟商城页面,用于商城之间的导航和组成联盟关系<br> 2. 请在前台浏览商城时将你喜欢的商城加为加盟商城,没有任何限制<br> 3. 删除加盟商城之后将不会在前台显示<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/myleague/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/myleague/myleagueList.jsp
Java Server Pages
oos
4,603
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>${sessionScope.shopName} 加盟商城</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { displayOrder: "number" }, messages: { displayOrder: { number: "显示顺序必须为数字" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/myleague/update${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}">加盟商城管理</a> &raquo; 加盟商城</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 加盟商城 </div> </th> </tr> </thead> <tr style="display: none"> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${bean.userId}" /></p> </td> </tr> <tr> <td> <div align="right">加盟商城<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="friendId" id="friendId" value="${bean.friendId}" readonly="readonly"/></p> </td> </tr> <tr> <td> <div align="right">加盟商城名称</div> </td> <td> <p><input type="text" name="friendName" id="friendName" value="${bean.friendName}" /></p> </td> </tr> <tr> <td> <div align="right">显示顺序(数字,越小越靠前)</div> </td> <td> <p><input type="text" name="displayOrder" id="displayOrder" value="${bean.displayOrder}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="提交" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/myleague/myleague.jsp
Java Server Pages
oos
4,097
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建CashFlow</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="<ls:url address='/admin/cashFlow/save'/>" method="post" id="form1"> <input id="flowId" name="flowId" value="${cashFlow.flowId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建CashFlow </div> </th> </tr> </thead> <tr> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${cashFlow.userId}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${cashFlow.userName}" /></p> </td> </tr> <tr> <td> <div align="center">AdminId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="adminId" id="adminId" value="${cashFlow.adminId}" /></p> </td> </tr> <tr> <td> <div align="center">DetailId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="detailId" id="detailId" value="${cashFlow.detailId}" /></p> </td> </tr> <tr> <td> <div align="center">Detail: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="detail" id="detail" value="${cashFlow.detail}" /></p> </td> </tr> <tr> <td> <div align="center">Direction: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="direction" id="direction" value="${cashFlow.direction}" /></p> </td> </tr> <tr> <td> <div align="center">Money: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="money" id="money" value="${cashFlow.money}" /></p> </td> </tr> <tr> <td> <div align="center">Action: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="action" id="action" value="${cashFlow.action}" /></p> </td> </tr> <tr> <td> <div align="center">CreateTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="createTime" id="createTime" value="${cashFlow.createTime}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/cashFlow/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/cashFlow/cashFlow.jsp
Java Server Pages
oos
5,017
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>CashFlow列表</title> </head> <body> <form action="<ls:url address='/admin/cashFlow/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/cashFlow/query'/>">CashFlow</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${cashFlow.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建CashFlow" onclick='window.location="<ls:url address='/admin/cashFlow/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/cashFlow/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="FlowId" property="flowId"></display:column> <display:column title="UserId" property="userId"></display:column> <display:column title="UserName" property="userName"></display:column> <display:column title="AdminId" property="adminId"></display:column> <display:column title="DetailId" property="detailId"></display:column> <display:column title="Detail" property="detail"></display:column> <display:column title="Direction" property="direction"></display:column> <display:column title="Money" property="money"></display:column> <display:column title="Action" property="action"></display:column> <display:column title="CreateTime" property="createTime"></display:column> <display:column title="Action" media="html"> <a href="<ls:url address='/admin/cashFlow/load/${item.flowId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.flowId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/cashFlow/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/cashFlow/cashFlowList.jsp
Java Server Pages
oos
3,880
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.core.helper.RealPathUtil"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/top.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>LegendShop后台首页</title> </head> <body class="bodymargin"> <table class="${tableclass}" style="width: 100%;"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 首页管理</td></tr> </thead> </table> <div align="center"> <table style="border: 0px;"> <tr> <td> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 软件信息 </div> </th> </tr> </thead> <tr> <td width="150px"> 当前版本 </td> <td> LegendShop ${applicationScope.LEGENDSHOP_VERSION}, &nbsp; <c:choose> <c:when test="${applicationScope.LEGENDSHOP_VERSION == applicationScope.LEGENSHOP_LICENSE.newestVersion}"> 当前为最新版本 </c:when> <c:otherwise> <font color="#BD1205"> <c:if test="${applicationScope.LEGENSHOP_LICENSE.newestVersion != null}"> 最新版${applicationScope.LEGENSHOP_LICENSE.newestVersion} </c:if> <a href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}" target="_blank">更新系统</font></a> </c:otherwise> </c:choose> </td> </tr> <tr> <td> 官方网站 </td> <td> <a href="http://www.legendesign.net" target="_blank">http://www.legendesign.net</a> </td> </tr> <tr> <td> 交流论坛 </td> <td> <a href="http://www.legendesign.net/club" target="_blank">http://www.legendesign.net/club</a> </td> </tr> <auth:auth ifAllGranted="F_VIEW_ALL_DATA"> <tr> <td> 系统安装路径 </td> <td><%=PropertiesUtil.getSystemRealPath()%></td> </tr> <tr> <td> 图片安装路径 </td> <td><%=RealPathUtil.getBigPicRealPath()%></td> </tr> </auth:auth> <c:if test="${licenseDesc != null}"> <tr> <td> 软件说明 </td> <td style="color: #BD1205;"> 当前版本:${licenseDesc} <c:if test="${needUpgrade}"> <c:if test="${applicationScope.LEGENSHOP_LICENSE != null && applicationScope.LEGENSHOP_LICENSE.expireDate != null && '' != applicationScope.LEGENSHOP_LICENSE.expireDate}"> , 有效期至:${applicationScope.LEGENSHOP_LICENSE.expireDate} </c:if> <a href='javascript:openScript("${pageContext.request.contextPath}/admin/license/upgrade${applicationScope.WEB_SUFFIX}","320","150")'>[升级]</a> </c:if> </td> </tr> </c:if> </table> </td> </tr> <tr> <td> <table align="center" class="${tableclass}" id="col2" style="padding: 0px;width: 80%"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 商城信息 </div> </th> </tr> </thead> <c:choose> <c:when test="${userInfo.shopDetail != null}"> <tr> <td width="150px"> 当前商城名称 </td> <td> <c:choose> <c:when test="${userInfo.shopDetail.sitename != null}">${userInfo.shopDetail.sitename}</c:when> <c:otherwise> 您尚未设置商城信息,请<a href="${pageContext.request.contextPath}/admin/shopDetail/load/${userInfo.shopDetail.shopId}${applicationScope.WEB_SUFFIX}">&nbsp;设置</a> </c:otherwise> </c:choose> </td> </tr> <tr> <td> 当前商城地址 </td> <td> <c:choose> <c:when test="${userInfo.shopDetail.province == null or userInfo.shopDetail.city == null or userInfo.shopDetail.area == null}"> 您尚未设置商城信息,请<a href="${pageContext.request.contextPath}/admin/shopDetail/load/${userInfo.shopDetail.shopId}${applicationScope.WEB_SUFFIX}">&nbsp;设置</a> </c:when> <c:otherwise> ${userInfo.shopDetail.province}/${userInfo.shopDetail.city}/${userInfo.shopDetail.area} </c:otherwise> </c:choose> </td> </tr> <tr> <td> 未处理订单数 </td> <td> <c:choose> <c:when test="${userInfo.processingOrderNum == 0}">${userInfo.processingOrderNum}</c:when> <c:otherwise><font color="#BD1205;">${userInfo.processingOrderNum}</font></c:otherwise> </c:choose> &nbsp; <a href="${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}">[查看订单]</a> </td> </tr> <tr> <td> 未读消息 </td> <td> <c:choose> <c:when test="${userInfo.unReadMessageNum == 0}">${userInfo.unReadMessageNum}</c:when> <c:otherwise><font color="#BD1205;">${userInfo.unReadMessageNum}</font></c:otherwise> </c:choose> &nbsp; <a href="${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}?status=0">[查看消息]</a> </td> </tr> <tr> <td> 商品数量 </td> <td>${userInfo.shopDetail.productNum} (下线商品数量:${userInfo.shopDetail.offProductNum})&nbsp; <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">[查看商品]</a></td> </tr> <tr> <td> 新闻数量 </td> <td>${userInfo.articleNum} &nbsp; <a href="${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}">[查看新闻]</a></td> </tr> </c:when> <c:otherwise> <auth:auth ifAllGranted="F_VIEW_ALL_DATA"> <tr> <td width="150px"> 用户总数 </td> <td> ${userInfo.userTotalNum} &nbsp; <a href="${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}">[用户管理]</a> </td> </tr> <tr> <td> 商家总数 </td> <td> ${userInfo.shopTotalNum} &nbsp; <a href="${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}">[商城管理]</a> </td> </tr> </auth:auth> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <tr> <td colspan="2"> 你还没有开通商城 &nbsp; <a href="${pageContext.request.contextPath}/openShop${applicationScope.WEB_SUFFIX}">[点击开通]</a> </td> </tr> </auth:auth> </c:otherwise> </c:choose> </table> </td> </tr> <tr> <td> <table align="center" class="${tableclass}" style="border:0px;padding: 0px;width: 80%"> <tr class="sortable"> <td colspan="2" style="font-weight: bold;"> 快捷方式 </td> </tr> <tr> <td width="100px"> <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">商品管理</a> </td> <td> 增加,删除,修改商品。每个商品有若干固定属性、产品相关图片、相关产品等,另外还可以设置动态属性和动态参数 </td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}">商品类型管理</a> </td> <td> 分为3级分类,第一级分类需要上传一副图片用于展示,第三级分类下挂有商品品牌 </td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}">支付管理</a> </td> <td> 增加您的支付宝账户(支持即时到帐和担保支付),设置货到付款等 </td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}">首页图片管理</a> </td> <td> 首页中上部广告图片,文字均可以加上超链接 </td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/productcomment/query${applicationScope.WEB_SUFFIX}">评论管理</a> </td> <td>看看谁对你的商品评论了</td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}">浏览管理</a> </td> <td>看看谁浏览过你的商城和产品了,方便于做营销</td> </tr> <tr> <td> <a href="${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}">热门商品</a> </td> <td>设置热门商品,将会在一级分类页面中出现</td> </tr> <tr> <td></td> <td></td> </tr> </table> </td> </tr> </table> </div> <script language="javascript"> $(document).ready(function() { $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); $("#col2 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col2 th").addClass('sortable'); }); highlightTableRows("col1"); highlightTableRows("col2"); </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/dashboard/index.jsp
Java Server Pages
oos
11,545