%%C8^C80^C80303B2%%edit.html.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <?php /* Smarty version 2.6.17, created on 2018-05-27 09:57:45
  2. compiled from admin/platform/edit.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  9. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
  10. $this->_tpl_vars = $_smarty_tpl_vars;
  11. unset($_smarty_tpl_vars);
  12. ?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  19. $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
  20. $this->_tpl_vars = $_smarty_tpl_vars;
  21. unset($_smarty_tpl_vars);
  22. ?>
  23. <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  24. /public/static/js/jquery-1.7.2.min.js"></script>
  25. <link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  26. /public/static/js/jquery.minicolors.css" />
  27. <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  28. /public/static/js/jquery.minicolors.js"></script>
  29. <style>
  30. .set-nav {
  31. margin: 0 auto;
  32. }
  33. .set-nav-hr {
  34. background-color: #ddd;
  35. height: 1px;
  36. position: relative;
  37. }
  38. .form-group label {
  39. font-weight: 600;
  40. }
  41. .checkbox-inline, .radio-inline {
  42. font-weight: 400!important;
  43. }
  44. .rowlabel {
  45. font-weight: 300!important;
  46. }
  47. .music_play_hide {
  48. display:none;
  49. }
  50. </style>
  51. <form id="add_platform_form">
  52. <input name="id" type="hidden" value="<?php echo $this->_tpl_vars['platformData']['id']; ?>
  53. ">
  54. <div class="col-md-5" style="padding-left: 30px;">
  55. <div class="form-group">
  56. <label class="control-label">编辑列表信息</label>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label rowlabel">描述</label>
  60. <input name="desc" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['desc']; ?>
  61. ">
  62. <span class="note">平台的描述信息</span>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label rowlabel">名称</label>
  66. <input name="name" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['name']; ?>
  67. ">
  68. <span class="note">页面标题使用</span>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label rowlabel">URL短地址</label>
  72. <input name="url" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['url']; ?>
  73. ">
  74. <span class="note">短地址使用</span>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label rowlabel">色值</label>
  78. <input name="color" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['color']; ?>
  79. ">
  80. <span class="note">页面统一颜色</span>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label rowlabel">关注地址</label>
  84. <input name="follow_url" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['follow_url']; ?>
  85. ">
  86. <span class="note">导航栏“关注”链接地址</span>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label rowlabel">“活动”按钮图片</label>
  90. <div>
  91. <img id="home_image_tag" src="<?php echo $this->_tpl_vars['platformData']['home_img_url']; ?>
  92. " style="width:30px;" class="img-thumbnail">
  93. <input id="home_image_input" name='home_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['home_img_url']; ?>
  94. ">
  95. <input id="home_image_upload" type="button" value="默认图片" >
  96. </div>
  97. <div>
  98. <img id="home_image_tag_hover" src="<?php echo $this->_tpl_vars['platformData']['home_img_url_hover']; ?>
  99. " style="width:30px;" class="img-thumbnail">
  100. <input id="home_image_input_hover" name='home_img_url_hover' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['home_img_url_hover']; ?>
  101. ">
  102. <input id="home_image_upload_hover" type="button" value="选中图片" >
  103. </div>
  104. <label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='home_img_text' value="<?php if ($this->_tpl_vars['platformData']['home_img_text']): ?><?php echo $this->_tpl_vars['platformData']['home_img_text']; ?>
  105. <?php else: ?>活动<?php endif; ?>">
  106. <span class="note">导航活动按钮图片。36*36 PNG 图片</span>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label rowlabel">“关注”按钮图片</label>
  110. <div>
  111. <img id="follow_image_tag" src="<?php echo $this->_tpl_vars['platformData']['follow_img_url']; ?>
  112. " style="width:30px;" class="img-thumbnail">
  113. <input id="follow_image_input" name='follow_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['follow_img_url']; ?>
  114. ">
  115. <input id="follow_image_upload" type="button" value="默认图片" >
  116. </div>
  117. <div>
  118. <img id="follow_image_tag_hover" src="<?php echo $this->_tpl_vars['platformData']['follow_img_url_hover']; ?>
  119. " style="width:30px;" class="img-thumbnail">
  120. <input id="follow_image_input_hover" name='follow_img_url_hover' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['follow_img_url_hover']; ?>
  121. ">
  122. <input id="follow_image_upload_hover" type="button" value="选中图片" >
  123. </div>
  124. <label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='follow_img_text' value="<?php if ($this->_tpl_vars['platformData']['follow_img_text']): ?><?php echo $this->_tpl_vars['platformData']['follow_img_text']; ?>
  125. <?php else: ?>关注<?php endif; ?>">
  126. <span class="note">导航关注按钮图片。36*36 PNG 图片</span>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label rowlabel">“奖品”按钮图片</label>
  130. <div>
  131. <img id="gift_image_tag" src="<?php echo $this->_tpl_vars['platformData']['gift_img_url']; ?>
  132. " style="width:30px;" class="img-thumbnail">
  133. <input id="gift_image_input" name='gift_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['gift_img_url']; ?>
  134. ">
  135. <input id="gift_image_upload" type="button" value="默认图片" >
  136. </div>
  137. <div>
  138. <img id="gift_image_tag_hover" src="<?php echo $this->_tpl_vars['platformData']['gift_img_url_hover']; ?>
  139. " style="width:30px;" class="img-thumbnail">
  140. <input id="gift_image_input_hover" name='gift_img_url_hover' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['gift_img_url_hover']; ?>
  141. ">
  142. <input id="gift_image_upload_hover" type="button" value="选中图片" >
  143. </div>
  144. <label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='gift_img_text' value="<?php if ($this->_tpl_vars['platformData']['gift_img_text']): ?><?php echo $this->_tpl_vars['platformData']['gift_img_text']; ?>
  145. <?php else: ?>奖品<?php endif; ?>">
  146. <span class="note">导航奖品按钮图片。36*36 PNG 图片</span>
  147. </div>
  148. <div class="form-group">
  149. <label class="control-label rowlabel">“分享”按钮图片</label>
  150. <div>
  151. <img id="share_image_tag" src="<?php echo $this->_tpl_vars['platformData']['share_img_url']; ?>
  152. " style="width:30px;" class="img-thumbnail">
  153. <input id="share_image_input" name='share_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['share_img_url']; ?>
  154. ">
  155. <input id="share_image_upload" type="button" value="默认图片" >
  156. </div>
  157. <div>
  158. <img id="share_image_tag_hover" src="<?php echo $this->_tpl_vars['platformData']['share_img_url_hover']; ?>
  159. " style="width:30px;" class="img-thumbnail">
  160. <input id="share_image_input_hover" name='share_img_url_hover' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['share_img_url_hover']; ?>
  161. ">
  162. <input id="share_image_upload_hover" type="button" value="选中图片" >
  163. </div>
  164. <label class="control-label rowlabel">按钮文字</label><input type="text" class="form-control" name='share_img_text' value="<?php if ($this->_tpl_vars['platformData']['share_img_text']): ?><?php echo $this->_tpl_vars['platformData']['share_img_text']; ?>
  165. <?php else: ?>分享<?php endif; ?>">
  166. <span class="note">导航分享按钮图片。36*36 PNG 图片</span>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label rowlabel">“招商”按钮图片</label>
  170. <div>
  171. <img id="zs_image_tag" src="<?php echo $this->_tpl_vars['platformData']['zs_img_url']; ?>
  172. " style="width:30px;" class="img-thumbnail">
  173. <input id="zs_image_input" name='zs_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['zs_img_url']; ?>
  174. ">
  175. <input id="zs_image_upload" type="button" value="默认图片" >
  176. </div>
  177. <div>
  178. <img id="zs_image_tag_hover" src="<?php echo $this->_tpl_vars['platformData']['zs_img_url_hover']; ?>
  179. " style="width:30px;" class="img-thumbnail">
  180. <input id="zs_image_input_hover" name='zs_img_url_hover' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['zs_img_url_hover']; ?>
  181. ">
  182. <input id="zs_image_upload_hover" type="button" value="选中图片" >
  183. </div>
  184. <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']; ?>
  185. <?php else: ?>招商<?php endif; ?>">
  186. <br />
  187. <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']; ?>
  188. <?php endif; ?>">
  189. <span class="note">导航招商按钮图片。36*36 PNG 图片</span>
  190. </div>
  191. <div class="form-group">
  192. <label class="control-label rowlabel">微信分享图:</label>
  193. <div>
  194. <img id="weixinShare_image_tag" src="<?php echo $this->_tpl_vars['platformData']['weixinShare_img_url']; ?>
  195. " style="width:150px;" class="img-thumbnail">
  196. <input id="weixinShare_image_input" name='weixinShare_img_url' type="hidden" value="<?php echo $this->_tpl_vars['platformData']['weixinShare_img_url']; ?>
  197. ">
  198. <input id="weixinShare_image_upload" type="button" value="选择图片" >
  199. </div>
  200. <span class="note">默认微信分享的图片 JPG、PNG,200*200,小于20k</span>
  201. </div>
  202. <div class="form-group">
  203. <label class="control-label rowlabel">微信分享标题:</label>
  204. <input name="weixinShare_title" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['weixinShare_title']; ?>
  205. ">
  206. <span class="note">少于24个字</span>
  207. </div>
  208. <div class="form-group">
  209. <label class="control-label rowlabel">微信分享内容:</label>
  210. <input name="weixinShare_content" type="text" class="form-control" value="<?php echo $this->_tpl_vars['platformData']['weixinShare_content']; ?>
  211. ">
  212. <span class="note">少于36个字</span>
  213. </div>
  214. <div class="form-group">
  215. <label class="control-label rowlabel">广告代码:</label>
  216. <textarea name="ad" class="form-control" placeholder="<?php echo $this->_tpl_vars['platformData']['ad']; ?>
  217. "></textarea>
  218. </div>
  219. <div>
  220. <a id="add_platform_btn" href="javascript:;" class="button button-primary button-small">修改列表</a>
  221. </div>
  222. </div>
  223. </form>
  224. <script>
  225. KISSY.use('node, io', function (S, Node, IO) {
  226. var $ = S.all;
  227. $("#add_platform_btn").on('click', function () {
  228. var desc = $("input[name=desc]").val();
  229. if (!desc) {
  230. alert('请填写描述信息');
  231. return false;
  232. }
  233. var name = $("input[name=name]").val();
  234. if (!name) {
  235. alert('请填写名称');
  236. return false;
  237. }
  238. var url = $("input[name=url]").val();
  239. if (!url) {
  240. alert('请填短地址');
  241. return false;
  242. }
  243. var data = IO.serialize("#add_platform_form");
  244. new IO({
  245. type: "post"
  246. , url: VG.conf.root_domain + '/?c=Admin_Platform_index&a=PageList&a=ReqUp'
  247. , data: data
  248. , success: function (data) {
  249. if (data.ok) { //ok
  250. var url = data.msg;
  251. location.href = VG.conf.root_domain + '/?c=Admin_Platform_index&a=PageList';
  252. } else {
  253. alert('操作失败,原因:'+data.msg);
  254. }
  255. return false;
  256. }
  257. , error: function (NULL, textStatus) {
  258. alert("请求服务器失败,原因:"+textStatus);
  259. }
  260. , dataType: "json"
  261. });
  262. });
  263. });
  264. //取色器
  265. $(document).ready( function() {
  266. $("input[name=color]").minicolors({
  267. defaultValue: '#FFFFFF'
  268. });
  269. });
  270. //home image
  271. KindEditor.ready(function(K) {
  272. var uploadbutton = K.uploadbutton({
  273. button : K('#home_image_upload')[0],
  274. fieldName : 'imgFile',
  275. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  276. afterUpload : function(data) {
  277. if (data.error === 0) {
  278. var url = K.formatUrl(data.url, 'absolute');
  279. K('#home_image_input').val(data.url);
  280. K('#home_image_tag').attr('src', data.url);
  281. } else {
  282. alert(data.message);
  283. }
  284. },
  285. afterError : function(str) {
  286. alert('自定义错误信息: ' + str);
  287. }
  288. });
  289. uploadbutton.fileBox.change(function(e) {
  290. uploadbutton.submit();
  291. });
  292. });
  293. KindEditor.ready(function(K) {
  294. var uploadbutton = K.uploadbutton({
  295. button : K('#home_image_upload_hover')[0],
  296. fieldName : 'imgFile',
  297. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  298. afterUpload : function(data) {
  299. if (data.error === 0) {
  300. var url = K.formatUrl(data.url, 'absolute');
  301. K('#home_image_input_hover').val(data.url);
  302. K('#home_image_tag_hover').attr('src', data.url);
  303. } else {
  304. alert(data.message);
  305. }
  306. },
  307. afterError : function(str) {
  308. alert('自定义错误信息: ' + str);
  309. }
  310. });
  311. uploadbutton.fileBox.change(function(e) {
  312. uploadbutton.submit();
  313. });
  314. });
  315. //follow image
  316. KindEditor.ready(function(K) {
  317. var uploadbutton = K.uploadbutton({
  318. button : K('#follow_image_upload')[0],
  319. fieldName : 'imgFile',
  320. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  321. afterUpload : function(data) {
  322. if (data.error === 0) {
  323. var url = K.formatUrl(data.url, 'absolute');
  324. K('#follow_image_input').val(data.url);
  325. K('#follow_image_tag').attr('src', data.url);
  326. } else {
  327. alert(data.message);
  328. }
  329. },
  330. afterError : function(str) {
  331. alert('自定义错误信息: ' + str);
  332. }
  333. });
  334. uploadbutton.fileBox.change(function(e) {
  335. uploadbutton.submit();
  336. });
  337. });
  338. KindEditor.ready(function(K) {
  339. var uploadbutton = K.uploadbutton({
  340. button : K('#follow_image_upload_hover')[0],
  341. fieldName : 'imgFile',
  342. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  343. afterUpload : function(data) {
  344. if (data.error === 0) {
  345. var url = K.formatUrl(data.url, 'absolute');
  346. K('#follow_image_input_hover').val(data.url);
  347. K('#follow_image_tag_hover').attr('src', data.url);
  348. } else {
  349. alert(data.message);
  350. }
  351. },
  352. afterError : function(str) {
  353. alert('自定义错误信息: ' + str);
  354. }
  355. });
  356. uploadbutton.fileBox.change(function(e) {
  357. uploadbutton.submit();
  358. });
  359. });
  360. //share image
  361. KindEditor.ready(function(K) {
  362. var uploadbutton = K.uploadbutton({
  363. button : K('#share_image_upload')[0],
  364. fieldName : 'imgFile',
  365. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  366. afterUpload : function(data) {
  367. if (data.error === 0) {
  368. var url = K.formatUrl(data.url, 'absolute');
  369. K('#share_image_input').val(data.url);
  370. K('#share_image_tag').attr('src', data.url);
  371. } else {
  372. alert(data.message);
  373. }
  374. },
  375. afterError : function(str) {
  376. alert('自定义错误信息: ' + str);
  377. }
  378. });
  379. uploadbutton.fileBox.change(function(e) {
  380. uploadbutton.submit();
  381. });
  382. });
  383. KindEditor.ready(function(K) {
  384. var uploadbutton = K.uploadbutton({
  385. button : K('#share_image_upload_hover')[0],
  386. fieldName : 'imgFile',
  387. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  388. afterUpload : function(data) {
  389. if (data.error === 0) {
  390. var url = K.formatUrl(data.url, 'absolute');
  391. K('#share_image_input_hover').val(data.url);
  392. K('#share_image_tag_hover').attr('src', data.url);
  393. } else {
  394. alert(data.message);
  395. }
  396. },
  397. afterError : function(str) {
  398. alert('自定义错误信息: ' + str);
  399. }
  400. });
  401. uploadbutton.fileBox.change(function(e) {
  402. uploadbutton.submit();
  403. });
  404. });
  405. KindEditor.ready(function(K) {
  406. var uploadbutton = K.uploadbutton({
  407. button : K('#zs_image_upload')[0],
  408. fieldName : 'imgFile',
  409. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  410. afterUpload : function(data) {
  411. if (data.error === 0) {
  412. var url = K.formatUrl(data.url, 'absolute');
  413. K('#zs_image_input').val(data.url);
  414. K('#zs_image_tag').attr('src', data.url);
  415. } else {
  416. alert(data.message);
  417. }
  418. },
  419. afterError : function(str) {
  420. alert('自定义错误信息: ' + str);
  421. }
  422. });
  423. uploadbutton.fileBox.change(function(e) {
  424. uploadbutton.submit();
  425. });
  426. });
  427. KindEditor.ready(function(K) {
  428. var uploadbutton = K.uploadbutton({
  429. button : K('#zs_image_upload_hover')[0],
  430. fieldName : 'imgFile',
  431. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  432. afterUpload : function(data) {
  433. if (data.error === 0) {
  434. var url = K.formatUrl(data.url, 'absolute');
  435. K('#zs_image_input_hover').val(data.url);
  436. K('#zs_image_tag_hover').attr('src', data.url);
  437. } else {
  438. alert(data.message);
  439. }
  440. },
  441. afterError : function(str) {
  442. alert('自定义错误信息: ' + str);
  443. }
  444. });
  445. uploadbutton.fileBox.change(function(e) {
  446. uploadbutton.submit();
  447. });
  448. });
  449. //gift image
  450. KindEditor.ready(function(K) {
  451. var uploadbutton = K.uploadbutton({
  452. button : K('#gift_image_upload')[0],
  453. fieldName : 'imgFile',
  454. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  455. afterUpload : function(data) {
  456. if (data.error === 0) {
  457. var url = K.formatUrl(data.url, 'absolute');
  458. K('#gift_image_input').val(data.url);
  459. K('#gift_image_tag').attr('src', data.url);
  460. } else {
  461. alert(data.message);
  462. }
  463. },
  464. afterError : function(str) {
  465. alert('自定义错误信息: ' + str);
  466. }
  467. });
  468. uploadbutton.fileBox.change(function(e) {
  469. uploadbutton.submit();
  470. });
  471. });
  472. KindEditor.ready(function(K) {
  473. var uploadbutton = K.uploadbutton({
  474. button : K('#gift_image_upload_hover')[0],
  475. fieldName : 'imgFile',
  476. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  477. afterUpload : function(data) {
  478. if (data.error === 0) {
  479. var url = K.formatUrl(data.url, 'absolute');
  480. K('#gift_image_input_hover').val(data.url);
  481. K('#gift_image_tag_hover').attr('src', data.url);
  482. } else {
  483. alert(data.message);
  484. }
  485. },
  486. afterError : function(str) {
  487. alert('自定义错误信息: ' + str);
  488. }
  489. });
  490. uploadbutton.fileBox.change(function(e) {
  491. uploadbutton.submit();
  492. });
  493. });
  494. // weixin share
  495. KindEditor.ready(function(K) {
  496. var uploadbutton = K.uploadbutton({
  497. button : K('#weixinShare_image_upload')[0],
  498. fieldName : 'imgFile',
  499. url : VG.conf.root_domain + '/?c=kindeditor&a=updateJson&dir=image',
  500. afterUpload : function(data) {
  501. if (data.error === 0) {
  502. var url = K.formatUrl(data.url, 'absolute');
  503. K('#weixinShare_image_input').val(data.url);
  504. K('#weixinShare_image_tag').attr('src', data.url);
  505. } else {
  506. alert(data.message);
  507. }
  508. },
  509. afterError : function(str) {
  510. alert('自定义错误信息: ' + str);
  511. }
  512. });
  513. uploadbutton.fileBox.change(function(e) {
  514. uploadbutton.submit();
  515. });
  516. });
  517. </script>
  518. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  519. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  520. $this->_tpl_vars = $_smarty_tpl_vars;
  521. unset($_smarty_tpl_vars);
  522. ?>