当前位置: 首页 > news >正文

企业网站模板大全增城营销网站建设

企业网站模板大全,增城营销网站建设,平台网站的策划设计,wordpress 作者 英文摘要#xff1a;最近项目中用到了jquery#xff0c;ajax#xff0c;由于很长时间没用了#xff0c;所以这次做花了很多时间#xff0c;现在记录一下#xff0c;方便以后回忆#xff1a; 一#xff1a;js文件#xff1a; script typetext/javascript最近项目中用到了jqueryajax由于很长时间没用了所以这次做花了很多时间现在记录一下方便以后回忆 一js文件 script typetext/javascript// 进出港显示字段权限分配function jingchugang(){var tableName $(input:radio:checked).val();$.ajax({type:POST,url:s:url value/u/showFieldSet/,data:tableNametableName,dataType:json,success:function(dataMap){var fieldList dataMap.fieldList;if(fieldList ! null fieldList.length 0){//var start select idselectL nameselectL multiplemultiple;//var str ;for(var i 0; i fieldList.length; i){//str trtdinput typecheckbox idfieldName namefieldName/fieldList[i].fieldNametd/tr;//str option valuefieldList[i].idfieldList[i].fieldName/option;$(option valuefieldList[i].idfieldList[i].fieldName/option).appendTo(#selectL);}//var end /select;//$(str).appendTo(#selectL);}},});} /script 二jsp文件 tr classeventddiv classselect_sidep待选区/pselect idselectL nameselectL multiplemultiple/select/divdiv classselect_optp idtoright title添加/pp idtoleft title移除/p/divdiv classselect_sidep已选区/pselect idselectR nameselectR multiplemultiple/select/divdiv classsub_btninput typebutton idsub valuegetValue //div/td/tr 三最后我把这个页面附上 % page languagejava contentTypetext/html; charsetUTF-8pageEncodingUTF-8% % include file../../common/include_tag.jsp% % include file../../common/page_var.jsp% !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlnshttp://www.w3.org/1999/xhtml head meta http-equivContent-Type contenttext/html; charsetutf-8 / title%pageTitle%/title link hrefs:url value/images/favicon.ico/ relshortcut icontypeimage/x-icon / % include file../../common/page_head.jsp% script typetext/javascript$(function() {pilicat.title2div(title2div);pilicat.keysubmit(form1, submit, true);}); /script script typetext/javascript $(function(){var leftSel $(#selectL);var rightSel $(#selectR);$(#toright).bind(click,function(){ leftSel.find(option:selected).each(function(){$(this).remove().appendTo(rightSel);});});$(#toleft).bind(click,function(){ rightSel.find(option:selected).each(function(){$(this).remove().appendTo(leftSel);});});leftSel.dblclick(function(){$(this).find(option:selected).each(function(){$(this).remove().appendTo(rightSel);});});rightSel.dblclick(function(){$(this).find(option:selected).each(function(){$(this).remove().appendTo(leftSel);});});$(#sub).click(function(){var showFields [];rightSel.find(option).each(function(){showFields.push(this.value);});showFields showFields.join(,);if(showFields ){alert(没有选择任何项);}else{alert(showFields);}});}); /script script typetext/javascript// 进出港显示字段权限分配function jingchugang(){var tableName $(input:radio:checked).val();$.ajax({type:POST,url:s:url value/u/showFieldSet/,data:tableNametableName,dataType:json,success:function(dataMap){var fieldList dataMap.fieldList;if(fieldList ! null fieldList.length 0){//var start select idselectL nameselectL multiplemultiple;//var str ;for(var i 0; i fieldList.length; i){//str trtdinput typecheckbox idfieldName namefieldName/fieldList[i].fieldNametd/tr;//str option valuefieldList[i].idfieldList[i].fieldName/option;$(option valuefieldList[i].idfieldList[i].fieldName/option).appendTo(#selectL);}//var end /select;//$(str).appendTo(#selectL);}},});} /script script typetext/javascript$(document).ready(function() {$(#form1).ajaxForm({dataType : json,beforeSubmit : checkForm,success : afterPost});});function checkForm(formData, jqForm, options) {alert(formData);}function afterPost(responseText, statusText, xhr, $form) {if (responseText.resultStatus true) {parent.$.jBox.tip(保存成功请刷新查看结果, success, {timeout : 2000});parent.$.jBox.close(true);} else {$.jBox.error(保存失败, 失败信息);}}function submitForm() {getSelectAll();} /script style typetext/css .update {margin: 0 auto;padding: 0;width: 98%; }.update td {margin: 0;height: 30px;padding: 5px; }.update .name {text-align: right; }.title_div {width: 350px; }body {background: url(s:url value/images/gray_bg.png/) 0 0 repeat-y#F6F6F6; } /style style typetext/css .select_side {float: left;width: 200px }select {width: 180px;height: 120px }.select_opt {float: left;width: 40px;height: 100%;margin-top: 36px }.select_opt p {width: 26px;height: 26px;margin-top: 6px;background: url(s:url value/images/arr.gif/) no-repeat;cursor: pointer;text-indent: -999em }.select_opt p#toright {background-position: 2px 0 }.select_opt p#toleft {background-position: 2px -22px } /style /head bodydiv classrounded tabletable width100% cellpadding0 cellspacing0 border0 classbox_toptbodytrtd classtitle/tdtd/td/tr/tbody/tablediv classerror rounded top_error hideol/olspan/span/divform:form idform1 commandNameroleInfo action${pageContext.request.contextPath}/u/saveRoleShowField methodposttable classupdate cellpadding0 cellspacing1 border0tbodytr classeventd角色名称 ${roleInfo.roleName }input typehidden nameid value${roleInfo.id} /input typehidden nameshowFields value${showFields} //td/trtr classeventd航班类型c:forEach items${tableNameList} vartableNamec:if test${tableName TB_CMS_FLGTINFO_D}input typeradio classradio nametableName idTB_CMS_FLGTINFO_D value${tableName } οnclickjingchugang(${tableName}); /出港列表/c:ifc:if test${tableName TB_CMS_FLGTINFO_A}input typeradio classradio nametableName idTB_CMS_FLGTINFO_A value${tableName } οnclickjingchugang(${tableName});/进港列表/c:if/c:forEach/td/trtr classeventd赋予的显示字段列表/td/tr!-- tr classeventddiv idmenuTree/div/td/tr --tr classeventddiv classselect_sidep待选区/pselect idselectL nameselectL multiplemultiple/select/divdiv classselect_optp idtoright title添加/pp idtoleft title移除/p/divdiv classselect_sidep已选区/pselect idselectR nameselectR multiplemultiple/select/divdiv classsub_btninput typebutton idsub valuegetValue //div/td/tr%-- tr classeventd赋予的显示字段列表/td/trtr classeventdform:checkboxes items${roleShowEntities } pathshowFields itemLabelfieldName itemValueid delimiter//td/tr --%/tbody/tabletable classtable top_linetbodytrtd aligncenter height60a idsubmit classsubmithrefjavascript:; οnclicksubmitForm();保存/a/td/tr/tbody/table/form:form/div /body /html
http://www.pierceye.com/news/76329/

相关文章:

  • 网站安全建设目的是什么网上申报办税系统
  • 新的网站怎么推广网络营销的特点包括超前性
  • 自己公司怎么做网站月流量10g的网站
  • 自己做网站怎么优化株洲在线论坛伴你生活每一天
  • asp网站知道用户名是admin怎样用电脑ip做网站
  • 怎么免费建商城网站吗紫金公司网站制作
  • 西宁市城中区建设局网站sspai 少数派wordpress
  • 南县网站建设推荐短视频营销推广方案
  • 郑州服装网站建设顺德官网建设
  • 门户网站建设自评报告权重较高网站
  • 做导购网站用什么样的主机做外贸重新设计网站
  • 国土 住房与城乡建设部网站兰州网络推广方向
  • wordpress网站统计插件下载广东公共广告20120708
  • 做网站主要注意些什么问题吉林省建设信息网官网
  • dw做的网站如何用手机看网站建设 方案书
  • 备案的网站 ,能拿来做仿站吗html网页设计期末考试
  • 网站怎么做评估flash网页模板
  • 网站建设技术jsp课程设计企业宣传网站建设需求说明书
  • 招商网站有哪些工业产品设计软件
  • php网站开发基础教程网站解决方案
  • 北京 做网站南昌新力中心 nanchang sinic center
  • 华云电力建设监理公司网站网络空间搜索引擎
  • 做瞹免费视频网站前端微信小程序开发
  • 西安高新网站制作手机如何自己编程做游戏
  • 网站建设中备案网站域名等级
  • 免费网站空间和域名义乌外贸论坛
  • 千灯做网站悦然外贸建站
  • 大丰区城乡和住房建设局网站wordpress页头铺不满
  • 免费手机端网站模板下载工具优化防疫政策
  • 西安网站seo优化公司广西城乡建设部网站首页