PageRenderTime 82ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/miles/GlobalMBA/mba/sns_00/upload/home/template/default/cp_event.htm

#
HTML | 861 lines | 713 code | 14 blank | 134 comment | 0 complexity | 812dc1b40ed8472000e2a38feb04647b MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
  1. <!--{template header}-->
  2. <!--{if empty($topic) && in_array($op,array("edit", "pic", "thread", "members", "comment", "invite", "eventinvite"))}-->
  3. <!--//管理页页头//-->
  4. <style type="text/css">
  5. .poster_pre{
  6. max-width: 80px; max-height: 104px;}
  7. .poster{
  8. max-width: 200px; max-height: 260px;}
  9. </style>
  10. <div id="mainarea">
  11. <h2 class="title"><img src="image/app/event.gif" />活动 <!--{if $eventid}-->- <a href="space.php?do=event&id=$event[eventid]">$event[title]</a><!--{/if}--></h2>
  12. <div class="tabs_header">
  13. <ul class="tabs">
  14. <!--{if $eventid}-->
  15. <!--{if $allowmanage}-->
  16. <li $menus[edit]><a href="cp.php?ac=event&op=edit&id=$eventid"><span>修改活动</span></a></li>
  17. <!--{/if}-->
  18. <!--{if $_SGLOBAL[supe_userevent][status] > 1 && ($_SGLOBAL[supe_userevent][status] >= 3 || $event[allowinvite])}-->
  19. <li $menus[invite]><a href="cp.php?ac=event&op=invite&id=$eventid"><span>邀请好友</span></a></li>
  20. <!--{/if}-->
  21. <!--{if $_SGLOBAL[supe_userevent][status] >= 3}-->
  22. <li $menus[members]><a href="cp.php?ac=event&op=members&id=$eventid"><span>成员管理</span></a></li>
  23. <!--{/if}-->
  24. <!--{if $allowmanage}-->
  25. <li $menus[pic]><a href="cp.php?ac=event&op=pic&id=$eventid"><span>照片管理</span></a></li>
  26. <!--{if $event[tagid]}-->
  27. <li $menus[thread]><a href="cp.php?ac=event&op=thread&id=$eventid"><span>话题管理</span></a></li>
  28. <!--{/if}-->
  29. <!--{/if}-->
  30. <!--{else}-->
  31. <!--{if "eventinvite"==$op}-->
  32. <li class="active"><a href="cp.php?ac=event&op=eventinvite"><span>活动邀请</span></a></li>
  33. <!--{else}-->
  34. <li class="active"><a href="cp.php?ac=event"><span>发起活动</span></a></li>
  35. <!--{/if}-->
  36. <!--{/if}-->
  37. <li><a href="space.php?do=event&id=$eventid"><span>返回活动首页</span></a></li>
  38. </ul>
  39. <!--{if $menus[members]}-->
  40. <form action="cp.php" method="get" id="searchform" name="searchform">
  41. <div style="margin: 0pt 6px 5px 0pt; float: right;">
  42. <table cellspacing="0" cellpadding="0">
  43. <tbody>
  44. <tr>
  45. <td style="padding: 0pt;"><input type="text" style="border-right: medium none; width: 160px;" tabindex="1" class="t_input" onfocus="if(this.value=='搜索成员')this.value='';" value="搜索成员" name="key" id="key"/></td>
  46. <td style="padding: 0pt;"><a href="javascript:$('searchform').submit();"><img alt="搜索" src="image/search_btn.gif"/></a></td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. <input type="hidden" value="event" name="ac"/>
  52. <input type="hidden" value="$eventid" name="id"/>
  53. <input type="hidden" value="members" name="op"/>
  54. <input type="hidden" value="$_GET[status]" name="status"/>
  55. <input type="hidden" value="<!--{eval echo formhash();}-->" name="formhash"/>
  56. </form>
  57. <!--{/if}-->
  58. </div>
  59. <!--{/if}-->
  60. <!--{if "join"==$op}-->
  61. <!--{if $event[allowfellow] || $event[template]}-->
  62. <div>
  63. <h1>填写报名信息</h1>
  64. <form action="cp.php?ac=event&op=join&id=$event[eventid]" method="post" style="padding: 5px 10px;">
  65. <!--{if $event[allowfellow]}-->
  66. <p>
  67. <span>携带人数</span>
  68. <input name="fellow" type="text" size="4" value="<!--{if empty($_SGLOBAL[supe_userevent][fellow])}-->0<!--{else}-->$_SGLOBAL[supe_userevent][fellow]<!--{/if}-->" />
  69. <span class="tiptext">如果你带朋友参加请注明携带人数</span>
  70. </p>
  71. <!--{/if}-->
  72. <!--{if $event[template]}-->
  73. <p>
  74. <span>报名信息</span><span class="tiptext">请按活动发起者给出的模板填写</span><br />
  75. <textarea name="template" rows="4" style="width: 320px;"><!--{if empty($_SGLOBAL[supe_userevent][template])}-->$event[template]<!--{else}-->$_SGLOBAL[supe_userevent][template]<!--{/if}--></textarea>
  76. </p>
  77. <!--{/if}-->
  78. <p class="btn_line"><br />
  79. <input type="submit" class="submit" name="joinsubmit" value="确定" />
  80. <input type="button" class="button" value="取消" onclick="hideMenu()" />
  81. </p>
  82. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  83. </form>
  84. </div>
  85. <!--{else}-->
  86. <div>
  87. <form method="post" name="eventform" action="cp.php?ac=event&op=join&id=$eventid">
  88. <h1>您确定<!--{if $event[verify]}-->报名<!--{else}-->参加<!--{/if}-->此活动吗</h1>
  89. <p class="btn_line"><br />
  90. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  91. <input type="submit" name="joinsubmit" value="确定" class="submit" />
  92. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  93. </p>
  94. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  95. </form>
  96. </div>
  97. <!--{/if}-->
  98. <!--{elseif $op == "follow"}-->
  99. <div>
  100. <form method="post" name="eventform" action="cp.php?ac=event&op=follow&id=$eventid">
  101. <h1>您确定关注此活动吗</h1>
  102. <p class="btn_line"><br />
  103. <input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
  104. <input type="submit" name="followsubmit" value="确定" class="submit" />
  105. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  106. </p>
  107. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->">
  108. </form>
  109. </div>
  110. <!--{elseif $op == "cancelfollow"}-->
  111. <div>
  112. <form method="post" name="eventform" action="cp.php?ac=event&op=cancelfollow&id=$eventid">
  113. <h1>您确定取消关注此活动吗</h1>
  114. <p class="btn_line"><br />
  115. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  116. <input type="submit" name="cancelfollowsubmit" value="确定" class="submit" />
  117. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  118. </p>
  119. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  120. </form>
  121. </div>
  122. <!--{elseif $op == "quit"}-->
  123. <div>
  124. <form method="post" name="eventform" action="cp.php?ac=event&op=quit&id=$eventid">
  125. <h1>您确定退出此活动吗</h1>
  126. <p class="btn_line"><br />
  127. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  128. <input type="submit" name="quitsubmit" value="确定" class="submit" />
  129. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  130. </p>
  131. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  132. </form>
  133. </div>
  134. <!--{elseif $op == "delete"}-->
  135. <div>
  136. <form method="post" name="eventform" action="cp.php?ac=event&op=delete&id=$eventid">
  137. <h1>您确定取消此活动吗</h1>
  138. <p>活动取消将删除所有活动相关信息<br />此操作不可恢复</p>
  139. <p class="btn_line"><br />
  140. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  141. <input type="submit" name="deletesubmit" value="确定" class="submit" />
  142. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  143. </p>
  144. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  145. </form>
  146. </div>
  147. <!--{elseif $op == "member"}-->
  148. <div id="memberevent">
  149. <div><a class="float_del" title="关闭" href="javascript:hideMenu();">关闭</a></div>
  150. <br clear="both" />
  151. <form method="post" name="eventform" id="eventmember_$uid" action="cp.php?ac=event&op=member&id=$eventid">
  152. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  153. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  154. <input type="hidden" name="uid" value="$userevent[uid]">
  155. <p>
  156. 设为
  157. <select name="status">
  158. <option value="2">普通成员</option>
  159. <!--{if $_SGLOBAL[supe_uid]==$event[uid]}-->
  160. <option value="3">组织者</option>
  161. <!--{/if}-->
  162. <!--{if $event[verify]}-->
  163. <option value="0">待审核</option>
  164. <!--{/if}-->
  165. <option value="-1">踢出成员</option>
  166. </select> &nbsp;
  167. <input type="submit" name="membersubmit" value="提交" class="submit" />
  168. </p>
  169. </form>
  170. </div>
  171. <!--{elseif $op == "print"}-->
  172. <div>
  173. <div><a class="float_del" title="关闭" href="javascript:hideMenu();">关闭</a></div>
  174. <br clear="both" />
  175. <form method="post" target="_blank" name="eventform" action="cp.php?ac=event&op=print&id=$eventid">
  176. <h2>设置打印选项</h2>
  177. <p>内容
  178. <!--input type="checkbox" id="ckavatarbig" name="avatarbig" /> <lable for="ckavatarbig">大头像</lable-->
  179. <input type="checkbox" id="ckavatarbig" name="avatarsmall" checked="checked" /> <lable for="ckavatarsmall">头像</lable>
  180. <input type="checkbox" id="ckusername" name="username" checked="checked" /> <lable for="ckusername">姓名</lable>
  181. <!--{if $event[allowfellow]}-->
  182. <input type="checkbox" id="ckfellow" name="fellow" checked="checked" /> <lable for="ckfellow">携带人数</lable>
  183. <!--{/if}-->
  184. <!--{if $event[template]}-->
  185. <input type="checkbox" id="cktemplate" name="template" checked="checked" /> <lable for="cktemplate">报名信息</lable>
  186. <!--{/if}-->
  187. </p>
  188. <p>选项
  189. <input type="checkbox" id="ckadmin" name="admin" /> <lable for="ckadmin">包括组织者</lable>
  190. </p>
  191. <p class="btn_line">
  192. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  193. <input type="submit" name="printsubmit" value="确定" class="submit" />
  194. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  195. </p>
  196. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  197. </form>
  198. </div>
  199. <!--{elseif $op == "close"}-->
  200. <div>
  201. <form method="post" name="eventform" action="cp.php?ac=event&op=close&id=$eventid">
  202. <h1>您确定要关闭活动吗</h1>
  203. <p>活动关闭之后将只允许进行浏览</p>
  204. <p class="btn_line"><br />
  205. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  206. <input type="submit" name="closesubmit" value="确定" class="submit" />
  207. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  208. </p>
  209. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  210. </form>
  211. </div>
  212. <!--{elseif $op == "open"}-->
  213. <div>
  214. <form method="post" name="eventform" action="cp.php?ac=event&op=open&id=$eventid">
  215. <h1>您确定要重新开启活动吗</h1>
  216. <p class="btn_line"><br />
  217. <input type="hidden" name="refer" value="$_SGLOBAL[refer]">
  218. <input type="submit" name="opensubmit" value="确定" class="submit" />
  219. <input type="button" name="btnclose" value="取消" onclick="hideMenu();" class="button" />
  220. </p>
  221. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  222. </form>
  223. </div>
  224. <!--{elseif $op == "calendar"}-->
  225. <div class="calendar">
  226. <div id="calendar_pre" class="floatleft"><a href="#" onclick="showcalendar('$premonth'); this.blur(); return false;">&lt;&lt;</a></div>
  227. <div id="calendar_next" class="floatright"><a href="#" onclick="showcalendar('$nextmonth'); this.blur(); return false;">&gt;&gt;</a></div>
  228. <span id="thecalendar_year">$year</span> <span id="thecalendar_month">$month</span>
  229. <ul>
  230. <li class="calendarli calendarweek"></li>
  231. <li class="calendarli calendarweek"></li>
  232. <li class="calendarli calendarweek"></li>
  233. <li class="calendarli calendarweek"></li>
  234. <li class="calendarli calendarweek"></li>
  235. <li class="calendarli calendarweek"></li>
  236. <li class="calendarli calendarweek"></li>
  237. <!--{eval echo str_repeat('<li class="calendarblank">&nbsp;</li>', $week)}-->
  238. <!--{loop $days $key $value}-->
  239. <!--{if $value[count]}-->
  240. <li class="calendarli $value[class]" onmouseover="$('day_$key').style.display='block';" onmouseout="$('day_$key').style.display='none';">
  241. <a href="$url&date=$year-$month-$key">$key</a>
  242. <div class="dayevents" id="day_$key" style="display:none;">
  243. <ul class="news_list">
  244. <!--{loop $value[events] $event}-->
  245. <li class="dayeventsli"><a href="space.php?do=event&id=$event[eventid]">$event[title]</a></li>
  246. <!--{/loop}-->
  247. </ul>
  248. </div>
  249. </li>
  250. <!--{else}-->
  251. <li class="calendarli">$key</li>
  252. <!--{/if}-->
  253. <!--{/loop}-->
  254. </ol>
  255. </div>
  256. <!--{elseif $op == "invite"}-->
  257. <!--{if $event[grade] == -2}-->
  258. <div id="content">
  259. <p>您现在不能给好友发送邀请因为此活动已经关闭</p>
  260. </div>
  261. <!--{elseif $event[grade] <= 0}-->
  262. <div id="content">
  263. <p>您现在不能给好友发送邀请因为活动还未通过审核</p>
  264. </div>
  265. <!--{elseif $_SGLOBAL[timestamp] > $event[deadline]}-->
  266. <div id="content">
  267. <p>您现在不能给好友发送邀请因为活动已经截止报名了</p>
  268. </div>
  269. <!--{elseif $event[limitnum]>0 && $event[limitnum]<=$event[membernum]}-->
  270. <div id="content">
  271. <p>您现在不能给好友发送邀请因为活动人数已满</p>
  272. </div>
  273. <!--{else}-->
  274. <div id="content" style="width: 640px;">
  275. <form id="edit_form" name="edit_form" class="c_form" method="post" action="cp.php?ac=event&op=invite&id=$event[eventid]&group=$_GET[group]&page=$page">
  276. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  277. <div class="h_status">
  278. 您可以给未加入本活动的好友们发送邀请
  279. </div>
  280. <div class="h_status">
  281. <!--{if $list}-->
  282. <ul class="avatar_list">
  283. <!--{loop $list $value}-->
  284. <li><div class="avatar48"><a href="space.php?uid=$value[fuid]" title="{$_SN[$value[fuid]]}"><!--{avatar($value[fuid],small)}--></a></div>
  285. <p>
  286. <a href="space.php?uid=$value[fuid]" title="{$_SN[$value[fuid]]}">{$_SN[$value[fuid]]}</a>
  287. </p>
  288. <p><!--{if empty($joins[$value[fuid]])}--><input type="hidden" name="names[]" value="$value[fusername]"><input type="checkbox" name="ids[]" value="$value[fuid]">选定<!--{else}-->已邀请<!--{/if}--></p>
  289. </li>
  290. <!--{/loop}-->
  291. </ul>
  292. <div class="page">$multi</div>
  293. <!--{else}-->
  294. <div class="c_form">还没有好友</div>
  295. <!--{/if}-->
  296. </div>
  297. <p>
  298. <input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')"><label for="chkall">全选</label> &nbsp;
  299. <input type="hidden" name="invitesubmit" value="1" />
  300. <input type="submit" name="bnt_invitesubmit" value="邀请" class="submit" />
  301. </p>
  302. </form>
  303. </div>
  304. <div id="sidebar" style="width: 150px;">
  305. <div class="cat">
  306. <h3>好友分类</h3>
  307. <ul class="post_list line_list">
  308. <li<!--{if $_GET[group]==-1}--> class="current"<!--{/if}-->><a href="cp.php?ac=event&id=$eventid&op=invite&group=-1">全部好友</a></li>
  309. <!--{loop $groups $key $value}-->
  310. <li<!--{if $_GET[group]==$key}--> class="current"<!--{/if}-->><a href="cp.php?ac=event&id=$eventid&op=invite&group=$key">$value</a></li>
  311. <!--{/loop}-->
  312. </ul>
  313. </div>
  314. </div>
  315. <!--{/if}-->
  316. <!--{elseif $op == "members"}-->
  317. <div id="content" style="width: 640px;">
  318. <form id="edit_form" name="edit_form" class="c_form" method="post" action="cp.php?ac=event&op=members&status=$_GET[status]&id=$event[eventid]">
  319. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  320. <div class="h_status">
  321. 选择相应的用户进行用户状态变更
  322. <!--{if $event[limitnum]}--><span style="color:#f00">剩余 <!--{eval echo $event[limitnum]-$event[membernum]}--> 个活动成员名额</span><!--{/if}-->
  323. </div>
  324. <div class="h_status">
  325. <!--{if $list}-->
  326. <table >
  327. <tbody>
  328. <!--{loop $list $value}-->
  329. <tr>
  330. <td width="40"><input type="checkbox" name="ids[]" value="$value[uid]"></td>
  331. <td width="80">
  332. <div><a href="space.php?uid=$value[uid]" target="_blank"><!--{avatar($value[uid],small)}--></a></div>
  333. <p><a href="space.php?uid=$value[uid]">$_SN[$value[uid]]</a></p>
  334. </td>
  335. <td>
  336. <!--{if $event[allowfellow]}--><h2>携带人数<!--{eval echo intval($value[fellow])}--></h2><!--{/if}-->
  337. <!--{if $event[template]}-->
  338. <h2>报名信息</h2>
  339. <p><!--{eval echo nl2br(htmlspecialchars($value[template]))}--></p>
  340. <!--{/if}-->
  341. </td>
  342. </tr>
  343. <!--{/loop}-->
  344. </tbody>
  345. </table>
  346. <div class="page">$multi</div>
  347. <!--{else}-->
  348. <div class="c_form">还没有相关成员</div>
  349. <!--{/if}-->
  350. </div>
  351. <p>
  352. <input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')"><label for="chkall">全选</label> &nbsp;
  353. 设为
  354. <select name="status">
  355. <option value="2">普通成员</option>
  356. <!--{if $_SGLOBAL[supe_uid]==$event[uid]}-->
  357. <option value="3">组织者</option>
  358. <!--{/if}-->
  359. <!--{if $event[verify]}-->
  360. <option value="0">待审核</option>
  361. <!--{/if}-->
  362. <option value="-1">踢出成员</option>
  363. </select>
  364. <input type="submit" name="memberssubmit" value="提交" class="submit" />
  365. </p>
  366. </form>
  367. </div>
  368. <div id="sidebar" style="width: 150px;">
  369. <div class="cat">
  370. <h3>成员状态</h3>
  371. <ul class="post_list line_list">
  372. <li<!--{if $_GET[status]==0}--> class="current"<!--{/if}-->><a href="cp.php?ac=event&op=members&id=$eventid&status=0">待审核</a></li>
  373. <li<!--{if $_GET[status]==2}--> class="current"<!--{/if}-->><a href="cp.php?ac=event&op=members&id=$eventid&status=2">普通成员</a></li>
  374. <li<!--{if $_GET[status]==3}--> class="current"<!--{/if}-->><a href="cp.php?ac=event&op=members&id=$eventid&status=3">组织者</a></li>
  375. </ul>
  376. </div>
  377. </div>
  378. <!--{elseif $op == "thread"}-->
  379. <div id="d_edit_form">
  380. <form id="edit_form" name="edit_form" class="c_form" method="post" action="cp.php?ac=event&op=thread&id=$event[eventid]" onsubmit="return confirm('此操作不可恢复,确认吗?')">
  381. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  382. <!--{if $threadlist}-->
  383. <div class="topic_list">
  384. <table cellspacing="0" cellpadding="0">
  385. <thead>
  386. <tr>
  387. <td width="30">选择</td>
  388. <td class="subject">主题</td>
  389. <td class="author">作者 (回应/阅读)</td>
  390. <td class="lastpost">最后更新</td>
  391. </tr>
  392. </thead>
  393. <tbody>
  394. <!--{loop $threadlist $key $value}-->
  395. <tr <!--{if $key%2==1}-->class="alt"<!--{/if}-->>
  396. <td>
  397. <input type="checkbox" name="ids[]" value="$value[tid]" />
  398. </td>
  399. <td class="subject">
  400. <a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]&eventid=$eventid">$value[subject]</a>
  401. </td>
  402. <td class="author"><a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a><br><em>$value[replynum]/$value[viewnum]</em></td>
  403. <td class="lastpost"><a href="space.php?uid=$value[lastauthorid]" title="{$_SN[$value[lastauthorid]]}">{$_SN[$value[lastauthorid]]}</a><br><!--{date('m-d H:i',$value[lastpost],1)}--></td>
  404. </tr>
  405. <!--{/loop}-->
  406. </tbody>
  407. </table>
  408. <p>
  409. <input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')"><label for="chkall">全选</label> &nbsp;
  410. <input type="submit" name="delthreadsubmit" value="删除" class="submit" />
  411. </p>
  412. </div>
  413. <!--{else}-->
  414. <div class="c_form" style="text-align:center;">还没有相关话题</div>
  415. <!--{/if}-->
  416. </form>
  417. </div>
  418. <!--{elseif $op == 'edithot'}-->
  419. <h1>调整热度</h1>
  420. <a href="javascript:hideMenu();" class="float_del" title="关闭">关闭</a>
  421. <div class="popupmenu_inner">
  422. <form method="post" action="cp.php?ac=event&op=edithot&id=$eventid">
  423. <p class="btn_line">
  424. 新的热度<input type="text" name="hot" value="$event[hot]" size="5">
  425. <input type="hidden" name="refer" value="$_SGLOBAL[refer]" />
  426. <input type="hidden" name="hotsubmit" value="true" />
  427. <input type="submit" name="btnsubmit" value="确定" class="submit" />
  428. </p>
  429. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  430. </form>
  431. </div>
  432. <!--{elseif $op == "pic"}-->
  433. <div id="d_edit_form">
  434. <form id="edit_form" name="edit_form" class="c_form" method="post" action="cp.php?ac=event&op=pic&id=$event[eventid]" onsubmit="return confirm('此操作不可恢复,确认吗?')">
  435. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  436. <div id="album" class="article">
  437. <!--{if sizeof($photolist) > 0}-->
  438. <table width="100%" cellspacing="6" cellpadding="0" class="photo_list">
  439. <tbody>
  440. <tr>
  441. <!--{loop $photolist $key $value}-->
  442. <td>
  443. <a href="space.php?do=event&id=$eventid&view=pic&picid=$value[picid]"><img src="$value[pic]" alt="$value[title]" /></a>
  444. <br />
  445. <input type="checkbox" value="$value[picid]" name="ids[]"/>选定
  446. </td>
  447. <!--{if $key%4==3}--></tr><tr><!--{/if}-->
  448. <!--{/loop}-->
  449. </tr>
  450. </tbody>
  451. </table>
  452. <div class="page">$multi</div>
  453. <p>
  454. <input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')"><label for="chkall">全选</label> &nbsp;
  455. <input type="submit" name="deletepicsubmit" value="删除选定" class="submit" />
  456. </p>
  457. <!--{else}-->
  458. <p align="center">还没有活动照片</p>
  459. <!--{/if}-->
  460. </div>
  461. </form>
  462. </div>
  463. <!--{elseif $op == "eventinvite"}-->
  464. <div class="h_status">
  465. 您的好友邀请您加入以下活动
  466. <!--{if !empty($eventinvites)}-->
  467. <span class="pipe">|</span>
  468. <a href="cp.php?ac=event&op=eventinvite&&r=1"><span>忽略所有邀请</span></a>
  469. <!--{/if}-->
  470. </div>
  471. <div class="c_form">
  472. <!--{if !empty($eventinvites)}-->
  473. <table cellspacing="4" cellpadding="4" class="formtable">
  474. <!--{loop $eventinvites $value}-->
  475. <tr>
  476. <td width="100px">
  477. <div>
  478. <a href="space.php?do=event&id=$value[eventid]" target="_blank">
  479. <img src="$value[pic]" alt="$value[title]" class="poster_pre">
  480. </a>
  481. </div>
  482. </td>
  483. <td class="h_status">
  484. <p><a href="space.php?do=event&id=$value[eventid]" target="_blank" style="font-size:14px;font-weight:bold;">
  485. $value[title]</a></p>
  486. <br>活动时间<!--{eval echo sgmdate("n月d日 G:i", $value[starttime])}--> - <!--{eval echo sgmdate("n月d日 G:i", $value[endtime])}-->
  487. <!--{if $value[endtime]<$_SGLOBAL[timestamp]}-->
  488. <span class="event_state"> 已结束</span>
  489. <!--{elseif $value[deadline]<$_SGLOBAL[timestamp]}-->
  490. <span class="event_state"> 报名截止</span>
  491. <!--{/if}-->
  492. <br>活动地点$value[province] - $value[city] $value[location]
  493. <br>发起人<a href="space.php?uid=$value[uid]">$_SN[$value[uid]]</a>
  494. <div id="eventinvite_$value[eventid]" style="padding:0.5em 0 0.5em 0;">
  495. 邀请好友<a href="space.php?uid=$value[uid]" target="_blank">{$_SN[$value[uid]]}</a>
  496. <br>邀请时间<!--{eval echo sgmdate('Y-m-d H:i', $value[invitetime], 1)}-->
  497. <p style="padding:1em 0 0 0;">
  498. <a id="a_accept" href="cp.php?ac=event&op=acceptinvite&id=$value[eventid]" class="submit" onclick="ajaxget(this.href, 'eventinvite_$value[eventid]'); return false;">接受邀请</a>
  499. <a href="cp.php?ac=event&op=eventinvite&id=$value[eventid]&r=1" class="button">忽略</a>
  500. </p>
  501. </div>
  502. </td>
  503. </tr>
  504. <!--{/loop}-->
  505. </table>
  506. <!--{else}-->
  507. 暂时没有新的活动邀请
  508. <!--{/if}-->
  509. </div>
  510. <!--{else}-->
  511. <!--{if $topic}-->
  512. <!--{template cp_topic_menu}-->
  513. <!--{/if}-->
  514. <div class="c_form">
  515. <form id="edit_form" name="edit_form" method="post" enctype="multipart/form-data" action="cp.php?ac=event&op=edit&id=$eventid">
  516. <table class="infotable" width="100%" cellspacing="4" cellpadding="4">
  517. <tbody>
  518. <tr>
  519. <th>活动名称 *</th>
  520. <td>
  521. <input class="t_input" id="title" name="title" value="$event[title]" size="56" type="text" maxlength="80">
  522. </td>
  523. </tr>
  524. <tr>
  525. <th>活动城市 *</th>
  526. <td id="citybox">
  527. <script type="text/javascript" src="source/script_city.js" charset="$_SC[charset]"></script>
  528. <script type="text/javascript" charset="$_SC[charset]">
  529. showprovince('province', 'city', '$event[province]', 'citybox');
  530. showcity('city', '$event[city]', 'province', 'citybox');
  531. </script>
  532. </td>
  533. </tr>
  534. <tr>
  535. <th>活动地点</th>
  536. <td>
  537. <input class="t_input" id="location" name="location" value="$event[location]" size="56" type="text" maxlength="80">
  538. </td>
  539. </tr>
  540. <tr>
  541. <th>活动时间 *</th>
  542. <td>
  543. <script type="text/javascript" src="source/script_calendar.js" charset="$_SC[charset]"></script>
  544. <input type="text" name="starttime" id="starttime" value="<!--{eval echo sgmdate('Y-m-d H:i', $event[starttime])}-->" onclick="showcalendar(event,this,1,'<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp])}-->', '<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp] + 3600 * 24 * 60)}-->')" />
  545. <input type="text" name="endtime" id="endtime" value="<!--{eval echo sgmdate('Y-m-d H:i', $event[endtime])}-->" onclick="showcalendar(event,this,1,'<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp])}-->', '<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp] + 3600 * 24 * 60)}-->')" />
  546. </td>
  547. </tr>
  548. <tr>
  549. <th>报名截止 *</th>
  550. <td>
  551. <input type="text" name="deadline" id="deadline" value="<!--{eval echo sgmdate('Y-m-d H:i', $event[deadline])}-->" onclick="showcalendar(event,this,1,'<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp])}-->', '<!--{eval echo sgmdate('Y-m-d H:i', $_SGLOBAL[timestamp] + 3600 * 24 * 60)}-->')" />
  552. </td>
  553. </tr>
  554. <tr>
  555. <th width="100" style="vertical-align: top;">活动分类 *</th>
  556. <td>
  557. <select name="classid" id="classid" onchange="reset_eventclass(this.value)">
  558. <option value="-1">
  559. 请选择活动分类
  560. </option>
  561. <!--{loop $_SGLOBAL[eventclass] $key $value}-->
  562. <option value="$key" <!--{if $event[classid] == $key}--> selected<!--{/if}--> >$value[classname]</option>
  563. <!--{/loop}-->
  564. </select>
  565. <div id="classid_info"></div>
  566. </td>
  567. </tr>
  568. <tr>
  569. <td colspan="2">
  570. <a id="doodleBox" href="magic.php?mid=doodle&showid=blog_doodle&target=uchome-ttHtmlEditor&from=editor" style="display:none"></a>
  571. <textarea class="userData" name="detail" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$event[detail]</textarea>
  572. <iframe src="editor.php?charset=$_SC[charset]&allowhtml=0&doodle=<!--{if isset($_SGLOBAL[magic][doodle])}-->1<!--{/if}-->" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe></td>
  573. </tr>
  574. <tr>
  575. <th style="vertical-align: top;">活动海报</th>
  576. <td>
  577. <input type="file" name="poster" /> 图片将上传到您的默认相册<br />
  578. <input type="checkbox" id="sharepic" name="sharepic" value="1" />
  579. <label for="sharepic">同时把海报共享到活动相册</label>
  580. </td>
  581. </tr>
  582. <!--{if $mtags}-->
  583. <tr>
  584. <th>关联群组</th>
  585. <td>
  586. <select name="tagid">
  587. <option value="">选择关联群组</option>
  588. <!--{loop $mtags $value}-->
  589. <option value="$value[tagid]" <!--{if $value[tagid]==$event[tagid]}-->selected<!--{/if}--> >$value[tagname]</option>
  590. <!--{/loop}-->
  591. </select>
  592. 必须是您自己创建的群组关联后活动话题会同步到该群组
  593. </td>
  594. </tr>
  595. <!--{/if}-->
  596. </tbody>
  597. </table>
  598. <table class="infotable" width="100%" cellspacing="4" cellpadding="4">
  599. <tbody>
  600. <tr>
  601. <td colspan="2">
  602. <a id="toggle_advanced" href="#" onclick="toggle_advanced(); this.blur(); return false;">
  603. 展开高级设置</a>
  604. </td>
  605. </tr>
  606. </tbody>
  607. </table>
  608. <table id="advanced_info" class="infotable" width="100%" cellspacing="4" cellpadding="4" style="display:none">
  609. <tbody>
  610. <tr>
  611. <th width="100">活动人数</th>
  612. <td>
  613. <input name="limitnum" value="$event[limitnum]" id="limitnum" type="text" size="4" maxlength="8">
  614. <span class="tiptext">
  615. 活动参加人数限制设为 0 表示无限制
  616. </span>
  617. </td>
  618. </tr>
  619. <tr>
  620. <th width="100" style="vertical-align: top;">活动隐私</th>
  621. <td>
  622. <select name="public" id="public">
  623. <option <!--{if $event[public]==2}-->selected="selected"<!--{/if}--> value="2">公开活动所有人可见可加入</option>
  624. <option <!--{if $event[public]==1}-->selected="selected"<!--{/if}--> value="1">半公开活动所有人可见, 邀请才能加入</option>
  625. <option <!--{if $event[public]==0}-->selected="selected"<!--{/if}--> value="0">私密活动被邀请者可见</option>
  626. </select>
  627. </td>
  628. </tr>
  629. <tr>
  630. <th width="100" style="vertical-align: top;">活动选项</th>
  631. <td>
  632. <input name="allowinvite" id="allowinvite" value="1" type="checkbox"<!--{if $event[allowinvite]}--> checked="checked"<!--{/if}-->>
  633. <label for="allowinvite">
  634. 允许参与者邀请好友被邀请者加入活动不需要审核
  635. </label>
  636. <br>
  637. <input name="allowpic" id="allowpic" value="1" type="checkbox"<!--{if $event[allowpic]}--> checked="checked"<!--{/if}-->>
  638. <label for="allowpic">
  639. 允许参与者共享活动照片
  640. </label>
  641. <br>
  642. <input name="allowpost" id="allowpost" value="1" type="checkbox"<!--{if $event[allowpost]}--> checked="checked"<!--{/if}-->>
  643. <label for="allowpost">
  644. 允许所有人发布留言
  645. </label>
  646. <br>
  647. <input name="verify" id="verify" value="1" type="checkbox"<!--{if $event[verify]}--> checked="checked"<!--{/if}-->>
  648. <label for="verify">
  649. 参加活动需要审批
  650. </label>
  651. <br>
  652. <input name="allowfellow" id="allowfellow" value="1" type="checkbox"<!--{if $event[allowfellow]}--> checked="checked"<!--{/if}-->>
  653. <label for="allowfellow">
  654. 允许参加者携带朋友携带朋友数会占用活动参与者名额
  655. </label>
  656. </td>
  657. </tr>
  658. <tr>
  659. <th width="100" style="vertical-align: top;">报名信息</th>
  660. <td>
  661. 如果要求参加者填写报名信息最多255个字符你可以在此处给出一个格式模板留空表示不要求填写<br />
  662. <textarea id="template" name="template" rows="4" cols="72">$event[template]</textarea>
  663. </td>
  664. </tr>
  665. </tr>
  666. </tbody>
  667. </table>
  668. <!--{if checkperm('seccode')}-->
  669. <table class="infotable" width="100%" cellspacing="4" cellpadding="4">
  670. <tbody>
  671. <!--{if $_SCONFIG['questionmode']}-->
  672. <tr>
  673. <th width="100" style="vertical-align: top;">请回答验证问题</th>
  674. <td>
  675. <p><!--{eval question();}--></p>
  676. <input type="text" id="seccode" name="seccode" value="" size="15" class="t_input" />
  677. </td>
  678. </tr>
  679. <!--{else}-->
  680. <tr>
  681. <th width="100" style="vertical-align: top;">请填写验证码</th>
  682. <td>
  683. <script type="text/javascript" charset="$_SC[charset]">seccode();</script>
  684. <p>请输入上面的4位字母或数字看不清可<a href="javascript:updateseccode()">更换一张</a></p>
  685. <input type="text" id="seccode" name="seccode" value="" size="15" class="t_input" />
  686. </td>
  687. </tr>
  688. <!--{/if}-->
  689. </tbody>
  690. </table>
  691. <!--{/if}-->
  692. <table class="infotable" width="100%" cellspacing="4" cellpadding="4">
  693. <tbody>
  694. <!--{if empty($eventid)}-->
  695. <tr>
  696. <th width="100">动态选项</th>
  697. <td>
  698. <input type="checkbox" name="makefeed" id="makefeed" value="1"<!--{if ckprivacy('event', 1)}--> checked<!--{/if}-->> 产生动态 (<a href="cp.php?ac=privacy#feed" target="_blank">更改默认设置</a>)
  699. </td>
  700. </tr>
  701. <!--{/if}-->
  702. <tr>
  703. <th width="100">&nbsp;</th>
  704. <td>
  705. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  706. <input type="hidden" name="topicid" value="$topicid" />
  707. <input type="hidden" name="eventsubmit" value="1" />
  708. <input class="submit" value="<!--{if $_GET[id]}-->保存<!--{else}-->提交<!--{/if}-->" type="button" onclick="check_eventpost()"/>
  709. </td>
  710. </tr>
  711. </tbody>
  712. </table>
  713. </form>
  714. </div>
  715. <script type="text/javascript" src="image/editor/editor_function.js" charset="$_SC[charset]"></script>
  716. <script type="text/javascript" charset="$_SC[charset]">
  717. //活动分类
  718. var eventclass = [];
  719. <!--{loop $_SGLOBAL[eventclass] $key $value}-->
  720. eventclass["$key"] = {};
  721. <!--{loop $value $k $v}-->
  722. eventclass["$key"]["$k"] = '<!--{eval echo str_replace(array("\r\n","\r","\n"), "<br>", $v)}-->';
  723. <!--{/loop}-->
  724. <!--{/loop}-->
  725. function reset_eventclass(classid){
  726. var selclass = eventclass[classid];
  727. var o = $("uchome-ifrHtmlEditor").contentWindow.document.getElementById("HtmlEditor").contentWindow.document.body;
  728. var append =false;// 是否添加
  729. if(selclass && selclass['template'] && (trim(o.innerHTML.replace(/<br[ \/]*>|<div><\/div>/img, '')) == "" || confirm("要添加站长设定的活动分类模板到活动介绍吗?"))){
  730. append = true;
  731. }
  732. if (append){
  733. o.innerHTML = selclass['template'] + "<br/>" + o.innerHTML;
  734. $("classid_info").innerHTML = "请参考站长设定的模板填写活动介绍";
  735. }
  736. }
  737. //展开高级设置
  738. function toggle_advanced(){
  739. var el = $("advanced_info");
  740. if (el.style.display == "none"){
  741. el.style.display = "";
  742. $("toggle_advanced").innerHTML = "隐藏高级设置";
  743. } else {
  744. el.style.display = "none";
  745. $("toggle_advanced").innerHTML = "展开高级设置";
  746. }
  747. }
  748. //检查提交
  749. function check_eventpost(){
  750. // 活动类型
  751. if (parseInt($("classid").value) < 0){
  752. alert("活动类型必须选择。");
  753. $("classid").focus();
  754. return false;
  755. }
  756. // 标题
  757. var val = trim($("title").value);
  758. if ( val == "" ){
  759. alert("活动标题不能为空!");
  760. $("title").focus();
  761. return false;
  762. } else if (val.replace(/[^\x00-\xff]/g, "**").length > 80){
  763. alert("活动标题太长,请限制在80个字符内!");
  764. $("title").focus();
  765. return false;
  766. }
  767. // 活动地点
  768. if($('city').value == ""){
  769. alert("活动举办城市不能为空。");
  770. $("city").focus();
  771. return false;
  772. }
  773. // 报名时间,起始-结束时间
  774. var deadline = parsedate($("deadline").value).getTime();
  775. var starttime = parsedate($("starttime").value).getTime();
  776. var endtime = parsedate($("endtime").value).getTime();
  777. <!--{if !$eventid}-->
  778. var nowtime = new Date().getTime();
  779. if (starttime < nowtime){
  780. alert("活动开始时间不能早于现在。");
  781. $("starttime").focus();
  782. return false;
  783. }
  784. <!--{/if}-->
  785. if (endtime - deadline < 0){
  786. alert("报名截止时间不能晚于活动结束时间。");
  787. $("deadline").focus();
  788. return false;
  789. }
  790. if (endtime - starttime < 0){
  791. alert("活动结束时间不能早于开始时间。");
  792. $("endtime").focus();
  793. return false;
  794. }
  795. if (endtime - starttime > 60 * 24 * 3600 * 1000){
  796. alert("活动持续时间不能超过 60 天。");
  797. $("endtime").focus();
  798. return false;
  799. }
  800. // 限制人数
  801. if (! /^[0-9]{1,8}$/.test($("limitnum").value)){
  802. alert("活动人数输入不正确。");
  803. $("limitnum").focus();
  804. return false;
  805. }
  806. var makefeed = $('makefeed');
  807. if(makefeed) {
  808. if(makefeed.checked == false) {
  809. if(!confirm("友情提醒:您确定此次发布不产生动态吗?\n有了动态,好友才能及时看到你的更新。")) {
  810. return false;
  811. }
  812. }
  813. }
  814. // 编辑器内容同步
  815. edit_save();
  816. // 活动描述,默认可能有一个<br/>或<div></div>,需要去掉再判断
  817. val = trim($("uchome-ttHtmlEditor").value.replace(/<br[ \/]*>|<div><\/div>/img,''));
  818. if (val == ""){
  819. alert("活动描述不能为空。");
  820. return false;
  821. }
  822. //验证码
  823. if($('seccode')) {
  824. var code = $('seccode').value;
  825. var x = new Ajax();
  826. x.get('cp.php?ac=common&op=seccode&code=' + code, function(s){
  827. s = trim(s);
  828. if(s.indexOf('succeed') == -1) {
  829. alert(s);
  830. $('seccode').focus();
  831. return false;
  832. } else {
  833. $("edit_form").submit();
  834. }
  835. });
  836. } else {
  837. $("edit_form").submit();
  838. }
  839. }
  840. </script>
  841. <!--{/if}-->
  842. <!--{if in_array($op,array("edit", "pic", "thread", "members", "comment", "invite", "eventinvite"))}-->
  843. <!--//管理页面页尾//-->
  844. </div>
  845. <!--{/if}-->
  846. <!--{template footer}-->