dever 6 gadi atpakaļ
vecāks
revīzija
c15b00cbf9
100 mainītis faili ar 7368 papildinājumiem un 2 dzēšanām
  1. 2 2
      KIF/init.php
  2. 62 0
      doc/onepage_project.sql
  3. 112 0
      doc/onepage_project_update.sql
  4. BIN
      kissy/public/upload/image/2018/0418/125853_33352.jpg
  5. BIN
      kissy/public/upload/image/2018/0418/130143_96600.jpg
  6. BIN
      kissy/public/upload/image/2018/0418/130236_70799.jpg
  7. BIN
      kissy/public/upload/image/2018/0418/130244_83222.jpg
  8. BIN
      kissy/public/upload/image/2018/0418/170630_76942.jpg
  9. BIN
      kissy/public/upload/image/2018/0419/175229_58175.jpg
  10. BIN
      kissy/public/upload/image/2018/0423/095820_15912.jpg
  11. BIN
      kissy/public/upload/image/2018/0423/095850_88734.jpg
  12. BIN
      kissy/public/upload/image/2018/0423/095947_68646.jpg
  13. BIN
      kissy/public/upload/image/2018/0423/095957_68899.png
  14. BIN
      kissy/public/upload/image/2018/0423/100002_87276.png
  15. BIN
      kissy/public/upload/image/2018/0423/100009_37952.jpg
  16. BIN
      kissy/public/upload/image/2018/0423/100026_17787.png
  17. BIN
      kissy/public/upload/image/2018/0423/100028_99790.png
  18. BIN
      kissy/public/upload/image/2018/0423/100033_49957.png
  19. BIN
      kissy/public/upload/image/2018/0423/112936_80698.png
  20. BIN
      kissy/public/upload/image/2018/0423/113124_60611.jpg
  21. BIN
      kissy/public/upload/image/2018/0425/150344_41268.jpg
  22. BIN
      kissy/public/upload/image/2018/0425/150551_88600.jpg
  23. BIN
      kissy/public/upload/image/2018/0425/150552_97036.jpg
  24. BIN
      kissy/public/upload/image/2018/0425/150643_42318.jpg
  25. BIN
      kissy/public/upload/image/2018/0425/150710_18235.jpg
  26. BIN
      kissy/public/upload/image/2018/0425/194540_91312.png
  27. BIN
      kissy/public/upload/image/2018/0426/112252_50722.png
  28. BIN
      kissy/public/upload/image/2018/0426/112518_15400.jpg
  29. BIN
      kissy/public/upload/image/2018/0426/112618_96695.jpg
  30. BIN
      kissy/public/upload/image/2018/0426/113034_20828.jpg
  31. BIN
      kissy/public/upload/image/2018/0516/183332_93752.jpg
  32. BIN
      kissy/public/upload/image/2018/0516/183339_82191.jpg
  33. BIN
      kissy/public/upload/image/2018/0516/183426_77058.jpg
  34. BIN
      kissy/public/upload/image/2018/0516/183428_21347.jpg
  35. BIN
      kissy/public/upload/image/2018/0517/171638_87189.jpg
  36. BIN
      kissy/public/upload/image/2018/0517/172835_64584.jpg
  37. BIN
      kissy/public/upload/image/2018/0517/172836_47494.jpg
  38. BIN
      kissy/public/upload/image/2018/0521/145740_84496.png
  39. BIN
      kissy/public/upload/image/2018/0521/184807_37937.jpg
  40. BIN
      kissy/public/upload/image/2018/0521/184922_99733.jpg
  41. BIN
      kissy/public/upload/image/2018/0521/184954_95809.jpg
  42. BIN
      kissy/public/upload/image/2018/0521/185006_79397.jpg
  43. BIN
      kissy/public/upload/image/2018/0521/190219_31746.jpg
  44. BIN
      kissy/public/upload/qrcode/0853ea98277d536b2247e9e92a4714d9.png
  45. BIN
      kissy/public/upload/qrcode/128e5c8d12917846cbc4b9948ecba893.png
  46. BIN
      kissy/public/upload/qrcode/1524456395png
  47. BIN
      kissy/public/upload/qrcode/1524456464png
  48. BIN
      kissy/public/upload/qrcode/1524456486png
  49. BIN
      kissy/public/upload/qrcode/1e325c7860be635497e3fc3d5a06595d.png
  50. BIN
      kissy/public/upload/qrcode/1ef18ca2aff58decfc3388e5a840fbd8.png
  51. BIN
      kissy/public/upload/qrcode/28c6004f898234b8.png
  52. BIN
      kissy/public/upload/qrcode/2e67d211a6fdc5e740f35c6b5d6346e8.png
  53. BIN
      kissy/public/upload/qrcode/2ef9fda929f03abb.png
  54. BIN
      kissy/public/upload/qrcode/3883a95b718812df94f0f1fe3e5ef791.png
  55. BIN
      kissy/public/upload/qrcode/60be635497e3fc3d.png
  56. BIN
      kissy/public/upload/qrcode/641bb21a5519e941f8f379459df06495.png
  57. BIN
      kissy/public/upload/qrcode/73215a0028c6004f898234b837edbffd.png
  58. BIN
      kissy/public/upload/qrcode/a6fdc5e740f35c6b.png
  59. BIN
      kissy/public/upload/qrcode/d7b9ecda68f3b5e4cc6536ca74aa0143.png
  60. BIN
      kissy/public/upload/qrcode/e51d93d4cd9e7b31af15e52afc4bfe9f.png
  61. BIN
      kissy/public/upload/qrcode/e9078d46673a98a6cecb0610cd42b7bb.png
  62. BIN
      kissy/public/upload/qrcode/f697e9a3b70610b4d550774c1b636a71.png
  63. 135 0
      tm/compile_dir/%%03^034^0344F098%%user.html.php
  64. 28 0
      tm/compile_dir/%%07^073^073B2E0C%%pc_qrcode.html.php
  65. 963 0
      tm/compile_dir/%%09^092^09291799%%setPage_article.html.php
  66. 72 0
      tm/compile_dir/%%0C^0C9^0C9CEC8E%%left.html.php
  67. 124 0
      tm/compile_dir/%%13^13E^13E3BAFF%%common_right.html.php
  68. 2 0
      tm/compile_dir/%%17^173^173572F1%%nav.html.php
  69. 234 0
      tm/compile_dir/%%18^186^186320FF%%login.html.php
  70. 267 0
      tm/compile_dir/%%19^19C^19C5EC22%%interactive_question.html.php
  71. 161 0
      tm/compile_dir/%%1C^1C2^1C28155E%%delivery_channels_add.html.php
  72. 225 0
      tm/compile_dir/%%27^27A^27A220D1%%list.html.php
  73. 50 0
      tm/compile_dir/%%2A^2AF^2AF8404C%%event_forms_template.html.php
  74. 4 0
      tm/compile_dir/%%2B^2B7^2B719422%%common_header.html.php
  75. 40 0
      tm/compile_dir/%%2C^2C1^2C11569A%%permission.html.php
  76. 53 0
      tm/compile_dir/%%30^30D^30D66F2A%%preview_single_page.html.php
  77. 16 0
      tm/compile_dir/%%30^30E^30E9D058%%common_nav.html.php
  78. 559 0
      tm/compile_dir/%%3C^3C0^3C0B63B8%%list.html.php
  79. 579 0
      tm/compile_dir/%%3D^3D1^3D1D841B%%page_show.html.php
  80. 128 0
      tm/compile_dir/%%40^40B^40BC05C2%%activity_list.html.php
  81. 108 0
      tm/compile_dir/%%41^415^41571DBF%%index.html.php
  82. 65 0
      tm/compile_dir/%%46^46A^46A500FA%%mp.html.php
  83. 187 0
      tm/compile_dir/%%48^48D^48DE5A4F%%bottom.html.php
  84. 183 0
      tm/compile_dir/%%49^492^49271E10%%blletin_list.html.php
  85. 555 0
      tm/compile_dir/%%4B^4B9^4B9E8CB7%%page_create.html.php
  86. 329 0
      tm/compile_dir/%%50^50A^50A8C78C%%interactive_input.html.php
  87. 181 0
      tm/compile_dir/%%55^551^551108F0%%list.html.php
  88. 8 0
      tm/compile_dir/%%59^592^59210787%%menu_icon.html.php
  89. 234 0
      tm/compile_dir/%%5C^5C8^5C8ABD36%%user_list.html.php
  90. 380 0
      tm/compile_dir/%%5E^5EF^5EF8E36D%%interactive_code.html.php
  91. 246 0
      tm/compile_dir/%%61^61B^61BE7FAB%%setPage_event.html.php
  92. 40 0
      tm/compile_dir/%%6F^6F7^6F771115%%save_qrcode.html.php
  93. 61 0
      tm/compile_dir/%%71^714^714F4B17%%header.html.php
  94. 174 0
      tm/compile_dir/%%73^73D^73D43E79%%events_code.html.php
  95. 147 0
      tm/compile_dir/%%77^774^774BE9C9%%index.html.php
  96. 98 0
      tm/compile_dir/%%7A^7A8^7A8C3B5F%%modify_password.html.php
  97. 106 0
      tm/compile_dir/%%80^804^80487B52%%events_survey.html.php
  98. 5 0
      tm/compile_dir/%%8C^8C2^8C25BB7D%%share_button.html.php
  99. 169 0
      tm/compile_dir/%%8E^8E0^8E047F59%%setPage_h5.html.php
  100. 276 0
      tm/compile_dir/%%92^92F^92F79C85%%interactive_survey_input_question.html.php

+ 2 - 2
KIF/init.php

@@ -14,7 +14,7 @@ if (!defined('KIF_PATH')) {
 	define('KIF_PATH', dirname(__FILE__));
 }
 if (!defined('KIF_DEBUG_PASS')) {
-	define('KIF_DEBUG_PASS', '@kimiss');
+	define('KIF_DEBUG_PASS', 'rabin');
 }
 if (!defined('KIF_ERROR_LEVEL'))	{
 	define('KIF_ERROR_LEVEL', E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
@@ -55,7 +55,7 @@ if (get_magic_quotes_gpc()) {//系统开启了进站数据转义
 }
 #############################################
 
-if (isset($_REQUEST['kif_debug']) && $_REQUEST['kif_debug'] == KIF_DEBUG_PASS) {
+if (isset($_REQUEST['debug']) && $_REQUEST['debug'] == KIF_DEBUG_PASS) {
 	# Debug模式将错误打开
 	ini_set('display_errors', true);
 	# 设置错误级别

+ 62 - 0
doc/onepage_project.sql

@@ -89,6 +89,26 @@ CREATE TABLE `lottery_delivery_channels` (
 ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='投放渠道';
 /*!40101 SET character_set_client = @saved_cs_client */;
 
+
+-- ----------------------------
+-- Table structure for focus
+-- ----------------------------
+DROP TABLE IF EXISTS `focus`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `focus` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `platform_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台ID',
+  `name` varchar(100) NOT NULL COMMENT '名称',
+  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
+  `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
+  `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='精彩推荐';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
 --
 -- Table structure for table `lottery_events`
 --
@@ -106,6 +126,9 @@ CREATE TABLE `lottery_events` (
   `share_button` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示分享按钮 1 :不显示   2:显示',
   `del` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否被管理员删除',
   `list_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '列表中是否显示',
+  `category_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类id',
+  `focus_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐到焦点图',
+  `top_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否置顶',
   `platform_ids` int(10) NOT NULL DEFAULT '0' COMMENT '所属列表',
   `operator_uid` int(10) NOT NULL DEFAULT '0' COMMENT '操作人UID',
   `extend` text NOT NULL DEFAULT '',
@@ -390,6 +413,27 @@ CREATE TABLE `lottery_user_express` (
 ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户收货信息';
 /*!40101 SET character_set_client = @saved_cs_client */;
 
+
+--
+-- Table structure for table `lottery_user_feedback`
+--
+
+DROP TABLE IF EXISTS `lottery_user_feedback`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `lottery_user_feedback` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
+  `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
+  `extend` text NOT NULL DEFAULT '',
+  `create_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `update_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
+  `status` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '显示状态 1显示 2隐藏',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户反馈信息';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
 --
 -- Table structure for table `lottery_user_participate_log`
 --
@@ -405,10 +449,28 @@ CREATE TABLE `lottery_user_participate_log` (
   `create_time` int(10) unsigned NOT NULL DEFAULT 0,
   `update_time` int(10) unsigned NOT NULL DEFAULT 0,
   `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
+  `audit` int(10) unsigned NOT NULL DEFAULT 1,
   PRIMARY KEY (`id`)
 ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动用户参与表';
 /*!40101 SET character_set_client = @saved_cs_client */;
 
+
+-- ----------------------------
+-- Table structure for category
+-- ----------------------------
+DROP TABLE IF EXISTS `category`;
+CREATE TABLE `category` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `name` varchar(100) NOT NULL COMMENT '分类名',
+  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
+  `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
+  `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='平台分类';
+
+
 --
 -- Table structure for table `platform`
 --

+ 112 - 0
doc/onepage_project_update.sql

@@ -0,0 +1,112 @@
+-- MySQL dump 10.13  Distrib 5.5.43, for debian-linux-gnu (x86_64)
+--
+-- Host: 192.168.12.4    Database: onepage_v1_sg
+-- ------------------------------------------------------
+-- Server version 5.5.38-0+wheezy1-log
+
+
+-- ----------------------------
+-- Table structure for category
+-- ----------------------------
+DROP TABLE IF EXISTS `category`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `category` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `name` varchar(100) NOT NULL COMMENT '分类名',
+  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
+  `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
+  `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='平台分类';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+-- ----------------------------
+-- Table structure for focus
+-- ----------------------------
+DROP TABLE IF EXISTS `focus`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `focus` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `platform_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台ID',
+  `index` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
+  `name` varchar(100) NOT NULL COMMENT '名称',
+  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
+  `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
+  `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='精彩推荐';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `lottery_user_feedback`
+--
+
+DROP TABLE IF EXISTS `lottery_user_feedback`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `lottery_user_feedback` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
+  `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `update_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
+  `status` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '显示状态 1显示 2隐藏',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户反馈信息';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+
+--
+-- Table structure for table `lottery_events_help_user`
+--
+
+DROP TABLE IF EXISTS `lottery_events_help_user`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `lottery_events_help_user` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
+  `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `update_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `lottery_events_help_user_log`
+--
+
+DROP TABLE IF EXISTS `lottery_events_help_user_log`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `lottery_events_help_user_log` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
+  `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
+  `help_id` int(11) NOT NULL DEFAULT '0' COMMENT '助力id',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
+  `extend` text NOT NULL COMMENT '扩展字段',
+  `create_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `update_time` int(10) unsigned NOT NULL DEFAULT 0,
+  `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户日志表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+
+ALTER TABLE lottery_events ADD `focus_display` int(10) DEFAULT 1;
+ALTER TABLE lottery_events ADD `top_display` int(10) DEFAULT 1;
+ALTER TABLE lottery_events ADD `category_id` int(10) DEFAULT 1;
+
+ALTER TABLE lottery_user_participate_log ADD `audit` int(10) DEFAULT 1;
+ALTER TABLE lottery_events_help_user ADD `num` int(10) DEFAULT 0;

BIN
kissy/public/upload/image/2018/0418/125853_33352.jpg


BIN
kissy/public/upload/image/2018/0418/130143_96600.jpg


BIN
kissy/public/upload/image/2018/0418/130236_70799.jpg


BIN
kissy/public/upload/image/2018/0418/130244_83222.jpg


BIN
kissy/public/upload/image/2018/0418/170630_76942.jpg


BIN
kissy/public/upload/image/2018/0419/175229_58175.jpg


BIN
kissy/public/upload/image/2018/0423/095820_15912.jpg


BIN
kissy/public/upload/image/2018/0423/095850_88734.jpg


BIN
kissy/public/upload/image/2018/0423/095947_68646.jpg


BIN
kissy/public/upload/image/2018/0423/095957_68899.png


BIN
kissy/public/upload/image/2018/0423/100002_87276.png


BIN
kissy/public/upload/image/2018/0423/100009_37952.jpg


BIN
kissy/public/upload/image/2018/0423/100026_17787.png


BIN
kissy/public/upload/image/2018/0423/100028_99790.png


BIN
kissy/public/upload/image/2018/0423/100033_49957.png


BIN
kissy/public/upload/image/2018/0423/112936_80698.png


BIN
kissy/public/upload/image/2018/0423/113124_60611.jpg


BIN
kissy/public/upload/image/2018/0425/150344_41268.jpg


BIN
kissy/public/upload/image/2018/0425/150551_88600.jpg


BIN
kissy/public/upload/image/2018/0425/150552_97036.jpg


BIN
kissy/public/upload/image/2018/0425/150643_42318.jpg


BIN
kissy/public/upload/image/2018/0425/150710_18235.jpg


BIN
kissy/public/upload/image/2018/0425/194540_91312.png


BIN
kissy/public/upload/image/2018/0426/112252_50722.png


BIN
kissy/public/upload/image/2018/0426/112518_15400.jpg


BIN
kissy/public/upload/image/2018/0426/112618_96695.jpg


BIN
kissy/public/upload/image/2018/0426/113034_20828.jpg


BIN
kissy/public/upload/image/2018/0516/183332_93752.jpg


BIN
kissy/public/upload/image/2018/0516/183339_82191.jpg


BIN
kissy/public/upload/image/2018/0516/183426_77058.jpg


BIN
kissy/public/upload/image/2018/0516/183428_21347.jpg


BIN
kissy/public/upload/image/2018/0517/171638_87189.jpg


BIN
kissy/public/upload/image/2018/0517/172835_64584.jpg


BIN
kissy/public/upload/image/2018/0517/172836_47494.jpg


BIN
kissy/public/upload/image/2018/0521/145740_84496.png


BIN
kissy/public/upload/image/2018/0521/184807_37937.jpg


BIN
kissy/public/upload/image/2018/0521/184922_99733.jpg


BIN
kissy/public/upload/image/2018/0521/184954_95809.jpg


BIN
kissy/public/upload/image/2018/0521/185006_79397.jpg


BIN
kissy/public/upload/image/2018/0521/190219_31746.jpg


BIN
kissy/public/upload/qrcode/0853ea98277d536b2247e9e92a4714d9.png


BIN
kissy/public/upload/qrcode/128e5c8d12917846cbc4b9948ecba893.png


BIN
kissy/public/upload/qrcode/1524456395png


BIN
kissy/public/upload/qrcode/1524456464png


BIN
kissy/public/upload/qrcode/1524456486png


BIN
kissy/public/upload/qrcode/1e325c7860be635497e3fc3d5a06595d.png


BIN
kissy/public/upload/qrcode/1ef18ca2aff58decfc3388e5a840fbd8.png


BIN
kissy/public/upload/qrcode/28c6004f898234b8.png


BIN
kissy/public/upload/qrcode/2e67d211a6fdc5e740f35c6b5d6346e8.png


BIN
kissy/public/upload/qrcode/2ef9fda929f03abb.png


BIN
kissy/public/upload/qrcode/3883a95b718812df94f0f1fe3e5ef791.png


BIN
kissy/public/upload/qrcode/60be635497e3fc3d.png


BIN
kissy/public/upload/qrcode/641bb21a5519e941f8f379459df06495.png


BIN
kissy/public/upload/qrcode/73215a0028c6004f898234b837edbffd.png


BIN
kissy/public/upload/qrcode/a6fdc5e740f35c6b.png


BIN
kissy/public/upload/qrcode/d7b9ecda68f3b5e4cc6536ca74aa0143.png


BIN
kissy/public/upload/qrcode/e51d93d4cd9e7b31af15e52afc4bfe9f.png


BIN
kissy/public/upload/qrcode/e9078d46673a98a6cecb0610cd42b7bb.png


BIN
kissy/public/upload/qrcode/f697e9a3b70610b4d550774c1b636a71.png


+ 135 - 0
tm/compile_dir/%%03^034^0344F098%%user.html.php

@@ -0,0 +1,135 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:06:31
+         compiled from admin/platform/user.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date', 'admin/platform/user.html', 69, false),)), $this); ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?> <?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?> <?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?> <?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+
+.set-nav-hr {
+	background-color: #ddd;
+	height: 1px;
+	position: relative;
+}
+
+.form-group label {
+	font-weight: 600;
+}
+
+.checkbox-inline, .radio-inline {
+	font-weight: 400 !important;
+}
+
+.rowlabel {
+	font-weight: 300 !important;
+}
+
+.music_play_hide {
+	display: none;
+}
+</style>
+
+
+<div id="activity_container">
+
+
+	<div class="activity_center"  style="width: 100%">
+		<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?> <input
+			name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+
+		<div class="panel panel-default" >
+			<div class="panel-heading" >
+				<h3 class="panel-title" id="panel-title">用户列表</h3>
+			</div>
+			<div class="panel-body" >
+				<div class="form-group">
+					<div>
+						<table class="table table-hover">
+							<thead>
+								<tr>
+									<th>用户头像</th>
+									<th>用户名</th>
+									<th>Uid</th>
+									<th>创建时间</th>
+								</tr>
+							</thead>
+							<tbody>
+								<?php $_from = $this->_tpl_vars['thisPageUserData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['userData']):
+?>
+								<tr>
+									<td>
+									<?php if ($this->_tpl_vars['userData']['headimgurl']): ?>
+									<img class="img-rounded" width="48" height="48" src="<?php echo $this->_tpl_vars['userData']['headimgurl']; ?>
+" />
+									<?php else: ?>
+									<img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
+									<?php endif; ?>
+									</td>
+									<td><?php if ($this->_tpl_vars['userData']['nickname']): ?><?php echo $this->_tpl_vars['userData']['nickname']; ?>
+<?php else: ?>游客<?php echo $this->_tpl_vars['userData']['id']; ?>
+<?php endif; ?></td>
+									<td passport_uid="<?php echo $this->_tpl_vars['userData']['passport_uid']; ?>
+"><?php echo $this->_tpl_vars['userData']['id']; ?>
+</td>
+									<td><?php echo ((is_array($_tmp="Y-m-d H:i:s")) ? $this->_run_mod_handler('date', true, $_tmp, $this->_tpl_vars['userData']['create_time']) : date($_tmp, $this->_tpl_vars['userData']['create_time'])); ?>
+</td>
+								</tr>
+								<?php endforeach; endif; unset($_from); ?>
+							</tbody>
+						</table>
+						<div class="page">
+						<?php echo $this->_tpl_vars['page_html']; ?>
+
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+
+
+
+
+
+	<div style="clear: both;"></div>
+
+</div>
+
+
+<script>
+	KISSY.use('node, io, event', function(S, Node, IO, Event) {
+		var $ = S.all;
+
+	});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 28 - 0
tm/compile_dir/%%07^073^073B2E0C%%pc_qrcode.html.php

@@ -0,0 +1,28 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 17:11:42
+         compiled from pc_qrcode.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div class="wrapper jsc-sidebar-content jsc-sidebar-pulled" data-total-vote-num="<?php echo $this->_tpl_vars['voteInfo']['total_vote_num']; ?>
+" style="background-color:#fff;">
+	<div style="font-size:10px;color: #B1ADAD;position: absolute;left:0;top:0;display: none;">ug:<?php echo $this->_tpl_vars['user_agent']; ?>
+</div>
+	<div style="text-align: center; font-size: 14px; position: absolute; left: 50%; top: 50%; margin-left: -145px; margin-top: -175px;">
+	<img src="<?php echo $this->_tpl_vars['qrcode']; ?>
+" style="width:290px;margin-bottom:15px;"/>
+	<p style="position: relative;">打开微信,“扫一扫”,浏览</p>
+	<p style="position: relative;"><?php echo $this->_tpl_vars['title']; ?>
+</p>
+	</div>
+</div>
+
+</body>
+</html>

+ 963 - 0
tm/compile_dir/%%09^092^09291799%%setPage_article.html.php

@@ -0,0 +1,963 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:18:23
+         compiled from admin/activity/setPage_article.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/css/swiper.min.css" />
+<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/css/swiper.animate.min.css" />
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/swiper.jquery.min.js"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/swiper.animate.min.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+.create_page_box {
+	display:none;
+	position: relative;
+}
+.create_page_box .panel-heading {
+	background-color: #fff;
+}
+.topic_page, .template_page, .edit_page {
+	width: 320px;
+	height: 570px;
+	background-color: #fff;
+    box-shadow: 0 0 4px #d2d2d2;
+    position: relative;
+	margin: 20px auto 0px auto;
+}
+.topic_page_mask {
+	
+}
+
+.template_page {
+	margin-bottom: 20px;
+	overflow: hidden;
+}
+.num_page {
+	color: #777;
+    font-size: 20px;
+    font-weight: bold;
+    left: 10px;
+    position: absolute;
+    top: 10px;
+}
+.ks-layer {
+	float: left;
+	width: 36px;
+	height: 50px;
+	border: 1px solid #777;
+	margin-bottom: 7px;
+    margin-right: 11px;
+	position: relative;
+	cursor: pointer;
+}
+.ks-layer>div {
+	background-color: #ccc;
+    border: 1px solid #777;
+    display: inline-block;
+    padding: 10px;
+    position: absolute;
+}
+.ks-layer-center>div {
+	left: 50%;
+    margin-left: -10px;
+    margin-top: -10px;
+    padding-left: 10px;
+    padding-right: 10px;
+    top: 50%;
+}
+.ks-layer-leftup>div {
+	left: -1px;
+    top: -1px;
+}
+.ks-layer-leftdown>div {
+	bottom: -1px;
+    left: -1px;
+}
+.ks-layer-rightup>div {
+	right: -1px;
+    top: -1px;
+}
+.ks-layer-down>div {
+	bottom: 6%;
+    left: 50%;
+    margin-left: -10px;
+    padding-left: 10px;
+    padding-right: 10px;
+}
+.ks-layer-up>div {
+	left: 50%;
+    margin-left: -10px;
+    margin-top: -1px;
+    padding-left: 10px;
+    padding-right: 10px;
+}
+.ks-layer-top>div {
+	left: 50%;
+    margin-left: -21px;
+    padding-left: 20px;
+    padding-right: 20px;
+    top: 3px;
+}
+.ks-layer-bottom>div {
+	left: 50%;
+    margin-left: -21px;
+    padding-left: 20px;
+    padding-right: 20px;
+    bottom: 3px;
+}
+.ks-layer-rightdown>div {
+	bottom: -1px;
+    right: -1px;
+}
+.ks-layer-box label {
+	display: inline;
+    margin: 0;
+    padding: 0;
+}
+.ks-layer-radio label {
+	font-size: 9px;
+	width: 44px;
+}
+.ks-move-rest {
+	border: 1px solid #777;
+    height: 50px;
+    margin-bottom: 18px;
+    position: relative;
+    top: 7px;
+    width: 50px;
+}
+.ks-move-rest .black {
+	background-color: #ccc;
+    height: 100%;
+    width: 100%;
+}
+.ks-move-left {
+	border: 1px solid #777;
+    height: 30px;
+    left: -16px;
+    margin-bottom: 28px;
+    margin-top: 10px;
+    position: relative;
+    width: 65px;
+}
+.ks-move-left div {
+	float: left;
+    line-height: 28px;
+    text-align: center;
+    width: 31px;
+}
+.ks-move-left .black{
+	background-color: #ccc;
+    height: 28px;
+    width: 32px;
+}
+.ks-move-top {
+	border: 1px solid #777;
+	height: 65px;
+    width: 30px;
+	margin-bottom: 5px;
+}
+.ks-move-top .black {
+	background-color: #ccc;
+    height: 32px;
+    width: 28px;
+}
+.ks-move-top div {
+	float: left;
+    height: 31px;
+    padding-top: 7px;
+    text-align: center;
+    width: 28px;
+}
+.topic_page  a {
+	color: #666;
+    display: block;
+    font-size: 80px;
+    line-height: 480px;
+    text-align: center;
+    text-decoration: none;
+}
+.topic_page a:hover {
+	color: #999;
+}
+#create_page {
+	position: relative;
+    top: -35px;
+}
+.times {
+	color: #333;
+    display: block;
+    font-size: 16px;
+    position: absolute;
+    right: 10px;
+    top: 6px;
+    z-index: 1;
+}
+.edit {
+	background-color: #fff;
+    color: #777;
+    font-size: 70px;
+    height: 100%;
+    opacity: 0.61;
+    text-align: center;
+    width: 100%;
+    z-index: 10000;
+	cursor: pointer;
+}
+.edit i {
+	line-height: 480px;
+}
+.topic_button {
+	z-index: 0;
+}
+.background_image {
+	display: block;
+    overflow: hidden;
+    width: 100%;
+    z-index: 0;
+	position: absolute;
+}
+.ks-screen{width:220px;height:392px;background-color:#eee;float:left;margin-right:20px;position:relative;overflow:hidden;margin-bottom:20px;}
+.swiper-container {width:100%; height:100%; position:absolute;}
+.upper_image {position: absolute;}
+.button_image {position: absolute;}
+#set_screen {background-color: #fff;}
+.mask {background-color: #fff;height: 100%;opacity: 0.5;position: absolute;width: 100%;display:none;cursor: move;}
+.op {position: absolute;right: 5px;top: 5px;display:none;}
+.op div {border:1px solid #666;margin-bottom:5px;color:#666;cursor:pointer;font-family:arial;padding:0 5px;background-color:#fff;}
+.op div:hover {color:#000;}
+#qrcode {background-color: #fff;box-shadow: 0 0 30px #d2d2d2;color: red;left: 40%; padding: 5px;position: fixed;text-align: center;top: 10%;}
+#qrcode img {width: 250px;}
+#qrcode .closed {cursor: pointer;font-size: 14px; padding: 0 7px;position: absolute;right: 0;top: 0;}
+.ks-dd-dragging {position: relative;}
+.radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline {margin-left: 0px;}
+.image-layer {background-color: #F1F1F1;padding: 10px;position: relative;margin-bottom:5px;box-shadow:0 0 2px #d2d2d2;}
+.image-layer a{display: block;position: absolute;right: 5px;top: 10px;}
+.image-layer-set {margin-top: 10px; display:none;}
+.js_add_layer {bottom: -20px;position: absolute;}
+.create_page_button {text-align:center;color:#999;cursor:pointer;}
+.create_page_button:hover {color:#000;}
+.create_page_button i {font-size: 30px;position: relative;top: 40%;}
+.ks-input-page {background-color:#ccc;}
+.ks-topic-bg-image {background-position: 0 0;}
+</style>
+
+
+<div id="activity_container">
+
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<form id="activity_form">
+<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+<div id="screens" class="panel panel-default">
+	<div class="panel-body">
+		<?php $_from = $this->_tpl_vars['pageData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
+?>
+		<?php if (! $this->_tpl_vars['item']['input_page']): ?>
+		<div class="ks-screen ks-screen-p">
+			<?php if ($this->_tpl_vars['item']['bgimage_url']): ?>
+			<img class="background_image" style="" src="<?php echo $this->_tpl_vars['item']['bgimage_url']; ?>
+" >
+			<?php endif; ?>
+			
+			<?php $_from = $this->_tpl_vars['item']['layers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['layer']):
+?>
+			<?php if ($this->_tpl_vars['layer']['url']): ?>
+				<?php if ($this->_tpl_vars['layer']['link']): ?>
+				<a href="<?php echo $this->_tpl_vars['item']['button_link']; ?>
+">
+				<?php endif; ?>
+				<img class="upper_image" style=
+				"
+				width:<?php echo $this->_tpl_vars['layer']['width']; ?>
+px;
+				height:<?php echo $this->_tpl_vars['layer']['height']; ?>
+px;
+				<?php echo $this->_tpl_vars['layer']['style']; ?>
+
+				"
+				src="<?php echo $this->_tpl_vars['layer']['url']; ?>
+"
+				>
+				<?php if ($this->_tpl_vars['layer']['link']): ?>
+				</a>
+				<?php endif; ?>
+			<?php endif; ?>
+			<?php if ($this->_tpl_vars['layer']['video_url']): ?>
+				<div class="layer_anim" style="width:<?php echo $this->_tpl_vars['layer']['video_width']; ?>
+px;height:<?php echo $this->_tpl_vars['layer']['video_height']; ?>
+px;<?php echo $this->_tpl_vars['layer']['style']; ?>
+;background-color:#ccc;color:#fff;font-size:20px;text-align:center;line-height:<?php echo $this->_tpl_vars['layer']['video_height']; ?>
+px;" >视频</div>
+			<?php endif; ?>
+			<?php endforeach; endif; unset($_from); ?>
+			
+			<input name="p[]" type="hidden" value='<?php echo $this->_tpl_vars['item']['json']; ?>
+' />
+			<div class="mask"></div>
+			<div class="op">
+				<div class="modify">修改</div>
+				<div class="delete">删除</div>
+			</div>
+		</div>
+		<?php else: ?>
+		<div class="ks-screen ks-screen-p ks-input-page">
+			<div style="position:absolute;top:45%;text-align:center;width:100%;color:#999;">表单页</div>
+			<input name="p[]" type="hidden" value='<?php echo $this->_tpl_vars['item']['json']; ?>
+' />
+			<div class="mask"></div>
+			<div class="op">
+				<div class="delete">删除</div>
+			</div>
+		</div>
+		<?php endif; ?>
+		<?php endforeach; endif; unset($_from); ?>
+		<div id="ks_create_screen" class="ks-screen create_page_button create_topic_page_button">
+            <i class="fa fa-plus"></i>
+        </div>
+	</div>
+	<div class="clear"></div>
+</div>
+<a id="save_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存</a>
+</form>
+<div class="clear"></div>
+	<div class="create_page_box panel panel-default" style="margin-top: 40px;">
+		<div class="panel-body">
+			<div class="num_page">N1</div>
+			<a href="javascript:;" class="times create_page_closed"> x </a>
+			<div class="row">
+				<div class="col-md-6" style="position: sticky; top: 50px;">
+					<!-- 可视化页面 -->
+					<div class="template_page"></div>
+				</div>
+				<!-- 表单 begin -->
+				<div class="col-md-6">
+					<div class="block_15"></div>
+					<div class="create_page_input_box"></div>
+					<a href="javascript:;" class="js_add_layer">增加一个图层 +</a>
+				</div>
+				<!-- 表单 end -->
+			</div>
+			<p></p>
+			<div style="text-align:center;margin-top:40px;">
+			<a href="javascript:;" class="create_page_submit button button-primary button-rounded">保存</a>
+			<a href="javascript:;" class="create_page_closed button  button-rounded">取消</a>
+			</div>
+		</div>
+	</div>
+</div>
+
+<script>
+var tmpPG, tmpPageData = {'layers': {}}, modify_ks_screen;
+KISSY.use('node, io, op_dever/topic-page-2, json, event, dom, dd, dd/plugin/scroll, dd/plugin/proxy, xtemplate', function (S, Node, IO, TopicPage, JSON, Event, DOM, DD, Scroll, Proxy, XTemplate) {
+	var $ = S.all;
+	var K = KindEditor;
+	
+	tmpPG = new TopicPage('.template_page');
+	
+	//创建专题页面
+	$(".create_topic_page_button").on('click', function () {
+		create_page_box_show();
+		
+		var numberPage = $("#screens .ks-screen-p").length;
+		$(".num_page").text('N' + ++numberPage);
+		
+		var id = genid();
+		var data = {'id': id};
+		var render = getBackgroundInputTpl(data);
+		$(".create_page_input_box").append(render);
+		bind_upload(id);
+	});
+	//创建表单页面
+	/*
+	$(".create_input_page_button").on('click', function () {
+		if ($(".ks-input-page").length > 0) {
+			alert('只能创建一个表单页面');
+			return;
+		}
+		
+		var data = '{"input_page":1}';
+		$('<div class="ks-screen ks-screen-p ks-input-page">\
+				<div style="position:absolute;top:45%;text-align:center;width:100%;color:#999;">表单页</div>\
+				<input name="p[]" type="hidden" value=\''+data+'\' />\
+				<div class="mask"></div>\
+				<div class="op">\
+					<div class="delete">删除</div>\
+				</div>\
+			</div>\
+		').insertBefore($("#ks_create_screen"));
+	});
+	*/
+	
+	//增加图层
+	$(".js_add_layer").on('click', function () {
+		var id = genid();
+		var key = $(".create_page_input_box .image-layer").length - 1;
+		var data = {'id': id, 'key': key};
+		var render = getLayerInputTpl(data);
+		$(".create_page_input_box").append(render);
+		bind_upload(id, key);
+	});
+	
+	//关闭创建页面
+	$(".create_page_closed").on('click', function () {
+		create_page_box_hide();
+	});
+	
+	//显示修改、删除按钮
+	Event.delegate(document,'mouseenter','.ks-screen-p', function (e) {
+		$(".mask", $(e.currentTarget)).show();
+		$(".op", $(e.currentTarget)).show();
+	});
+	//隐藏修改、删除按钮
+	Event.delegate(document,'mouseleave','.ks-screen-p', function (e) {
+		$(".mask", $(e.currentTarget)).hide();
+		$(".op", $(e.currentTarget)).hide();
+	});
+	//修改页面
+	Event.delegate(document,'click','.op .modify', function (e) {
+		var ks_screen_p = $(e.currentTarget).parent().parent();
+		
+		var numberPage = DOM.index("#screens .ks-screen", ks_screen_p);
+		$(".num_page").text('N' + ++numberPage);
+		
+		var data = JSON.parse($('input', ks_screen_p).val());
+		data.modify_screen = ks_screen_p;
+		create_page_box_show();
+		tmpPageData = data;
+		tmpPG.setData(tmpPageData).render();
+		
+		//渲染背景表单
+		var id = genid();
+		var render = getBackgroundInputTpl({'id': id, 'bgimage_url': tmpPageData.bgimage_url, 'bgimage_isShow': tmpPageData.bgimage_isShow});
+		$(".create_page_input_box").append(render);
+		bind_upload(id);
+		
+		//渲染图层表单
+		for (var key in tmpPageData.layers) {
+			var id = genid();
+			var key = $(".create_page_input_box .image-layer").length - 1;
+			var data = tmpPageData.layers[key];
+			data.id = id;
+			data.key = key;
+			var render = getLayerInputTpl(data);
+			$(".create_page_input_box").append(render);
+			bind_upload(id, key);
+		}
+	});
+	//删除页面
+	Event.delegate(document,'click','.op .delete', function (e) {
+		var ks_screen_p = $(e.currentTarget).parent().parent();
+		ks_screen_p.remove();
+	});
+	// 展开图层选项卡
+    Event.delegate(document,'click','.switch_btn', function (e) {
+		$(e.currentTarget).parent(2).all('.image-layer-set').toggle();
+	});
+	//不显示背景图片
+	Event.delegate(document,'click','.bgimage_checkbox', function (e) {
+		var self = $(e.currentTarget);
+		if (S.isUndefined(self.attr('checked'))) {
+			tmpPageData.bgimage_isShow = false;
+			tmpPG.setData(tmpPageData).render();
+		} else {
+			tmpPageData.bgimage_isShow = true;
+			tmpPG.setData(tmpPageData).render();
+		}
+	});
+	//不显示图层
+	Event.delegate(document,'click','.layer_checkbox', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(self.attr('checked'))) {
+			if (S.isUndefined(tmpPageData.layers[key])) {
+				tmpPageData.layers[key] = {};
+			}
+			tmpPageData.layers[key].isShow = false;
+			tmpPG.setData(tmpPageData).render();
+		} else {
+			tmpPageData.layers[key].isShow = true;
+			tmpPG.setData(tmpPageData).render();
+		}
+	});
+    //布局
+	Event.delegate(document,'click','.position', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(tmpPageData.layers[key])) {
+			tmpPageData.layers[key] = {};
+		}
+		tmpPageData.layers[key].position = self.val();
+		tmpPG.setData(tmpPageData).render();
+	});
+    //视频
+    Event.delegate(document,'focusout','.video_url,.video_width,.video_height', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(tmpPageData.layers[key])) {
+			tmpPageData.layers[key] = {};
+		}
+		
+		var parent = self.parent(2);
+		var image_layer = self.parent('.image-layer');
+		var video_url = parent.all('.video_url').val();
+		if (!video_url) {
+			delete tmpPageData.layers[key].video_url;
+			delete tmpPageData.layers[key].video_width;
+			delete tmpPageData.layers[key].video_height;
+			tmpPG.setData(tmpPageData).render();
+			
+			// 标识下图片图层
+			image_layer.all('img').show();
+			image_layer.all('.ke-inline-block').show();
+			image_layer.all('small').show();
+			image_layer.all('.span-video').remove();
+			return ;
+		}
+		
+		//清空图片信息
+		delete tmpPageData.layers[key].url;
+		delete tmpPageData.layers[key].width;
+		delete tmpPageData.layers[key].height;
+		
+		//添加视频信息
+		tmpPageData.layers[key].video_url = video_url;
+		tmpPageData.layers[key].video_width = parent.all('.video_width').val();
+		tmpPageData.layers[key].video_height = parent.all('.video_height').val();
+		
+		//标识下视频图层
+		if (image_layer.all('.span-video').length <= 0) {
+			image_layer.all('img').hide().attr('src', '');
+			image_layer.all('.ke-inline-block').hide();
+			image_layer.all('small').hide();
+			$('<span class="span-video">视频</span>').insertBefore(image_layer.all('img'));
+		}
+		
+		tmpPG.setData(tmpPageData).render();
+	});
+    //动作
+    Event.delegate(document,'click','.action', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(tmpPageData.layers[key])) {
+			tmpPageData.layers[key] = {};
+		}
+		tmpPageData.layers[key].action = self.val();
+		tmpPG.setData(tmpPageData).render();
+	});
+    //链接
+    Event.delegate(document,'focusout','.link', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(tmpPageData.layers[key])) {
+			tmpPageData.layers[key] = {};
+		}
+		tmpPageData.layers[key].link = self.val();
+		tmpPG.setData(tmpPageData).render();
+	});
+    //使用表单
+    Event.delegate(document,'click','.input_btn', function (e) {
+		var self = $(e.currentTarget);
+		var key = $(e.currentTarget).attr('data-key');
+		if (S.isUndefined(tmpPageData.layers[key])) {
+			tmpPageData.layers[key] = {};
+		}
+		
+		if (self.attr('checked')) {
+			tmpPageData.layers[key].input_btn = 'yes';
+		} else {
+			tmpPageData.layers[key].input_btn = 0;
+		}
+		
+		tmpPG.setData(tmpPageData).render();
+	});
+    
+	/** 提交单页面 **/
+	$(".create_page_submit").on('click', function () {
+		var data = tmpPG.getData();
+		if (S.isEmptyObject(data)) {
+			alert('请先设置页面内容!');
+			return false;
+		}
+		
+		//修改的页面
+		var modify_screen = {};
+		if (!S.isUndefined(data.modify_screen) && !S.isEmptyObject(data.modify_screen)) {
+			modify_screen = data.modify_screen;
+			delete data.modify_screen;
+		}
+		
+		new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetPage&a=GetPreviewPage'
+			, data: {'pageData': JSON.stringify(data)}
+			, success: function (data) {
+				if (data.ok) { //ok
+					var preview_page_html = data.msg;
+					if (!S.isEmptyObject(modify_screen)) { //修改
+						modify_screen.replaceWith(preview_page_html);
+					} else { //创建
+						$(preview_page_html).insertBefore($("#ks_create_screen"));
+					}
+					
+					closed_create_page();
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+    
+	/** 保存 **/
+	var save_submit_status = false;
+    function save_submit_active() {
+    	save_submit_status = true;
+    	$("#save_submit").addClass('active').all('i').show();
+    }
+    function save_submit_default() {
+    	save_submit_status = false;
+    	$("#save_submit").removeClass('active').all('i').hide();
+    }
+    $("#save_submit").on('click', function () {
+    	if (save_submit_status) {
+    		return false;
+    	}
+    	save_submit_active();
+    	
+    	var pageData = IO.serialize("#activity_form");
+    	
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetPage&a=ReqUpCutScreen'
+			, data: pageData
+			, success: function (data) {
+				if (data.ok) { //ok
+					alert('保存成功');
+					window.location.reload();
+				} else {
+					alert('操作失败,原因:'+data.msg);
+					save_submit_default();
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+				save_submit_default();
+			}
+			, dataType: "json"
+		});
+    });
+	
+	function closed_create_page() {
+		create_page_box_hide();
+	}
+	// 显示创建页面
+	function create_page_box_show() {
+		$('.create_page_box').show().attr('data-status', 'show');
+		$(".create_page_input_box").empty();
+		tmpPageData = {'layers': {}};
+		tmpPG.setData(tmpPageData).render();
+		
+		$(window).animate({
+            scrollTop:$(".create_page_box").offset().top
+        }, 0.3, "easeOut");
+	}
+	// 隐藏创建页面
+	function create_page_box_hide() {
+		$(".create_page_box").hide().attr('data-status', 'hide');
+		$(".create_page_input_box").empty();
+		tmpPageData = {'layers': {}};
+		tmpPG.setData(tmpPageData).render();
+	}
+	
+	// 获取背景表单模板 !!!data中必须要有的字段 id
+	function getBackgroundInputTpl(data) {
+		var tpl = $("#background_input_tpl").val();
+		var render = new XTemplate(tpl).render(data);
+		return render;
+	}
+	
+	// 获取图层表单模板 !!!data中必须要有的字段 id、key
+	function getLayerInputTpl(data) {
+		var tpl = $("#layer_input_tpl").val();
+		var render = new XTemplate(tpl).render(data);
+		return render;
+	}
+	
+	// 生成唯一串
+	function genid() {
+		return Math.floor(2147483648 * Math.random()).toString(36);
+	}
+    
+	/**
+	 * 绑定上传按钮
+	 * @param string id 选择器唯一标示
+	 * @param int key 图片的key(第几个图层)
+	 */
+	function bind_upload(id, key) {
+		var image_checkbox_selector = '.image_'+id+'_checkbox',
+			image_imgtag_selector = '.image_'+id+'_imgtag',
+			upload_btn_selector = '.image_'+id+'_upload';
+		
+		var uploadbutton = K.uploadbutton({
+			button : K(upload_btn_selector)[0],
+			fieldName : 'imgFile',
+			url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image&size=1',
+			afterUpload : function(data) {
+				if (data.error === 0) {
+					$(image_imgtag_selector).attr('src', data.url);
+					$(image_checkbox_selector).attr('checked', true);
+					
+					if ($(image_checkbox_selector).attr('data-type') == 'bgimage') {
+						tmpPageData.bgimage_url = data.url;
+					} else {
+						if (S.isUndefined(tmpPageData.layers[key])) {
+							tmpPageData.layers[key] = {};
+						}
+						tmpPageData.layers[key].url = data.url;
+						tmpPageData.layers[key].width = data.width;
+						tmpPageData.layers[key].height = data.height;
+					}
+					tmpPG.setData(tmpPageData).render();
+				} else {
+					alert(data.message);
+				}
+			},
+			afterError : function(str) {
+				alert('自定义错误信息: ' + str);
+			}
+		});
+		uploadbutton.fileBox.change(function(e) {
+			uploadbutton.submit();
+		});
+	}
+	
+	/*拖拽产品*/
+	var DraggableDelegate = DD.DraggableDelegate, //拖拽
+        DroppableDelegate = DD.DroppableDelegate; //放置
+	
+   	//拖拽节点
+	var dragDelegate = new DraggableDelegate({
+		container:"#screens .panel-body",
+		move: true,
+		selector:'.ks-screen-p',
+		plugins: [
+			new Proxy({
+				moveOnEnd: false,
+				destroyOnEnd: true
+			}), 
+			new Scroll()
+		]
+	});
+        
+	//放置节点
+	var dropDelegate = new DroppableDelegate({
+        container:"#screens .panel-body",
+        selector:'.ks-screen-p'
+    });
+	
+    //在droppable实例上移动时触发
+    dragDelegate.on("dragover", function (ev) {
+    	var drag = ev.drag;
+        var drop = ev.drop;
+        var dragNode = drag.get("dragNode"),
+            dropNode = drop.get("node");
+        
+		//横轴中线位置
+		var middleDropX = (dropNode.offset().left * 2 + dropNode.width()) / 2;
+		//当前鼠标位置
+		if (ev.pageX > middleDropX) {
+			var next = dropNode.next();
+			if (next && next[0] == dragNode[0]) {
+			} else {
+				dragNode.insertAfter(dropNode);
+			}
+		} else {
+			var prev = dropNode.prev();
+			if (prev && prev[0] == dragNode[0]) {
+			} else {
+				dragNode.insertBefore(dropNode);
+			}
+		}
+    });
+});
+
+</script>
+
+<!-- 背景表单模板 -->
+<textarea id="background_input_tpl" style="display:none;">
+	<div class="image-layer">
+		<div class="form-group" style="margin-bottom:0px;">
+			<input class="image_{{id}}_checkbox bgimage_checkbox" type="checkbox" data-type="bgimage" {{#if isShow!==false}}checked{{/if}} >
+			<img class="image_{{id}}_imgtag" src="{{bgimage_url}}" style="width:30px;height:20px;background-color:#ccc;">
+			<input class="image_{{id}}_upload" type="button" value="选择背景图片" />
+			<small class="text-danger">JPG、PNG,640*1140,小于100k</small>
+		</div>
+	</div>
+</textarea>
+
+<!-- 图层表单模板 -->
+<textarea id="layer_input_tpl" style="display:none;">
+<div class="image-layer">
+	<div class="form-group" style="margin-bottom:0px;">
+		<input class="image_{{id}}_checkbox layer_checkbox" type="checkbox" data-type="layer" data-key="{{key}}" {{#if isShow!==false}}checked{{/if}} >
+		{{#if video_url}}
+		<span class="span-video">视频</span>
+		{{/if}}
+		<img class="image_{{id}}_imgtag" src="{{url}}" style="width:30px;height:20px;background-color:#ccc;{{#if video_url}}display:none;{{/if}}">
+		<input class="image_{{id}}_upload" type="button" value="选择图片" />
+		<small class="text-danger" {{#if video_url}}style="display:none;"{{/if}}>仅支持PNG透明图片,小于30k</small>
+		<a class="switch_btn" href="javascript:;">设置</a>
+	</div>
+	<div class="image-layer-set">
+		<div class="form-group"><label class="control-label rowlabel">或填写视频地址:</label>
+		<div class="form-inline">
+			<div class="form-group">
+				<input class="video_url form-control" type="text" style="width:200px;" data-key="{{key}}" value="{{video_url}}" placeholder="填写视频flash地址">
+			</div>
+			<div class="form-group">
+				<input class="video_width form-control" type="text" style="width:57px;" data-key="{{key}}" value="{{#if video_width}}{{video_width}}{{else}}300{{/if}}" placeholder="宽(px)">
+			</div>
+			<div class="form-group">
+				<input class="video_height form-control" type="text" style="width:57px;" data-key="{{key}}" value="{{#if video_height}}{{video_height}}{{else}}250{{/if}}" placeholder="高(px)">
+			</div>
+		</div>
+		</div>
+		<div class="form-group">
+			<label class="control-label rowlabel">布局:</label>
+			<div class="ks-layer-box">
+				<label for="layer_center_{{id}}"><div class="ks-layer ks-layer-center"><div></div></div></label>
+				<label for="layer_up_{{id}}"><div class="ks-layer ks-layer-up"><div></div></div></label>
+				<label for="layer_down_{{id}}"><div class="ks-layer ks-layer-down"><div></div></div></label>
+				<label for="layer_leftup_{{id}}"><div class="ks-layer ks-layer-leftup"><div></div></div></label>
+				<label for="layer_leftdown_{{id}}"><div class="ks-layer ks-layer-leftdown"><div></div></div></label>
+				<label for="layer_rightup_{{id}}"><div class="ks-layer ks-layer-rightup"><div></div></div></label>
+				<label for="layer_rightbottom_{{id}}"><div class="ks-layer ks-layer-rightdown"><div></div></div></label>
+			</div>
+			<div class="ks-layer-radio clear">
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_center_{{id}}" value="center" data-key="{{key}}" {{#if position==='center'}}checked{{/if}} > 居中
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_up_{{id}}" value="up" data-key="{{key}}" {{#if position==='up'}}checked{{/if}} > 居上
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_down_{{id}}" value="down" data-key="{{key}}" {{#if position==='down'}}checked{{/if}} > 居下
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_leftup_{{id}}" value="leftup" data-key="{{key}}" {{#if position==='leftup'}}checked{{/if}} > 左上
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_leftdown_{{id}}" value="leftdown" data-key="{{key}}" {{#if position==='leftdown'}}checked{{/if}} > 左下
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_rightup_{{id}}" value="rightup" data-key="{{key}}" {{#if position==='rightup'}}checked{{/if}} > 右上
+				</label>
+				<label class="radio-inline">
+					<input class="position" name="position_{{key}}" type="radio" id="layer_rightbottom_{{id}}" value="rightdown" data-key="{{key}}" {{#if position==='rightdown'}}checked{{/if}} > 右下
+				</label>
+			</div>
+		</div>
+		<div class="form-group">
+			<label class="control-label rowlabel">动作:</label>
+			<div class="ks-action-radio clear" style="font-size:9px;">
+				<label class="radio-inline">
+					<div>•</div>
+					<input name="action_{{key}}" class="action" type="radio" value="rest" data-key="{{key}}" {{#if action==='rest'}}checked{{/if}} > 静止
+				</label>
+				<label class="radio-inline">
+					<div>←</div>
+					<input name="action_{{key}}" class="action" type="radio" value="left" data-key="{{key}}" {{#if action==='left'}}checked{{/if}} > 水平移动
+				</label>
+				<label class="radio-inline">
+					<div>↑</div>
+					<input name="action_{{key}}" class="action" type="radio" value="up" data-key="{{key}}" {{#if action==='up'}}checked{{/if}} > 纵向移动
+				</label>
+			</div>
+		</div>
+		<div class="form-group">
+			<div class="row">
+				<div class="col-md-6">
+					<label class="control-label rowlabel">使用图片链接:</label>
+					<input class="link form-control" type="text" style="width:300px;" data-key="{{key}}" value="{{link}}">
+				</div>
+			</div>
+		</div>
+		<div class="form-group">
+			<div class="checkbox">
+				<label class="control-label rowlabel">使用表单浮层(使用互动设置中的表单)<input class="input_btn" type="checkbox" data-key="{{key}}" value="yes" {{#if input_btn==='yes'}}checked{{/if}}></label>
+			</div>
+		</div>
+	</div>
+</div>
+</textarea>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div style="clear:both;"></div>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 72 - 0
tm/compile_dir/%%0C^0C9^0C9CEC8E%%left.html.php

@@ -0,0 +1,72 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-22 09:30:25
+         compiled from ./admin/left.html */ ?>
+<div id="adminmenuback"></div>
+<div id="adminmenuwrap">
+	<div class="logo"><?php echo $this->_tpl_vars['web_cfg']['name']; ?>
+</div>
+	<ul id="adminmenu">
+		<li class="menu-list memberinfo">
+			您好,<?php echo $this->_tpl_vars['backuser']['name']; ?>
+!
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'platfromhome'): ?>active<?php endif; ?>">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_index" class="menu-name"><i class="fa fa-dashboard"></i><span>活动首页</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'quickpublish'): ?>active<?php endif; ?>">
+			<a href="javascript:;" class="menu-name"><i class="fa fa-truck"></i><span>快捷发布</span></a>
+			<ul class="sub-menu-list">
+				<?php $_from = $this->_tpl_vars['pagePublicData']['rapidEntranceUrl']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
+?>
+				<li><a href="<?php echo $this->_tpl_vars['item']; ?>
+" <?php if ($this->_tpl_vars['index'] == $this->_tpl_vars['typeDesc']): ?>class="current"<?php endif; ?> > <?php echo $this->_tpl_vars['index']; ?>
+ </a></li>
+				<?php endforeach; endif; unset($_from); ?>
+			</ul>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'mypublish'): ?>active<?php endif; ?>">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Activity_ActivityList&a=PageMyList" class="menu-name"><i class="fa fa-hand-o-right"></i><span>我的活动</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'mypublishdel'): ?>active<?php endif; ?>">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Activity_ActivityList&a=PageDelMyList" class="menu-name"><i class="fa  fa-bitbucket"></i><span>活动回收站</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'platformusers'): ?>active<?php endif; ?>">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_UserInfo&a=PageList" class="menu-name"><i class="fa fa-users"></i><span>平台用户</span></a>
+		</li>
+		<?php if ($this->_tpl_vars['IS_ADMIN']): ?>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'platformlist'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_index&a=PageList" class="menu-name"><i class="fa fa-bars"></i><span>平台列表</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'categorylist'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Category_index&a=PageList" class="menu-name"><i class="fa fa-book"></i><span>分类管理</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'focuslist'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Focus_index&a=PageList" class="menu-name"><i class="fa fa-bell"></i><span>相关推荐</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'userslist'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_backUser&a=userList" class="menu-name"><i class="fa fa-user"></i><span>帐号管理</span></a>
+		</li>
+		<?php endif; ?>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'bulletin'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_Bulletin&a=PageList" class="menu-name"><i class="fa fa-volume-up"></i><span>公告管理</span></a>
+		</li>
+		<li class="menu-list <?php if ($this->_tpl_vars['menu_active']['name'] == 'modifypassword'): ?>active<?php endif; ?>"">
+			<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_BackUser&a=ModifyPassword&uid=<?php echo $this->_tpl_vars['backuser']['uid']; ?>
+" class="menu-name"><i class="fa fa-lock"></i><span>修改密码</span></a>
+		</li>
+		<li class="menu-list">
+			<a id="back_logout" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_BackUser&a=logout" class="menu-name"><i class="fa fa-sign-out"></i><span>退出登录</span></a>
+		</li>
+			</ul>
+</div>

+ 124 - 0
tm/compile_dir/%%13^13E^13E3BAFF%%common_right.html.php

@@ -0,0 +1,124 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:11:56
+         compiled from ./admin/activity/common_right.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', './admin/activity/common_right.html', 72, false),)), $this); ?>
+<div class="activity_right">
+	<div id="" class="panel panel-default" >
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">活动二维码</h3></div>
+		<div class="panel-body" style="text-align: center;">
+			<div class="ks-activity-right-tabs">
+			<div class="ks-tabs-bar">
+				<?php $_from = $this->_tpl_vars['pagePublicData']['EventsDefaultCode']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['qrcode'] = array('total' => count($_from), 'iteration' => 0);
+if ($this->_foreach['qrcode']['total'] > 0):
+    foreach ($_from as $this->_tpl_vars['qrcode']):
+        $this->_foreach['qrcode']['iteration']++;
+?>
+				<?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
+				<div class="ks-tabs-tab <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>ks-tabs-tab-selected<?php endif; ?>"><?php echo $this->_tpl_vars['qrcode']['name']; ?>
+列表</div>
+				<?php endif; ?>
+				<?php endforeach; endif; unset($_from); ?>
+			</div>
+			<div class="ks-tabs-body">
+				<?php $_from = $this->_tpl_vars['pagePublicData']['EventsDefaultCode']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['qrcode'] = array('total' => count($_from), 'iteration' => 0);
+if ($this->_foreach['qrcode']['total'] > 0):
+    foreach ($_from as $this->_tpl_vars['qrcode']):
+        $this->_foreach['qrcode']['iteration']++;
+?>
+				<?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
+				<div class="ks-tabs-panel <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>ks-tabs-panel-selected<?php endif; ?>">
+					<img src="<?php echo $this->_tpl_vars['qrcode']['img']; ?>
+" width="200">
+					<div class="form-group" style="text-align:left;">
+					<label class="control-label"><?php echo $this->_tpl_vars['qrcode']['name']; ?>
+列表地址:</label>
+					<input type="text" class="form-control activity_right_url_input" value="<?php echo $this->_tpl_vars['qrcode']['url']; ?>
+">
+					</div>
+				</div>
+				<?php endif; ?>
+				<?php endforeach; endif; unset($_from); ?>
+			</div>
+			</div>
+		</div>
+	</div>
+	<div id="activity_type_box" class="panel panel-default activity_info">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">活动信息</h3></div>
+		<div class="panel-body" >
+			<div class="">
+				<label class="control-label">活动名称:</label>
+				<input type="text" value="<?php echo $this->_tpl_vars['eventData']['events_name']; ?>
+" style="border:0px none;padding:0px;font-size:12px;" >
+			</div>
+			<div class="">
+				<label class="control-label">活动类型:</label>
+				<?php echo $this->_tpl_vars['typeData'][$this->_tpl_vars['eventData']['type']]['desc']; ?>
+
+			</div>
+			<div class="">
+				<label class="control-label">进行状态:</label>
+				<span class="text-muted">
+				<?php if (time ( ) < $this->_tpl_vars['eventData']['begin_time']): ?>
+					<span style="color:#5151A2;">未开始</span>
+					<?php endif; ?>
+					<?php if (time ( ) > $this->_tpl_vars['eventData']['begin_time'] && time ( ) < $this->_tpl_vars['eventData']['end_time']): ?>
+					<span style="color:#00EC00;">进行中</span>
+					<?php endif; ?>
+					<?php if (time ( ) > $this->_tpl_vars['eventData']['end_time']): ?>
+					<span style="color:red;">结束</span>
+				<?php endif; ?>
+				</span>
+			</div>
+			<div class="">
+				<label class="control-label">发布状态:</label>
+				<?php if ($this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['kw'] == 'EVENT_DISPLAY_SHOW'): ?>
+				<span style="color:#00EC00"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
+</span>
+				<?php else: ?>
+				<span style="color:red"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
+</span>
+				<?php endif; ?>
+			</div>
+			<div class="">
+				<label class="control-label">是否出现在列表中:</label>
+				<?php if ($this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['kw'] == 'LIST_DISPLAY_SHOW'): ?>
+				<span style="color:#00EC00"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
+</span>
+				<?php else: ?>
+				<span style="color:red"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
+</span>
+				<?php endif; ?>
+			</div>
+			<div class="">
+				<label class="control-label">开始时间:</label>
+				<?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['begin_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
+
+			</div>
+			<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
+			<div>
+				<label class="control-label">结束时间:</label>
+				<?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
+
+			</div>
+			<?php endif; ?>
+		</div>
+	</div>
+</div>
+
+<script>
+$('.create_a').on('click', function () {
+	var url = $(this).attr('url');
+	var requesrUrl = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Index&a=TMPCreateImg';
+	$.ajax({
+		type:'post',
+        url: requesrUrl,
+        data: {url: url},
+        dataType: 'json',
+        success: function(data) {
+        	alert('ok');
+        	location.reload();
+        }
+    });
+});
+</script>

+ 2 - 0
tm/compile_dir/%%17^173^173572F1%%nav.html.php

@@ -0,0 +1,2 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:59:30
+         compiled from nav.html */ ?>

+ 234 - 0
tm/compile_dir/%%18^186^186320FF%%login.html.php

@@ -0,0 +1,234 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-19 17:44:24
+         compiled from admin/backUser/login.html */ ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title><?php if ($this->_tpl_vars['title']): ?><?php echo $this->_tpl_vars['title']; ?>
+<?php endif; ?></title>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/css/admin_style.css">
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/kissy/1.4.0/seed.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/cfg-min.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/kissy-versions.php" charset="utf-8"></script>
+</head>
+<style>
+html {
+    box-sizing: border-box;
+    padding-top: 0;
+}
+body {
+    background: none repeat scroll 0 0 #f1f1f1;
+    color: #444;
+    font-family: "Open Sans",sans-serif;
+    font-size: 13px;
+    line-height: 1.4em;
+    min-width: 0;
+	font-family: "Open Sans",sans-serif;
+}
+#login {
+    margin: auto;
+    padding: 8% 0 0;
+    width: 320px;
+}
+.login h1 {
+    color: #777;
+    font-size: 30px;
+    margin: 0;
+    text-align: center;
+	margin: 0 0 25px;
+}
+.login .message {
+    background-color: #fff;
+    border-left: 4px solid #2ea2cc;
+    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
+}
+#login_error, .login .message {
+    margin-left: 0;
+    padding: 12px;
+}
+.login #login_error {
+    background: none repeat scroll 0 0 #fff;
+    border-left: 4px solid #dd3d36;
+    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
+	display:none;
+}
+.login .form {
+    background: none repeat scroll 0 0 #fff;
+    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
+    font-weight: 400;
+    margin-left: 0;
+    margin-top: 20px;
+    overflow: hidden;
+    padding: 26px 24px 46px;
+}
+#login .form p {
+    margin-bottom: 0;
+}
+.login label {
+    color: #777;
+    font-size: 14px;
+	font-weight: 300;
+}
+.login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
+    background: none repeat scroll 0 0 #fbfbfb;
+}
+.login .form .input, .login input[type="text"] {
+    font-size: 24px;
+    margin: 2px 6px 16px 0;
+    padding: 3px;
+    width: 100%;
+}
+.login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
+    background: none repeat scroll 0 0 #fbfbfb;
+}
+.login .form .input, .login .form input[type="checkbox"], .login input[type="text"] {
+    background: none repeat scroll 0 0 #fbfbfb;
+}
+.login .form .input, .login input[type="text"] {
+    font-size: 24px;
+    margin: 2px 6px 16px 0;
+    padding: 3px;
+    width: 100%;
+}
+.login .form .input, .login input[type="text"] {
+    font-size: 24px;
+    margin: 2px 6px 16px 0;
+    padding: 3px;
+    width: 100%;
+}
+input[type="password"], input[type="text"] {
+    background-color: #fff;
+    border: 1px solid #ddd;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
+    color: #333;
+    outline: 0 none;
+    transition: border-color 0.05s ease-in-out 0s;
+}
+input[type="password"]:focus, input[type="text"]:focus {
+	border-color: #5b9dd9;
+	box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
+}
+.login .form .forgetmenot {
+    float: left;
+    font-weight: 400;
+    margin-bottom: 0;
+}
+.login .form .forgetmenot label {
+    font-size: 12px;
+    line-height: 19px;
+}
+#login .form p.submit {
+    margin: 0;
+    padding: 0;
+}
+#loginform p.submit, .login-action-lostpassword p.submit {
+    border: medium none;
+    margin: -10px 0 20px;
+}
+p.submit {
+    margin-top: 20px;
+    max-width: 100%;
+    padding-top: 10px;
+    text-align: left;
+}
+.button.button-large {
+    background: none repeat scroll 0 0 #2ea2cc;
+    border: 1px solid;
+    border-radius: 3px;
+    box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
+    color: #fff;
+    float: right;
+    height: 30px;
+    line-height: 28px;
+    padding: 0 12px 2px;
+    text-decoration: none;
+    vertical-align: baseline;
+}
+.button-primary:focus, .button-primary:hover {
+	background:#1e8cbe;
+	border-color:#0074a2;
+	-webkit-box-shadow:inset 0 1px 0 rgba(120,200,230,.6);
+	box-shadow:inset 0 1px 0 rgba(120,200,230,.6);
+	color:#fff
+}
+</style>
+<body class="login">
+
+<div id="login">
+	<h1><?php echo $this->_tpl_vars['web_cfg']['name']; ?>
+</h1>
+	<div id="login_error"><strong>错误</strong>:键入的用户名或者密码不正确。<br></div>
+	
+	<div class="form" id="loginform" style="position: static; left: 0px;">
+		<p>
+			<label for="user_login">用户名<br>
+			<input name="name" type="text" size="20" class="input" id="user_login"></label>
+		</p>
+		<p>
+			<label for="user_pass">密码<br>
+			<input name="pwd" type="password" size="20"  class="input" id="user_pass"></label>
+		</p>
+		<p class="forgetmenot">
+			<label for="rememberme">
+				<input type="checkbox" value="forever" id="rememberme" name="rememberme" checked> 记住我的登录信息
+			</label>
+		</p>
+		<p class="submit submit_btn">
+			<input type="submit" value="登录" class="button button-primary button-large" id="wp-submit" name="wp-submit">
+		</p>
+	</div>
+</div>
+
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+  var $ = S.all;
+  
+  $('input').on('keyup', function (ev) {
+		var keyCode = ev.keyCode;
+		if (keyCode == 13) {
+			login();
+		}
+	});
+  
+  $('.submit_btn').on('click', function () {
+	  login();
+  });
+  
+  function login() {
+	  var name = $("input[name=name]").val();
+		var pwd = $("input[name=pwd]").val();
+		new IO({
+			type: "post"
+			, url: '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_BackUser&a=Login'
+			, data: {'username':name,'password':pwd}
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Index';
+				} else {
+					$(".welcome").hide();
+					$("#login_error").show();
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+  }
+  
+  function showError($msg) {
+    $('.alert-danger').html($msg).show();
+  }
+});
+</script>
+
+</body>
+</html>

+ 267 - 0
tm/compile_dir/%%19^19C^19C5EC22%%interactive_question.html.php

@@ -0,0 +1,267 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 19:29:39
+         compiled from admin/activity/interactive_question.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">设置问题</h3></div>
+		
+		<div class="panel-body" style="padding: 10px; display: none;" id="show_div">
+				<div style="margin: 10px; display: none;" >排序:  &nbsp; &nbsp; &nbsp; <font id="f_sort"></font></div>
+				<input type="hidden"  value="<?php echo $this->_tpl_vars['nextSort']; ?>
+"  id="f_sort_h" name="f_sort_h">
+				<div style="margin: 10px;">问题:   &nbsp; &nbsp; &nbsp; <font id="f_question"></font></div>
+				<input type="hidden" value="" id="f_question_h" name="f_question_h">
+				<div style="margin: 10px;">选项类型:  &nbsp; &nbsp; &nbsp; <font id="f_type"></font></div>
+				<div style="margin: 10px;">选项规则:  &nbsp; &nbsp; &nbsp; <font id="f_choice"></font></div>
+				<input type="hidden" value="" id="f_type_h" name="f_type_h">
+				<input type="hidden" value="" id="f_num_h" name="f_num_h">
+				<input type="hidden" value="" id="f_choice_h" name="f_choice_h">
+				<div style="clear:both;"></div>
+				<div id="show_html">
+					
+				</div>
+				
+				<div style="clear:both;"></div>
+				<div style="margin: 10px; text-align: left: ;">
+						<a href="javascript:;"  id="add_but" class="button button-3d button-primary button-rounded">点击保存</a>
+						<div style="text-align: right;"><a href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+&typ=question"  style="text-align: right;"><<返回上一级</a></div>
+				</div>
+				
+				
+				
+		</div>
+		
+		<div id="img_html" style="display:none;">
+				<div class="panel panel-default"  style="padding:10px 10px 0px 10px;">
+						<div class="form-group">
+							<div>
+								<img id="img_url_tag" src="http://placehold.it/200&text=290x(>290)" style="width:100px;" class="img-thumbnail">
+								<input id="img_url_input" name="img_url" type="hidden" value="">
+								<input id="image_upload" type="button" value="选择图片" >
+							</div>
+						</div>
+						<p>  答案: <input type="text" name="img_url_answer"></p>
+					</div>
+		</div>
+		
+		<div id="txt_html" style="display:none;">
+				<div class="panel panel-default" style="padding:10px 10px 0px 10px;">
+					<p>答案: <input type="text" name="txt" id="txt"></p>
+				</div>
+		</div>
+		
+		
+		<div class="panel-body" id="add_div" >
+			<div class="form-group">
+					<p style="display: none;">顺序:<input type="text" id="sort" size="2"  value="<?php echo $this->_tpl_vars['nextSort']; ?>
+" ></p>
+					<p>问题:<input type="text"  id="question"  size="50" ></p>
+					<p>选项:<input type="text"  id ="num" value="0" size="2" >个</p>
+					<p>选项类型:<select name="type" id="type">
+										<option value="img">图片</option>
+										<option value="txt">文字</option>
+								</select>
+					</p>
+					<p>选项规则:<select name="choice" id="choice">
+										<option value="0">单选</option>
+										<option value="1">多选</option>
+								</select>
+					</p>
+					<div>
+						<p style="margin-top: 20px;"><a href="javascript:;" id="add"><i class="fa fa-plus"></i> 点击创建问题</a></p>
+						<div style="text-align: right;"><a href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+"  style="text-align: right;"><<返回上一级</a></div>
+					</div>
+			</div>
+		</div>
+		
+		
+	</div>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div style="clear:both;"></div>
+</form>
+</div>
+
+
+
+<script>
+KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
+	var $ = S.all;
+	$("#add").on('click', function () {
+		var tyepData = {'img':'图片','txt':'文字'};
+		var choiceData = {'1':'多选','0':'单选'};
+		var question = $('#question').val();
+		var sort = $('#sort').val();
+		var num = $('#num').val();
+		var type = $('#type').val();
+		var choice = $('#choice').val();
+		
+		$('#f_sort').html(sort);
+		$('#f_question').html(question);
+		$('#f_type').html(tyepData[type]);
+		$('#f_choice').html(choiceData[choice]);
+		
+		$('#f_sort_h').val(sort);
+		$('#f_question_h').val(question);
+		$('#f_type_h').val(type);
+		$('#f_choice_h').val(choice);
+		$('#f_num_h').val(num);
+		
+		
+		$('#add_div').hide();
+		$('#show_div').show();
+		if(type == 'img'){
+			var inHtml = '';
+			for (var i=1;i<=num;i++){
+				var html = $('#img_html').html();
+				html = html.replace("img_url_tag", "img_url_tag_"+i);
+				html = html.replace("img_url_input", "img_url_input_"+i);
+				html = html.replace("image_upload", "image_upload_"+i);
+				html = html.replace("name=\"img_url", "name=\"img_url_"+i);
+				html = html.replace("img_url_answer", "img_url_answer_"+i);
+				inHtml+=html;
+			}
+			$('#show_html').html(inHtml);	
+			for (var i=1;i<=num;i++){
+				runImg('image_upload_'+i,'img_url_input_'+i,'img_url_tag_'+i);
+			}
+			return ;
+		}
+		
+		if(type=='txt'){
+			var inHtml = '';
+			for (var i=1;i<=num;i++){
+				var html = $('#txt_html').html();
+				html = html.replace("\"txt\"", '"txt_'+i+'"');
+				html = html.replace("\"txt\"", '"txt_'+i+'"');
+				inHtml+=html;
+			}
+			$('#show_html').html(inHtml);
+			return ;
+		}
+	});
+	
+	
+	$("#add_but").on('click', function () {
+		var formData = IO.serialize("#activity_form");
+		new IO({
+  			type: "post"
+  			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetInteractive&a=ReqAddSurveyQuestion'
+  			, data: formData
+  			, success: function (data) {
+  				if (data.ok) { //ok
+  					location.href = VG.conf.root_domain + '?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+';
+  				} else {
+  					alert('操作失败,原因:'+data.msg);
+  				}
+  				return false;
+  			}
+  			, error: function (NULL, textStatus) {
+  				alert("请求服务器失败,原因:"+textStatus);
+  			}
+  			, dataType: "json"
+  		});
+		
+		
+	});
+	
+	//图片上传
+	function runImg(image_upload,img_url_input,img_url_tag){
+			var K = KindEditor;
+			var uploadbutton = K.uploadbutton({
+				button : K('#'+image_upload)[0],
+				fieldName : 'imgFile',
+				url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+				afterUpload : function(data) {
+					if (data.error === 0) {
+						var url = K.formatUrl(data.url, 'absolute');
+						K('#'+img_url_input).val(data.url);
+						K('#'+img_url_tag).attr('src', data.url);
+					} else {
+						alert(data.message);
+					}
+				},
+				afterError : function(str) {
+					alert('自定义错误信息: ' + str);
+				}
+			});
+			uploadbutton.fileBox.change(function(e) {
+				uploadbutton.submit();
+			});
+	
+	}
+	
+	
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 161 - 0
tm/compile_dir/%%1C^1C2^1C28155E%%delivery_channels_add.html.php

@@ -0,0 +1,161 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 11:58:11
+         compiled from admin/activity/delivery_channels_add.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['eventData']['id']; ?>
+">
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">添加投放渠道</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<label class="control-label rowlabel">渠道名称:</label>  <small class="text-danger"><24个字</small>
+				
+				<input class="form-control" type="text" value="" name="str_name" id="str_name"/>
+				<?php if ($this->_tpl_vars['platFormIds']): ?>
+				<br>
+				<label class="control-label rowlabel">选择列表:</label> <small class="text-danger">选择投放渠道所在列表</small><br>
+				<?php $_from = $this->_tpl_vars['platFormData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['form']):
+?>
+				<?php if ($this->_tpl_vars['platFormIds'][$this->_tpl_vars['index']]): ?>
+				<label class="checkbox-inline">
+				<input type="checkbox" value="<?php echo $this->_tpl_vars['index']; ?>
+" name="platform_ids"><?php echo $this->_tpl_vars['form']['name']; ?>
+
+				</label>
+				<?php endif; ?>
+				<?php endforeach; endif; unset($_from); ?>
+				<?php endif; ?>
+				
+				
+			</div>
+		</div>
+		
+	</div>
+	<a href="javaScript:;" class="button button-3d button-primary button-rounded " style="width:150px;" id="add_delivery_channels">
+		<i class="fa fa-refresh fa-spin add_button" style="display:none;"></i> 添加 </a>
+</div>
+
+
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div style="clear:both;"></div>
+</form>
+</div>
+
+
+<script>
+KISSY.use('node, io, event', function (S, Node, IO, Event) {
+	var $ = S.all;
+	var ing = false;
+	$("#add_delivery_channels").on('click', function () {
+		$('.add_button').show();
+		var post_data = {};
+		post_data.events_id = $("input[name=events_id]").val();
+		post_data.str_name = $('input[name=str_name]').val();
+		
+		if(post_data.str_name==null){
+			$('.add_button').hide();
+			alert('请填写渠道名称');return ;
+		}
+		
+		post_data.platform_ids_str="";
+		$("[type='checkbox'][name='platform_ids']:checked").each(function(){  
+			post_data.platform_ids_str+=$(this).val()+"|";
+        }); 
+		
+		
+		if(post_data.platform_ids_str==''){
+			$('.add_button').hide();
+			alert('请勾选所属列表');return ;
+		}
+		
+		$(this).hide();
+		
+		new IO({
+			type: "post"
+			, url:  VG.conf.root_domain+'/?c=Admin_Activity_DeliveryChannels&a=ReqAddDeliveryChannels'
+			, data: post_data
+			, success: function (data) {
+				if (data.ok) { //ok
+					location = VG.conf.root_domain+'?c=Admin_Activity_DeliveryChannels&a=PageList&events_id='+post_data.events_id;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+		
+		
+	});
+	
+	
+	
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 225 - 0
tm/compile_dir/%%27^27A^27A220D1%%list.html.php

@@ -0,0 +1,225 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-22 09:23:22
+         compiled from admin/focus/list.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css" />
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div class="panel panel-default col-md-7">
+	<div class="panel-body">
+		<table class="table">
+			<thead>
+				<tr>
+					<th>排序</th>
+					<th>平台</th>
+					<th>名称</th>
+					<th>图片</th>
+					<th>编辑</th>
+				</tr>
+			</thead>
+			<tbody>
+				<?php if (! $this->_tpl_vars['focusData']): ?>
+				<tr><td colspan="5" align="center">暂无信息</td></tr>
+				<?php endif; ?>
+				<?php $_from = $this->_tpl_vars['focusData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['item']['index']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['platformList'][$this->_tpl_vars['item']['platform_id']]['name']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['item']['name']; ?>
+</td>
+					<td><img src="<?php echo $this->_tpl_vars['item']['pic']; ?>
+" width="100" /><br /><?php echo $this->_tpl_vars['item']['link']; ?>
+</td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Focus_index&a=PageShow&id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">编辑</a></td>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+			</tbody>
+		</table>
+		<div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
+</div>
+	</div>
+</div>
+
+<form id="add_focus_form">
+<div class="col-md-5" style="padding-left: 30px;">
+	<div class="form-group">
+		<label class="control-label">添加一个相关推荐</label>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">选择平台</label>
+		<select name="platform_id" id="platform_id">
+			<?php $_from = $this->_tpl_vars['platformList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+				<option value="<?php echo $this->_tpl_vars['item']['id']; ?>
+"><?php echo $this->_tpl_vars['item']['name']; ?>
+</option>
+				</tr>
+			<?php endforeach; endif; unset($_from); ?>
+		</select>
+	</div>
+
+	<div class="form-group">
+		<label class="control-label rowlabel">推荐名称</label>
+		<input name="name" type="text" class="form-control" >
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">推荐排序-数字越大越靠前</label>
+		<input name="index" type="text" class="form-control" value="1">
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">推荐地址</label>
+		<input name="link" type="text" class="form-control" >
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">推荐图片</label>
+		<div>
+			<img id="icon_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="icon_image_input" name='pic' type="hidden" value="">
+			<input id="icon_image_upload" type="button" value="默认图片" >
+		</div>
+	</div>
+	<div>
+		<a id="add_focus_btn" href="javascript:;" class="button button-primary button-small">添加</a>
+	</div>
+</div>
+</form>
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+	var $ = S.all;
+	
+	$("#add_focus_btn").on('click', function () {
+		var name = $("input[name=name]").val();
+		if (!name) {
+			alert('请填写名称');
+			return false;
+		}
+
+		var index = $("input[name=index]").val();
+		if (!index) {
+			alert('请填写排序');
+			return false;
+		}
+
+		var platform_id = $("select[name=platform_id]").val();
+		if (!platform_id) {
+			alert('请选择平台');
+			return false;
+		}
+
+		var link = $("input[name=link]").val();
+		if (!link) {
+			alert('请填写链接');
+			return false;
+		}
+		
+		var pic = $("input[name=pic]").val();
+		if (!pic) {
+			alert('请选择推荐图片');
+			return false;
+		}
+		var data = IO.serialize("#add_focus_form");
+		
+		new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Focus_index&a=PageList&a=ReqCreate'
+			, data: data
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = VG.conf.url;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+//icon image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#icon_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#icon_image_input').val(data.url);
+				K('#icon_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 50 - 0
tm/compile_dir/%%2A^2AF^2AF8404C%%event_forms_template.html.php

@@ -0,0 +1,50 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 11:53:43
+         compiled from event_forms_template.html */ ?>
+<div class="join_submit_box">
+<form id="ff">
+	<?php $_from = $this->_tpl_vars['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['form']):
+?>
+	<?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>
+	<div class="submit_cell"><input name="<?php echo $this->_tpl_vars['form']['name']; ?>
+" type="text" class="input_style" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
+" ></div>  
+	<?php endif; ?>
+	<?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>
+	<div class="submit_cell submit_cell_area"><p><textarea name="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="input_textarea" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
+"></textarea></p></div>
+	<?php endif; ?>
+	<?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>
+	<div class="submit_cell">
+		<section class="container">
+             <div class="dropdown">
+               <select name="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="dropdown-select">
+                 <option value="">请选择<?php echo $this->_tpl_vars['form']['name']; ?>
+</option>
+                 <?php $_from = $this->_tpl_vars['form']['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['option']):
+?>
+                 <option value="<?php echo $this->_tpl_vars['option']; ?>
+"><?php echo $this->_tpl_vars['option']; ?>
+</option>
+                 <?php endforeach; endif; unset($_from); ?>
+               </select>
+             </div>
+           </section>
+       </div>
+	<?php endif; ?>
+	<?php endforeach; endif; unset($_from); ?>
+	<div class="submit_cell center submit_cell_btn"><button type="submit" id="common_submit_btn" class="submit_btn_style">提交资料</button></div>
+</form>
+</div>
+<script>
+$("select").on('change', function () {
+	if ($(this).val() == '') {
+		$(this).css({'color':'#999'});
+	} else {
+		$(this).css({'color':''});
+	}
+});
+</script>

+ 4 - 0
tm/compile_dir/%%2B^2B7^2B719422%%common_header.html.php

@@ -0,0 +1,4 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 11:37:25
+         compiled from common_header.html */ ?>
+<div class="v_head center"><?php echo $this->_tpl_vars['platform']['name']; ?>
+</div>

+ 40 - 0
tm/compile_dir/%%2C^2C1^2C11569A%%permission.html.php

@@ -0,0 +1,40 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:06:58
+         compiled from admin/backUser/permission.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<?php if ($this->_tpl_vars['errMsg']['ok'] == 1): ?>
+<div class="tip_message_success">设置角色成功</div>
+<?php endif; ?>
+<form method="post" action="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_backUser&a=setPermission&uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
+" style="">
+	<div class="form-group">
+		<label class="control-label">“<?php echo $this->_tpl_vars['user']['name']; ?>
+” 角色设置:</label>
+		<div>
+			<label class="radio-inline"><input name="permission" type="radio" value="admin" <?php if ($this->_tpl_vars['user']['permission'] == 'admin'): ?>checked<?php endif; ?> > 管理员</label>
+			<label class="radio-inline"><input name="permission" type="radio" value="ordinary" <?php if ($this->_tpl_vars['user']['permission'] != 'admin'): ?>checked<?php endif; ?>> 普通帐号</label>
+		</div>
+	</div>
+	<button class="button button-primary button-small">保存</button>
+</form>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 53 - 0
tm/compile_dir/%%30^30D^30D66F2A%%preview_single_page.html.php

@@ -0,0 +1,53 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:21:14
+         compiled from admin/activity/preview_single_page.html */ ?>
+<?php $_from = $this->_tpl_vars['pageData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
+?>
+<div class="ks-screen ks-screen-p">
+	<?php if ($this->_tpl_vars['item']['bgimage_url']): ?>
+	<img class="background_image" style="" src="<?php echo $this->_tpl_vars['item']['bgimage_url']; ?>
+" >
+	<?php endif; ?>
+	
+	<?php $_from = $this->_tpl_vars['item']['layers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['layer']):
+?>
+	<?php if ($this->_tpl_vars['layer']['url']): ?>
+		<?php if ($this->_tpl_vars['layer']['link']): ?>
+		<a href="<?php echo $this->_tpl_vars['item']['button_link']; ?>
+">
+		<?php endif; ?>
+		<img class="upper_image" style=
+		"
+		width:<?php echo $this->_tpl_vars['layer']['width']; ?>
+px;
+		height:<?php echo $this->_tpl_vars['layer']['height']; ?>
+px;
+		<?php echo $this->_tpl_vars['layer']['style']; ?>
+
+		"
+		src="<?php echo $this->_tpl_vars['layer']['url']; ?>
+"
+		>
+		<?php if ($this->_tpl_vars['layer']['link']): ?>
+		</a>
+		<?php endif; ?>
+	<?php endif; ?>
+	<?php if ($this->_tpl_vars['layer']['video_url']): ?>
+		<div class="layer_anim" style="width:<?php echo $this->_tpl_vars['layer']['video_width']; ?>
+px;height:<?php echo $this->_tpl_vars['layer']['video_height']; ?>
+px;<?php echo $this->_tpl_vars['layer']['style']; ?>
+;background-color:#ccc;color:#fff;font-size:20px;text-align:center;line-height:<?php echo $this->_tpl_vars['layer']['video_height']; ?>
+px;" >视频</div>
+	<?php endif; ?>
+	<?php endforeach; endif; unset($_from); ?>
+
+	<input name="p[]" type="hidden" value='<?php echo $this->_tpl_vars['item']['json']; ?>
+' />
+	<div class="mask"></div>
+	<div class="op">
+		<div class="modify">修改</div>
+		<div class="delete">删除</div>
+	</div>
+</div>
+<?php endforeach; endif; unset($_from); ?>

+ 16 - 0
tm/compile_dir/%%30^30E^30E9D058%%common_nav.html.php

@@ -0,0 +1,16 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:06:31
+         compiled from ./admin/activity/common_nav.html */ ?>
+<p style="margin-bottom: 20px;">
+<?php $_from = $this->_tpl_vars['navConfig']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['nav']):
+?>
+<?php if ($this->_tpl_vars['nav']['show']): ?>
+<a <?php if (! $this->_tpl_vars['nav']['onClick']): ?>href="<?php echo $this->_tpl_vars['nav']['url']; ?>
+"<?php endif; ?> class="button button-highlight button-small <?php if ($this->_tpl_vars['nav']['onClick']): ?>active<?php endif; ?>"><?php echo $this->_tpl_vars['nav']['name']; ?>
+</a>
+<?php else: ?>
+<a class="button button-highlight button-small disabled"><?php echo $this->_tpl_vars['nav']['name']; ?>
+</a>
+<?php endif; ?>
+<?php endforeach; endif; unset($_from); ?>
+</p>

+ 559 - 0
tm/compile_dir/%%3C^3C0^3C0B63B8%%list.html.php

@@ -0,0 +1,559 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-23 13:47:47
+         compiled from admin/platform/list.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css" />
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div class="panel panel-default col-md-7">
+	<div class="panel-body">
+		<table class="table">
+			<thead>
+				<tr>
+					<th>序号</th>
+					<th>描述</th>
+					<th>名称</th>
+					<th>色值</th>
+					<th>地址</th>
+					<th>编辑</th>
+				</tr>
+			</thead>
+			<tbody>
+				<?php if (! $this->_tpl_vars['platformData']): ?>
+				<tr><td colspan="5" align="center">暂无平台信息</td></tr>
+				<?php endif; ?>
+				<?php $_from = $this->_tpl_vars['platformData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['item']['id']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['item']['desc']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['item']['name']; ?>
+</td>
+					<td><div style="background-color: <?php echo $this->_tpl_vars['item']['color']; ?>
+; display: inline-block; padding: 8px;"></div></td>
+					<td><?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/list/<?php echo $this->_tpl_vars['item']['url']; ?>
+</td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_index&a=PageShow&id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">编辑</a></td>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+			</tbody>
+		</table>
+		<div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
+</div>
+	</div>
+</div>
+
+<form id="add_platform_form">
+<div class="col-md-5" style="padding-left: 30px;">
+	<div class="form-group">
+		<label class="control-label">添加新列表</label>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">描述</label>
+		<input name="desc" type="text" class="form-control" >
+		<span class="note">平台的描述信息</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">名称</label>
+		<input name="name" type="text" class="form-control" >
+		<span class="note">页面标题使用</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">URL短地址</label>
+		<input name="url" type="text" class="form-control" >
+		<span class="note">URL短地址使用</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">色值</label>
+		<input name="color" type="text" class="form-control" >
+		<span class="note">页面统一颜色</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">关注地址</label>
+		<input name="follow_url" type="text" class="form-control" value="">
+		<span class="note">导航栏“关注”链接地址</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">“活动”按钮图片</label>
+		<div>
+			<img id="home_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="home_image_input" name='home_img_url' type="hidden" value="">
+			<input id="home_image_upload" type="button" value="默认图片" >
+		</div>
+		<div>
+			<img id="home_image_tag_hover" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="home_image_input_hover" name='home_img_url_hover' type="hidden" value="">
+			<input id="home_image_upload_hover" type="button" value="选中图片" >
+		</div>
+		<label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='home_img_text' value="活动">
+		<span class="note">导航活动按钮图片。36*36 PNG 图片</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">“关注”按钮图片</label>
+		<div>
+			<img id="follow_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="follow_image_input" name='follow_img_url' type="hidden" value="">
+			<input id="follow_image_upload" type="button" value="默认图片" >
+		</div>
+		<div>
+			<img id="follow_image_tag_hover" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="follow_image_input_hover" name='follow_img_url_hover' type="hidden" value="">
+			<input id="follow_image_upload_hover" type="button" value="选中图片" >
+		</div>
+		<label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='follow_img_text' value="关注">
+		<span class="note">导航关注按钮图片。36*36 PNG 图片</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">“奖品”按钮图片</label>
+		<div>
+			<img id="gift_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="gift_image_input" name='gift_img_url' type="hidden" value="">
+			<input id="gift_image_upload" type="button" value="默认图片" >
+		</div>
+		<div>
+			<img id="gift_image_tag_hover" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="gift_image_input_hover" name='gift_img_url_hover' type="hidden" value="">
+			<input id="gift_image_upload_hover" type="button" value="选中图片" >
+		</div>
+		<label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='gift_img_text' value="奖品">
+		<span class="note">导航奖品按钮图片。36*36 PNG 图片</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">“分享”按钮图片</label>
+		<div>
+			<img id="share_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="share_image_input" name='share_img_url' type="hidden" value="">
+			<input id="share_image_upload" type="button" value="默认图片" >
+		</div>
+		<div>
+			<img id="share_image_tag_hover" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="share_image_input_hover" name='share_img_url_hover' type="hidden" value="">
+			<input id="share_image_upload_hover" type="button" value="选中图片" >
+		</div>
+		<label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='share_img_text' value="分享">
+		<span class="note">导航分享按钮图片。36*36 PNG 图片</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">“招商”按钮图片</label>
+		<div>
+			<img id="zs_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="zs_image_input" name='zs_img_url' type="hidden" value="">
+			<input id="zs_image_upload" type="button" value="默认图片" >
+		</div>
+		<div>
+			<img id="zs_image_tag_hover" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="zs_image_input_hover" name='zs_img_url_hover' type="hidden" value="">
+			<input id="zs_image_upload_hover" type="button" value="选中图片" >
+		</div>
+		<label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='zs_img_text' value="<?php if ($this->_tpl_vars['platformData']['zs_img_text']): ?><?php echo $this->_tpl_vars['platformData']['zs_img_text']; ?>
+<?php else: ?>招商<?php endif; ?>">
+		<br />
+		<label class="control-label rowlabel">招商地址</label><input type="text" class="form-control" name='zs_img_link' value="<?php if ($this->_tpl_vars['platformData']['zs_img_link']): ?><?php echo $this->_tpl_vars['platformData']['zs_img_link']; ?>
+<?php endif; ?>">
+		<span class="note">导航招商按钮图片。36*36 PNG 图片</span>
+	</div>
+
+	<div class="form-group">
+		<label class="control-label rowlabel">微信分享图:</label>
+		<div>
+			<img id="weixinShare_image_tag" src="http://placehold.it/200&text=200x200" style="width:150px;" class="img-thumbnail">
+			<input id="weixinShare_image_input" name='weixinShare_img_url' type="hidden" value="">
+			<input id="weixinShare_image_upload" type="button" value="选择图片" >
+		</div>
+		<span class="note">默认微信分享的图片 JPG、PNG,200*200,小于20k</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">微信分享标题:</label>
+		<input name="weixinShare_title" type="text" class="form-control" value="">
+		<span class="note">少于24个字</span>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">微信分享内容:</label>
+		<input name="weixinShare_content" type="text" class="form-control" value="">
+		<span class="note">少于36个字</span>
+	</div>
+	<div>
+		<a id="add_platform_btn" href="javascript:;" class="button button-primary button-small">添加新列表</a>
+	</div>
+</div>
+</form>
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+	var $ = S.all;
+	
+	$("#add_platform_btn").on('click', function () {
+		var desc = $("input[name=desc]").val();
+		if (!desc) {
+			alert('请填写描述信息');
+			return false;
+		}
+		
+		var name = $("input[name=name]").val();
+		if (!name) {
+			alert('请填写名称');
+			return false;
+		}
+		
+		var url = $("input[name=url]").val();
+		if (!url) {
+			alert('请填短地址');
+			return false;
+		}
+		
+		var color = $("input[name=color]").val();
+		if (!color) {
+			alert('请填写颜色');
+			return false;
+		}
+		
+		var home_img_url = $("input[name=home_img_url]").val();
+		if (!home_img_url) {
+			alert('请选择“活动”按钮图片');
+			return false;
+		}
+		var gift_img_url = $("input[name=gift_img_url]").val();
+		if (!gift_img_url) {
+			alert('请选择“奖品”按钮图片');
+			return false;
+		}
+		
+		var data = IO.serialize("#add_platform_form");
+		
+		new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Platform_index&a=PageList&a=ReqCreate'
+			, data: data
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = VG.conf.url;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+//取色器
+$(document).ready( function() {
+	$("input[name=color]").minicolors({
+		defaultValue: '#FFFFFF'
+	});
+});
+
+//home image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#home_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#home_image_input').val(data.url);
+				K('#home_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#home_image_upload_hover')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#home_image_input_hover').val(data.url);
+				K('#home_image_tag_hover').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+//follow image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#follow_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#follow_image_input').val(data.url);
+				K('#follow_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#follow_image_upload_hover')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#follow_image_input_hover').val(data.url);
+				K('#follow_image_tag_hover').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+//share image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#share_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#share_image_input').val(data.url);
+				K('#share_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#share_image_upload_hover')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#share_image_input_hover').val(data.url);
+				K('#share_image_tag_hover').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#zs_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#zs_image_input').val(data.url);
+				K('#zs_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#zs_image_upload_hover')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#zs_image_input_hover').val(data.url);
+				K('#zs_image_tag_hover').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+//gift image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#gift_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#gift_image_input').val(data.url);
+				K('#gift_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#gift_image_upload_hover')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#gift_image_input_hover').val(data.url);
+				K('#gift_image_tag_hover').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+//weixin share
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#weixinShare_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#weixinShare_image_input').val(data.url);
+				K('#weixinShare_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 579 - 0
tm/compile_dir/%%3D^3D1^3D1D841B%%page_show.html.php

@@ -0,0 +1,579 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-17 18:22:12
+         compiled from admin/activity/page_show.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/activity/page_show.html', 50, false),array('modifier', 'in_array', 'admin/activity/page_show.html', 62, false),)), $this); ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+	<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['eventData']['id']; ?>
+">
+	<div class="form-group">
+		<label>标题:</label>
+		<input name="events_name" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['events_name']; ?>
+">
+	</div>
+	<div class="form-group">
+		<label class="control-label">列表默认图<small class="text-danger">(JPG、PNG,640x320,小于60k)</small></label>
+		<div>
+			<img id="img_url_tag" src="<?php if ($this->_tpl_vars['eventData']['img_url']): ?><?php echo $this->_tpl_vars['eventData']['img_url']; ?>
+<?php else: ?>http://placehold.it/320x160&text=640x320<?php endif; ?>" style="width:200px;" class="img-thumbnail">
+			<input id="img_url_input" name="img_url" type="hidden" value="<?php echo $this->_tpl_vars['eventData']['img_url']; ?>
+">
+			<input id="image_upload" type="button" value="选择图片" >
+		</div>
+	</div>
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
+	<div class="form-group">
+		<label class="control-label">开始时间:</label>
+		<input name="begin_time" type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['begin_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
+" class="form-control" style="max-width:250px;min-width:200px;">
+	</div>
+	<div class="form-group">
+		<label class="control-label">结束时间:</label>
+		<input name="end_time" type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
+" class="form-control" style="max-width:250px;min-width:200px;">
+	</div>
+	<?php endif; ?>
+	<div class="form-group">
+		<label class="control-label">发布到哪些列表</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['platformList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['platfrom']):
+?>
+			<label class="checkbox-inline">
+				<input disabled name="platform_ids[]" type="checkbox" value="<?php echo $this->_tpl_vars['platfrom']['id']; ?>
+" <?php if (((is_array($_tmp=$this->_tpl_vars['platfrom']['id'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['platFormIds']) : in_array($_tmp, $this->_tpl_vars['platFormIds']))): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['platfrom']['name']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>
+		<div class="note">注:创建后不可修改</div>
+	</div>
+	
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] == 'TYPE_EVENTS_OTHER'): ?>
+	<div class="form-group">
+		<label>跳转URL:</label>
+		<input name="other_url" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['other_url']; ?>
+">
+	</div>
+	<?php endif; ?>
+
+	<div class="form-group">
+		<label class="control-label">选择分类</label>
+		<div>
+			<select id="cotegory_id" name="category_id">
+				<option value="0" selected>选择分类名称</option>
+			<?php $_from = $this->_tpl_vars['categoryList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['cate']):
+?>
+			<option value="<?php echo $this->_tpl_vars['cate']['id']; ?>
+" <?php if ($this->_tpl_vars['cate']['id'] == $this->_tpl_vars['eventData']['category_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['cate']['name']; ?>
+</option>
+			<?php endforeach; endif; unset($_from); ?>
+			</select>
+		</div>
+	</div>
+
+	<div class="form-group">
+		<label class="control-label">是否推荐到焦点图</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['focusDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="focus_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['focus_display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+
+	<div class="form-group">
+		<label class="control-label">是否置顶</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['topDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="top_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['top_display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	<div class="form-group">
+		<label class="control-label">是否用户登录</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['authorize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['authid'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="authorize" type="radio" value="<?php echo $this->_tpl_vars['authid']; ?>
+" <?php if ($this->_tpl_vars['eventData']['authorize'] == $this->_tpl_vars['authid']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	<div class="form-group">
+		<label class="control-label">是否在列表中出现</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['listDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="list_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['list_display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	<?php if ($this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['kw'] != 'EVENT_DISPLAY_UNFINISHED'): ?>
+	<div class="form-group">
+		<label class="control-label">当前发布状态</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['displayDesc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<?php if ($this->_tpl_vars['info']['kw'] != 'EVENT_DISPLAY_UNFINISHED'): ?>
+			<label class="radio-inline">
+				<input name="display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endif; ?>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	<?php endif; ?>
+	
+	<?php if (! ((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['deliveryFormNotType']) : in_array($_tmp, $this->_tpl_vars['deliveryFormNotType']))): ?>
+		<div class="form-group">
+		<label class="control-label">当前奖品发货状态</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['deliveryDesc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="delivery" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['delivery'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+		</div>
+	<?php endif; ?>
+	
+	<?php if (! ((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['weixinFormNotType']) : in_array($_tmp, $this->_tpl_vars['weixinFormNotType']))): ?>
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">设置微信分享</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="form-group">
+					<label class="control-label rowlabel">分享用图:<small class="text-danger">JPG、PNG,200*200,小于20k</small></label>
+					<div>
+						<img id="share_image_tag" src="<?php if ($this->_tpl_vars['eventData']['weixinShare']['imgUrl']): ?><?php echo $this->_tpl_vars['eventData']['weixinShare']['imgUrl']; ?>
+<?php else: ?>http://placehold.it/200&text=200x200<?php endif; ?>" style="width:150px;" class="img-thumbnail">
+						<input id="share_image_input" name='wx_img_url' type="hidden" value="<?php echo $this->_tpl_vars['eventData']['weixinShare']['imgUrl']; ?>
+">
+						<input id="share_image_upload" type="button" value="选择图片" >
+					</div>
+				</div>
+				<div class="row">
+					<div class="col-md-6">
+						<div class="form-group">
+							<label class="control-label rowlabel">标题:<small class="text-danger">&lt;24个字</small></label>
+							<input name="weixinShare_title" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['weixinShare']['title']; ?>
+">
+						</div>
+						<div class="form-group">
+							<label class="control-label rowlabel">分享内容:<small class="text-danger">&lt;36个字</small></label>
+							<input name="weixinShare_content" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['weixinShare']['content']; ?>
+">
+						</div>
+						<div class="form-group">
+							<label class="control-label rowlabel">用户分享后跳转地址:</label>
+							<input name="weixinShare_jump_url" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['weixinShare']['jump_url']; ?>
+">
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE' && $this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_CUT_SCREEN' && $this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_OTHER'): ?>
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">设置参与规则</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="row">
+					<div class="col-md-3">
+						<p>允许每天用户参与次数:</p>
+						<input name="participation_user_num" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['participation_user_num']; ?>
+" style="max-width:;">
+					</div>
+					<div class="col-md-3">
+						<p>允许每天IP参与次数:</p>
+						<input name="participation_ip_num" type="text" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['participation_ip_num']; ?>
+" style="max-width:;">
+					</div>
+					<div class="col-md-3">
+						<p>允许用户参与次数:</p>
+						<input type="text" name="participation_user_all_num" class="form-control" value="<?php echo $this->_tpl_vars['eventData']['participation_user_all_num']; ?>
+" style="max-width:;">
+					</div>
+					<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] == 'TYPE_EVENTS_TURNTABLE'): ?>
+					<div class="col-md-3">
+						<p>允许用户获奖次数:</p>
+						<input type="text" name="winning_user_num" class="form-control"  value="<?php echo $this->_tpl_vars['eventData']['winning_user_num']; ?>
+" style="max-width:;">
+					</div>
+					<?php endif; ?>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['cutDirectionFormNotType']) : in_array($_tmp, $this->_tpl_vars['cutDirectionFormNotType']))): ?>
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">切屏方向</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div>
+					<label class="radio-inline">
+						<input name="cut_fx" type="radio" value="fadeInUp" <?php if ($this->_tpl_vars['eventData']['cut_fx'] == 'fadeInUp'): ?>checked<?php endif; ?> > 从下向上翻页
+					</label>
+					<label class="checkbox-inline">
+						<input name="cut_fx" type="radio" value="fadeInRight" <?php if ($this->_tpl_vars['eventData']['cut_fx'] == 'fadeInRight'): ?>checked<?php endif; ?> > 从右向左翻页
+					</label>
+				</div>
+				<div class='note'>调整切屏方向,将改变切屏方式及部分内容显示的效果,一旦选定,尽量不要修改</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	
+	<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>	
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">专题音乐设置</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div>
+					<a href="javascript:;" class="music_play_or_pause <?php if (! $this->_tpl_vars['eventData']['music_url']): ?>music_play_hide<?php endif; ?> button button-caution button-circle button-tiny" data-type="play">播</a> 
+					<input id="music_input" name="music_url" type="hidden" value="<?php echo $this->_tpl_vars['eventData']['music_url']; ?>
+">
+					<input id="music_upload" type="button" value="选择音乐" >
+				</div>
+				<div>
+				<p></p>
+				<span class="">音乐图标放置:</span>
+				<?php $_from = $this->_tpl_vars['getMusicPosition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['posid'] => $this->_tpl_vars['info']):
+?>
+				<label class="radio-inline">
+					<input name="music_position" type="radio" value="<?php echo $this->_tpl_vars['posid']; ?>
+" <?php if ($this->_tpl_vars['eventData']['music_position'] == $this->_tpl_vars['posid']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+				</label>
+				<?php endforeach; endif; unset($_from); ?>
+				</div>
+			</div>
+			<div>目前只支持MP3格式,小于20k</div>
+		</div>
+	</div>
+	
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">加载动画设置</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="row">
+					<div class="col-md-3">
+						<p>加载背景色:</p>
+						<input id="loading_bg_input" name="loading_bg_color" type="text" class="form-control" style="width:;" value="<?php echo $this->_tpl_vars['eventData']['loading_bg_color']; ?>
+">
+					</div>
+					<div class="col-md-3">
+						<p>加载动画、文本颜色:</p>
+						<input id="loading_text_input" name="loading_text_color" type="text" class="form-control" style="width:;" value="<?php echo $this->_tpl_vars['eventData']['loading_text_color']; ?>
+">
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div style="clear:both;"></div>
+</form>
+</div>
+
+<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css">
+<?php endif; ?>
+
+<script>
+KISSY.use('node, io, jquery, gallery/datetimepicker/2.0.0/index, gallery/xplayer/2.1.0/index', function (S, Node, IO, jQuery, Datetimepicker, Xplayer) {
+	var $ = S.all;
+	
+	//日期
+    new Datetimepicker({
+        start : 'input[name=begin_time]'
+    });
+ 	//日期
+    new Datetimepicker({
+        start : 'input[name=end_time]'
+    });
+ 	
+    var XiamiPlay = new Xplayer({
+        "autoplay": false
+    });
+    
+    <?php if ($this->_tpl_vars['eventData']['music_url']): ?>
+    XiamiPlay.load({
+	    'url' : '<?php echo $this->_tpl_vars['eventData']['music_url']; ?>
+',
+	});
+    <?php endif; ?>
+	
+    <?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+	//选择音乐
+    KindEditor.ready(function(K) {
+    	var uploadbutton = K.uploadbutton({
+    		button : K('#music_upload')[0],
+    		fieldName : 'imgFile',
+    		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=mp3',
+    		afterUpload : function(data) {
+    			if (data.error === 0) {
+    				var url = K.formatUrl(data.url, 'absolute');
+    				K('#music_input').val(data.url);
+    				$(".music_play_or_pause").removeClass('music_play_hide');
+    				XiamiPlay.load({
+    				    'url' : data.url,
+    				});
+    			} else {
+    				alert(data.message);
+    			}
+    		},
+    		afterError : function(str) {
+    			alert('自定义错误信息: ' + str);
+    		}
+    	});
+    	uploadbutton.fileBox.change(function(e) {
+    		uploadbutton.submit();
+    	});
+    });
+  	
+    $(".music_play_or_pause").on("click", function() {
+    	if ($(this).attr('data-type') == 'play') {
+    		XiamiPlay.play();
+    		$(this).attr('data-type', 'pause').text('停');
+    	} else {
+    		XiamiPlay.pause();
+    		$(this).attr('data-type', 'play').text('播');
+    	}
+    });
+    <?php endif; ?>
+    
+    var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+    $("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	//表单验证
+    	var events_name = S.trim($("input[name=events_name]").val());
+    	if (!events_name) {
+    		alert('请填写活动标题');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	var img_url = $("input[name=img_url]").val();
+    	if (!img_url) {
+    		alert('请选择列表默认图片');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	var type = $("input[name=type]:checked").val();
+    	if (type <= 0) {
+    		alert('请选择活动类型');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
+    	var begin_time = $("input[name=begin_time]").val();
+    	var end_time = $("input[name=end_time]").val();
+    	if (!begin_time || !end_time) {
+    		alert('请设置活动时间');
+    		submit_button_default();
+    		return false;
+    	}
+    	<?php endif; ?>
+    	
+    	formData = IO.serialize("#activity_form");
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetBasics&a=ReqUp'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = url;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+    });
+});
+
+//设置微信分享
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#share_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#share_image_input').val(data.url);
+				K('#share_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+//列表默认图
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#img_url_input').val(data.url);
+				K('#img_url_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+$("#loading_bg_input").minicolors({
+	defaultValue: '<?php echo $this->_tpl_vars['eventData']['loading_bg_color']; ?>
+'
+});
+$("#loading_text_input").minicolors({
+	defaultValue: '<?php echo $this->_tpl_vars['eventData']['loading_text_color']; ?>
+'
+});
+<?php endif; ?>
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 128 - 0
tm/compile_dir/%%40^40B^40BC05C2%%activity_list.html.php

@@ -0,0 +1,128 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:22:17
+         compiled from admin/activity/activity_list.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css" />
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+
+
+<div class="panel panel-default">
+	<div class="panel-body">
+		<div class="row">
+		<?php if ($this->_tpl_vars['eventsData']): ?>
+		<div class="col-md-2">暂无信息</div>
+		<?php endif; ?>
+		
+			<?php $_from = $this->_tpl_vars['allEventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
+?>
+			<div class="col-md-2">
+				<div class="thumbnail">
+					<div style="height: 20px;width:100%;background-color:#666; text-align: right;"><a  id="<?php echo $this->_tpl_vars['item']['id']; ?>
+" class="menu-list memberinfo del" href="javascript:;" style="margin-right: 10px;">删除</a></div>
+					<img src="<?php echo $this->_tpl_vars['item']['img_url']; ?>
+" alt="<?php echo $this->_tpl_vars['item']['events_name']; ?>
+" >
+					<div class="caption">
+						<a class="ks-overflow" title="<?php echo $this->_tpl_vars['item']['events_name']; ?>
+" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Activity_SetBasics&a=PageShow&events_id=<?php echo $this->_tpl_vars['index']; ?>
+" >[<?php echo $this->_tpl_vars['allTypeData'][$this->_tpl_vars['item']['type']]['desc']; ?>
+] <?php echo $this->_tpl_vars['item']['events_name']; ?>
+</a>
+					</div>
+				</div>
+			</div>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>
+		<div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
+</div>
+	</div>
+</div>
+
+
+
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+	var $ = S.all;
+	
+	// 删除活动
+	$(".del").on('click', function() {
+		var id = $(this).attr('id');
+		var ck = window.confirm("您确定删除吗?");
+		if(ck){
+			new IO({
+				type: "post"
+				, url: VG.conf.root_domain + '/?c=Admin_Activity_ActivityList&a=ReqDel'//删除操作
+				, data: {'id':id}
+				, success: function (data) {
+					alert('删除成功');
+					location.reload();
+				}
+				, error: function (NULL, textStatus) {
+					alert("请求服务器失败,原因:"+textStatus);
+				}
+				, dataType: "json"
+			});
+		}
+	});
+		
+	var width = $(".col-md-2 img").width();
+	$(".col-md-2 img").height(width/2);
+	
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 108 - 0
tm/compile_dir/%%41^415^41571DBF%%index.html.php

@@ -0,0 +1,108 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-17 19:37:20
+         compiled from admin/index.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/index.html', 16, false),)), $this); ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+	
+<style type="text/css">
+.quick-create-active .btn{
+	padding: 5px;
+}
+</style>
+
+		<div class="panel panel-default">
+			<div class="panel-heading" style="position: relative;"><h3 class="panel-title" id="panel-title">公告</h3> <a class="pull-right" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Platform_Bulletin&a=PageList">more</a></div>
+			<div class="panel-body">
+				<ul>
+					<?php $_from = $this->_tpl_vars['bulletinData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
+?>
+					<li><p class="text-muted"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
+&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Platform_Bulletin&a=PageShow&bulletin_id=<?php echo $this->_tpl_vars['item']['id']; ?>
+"><?php echo $this->_tpl_vars['item']['title']; ?>
+</a></p></li>
+					<?php endforeach; endif; unset($_from); ?>
+				</ul>
+			</div>
+		</div>
+		<div class="panel panel-default">
+			<div class="panel-heading"><h3 class="panel-title" id="panel-title">快捷发布通道</h3></div>
+			<div class="panel-body">
+				<div class="row quick-create-active">
+					<?php $_from = $this->_tpl_vars['pagePublicData']['rapidEntranceUrl']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
+?>
+					<a href="<?php echo $this->_tpl_vars['item']; ?>
+" class="button button-primary button-small col-md-2" style="margin:0 0 15px 15px;"><?php echo $this->_tpl_vars['index']; ?>
+</a>
+					<?php endforeach; endif; unset($_from); ?>
+				</div>
+			</div>
+		</div>
+
+<div class="panel panel-default">
+	<div class="panel-heading"><h3 class="panel-title" id="panel-title">我的发布</h3></div>
+	<div class="panel-body">
+		<div class="row">
+			<?php if (! $this->_tpl_vars['myReleaseActivityData']): ?>
+			<div class="col-md-2">
+			未发布活动
+			</div>
+			<?php else: ?>
+			<?php $_from = $this->_tpl_vars['myReleaseActivityData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
+?>
+			<div class="col-md-2">
+				<div class="thumbnail">
+					<img src="<?php echo $this->_tpl_vars['item']['img_url']; ?>
+" alt="<?php echo $this->_tpl_vars['item']['events_name']; ?>
+">
+					<div class="caption">
+						<a class="ks-overflow" title="<?php echo $this->_tpl_vars['item']['events_name']; ?>
+" href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+?c=Admin_Activity_SetBasics&a=PageShow&events_id=<?php echo $this->_tpl_vars['index']; ?>
+" >[<?php echo $this->_tpl_vars['allTypeData'][$this->_tpl_vars['item']['type']]['desc']; ?>
+]  <?php echo $this->_tpl_vars['item']['events_name']; ?>
+</a>
+					</div>
+				</div>
+			</div>
+			<?php endforeach; endif; unset($_from); ?>
+			<?php endif; ?>
+		</div>
+	</div>
+</div>
+
+<script>
+KISSY.use('node', function (S, Node) {
+	var $ = S.all;
+	
+
+	
+	
+	var width = $(".col-md-2 img").width();
+	$(".col-md-2 img").height(width/2);
+	
+});
+</script>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 65 - 0
tm/compile_dir/%%46^46A^46A500FA%%mp.html.php

@@ -0,0 +1,65 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-16 19:16:11
+         compiled from admin/backUser/mp.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<?php if (! $this->_tpl_vars['errMsg'] || $this->_tpl_vars['errMsg']['ok'] == 1): ?>
+<?php if ($this->_tpl_vars['errMsg']['ok'] == 1): ?>
+<div class="tip_message_fail"><?php echo $this->_tpl_vars['errMsg']['msg']; ?>
+</div>
+<?php endif; ?>
+<form method="post" action="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_backUser&a=MP&uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
+" style="">
+	<div class="form-group">
+		<label class="control-label">用户名:</label>
+		<?php echo $this->_tpl_vars['user']['name']; ?>
+
+	</div>
+	<div class="form-group">
+		<label class="control-label">密码:</label>
+		<input name="password" type="password" style="max-width:250px;">
+	</div>
+	<div class="form-group">
+		<label><input name="auto_generate" type="checkbox" value="1" > 自动生成密码</label>
+	</div>
+	<div class="form-group">
+		<div class="col-sm-offset-3 col-sm-7">
+		<button class="button button-primary button-small">保存</button>
+		</div>
+	</div>
+</form>
+<?php endif; ?>
+<?php if ($this->_tpl_vars['errMsg']['ok'] == 2): ?>
+<div class="tip_message_success"><?php echo $this->_tpl_vars['errMsg']['msg']; ?>
+</div>
+<div class="form-group">
+		<label class="control-label">用户名:</label>
+		<?php echo $this->_tpl_vars['user']['name']; ?>
+
+	</div>
+	<div class="form-group">
+		<label class="control-label">密码:</label>
+		<?php echo $this->_tpl_vars['password']; ?>
+
+	</div>
+<?php endif; ?>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 187 - 0
tm/compile_dir/%%48^48D^48DE5A4F%%bottom.html.php

@@ -0,0 +1,187 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 14:58:24
+         compiled from bottom.html */ ?>
+<div class="v_block"></div>
+<?php if (! $this->_tpl_vars['cutScreenInfo'] && $this->_tpl_vars['display'] == 1): ?>
+<!--nav begin-->
+<div class="v_nav">
+	<dl <?php if ($this->_tpl_vars['action'] != 'gift'): ?>class="on"<?php endif; ?>>
+    	<a href="<?php echo $this->_tpl_vars['listUrl']; ?>
+">
+        <dt>
+        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url']; ?>
+"></p>
+            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url_hover']; ?>
+"></p>
+        </dt>
+        <dd><?php echo $this->_tpl_vars['platform']['home_img_text']; ?>
+</dd>
+        </a>
+    </dl>    
+    <dl <?php if ($this->_tpl_vars['action'] == 'gift'): ?>class="on"<?php endif; ?>>
+    	<a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
+">
+    	<dt>
+        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url']; ?>
+"></p>
+            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url_hover']; ?>
+"></p>
+        </dt>
+        <dd><?php echo $this->_tpl_vars['platform']['gift_img_text']; ?>
+</dd>
+        </a>
+    </dl>
+    <dl>
+    	<a href="<?php echo $this->_tpl_vars['platform']['follow_url']; ?>
+" target="_blank">
+    	<dt>
+        	<p class="d"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url']; ?>
+"></p>
+            <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url_hover']; ?>
+"></p>
+        </dt>
+        <dd><?php echo $this->_tpl_vars['platform']['follow_img_text']; ?>
+</dd>
+        </a>
+    </dl>
+    <!--<dl>
+    	<a href="#">
+    	<dt>
+        	<p class="d"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/img/nav_icon_4.png"></p>
+            <p class="c"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/img/nav_icon_4_on.png"></p>
+        </dt>
+        <dd>分享</dd>
+        </a>
+    </dl>-->
+</div>
+<!--nav end-->
+<?php endif; ?>
+<?php if (! $this->_tpl_vars['notShowWeixinShare'] && ! $this->_tpl_vars['weixinShare']['notAllow']): ?>
+<script type="text/javascript">
+
+function share_button(e, title, url, img, content) {
+    console.log(title);
+    var u = navigator.userAgent.toLowerCase();
+    var isApple = /iphone|ipad|ipod|ios/i.test(u);
+    var isAndroid = /android/i.test(u);
+    //isApple = true
+    if (isApple || isAndroid) {
+        e.parent().show();
+        e.click(function()
+        {
+            WX_share(url, content, title, img);
+        })
+        
+    } else {
+        e.parent().hide();
+    }
+}
+
+/*
+function share_ios(title, url, img, content) {
+    window.location = 'myscheme://share_title/' + title + '/share_url/' + url + '/share_img/' + img + '/share_content/' + content;
+}
+
+function share_android(title, url, img, content) {
+    window.AndroidBridge.openShare(title, url, img, content);
+}
+*/
+
+var URL = window.location.href, site;
+site = 1;
+
+<?php if ($this->_tpl_vars['weixinShare']['weixinShare_title']): ?>
+new brickjs.MShare({
+	website : 'sg',
+    site: site,
+    catalog: "",
+    sUrl: "<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
+", //分享地址
+    title: "<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
+",
+    imgUrl: "<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
+",
+    imgWidth: "640",
+    imgHeight: "640",
+    source_id : 1,
+    source_table : 'onepage',
+    desc: "<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
+",
+    appKey: {
+        tsina: "2412621184"
+    },
+    ralateUid: '1658402750',
+    wxGuide: {
+        imgUrl: '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
+',
+        width: 100,
+        height: 100,
+        style: {
+            right: 0,
+            top: 0
+        }
+    }
+});
+if ($('.share_button').length) {
+    share_button($('.share_button'), '<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
+', '<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
+', '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
+', '<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
+');
+}
+<?php else: ?>
+
+var url = '<?php if ($this->_tpl_vars['weixinShare']['jump_url']): ?><?php echo $this->_tpl_vars['weixinShare']['jump_url']; ?>
+<?php else: ?><?php echo $this->_tpl_vars['web_cfg']['url']; ?>
+<?php endif; ?>';
+var title = '<?php if ($this->_tpl_vars['weixinShare']['title']): ?><?php echo $this->_tpl_vars['weixinShare']['title']; ?>
+<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_title']; ?>
+<?php endif; ?>';
+var img = '<?php if ($this->_tpl_vars['weixinShare']['imgUrl']): ?><?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
+<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_img_url']; ?>
+<?php endif; ?>';
+var content = '<?php if ($this->_tpl_vars['weixinShare']['content']): ?><?php echo $this->_tpl_vars['weixinShare']['content']; ?>
+<?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_content']; ?>
+<?php endif; ?>';
+
+if ($('.share_button').length) {
+    share_button($('.share_button'), title, url, img, content);
+}
+
+new brickjs.MShare({
+	website : 'sg',
+    site: site,
+    catalog: "",
+    sUrl: url, //分享地址
+    title: title,
+    imgUrl: img,
+    imgWidth: "640",
+    imgHeight: "640",
+    source_id : 1,
+    source_table : 'onepage',
+    desc: content,
+    appKey: {
+        tsina: "2412621184"
+    },
+    ralateUid: '1658402750',
+    wxGuide: {
+        imgUrl: img,
+        width: 100,
+        height: 100,
+        style: {
+            right: 0,
+            top: 0
+        }
+    }
+});
+<?php endif; ?>
+</script>
+<?php else: ?>
+<script>
+//关闭分享按钮
+wx.hideOptionMenu();
+</script>
+<?php endif; ?>
+</body>
+</html>

+ 183 - 0
tm/compile_dir/%%49^492^49271E10%%blletin_list.html.php

@@ -0,0 +1,183 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 11:20:24
+         compiled from admin/platform/blletin_list.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/platform/blletin_list.html', 52, false),)), $this); ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css" />
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div class="panel panel-default col-md-7">
+	<div class="panel-body">
+		<table class="table">
+			<thead>
+				<tr>
+					<th>公告ID</th>
+					<th>标题</th>
+					<th>日期</th>
+					<th>操作</th>
+				</tr>
+			</thead>
+			<tbody>
+				<?php if (! $this->_tpl_vars['bulletinsData']): ?>
+				<tr><td colspan="5" align="center">暂无公告</td></tr>
+				<?php endif; ?>
+				<?php $_from = $this->_tpl_vars['bulletinsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['item']['id']; ?>
+</td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_Bulletin&a=PageShow&bulletin_id=<?php echo $this->_tpl_vars['item']['id']; ?>
+"><?php echo $this->_tpl_vars['item']['title']; ?>
+</a></td>
+					<td><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['update_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
+</td>
+					<?php if ($this->_tpl_vars['isSuperadmin']): ?>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_Bulletin&a=PageUp&bulletin_id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">编辑</a></td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_Bulletin&a=PageShow&bulletin_id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">查看</a></td>
+					<?php else: ?>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_Bulletin&a=PageShow&bulletin_id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">查看</a></td>
+					<?php endif; ?>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+			</tbody>
+		</table>
+		<div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
+</div>
+	</div>
+</div>
+
+<?php if ($this->_tpl_vars['isSuperadmin']): ?>
+<form id="add_blletin_form">
+<div class="col-md-5" style="padding-left: 30px;">
+	<div class="form-group">
+		<label class="control-label rowlabel">标题</label>
+		<input name="title" type="text" class="form-control" >
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">内容</label>
+		<textarea name="content" rows="2" class="form-control" style="width:100%;height:260px;" id="content"></textarea>
+		<div class="note">只有管理员有这部分操作权限,其他人没有</div>
+	</div>
+	<div>
+		<a id="add_blletin_btn" href="javascript:;" class="button button-primary button-small">添加新公告</a>
+	</div>
+</div>
+</form>
+<?php endif; ?>
+
+<script>
+var content_editor;
+KISSY.use('node, io, uri', function (S, Node, IO, Uri) {
+	var $ = S.all;
+	var Query = Uri.Query;
+	
+	$("#add_blletin_btn").on('click', function () {
+	var title = $("input[name=title]").val();
+	if (!title) {
+		alert('请填写公告标题');
+		return false;
+	}
+	var content = content_editor.html();
+	if (!content) {
+		alert('请填公告内容');
+		return false;
+	}
+	
+	var formData = IO.serialize("#add_blletin_form");
+	formData = new Query(formData).set('content', content).toString();
+  
+   	new IO({
+		type: "post"
+		, url: VG.conf.root_domain + '/?c=Admin_Platform_Bulletin&a=ReqCreate'
+		, data: formData
+		, success: function (data) {
+			if (data.ok) { //ok
+				location.href = location.href;
+			} else {
+				alert('操作失败,原因:'+data.msg);
+				location.href = location.href;
+			}
+			return false;
+		}
+		, error: function (NULL, textStatus) {
+			alert("请求服务器失败,原因:"+textStatus);
+		}
+		, dataType: "json"
+	});
+	});
+	
+});
+var KCONFIG = {
+	allowFileManager : true,
+	uploadJson : VG.conf.root_domain + '/?c=kindeditor&a=updateJson',
+	fileManagerJson : VG.conf.root_domain + '/?c=kindeditor&a=fileManagerJson',
+	items : [
+				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
+				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
+				'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'lineheight']
+}
+KindEditor.ready(function(K) {
+	content_editor = K.create('textarea[name=content]', KCONFIG);
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 555 - 0
tm/compile_dir/%%4B^4B9^4B9E8CB7%%page_create.html.php

@@ -0,0 +1,555 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-17 18:24:33
+         compiled from admin/activity/page_create.html */ ?>
+<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
+smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'admin/activity/page_create.html', 81, false),array('modifier', 'in_array', 'admin/activity/page_create.html', 161, false),)), $this); ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+	<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+	<?php if (! $this->_tpl_vars['platformList']): ?>
+		请先创建一个列表。进入<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_index&a=PageList">平台列表</a>
+	<?php else: ?>
+	<div class="form-group">
+		<label>标题:</label>
+		<input name="events_name" type="text" class="form-control">
+	</div>
+	
+	<div class="form-group">
+		<label>活动类型:</label>
+		<div>
+		<?php if (! $this->_tpl_vars['thisType']): ?>
+			<?php $_from = $this->_tpl_vars['typeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['typeid'] => $this->_tpl_vars['type']):
+?>
+			<label class="radio-inline"><input name="type" type="radio" value="<?php echo $this->_tpl_vars['typeid']; ?>
+"> <?php echo $this->_tpl_vars['type']['desc']; ?>
+</label>
+			<?php endforeach; endif; unset($_from); ?>
+		<?php else: ?>
+			<?php $_from = $this->_tpl_vars['typeData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['typeid'] => $this->_tpl_vars['type']):
+?>
+			<?php if ($this->_tpl_vars['thisType'] == $this->_tpl_vars['typeid']): ?>
+			<label class="radio-inline"><input name="type" type="radio" value="<?php echo $this->_tpl_vars['typeid']; ?>
+" checked> <?php echo $this->_tpl_vars['type']['desc']; ?>
+</label>
+			<?php else: ?>
+			<label class="radio-inline"><input name="type" type="radio" value="<?php echo $this->_tpl_vars['typeid']; ?>
+" style="color:#ccc;" disabled> <?php echo $this->_tpl_vars['type']['desc']; ?>
+</label>
+			<?php endif; ?>
+			<?php endforeach; endif; unset($_from); ?>
+		<?php endif; ?>
+		</div>
+	</div>
+	<div class="form-group">
+		<label class="control-label">列表默认图<small class="text-danger">(JPG、PNG,640x320,小于60k)</small></label>
+		<div>
+			<img id="img_url_tag" src="http://placehold.it/320x160&text=640x320" style="width:200px;" class="img-thumbnail">
+			<input id="img_url_input" name="img_url" type="hidden" value="">
+			<input id="image_upload" type="button" value="选择图片" >
+		</div>
+	</div>
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
+	<div class="form-group">
+		<label class="control-label">开始时间:</label>
+		<input name="begin_time" type="text" class="form-control" style="max-width:250px;min-width:200px;">
+	</div>
+	<div class="form-group">
+		<label class="control-label">结束时间:</label>
+		<input name="end_time" type="text" class="form-control" style="max-width:250px;min-width:200px;">
+	</div>
+	<?php endif; ?>
+	<div class="form-group">
+		<label class="control-label">发布到哪些列表</label>
+		<div>
+			<?php if (count($this->_tpl_vars['platformList']) == 1): ?>
+			<?php $_from = $this->_tpl_vars['platformList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['platfrom']):
+?>
+			<label class="checkbox-inline">
+				<input name="platform_ids[]" type="checkbox" value="<?php echo $this->_tpl_vars['platfrom']['id']; ?>
+" checked> <?php echo $this->_tpl_vars['platfrom']['name']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+			<?php else: ?>
+			<?php $_from = $this->_tpl_vars['platformList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['platfrom']):
+?>
+			<label class="checkbox-inline">
+				<input name="platform_ids[]" type="checkbox" value="<?php echo $this->_tpl_vars['platfrom']['id']; ?>
+"> <?php echo $this->_tpl_vars['platfrom']['name']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+			<?php endif; ?>
+		</div>
+		<div class="note">注:创建后不可修改</div>
+	</div>
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] == 'TYPE_EVENTS_OTHER'): ?>
+	<div class="form-group">
+		<label>跳转URL:</label>
+		<input name="other_url" type="text" class="form-control">
+	</div>
+	<?php endif; ?>
+
+	<div class="form-group">
+		<label class="control-label">选择分类</label>
+		<div>
+			<select id="cotegory_id" name="category_id">
+				<option value="0" selected>选择分类名称</option>
+			<?php $_from = $this->_tpl_vars['categoryList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['cate']):
+?>
+			<option value="<?php echo $this->_tpl_vars['cate']['id']; ?>
+" <?php if ($this->_tpl_vars['cate']['id'] == $this->_tpl_vars['eventData']['category_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['cate']['name']; ?>
+</option>
+			<?php endforeach; endif; unset($_from); ?>
+			</select>
+		</div>
+	</div>
+
+	<div class="form-group">
+		<label class="control-label">是否推荐到焦点图</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['focusDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="focus_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['focus_display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+
+	<div class="form-group">
+		<label class="control-label">是否置顶</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['topDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="top_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['top_display'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?> > <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	<div class="form-group">
+		<label class="control-label">是否用户登录</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['authorize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['authid'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="authorize" type="radio" value="<?php echo $this->_tpl_vars['authid']; ?>
+"> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	<div class="form-group">
+		<label class="control-label">是否在列表中出现</label>
+		<div>
+			<?php $_from = $this->_tpl_vars['listDisplay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+			<label class="radio-inline">
+				<input name="list_display" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+"> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+			</label>
+			<?php endforeach; endif; unset($_from); ?>
+		</div>	
+	</div>
+	
+	
+	<?php if (! ((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['weixinFormNotType']) : in_array($_tmp, $this->_tpl_vars['weixinFormNotType']))): ?>
+	<div class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">设置微信分享</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="form-group">
+					<label class="control-label rowlabel">分享用图:<small class="text-danger">JPG、PNG,200*200,小于20k</small></label>
+					<div>
+						<img id="share_image_tag" src="http://placehold.it/200&text=200x200" style="width:150px;" class="img-thumbnail">
+						<input id="share_image_input" name=wx_img_url type="hidden" value="">
+						<input id="share_image_upload" type="button" value="选择图片" >
+					</div>
+				</div>
+				<div class="row">
+					<div class="col-md-6">
+						<div class="form-group">
+							<label class="control-label rowlabel">标题:<small class="text-danger">小于24个字</small></label>
+							<input name="weixinShare_title" type="text" class="form-control">
+						</div>
+						<div class="form-group">
+							<label class="control-label rowlabel">分享内容:<small class="text-danger">小于36个字</small></label>
+							<input name="weixinShare_content" type="text" class="form-control">
+						</div>
+						<div class="form-group">
+							<label class="control-label rowlabel">用户分享后跳转地址:</label>
+							<input name="weixinShare_jump_url" type="text" class="form-control">
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE' && $this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_CUT_SCREEN' && $this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_OTHER'): ?>
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">设置参与规则</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="row">
+					<div class="col-md-3">
+						<p>允许每天用户参与次数:</p>
+						<input name="participation_user_num" type="text" class="form-control" value="0" style="max-width:;">
+					</div>
+					<div class="col-md-3">
+						<p>允许每天IP参与次数:</p>
+						<input name="participation_ip_num" type="text" class="form-control" value="0" style="max-width:;">
+					</div>
+					<div class="col-md-3">
+						<p>允许用户参与次数:</p>
+						<input type="text" name="participation_user_all_num" class="form-control" value="0" style="max-width:;">
+					</div>
+					<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] == 'TYPE_EVENTS_TURNTABLE'): ?>
+					<div class="col-md-3">
+						<p>允许用户获奖次数:</p>
+						<input type="text" name="winning_user_num" class="form-control" value="0" style="max-width:;">
+					</div>
+					<?php endif; ?>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['cutDirectionFormNotType']) : in_array($_tmp, $this->_tpl_vars['cutDirectionFormNotType']))): ?>
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">切屏方向</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div>
+					<label class="radio-inline">
+						<input name="cut_fx" type="radio" value="fadeInUp" <?php if ($this->_tpl_vars['eventData']['cut_fx'] == 'fadeInUp'): ?>checked<?php endif; ?> > 从下向上翻页
+					</label>
+					<label class="checkbox-inline">
+						<input name="cut_fx" type="radio" value="fadeInRight" <?php if ($this->_tpl_vars['eventData']['cut_fx'] == 'fadeInRight'): ?>checked<?php endif; ?> > 从右向左翻页
+					</label>
+				</div>
+				<div class='note'>调整切屏方向,将改变切屏方式及部分内容显示的效果,一旦选定,尽量不要修改</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	
+	<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>		
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">专题音乐设置</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div>
+					<a href="javascript:;" class="music_play_or_pause music_play_hide button button-caution button-circle button-tiny" data-type="play">播</a> 
+					<input id="music_input" name="music_url" type="hidden" value="">
+					<input id="music_upload" type="button" value="选择音乐" >
+				</div>
+				<div>
+				<p></p>
+				<span class="">音乐图标放置:</span>
+				<?php $_from = $this->_tpl_vars['getMusicPosition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['posid'] => $this->_tpl_vars['info']):
+?>
+				<label class="radio-inline">
+					<input name="music_position" type="radio" value="<?php echo $this->_tpl_vars['posid']; ?>
+"> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+				</label>
+				<?php endforeach; endif; unset($_from); ?>
+				</div>
+			</div>
+			<div>目前只支持MP3格式,小于20k</div>
+		</div>
+	</div>
+	
+	<div  class="panel panel-default">
+		<div class="panel-heading"><h3 class="panel-title" id="panel-title">加载动画设置</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<div class="row">
+					<div class="col-md-3">
+						<p>加载背景色:</p>
+						<input id="loading_bg_input" name="loading_bg_color" type="text" class="form-control" value="#f8f7f5">
+					</div>
+					<div class="col-md-3">
+						<p>加载动画、文本颜色:</p>
+						<input id="loading_text_input" name="loading_text_color" type="text" class="form-control" value="#999999">
+					</div>
+				</div>
+			</div>
+		</div>
+	</div>
+	<?php endif; ?>
+	<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 创建活动</a>
+	<?php endif; ?>
+</div>
+
+<div style="clear:both;"></div>
+</form>
+</div>
+
+<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css">
+<?php endif; ?>
+
+<script>
+KISSY.use('node, io, jquery, gallery/datetimepicker/2.0.0/index, gallery/xplayer/2.1.0/index', function (S, Node, IO, jQuery, Datetimepicker, Xplayer) {
+	var $ = S.all;
+	
+	//日期
+    new Datetimepicker({
+        start : 'input[name=begin_time]'
+    });
+ 	//日期
+    new Datetimepicker({
+        start : 'input[name=end_time]'
+    });
+ 	
+    var XiamiPlay = new Xplayer({
+        "autoplay": false
+    });
+    <?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+	//选择音乐
+    KindEditor.ready(function(K) {
+    	var uploadbutton = K.uploadbutton({
+    		button : K('#music_upload')[0],
+    		fieldName : 'imgFile',
+    		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=mp3',
+    		afterUpload : function(data) {
+    			if (data.error === 0) {
+    				var url = K.formatUrl(data.url, 'absolute');
+    				K('#music_input').val(data.url);
+    				$(".music_play_or_pause").removeClass('music_play_hide');
+    				XiamiPlay.load({
+    				    'url' : data.url,
+    				});
+    			} else {
+    				alert(data.message);
+    			}
+    		},
+    		afterError : function(str) {
+    			alert('自定义错误信息: ' + str);
+    		}
+    	});
+    	uploadbutton.fileBox.change(function(e) {
+    		uploadbutton.submit();
+    	});
+    });
+  	
+    $(".music_play_or_pause").on("click", function() {
+    	if ($(this).attr('data-type') == 'play') {
+    		XiamiPlay.play();
+    		$(this).attr('data-type', 'pause').text('停');
+    	} else {
+    		XiamiPlay.pause();
+    		$(this).attr('data-type', 'play').text('播');
+    	}
+    });
+    <?php endif; ?>
+    
+    var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+    $("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	//表单验证
+    	var events_name = S.trim($("input[name=events_name]").val());
+    	if (!events_name) {
+    		alert('请填写活动标题');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	var img_url = $("input[name=img_url]").val();
+    	if (!img_url) {
+    		alert('请选择列表默认图片');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	var type = $("input[name=type]:checked").val();
+    	if (type <= 0) {
+    		alert('请选择活动类型');
+    		submit_button_default();
+    		return false;
+    	}
+    	
+    	<?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
+    	var begin_time = $("input[name=begin_time]").val();
+    	var end_time = $("input[name=end_time]").val();
+    	if (!begin_time || !end_time) {
+    		alert('请设置活动时间');
+    		submit_button_default();
+    		return false;
+    	}
+    	<?php endif; ?>
+    	
+    	formData = IO.serialize("#activity_form");
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetBasics&a=ReqCreate'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = url;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+    });
+});
+
+//设置微信分享
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#share_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#share_image_input').val(data.url);
+				K('#share_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+//列表默认图
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#img_url_input').val(data.url);
+				K('#img_url_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+
+<?php if (((is_array($_tmp=$this->_tpl_vars['thisType'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['musicFormNotType']) : in_array($_tmp, $this->_tpl_vars['musicFormNotType']))): ?>
+$("#loading_bg_input").minicolors({
+	defaultValue: '<?php echo $this->_tpl_vars['eventData']['loading_bg_color']; ?>
+'
+});
+$("#loading_text_input").minicolors({
+	defaultValue: '<?php echo $this->_tpl_vars['eventData']['loading_text_color']; ?>
+'
+});
+<?php endif; ?>
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 329 - 0
tm/compile_dir/%%50^50A^50A8C78C%%interactive_input.html.php

@@ -0,0 +1,329 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 10:22:08
+         compiled from admin/activity/interactive_input.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+		<div class="panel-heading">
+			<h3 class="panel-title" id="panel-title">设置表单</h3>
+		</div>
+		<div class="panel-body">
+			
+			<div class="form-group">
+				<div>
+					<table class="custom_from_table table table-condensed">
+						<thead>
+							<tr>
+								<th>名称</th>
+								<th>类型</th>
+								<th>最小长度</th>
+								<th>验证规则</th>
+								<th>是否必填</th>
+							</tr>
+						</thead>
+						<tbody>
+							<?php if (! $this->_tpl_vars['events_Data']['events']['forms']): ?>
+							<tr class="not_input">
+								<td colspan='6' align="center">没有设置表单</td>
+							</tr>
+							<?php else: ?>
+							<?php $_from = $this->_tpl_vars['events_Data']['events']['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['form']):
+?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control" /></td>
+								<td>
+									<select class="form-control form_select" name="f[0][type]">
+										<option value="text" selected>单行文本框</option>
+										<option value="textarea">多行文本框</option>
+										<option value="select">下拉菜单</option>
+									</select>
+								</td>
+								<td><input name="f[0][rule][size]" type="text" value="<?php echo $this->_tpl_vars['form']['rule']['size']; ?>
+" class="form-control" /></td>
+								<td>
+									<select class="form-control" name="f[0][rule][regularid]">
+										<option value="">无规则</option>
+										<option value="1" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 1): ?>selected<?php endif; ?>>手机验证</option>
+										<option value="2" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 2): ?>selected<?php endif; ?>>邮箱验证</option>
+									</select>
+								</td>
+								<td>
+									<input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/>
+								</td>
+							</tr>
+							<?php endif; ?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control"/></td>
+								<td>
+									<select class="form_select form-control" name="f[0][type]">
+										<option value="text">单行文本框</option>
+										<option value="textarea">多行文本框</option>
+										<option value="select" selected>下拉菜单</option>
+									</select>
+								</td>
+								<td>
+									<textarea name="f[0][options]" class="form-control" placeholder=""><?php echo $this->_tpl_vars['form']['options']; ?>
+</textarea>
+								</td>
+								<td>多个选项换行分隔</td>
+								<td><input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/></td>
+							</tr>
+							<?php endif; ?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control"/></td>
+								<td>
+									<select class="form_select form-control" name="f[0][type]">
+										<option value="text">单行文本框</option>
+										<option value="textarea" selected>多行文本框</option>
+										<option value="select">下拉菜单</option>
+									</select>
+								</td>
+								<td><input name="f[0][rule][size]" type="text" value="<?php echo $this->_tpl_vars['form']['rule']['size']; ?>
+" class="form-control"/></td>
+								<td>
+									<select name="f[0][rule][regularid]" class="form-control">
+										<option value="">无规则</option>
+										<option value="1" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 1): ?>selected<?php endif; ?>>手机验证</option>
+										<option value="2" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 2): ?>selected<?php endif; ?>>邮箱验证</option>
+									</select>
+								</td>
+								<td><input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/> </td>
+							</tr>
+							<?php endif; ?>
+							<?php endforeach; endif; unset($_from); ?>
+							<?php endif; ?>
+						</tbody>
+					</table>
+					<a href="javascript:;" class="addRule js_add_prize" data-stat="show"><i class="fa fa-plus"></i> 添加表单字段</a>
+				</div>
+			</div>
+			<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
+			<?php if ($this->_tpl_vars['typ']): ?>
+			<div  style="text-align:right;">
+				<a  href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+" >返回互动设置</a>
+			</div>
+			<?php endif; ?>
+		</div>
+	</div>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div style="clear:both;"></div>
+</form>
+</div>
+
+<div class="form_select_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text">单行文本框</option>
+					<option value="textarea">多行文本框</option>
+					<option value="select" selected>下拉菜单</option>
+				</select>
+			</td>
+			<td>
+				<textarea name="f[0][options]" class="form-control" placeholder=""></textarea>
+			</td>
+			<td>多个选项换行分隔</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/></td>
+		</tr>
+	</table>
+</div>
+<div class="form_text_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text" selected>单行文本框</option>
+					<option value="textarea">多行文本框</option>
+					<option value="select">下拉菜单</option>
+				</select>
+			</td>
+			<td><input name="f[0][rule][size]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select name="f[0][rule][regularid]" class="form-control">
+					<option value="">无规则</option>
+					<option value="1">手机验证</option>
+					<option value="2">邮箱验证</option>
+				</select>
+			</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/></td>
+		</tr>
+	</table>
+</div>
+<div class="form_textarea_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text">单行文本框</option>
+					<option value="textarea" selected>多行文本框</option>
+					<option value="select">下拉菜单</option>
+				</select>
+			</td>
+			<td><input name="f[0][rule][size]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select name="f[0][rule][regularid]" class="form-control">
+					<option value="">无规则</option>
+					<option value="1">手机验证</option>
+					<option value="2">邮箱验证</option>
+				</select>
+			</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/> </td>
+		</tr>
+	</table>
+</div>
+
+<script>
+KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
+	var $ = S.all;
+	
+	$('.addRule').on('click', function () {
+		$(".not_input").hide();
+    	var form_text_template = $('.form_text_template table tbody').last().clone(true, true, true);
+    	$('.custom_from_table tbody').last().after(form_text_template);
+	});
+	
+	Event.delegate(document,'change','.form_select',function(e){
+		var formType = e.target.value;
+		
+		if (formType == 'select') {
+			var form_select_template = $('.form_select_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_select_template);
+		}
+		
+		if (formType == 'text') {
+			var form_text_template = $('.form_text_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_text_template);
+		}
+		
+		if (formType == 'textarea') {
+			var form_textarea_template = $('.form_textarea_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_textarea_template);
+		}
+	});
+	
+	var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+	$("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	jQuery('.custom_from_table tr').each(function (i, item) {
+			jQuery(item).find('input,select,checkbox,textarea').each(function (j, input) {
+				input.name = input.name.replace(/\[\d+\]/, '['+ i +']');
+			});
+		});
+    	
+    	formData = IO.serialize("#activity_form");
+    	
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetInteractive&a=ReqUpForm'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					alert('保存成功');
+					location.reload();
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 181 - 0
tm/compile_dir/%%55^551^551108F0%%list.html.php

@@ -0,0 +1,181 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-17 17:25:12
+         compiled from admin/Category/list.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.7.2.min.js"></script>
+<link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.css" />
+<script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery.minicolors.js"></script>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<div class="panel panel-default col-md-7">
+	<div class="panel-body">
+		<table class="table">
+			<thead>
+				<tr>
+					<th>序号</th>
+					<th>名称</th>
+					<th>图标</th>
+					<th>编辑</th>
+				</tr>
+			</thead>
+			<tbody>
+				<?php if (! $this->_tpl_vars['CategoryData']): ?>
+				<tr><td colspan="5" align="center">暂无信息</td></tr>
+				<?php endif; ?>
+				<?php $_from = $this->_tpl_vars['CategoryData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['item']['id']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['item']['name']; ?>
+</td>
+					<td><img src="<?php echo $this->_tpl_vars['item']['icon']; ?>
+" width="40" /></td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Category_index&a=PageShow&id=<?php echo $this->_tpl_vars['item']['id']; ?>
+">编辑</a></td>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+			</tbody>
+		</table>
+		<div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
+</div>
+	</div>
+</div>
+
+<form id="add_category_form">
+<div class="col-md-5" style="padding-left: 30px;">
+	<div class="form-group">
+		<label class="control-label">添加一个分类</label>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">分类名称</label>
+		<input name="name" type="text" class="form-control" >
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">分类图标</label>
+		<div>
+			<img id="icon_image_tag" src="http://placehold.it/36&text=36x36" style="width:30px;" class="img-thumbnail">
+			<input id="icon_image_input" name='icon' type="hidden" value="">
+			<input id="icon_image_upload" type="button" value="默认图片" >
+		</div>
+	</div>
+	<div>
+		<a id="add_category_btn" href="javascript:;" class="button button-primary button-small">添加</a>
+	</div>
+</div>
+</form>
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+	var $ = S.all;
+	
+	$("#add_category_btn").on('click', function () {
+		var name = $("input[name=name]").val();
+		if (!name) {
+			alert('请填写名称');
+			return false;
+		}
+		
+		var icon = $("input[name=icon]").val();
+		if (!icon) {
+			alert('请选择分类图标');
+			return false;
+		}
+		var data = IO.serialize("#add_category_form");
+		
+		new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Category_index&a=PageList&a=ReqCreate'
+			, data: data
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = VG.conf.url;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+//icon image
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#icon_image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#icon_image_input').val(data.url);
+				K('#icon_image_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 8 - 0
tm/compile_dir/%%59^592^59210787%%menu_icon.html.php

@@ -0,0 +1,8 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-23 12:06:35
+         compiled from menu_icon.html */ ?>
+<!--这里是公共菜单按钮 begin-->
+<?php if (@FROMSOURCE_APP != 'true'): ?>
+	<div class="menu_icon" id="munu_icon">
+		<span class="menu_com"></span>
+	</div>
+<?php endif; ?>

+ 234 - 0
tm/compile_dir/%%5C^5C8^5C8ABD36%%user_list.html.php

@@ -0,0 +1,234 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-17 19:37:29
+         compiled from admin/backUser/user_list.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+<?php if (! $this->_tpl_vars['platfrom']): ?>
+请先创建一个列表。进入<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Platform_index&a=PageList">平台列表</a>
+<?php else: ?>
+<div class="panel panel-default col-md-7">
+	<div class="panel-body">
+		<table class="table">
+			<thead>
+				<tr>
+					<th>UID</th>
+					<th>用户名</th>
+					<th>权限组</th>
+					<th>权限设置</th>
+					<th>平台列表</th>
+					<th>密码修改</th>
+					<th>删除</th>
+				</tr>
+			</thead>
+			<tbody>
+				<?php if (! $this->_tpl_vars['users']): ?>
+				<tr><td colspan="4" align="center">暂无用户信息</td></tr>
+				<?php endif; ?>
+				<?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['user']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['user']['uid']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['user']['name']; ?>
+</td>
+					<td><?php if ($this->_tpl_vars['user']['permission'] == 'admin'): ?> <span class="text-primary">管理员</span> <?php else: ?> 普通帐号 <?php endif; ?> </td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_backUser&a=setPermission&uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
+">权限设置</a></td>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=admin_backUser&a=SetPlatfrom&uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
+">平台列表</a>
+					<td><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_BackUser&a=MP&uid=<?php echo $this->_tpl_vars['user']['uid']; ?>
+">密码修改</a></td>
+					<td><a href="javascript:;" class="deleteUser" data-uid="<?php echo $this->_tpl_vars['user']['uid']; ?>
+">删除</a></td>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+			</tbody>
+		</table>
+	</div>
+</div>
+
+<form id="create_user_form" action="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_BackUser&a=CreateUser" method="post">
+<div class="col-md-5" style="padding-left: 30px;">
+	<?php if ($this->_tpl_vars['errMsg']['ok']): ?>
+	<div class="tip_message_success">创建成功</div>
+	<?php endif; ?>
+	<?php if (! $this->_tpl_vars['errMsg']['ok'] && $this->_tpl_vars['errMsg']['msg']): ?>
+	<div class="tip_message_fail">创建失败,原因:<?php echo $this->_tpl_vars['errMsg']['msg']; ?>
+</div>
+	<?php endif; ?>
+	
+	<?php if (! $this->_tpl_vars['errMsg'] || $this->_tpl_vars['errMsg']['msg']): ?>
+	<div class="form-group">
+		<label class="control-label">创建新帐号</label>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">用户名</label>
+		<input name="name" type="text" class="form-control" value="<?php echo $this->_tpl_vars['submitData']['name']; ?>
+">
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">密码</label>
+		<input name="password" type="password" class="form-control" value="<?php echo $this->_tpl_vars['submitData']['password']; ?>
+">
+	</div>
+	<div class="form-group">
+		<label><input name="auto_generate" type="checkbox" value="1" <?php if ($this->_tpl_vars['submitData']['auto_generate']): ?>checked<?php endif; ?>> 自动生成密码</label>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">平台列表</label>
+		<div>
+		<?php $_from = $this->_tpl_vars['platfrom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['item']):
+?>
+		<label class="checkbox-inline"><input name="platfrom[]" type="checkbox" value="<?php echo $this->_tpl_vars['item']['id']; ?>
+" > <?php echo $this->_tpl_vars['item']['name']; ?>
+</label>
+		<?php endforeach; endif; unset($_from); ?>
+		</div>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">邮箱</label>
+		<input name="email" type="text" class="form-control" value="<?php echo $this->_tpl_vars['submitData']['email']; ?>
+">
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">部门</label>
+		<input name="division" type="text" class="form-control" value="<?php echo $this->_tpl_vars['submitData']['division']; ?>
+">
+	</div>
+	
+	<div>
+		<button id="add_platform_btn" class="button button-primary button-small">创建</button>
+	</div>
+	<?php endif; ?>
+
+	<?php if ($this->_tpl_vars['errMsg']['ok']): ?>
+	<div class="form-group">
+		<label class="control-label rowlabel">用户名:</label>
+		<?php echo $this->_tpl_vars['new_user']['name']; ?>
+
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">密码:</label>
+		<?php echo $this->_tpl_vars['new_user']['password']; ?>
+
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">平台列表:</label>
+		<?php $_from = $this->_tpl_vars['submitData']['platfrom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['platfromId']):
+?>
+		<?php echo $this->_tpl_vars['platfrom'][$this->_tpl_vars['platfromId']]['name']; ?>
+&nbsp;
+		<?php endforeach; endif; unset($_from); ?>
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">邮箱:</label>
+		<?php echo $this->_tpl_vars['new_user']['email']; ?>
+
+	</div>
+	<div class="form-group">
+		<label class="control-label rowlabel">部门:</label>
+		<?php echo $this->_tpl_vars['new_user']['division']; ?>
+
+	</div>
+	<?php endif; ?>
+</div>
+</form>
+<?php endif; ?>
+<script>
+KISSY.use('node, io', function (S, Node, IO) {
+	var $ = S.all;
+
+	$('#add_platform_btn').on('click', function () {
+		var name = $('input[name=name]').val();
+		if (S.trim(name) == '') {
+		  showError('姓名不能为空');
+		  return false;
+		}
+	});
+  
+	function showError($msg) {
+		alert($msg);
+	}
+	
+	$(".deleteUser").on('click', function () {
+		var uid = $(this).attr('data-uid');
+		if (!uid) {
+			alert('无效uid');
+			return false;
+		}
+		
+		if (!confirm('确定要删除帐号?')) {
+			return false;
+		}
+		
+		new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=admin_backUser&a=DeleteUser'
+			, data: {'uid':uid}
+			, success: function (data) {
+				if (data.ok) { //ok
+					alert('操作成功');
+					location.reload();
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 380 - 0
tm/compile_dir/%%5E^5EF^5EF8E36D%%interactive_code.html.php

@@ -0,0 +1,380 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 15:03:51
+         compiled from admin/activity/interactive_code.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+		<div class="panel-body">
+			<div class="form-group">
+				<label>券名称:</label>
+				<input name="code_name" type="text" class="form-control" value="<?php echo $this->_tpl_vars['events_Data']['events']['code_name']; ?>
+">
+			</div>
+			<div class="form-group">
+				<label>券图片:</label>
+				<div>
+					<img id="img_url_tag" src="<?php if ($this->_tpl_vars['events_Data']['events']['code_img_url']): ?><?php echo $this->_tpl_vars['events_Data']['events']['code_img_url']; ?>
+<?php else: ?>http://placehold.it/100&text=100x100<?php endif; ?>" style="width:100px;" class="img-thumbnail">
+					<input id="img_url_input" name="code_img_url" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['code_img_url']; ?>
+">
+					<input id="image_upload" type="button" value="选择图片" >
+				</div>
+			</div>
+			<div class="form-group">
+				<label>券数量:</label>
+				<div>
+					<?php $this->assign('num', $this->_tpl_vars['codeDataNum']-$this->_tpl_vars['useCodeDataNum']); ?>
+					总数: <?php echo $this->_tpl_vars['codeDataNum']; ?>
+&nbsp;&nbsp;已发放: <?php echo $this->_tpl_vars['useCodeDataNum']; ?>
+&nbsp;&nbsp;剩余: <?php echo $this->_tpl_vars['num']; ?>
+&nbsp;&nbsp;
+					<a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=Admin_Activity_SetInteractive&a=ReqShowEventCode&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">查看</a>
+				</div>
+			</div>
+			<div class="form-group">
+				<label>添加新券: <small class="text-danger">每次不超过200条,换行分割</small></label>
+				<div>
+					<textarea name="code_data" rows="2" class="form-control" style="width:220px;"></textarea>
+				</div>
+			</div>
+			
+			<div class="form-group">
+			<label>设置表单:</label>
+				<div>
+					<table class="custom_from_table table table-condensed">
+						<thead>
+							<tr>
+								<th>名称</th>
+								<th>类型</th>
+								<th>最小长度</th>
+								<th>验证规则</th>
+								<th>是否必填</th>
+							</tr>
+						</thead>
+						<tbody>
+							<?php if (! $this->_tpl_vars['events_Data']['events']['forms']): ?>
+							<tr class="not_input">
+								<td colspan='6' align="center">没有设置表单</td>
+							</tr>
+							<?php else: ?>
+							<?php $_from = $this->_tpl_vars['events_Data']['events']['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['form']):
+?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control" /></td>
+								<td>
+									<select class="form-control form_select" name="f[0][type]">
+										<option value="text" selected>单行文本框</option>
+										<option value="textarea">多行文本框</option>
+										<option value="select">下拉菜单</option>
+									</select>
+								</td>
+								<td><input name="f[0][rule][size]" type="text" value="<?php echo $this->_tpl_vars['form']['rule']['size']; ?>
+" class="form-control" /></td>
+								<td>
+									<select class="form-control" name="f[0][rule][regularid]">
+										<option value="">无规则</option>
+										<option value="1" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 1): ?>selected<?php endif; ?>>手机验证</option>
+										<option value="2" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 2): ?>selected<?php endif; ?>>邮箱验证</option>
+									</select>
+								</td>
+								<td>
+									<input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/>
+								</td>
+							</tr>
+							<?php endif; ?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control"/></td>
+								<td>
+									<select class="form_select form-control" name="f[0][type]">
+										<option value="text">单行文本框</option>
+										<option value="textarea">多行文本框</option>
+										<option value="select" selected>下拉菜单</option>
+									</select>
+								</td>
+								<td>
+									<textarea name="f[0][options]" class="form-control" placeholder=""><?php echo $this->_tpl_vars['form']['options']; ?>
+</textarea>
+								</td>
+								<td>多个选项换行分隔</td>
+								<td><input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/></td>
+							</tr>
+							<?php endif; ?>
+							<?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>
+							<tr>
+								<td><input name="f[0][name]" type="text" value="<?php echo $this->_tpl_vars['form']['name']; ?>
+" class="form-control"/></td>
+								<td>
+									<select class="form_select form-control" name="f[0][type]">
+										<option value="text">单行文本框</option>
+										<option value="textarea" selected>多行文本框</option>
+										<option value="select">下拉菜单</option>
+									</select>
+								</td>
+								<td><input name="f[0][rule][size]" type="text" value="<?php echo $this->_tpl_vars['form']['rule']['size']; ?>
+" class="form-control"/></td>
+								<td>
+									<select name="f[0][rule][regularid]" class="form-control">
+										<option value="">无规则</option>
+										<option value="1" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 1): ?>selected<?php endif; ?>>手机验证</option>
+										<option value="2" <?php if ($this->_tpl_vars['form']['rule']['regularid'] == 2): ?>selected<?php endif; ?>>邮箱验证</option>
+									</select>
+								</td>
+								<td><input name="f[0][required]" type="checkbox" value="1" <?php if ($this->_tpl_vars['form']['required']): ?>checked<?php endif; ?>/> </td>
+							</tr>
+							<?php endif; ?>
+							<?php endforeach; endif; unset($_from); ?>
+							<?php endif; ?>
+						</tbody>
+					</table>
+					<a href="javascript:;" class="addRule js_add_prize" data-stat="show"><i class="fa fa-plus"></i> 添加表单字段</a>
+				</div>
+			</div>
+		</div>
+	</div>
+	
+	<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div style="clear:both;"></div>
+</form>
+</div>
+
+
+<div class="form_select_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text">单行文本框</option>
+					<option value="textarea">多行文本框</option>
+					<option value="select" selected>下拉菜单</option>
+				</select>
+			</td>
+			<td>
+				<textarea name="f[0][options]" class="form-control" placeholder=""></textarea>
+			</td>
+			<td>多个选项换行分隔</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/></td>
+		</tr>
+	</table>
+</div>
+<div class="form_text_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text" selected>单行文本框</option>
+					<option value="textarea">多行文本框</option>
+					<option value="select">下拉菜单</option>
+				</select>
+			</td>
+			<td><input name="f[0][rule][size]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select name="f[0][rule][regularid]" class="form-control">
+					<option value="">无规则</option>
+					<option value="1">手机验证</option>
+					<option value="2">邮箱验证</option>
+				</select>
+			</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/></td>
+		</tr>
+	</table>
+</div>
+<div class="form_textarea_template" style="display:none;">
+	<table>
+		<tr>
+			<td><input name="f[0][name]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select class="form_select form-control" name="f[0][type]">
+					<option value="text">单行文本框</option>
+					<option value="textarea" selected>多行文本框</option>
+					<option value="select">下拉菜单</option>
+				</select>
+			</td>
+			<td><input name="f[0][rule][size]" type="text" value="" class="form-control"/></td>
+			<td>
+				<select name="f[0][rule][regularid]" class="form-control">
+					<option value="">无规则</option>
+					<option value="1">手机验证</option>
+					<option value="2">邮箱验证</option>
+				</select>
+			</td>
+			<td><input name="f[0][required]" type="checkbox" value="1"/> </td>
+		</tr>
+	</table>
+</div>
+
+<script>
+KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
+	var $ = S.all;
+	
+	$('.addRule').on('click', function () {
+		$(".not_input").hide();
+    	var form_text_template = $('.form_text_template table tbody').last().clone(true, true, true);
+    	$('.custom_from_table tbody').last().after(form_text_template);
+	});
+	
+	Event.delegate(document,'change','.form_select',function(e){
+		var formType = e.target.value;
+		
+		if (formType == 'select') {
+			var form_select_template = $('.form_select_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_select_template);
+		}
+		
+		if (formType == 'text') {
+			var form_text_template = $('.form_text_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_text_template);
+		}
+		
+		if (formType == 'textarea') {
+			var form_textarea_template = $('.form_textarea_template table tbody').last().clone(true, true, true);
+			$(e.target).parent('tr').replaceWith(form_textarea_template);
+		}
+	});
+	
+	var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+	$("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	jQuery('.custom_from_table tr').each(function (i, item) {
+			jQuery(item).find('input,select,checkbox,textarea').each(function (j, input) {
+				input.name = input.name.replace(/\[\d+\]/, '['+ i +']');
+			});
+		});
+    	
+    	formData = IO.serialize("#activity_form");
+    	
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetInteractive&a=ReqUpCode'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					location.href = location.href;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+					location.href = location.href;
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+//列表默认图
+KindEditor.ready(function(K) {
+	var uploadbutton = K.uploadbutton({
+		button : K('#image_upload')[0],
+		fieldName : 'imgFile',
+		url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
+		afterUpload : function(data) {
+			if (data.error === 0) {
+				var url = K.formatUrl(data.url, 'absolute');
+				K('#img_url_input').val(data.url);
+				K('#img_url_tag').attr('src', data.url);
+			} else {
+				alert(data.message);
+			}
+		},
+		afterError : function(str) {
+			alert('自定义错误信息: ' + str);
+		}
+	});
+	uploadbutton.fileBox.change(function(e) {
+		uploadbutton.submit();
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 246 - 0
tm/compile_dir/%%61^61B^61BE7FAB%%setPage_event.html.php

@@ -0,0 +1,246 @@
+<?php /* Smarty version 2.6.17, created on 2018-05-17 18:54:58
+         compiled from admin/activity/setPage_event.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+.ke-container {
+	width:640px!important
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+		<div class="panel-body">
+
+			<div class="form-group">
+				<label class="control-label rowlabel">显示顶部数据栏目:</label>
+				<?php $_from = $this->_tpl_vars['eventsTopData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+				<label class="radio-inline">
+					<input name="top_data" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['top_data'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+				</label>
+				<?php endforeach; endif; unset($_from); ?>
+			</div>
+
+			<div class="form-group">
+				<label class="control-label rowlabel">显示分栏标签:</label>
+
+				<input name="is_column_tag_1" type="checkbox" value="1" <?php if ($this->_tpl_vars['eventData']['is_column_tag_1'] == 1): ?>checked<?php endif; ?>>
+
+				<input name="column_tag_1" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['column_tag_1']): ?><?php echo $this->_tpl_vars['eventData']['column_tag_1']; ?>
+<?php else: ?> 活动介绍<?php endif; ?>"/>
+
+				<input name="is_column_tag_2" type="checkbox" value="1" <?php if ($this->_tpl_vars['eventData']['is_column_tag_2'] == 1): ?>checked<?php endif; ?>>
+
+				<input name="column_tag_2" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['column_tag_2']): ?><?php echo $this->_tpl_vars['eventData']['column_tag_2']; ?>
+<?php else: ?> 中奖信息<?php endif; ?>"/>
+
+				<input name="is_column_tag_3" type="checkbox" value="1" <?php if ($this->_tpl_vars['eventData']['is_column_tag_3'] == 1): ?>checked<?php endif; ?>>
+
+				<input name="column_tag_3" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['column_tag_3']): ?><?php echo $this->_tpl_vars['eventData']['column_tag_3']; ?>
+<?php else: ?> 试用评价<?php endif; ?>"/>
+			</div>
+
+			<div class="form-group">
+				<label class="control-label rowlabel">正文内容:</label>
+				<textarea name="events_tips" class="form-control" rows="15" style="width:;"><?php echo $this->_tpl_vars['eventData']['events_tips']; ?>
+</textarea>
+			</div>
+			
+			<div class="form-group">
+				<label class="control-label rowlabel">是否显示分享按钮:</label>
+				<?php $_from = $this->_tpl_vars['eventsShareButton']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+				<label class="radio-inline">
+					<input name="share_button" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['share_button'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+				</label>
+				<?php endforeach; endif; unset($_from); ?>
+
+				<input name="share_button_tips" class="form-control" style="display:inline;width:300px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['share_button_tips']): ?><?php echo $this->_tpl_vars['eventData']['share_button_tips']; ?>
+<?php else: ?>分享优惠给好友<?php endif; ?>"/>
+			</div>
+
+			<div class="form-group">
+				<label class="control-label rowlabel">是否显示导购按钮:</label>
+				<?php $_from = $this->_tpl_vars['eventsBuyButton']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['info']):
+?>
+				<label class="radio-inline">
+					<input name="buy_button" type="radio" value="<?php echo $this->_tpl_vars['key']; ?>
+" <?php if ($this->_tpl_vars['eventData']['buy_button'] == $this->_tpl_vars['key']): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['info']['desc']; ?>
+
+				</label>
+				<?php endforeach; endif; unset($_from); ?>
+
+				<input name="buy_button_tips" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['buy_button_tips']): ?><?php echo $this->_tpl_vars['eventData']['buy_button_tips']; ?>
+<?php else: ?> 立即购买通道<?php endif; ?>"/>
+
+				<input name="buy_button_link" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['buy_button_link']): ?><?php echo $this->_tpl_vars['eventData']['buy_button_link']; ?>
+<?php else: ?> 微信链接<?php endif; ?>"/>
+
+				<input name="buy_button_app" class="form-control" style="display:inline;width:150px;" type="text" value="<?php if ($this->_tpl_vars['eventData']['buy_button_app']): ?><?php echo $this->_tpl_vars['eventData']['buy_button_app']; ?>
+<?php else: ?> APP链接<?php endif; ?>"/>
+			</div>
+
+			<div class="form-group">
+				<label class="control-label rowlabel">互动提示语:</label>
+				<input name="events_hd_tips" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['events_hd_tips']; ?>
+"/>
+			</div>
+
+			<div class="form-group">
+				<label class="control-label rowlabel">活动规则提示语:</label>
+				<input name="operationt_tips" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['operationt_tips']; ?>
+"/>
+			</div>
+			<div class="form-group">
+				<label class="control-label rowlabel">活动规则:</label>
+				<textarea name="events_rules" class="form-control" rows="15" style="width:;"><?php echo $this->_tpl_vars['eventData']['events_rules']; ?>
+</textarea>
+			</div>
+			<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
+ 		</div>
+	</div>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div style="clear:both;"></div>
+</form>
+</div>
+
+<script>
+var tips_editor,rules_editor;
+KISSY.use('node, io, uri', function (S, Node, IO, Uri) {
+	var $ = S.all;
+	var Query = Uri.Query;
+	
+	var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+	$("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	var events_tips = tips_editor.html();
+    	var events_rules = rules_editor.html();
+    	
+    	formData = IO.serialize("#activity_form");
+    	formData = new Query(formData).set('events_tips', events_tips).toString();
+    	formData = new Query(formData).set('events_rules', events_rules).toString();
+    	
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetPage&a=ReqUpRoutine'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					location.href = location.href;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+					location.href = location.href;
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+var KCONFIG = {
+	allowFileManager : true,
+	uploadJson : VG.conf.root_domain + '/?c=kindeditor&a=updateJson',
+	fileManagerJson : VG.conf.root_domain + '/?c=kindeditor&a=fileManagerJson',
+	items : [
+				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
+				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
+				'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'lineheight', 'flash']
+}
+KindEditor.ready(function(K) {
+	tips_editor = K.create('textarea[name=events_tips]', KCONFIG);
+});
+
+KindEditor.ready(function(K) {
+	rules_editor = K.create('textarea[name=events_rules]', KCONFIG);
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 40 - 0
tm/compile_dir/%%6F^6F7^6F771115%%save_qrcode.html.php

@@ -0,0 +1,40 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-23 12:06:35
+         compiled from save_qrcode.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<!--公用标题居中显示-->
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div class="wrapper jsc-sidebar-content jsc-sidebar-pulled">
+	<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "menu_icon.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+    
+    <div class="article_title center">保存邀请码</div>
+    <div class="article_content center">您已获得:<?php echo $this->_tpl_vars['info']['events_name']; ?>
+</div>
+    <br>
+    <div class="code_show center"><img src="<?php echo $this->_tpl_vars['imgUrl']; ?>
+"></div>
+    <div class="article_content center">长按二维码,保存到相册<br>活动现场请出示您的二维码</div>
+    
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 61 - 0
tm/compile_dir/%%71^714^714F4B17%%header.html.php

@@ -0,0 +1,61 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 14:56:14
+         compiled from header.html */ ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title><?php if ($this->_tpl_vars['weixinShare']['title']): ?><?php echo $this->_tpl_vars['weixinShare']['title']; ?>
+<?php else: ?><?php echo $this->_tpl_vars['title']; ?>
+<?php endif; ?></title>
+<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
+<meta name="apple-mobile-web-app-capable" content="yes">
+<meta name="apple-mobile-web-app-status-bar-style" content="black">
+<meta name="format-detection" content="telephone=no">
+<meta http-equiv="Expires" CONTENT="-1">
+<meta http-equiv="Cache-Control" CONTENT="no-cache">
+<meta http-equiv="Pragma" CONTENT="no-cache">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/kissy/1.4.0/seed.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/cfg-min.js?t=1408326831" data-config="{combine:false}" charset="utf-8"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/kissy-versions.php" charset="utf-8"></script>
+
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/jquery-1.8.3.min.js?v=0.2" charset="utf-8"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/js/sidebar.js?v=0.2" charset="utf-8"></script>
+
+<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/css/base.css" />
+<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/css/style.css" />
+<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/bootstrap/font-awesome-4.3.0/css/font-awesome.css" />
+<style>
+.submit_btn_style,.bg_color,.v_close_btn{background-color:<?php echo $this->_tpl_vars['platform']['color']; ?>
+;}
+.v_nav dl.on a{color:<?php if ($this->_tpl_vars['platform']['color']): ?><?php echo $this->_tpl_vars['platform']['color']; ?>
+<?php else: ?>#f00<?php endif; ?>;}
+.font_color{color:<?php echo $this->_tpl_vars['platform']['color']; ?>
+;}
+</style>
+<script type="text/javascript">
+	var VG = {};
+	
+	VG.conf = {
+		root_domain: '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+'
+		, cdn_domain: '<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+'
+		, url: '<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
+'
+	};
+</script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/share/zepto.min.js"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/share/jweixin.js?2"></script>
+<script src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/share/mshare.js?22"></script>
+<body id="body">

+ 174 - 0
tm/compile_dir/%%73^73D^73D43E79%%events_code.html.php

@@ -0,0 +1,174 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 15:04:00
+         compiled from events_code.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<!--公用标题居中显示-->
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+
+<div class="wrapper clear">
+    <div class="article_title center"><?php echo $this->_tpl_vars['codeInfo']['events_name']; ?>
+</div>
+	<!--公用活动说明样式-->
+    <div class="article_content">
+    	<?php echo $this->_tpl_vars['codeInfo']['events_tips']; ?>
+
+    </div>
+    <div class="v_box_w clear">
+        <?php if (! $this->_tpl_vars['eventsStatus']): ?>
+        <?php if ($this->_tpl_vars['codeInfo']['events_hd_tips']): ?>
+        <div class="h3_title"><?php echo $this->_tpl_vars['codeInfo']['events_hd_tips']; ?>
+</div>
+        <?php endif; ?>
+        <?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "event_forms_template.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+        <?php else: ?>
+        <!--公用活动结束提示 begin-->
+        <div class="v_end_com_box">
+            <div class="v_end_txt_com center">活动已结束!</div>
+            <div class="center"><a href="<?php echo $this->_tpl_vars['listUrl']; ?>
+" class="submit_btn_style">参与更多特权活动</a></div>
+        </div>
+        <?php endif; ?>
+
+        <?php if ($this->_tpl_vars['codeInfo']['share_button'] == 2): ?>
+        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "share_button.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+	    <?php endif; ?>
+        
+        <?php if ($this->_tpl_vars['codeInfo']['operationt_tips']): ?>
+        <div class="h3_title"><span><?php echo $this->_tpl_vars['codeInfo']['operationt_tips']; ?>
+</span></div>
+        <?php endif; ?>
+        <!--公用活动规则样式-->
+        <div class="activity_des">
+            <?php echo $this->_tpl_vars['codeInfo']['events_rules']; ?>
+
+        </div>
+        
+        <div class="clear"></div>
+    </div>
+    
+    
+    
+</div>
+
+<!--公用提示背景遮罩层-->
+<div class="a_cover"></div>
+
+<!--公用提示样式一 begin-->
+<div class="v_tips_box" id="msg_tips_box">
+    <div class="v_close_btn"></div>
+    <p class="tips_msg"></p>
+</div>
+<!--公用提示样式一 end-->
+
+
+<!--公用提示样式二 begin-->
+<div class="v_tips_box v_tips_box2">
+	<div class="v_close_btn"></div>
+    <p class="tips_img"><img src="<?php echo $this->_tpl_vars['codeInfo']['code_img_url']; ?>
+"></p>
+    <p class="tips_txt_show">恭喜您获得<br><?php echo $this->_tpl_vars['codeInfo']['code_name']; ?>
+</p>
+    <p class="go_tips_txt">券:<span>请到"我的奖品"中查看</span></p>
+    <p class="go_tips_btn center">
+        <a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
+" class="submit_btn_style">查看详情</a>
+    </p>
+</div>
+<!--公用提示样式二 end-->
+
+<script>
+
+var seconds = 2000;
+
+
+//刷新页面
+function reload_page (){
+	window.location.reload();
+}
+
+// 跳转页面
+var goUrl = '';
+function go_page(){
+	location.href = goUrl;
+}
+
+$(".v_close_btn").on('click', function(){
+	$(".v_tips_box,.a_cover").hide();
+});
+
+
+KISSY.use('node, io', function (S, Node, IO) {
+	
+	function showMsg($msg) {
+		$('.tips_msg').html($msg);
+		$('#msg_tips_box, .a_cover').fadeIn().delay(2000).fadeOut();
+	}
+	
+	function showLoading() {
+		$('.tips_msg').html('<i class="fa fa-spinner fa-pulse"></i>');
+		$('#msg_tips_box, .a_cover').fadeIn();
+	}
+	
+	$('#common_submit_btn').on('click', function () {
+		IO.on("send",function(){
+			showLoading();
+		});
+		
+		IO.on("complete",function(){
+			//$("#v_tips_box").hide();
+		});
+		
+		var formData = IO.serialize('#ff');
+		IO.post('<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=EventsCode&a=apply&events_id=<?php echo $this->_tpl_vars['codeInfo']['id']; ?>
+'
+			, formData
+			, function (data) {
+				
+				if (data.ok) {
+					S.log(data.msg);
+					$("#msg_tips_box").hide();
+					$(".go_tips_txt span").html(data.msg.codeData.data);
+					$(".v_tips_box2").fadeIn();
+				} else {
+					if(data.msg.url){
+						$(".tips_msg").html('本活需登录后才可以参与');
+						$('#msg_tips_box').fadeIn();
+						goUrl = '<?php echo $this->_tpl_vars['loginUrl']; ?>
+';
+						setInterval("go_page();",seconds);
+						return ;
+					}
+					showMsg(data.msg);
+					return ;
+					
+				}
+			}
+			, 'json'
+		);
+		return false;
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 147 - 0
tm/compile_dir/%%77^774^774BE9C9%%index.html.php

@@ -0,0 +1,147 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-19 17:53:05
+         compiled from index.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<style>
+.vogue_top_list img {
+    background: #fff url("<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/img/m-load.gif") no-repeat scroll 50% center / 20px 20px;
+}
+</style>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div class="wrapper clear">    
+    <div class="vogue_top_list">
+    	<?php $_from = $this->_tpl_vars['eventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['events']):
+?>
+        <dl>
+        	<a href="<?php echo $this->_tpl_vars['events']['url']; ?>
+">
+                <dt><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/img/bg_alpha.png" data-ks-lazyload="<?php echo $this->_tpl_vars['events']['img_url']; ?>
+"></dt>
+                <dd>
+                	<p><?php echo $this->_tpl_vars['events']['events_name']; ?>
+</p>
+                    <p class="v_time">                    	
+                        <?php if ($this->_tpl_vars['events']['rday'] >= 1): ?>
+                        <em class="time_icon"></em><span>剩余<?php echo $this->_tpl_vars['events']['rday']; ?>
+天</span>
+                        <?php else: ?>
+                        已结束
+                        <?php endif; ?>
+                    </p>
+                </dd>
+            </a>
+        </dl>
+        <?php endforeach; endif; unset($_from); ?>
+    </div>
+    
+    <div class="clear"></div>
+    <?php if ($this->_tpl_vars['totals']): ?>
+    <div class="loading">
+    	<img
+    		id="loadPage"
+    		data-ks-lazyload="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
+/public/static/img/loading_new.gif"
+    		data-request-url="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
+/?c=index&a=ajax&plat_form_id=<?php echo $this->_tpl_vars['plat_form_id']; ?>
+&url=<?php echo $this->_tpl_vars['url']; ?>
+"
+    		data-page="2"
+    		data-totals="<?php echo $this->_tpl_vars['totals']; ?>
+"
+    		style="width:0px;"
+    	/>
+	    <div class="loader-inner ball-pulse">
+	        <div></div><div></div><div></div><div></div><div></div><div></div>
+	    </div>
+	</div>
+    <?php endif; ?>
+    <br>
+        
+</div>
+
+
+<!--loading 样式1-->
+<!--<div class="loading">
+    <div class="loader-inner line-spin-fade-loader">
+        <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+    </div>
+</div>-->
+
+<!--loading 样式2-->
+<!--<div class="loading">
+    <div class="loader-inner ball-pulse">
+        <div></div><div></div><div></div><div></div><div></div><div></div>
+    </div>
+</div>-->
+
+
+<script>
+
+KISSY.use('node, io, gallery/datalazyload/2.0/index', function (S, Node, IO, Datalazyload) {
+	var $ = S.all;
+	var lock = false;
+	
+	new Datalazyload({
+		load: function(el){
+			if (lock) return false;
+			lock = true;
+			
+			var requesrUrl = $(el).attr('data-request-url');
+			var page = Number($(el).attr('data-page'));
+			var totals = Number($(el).attr('data-totals'));
+			if (!requesrUrl) {
+				lock = false;
+				return false;
+			}
+			
+			if (page > totals) {
+				$('.loading').hide();
+				return false;
+			}
+			
+			IO.get(
+				requesrUrl
+				, {page: page}
+				, function (data) {
+					if (data.ok) {
+						var next_page = page + 1;
+						$('#loadPage').attr('data-page', next_page);
+						var new_dl = $(data.msg);
+						$(".vogue_top_list").append(new_dl);
+						//new Datalazyload();
+						lock = false;
+						
+						if (next_page > totals) {
+							$('.loading').hide();
+						}
+					}
+				}
+				, 'json'
+			);
+		}
+	});
+});
+
+
+//判断当前页图片加载完成loading消失
+/* $(".vogue_top_list").find("img").load(function(){
+	$(this).parent().css("background","none");
+}); */
+
+</script>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 98 - 0
tm/compile_dir/%%7A^7A8^7A8C3B5F%%modify_password.html.php

@@ -0,0 +1,98 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-18 11:20:25
+         compiled from admin/backUser/modify_password.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<?php if ($this->_tpl_vars['successMsg']): ?>
+<div class="tip_message_success"><?php echo $this->_tpl_vars['successMsg']; ?>
+</div>
+<?php endif; ?>
+<?php if ($this->_tpl_vars['errMsg']): ?>
+<div class="tip_message_fail"><?php echo $this->_tpl_vars['errMsg']; ?>
+</div>
+<?php endif; ?>
+
+<div style="width:400px;">
+<form class="form-horizontal" role="form" method="post">
+	<div class="form-group">
+		<label for="t1" class="col-sm-3 control-label">用户名:</label>
+		<div class="col-sm-7">
+			<p class="form-control-static"><?php echo $this->_tpl_vars['user']['name']; ?>
+</p>
+		</div>
+	</div>
+	<div class="form-group">
+		<label for="t2" class="col-sm-3 control-label">原始密码:</label>
+		<div class="col-sm-7">
+			<input name='oldPassword' type="password" class="form-control" id="t2">
+		</div>
+	</div>
+	<div class="form-group">
+		<label class="col-sm-3 control-label">新密码:</label>
+		<div class="col-sm-7">
+			<input name='newPassword' type="password" class="form-control" placeholder="新密码不能小于6位">
+		</div>
+	</div>
+	<div class="form-group">
+		<label class="col-sm-3 control-label">确认密码:</label>
+		<div class="col-sm-7">
+			<input id="confirmPass" type="password" class="form-control">
+		</div>
+	</div>
+	<div class="form-group">
+		<div class="col-sm-offset-3 col-sm-7">
+		<button type="submit" class="btn btn-primary btn-sm">提交</button>
+		</div>
+	</div>
+</form>
+</div>
+
+<script>
+KISSY.use('node', function (S, Node) {
+  var $ = S.all;
+  
+	$('button').on('click', function () {
+		var oldPassword = $('input[name=oldPassword]').val();
+		if (!S.trim(oldPassword)) {
+		  alert('请填写原始密码');
+		  return false;
+		}
+		
+		var newPassword = $('input[name=newPassword]').val();
+		if (!S.trim(newPassword)) {
+		  alert('请填写新密码');
+		  return false;
+		}
+		
+		var confirmPass = $('#confirmPass').val();
+		if (!S.trim(confirmPass)) {
+		  alert('请填写确认密码');
+		  return false;
+		}
+		
+		if (newPassword != confirmPass) {
+			alert('确认密码填写错误');
+			return false;
+		}
+	});
+  
+});
+</script>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 106 - 0
tm/compile_dir/%%80^804^80487B52%%events_survey.html.php

@@ -0,0 +1,106 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 15:06:56
+         compiled from events_survey.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+
+<!--公用标题居中显示-->
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<!---->
+<div class="wrapper clear">    
+    <div class="v_hd_title clear">
+        <div class="article_title center"><?php echo $this->_tpl_vars['surveyInfo']['events_name']; ?>
+</div>            
+        <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_tips']; ?>
+</div>
+        <div class="ac_btn_box center"><a class="submit_btn_style">参与问卷</a></div>
+    </div>
+    
+    <div class="v_box_w clear">
+        <?php if ($this->_tpl_vars['surveyInfo']['events_hd_tips']): ?>
+            <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['events_hd_tips']; ?>
+</div>
+        <?php endif; ?>
+        <div class="pro_list_box pro_list_survey">
+        	<?php $_from = $this->_tpl_vars['surveyInfo']['survery_prize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['survery'] = array('total' => count($_from), 'iteration' => 0);
+if ($this->_foreach['survery']['total'] > 0):
+    foreach ($_from as $this->_tpl_vars['data']):
+        $this->_foreach['survery']['iteration']++;
+?>
+        	<dl>
+            	<dt><img src="<?php echo $this->_tpl_vars['data']['img_url']; ?>
+"></dt>
+                <dd>
+                	<p class="pro_name"><?php echo $this->_tpl_vars['data']['name']; ?>
+</p>
+                    <p class="pro_num"><?php echo $this->_tpl_vars['data']['num']; ?>
+<?php echo $this->_tpl_vars['data']['unit_name']; ?>
+</p>
+                </dd>
+            </dl>
+            <?php endforeach; endif; unset($_from); ?>
+        </div>
+
+        <?php if ($this->_tpl_vars['surveyInfo']['share_button'] == 2): ?>
+        <?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "share_button.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+        <?php endif; ?>
+        
+        <?php if ($this->_tpl_vars['surveyInfo']['operationt_tips']): ?>
+        <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['operationt_tips']; ?>
+</div>
+        <?php endif; ?>
+        <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_rules']; ?>
+</div>
+        
+    </div>
+    
+    
+</div>
+
+
+<script type="text/javascript">
+KISSY.use('node, cookie', function (S, Node, Cookie) {
+	var $ = S.all;
+	
+	//视频自适应
+	var screenWidth = $(window).width();
+	var baseWidth = 510;
+	var video_scale = screenWidth / baseWidth;
+	$(".video_iframe").each(function () {
+		var new_width = $(this).width() * video_scale;
+		$(this).width(new_width - 20);
+		var new_height = $(this).height() * video_scale;
+		$(this).height(new_height - 20);
+	});
+	
+	$(".ac_btn_box").on('click', function () {
+		Cookie.set('SURVEY_IS_UNDERWAY', 2, null, '<?php echo $_SERVER['HTTP_HOST']; ?>
+', '/');
+		window.location.reload();
+	});
+	
+	
+});
+
+//有产品列表时添加整体body背景色
+$(body).addClass("bg_white");
+
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 5 - 0
tm/compile_dir/%%8C^8C2^8C25BB7D%%share_button.html.php

@@ -0,0 +1,5 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 14:56:14
+         compiled from share_button.html */ ?>
+<div class="v_end_com_box" style="display:none;">
+    <div class="center share_button"><a href="javascript:;" class="submit_btn_style">分享给好友</a></div>
+</div>

+ 169 - 0
tm/compile_dir/%%8E^8E0^8E047F59%%setPage_h5.html.php

@@ -0,0 +1,169 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-19 17:52:30
+         compiled from admin/activity/setPage_h5.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+		<div class="panel-body">
+			<div class="form-group">
+				<label class="control-label rowlabel">文章标题:</label>
+				<input name="article_title" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_title']; ?>
+"/>
+			</div>
+			<div class="form-group">
+				<label class="control-label rowlabel">作者:</label>
+				<input name="article_author" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_author']; ?>
+"/>
+			</div>
+			<div class="row">
+				<div class="form-group col-md-2">
+					<label class="control-label rowlabel">浏览量基数:</label>
+					<input name="article_pass_base_num" class="form-control" type="text" value="<?php echo $this->_tpl_vars['eventData']['article_pass_base_num']; ?>
+"/>
+				</div>
+				<div class="form-group col-md-2">
+					<label class="control-label rowlabel">赞基数:</label>
+					<input name="article_praise" class="form-control" type="text" value="<?php echo $this->_tpl_vars['eventData']['article_praise']; ?>
+"/>
+				</div>
+			</div>
+			<div class="form-group">
+				<label class="control-label rowlabel">原文链接:</label>
+				<input name="article_original_url" class="form-control" type="text" style="width:300px;" value="<?php echo $this->_tpl_vars['eventData']['article_original_url']; ?>
+"/>
+			</div>
+			<div class="form-group">
+				<label class="control-label rowlabel">正文内容:</label>
+				<textarea name="article_text" style="width:100%;height:200px;"><?php echo $this->_tpl_vars['eventData']['article_text']; ?>
+</textarea>
+			</div>
+			<a id="activity_submit" href="javascript:;" class="button button-3d button-primary button-rounded"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 保存设置</a>
+ 		</div>
+	</div>
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<div style="clear:both;"></div>
+</form>
+</div>
+
+<script>
+var editor;
+KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
+	var $ = S.all;
+	
+	var activity_submit_status = false; //按钮状态
+    function submit_button_active() {
+    	activity_submit_status = true;
+    	$("#activity_submit").addClass('active').all('i').show();
+    }
+    function submit_button_default() {
+    	activity_submit_status = false;
+    	$("#activity_submit").removeClass('active').all('i').hide();
+    }
+    
+	$("#activity_submit").on('click', function () {
+    	if (activity_submit_status) {
+    		return false;
+    	}
+    	submit_button_active();
+    	
+    	var article_text = editor.html();
+    	$("textarea[name=article_text]").val(article_text);
+    	
+    	formData = IO.serialize("#activity_form");
+    	
+    	new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetPage&a=ReqUpArticle'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					location.href = location.href;
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+	});
+});
+
+KindEditor.ready(function(K) {
+	editor = K.create('textarea[name=article_text]', {
+		allowFileManager : true,
+		uploadJson : VG.conf.root_domain + '/?c=kindeditor&a=updateJson',
+		fileManagerJson : VG.conf.root_domain + '/?c=kindeditor&a=fileManagerJson'
+	});
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

+ 276 - 0
tm/compile_dir/%%92^92F^92F79C85%%interactive_survey_input_question.html.php

@@ -0,0 +1,276 @@
+<?php /* Smarty version 2.6.17, created on 2018-04-25 15:06:49
+         compiled from admin/activity/interactive_survey_input_question.html */ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+<style>
+.set-nav {
+	margin: 0 auto;
+}
+.set-nav-hr {
+	background-color: #ddd;
+    height: 1px;
+    position: relative;
+}
+.form-group label {
+	font-weight: 600;
+}
+.checkbox-inline, .radio-inline {
+	font-weight: 400!important;
+}
+.rowlabel {
+	font-weight: 300!important;
+}
+.music_play_hide {
+	display:none;
+}
+</style>
+
+
+<div id="activity_container">
+
+<form id="activity_form">
+<div class="activity_center">
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+	<input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+">
+	
+	<div  class="panel panel-default">
+	<div class="panel-heading"><h3 class="panel-title" id="panel-title">表单设置</h3></div>
+	<div class="panel-body">
+		<table class="table">
+				<thead>
+				<tr>
+					<th>名称</th>
+					<th>类型</th>
+					<th>是否必填</th>
+				</tr>
+				<?php $_from = $this->_tpl_vars['events_Data']['events']['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['form']):
+?>
+				<tr>
+					<td><?php echo $this->_tpl_vars['form']['name']; ?>
+</td>
+					<td><?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>单行文本<?php endif; ?>
+					<?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>多行文本<?php endif; ?>
+					<?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>下拉菜单<?php endif; ?></td>
+					<td><?php if ($this->_tpl_vars['form']['required'] == 1): ?>必填<?php else: ?> 选填<?php endif; ?></td>
+				</tr>
+				<?php endforeach; endif; unset($_from); ?>
+				</thead>
+		</table>
+		</div>
+		<div  style="text-align:right; margin-right: 20px;margin-bottom: 10px;"><a href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+&typ=input">点击编辑</a></div>
+	</div>
+	
+	<div  class="panel panel-default">
+	<div class="panel-heading"><h3 class="panel-title" id="panel-title">奖品设置</h3></div>
+	<div class="panel-body">
+		<table class="table">
+				<thead>
+				<tr>
+					<th>序号</th>
+					<th>奖品名称</th>
+					<th>图片</th>
+					<th>数量</th>
+					<th>操作</th>
+				</tr>
+				<?php $_from = $this->_tpl_vars['events_Data']['events']['survery_prize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['survery'] = array('total' => count($_from), 'iteration' => 0);
+if ($this->_foreach['survery']['total'] > 0):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['survery_prize']):
+        $this->_foreach['survery']['iteration']++;
+?>
+					<tr>
+					<td><?php echo $this->_foreach['survery']['iteration']; ?>
+</td>
+					<td><?php echo $this->_tpl_vars['survery_prize']['name']; ?>
+</td>
+					<td><img src="<?php echo $this->_tpl_vars['survery_prize']['img_url']; ?>
+" class="img-thumbnail" style="width:50px;"></td>
+					<td><?php echo $this->_tpl_vars['survery_prize']['num']; ?>
+<?php echo $this->_tpl_vars['survery_prize']['unit_name']; ?>
+</td>
+					<td><a class="del_survery_prize" survery_prize_id='<?php echo $this->_tpl_vars['index']; ?>
+'  href="javascript:;">删除</a></td>
+					</tr>
+				<?php endforeach; endif; unset($_from); ?>
+				</thead>
+		</table>
+	</div>
+		<div  style="text-align:right; margin-right: 20px;margin-bottom: 10px;"><a href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+&typ=prize"><i class="fa fa-plus"></i>添加奖品</a></div>
+	</div>
+	
+	
+	
+	<div  class="panel panel-default">
+	<div class="panel-heading"><h3 class="panel-title" id="panel-title">问题设置</h3></div>
+		<div class="panel-body">
+			<div class="form-group">
+				<?php $_from = $this->_tpl_vars['events_Data']['events']['survery_question']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['survery_question']):
+?>
+				
+				<?php if ($this->_tpl_vars['survery_question']['type'] == 'img'): ?>
+						<div class="panel panel-default" style="padding: 10px;">
+												<div style="margin: 10px;">问题:   &nbsp; &nbsp; &nbsp; <?php echo $this->_tpl_vars['survery_question']['question']; ?>
+</div>
+						<div style="margin: 10px;">类型:  &nbsp; &nbsp; &nbsp; 图片</div>
+							<div style="clear:both;"></div>
+							<table class="table">
+								<tr>
+										<?php $_from = $this->_tpl_vars['survery_question']['answer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['answer']):
+?>
+										<td style="text-align:center;">
+											<img id="img_url_tag" src="<?php echo $this->_tpl_vars['answer']['img_url']; ?>
+" style="width:100px;" class="img-thumbnail"><br>
+											<div style="text-align:center;">选择:<?php echo $this->_tpl_vars['answer']['answer']; ?>
+</div>
+										</td>
+										<?php endforeach; endif; unset($_from); ?>
+										
+								</tr>
+							</table>
+							<div style="margin: 10px;">操作:  &nbsp; &nbsp; &nbsp; <a survery_question_id="<?php echo $this->_tpl_vars['index']; ?>
+"  href="javascript:;" class="del_survery_question">点击删除</a></div>
+						</div>
+				<?php endif; ?>
+				
+				
+				<?php if ($this->_tpl_vars['survery_question']['type'] == 'txt'): ?>
+						<div class="panel panel-default" style="padding: 10px;">
+												<div style="margin: 10px;">问题:   &nbsp; &nbsp; &nbsp; <?php echo $this->_tpl_vars['survery_question']['question']; ?>
+</div>
+						<div style="margin: 10px;">类型:  &nbsp; &nbsp; &nbsp; 文字</div>
+							<div style="clear:both;"></div>
+							<?php $_from = $this->_tpl_vars['survery_question']['answer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
+    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['answer']):
+?>
+								<div style="text-align:left;margin:10px;"><?php echo $this->_tpl_vars['answer']['answer']; ?>
+</div>
+							<?php endforeach; endif; unset($_from); ?>
+							<div style="margin: 10px;">操作:  &nbsp; &nbsp; &nbsp; <a survery_question_id="<?php echo $this->_tpl_vars['index']; ?>
+"  href="javascript:;" class="del_survery_question">点击删除</a></div>
+						</div>
+				<?php endif; ?>
+				
+				
+				
+				
+				<?php endforeach; endif; unset($_from); ?>
+				
+			</div>
+		</div>
+		<div  style="text-align:right; margin-right: 20px;margin-bottom: 10px;"><a href="?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+&typ=question"><i class="fa fa-plus"></i>添加一个问题</a></div>
+	</div>
+	
+</div>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>
+
+<div style="clear:both;"></div>
+</form>
+</div>
+
+
+<script>
+KISSY.use('node, io, event, jquery', function (S, Node, IO, Event, jQuery) {
+	var $ = S.all;
+	
+	$(".del_survery_question").on('click', function () {
+    	  var survery_question_id = $(this).attr('survery_question_id');
+    	  var events_id = <?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+;
+    	  var formData = {'survery_question_id':survery_question_id,'events_id':events_id};
+    	  new IO({
+  			type: "post"
+  			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetInteractive&a=ReqDelSurveyQuestion'
+  			, data: formData
+  			, success: function (data) {
+  				if (data.ok) { //ok
+  					var url = data.msg;
+  					location.href = VG.conf.root_domain + '?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+';
+  				} else {
+  					alert('操作失败,原因:'+data.msg);
+  				}
+  				return false;
+  			}
+  			, error: function (NULL, textStatus) {
+  				alert("请求服务器失败,原因:"+textStatus);
+  			}
+  			, dataType: "json"
+  		});
+    	  
+	});
+	
+	
+	
+	
+	$(".del_survery_prize").on('click', function () {
+  	  var survery_prize_id = $(this).attr('survery_prize_id');
+  	  var events_id = <?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+;
+  	  var formData = {'survery_prize_id':survery_prize_id,'events_id':events_id};
+  	  
+  	  new IO({
+			type: "post"
+			, url: VG.conf.root_domain + '/?c=Admin_Activity_SetInteractive&a=ReqDelSurveyPrize'
+			, data: formData
+			, success: function (data) {
+				if (data.ok) { //ok
+					var url = data.msg;
+					location.href = VG.conf.root_domain + '?c=Admin_Activity_SetInteractive&a=PageShow&events_id=<?php echo $this->_tpl_vars['events_Data']['events']['id']; ?>
+';
+				} else {
+					alert('操作失败,原因:'+data.msg);
+				}
+				return false;
+			}
+			, error: function (NULL, textStatus) {
+				alert("请求服务器失败,原因:"+textStatus);
+			}
+			, dataType: "json"
+		});
+  	  
+	});
+	
+	
+	
+});
+</script>
+
+<?php $_smarty_tpl_vars = $this->_tpl_vars;
+$this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
+$this->_tpl_vars = $_smarty_tpl_vars;
+unset($_smarty_tpl_vars);
+ ?>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels