Anthony

brand 模块化

1 -<%@ page language="java" contentType="text/html; charset=utf-8" 1 + <%@ page language="java" contentType="text/html; charset=utf-8"
2 - pageEncoding="utf-8"%> 2 + pageEncoding="utf-8"%>
3 -<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 + <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 -<%@ page isELIgnored ="false" %> 4 + <%@ page isELIgnored ="false" %>
5 -<% 5 + <%
6 -String path = request.getContextPath(); 6 + String path = request.getContextPath();
7 -String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
8 -%> 8 + %>
9 -<script type="text/javascript"> 9 + <script type="text/javascript">
10 -var sessionId = "<%=request.getSession().getId()%>"; 10 + var sessionId = "<%=request.getSession().getId()%>";
11 -var rootUrl ="<%=basePath%>"; 11 + var rootUrl ="<%=basePath%>";
12 -</script> 12 + </script>
13 13
14 -<style> 14 + <style>
15 -.importButton { 15 + .importButton {
16 - background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important; 16 + background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important;
17 - height: 30px; 17 + height: 30px;
18 - min-width: 70px; 18 + min-width: 70px;
19 - padding: 0 5px; 19 + padding: 0 5px;
20 -} 20 + }
21 21
22 -#btn-brand-import{ 22 + #btn-brand-import{
23 - float: left; 23 + float: left;
24 -} 24 + }
25 -#btn-brand-import .uploadify-queue{ 25 + #btn-brand-import .uploadify-queue{
26 - display: inline-block; 26 + display: inline-block;
27 -} 27 + }
28 -</style> 28 + </style>
29 29
30 -<!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) -->
31 -<div class="data-brand">
32 - <div class="north rs-navi" data-options="region:'north',border:false">
33 - <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">主数据 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">商品 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">经营品牌</a>
34 - </div>
35 - <div class="center" data-options="region:'center',border:false">
36 - <div class="data-brand-table"></div>
37 - </div>
38 - <div class="data-brand-dialog hide public">
39 - <form class="addForm fm form" method="post">
40 - <div class="report clearfix">
41 - <div class="labels"><span class="base-red">*</span><span class="name"></span></div>
42 - <div class="split">:</div>
43 - <div class="input fl">
44 - <input name="name" class="textbox-prompt" maxlength="20"/>
45 - <input type="hidden" name="id"/>
46 - </div>
47 - </div>
48 - <div class="report clearfix">
49 - <div class="labels desc"></div>
50 - <div class="split">:</div>
51 - <div class="input fl"><input name="desc" maxlength="200"/></div>
52 - </div>
53 - <div class="report clearfix">
54 - <div class="labels"><span class="base-red">*</span><span class="code"></span></div>
55 - <div class="split">:</div>
56 - <div class="input fl"><input name="code"/></div>
57 - </div>
58 - <div class="report clearfix">
59 - <div class="labels valid"></div>
60 - <div class="split">:</div>
61 - <div class="input fl"><select name="valid"></select></div>
62 - </div>
63 - </form>
64 - </div>
65 -</div>
66 -<script type="text/javascript">
67 - require(["brand/index"],function(fn){
68 - fn(sessionId,rootUrl);});
69 -</script>
...\ No newline at end of file ...\ No newline at end of file
30 + <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) -->
31 + <div class="data-brand">
32 + <div class="north rs-navi" data-options="region:'north',border:false">
33 + <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">主数据 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">商品 </a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">经营品牌</a>
34 + </div>
35 + <div class="center" data-options="region:'center',border:false">
36 + <div class="data-brand-table"></div>
37 + </div>
38 + <div class="data-brand-dialog hide public">
39 + <form class="addForm fm form" method="post">
40 + <div class="report clearfix">
41 + <div class="labels"><span class="base-red">*</span><span class="name"></span></div>
42 + <div class="split">:</div>
43 + <div class="input fl">
44 + <input name="name" class="textbox-prompt" maxlength="20"/>
45 + <input type="hidden" name="id"/>
46 + </div>
47 + </div>
48 + <div class="report clearfix">
49 + <div class="labels desc"></div>
50 + <div class="split">:</div>
51 + <div class="input fl"><input name="desc" maxlength="200"/></div>
52 + </div>
53 + <div class="report clearfix">
54 + <div class="labels"><span class="base-red">*</span><span class="code"></span></div>
55 + <div class="split">:</div>
56 + <div class="input fl"><input name="code"/></div>
57 + </div>
58 + <div class="report clearfix">
59 + <div class="labels valid"></div>
60 + <div class="split">:</div>
61 + <div class="input fl"><select name="valid"></select></div>
62 + </div>
63 + </form>
64 + </div>
65 + </div>
66 + <script type="text/javascript">
67 + require(["brand/index"],function(fn){
68 + fn.init(sessionId,rootUrl);});
69 + </script>
...\ No newline at end of file ...\ No newline at end of file
......