12
end
13

14
function WmTabbarItem:doEndTag()
15
  self.htmlbuff:append('</div>')
16
end
17

18
return WmTabbarItem

+ 0 - 59
ipu-server/web/WEB-INF/classes/lua/tag/WmTest.lua

@ -1,59 +0,0 @@
1
monitor:debug("------------------------")
2
monitor:debug(tostring("10"+1))
3
monitor:debug(10 ..1)
4
monitor:debug(tostring(#"123456"));-- # 长度操作符
5

6
a={};--所有未初始化的元素的索引都是nil,Lua将nil作为界定数组结尾的标志
7
a["x"] = 123;
8
a[0] = 343;
9
a.y = "yyyy";
10
monitor:debug(tostring(a["x"]))
11
monitor:debug(tostring(a.y))
12
monitor:debug(tostring(a[0]))
13
monitor:debug(tostring(#a))--#用于返回一个数组和线性表的最后一个索引值(key值,不是value值,只考虑索引值为数字格式的值)
14
for i=1,10 do
15
	a[i]=tostring(i*2)
16
	monitor:debug(a[i])
17
end--Lua将全局变量存储在table中
18
monitor:debug(tostring(a[#a]))--打印最后一项值
19
a[#a] = nil --删除最后一个值
20
a[#a+1] = "hahha"--添加到列表末尾
21
monitor:debug(tostring(#a))--
22
monitor:debug(tostring(#a))
23
monitor:debug(tostring(#a))
24
a[100] = "aad"
25
monitor:debug(tostring(table.maxn(a)))--包含“空隙”的数组的最大索引数
26

27
--比较运算符 == ~=(不等于) < > >= <= 不同的类型必定不相等(区分JS)对于table userdata和函数是比较引用是否相等
28
--只能对两个数字或两个字符串进行比较,字符串以字符次序比较 2<15 true  "2"<"15" false
29
--and or not  not只返回true或false
30
monitor:debug(tostring(4 and 5))
31
monitor:debug(tostring(nil and 13))
32
monitor:debug(tostring(false and 13))
33
monitor:debug(tostring(4 or 5))
34
monitor:debug(tostring(false or 5))
35
--短路求值
36
x = x or "eee";
37
monitor:debug(x)
38

39
if type(a)=="table" and a[100] =="aad" then
40
	monitor:debug("----lalalalal---")
41
end
42
h = 5
43
i = 7
44
max = h > i and h or i 
45
monitor:debug(tostring(max))
46
monitor:debug("------------------------")
47
local Class = require("util.Class")
48
local Tag = require("engine.Tag")
49
local WmTest = Class(Tag)
50

51
function WmTest:doStartTag(attr)
52
  return "123456789"
53
end
54

55
function WmTest:doEndTag()
56
  return "987654321"
57
end
58

59
return WmTest

+ 0 - 10
ipu-server/web/WEB-INF/classes/memcache.properties

@ -1,10 +0,0 @@
1
#hashing_alg:native_hash,new_compat_hash,old_compat_hash,consistent_hash
2
#
3
#memcache.session_cache.hashing_alg=native_hash
4
#memcache.session_cache.init_conn=5
5
#memcache.session_cache.min_conn=5
6
#memcache.session_cache.max_conn=50
7
#memcache.session_cache.max_idle=60000
8
#memcache.session_cache.maint_sleep=30
9
memcache.SSN_CACHE.cluster=192.168.128.77:10001
10


BIN
ipu-server/web/WEB-INF/classes/private_key


+ 0 - 32
ipu-server/web/WEB-INF/classes/server-config.xml

@ -1,32 +0,0 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<configs>
3
	<config name="name" value="IpuServer"/>
4
	<config name="productMode" value="false"/>
5
	<!-- 服务端资源版本号 -->
6
	<config name="resourceVersion" value="1.0"/>
7
	<!-- 客户端版本号 -->
8
	<config name="clientVersion" value="1.0"/>
9
	<!-- 客户端是否强制更新 -->
10
	<config name="isForceUpdate" value="true"/>
11
	<!-- 服务端应用编码 -->
12
	<config name="encode" value="UTF-8"/>
13
	<!-- 缓存类型,目前支持mem和jvm -->
14
	<config name="cache" value="jvm"/>
15
	<!-- 初始页 -->
16
	<config name="indexPage" value="Index"/>
17
	<!-- 文件是否加密 -->
18
	<config name="fileEncrypt" value="false"/>
19
	<!-- 自定义异常管理器 -->	
20
	<config name="exceptionHandler" value="com.ipu.server.core.handle.IpuExceptionHandler"/>
21
	<!-- 自定义Session管理器 -->
22
	<config name="sessionManager" value="com.ipu.server.core.session.IpuSessionManager"/>
23
	<!-- 自定义安全管理器 -->
24
	<config name="securityHandler" value="com.ipu.server.core.handle.IpuSecurityHandler"/>
25
	<!-- 是否运行标签引擎 -->
26
	<config name="isUseTag" value="true"/>
27
</configs>
28

29

30

31

32


+ 0 - 22
ipu-server/web/WEB-INF/classes/server-data.xml

@ -1,22 +0,0 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE datas [
3
  <!ENTITY component.data SYSTEM "classpath:server-data-comp.xml">
4
]>
5
<datas>
6
    <action name="Login.init" class="com.ipu.server.bean.Login" method="init" verify="false" encrypt="true"></action>
7
    <action name="Login.test" class="com.ipu.server.bean.Login" method="test" verify="false" encrypt="true"></action>
8
    <action name="Login.refreshVerifyCode" class="com.ipu.server.bean.Login" method="refreshVerifyCode" verify="false" encrypt="true"></action>
9
    <action name="Login.doLogin" class="com.ipu.server.bean.Login" method="doLogin" verify="false" encrypt="true"></action>
10
    <action name="Index.getMenuData" class="com.ipu.server.bean.Index" method="getMenuData" verify="false"></action>
11
    
12
    <action name="Business.getData" class="com.ipu.server.bean.Business" method="getData" verify="true" encrypt="true"></action>
13
    <action name="IpuMemberInfo.selectInfos" class="com.ipu.server.bean.IpuMemberInfo" method="selectInfos" verify="false" encrypt="true"></action>
14
    <action name="IpuMemberInfo.updateInfos" class="com.ipu.server.bean.IpuMemberInfo" method="updateInfos" verify="false" encrypt="true"></action>
15
    <action name="IpuMemberInfo.insertInfos" class="com.ipu.server.bean.IpuMemberInfo" method="insertInfos" verify="false" encrypt="true"></action>
16
    <action name="IpuMemberInfo.deleteInfos" class="com.ipu.server.bean.IpuMemberInfo" method="deleteInfos" verify="false" encrypt="true"></action>
17
    <action name="IpuTest.selectInfos" class="com.ipu.server.bean.IpuTest" method="selectInfos" verify="false" encrypt="true"></action>
18
    <action name="IpuTest.updateInfos" class="com.ipu.server.bean.IpuTest" method="updateInfos" verify="false" encrypt="true"></action>
19
    <action name="IpuTest.saveInfos" class="com.ipu.server.bean.IpuTest" method="saveInfos" verify="false" encrypt="true"></action>
20
    <action name="IpuTest.insertInfos" class="com.ipu.server.bean.IpuTest" method="insertInfos" verify="false" encrypt="true"></action>
21
    <action name="IpuTest.deleteInfos" class="com.ipu.server.bean.IpuTest" method="deleteInfos" verify="false" encrypt="true"></action>
22
</datas>

+ 0 - 49
ipu-server/web/WEB-INF/classes/server-page.xml

@ -1,49 +0,0 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<pages>
3
    <!-- 首页 -->
4
    <action name="Index" template="template/webapp/ipu/Index.html" data="Index.getMenuData" ></action>
5
    <!-- 用户登录 -->
6
    <action name="Login" template="template/webapp/ipu/Login.html" data="Login.init" ></action>
7
    <action name="SessionErr" template="template/webapp/ipu/SessionErr.html"></action> 
8
    <!-- 业务办理 -->
9
    <action name="Business" template="template/webapp/ipu/Business.html" data="Business.getData" ></action>
10
    <action name="BusinessStep1" template="template/webapp/ipu/BusinessStep1.html"></action>
11
    <action name="BusinessStep2" template="template/webapp/ipu/BusinessStep2.html"></action>
12
    <!-- 营业厅查询 -->
13
    <action name="Query" template="template/webapp/ipu/Query.html"></action>
14
	<!-- 快速分享 -->
15
    <action name="Share" template="template/webapp/ipu/Share.html"></action>
16
    <!-- 正在建设中 -->
17
    <action name="Building" template="template/webapp/ipu/Building.html"></action>
18
    <!-- 成员查询 -->
19
    <action name="IpuMemberInfo" template="template/webapp/ipu/IpuMemberInfo.html" data="IpuMemberInfo.selectInfos" ></action>
20
     <action name="IpuTest" template="template/webapp/ipu/IpuTest.html" data="IpuTest.selectInfos" ></action>
21
    <!-- 统计分析  -->
22
    <action name="Analysis" template="template/webapp/ipu/Analysis.html" ></action>
23
    <action name="HighchartsColumnBasic" template="template/webapp/ipu/HighchartsColumnBasic.html"></action>
24
    <action name="HighchartsColumnDrilldown" template="template/webapp/ipu/HighchartsColumnDrilldown.html"></action>
25
    <action name="HighchartsPieBasic" template="template/webapp/ipu/HighchartsPieBasic.html"></action>
26
    <action name="HighchartsPieBasic_3d" template="template/webapp/ipu/HighchartsPieBasic_3d.html"></action>
27
    <action name="HighchartsPie3d" template="template/webapp/ipu/HighchartsPie3d.html"></action>
28
    <action name="IChartAnimationPie3d01" template="template/webapp/ipu/IChartAnimationPie3d01.html"></action>
29
    <action name="IChartBar2d01" template="template/webapp/ipu/IChartBar2d01.html"></action>
30
    <action name="IChartColumn3d01" template="template/webapp/ipu/IChartColumn3d01.html"></action>
31
    <action name="IChartPie2d01" template="template/webapp/ipu/IChartPie2d01.html"></action>
32
    <!-- Tag组件 -->
33
    <action name="Tag" template="template/webapp/ipu/Tag.html"></action>
34
    <action name="WmTab" template="template/webapp/ipu/WmTab.html"></action>
35
    <action name="WmTabbar" template="template/webapp/ipu/WmTabbar.html"></action>
36
    <!-- Swiper -->
37
    <action name="Swiper" template="template/webapp/ipu/Swiper.html"></action>
38
    <action name="SwiperDynamicSlides" template="template/webapp/ipu/SwiperDynamicSlides.html"></action>
39
    <action name="SwiperHorizontalMode" template="template/webapp/ipu/SwiperHorizontalMode.html"></action>
40
     <action name="SwiperVerticalMode" template="template/webapp/ipu/SwiperVerticalMode.html"></action>
41
     <action name="Push" template="template/webapp/ipu/Push.html"></action>
42
 	 <action name="OnlineList" template="template/webapp/ipu/OnlineList.html"></action>
43
 	 <action name="Chat" template="template/webapp/ipu/Chat.html"></action>
44
     
45
     <!-- test -->
46
     <action name="TestTemplate" template="template/webapp/ipu/TestTemplate.html"></action>
47
     <action name="Test" template="template/webapp/ipu/Test.html"></action>
48
     <action name="TestOpenTemplate" template="template/webapp/ipu/TestOpenTemplate.html"></action>
49
</pages>

android-share - Nuosi Git Service

ipu的trunk版的android工程和服务端工程。