-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1515 lines (1450 loc) · 60.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PageBuilder</title>
<link href="css/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
<link href="css/jquery.filterselector.css?v=201301061400" rel="stylesheet" />
<link href="css/jquery.box.css?v=201301061400" rel="stylesheet" />
<link href="js/ext/mCustomScrollbar/jquery.mCustomScrollbar.css" rel="stylesheet">
<link href="js/ext/fileuploader/fileuploader.min.css" rel="stylesheet" />
<link href="css/app.css?v=201307191840" rel="stylesheet" />
</head>
<body class="grid design">
<div id="header">
<div class="h-t">
<div class="h-l l">
<a href="javascript:void(0);" class="btn btn-blue btn-pageinfo">
<div class="l"></div>
<div class="l-c"><div class="h-icon h-icon-pageinfo"></div><span>页面信息</span></div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="btn btn-green btn-publish">
<div class="l"></div>
<div class="l-c"><div class="h-icon h-icon-publish"></div><span>完成</span></div>
<div class="r"></div>
</a>
</div>
<div class="h-l-c l-c">
<!--a href="javascript:void(0);" class="btn btn-screen on" title="全屏"><div class="h-icon h-icon-screen on"></div></a-->
<a href="javascript:void(0);" class="btn btn-undo off" title="撤销"><div class="h-icon h-icon-undo off"></div></a>
<a href="javascript:void(0);" class="btn btn-redo off" title="重做"><div class="h-icon h-icon-redo off"></div></a>
<a href="javascript:void(0);" class="btn btn-save on" title="保存"><div class="h-icon h-icon-save on"></div></a>
</div>
<div class="h-r r">
<select id="sel-device-size" style="display:none;" autocomplete="off">
<option value="_240x320">240*320</option>
<option value="_320x480" selected="selected">320*480</option>
<option value="_480x800">480*800</option>
<option value="_600x1024">600*1024</option>
<option value="_640x960">640*960</option>
<option value="_640x1136">640*1136</option>
<option value="_720x1280">720*1280</option>
<option value="_768x1024">768*1024</option>
<option value="_800x1280">800*1280</option>
</select>
<div class="h-split-line"></div>
<a href="javascript:void(0);" class="btn-direct"><div class="h-icon h-icon-direct"></div></a>
<div class="h-split-line"></div>
<a href="javascript:void(0);" class="btn-design"><div class="h-icon h-icon-design"></div></a>
</div>
</div>
</div>
<div id="b">
<div id="b-l">
<div id="b-l-c">
<!-- 页面元素容器 -->
<div id="userview-page" class="userview">
<div class="b-h">
<span class="b-icon b-icon-expand selected"></span>
页面列表
<a href="javascript:void(0);" class="newpage" title="新增页面"><div class="b-icon b-icon-newpage"></div></a>
</div>
<div class="b-c"></div>
</div>
<!-- 控件容器 -->
<div id="userview-control" class="userview">
<div class="b-h">
<span class="b-icon b-icon-expand"></span>
控件库
</div>
<div class="b-c"></div>
</div>
<!-- 模板库 -->
<div id="userview-material" class="userview">
<div class="b-h">
<span class="b-icon b-icon-expand"></span>
模板库
</div>
<div class="b-c"></div>
</div>
</div>
</div>
<div id="b-r" class="clearfix">
<div id="b-r-c">
<div id="phone" class="clearfix design">
<div class="device portrait" style="">
<div class="t clearfix" style="width: 406px;">
<div class="l"></div>
<div class="l-c" style="width: 206px;"></div>
<div class="r"></div>
</div>
<div class="m clearfix" style="width: 406px;">
<div class="l" style="height: 384px;"></div>
<div class="l-c" style="width: 320px; height: 480px;">
<div id="phone-drop" class="sized droptarget empty ui-droppable" style="width: 320px; height: 480px;"> </div>
<div class="content sized" style="width: 320px; height: 480px;">
<iframe id="mobile-frame" src="device.html?v=20130107151606"></iframe>
</div>
</div>
<div class="r" style="height: 384px;"></div>
</div>
<div class="b clearfix" style="width: 406px;">
<div class="l"></div>
<div class="l-c" style="width: 206px;"></div>
<div class="r"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 页面信息弹窗 -->
<div id="pageinfo-dialog" class="form-dialog hidden">
<div class="c">
<ul>
<li>
<div class="col1">*页面名称:</div>
<div><input type="text" id="templateName" autocomplete="off"/></div>
</li>
<li>
<div class="col1 vtop">备注:</div>
<div><textarea id="templateRemark" autocomplete="off" maxlength="255"></textarea></div>
</li>
</ul>
</div>
<div class="b">
<div class="l error-tip"></div>
<div class="r">
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">确定</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">取消</div>
<div class="r"></div>
</a>
</div>
</div>
</div>
<!-- 新增页面弹出窗 -->
<div id="newpage-dialog" class="form-dialog hidden">
<div class="c">
<ul>
<li>
<div class="col1">页面名称:</div>
<div><input type="text" name="txt_pagename" class="pn"/></div>
</li>
</ul>
</div>
<div class="b">
<div class="l error-tip"></div>
<div class="r">
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">确定</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">取消</div>
<div class="r"></div>
</a>
</div>
</div>
</div>
<!-- 共享模板页弹出窗 -->
<div id="sharepage-dialog" class="form-dialog hidden">
<div class="c">
<ul>
<li>
<div class="col1">页面名称:</div>
<div><input type="text" name="txt_pagename" class="pn"/></div>
</li>
</ul>
</div>
<div class="b">
<div class="l error-tip"></div>
<div class="r">
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">确定</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="btn btn-blue">
<div class="l"></div>
<div class="l-c">取消</div>
<div class="r"></div>
</a>
</div>
</div>
</div>
<!-- 控件属性容器 -->
<div id="property-dialog">
<div id="userview-property"><div id="userview-property-content"></div></div>
</div>
<div id="msgBox" class="hidden">
提示:为得到更好的用户体验,建议您使用 <a href="http://firefox.com.cn/download/" target="_brank">firefox</a> 或 <a href="https://www.google.com/intl/zh-CN/chrome/browser/" target="_brank">google chrome</a> 浏览器。
</div>
<!-- templates begin-->
<script id="template-html" type="text/x-handlebars-template">
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{title}}</title>
<link href="jquery.mobile-1.3.0.min.css" rel="stylesheet" />
<link href="my.css?v=201303281610" rel="stylesheet" />
<script src="jquery-1.7.2.min.js"></script>
<script src="jquery.mobile-1.3.0.min.js"></script>
<script src="my.js?v=201301061400"></script>
</head>
<body>{{{body}}}</body>
</html>
</script>
<!-- userview -->
<script id="template-ui-pageview" type="text/x-handlebars-template">
<div class="b-h">
<span class="b-icon b-icon-expand selected"></span>
页面列表
<a href="javascript:void(0);" class="newpage" title="新增页面"><div class="b-icon b-icon-newpage"></div></a>
</div>
<div class="b-c">
<ul class="item-list">
<li>
<ul>
{{#each pages}}
<li class="item page" data-cid="{{_id}}">
<a href="javascript:void(0);">
<div class="b-icon b-icon-expand"></div><div class="b-icon b-icon-page"></div><span>{{#ifemptystring title.value}}{{_id}}{{else}}{{title.value}}{{/ifemptystring}}</span>
</a>
<div class="button-container hidden">
<a href="javascript:void(0);" class="button green share">
<div class="l"></div>
<div class="l-c">共享</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="button green duplicate">
<div class="l"></div>
<div class="l-c">复制</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="button red delete">
<div class="l"></div>
<div class="l-c">删除</div>
<div class="r"></div>
</a>
</div>
</li>
{{#each nodes}}
<li class="item control" data-cid="{{_id}}">
<a href="javascript:void(0);"><div class="b-icon b-icon-node"></div>{{#ifemptystring title.value}}{{_id}}{{else}}{{title.value}}{{/ifemptystring}}</a>
<div class="button-container hidden">
<a href="javascript:void(0);" class="button green duplicate">
<div class="l"></div>
<div class="l-c">复制</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="button red delete">
<div class="l"></div>
<div class="l-c">删除</div>
<div class="r"></div>
</a>
</div>
</li>
{{/each}}
{{/each}}
</ul>
</li>
</ul>
</div>
</script>
<!-- 控件模板 -->
<script id="template-ui-controlview" type="text/x-handlebars-template">
<div class="b-h">
<span class="b-icon b-icon-expand"></span>
控件库
</div>
<div class="b-c">
<div class="widget-tabs">
<ul>
<li>
<a class="l button active" href="#cat-all" data-category="ALL">
<div class="l"></div>
<div class="l-c">
全部
</div>
<div class="r"></div>
</a>
</li>
{{#each categories}}
<li>
<a class="l button" href="#cat-{{id}}" data-category="{{id}}">
<div class="l"></div>
<div class="l-c">
{{name}}
</div>
<div class="r"></div>
</a>
</li>
{{/each}}
</ul>
</div>
<div class="widget-list-content">
<ul class="icon-list">
{{#each categories}}
{{#each controls}}
<li data-category="{{../id}}" data-cid="{{controlType}}">
<div cid="{{controlType}}" class="jqm-icon jqm-icon-{{controlType}}">
</div>
<div class="label">
{{_name}}
</div>
</li>
{{/each}}
{{/each}}
</ul>
</div>
</div>
</script>
<!-- 模板库 -->
<script id="template-ui-materialview" type="text/x-handlebars-template">
<div class="b-h">
<span class="b-icon b-icon-expand"></span>
模板库
</div>
<div class="b-c">
<div class="widget-tabs">
<ul>
<li>
<a class="l button active" href="javascript:void(0);">
<div class="l"></div>
<div class="l-c">
系统模板
</div>
<div class="r"></div>
</a>
</li>
<li>
<a class="l button" href="javascript:void(0);">
<div class="l"></div>
<div class="l-c">
用户模板
</div>
<div class="r"></div>
</a>
</li>
</ul>
</div>
<ul class="item-list">
<li>
<ul>
{{#each tpls}}
<li class="item tpl" data-cid="{{id}}">
<a href="javascript:void(0);">
<div class="b-icon b-icon-page"></div>{{title}}
</a>
<div class="button-container hidden">
<a href="javascript:void(0);" class="button green insert">
<div class="l"></div>
<div class="l-c">添加</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="button green insert" insert-default="true">
<div class="l"></div>
<div class="l-c">添加到首页</div>
<div class="r"></div>
</a>
</div>
</li>
{{/each}}
</ul>
</li>
</ul>
<ul class="item-list hidden">
<li>
<ul>
{{#each pages}}
<li class="item page" data-pubId="{{pbpgtemp_id}}" data-lgnid="{{lgnId}}" data-cid="{{pbpgtemp_jsoncode.id}}">
<a href="javascript:void(0);">
<div class="b-icon b-icon-page"></div>{{pbpgtemp_jsoncode.properties.title}}
</a>
<div class="button-container hidden">
<a href="javascript:void(0);" class="button green insert">
<div class="l"></div>
<div class="l-c">添加</div>
<div class="r"></div>
</a>
<a href="javascript:void(0);" class="button green insert" insert-default="true">
<div class="l"></div>
<div class="l-c">添加到首页</div>
<div class="r"></div>
</a>
<a href="#" class="button red delete_tpl">
<div class="l"></div>
<div class="l-c">删除</div>
<div class="r"></div>
</a>
</div>
</li>
{{/each}}
</ul>
</li>
</ul>
</div>
</script>
<!-- controls -->
<!-- app容器 -->
<script id="template-control-app" type="text/x-handlebars-template">
<div></div>
</script>
<!-- 页面容器 -->
<script id="template-control-page" type="text/x-handlebars-template">
<div data-role="page" {{#property theme}}data-theme="{{theme.property.value}}"{{/property}} id="{{__control._id}}"></div>
</script>
<!-- 文本标题 h1-h6 -->
<script id="template-control-heading" type="text/x-handlebars-template">
<h{{{ size.property.value }}} style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">{{ text.property.value }}</h{{ size.property.value }}>
</script>
<!-- 页面头部 -->
<script id="template-control-pageheader" type="text/x-handlebars-template">
<div data-theme="{{theme.property.value}}" data-role="header" {{#property isFixed}}data-position="{{isFixed.property.value}}"{{/property}}>
{{#ifequal noHeading.property.value "true"}}
<span class="ui-title" />
{{/ifequal}}
</div>
</script>
<!-- 页面内容 -->
<script id="template-control-pagecontent" type="text/x-handlebars-template">
<div data-role="content" style="padding-top:{{__control.parentControl.contentPadding.value.top}}px; padding-right:{{__control.parentControl.contentPadding.value.right}}px; padding-bottom:{{__control.parentControl.contentPadding.value.bottom}}px; padding-left:{{__control.parentControl.contentPadding.value.left}}px; "></div>
</script>
<!-- 页面底部 -->
<script id="template-control-pagefooter" type="text/x-handlebars-template">
<div data-theme="{{theme.property.value}}" data-role="footer" {{#property isFixed}}data-position="{{isFixed.property.value}}"{{/property}}>
{{#ifequal noHeading.property.value "true"}}
<span class="ui-title" />
{{/ifequal}}
</div>
</script>
<!-- 导航 -->
<script id="template-control-navbar" type="text/x-handlebars-template">
<div data-role="navbar" data-iconpos="{{iconPos.property.value.align}}" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<ul>
{{#each items.property.value}}
<li><a href="{{url}}" data-theme="{{theme}}" data-icon="{{icon}}" {{#if isActive}}class="ui-btn-active ui-state-persist"{{/if}}>{{text}}</a></li>
{{/each}}
</ul>
</div>
</script>
<!-- 列表 -->
<script id="template-control-listview" type="text/x-handlebars-template">
<ul data-role="listview" data-divider-theme="{{dividerTheme.property.value}}" data-inset="{{displayInset.property.value}}" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
{{#ifequal isReadOnly.property.value "true"}}
{{#each items.property.value}}
{{#if isDivider}}
<li data-role="list-divider" role="heading">
{{text}}
</li>
{{else}}
<li data-theme="{{theme}}">{{text}}{{#if count}}<span class="ui-li-count">{{{count}}}</span>{{/if}}</li>
{{/if}}
{{/each}}
{{else}}
{{#each items.property.value}}
{{#if isDivider}}
<li data-role="list-divider" role="heading">
{{text}}
</li>
{{else}}
<li data-theme="{{theme}}"><a href="{{url}}" data-transition="{{transition}}">{{text}}{{#if count}}<span class="ui-li-count">{{{count}}}</span>{{/if}}</a></li>
{{/if}}
{{/each}}
{{/ifequal}}
</ul>
</script>
<!-- 可折叠区块 -->
<script id="template-control-collapsible" type="text/x-handlebars-template">
<div data-role="collapsible-set" data-theme="{{headerTheme.property.value}}" data-content-theme="{{contentTheme.property.value}}" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
</div>
</script>
<!-- 可折叠内容 -->
<script id="template-control-collapsiblecontent" type="text/x-handlebars-template">
<div data-role="collapsible" data-collapsed="{{isCollapsed.property.value}}">
<h3>{{headerText.property.value}}</h3>
</div>
</script>
<!-- 表格 -->
<script id="template-control-grid" type="text/x-handlebars-template">
<div class="ui-grid-{{#gridclass columns.property.value}}{{/gridclass}}" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;"></div>
</script>
<!-- 单元格 -->
<script id="template-control-gridblock" type="text/x-handlebars-template">
<div></div>
</script>
<!-- 链接 -->
<script id="template-control-link" type="text/x-handlebars-template">
<div style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<a href="{{url.property.value}}"{{#property openNewWindow}} target="_blank"{{/property}} data-transition="{{transition.property.value}}" style="font-family:{{fontFamily.property.value}}; font-size:{{fontSize.property.value}}; font-style:{{fontStyle.property.value.fontStyle}}; font-weight:{{fontStyle.property.value.fontWeight}}; text-decoration:{{fontStyle.property.value.textDecoration}}; color:{{fontStyle.property.value.fontColor}};">{{text.property.value}}</a>
</div>
</script>
<!-- 普通按钮 -->
<script id="template-control-button" type="text/x-handlebars-template">
<a data-role="button" {{#property isInline}}data-inline="{{isInline.property.value}}"{{/property}} data-transition="{{transition.property.value}}" {{#property theme}}data-theme="{{theme.property.value}}"{{/property}} href="{{url.property.value}}" {{#if icon.property.value.icon}}data-icon="{{icon.property.value.icon}}" data-iconpos="{{icon.property.value.align}}"{{#if icon.property.value.size}} data-iconsize="{{icon.property.value.size}}"{{/if}}{{/if}}{{#property extraClasses}} class="{{extraClasses.property.value}}"{{/property}} style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
{{{ text.property.value }}}
</a>
</script>
<!-- 文本域 -->
<script id="template-control-textblock" type="text/x-handlebars-template">
<div>{{{ text.property.value }}}</div>
</script>
<!--滑动条-->
<script id="template-control-slider" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<fieldset data-role="controlgroup">
<label for="{{__control._id}}">{{label.property.value}}</label>
<input type="range" name="slider" id="{{__control._id}}" value="{{value.property.value}}" min="{{min.property.value}}" max="{{max.property.value}}" data-highlight="{{isHighlight.property.value}}" data-theme="{{theme.property.value}}" data-track-theme="{{trackTheme.property.value}}"/>
</fieldset>
</div>
</script>
<!--视频-->
<script id="template-control-video" type="text/x-handlebars-template">
{{#ifemptystring video.property.value.url}}
<div style="display: block; position:relative;text-align: {{video.property.value.align}}; width: 100%; height:150px;">
<img src="images/video-holder.png" alt="image" style="position: absolute; top: 50%; left: 50%; margin-left: -145px; margin-top: -75px;"/>
</div>
{{else}}
<div style="width:{{video.property.value.width.value}}{{video.property.value.width.units}};height:175px;">
<div id="video" style="width: {{video.property.value.width.value}}{{video.property.value.width.units}}; height:150px;">
<object width="100%" height="100%" type="application/x-shockwave-flash" data="swf/flowplayer.commercial.swf" name="fp_{{_random.property.value}}_api" id="fp_{{_random.property.value}}_api">
<param value="true" name="allowfullscreen">
<param name="wmode" value="opaque">
<param value="always" name="allowscriptaccess">
<param name="src" value="swf/flowplayer.commercial.swf">
<param name="movie" value="swf/flowplayer.commercial.swf">
<param value="high" name="quality">
<param value="#000000" name="bgcolor">
<param value='config={"plugins":{"controls":{"volume":true}},"playerId":"fp_09985227","clip":{"url":"{{video.property.value.url}}","autoPlay": false},"playlist":[{"url":"{{video.property.value.url}}"}]}' name="flashvars">
</object>
</div>
<p style="padding:0;margin:5px 0;">视频大小:{{video.property.value.fileSize}}</p>
</div>
{{/ifemptystring}}
</script>
<script id="template-control-video-final" type="text/x-handlebars-template">
<div id="video" style="width: {{video.property.value.width.value}}{{video.property.value.width.units}}; height: 150px;">
<video style="display:block;width: {{video.property.value.width.value}}{{video.property.value.width.units}}; height: 150px;" src="{{video.property.value.url}}" type="video/mp4" poster="{{video.property.value.thumbnail}}" controls="controls" preload="none"></video>
</div>
<p style="padding:0;margin:5px 0;">视频大小:{{video.property.value.fileSize}}</p>
</script>
<!--音频-->
<script id="template-control-audio" type="text/x-handlebars-template">
{{#ifemptystring audio.property.value.url}}
<div style="text-align: {{audio.property.value.align}}; position:relative;width: 100%; height: 28px">
<img src="images/audio-holder.png" alt="image" style="position: absolute; top: 50%; left: 50%; margin-left: -145px; margin-top: -14px" />
</div>
{{else}}
<div style="width: {{audio.property.value.width.value}}{{audio.property.value.width.units}};height:58px;">
<div id="audio" style="width: {{audio.property.value.width.value}}{{audio.property.value.width.units}}; height:28px">
<object width="100%" height="28px" type="application/x-shockwave-flash" data="swf/flowplayer.commercial.swf" name="mb_api" id="mb_api">
<param name="movie" value="swf/flowplayer.commercial.swf"><!-- IE8-->
<param name="wmode" value="opaque">
<param name="src" value="swf/flowplayer.commercial.swf"> <!-- IE8-->
<param value="true" name="allowfullscreen">
<param value="always" name="allowscriptaccess">
<param value="high" name="quality">
<param value="#000000" name="bgcolor">
<param value='config={"plugins":{"controls":{"fullscreen":false,"height":30,"autoHide":false},"audio":{"url":"swf/flowplayer.audio-3.2.10.swf"}},"clip":{"autoPlay":false,"url":"{{audio.property.value.url}}"},"playerId":"mb","playlist":[{"autoPlay":false,"url":"{{audio.property.value.url}}"}]}' name="flashvars">
</object>
<p style="padding:0;margin:5px 0;">音频大小:{{audio.property.value.fileSize}}</p>
</div>
</div>
{{/ifemptystring}}
</script>
<script id="template-control-audio-final" type="text/x-handlebars-template">
<div id="audio" style="width: {{audio.property.value.width.value}}{{audio.property.value.width.units}}; height:28px">
<audio src="{{audio.property.value.url}}" style="display:block;width: {{audio.property.value.width.value}}{{audio.property.value.width.units}}; height:28px" controls preload></audio>
</div>
<p style="padding:0;margin:5px 0;">音频大小:{{audio.property.value.fileSize}}</p>
</script>
<!--图片-->
<script id="template-control-image" type="text/x-handlebars-template">
{{#ifemptystring image.property.value.url}}
{{#ifequal image.property.value.displayMode "block"}}
<div style="width: {{image.property.value.width.value}}{{image.property.value.width.units}}; height: {{image.property.value.height.value}}{{image.property.value.height.units}}; position: relative; background-color: #fbfbfb; border: 1px solid #b8b8b8;">
<img src="images/image.png" alt="image" style="position: absolute; top: 50%; left: 50%; margin-left: -16px; margin-top: -18px"/>
</div>
{{else}}
<img src="images/image.png" alt="image"/>
{{/ifequal}}
{{else}}
{{#ifequal image.property.value.displayMode "block"}}
<div style="text-align: {{image.property.value.align}}; width: 100%; height: {{image.property.value.height.value}}{{image.property.value.height.units}}">
<a href="{{image.property.value.link}}"><img style="width: {{image.property.value.width.value}}{{image.property.value.width.units}}; height: {{image.property.value.height.value}}{{image.property.value.height.units}}; border: 0;" src="{{image.property.value.url}}"/></a>
</div>
{{else}}
<div style="display: inline-block; text-align: {{image.property.value.align}}; width: {{image.property.value.width.value}}{{image.property.value.width.units}}; height: {{image.property.value.height.value}}{{image.property.value.height.units}}">
<a href="{{image.property.value.link}}"><img style="width: {{image.property.value.width.value}}{{image.property.value.width.units}}; height: {{image.property.value.height.value}}{{image.property.value.height.units}}; border: 0;" src="{{image.property.value.url}}"/></a>
</div>
{{/ifequal}}
{{/ifemptystring}}
</script>
<!-- 提交按钮 -->
<script id="template-control-submitbutton" type="text/x-handlebars-template">
<input type="submit"{{#property isInline}}data-inline="{{isInline.property.value}}"{{/property}} {{#property theme}}data-theme="{{theme.property.value}}"{{/property}} {{#if icon.property.value.icon}}data-icon="{{icon.property.value.icon}}" data-iconpos="{{icon.property.value.align}}"{{/if}} value="{{{ text.property.value }}}"{{#property isMini}} data-mini="{{isMini.property.value}}"{{/property}} />
</script>
<!-- 表单form -->
<script id="template-control-form" type="text/x-handlebars-template">
<form action="{{url.property.value}}"{{#property action}} method="{{action.property.value}}"{{/property}}{{#property ajax}} data-ajax="false"{{/property}} style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
{{#ifempty __control.children}}
<form>
{{/ifempty}}
</form>
</script>
<!-- 单行文本输入框 -->
<script id="template-control-textinput" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<fieldset data-role="controlgroup">
<label for="{{__control._id}}">{{label.property.value}}</label>
<input name="{{nameField.property.value}}" id="{{__control._id}}" placeholder="{{placeholder.property.value}}" value="{{text.property.value}}" type="{{type.property.value}}"/>
</fieldset>
</div>
</script>
<!-- 多行文本输入框 -->
<script id="template-control-textarea" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<fieldset data-role="controlgroup">
<label for="{{__control._id}}">{{label.property.value}}</label>
<textarea name="{{nameField.property.value}}" style="height:{{textareaHeight.property.value}}px" id="{{__control._id}}" placeholder="{{placeholder.property.value}}">{{text.property.value}}</textarea>
</fieldset>
</div>
</script>
<!-- 单选按钮 -->
<script id="template-control-radiobuttons" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<fieldset data-role="controlgroup" data-type="{{ orientation.property.value }}"{{#property isMini}} data-mini="{{isMini.property.value}}"{{/property}}>
<legend>{{label.property.value}}</legend>
</fieldset>
</div>
</script>
<script id="template-control-radio" type="text/x-handlebars-template">
<input name="{{__control.parentControl.nameField}}" id="{{__control._id}}" value="{{value.property.value}}" type="radio" />
<label for="{{__control._id}}">{{label.property.value}}</label>
</script>
<!-- 复选按钮 -->
<script id="template-control-checkboxes" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<fieldset data-role="controlgroup" data-type="{{ orientation.property.value }}"{{#property isMini}} data-mini="{{isMini.property.value}}"{{/property}}>
<legend>{{label.property.value}}</legend>
</fieldset>
</div>
</script>
<script id="template-control-checkbox" type="text/x-handlebars-template">
<input name="{{__control.parentControl.nameField}}" id="{{__control._id}}" value="{{value.property.value}}" type="checkbox" />
<label for="{{__control._id}}">{{label.property.value}}</label>
</script>
<!-- 下拉选择框 -->
<script id="template-control-selectmenu" type="text/x-handlebars-template">
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<label for="{{__control._id}}">{{ label.property.value }}</label>
<select{{#property isNative}} data-native-menu="{{isNative.property.value}}"{{/property}} name="{{__control._id}}" id="{{__control._id}}"{{#property theme}} data-theme="{{theme.property.value}}"{{/property}}{{#property isMini}} data-mini="{{isMini.property.value}}"{{/property}}>
{{#each items.property.value}}
<option value="{{value}}">{{text}}</option>
{{/each}}
</select>
</div>
</script>
<!--地图-->
<script id="template-control-googlemaps" type="text/x-handlebars-template">
<img src="https://maps.googleapis.com/maps/api/staticmap?center={{loc.property.value}}&zoom={{zoom.property.value}}&size={{width.property.value}}x{{height.property.value}}&markers={{markerparams markers.property.value}}&sensor=false" width="{{width.property.value}}" height="{{height.property.value}}" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;"/>
</script>
<!-- 数据表格 -->
<script id="template-control-datatable" type="text/x-handlebars-template">
<!--<div data-role="fieldcontain">
<table id="{{__control._id}}" class="ui-body-d ui-shadow table-stripe ui-responsive" data-role="table" data-source="{{datasource.property.value}}" data-mode="columntoggle" data-column-btn-theme="b" data-column-btn-text="更多列..." data-column-popup-theme="a">
<thead>
<tr class="ui-bar-d">
{{#each columns.property.value}}
<th data-priority="{{priority}}" column-name="{{columnValue}}">{{columnText}}</th>
{{/each}}
</tr>
</thead>
<tbody>
<tr>
{{#each columns.property.value}}
<td> -- </td>
{{/each}}
</tr>
</tbody>
</table>
</div>-->
<div data-role="fieldcontain" style="margin-top:{{margin.property.value.top}}px; margin-right:{{margin.property.value.right}}px; margin-bottom:{{margin.property.value.bottom}}px; margin-left:{{margin.property.value.left}}px;">
<table id="{{__control._id}}" class="ui-responsive table-stroke" data-role="table" data-source="{{datasource.property.value}}" data-mode="reflow" >
<thead>
<tr>
{{#each columns.property.value}}
<th data-priority="{{priority}}" column-name="{{columnValue}}">{{columnText}}</th>
{{/each}}
</tr>
</thead>
<tbody>
<tr>
{{#each columns.property.value}}
<td> -- </td>
{{/each}}
</tr>
</tbody>
</table>
</div>
</script>
<script id="template-control-html" type="text/x-handlebars-template">
<div id="{{__control._id}}" data-role="html" style="position:relative; min-height:20px;">{{{htmlsource.property.value}}}</div>
</script>
<!-- widgets -->
<script id="template-widget-nullwidget" type="text/x-handlebars-tmpl">
<div></div>
</script>
<!-- 单行文本框 -->
<script id="template-widget-singletext" type="text/x-handlebars-tmpl">
<div class="fg clearfix">
<div class="fl">{{_property_title}}</div>
<div class="fe">
<input class="ui-input-text ui-corner-all ui-shadow-inset ui-body-c" type="text" value="{{text}}" />
</div>
</div>
</script>
<!-- 风格选择 -->
<script id="template-widget-themeselect" type="text/x-handlebars-tmpl">
<div class="{{#if _property_title}}fg{{/if}} clearfix">
{{#if _property_title}}
<div class="fl"> {{_property_title}} </div>
{{/if}}
<div class="fe clearfix">
<select class="themes small">
{{#each themes}}
<option value="{{value}}"{{#if selected}} selected{{/if}}>{{key}}</option>
{{/each}}
</select>
</div>
</div>
</script>
<script id="template-widget-themeselector" type="text/x-handlebars-tmpl">
<div class="{{#if _property_title}}fg{{/if}} clearfix">
{{#if _property_title}}
<div class="fl"> {{_property_title}} </div>
{{/if}}
<div class="fe clearfix">
<div class="theme-selector">
{{#each themes}}
<a href="javascript:;" class="theme-{{value}} {{#if selected}} selected{{/if}}" val="{{value}}" title="{{key}}"></a>
{{/each}}
</div>
</div>
</div>
</script>
<!--下拉菜单模板-->
<script id="template-widget-select" type="text/x-handlebars-tmpl">
<div class="{{#if _property_title}}fg{{/if}} clearfix">
{{#if _property_title}}
<div class="fl"> {{_property_title}} </div>
{{/if}}
<div class="fe clearfix">
<select class="small">
{{#each options}}
<option value="{{ value }}"{{#if selected}} selected{{/if}}>{{ text }}</option>
{{/each}}
</select>
</div>
</div>
</script>
<!-- 按钮widget -->
<script id="template-widget-buttonlistitems" type="text/x-handlebars-tmpl">
<div class="fg">
<div class="clearfix">
<div class="fl"> {{_property_title}} </div>
</div>
<div class="fg-accordion sortable clearfix">
{{#buttonlistitems_render items}}{{/buttonlistitems_render}}
</div>
<div class="fake add fg-accordion ui-accordion clearfix">
<div class="fg-collapsible">
<h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-top">
<span class="bui-icon bui-icon-plus"></span>
添加按钮
</h3>
</div>
</div>
</div>
</script>
<!-- 子级按钮widget -->
<script id="sub-template-widget-buttonlistitems" type="text/x-handlebars-tmpl">
<div class="fg-collapsible">
<h3>{{text}}</h3>
<div class="content">
<div class="fl">
<label>文本</label>
</div>
<div class="fe">
<input placeholder="按钮文本" type="text" value="{{text}}" />
</div>
<div class="fl isActive">
<label>激活状态</label> {{{isActiveSelect}}}
</div>
<div class="fl">
<label>链接到:</label> {{{pageSelect}}}
</div>
<div class="fl">
<label>主题</label> {{{themeSelect}}}
</div>
<div class="fl">
<label>图标:</label> {{{iconSelect}}}
</div>
<div class="fe b-el-icons clearfix">
<a href="javascript:void(0);" class="remove standard-button l clearfix">
<div class="l"></div>
<div class="l-c"><div class="b-icon b-icon-delete"></div>删除按钮</div>
<div class="r"></div>
</a>
</div>
</div>
</div>
</script>
<!-- 页面选择 -->
<script id="template-widget-pageselect" type="text/x-handlebars-tmpl">
<div class="{{#if _property_title}}fg{{/if}} clearfix">
{{#if _property_title}}
<div class="fl"> {{_property_title}} </div>
{{/if}}
<div class="fe clearfix">
<div class="fw">
<select class="pages small">
{{#each pages}}
<option class="page" value="{{value}}" {{#if selected}}selected{{/if}}>{{key}}</option>
{{/each}}
</select>
</div>
</div>
</div>
</script>
<!-- icons图标选择 -->
<script id="template-widget-iconselect" type="text/x-handlebars-tmpl">
<div class="{{#if _property_title}}fg{{/if}} clearfix">
{{#if _property_title}}
<div class="fl"> {{_property_title}} </div>
{{/if}}
<div class="fe clearfix">
{{#if icons}}
<div class="l">
<select class="icons static">
{{#each icons}}
<option value="{{value}}" {{#if selected}}selected{{/if}}>{{key}}</option>
{{/each}}
</select>
</div>
{{/if}}
{{#if align}}
<div class="l radio-set">
<a href="javascript:void(0);" class='radio radio-left{{#ifequal align "left"}} selected{{/ifequal}}' data-align="left">
<div class="icon icon-align-left"></div>
</a>
<a href="javascript:void(0);" class='radio radio-center{{#ifequal align "top"}} selected{{/ifequal}}' data-align="top">
<div class="icon icon-align-top"></div>
</a>
<a href="javascript:void(0);" class='radio radio-center{{#ifequal align "bottom"}} selected{{/ifequal}}' data-align="bottom">
<div class="icon icon-align-bottom"></div>
</a>
<a href="javascript:void(0);" class='radio radio-right{{#ifequal align "right"}} selected{{/ifequal}}' data-align="right">
<div class="icon icon-align-right"></div>
</a>
</div>
{{/if}}
</div>
</div>
</script>
<!-- 转场效果选择 -->
<script id="template-widget-transitionselect" type="text/x-handlebars-tmpl">
<div class="clearfix">
{{#if _property_title}}
<div class="fl">
{{_property_title}}
</div>
{{/if}}
<div class="fe clearfix">
<select class="transitions small">
{{#each transitions}}
<option value="{{value}}" {{#if selected}}selected{{/if}}>{{key}}</option>
{{/each}}
</select>
</div>
</div>
</script>
<!-- 列表 -->
<script id="template-widget-listitems" type="text/x-handlebars-tmpl">
<div class="fg">
<div class="clearfix">
<div class="fl">
{{_property_title}}
</div>
</div>
<div class="fg-accordion sortable clearfix">
{{#listitems_render items}}{{/listitems_render}}
</div>
<div class="fake add-button fg-accordion ui-accordion clearfix">
<div class="fg-collapsible">
<h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-top">
<span class="bui-icon bui-icon-plus"></span>
添加按钮
</h3>
</div>
</div>
<div class="fake add-divider fg-accordion ui-accordion clearfix">
<div class="fg-collapsible">
<h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-top">
<span class="bui-icon bui-icon-plus"></span>
添加分栏
</h3>
</div>
</div>
</div>
</script>
<!-- 子级列表 -->
<script id="sub-template-widget-listitems" type="text/x-handlebars-tmpl">
<div class="fg-collapsible" data-isdivider="{{isDivider}}">
<h3>{{text}}</h3>
<div class="content">
{{#if isDivider}}
<div class="fl">
<label>文本</label>
</div>
<div class="fe">
<input placeholder="按钮文本" class="text" type="text" value="{{text}}" />
</div>
<div class="fe b-el-icons clearfix">
<a href="#" class="remove standard-button l clearfix">
<div class="l"></div>
<div class="l-c"><div class="b-icon b-icon-delete"></div>删除分栏</div>
<div class="r"></div>
</a>
</div>
{{else}}
<div class="fl">
<label>文本</label>
</div>
<div class="fe">
<input placeholder="按钮文本" class="text" type="text" value="{{text}}" />
</div>
<div class="fl">
<label>链接到:</label> {{{pageSelect}}}
</div>
<!--div class="fl">
<label>链接过渡效果:</label> {{{transitionSelect}}}
</div-->
<div class="fl">
<label>主题</label> {{{themeSelect}}}
</div>
<!--div class="fl">
<label>计数冒泡文本</label>
</div>
<div class="fe">
<input placeholder="" class="count" type="text" value="{{count}}" />
</div-->
<div class="fe b-el-icons clearfix">
<a href="#" class="remove standard-button l clearfix">
<div class="l"></div>
<div class="l-c"><div class="b-icon b-icon-delete"></div>删除按钮</div>
<div class="r"></div>
</a>
</div>