| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 | 
							- <{include file="./admin/header.html"}>
 
- <{include file="./admin/left.html"}>
 
- <{include file="./admin/nav.html"}>
 
- <{include file="get_kindeditor.html"}>
 
- <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">
 
- <{include file="./admin/activity/common_nav.html"}>
 
- 	<input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
 
- 	
 
- 	<div  class="panel panel-default">
 
- 		<div class="panel-body">
 
- 			<div class="form-group">
 
- 				<label class="control-label rowlabel">正文内容:</label>
 
- 				<textarea name="events_tips" class="form-control" rows="15" style="width:;"><{$eventData.events_tips}></textarea>
 
- 			</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="<{$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="<{$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:;"><{$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>
 
- <{include file="./admin/activity/common_right.html"}>
 
- <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>
 
- <{include file="./admin/bottom.html"}>
 
 
  |