SilentLittleCat 7 years ago
parent
commit
e84e51dce6

+ 2 - 0
.idea/encodings.xml

xqd
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="Encoding">
+    <file url="file://$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php" charset="GBK" />
     <file url="file://$PROJECT_DIR$/template/wfdsoft_jiaohu/common/extend_common.css" charset="GBK" />
     <file url="file://$PROJECT_DIR$/template/wfdsoft_jiaohu/common/extend_module.css" charset="GBK" />
   </component>

+ 545 - 154
.idea/workspace.xml

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -2,12 +2,21 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="b6faea92-a65d-441a-9752-2f40c137a7e3" name="Default" comment="">
-      <change beforePath="" afterPath="$PROJECT_DIR$/data/attachment/group/slick/111.png" />
-      <change beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
+      <change beforePath="$PROJECT_DIR$/.idea/encodings.xml" afterPath="$PROJECT_DIR$/.idea/encodings.xml" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
-      <change beforePath="$PROJECT_DIR$/config/config_global.php" afterPath="$PROJECT_DIR$/config/config_global.php" />
+      <change beforePath="$PROJECT_DIR$/config/config_ucenter.php" afterPath="$PROJECT_DIR$/config/config_ucenter.php" />
+      <change beforePath="$PROJECT_DIR$/data/log/201804_cplog.php" afterPath="$PROJECT_DIR$/data/log/201804_cplog.php" />
+      <change beforePath="$PROJECT_DIR$/data/template/3_3_common_header_group_index.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_3_common_header_group_index.tpl.php" />
       <change beforePath="$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php" />
+      <change beforePath="$PROJECT_DIR$/data/template/3_3_forum_post.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_3_forum_post.tpl.php" />
+      <change beforePath="$PROJECT_DIR$/data/template/3_diy_group_group.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_diy_group_group.tpl.php" />
       <change beforePath="$PROJECT_DIR$/data/template/3_diy_group_index.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_diy_group_index.tpl.php" />
+      <change beforePath="$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php" afterPath="$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php" />
+      <change beforePath="$PROJECT_DIR$/forum.php" afterPath="$PROJECT_DIR$/forum.php" />
+      <change beforePath="$PROJECT_DIR$/source/include/post/post_newthread.php" afterPath="$PROJECT_DIR$/source/include/post/post_newthread.php" />
+      <change beforePath="$PROJECT_DIR$/source/module/forum/forum_group.php" afterPath="$PROJECT_DIR$/source/module/forum/forum_group.php" />
+      <change beforePath="$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php" afterPath="$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php" />
+      <change beforePath="$PROJECT_DIR$/static/js/forum_post.js" afterPath="$PROJECT_DIR$/static/js/forum_post.js" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="TRACKING_ENABLED" value="true" />
@@ -18,56 +27,238 @@
   </component>
   <component name="FileEditorManager">
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
-      <file leaf-file-name="group.php" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/group.php">
+      <file leaf-file-name="forum_group.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/source/module/forum/forum_group.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="775">
-              <caret line="30" column="0" lean-forward="false" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" />
+            <state relative-caret-position="636">
+              <caret line="362" column="51" lean-forward="false" selection-start-line="362" selection-start-column="51" selection-end-line="362" selection-end-column="51" />
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="group_index.php" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/source/module/group/group_index.php">
+      <file leaf-file-name="event_thread.class.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="397">
-              <caret line="146" column="21" lean-forward="false" selection-start-line="146" selection-start-column="21" selection-end-line="146" selection-end-column="21" />
-              <folding />
+            <state relative-caret-position="686">
+              <caret line="75" column="10" lean-forward="false" selection-start-line="75" selection-start-column="10" selection-end-line="75" selection-end-column="10" />
+              <folding>
+                <marker date="1525008676903" expanded="true" signature="1326:1387" ph="SELECT * FRO... ${DB::table('xj_event_field')}" />
+                <marker date="1525008676903" expanded="true" signature="2061:2127" ph="SELECT * FRO... ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="2157:2237" ph="SELECT * FRO... ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="2873:2937" ph="SELECT * FRO... ${DB::table('forum_post')}" />
+                <marker date="1525008676903" expanded="true" signature="6252:6969" ph="INSERT INTO ${DB::table('xj_event')}... " />
+                <marker date="1525008676903" expanded="true" signature="7200:7262" ph="SELECT * FRO... ${DB::table('xj_event')}" />
+                <marker date="1525008676903" expanded="true" signature="8155:8216" ph="SELECT * FRO... ${DB::table('xj_event_field')}" />
+                <marker date="1525008676903" expanded="true" signature="8996:9062" ph="SELECT * FRO... ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="9092:9172" ph="SELECT * FRO... ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="9267:9359" ph="SELECT upid ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="9407:9472" ph="SELECT name ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="10082:10158" ph="SELECT * FRO... ${DB::table('forum_post')}" />
+                <marker date="1525008676903" expanded="true" signature="10203:10269" ph="SELECT setti... ${DB::table('xj_event')}" />
+                <marker date="1525008676903" expanded="true" signature="13895:13967" ph="SELECT activ... ${DB::table('xj_event')}" />
+                <marker date="1525008676903" expanded="true" signature="15455:15517" ph="SELECT * FRO... ${DB::table('xj_event')}" />
+                <marker date="1525008676903" expanded="true" signature="18794:18894" ph="SELECT * FRO... ${DB::table('xj_eventthread')}" />
+                <marker date="1525008676903" expanded="true" signature="18950:19043" ph="SELECT SUM(a... ${DB::table('xj_eventapply')}" />
+                <marker date="1525008676903" expanded="true" signature="19154:19247" ph="SELECT SUM(a... ${DB::table('xj_eventapply')}" />
+                <marker date="1525008676903" expanded="true" signature="19582:19687" ph="SELECT apply... ${DB::table('xj_eventapply')}" />
+                <marker date="1525008676903" expanded="true" signature="20092:20207" ph="SELECT count... ${DB::table('forum_post')}" />
+                <marker date="1525008676903" expanded="true" signature="20524:20616" ph="SELECT upid ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="20682:20747" ph="SELECT name ${DB::table('common_district')}" />
+                <marker date="1525008676903" expanded="true" signature="21487:21586" ph="SELECT remot... ${DB::table(getattachtablebytid($tid))}" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="3_xj_event_post_event.tpl.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="291">
+              <caret line="411" column="49" lean-forward="false" selection-start-line="411" selection-start-column="49" selection-end-line="411" selection-end-column="49" />
+              <folding>
+                <marker date="1525011199391" expanded="true" signature="87:834" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="101:123" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="133:150" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="162:425" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="437:555" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="565:659" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="675:747" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="759:792" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="807:826" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="865:1736" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="890:1726" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="947:979" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1010:1060" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1066:1077" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1131:1724" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1540:1722" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1589:1720" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="1757:1886" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="2131:2578" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="2136:2465" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="2491:2578" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="2805:2818" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="2819:2904" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="3201:3266" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="3509:3647" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="3595:3647" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="3882:3940" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="3965:4158" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="4086:4113" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="4737:4876" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="4902:5020" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="5050:5203" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="5235:5442" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="5410:5442" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="5686:5955" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6076:6574" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6097:6565" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="6596:6819" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6671:6724" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6784:6804" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6805:6813" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="6846:7077" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="7106:7497" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="7563:7696" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="7747:7769" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="8530:9067" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9095:9233" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9202:9233" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9566:9580" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9650:10104" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9844:9871" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9885:10104" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="9949:10103" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="10397:10475" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="10627:10820" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="10844:11062" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="10918:10944" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11091:11432" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11492:11637" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11567:11620" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11662:11966" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11691:11704" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11705:11932" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="11989:12081" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="12171:18496" ph="..." />
+                <marker date="1525011199391" expanded="true" signature="12192:12292" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12316:12374" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12609:16794" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12649:12848" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12662:12775" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12781:12846" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="12860:14215" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="14227:15584" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="15595:16791" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="16817:16999" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="16864:16928" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="16934:16997" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17040:17218" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17089:17150" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17156:17216" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17269:17420" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17460:17553" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17633:18495" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17697:17802" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17745:17784" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17869:17979" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="17917:17961" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18021:18127" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18074:18109" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18166:18270" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18219:18252" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18372:18480" ph="{...}" />
+                <marker date="1525011199391" expanded="true" signature="18423:18462" ph="{...}" />
+              </folding>
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="3_diy_group_index.tpl.php" pinned="false" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/data/template/3_diy_group_index.tpl.php">
+      <file leaf-file-name="forum_post.js" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/static/js/forum_post.js">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="430">
-              <caret line="123" column="26" lean-forward="false" selection-start-line="123" selection-start-column="26" selection-end-line="123" selection-end-column="26" />
+            <state relative-caret-position="404">
+              <caret line="552" column="10" lean-forward="false" selection-start-line="552" selection-start-column="10" selection-end-line="552" selection-end-column="10" />
+              <folding>
+                <marker date="1525011173504" expanded="true" signature="21595:21622" ph="..." />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="misc.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/misc.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="806">
+              <caret line="97" column="47" lean-forward="false" selection-start-line="97" selection-start-column="42" selection-end-line="97" selection-end-column="47" />
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="week_nav.js" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/template/wfdsoft_jiaohu/images/js/week_nav.js">
+      <file leaf-file-name="misc_swfupload.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/source/module/misc/misc_swfupload.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="403">
-              <caret line="31" column="46" lean-forward="false" selection-start-line="31" selection-start-column="25" selection-end-line="31" selection-end-column="46" />
+            <state relative-caret-position="744">
+              <caret line="49" column="23" lean-forward="true" selection-start-line="49" selection-start-column="23" selection-end-line="49" selection-end-column="23" />
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="3_3_common_header_no_nav.tpl.php" pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php">
+      <file leaf-file-name="forum_upload.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/source/class/forum/forum_upload.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="260">
-              <caret line="47" column="70" lean-forward="false" selection-start-line="47" selection-start-column="70" selection-end-line="47" selection-end-column="70" />
+            <state relative-caret-position="-182">
+              <caret line="25" column="0" lean-forward="false" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
               <folding />
             </state>
           </provider>
         </entry>
       </file>
+      <file leaf-file-name="common.js" pinned="false" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/static/js/common.js">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="725">
+              <caret line="1225" column="5" lean-forward="false" selection-start-line="1225" selection-start-column="5" selection-end-line="1225" selection-end-column="5" />
+              <folding>
+                <marker date="1525011696005" expanded="true" signature="32210:32216" ph=" " />
+                <marker date="1525011696005" expanded="true" signature="32216:32222" ph=" " />
+                <marker date="1525011696005" expanded="true" signature="36341:36347" ph=" " />
+                <marker date="1525011696005" expanded="true" signature="36347:36353" ph=" " />
+                <marker date="1525011696005" expanded="true" signature="41657:41663" ph="..." />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="3_3_forum_post.tpl.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/data/template/3_3_forum_post.tpl.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="6275">
+              <caret line="309" column="669" lean-forward="false" selection-start-line="309" selection-start-column="654" selection-end-line="309" selection-end-column="669" />
+              <folding>
+                <marker date="1525008166895" expanded="true" signature="6652:6660" ph="›" />
+                <marker date="1525008166895" expanded="true" signature="6821:6829" ph="›" />
+                <marker date="1525008166895" expanded="true" signature="62221:62233" ph="..." />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="3_diy_group_group.tpl.php" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/data/template/3_diy_group_group.tpl.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="501">
+              <caret line="1381" column="30" lean-forward="false" selection-start-line="1381" selection-start-column="15" selection-end-line="1381" selection-end-column="30" />
+              <folding>
+                <marker date="1525009827338" expanded="true" signature="17949:17961" ph="..." />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
     </leaf>
   </component>
   <component name="FindInProjectRecents">
@@ -75,7 +266,28 @@
       <find>login</find>
       <find>id=&quot;wp</find>
       <find>week_nav</find>
+      <find>bm</find>
+      <find>创建</find>
+      <find>推荐</find>
+      <find>地区</find>
       <find>jquery</find>
+      <find>main_message</find>
+      <find>创建新</find>
+      <find>所属分类</find>
+      <find>nia</find>
+      <find>俱乐部名称</find>
+      <find>postclass</find>
+      <find>xjmenu</find>
+      <find>specialpost s_clear</find>
+      <find>newthread</find>
+      <find>activityaid_upload</find>
+      <find>groupnamecheck</find>
+      <find>uploadWindow</find>
+      <find>aid</find>
+      <find>$threadplughtml</find>
+      <find>showWindow</find>
+      <find>上传</find>
+      <find>uploadWindowstart()</find>
     </findStrings>
   </component>
   <component name="Git.Settings">
@@ -94,8 +306,21 @@
         <option value="$PROJECT_DIR$/.gitignore" />
         <option value="$PROJECT_DIR$/group.php" />
         <option value="$PROJECT_DIR$/source/module/group/group_index.php" />
-        <option value="$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php" />
+        <option value="$PROJECT_DIR$/config/config_ucenter.php" />
+        <option value="$PROJECT_DIR$/data/template/3_3_common_header_group_index.tpl.php" />
         <option value="$PROJECT_DIR$/data/template/3_diy_group_index.tpl.php" />
+        <option value="$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php" />
+        <option value="$PROJECT_DIR$/forum.php" />
+        <option value="$PROJECT_DIR$/source/module/forum/forum_post.php" />
+        <option value="$PROJECT_DIR$/data/template/3_3_forum_post.tpl.php" />
+        <option value="$PROJECT_DIR$/source/include/post/post_newthread.php" />
+        <option value="$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php" />
+        <option value="$PROJECT_DIR$/source/module/forum/forum_group.php" />
+        <option value="$PROJECT_DIR$/data/template/3_diy_group_group.tpl.php" />
+        <option value="$PROJECT_DIR$/static/js/forum_post.js" />
+        <option value="$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php" />
+        <option value="$PROJECT_DIR$/source/class/forum/forum_upload.php" />
+        <option value="$PROJECT_DIR$/static/js/common.js" />
       </list>
     </option>
   </component>
@@ -185,7 +410,7 @@
   <component name="PropertiesComponent">
     <property name="WebServerToolWindowFactoryState" value="false" />
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
-    <property name="SearchEverywhereHistoryKey" value="week_nav&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/template/wfdsoft_jiaohu/images/js/week_nav.js&#10;header_no&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_common_header_no_nav.tpl.php&#10;3_diy_group_index&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_diy_group_index.tpl.php&#10;group/group_i&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/group/group_index.php" />
+    <property name="SearchEverywhereHistoryKey" value="misc_swf&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/misc/misc_swfupload.php&#10;3_diy_group_group&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_diy_group_group.tpl.php&#10;forum_g&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/forum/forum_group.php&#10;3_xj_event_post_event&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_xj_event_post_event.tpl.php&#10;threadplugin_xj_event&#9;null&#9;null&#10;3_3_forum_post&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_forum_post.tpl.php&#10;post_newthread&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/include/post/post_newthread.php&#10;source/module/forum/forum_post.php&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/forum/forum_post.php&#10;forum_post&#9;null&#9;null&#10;group_index&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_diy_group_index.tpl.php&#10;common_h&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_common_header_group_index.tpl.php&#10;header&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_common_header_no_nav.tpl.php&#10;header_no_nav&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_common_header_no_nav.tpl.php&#10;forum_group&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/forum/forum_group.php&#10;week_nav&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/template/wfdsoft_jiaohu/images/js/week_nav.js&#10;header_no&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_3_common_header_no_nav.tpl.php&#10;3_diy_group_index&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/data/template/3_diy_group_index.tpl.php&#10;group/group_i&#9;FILE&#9;file://D:/wamp64/www/Project/zijia/source/module/group/group_index.php" />
   </component>
   <component name="RecentsManager">
     <key name="MoveFile.RECENT_KEYS">
@@ -232,18 +457,18 @@
       <workItem from="1524727323225" duration="1868000" />
       <workItem from="1524830861798" duration="5000" />
       <workItem from="1524881363592" duration="3990000" />
-      <workItem from="1524966401684" duration="4177000" />
+      <workItem from="1524966401684" duration="19475000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="27654000" />
+    <option name="totallyTimeSpent" value="42952000" />
   </component>
   <component name="ToolWindowManager">
     <frame x="-9" y="-9" width="1938" height="1048" extended-state="7" />
     <editor active="true" />
     <layout>
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2171875" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24375" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
       <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
       <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
@@ -275,103 +500,6 @@
     <watches-manager />
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/source/function/function_portal.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="212">
-          <caret line="52" column="9" lean-forward="false" selection-start-line="52" selection-start-column="9" selection-end-line="52" selection-end-column="9" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/source/function/function_home.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/portal/portalcp_index.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-1596">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/source/plugin/baidusubmit/uninstall.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/portal/index.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/style/t1/background.png">
-      <provider selected="true" editor-type-id="images">
-        <state />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/style/t1/bgimg.jpg">
-      <provider selected="true" editor-type-id="images">
-        <state />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/style/t1/flw_post.png">
-      <provider selected="true" editor-type-id="images">
-        <state />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/index.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/discuz_style_default.xml">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-1069">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/preview.jpg">
-      <provider selected="true" editor-type-id="images">
-        <state />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/portal/diyxml/portal_index.xml">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-4557">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/portal/portalcp_article.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-13562">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/template/default/portal/portal_topic_content.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-201">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/data/plugindata/index.htm">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$PROJECT_DIR$/source/plugin/baidusubmit/table/table_common_usergroup_baidu.php">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="0">
@@ -539,21 +667,6 @@
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/data/template/3_3_common_header_group_index.tpl.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-6649">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-        </state>
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/config/config_ucenter.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="0">
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$PROJECT_DIR$/.gitignore">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="186">
@@ -589,14 +702,6 @@
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/group.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="775">
-          <caret line="30" column="0" lean-forward="false" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" />
-          <folding />
-        </state>
-      </provider>
-    </entry>
     <entry file="file://$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external/lib.dom.d.ts">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="314">
@@ -613,29 +718,315 @@
         </state>
       </provider>
     </entry>
+    <entry file="file://$PROJECT_DIR$/config/config_ucenter_default.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="0">
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/config/config_ucenter.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="217">
+          <caret line="7" column="25" lean-forward="false" selection-start-line="7" selection-start-column="25" selection-end-line="7" selection-end-column="25" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
     <entry file="file://$PROJECT_DIR$/source/module/group/group_index.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="397">
+        <state relative-caret-position="419">
           <caret line="146" column="21" lean-forward="false" selection-start-line="146" selection-start-column="21" selection-end-line="146" selection-end-column="21" />
           <folding />
         </state>
       </provider>
     </entry>
+    <entry file="file://$PROJECT_DIR$/group.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="775">
+          <caret line="30" column="0" lean-forward="false" selection-start-line="30" selection-start-column="0" selection-end-line="30" selection-end-column="0" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
     <entry file="file://$PROJECT_DIR$/data/template/3_3_common_header_no_nav.tpl.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="260">
-          <caret line="47" column="70" lean-forward="false" selection-start-line="47" selection-start-column="70" selection-end-line="47" selection-end-column="70" />
+        <state relative-caret-position="264">
+          <caret line="71" column="147" lean-forward="true" selection-start-line="71" selection-start-column="147" selection-end-line="71" selection-end-column="147" />
           <folding />
         </state>
       </provider>
     </entry>
     <entry file="file://$PROJECT_DIR$/data/template/3_diy_group_index.tpl.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="430">
-          <caret line="123" column="26" lean-forward="false" selection-start-line="123" selection-start-column="26" selection-end-line="123" selection-end-column="26" />
+        <state relative-caret-position="217">
+          <caret line="7" column="80" lean-forward="false" selection-start-line="7" selection-start-column="80" selection-end-line="7" selection-end-column="80" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/data/template/3_3_common_header_group_index.tpl.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="4046">
+          <caret line="154" column="0" lean-forward="true" selection-start-line="0" selection-start-column="0" selection-end-line="154" selection-end-column="0" />
+          <folding>
+            <element signature="n#div#1;n#div#6;n#body#0;n#html#0;n#!!top" expanded="false" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/class/model/model_forum_post.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="248">
+          <caret line="13" column="6" lean-forward="false" selection-start-line="13" selection-start-column="6" selection-end-line="13" selection-end-column="6" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/include/post/post_newthread.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="260">
+          <caret line="108" column="113" lean-forward="false" selection-start-line="108" selection-start-column="113" selection-end-line="108" selection-end-column="113" />
+          <folding>
+            <element signature="e#7#194#0#PHP" expanded="false" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/module/forum/forum_post.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="353">
+          <caret line="339" column="44" lean-forward="false" selection-start-line="339" selection-start-column="44" selection-end-line="339" selection-end-column="44" />
+          <folding>
+            <marker date="1525007601598" expanded="true" signature="3641:3649" ph="›" />
+            <marker date="1525007601598" expanded="true" signature="3927:3935" ph="›" />
+            <marker date="1525007601598" expanded="true" signature="4256:4264" ph="›" />
+            <marker date="1525007601598" expanded="true" signature="4551:4559" ph="›" />
+            <marker date="1525007601598" expanded="true" signature="4775:4783" ph="›" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/forum.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="667">
+          <caret line="70" column="0" lean-forward="true" selection-start-line="70" selection-start-column="0" selection-end-line="70" selection-end-column="0" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/module/forum/forum_group.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="636">
+          <caret line="362" column="51" lean-forward="false" selection-start-line="362" selection-start-column="51" selection-end-line="362" selection-end-column="51" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/plugin/xj_event/event_thread.class.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="686">
+          <caret line="75" column="10" lean-forward="false" selection-start-line="75" selection-start-column="10" selection-end-line="75" selection-end-column="10" />
+          <folding>
+            <marker date="1525008676903" expanded="true" signature="1326:1387" ph="SELECT * FRO... ${DB::table('xj_event_field')}" />
+            <marker date="1525008676903" expanded="true" signature="2061:2127" ph="SELECT * FRO... ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="2157:2237" ph="SELECT * FRO... ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="2873:2937" ph="SELECT * FRO... ${DB::table('forum_post')}" />
+            <marker date="1525008676903" expanded="true" signature="6252:6969" ph="INSERT INTO ${DB::table('xj_event')}... " />
+            <marker date="1525008676903" expanded="true" signature="7200:7262" ph="SELECT * FRO... ${DB::table('xj_event')}" />
+            <marker date="1525008676903" expanded="true" signature="8155:8216" ph="SELECT * FRO... ${DB::table('xj_event_field')}" />
+            <marker date="1525008676903" expanded="true" signature="8996:9062" ph="SELECT * FRO... ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="9092:9172" ph="SELECT * FRO... ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="9267:9359" ph="SELECT upid ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="9407:9472" ph="SELECT name ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="10082:10158" ph="SELECT * FRO... ${DB::table('forum_post')}" />
+            <marker date="1525008676903" expanded="true" signature="10203:10269" ph="SELECT setti... ${DB::table('xj_event')}" />
+            <marker date="1525008676903" expanded="true" signature="13895:13967" ph="SELECT activ... ${DB::table('xj_event')}" />
+            <marker date="1525008676903" expanded="true" signature="15455:15517" ph="SELECT * FRO... ${DB::table('xj_event')}" />
+            <marker date="1525008676903" expanded="true" signature="18794:18894" ph="SELECT * FRO... ${DB::table('xj_eventthread')}" />
+            <marker date="1525008676903" expanded="true" signature="18950:19043" ph="SELECT SUM(a... ${DB::table('xj_eventapply')}" />
+            <marker date="1525008676903" expanded="true" signature="19154:19247" ph="SELECT SUM(a... ${DB::table('xj_eventapply')}" />
+            <marker date="1525008676903" expanded="true" signature="19582:19687" ph="SELECT apply... ${DB::table('xj_eventapply')}" />
+            <marker date="1525008676903" expanded="true" signature="20092:20207" ph="SELECT count... ${DB::table('forum_post')}" />
+            <marker date="1525008676903" expanded="true" signature="20524:20616" ph="SELECT upid ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="20682:20747" ph="SELECT name ${DB::table('common_district')}" />
+            <marker date="1525008676903" expanded="true" signature="21487:21586" ph="SELECT remot... ${DB::table(getattachtablebytid($tid))}" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/data/template/3_diy_group_group.tpl.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="501">
+          <caret line="1381" column="30" lean-forward="false" selection-start-line="1381" selection-start-column="15" selection-end-line="1381" selection-end-column="30" />
+          <folding>
+            <marker date="1525009827338" expanded="true" signature="17949:17961" ph="..." />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/data/template/3_3_forum_post.tpl.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="6275">
+          <caret line="309" column="669" lean-forward="false" selection-start-line="309" selection-start-column="654" selection-end-line="309" selection-end-column="669" />
+          <folding>
+            <marker date="1525008166895" expanded="true" signature="6652:6660" ph="›" />
+            <marker date="1525008166895" expanded="true" signature="6821:6829" ph="›" />
+            <marker date="1525008166895" expanded="true" signature="62221:62233" ph="..." />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/misc.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="806">
+          <caret line="97" column="47" lean-forward="false" selection-start-line="97" selection-start-column="42" selection-end-line="97" selection-end-column="47" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/module/misc/misc_swfupload.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="744">
+          <caret line="49" column="23" lean-forward="true" selection-start-line="49" selection-start-column="23" selection-end-line="49" selection-end-column="23" />
           <folding />
         </state>
       </provider>
     </entry>
+    <entry file="file://$PROJECT_DIR$/data/template/3_xj_event_post_event.tpl.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="291">
+          <caret line="411" column="49" lean-forward="false" selection-start-line="411" selection-start-column="49" selection-end-line="411" selection-end-column="49" />
+          <folding>
+            <marker date="1525011199391" expanded="true" signature="87:834" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="101:123" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="133:150" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="162:425" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="437:555" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="565:659" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="675:747" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="759:792" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="807:826" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="865:1736" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="890:1726" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="947:979" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1010:1060" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1066:1077" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1131:1724" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1540:1722" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1589:1720" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="1757:1886" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="2131:2578" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="2136:2465" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="2491:2578" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="2805:2818" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="2819:2904" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="3201:3266" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="3509:3647" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="3595:3647" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="3882:3940" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="3965:4158" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="4086:4113" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="4737:4876" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="4902:5020" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="5050:5203" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="5235:5442" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="5410:5442" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="5686:5955" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6076:6574" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6097:6565" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="6596:6819" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6671:6724" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6784:6804" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6805:6813" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="6846:7077" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="7106:7497" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="7563:7696" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="7747:7769" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="8530:9067" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9095:9233" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9202:9233" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9566:9580" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9650:10104" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9844:9871" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9885:10104" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="9949:10103" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="10397:10475" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="10627:10820" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="10844:11062" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="10918:10944" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11091:11432" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11492:11637" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11567:11620" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11662:11966" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11691:11704" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11705:11932" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="11989:12081" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="12171:18496" ph="..." />
+            <marker date="1525011199391" expanded="true" signature="12192:12292" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12316:12374" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12609:16794" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12649:12848" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12662:12775" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12781:12846" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="12860:14215" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="14227:15584" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="15595:16791" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="16817:16999" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="16864:16928" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="16934:16997" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17040:17218" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17089:17150" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17156:17216" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17269:17420" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17460:17553" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17633:18495" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17697:17802" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17745:17784" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17869:17979" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="17917:17961" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18021:18127" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18074:18109" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18166:18270" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18219:18252" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18372:18480" ph="{...}" />
+            <marker date="1525011199391" expanded="true" signature="18423:18462" ph="{...}" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/static/js/forum_post.js">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="404">
+          <caret line="552" column="10" lean-forward="false" selection-start-line="552" selection-start-column="10" selection-end-line="552" selection-end-column="10" />
+          <folding>
+            <marker date="1525011173504" expanded="true" signature="21595:21622" ph="..." />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/source/class/forum/forum_upload.php">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="-182">
+          <caret line="25" column="0" lean-forward="false" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/static/js/common.js">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="725">
+          <caret line="1225" column="5" lean-forward="false" selection-start-line="1225" selection-start-column="5" selection-end-line="1225" selection-end-column="5" />
+          <folding>
+            <marker date="1525011696005" expanded="true" signature="32210:32216" ph=" " />
+            <marker date="1525011696005" expanded="true" signature="32216:32222" ph=" " />
+            <marker date="1525011696005" expanded="true" signature="36341:36347" ph=" " />
+            <marker date="1525011696005" expanded="true" signature="36347:36353" ph=" " />
+            <marker date="1525011696005" expanded="true" signature="41657:41663" ph="..." />
+          </folding>
+        </state>
+      </provider>
+    </entry>
   </component>
 </project>

+ 2 - 2
config/config_ucenter.php

xqd
@@ -4,8 +4,8 @@
 define('UC_CONNECT', 'mysql');
 
 define('UC_DBHOST', 'localhost');
-define('UC_DBUSER', 'dbuser');
-define('UC_DBPW', 'BXhKw6JRxMy9FTb2');
+define('UC_DBUSER', 'root');
+define('UC_DBPW', '950808');
 define('UC_DBNAME', 'zijia');
 define('UC_DBCHARSET', 'utf8');
 define('UC_DBTABLEPRE', '`zijia`.pre_ucenter_');

+ 2 - 0
data/log/201804_cplog.php

xqd
@@ -1117,3 +1117,5 @@
 <?PHP exit;?>	1524881052	admin	1	210.41.97.136	group	GET={operation=level; }; POST={};
 <?PHP exit;?>	1524881054	admin	1	210.41.97.136	group	GET={operation=manage; }; POST={};
 <?PHP exit;?>	1524881081	admin	1	210.41.97.136	group	GET={operation=type; }; POST={};
+<?PHP exit;?>	1524988876	admin	1	127.0.0.1		GET={}; POST={};
+<?PHP exit;?>	1524988876	admin	1	127.0.0.1	index	GET={}; POST={};

+ 114 - 114
data/template/3_3_common_header_group_index.tpl.php

xqd
@@ -1,154 +1,154 @@
-<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); 
-0
-|| checktplrefresh('./template/wfdsoft_jiaohu/common/header.htm', './template/wfdsoft_jiaohu/common/header_common.htm', 1524249352, '3', './data/template/3_3_common_header_group_index.tpl.php', './template/wfdsoft_jiaohu', 'common/header_group_index')
-;?>
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied');
+0
+|| checktplrefresh('./template/wfdsoft_jiaohu/common/header.htm', './template/wfdsoft_jiaohu/common/header_common.htm', 1524249352, '3', './data/template/3_3_common_header_group_index.tpl.php', './template/wfdsoft_jiaohu', 'common/header_group_index')
+;?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>" />
-<?php if($_G['config']['output']['iecompatible']) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE<?php echo $_G['config']['output']['iecompatible'];?>" /><?php } ?>
-<title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?><?php } ?></title>
-<?php echo $_G['setting']['seohead'];?>
+    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>" />
+    <?php if($_G['config']['output']['iecompatible']) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE<?php echo $_G['config']['output']['iecompatible'];?>" /><?php } ?>
+    <title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?><?php } ?></title>
+    <?php echo $_G['setting']['seohead'];?>
 
-<meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
-<meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
-<meta name="generator" content="思维定制! <?php echo $_G['setting']['version'];?>" />
-<meta name="author" content="思维定制! Think Different Team" />
-<meta name="copyright" content="2001-2020 Think Different Inc." />
-<meta name="MSSmartTagsPreventParsing" content="True" />
-<meta http-equiv="MSThemeCompatible" content="Yes" />
+    <meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
+    <meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
+    <meta name="generator" content="思维定制! <?php echo $_G['setting']['version'];?>" />
+    <meta name="author" content="思维定制! Think Different Team" />
+    <meta name="copyright" content="2001-2020 Think Different Inc." />
+    <meta name="MSSmartTagsPreventParsing" content="True" />
+    <meta http-equiv="MSThemeCompatible" content="Yes" />
     <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
-<base href="<?php echo $_G['siteurl'];?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_common.css?<?php echo VERHASH;?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_group_index.css?<?php echo VERHASH;?>" /><?php if($_G['uid'] && isset($_G['cookie']['extstyle']) && strpos($_G['cookie']['extstyle'], TPLDIR) !== false) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['cookie']['extstyle'];?>/style.css" /><?php } elseif($_G['style']['defaultextstyle']) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['style']['defaultextstyle'];?>/style.css" /><?php } ?><script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>', CSSPATH = '<?php echo $_G['setting']['csspath'];?>', DYNAMICURL = '<?php echo $_G['dynamicurl'];?>';</script>
-<script src="<?php echo $_G['setting']['jspath'];?>common.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<script src="/<?php echo $_G['style']['styleimgdir'];?>/js/jquery-1.7.2.js" type="text/javascript"></script>
+    <base href="<?php echo $_G['siteurl'];?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_common.css?<?php echo VERHASH;?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_group_index.css?<?php echo VERHASH;?>" /><?php if($_G['uid'] && isset($_G['cookie']['extstyle']) && strpos($_G['cookie']['extstyle'], TPLDIR) !== false) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['cookie']['extstyle'];?>/style.css" /><?php } elseif($_G['style']['defaultextstyle']) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['style']['defaultextstyle'];?>/style.css" /><?php } ?><script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>', CSSPATH = '<?php echo $_G['setting']['csspath'];?>', DYNAMICURL = '<?php echo $_G['dynamicurl'];?>';</script>
+    <script src="<?php echo $_G['setting']['jspath'];?>common.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <script src="/<?php echo $_G['style']['styleimgdir'];?>/js/jquery-1.7.2.js" type="text/javascript"></script>
     <script src="/<?php echo $_G['style']['styleimgdir'];?>/js/pace.js" type="text/javascript"></script>
     <?php require("./template/wfdsoft_jiaohu/week_config.php");?><?php require("./template/wfdsoft_$week/language/$wk_language");?><?php if(empty($_GET['diy'])) { $_GET['diy'] = '';?><?php } if(!isset($topic)) { $topic = array();?><?php } ?>
-<link href="/<?php echo $_G['style']['styleimgdir'];?>/style.css" rel="stylesheet" type="text/css" />
-<meta name="application-name" content="<?php echo $_G['setting']['bbname'];?>" />
-<meta name="msapplication-tooltip" content="<?php echo $_G['setting']['bbname'];?>" />
-<?php if($_G['setting']['portalstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['1']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G['siteurl'].'portal.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/portal.ico" /><?php } ?>
-<meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['2']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G['siteurl'].'forum.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/bbs.ico" />
-<?php if($_G['setting']['groupstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['3']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G['siteurl'].'group.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/group.ico" /><?php } if(helper_access::check_module('feed')) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['4']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G['siteurl'].'home.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/home.ico" /><?php } if($_G['basescript'] == 'forum' && $_G['setting']['archiver']) { ?>
-<link rel="archives" title="<?php echo $_G['setting']['bbname'];?>" href="<?php echo $_G['siteurl'];?>archiver/" />
-<?php } if(!empty($rsshead)) { ?><?php echo $rsshead;?><?php } if(widthauto()) { ?>
-<link rel="stylesheet" id="css_widthauto" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_widthauto?<?php echo VERHASH;?>' />
-<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
-<?php } if($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>forum.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } elseif($_G['basescript'] == 'home' || $_G['basescript'] == 'userapp') { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } if($_G['basescript'] != 'portal' || $_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
-<link rel="stylesheet" type="text/css" id="diy_common" href="<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_css_diy.css?<?php echo VERHASH;?>" />
-<?php } ?>
+    <link href="/<?php echo $_G['style']['styleimgdir'];?>/style.css" rel="stylesheet" type="text/css" />
+    <meta name="application-name" content="<?php echo $_G['setting']['bbname'];?>" />
+    <meta name="msapplication-tooltip" content="<?php echo $_G['setting']['bbname'];?>" />
+    <?php if($_G['setting']['portalstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['1']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G['siteurl'].'portal.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/portal.ico" /><?php } ?>
+    <meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['2']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G['siteurl'].'forum.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/bbs.ico" />
+    <?php if($_G['setting']['groupstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['3']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G['siteurl'].'group.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/group.ico" /><?php } if(helper_access::check_module('feed')) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['4']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G['siteurl'].'home.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/home.ico" /><?php } if($_G['basescript'] == 'forum' && $_G['setting']['archiver']) { ?>
+        <link rel="archives" title="<?php echo $_G['setting']['bbname'];?>" href="<?php echo $_G['siteurl'];?>archiver/" />
+    <?php } if(!empty($rsshead)) { ?><?php echo $rsshead;?><?php } if(widthauto()) { ?>
+        <link rel="stylesheet" id="css_widthauto" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_widthauto?<?php echo VERHASH;?>' />
+        <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
+    <?php } if($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>forum.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } elseif($_G['basescript'] == 'home' || $_G['basescript'] == 'userapp') { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } if($_G['basescript'] != 'portal' || $_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+        <link rel="stylesheet" type="text/css" id="diy_common" href="<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_css_diy.css?<?php echo VERHASH;?>" />
+    <?php } ?>
 </head>
 
 <body id="nv_<?php echo $_G['basescript'];?>" class="pg_<?php echo CURMODULE;?><?php if($_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)) { ?> <?php echo $cat['bodycss'];?><?php } ?>" onkeydown="if(event.keyCode==27) return false;" >
 <div id="append_parent"></div><div id="ajaxwaitid"></div>
 <?php if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { include template('common/header_diy'); } if(check_diy_perm($topic)) { include template('common/header_diynav'); } if(CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)) { ?>
-<?php echo $diynav;?>
+    <?php echo $diynav;?>
 <?php } if(empty($topic) || $topic['useheader']) { if($_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')) { ?>
-<div class="xi1 bm bm_c">
-    请选择 <a href="<?php echo $_G['siteurl'];?>forum.php?mobile=yes">进入手机版</a> <span class="xg1">|</span> <a href="<?php echo $_G['setting']['mobile']['nomobileurl'];?>">继续访问电脑版</a>
-</div>
+    <div class="xi1 bm bm_c">
+        请选择 <a href="<?php echo $_G['siteurl'];?>forum.php?mobile=yes">进入手机版</a> <span class="xg1">|</span> <a href="<?php echo $_G['setting']['mobile']['nomobileurl'];?>">继续访问电脑版</a>
+    </div>
 <?php } if($_G['setting']['shortcut'] && $_G['member']['credits'] >= $_G['setting']['shortcut']) { ?>
-<div id="shortcut">
-<span><a href="javascript:;" id="shortcutcloseid" title="关闭">关闭</a></span>
-您经常访问 <?php echo $_G['setting']['bbname'];?>,试试添加到桌面,访问更方便!
-<a href="javascript:;" id="shortcuttip">添加 <?php echo $_G['setting']['bbname'];?> 到桌面</a>
+    <div id="shortcut">
+        <span><a href="javascript:;" id="shortcutcloseid" title="关闭">关闭</a></span>
+        您经常访问 <?php echo $_G['setting']['bbname'];?>,试试添加到桌面,访问更方便!
+        <a href="javascript:;" id="shortcuttip">添加 <?php echo $_G['setting']['bbname'];?> 到桌面</a>
 
-</div>
-<script type="text/javascript">setTimeout(setShortcut, 2000);</script>
+    </div>
+    <script type="text/javascript">setTimeout(setShortcut, 2000);</script>
 <?php } ?>
-<div id="toptb" class="cl" style="display:none;">
-<?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_top'])) echo $_G['setting']['pluginhooks']['global_cpnav_top'];?>
-</div>
+    <div id="toptb" class="cl" style="display:none;">
+        <?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_top'])) echo $_G['setting']['pluginhooks']['global_cpnav_top'];?>
+    </div>
 <?php if(!IS_ROBOT) { if($_G['uid']) { ?>
-<ul id="myprompt_menu" class="p_pop mt23" style="display: none;">				
-<li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news<?php if(empty($_G['member']['newpm'])) { ?>_0<?php } ?>"></em>消息</a></li>
-<li><a href="home.php?mod=follow&amp;do=follower"><em class="prompt_follower<?php if(empty($_G['member']['newprompt_num']['follower'])) { ?>_0<?php } ?>"></em>新听众<?php if($_G['member']['newprompt_num']['follower']) { ?>(<?php echo $_G['member']['newprompt_num']['follower'];?>)<?php } ?></a></li>
-<?php if($_G['member']['newprompt'] && $_G['member']['newprompt_num']['follow']) { ?>
-<li><a href="home.php?mod=follow"><em class="prompt_concern"></em>我关注的(<?php echo $_G['member']['newprompt_num']['follow'];?>)</a></li>
-<?php } if($_G['member']['newprompt']) { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { ?><li><a href="home.php?mod=space&amp;do=notice&amp;view=<?php echo $key;?>"><em class="notice_<?php echo $key;?>"></em><?php echo lang('template', 'notice_'.$key); ?>(<span class="rq"><?php echo $val;?></span>)</a></li>
-<?php } } if(empty($_G['cookie']['ignore_notice'])) { ?>
-<li class="ignore_noticeli"><a href="javascript:;" onClick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="暂不提醒"><em class="ignore_notice"></em></a></li>
-<?php } ?>
-</ul>
+    <ul id="myprompt_menu" class="p_pop mt23" style="display: none;">
+        <li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news<?php if(empty($_G['member']['newpm'])) { ?>_0<?php } ?>"></em>消息</a></li>
+        <li><a href="home.php?mod=follow&amp;do=follower"><em class="prompt_follower<?php if(empty($_G['member']['newprompt_num']['follower'])) { ?>_0<?php } ?>"></em>新听众<?php if($_G['member']['newprompt_num']['follower']) { ?>(<?php echo $_G['member']['newprompt_num']['follower'];?>)<?php } ?></a></li>
+        <?php if($_G['member']['newprompt'] && $_G['member']['newprompt_num']['follow']) { ?>
+            <li><a href="home.php?mod=follow"><em class="prompt_concern"></em>我关注的(<?php echo $_G['member']['newprompt_num']['follow'];?>)</a></li>
+        <?php } if($_G['member']['newprompt']) { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { ?><li><a href="home.php?mod=space&amp;do=notice&amp;view=<?php echo $key;?>"><em class="notice_<?php echo $key;?>"></em><?php echo lang('template', 'notice_'.$key); ?>(<span class="rq"><?php echo $val;?></span>)</a></li>
+        <?php } } if(empty($_G['cookie']['ignore_notice'])) { ?>
+            <li class="ignore_noticeli"><a href="javascript:;" onClick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="暂不提醒"><em class="ignore_notice"></em></a></li>
+        <?php } ?>
+    </ul>
 <?php } if($_G['uid'] && !empty($_G['style']['extstyle'])) { ?>
-<div id="sslct_menu" class="cl p_pop" style="display: none;">
-<?php if(!$_G['style']['defaultextstyle']) { ?><span class="sslct_btn" onClick="extstyle('')" title="默认"><i></i></span><?php } if(is_array($_G['style']['extstyle'])) foreach($_G['style']['extstyle'] as $extstyle) { ?><span class="sslct_btn" onClick="extstyle('<?php echo $extstyle['0'];?>')" title="<?php echo $extstyle['1'];?>"><i style='background:<?php echo $extstyle['2'];?>'></i></span>
-<?php } ?>
-</div>
+    <div id="sslct_menu" class="cl p_pop" style="display: none;">
+        <?php if(!$_G['style']['defaultextstyle']) { ?><span class="sslct_btn" onClick="extstyle('')" title="默认"><i></i></span><?php } if(is_array($_G['style']['extstyle'])) foreach($_G['style']['extstyle'] as $extstyle) { ?><span class="sslct_btn" onClick="extstyle('<?php echo $extstyle['0'];?>')" title="<?php echo $extstyle['1'];?>"><i style='background:<?php echo $extstyle['2'];?>'></i></span>
+        <?php } ?>
+    </div>
 <?php } } ?><?php echo adshow("headerbanner/wp a_h");?><div id="hd" style="background:#FFF; height:60px; border-bottom:1px solid #E6E6E6; "><div class="clear"></div>
-            <div id="week_nav">
-                <div class="wk_navwp">
-                    <div class="wk_lonav">
-                        <div class="wk_logo">
-                            <?php $mnid = getcurrentnav();?>                            <h2><?php if(!isset($_G['setting']['navlogos'][$mnid])) { ?><a href="<?php if($_G['setting']['domain']['app']['default']) { ?>http://<?php echo $_G['setting']['domain']['app']['default'];?>/<?php } else { ?>./<?php } ?>" title="<?php echo $_G['setting']['bbname'];?>"><?php echo $_G['style']['boardlogo'];?></a><?php } else { ?><?php echo $_G['setting']['navlogos'][$mnid];?><?php } ?></h2>
-                        </div>
-                        <div class="wk_inav">
-                            <ul class="nav">
-                                <?php if(is_array($_G['setting']['navs'])) foreach($_G['setting']['navs'] as $nav) { ?>                                    <?php if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><li <?php if($mnid == $nav['navid']) { ?>class="a" <?php } ?><?php echo $nav['nav'];?>></li><?php } ?>
-                                <?php } ?>
-                            </ul>
-                            <?php if(!empty($_G['setting']['pluginhooks']['global_nav_extra'])) echo $_G['setting']['pluginhooks']['global_nav_extra'];?>
-                       	</div>
+        <div id="week_nav">
+            <div class="wk_navwp">
+                <div class="wk_lonav">
+                    <div class="wk_logo">
+                        <?php $mnid = getcurrentnav();?>                            <h2><?php if(!isset($_G['setting']['navlogos'][$mnid])) { ?><a href="<?php if($_G['setting']['domain']['app']['default']) { ?>http://<?php echo $_G['setting']['domain']['app']['default'];?>/<?php } else { ?>./<?php } ?>" title="<?php echo $_G['setting']['bbname'];?>"><?php echo $_G['style']['boardlogo'];?></a><?php } else { ?><?php echo $_G['setting']['navlogos'][$mnid];?><?php } ?></h2>
+                    </div>
+                    <div class="wk_inav">
+                        <ul class="nav">
+                            <?php if(is_array($_G['setting']['navs'])) foreach($_G['setting']['navs'] as $nav) { ?>                                    <?php if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><li <?php if($mnid == $nav['navid']) { ?>class="a" <?php } ?><?php echo $nav['nav'];?>></li><?php } ?>
+                            <?php } ?>
+                        </ul>
+                        <?php if(!empty($_G['setting']['pluginhooks']['global_nav_extra'])) echo $_G['setting']['pluginhooks']['global_nav_extra'];?>
                     </div>
-                    <div class="wk_idl">
-                        <div class="week-header-log">
-                             <ul class="week-log">
-                                  <li class="log-dd-trigger" style="display:block;">
-                                    <a>
+                </div>
+                <div class="wk_idl">
+                    <div class="week-header-log">
+                        <ul class="week-log">
+                            <li class="log-dd-trigger" style="display:block;">
+                                <a>
                                     	<span class="user_avatar">
                                     <?php echo avatar($_G[uid],small);?>                                    	</span>
-                                        <img class="week-arrow" src="<?php echo $_G['style']['styleimgdir'];?>/log-arrow.png" width="10" height="6" >
-                                    </a>
-                                    <div class="u-box" style="display:none;"></div>
-                                    <?php include template('common/header_userstatus'); ?>                                </li>
-                            </ul>
-                        </div>
+                                    <img class="week-arrow" src="<?php echo $_G['style']['styleimgdir'];?>/log-arrow.png" width="10" height="6" >
+                                </a>
+                                <div class="u-box" style="display:none;"></div>
+                                <?php include template('common/header_userstatus'); ?>                                </li>
+                        </ul>
                     </div>
-                    
                 </div>
+
             </div>
         </div>
-        
-        <script type="text/javascript">
-window.jQuery && !window.handleHeaderProduct && (window.handleHeaderProduct = function() {
-FOM(".log-dd-trigger").hover(function() {
-FOM(".u-box").show(), FOM(".log-dropdown").show()
-}, function() {
-FOM(".u-box").hide(), FOM(".log-dropdown").hide()
-});
-}());
-        </script>
+    </div>
 
-        <?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
-            <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
-            <?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?>                 <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
-                 <li><?php echo $module['url'];?></li>
-                 <?php } ?>
-            <?php } ?>
-            </ul>
+    <script type="text/javascript">
+        window.jQuery && !window.handleHeaderProduct && (window.handleHeaderProduct = function() {
+            FOM(".log-dd-trigger").hover(function() {
+                FOM(".u-box").show(), FOM(".log-dropdown").show()
+            }, function() {
+                FOM(".u-box").hide(), FOM(".log-dropdown").hide()
+            });
+        }());
+    </script>
+
+<?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
+    <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
+        <?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?>                 <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
+            <li><?php echo $module['url'];?></li>
+        <?php } ?>
         <?php } ?>
+    </ul>
+<?php } ?>
 
-        <div class="sub_nav"> <?php echo $_G['setting']['menunavs'];?> </div>
-        <div id="mu" class="cl">
-            <div class="wp">
+    <div class="sub_nav"> <?php echo $_G['setting']['menunavs'];?> </div>
+    <div id="mu" class="cl">
+        <div class="wp">
             <?php if($_G['setting']['subnavs']) { ?>
                 <?php if(is_array($_G['setting']['subnavs'])) foreach($_G['setting']['subnavs'] as $navid => $subnav) { ?>                    <?php if($_G['setting']['navsubhover'] || $mnid == $navid) { ?>
                     <style>#mu {width:100%; overflow:hidden; background:#F2F2F2; display:block; }</style>
                     <ul class="cl <?php if($mnid == $navid) { ?>current<?php } ?>" id="snav_<?php echo $navid;?>" style="display:<?php if($mnid != $navid) { ?>none<?php } ?>">
-                    <?php echo $subnav;?>
+                        <?php echo $subnav;?>
                     </ul>
-                    <?php } ?>
+                <?php } ?>
                 <?php } ?>
             <?php } ?>
-            </div>
         </div>
-        <?php echo adshow("subnavbanner/a_mu");?>    <?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?>
+    </div>
+    <?php echo adshow("subnavbanner/a_mu");?>    <?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?>
 <?php } ?>
-    <?php if($wk_nav) { ?><script src="<?php echo $_G['style']['styleimgdir'];?>/js/week_nav.js" type="text/javascript"></script><?php } ?> 
+<?php if($wk_nav) { ?><script src="<?php echo $_G['style']['styleimgdir'];?>/js/week_nav.js" type="text/javascript"></script><?php } ?>
 
 <div id="wp" class="wp">

+ 86 - 91
data/template/3_3_common_header_no_nav.tpl.php

xqd
@@ -1,127 +1,122 @@
-<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); 
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied');
 0
 || checktplrefresh('./template/wfdsoft_jiaohu/common/header.htm', './template/wfdsoft_jiaohu/common/header_common.htm', 1524249352, '3', './data/template/3_3_common_header_group_index.tpl.php', './template/wfdsoft_jiaohu', 'common/header_group_index')
 ;?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>" />
-<?php if($_G['config']['output']['iecompatible']) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE<?php echo $_G['config']['output']['iecompatible'];?>" /><?php } ?>
-<title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?><?php } ?></title>
-<?php echo $_G['setting']['seohead'];?>
+    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>" />
+    <?php if($_G['config']['output']['iecompatible']) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE<?php echo $_G['config']['output']['iecompatible'];?>" /><?php } ?>
+    <title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?><?php } ?></title>
+    <?php echo $_G['setting']['seohead'];?>
 
-<meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
-<meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
-<meta name="generator" content="思维定制! <?php echo $_G['setting']['version'];?>" />
-<meta name="author" content="思维定制! Think Different Team" />
-<meta name="copyright" content="2001-2020 Think Different Inc." />
-<meta name="MSSmartTagsPreventParsing" content="True" />
-<meta http-equiv="MSThemeCompatible" content="Yes" />
+    <meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
+    <meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
+    <meta name="generator" content="思维定制! <?php echo $_G['setting']['version'];?>" />
+    <meta name="author" content="思维定制! Think Different Team" />
+    <meta name="copyright" content="2001-2020 Think Different Inc." />
+    <meta name="MSSmartTagsPreventParsing" content="True" />
+    <meta http-equiv="MSThemeCompatible" content="Yes" />
     <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
-<base href="<?php echo $_G['siteurl'];?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_common.css?<?php echo VERHASH;?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_group_index.css?<?php echo VERHASH;?>" /><?php if($_G['uid'] && isset($_G['cookie']['extstyle']) && strpos($_G['cookie']['extstyle'], TPLDIR) !== false) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['cookie']['extstyle'];?>/style.css" /><?php } elseif($_G['style']['defaultextstyle']) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['style']['defaultextstyle'];?>/style.css" /><?php } ?><script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>', CSSPATH = '<?php echo $_G['setting']['csspath'];?>', DYNAMICURL = '<?php echo $_G['dynamicurl'];?>';</script>
-<script src="<?php echo $_G['setting']['jspath'];?>common.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<script src="/<?php echo $_G['style']['styleimgdir'];?>/js/jquery-1.7.2.js" type="text/javascript"></script>
+    <base href="<?php echo $_G['siteurl'];?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_common.css?<?php echo VERHASH;?>" /><link rel="stylesheet" type="text/css" href="data/cache/style_3_group_index.css?<?php echo VERHASH;?>" /><?php if($_G['uid'] && isset($_G['cookie']['extstyle']) && strpos($_G['cookie']['extstyle'], TPLDIR) !== false) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['cookie']['extstyle'];?>/style.css" /><?php } elseif($_G['style']['defaultextstyle']) { ?><link rel="stylesheet" id="css_extstyle" type="text/css" href="<?php echo $_G['style']['defaultextstyle'];?>/style.css" /><?php } ?><script type="text/javascript">var STYLEID = '<?php echo STYLEID;?>', STATICURL = '<?php echo STATICURL;?>', IMGDIR = '<?php echo IMGDIR;?>', VERHASH = '<?php echo VERHASH;?>', charset = '<?php echo CHARSET;?>', discuz_uid = '<?php echo $_G['uid'];?>', cookiepre = '<?php echo $_G['config']['cookie']['cookiepre'];?>', cookiedomain = '<?php echo $_G['config']['cookie']['cookiedomain'];?>', cookiepath = '<?php echo $_G['config']['cookie']['cookiepath'];?>', showusercard = '<?php echo $_G['setting']['showusercard'];?>', attackevasive = '<?php echo $_G['config']['security']['attackevasive'];?>', disallowfloat = '<?php echo $_G['setting']['disallowfloat'];?>', creditnotice = '<?php if($_G['setting']['creditnotice']) { ?><?php echo $_G['setting']['creditnames'];?><?php } ?>', defaultstyle = '<?php echo $_G['style']['defaultextstyle'];?>', REPORTURL = '<?php echo $_G['currenturl_encode'];?>', SITEURL = '<?php echo $_G['siteurl'];?>', JSPATH = '<?php echo $_G['setting']['jspath'];?>', CSSPATH = '<?php echo $_G['setting']['csspath'];?>', DYNAMICURL = '<?php echo $_G['dynamicurl'];?>';</script>
+    <script src="<?php echo $_G['setting']['jspath'];?>common.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <script src="/<?php echo $_G['style']['styleimgdir'];?>/js/jquery-1.7.2.js" type="text/javascript"></script>
     <script src="/<?php echo $_G['style']['styleimgdir'];?>/js/pace.js" type="text/javascript"></script>
     <?php require("./template/wfdsoft_jiaohu/week_config.php");?><?php require("./template/wfdsoft_$week/language/$wk_language");?><?php if(empty($_GET['diy'])) { $_GET['diy'] = '';?><?php } if(!isset($topic)) { $topic = array();?><?php } ?>
-<link href="/<?php echo $_G['style']['styleimgdir'];?>/style.css" rel="stylesheet" type="text/css" />
-<meta name="application-name" content="<?php echo $_G['setting']['bbname'];?>" />
-<meta name="msapplication-tooltip" content="<?php echo $_G['setting']['bbname'];?>" />
-<?php if($_G['setting']['portalstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['1']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G['siteurl'].'portal.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/portal.ico" /><?php } ?>
-<meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['2']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G['siteurl'].'forum.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/bbs.ico" />
-<?php if($_G['setting']['groupstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['3']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G['siteurl'].'group.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/group.ico" /><?php } if(helper_access::check_module('feed')) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['4']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G['siteurl'].'home.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/home.ico" /><?php } if($_G['basescript'] == 'forum' && $_G['setting']['archiver']) { ?>
-<link rel="archives" title="<?php echo $_G['setting']['bbname'];?>" href="<?php echo $_G['siteurl'];?>archiver/" />
-<?php } if(!empty($rsshead)) { ?><?php echo $rsshead;?><?php } if(widthauto()) { ?>
-<link rel="stylesheet" id="css_widthauto" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_widthauto?<?php echo VERHASH;?>' />
-<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
-<?php } if($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>forum.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } elseif($_G['basescript'] == 'home' || $_G['basescript'] == 'userapp') { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } if($_G['basescript'] != 'portal' || $_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
-<link rel="stylesheet" type="text/css" id="diy_common" href="<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_css_diy.css?<?php echo VERHASH;?>" />
-<?php } ?>
-
-    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick.css"/>
-    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick-theme.css"/>
-    <script type="text/javascript" src="data/cache/jquery-3.3.1.min.js"></script>
-    <script type="text/javascript" src="data/cache/slick/slick.min.js"></script>
+    <link href="/<?php echo $_G['style']['styleimgdir'];?>/style.css" rel="stylesheet" type="text/css" />
+    <meta name="application-name" content="<?php echo $_G['setting']['bbname'];?>" />
+    <meta name="msapplication-tooltip" content="<?php echo $_G['setting']['bbname'];?>" />
+    <?php if($_G['setting']['portalstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['1']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G['siteurl'].'portal.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/portal.ico" /><?php } ?>
+    <meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['2']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G['siteurl'].'forum.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/bbs.ico" />
+    <?php if($_G['setting']['groupstatus']) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['3']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G['siteurl'].'group.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/group.ico" /><?php } if(helper_access::check_module('feed')) { ?><meta name="msapplication-task" content="name=<?php echo $_G['setting']['navs']['4']['navname'];?>;action-uri=<?php echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G['siteurl'].'home.php'; ?>;icon-uri=<?php echo $_G['siteurl'];?><?php echo IMGDIR;?>/home.ico" /><?php } if($_G['basescript'] == 'forum' && $_G['setting']['archiver']) { ?>
+        <link rel="archives" title="<?php echo $_G['setting']['bbname'];?>" href="<?php echo $_G['siteurl'];?>archiver/" />
+    <?php } if(!empty($rsshead)) { ?><?php echo $rsshead;?><?php } if(widthauto()) { ?>
+        <link rel="stylesheet" id="css_widthauto" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_widthauto?<?php echo VERHASH;?>' />
+        <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
+    <?php } if($_G['basescript'] == 'forum' || $_G['basescript'] == 'group') { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>forum.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } elseif($_G['basescript'] == 'home' || $_G['basescript'] == 'userapp') { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } if($_G['basescript'] != 'portal' || $_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+        <script src="<?php echo $_G['setting']['jspath'];?>portal.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <?php } if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { ?>
+        <link rel="stylesheet" type="text/css" id="diy_common" href="<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_css_diy.css?<?php echo VERHASH;?>" />
+    <?php } ?>
 </head>
 
 <body id="nv_<?php echo $_G['basescript'];?>" class="pg_<?php echo CURMODULE;?><?php if($_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)) { ?> <?php echo $cat['bodycss'];?><?php } ?>" onkeydown="if(event.keyCode==27) return false;" >
 <div id="append_parent"></div><div id="ajaxwaitid"></div>
 <?php if($_GET['diy'] == 'yes' && check_diy_perm($topic)) { include template('common/header_diy'); } if(check_diy_perm($topic)) { include template('common/header_diynav'); } if(CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)) { ?>
-<?php echo $diynav;?>
+    <?php echo $diynav;?>
 <?php } if(empty($topic) || $topic['useheader']) { if($_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')) { ?>
-<div class="xi1 bm bm_c">
-    请选择 <a href="<?php echo $_G['siteurl'];?>forum.php?mobile=yes">进入手机版</a> <span class="xg1">|</span> <a href="<?php echo $_G['setting']['mobile']['nomobileurl'];?>">继续访问电脑版</a>
-</div>
+    <div class="xi1 bm bm_c">
+        请选择 <a href="<?php echo $_G['siteurl'];?>forum.php?mobile=yes">进入手机版</a> <span class="xg1">|</span> <a href="<?php echo $_G['setting']['mobile']['nomobileurl'];?>">继续访问电脑版</a>
+    </div>
 <?php } if($_G['setting']['shortcut'] && $_G['member']['credits'] >= $_G['setting']['shortcut']) { ?>
-<div id="shortcut">
-<span><a href="javascript:;" id="shortcutcloseid" title="关闭">关闭</a></span>
-您经常访问 <?php echo $_G['setting']['bbname'];?>,试试添加到桌面,访问更方便!
-<a href="javascript:;" id="shortcuttip">添加 <?php echo $_G['setting']['bbname'];?> 到桌面</a>
+    <div id="shortcut">
+        <span><a href="javascript:;" id="shortcutcloseid" title="关闭">关闭</a></span>
+        您经常访问 <?php echo $_G['setting']['bbname'];?>,试试添加到桌面,访问更方便!
+        <a href="javascript:;" id="shortcuttip">添加 <?php echo $_G['setting']['bbname'];?> 到桌面</a>
 
-</div>
-<script type="text/javascript">setTimeout(setShortcut, 2000);</script>
+    </div>
+    <script type="text/javascript">setTimeout(setShortcut, 2000);</script>
 <?php } ?>
-<div id="toptb" class="cl" style="display:none;">
-<?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_top'])) echo $_G['setting']['pluginhooks']['global_cpnav_top'];?>
-</div>
+    <div id="toptb" class="cl" style="display:none;">
+        <?php if(!empty($_G['setting']['pluginhooks']['global_cpnav_top'])) echo $_G['setting']['pluginhooks']['global_cpnav_top'];?>
+    </div>
 <?php if(!IS_ROBOT) { if($_G['uid']) { ?>
-<ul id="myprompt_menu" class="p_pop mt23" style="display: none;">				
-<li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news<?php if(empty($_G['member']['newpm'])) { ?>_0<?php } ?>"></em>消息</a></li>
-<li><a href="home.php?mod=follow&amp;do=follower"><em class="prompt_follower<?php if(empty($_G['member']['newprompt_num']['follower'])) { ?>_0<?php } ?>"></em>新听众<?php if($_G['member']['newprompt_num']['follower']) { ?>(<?php echo $_G['member']['newprompt_num']['follower'];?>)<?php } ?></a></li>
-<?php if($_G['member']['newprompt'] && $_G['member']['newprompt_num']['follow']) { ?>
-<li><a href="home.php?mod=follow"><em class="prompt_concern"></em>我关注的(<?php echo $_G['member']['newprompt_num']['follow'];?>)</a></li>
-<?php } if($_G['member']['newprompt']) { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { ?><li><a href="home.php?mod=space&amp;do=notice&amp;view=<?php echo $key;?>"><em class="notice_<?php echo $key;?>"></em><?php echo lang('template', 'notice_'.$key); ?>(<span class="rq"><?php echo $val;?></span>)</a></li>
-<?php } } if(empty($_G['cookie']['ignore_notice'])) { ?>
-<li class="ignore_noticeli"><a href="javascript:;" onClick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="暂不提醒"><em class="ignore_notice"></em></a></li>
-<?php } ?>
-</ul>
+    <ul id="myprompt_menu" class="p_pop mt23" style="display: none;">
+        <li><a href="home.php?mod=space&amp;do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news<?php if(empty($_G['member']['newpm'])) { ?>_0<?php } ?>"></em>消息</a></li>
+        <li><a href="home.php?mod=follow&amp;do=follower"><em class="prompt_follower<?php if(empty($_G['member']['newprompt_num']['follower'])) { ?>_0<?php } ?>"></em>新听众<?php if($_G['member']['newprompt_num']['follower']) { ?>(<?php echo $_G['member']['newprompt_num']['follower'];?>)<?php } ?></a></li>
+        <?php if($_G['member']['newprompt'] && $_G['member']['newprompt_num']['follow']) { ?>
+            <li><a href="home.php?mod=follow"><em class="prompt_concern"></em>我关注的(<?php echo $_G['member']['newprompt_num']['follow'];?>)</a></li>
+        <?php } if($_G['member']['newprompt']) { if(is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { ?><li><a href="home.php?mod=space&amp;do=notice&amp;view=<?php echo $key;?>"><em class="notice_<?php echo $key;?>"></em><?php echo lang('template', 'notice_'.$key); ?>(<span class="rq"><?php echo $val;?></span>)</a></li>
+        <?php } } if(empty($_G['cookie']['ignore_notice'])) { ?>
+            <li class="ignore_noticeli"><a href="javascript:;" onClick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="暂不提醒"><em class="ignore_notice"></em></a></li>
+        <?php } ?>
+    </ul>
 <?php } if($_G['uid'] && !empty($_G['style']['extstyle'])) { ?>
-<div id="sslct_menu" class="cl p_pop" style="display: none;">
-<?php if(!$_G['style']['defaultextstyle']) { ?><span class="sslct_btn" onClick="extstyle('')" title="默认"><i></i></span><?php } if(is_array($_G['style']['extstyle'])) foreach($_G['style']['extstyle'] as $extstyle) { ?><span class="sslct_btn" onClick="extstyle('<?php echo $extstyle['0'];?>')" title="<?php echo $extstyle['1'];?>"><i style='background:<?php echo $extstyle['2'];?>'></i></span>
-<?php } ?>
-</div>
+    <div id="sslct_menu" class="cl p_pop" style="display: none;">
+        <?php if(!$_G['style']['defaultextstyle']) { ?><span class="sslct_btn" onClick="extstyle('')" title="默认"><i></i></span><?php } if(is_array($_G['style']['extstyle'])) foreach($_G['style']['extstyle'] as $extstyle) { ?><span class="sslct_btn" onClick="extstyle('<?php echo $extstyle['0'];?>')" title="<?php echo $extstyle['1'];?>"><i style='background:<?php echo $extstyle['2'];?>'></i></span>
+        <?php } ?>
+    </div>
 <?php } } ?><?php echo adshow("headerbanner/wp a_h");?>
-        
-        <script type="text/javascript">
-window.jQuery && !window.handleHeaderProduct && (window.handleHeaderProduct = function() {
-FOM(".log-dd-trigger").hover(function() {
-FOM(".u-box").show(), FOM(".log-dropdown").show()
-}, function() {
-FOM(".u-box").hide(), FOM(".log-dropdown").hide()
-});
-}());
-        </script>
 
-        <?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
-            <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
-            <?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?>                 <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
-                 <li><?php echo $module['url'];?></li>
-                 <?php } ?>
-            <?php } ?>
-            </ul>
+    <script type="text/javascript">
+        window.jQuery && !window.handleHeaderProduct && (window.handleHeaderProduct = function() {
+            FOM(".log-dd-trigger").hover(function() {
+                FOM(".u-box").show(), FOM(".log-dropdown").show()
+            }, function() {
+                FOM(".u-box").hide(), FOM(".log-dropdown").hide()
+            });
+        }());
+    </script>
+
+<?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
+    <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
+        <?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?>                 <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
+            <li><?php echo $module['url'];?></li>
+        <?php } ?>
         <?php } ?>
+    </ul>
+<?php } ?>
 
-        <div class="sub_nav"> <?php echo $_G['setting']['menunavs'];?> </div>
-        <div id="mu" class="cl">
-            <div class="wp">
+    <div class="sub_nav"> <?php echo $_G['setting']['menunavs'];?> </div>
+    <div id="mu" class="cl">
+        <div class="wp">
             <?php if($_G['setting']['subnavs']) { ?>
                 <?php if(is_array($_G['setting']['subnavs'])) foreach($_G['setting']['subnavs'] as $navid => $subnav) { ?>                    <?php if($_G['setting']['navsubhover'] || $mnid == $navid) { ?>
                     <style>#mu {width:100%; overflow:hidden; background:#F2F2F2; display:block; }</style>
                     <ul class="cl <?php if($mnid == $navid) { ?>current<?php } ?>" id="snav_<?php echo $navid;?>" style="display:<?php if($mnid != $navid) { ?>none<?php } ?>">
-                    <?php echo $subnav;?>
+                        <?php echo $subnav;?>
                     </ul>
-                    <?php } ?>
+                <?php } ?>
                 <?php } ?>
             <?php } ?>
-            </div>
         </div>
-        <?php echo adshow("subnavbanner/a_mu");?>    <?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?>
+    </div>
+    <?php echo adshow("subnavbanner/a_mu");?>    <?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?>
 <?php } ?>
-    <?php if($wk_nav) { ?><script src="<?php echo $_G['style']['styleimgdir'];?>/js/week_nav.js" type="text/javascript"></script><?php } ?>
+<?php if($wk_nav) { ?><script src="<?php echo $_G['style']['styleimgdir'];?>/js/week_nav.js" type="text/javascript"></script><?php } ?>
 
 <div id="wp" class="wp">

+ 1214 - 1214
data/template/3_3_forum_post.tpl.php

xqd
@@ -1,1278 +1,1278 @@
-<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('post');
-0
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_extra.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_body.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_attribute.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/seccheck_post.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor_menu.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/editor_menu_forum.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/upload.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/seccheck.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
-|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('post');
+0
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_extra.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_body.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_editor_attribute.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/seccheck_post.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor_menu.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/editor_menu_forum.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/upload.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/editor.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/common/seccheck.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
+|| checktplrefresh('./template/default/forum/post.htm', './template/default/forum/post_attachlimit.htm', 1524717412, '3', './data/template/3_3_forum_post.tpl.php', './template/wfdsoft_jiaohu', 'forum/post')
 ;?><?php include template('common/header'); ?><script type="text/javascript">
-var allowpostattach = parseInt('<?php echo $_G['group']['allowpostattach'];?>');
-var allowpostimg = parseInt('<?php echo $allowpostimg;?>');
-var pid = parseInt('<?php echo $pid;?>');
-var tid = parseInt('<?php echo $_G['tid'];?>');
-var extensions = '<?php echo $_G['group']['attachextensions'];?>';
-var imgexts = '<?php echo $imgexts;?>';
-var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
-var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
-var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
-var seccodecheck = parseInt('<?php if($seccodecheck) { ?>1<?php } else { ?>0<?php } ?>');
-var secqaacheck = parseInt('<?php if($secqaacheck) { ?>1<?php } else { ?>0<?php } ?>');
-var typerequired = parseInt('<?php echo $_G['forum']['threadtypes']['required'];?>');
-var sortrequired = parseInt('<?php echo $_G['forum']['threadsorts']['required'];?>');
-var special = parseInt('<?php echo $special;?>');
-var isfirstpost = <?php if($isfirstpost) { ?>1<?php } else { ?>0<?php } ?>;
-var allowposttrade = parseInt('<?php echo $_G['group']['allowposttrade'];?>');
-var allowpostreward = parseInt('<?php echo $_G['group']['allowpostreward'];?>');
-var allowpostactivity = parseInt('<?php echo $_G['group']['allowpostactivity'];?>');
-var sortid = parseInt('<?php echo $sortid;?>');
-var special = parseInt('<?php echo $special;?>');
-var fid = <?php echo $_G['fid'];?>;
-var postaction = '<?php echo $_GET['action'];?>';
-var ispicstyleforum = <?php if($_G['forum']['picstyle']) { ?>1<?php } else { ?>0<?php } ?>;
+    var allowpostattach = parseInt('<?php echo $_G['group']['allowpostattach'];?>');
+    var allowpostimg = parseInt('<?php echo $allowpostimg;?>');
+    var pid = parseInt('<?php echo $pid;?>');
+    var tid = parseInt('<?php echo $_G['tid'];?>');
+    var extensions = '<?php echo $_G['group']['attachextensions'];?>';
+    var imgexts = '<?php echo $imgexts;?>';
+    var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
+    var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
+    var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
+    var seccodecheck = parseInt('<?php if($seccodecheck) { ?>1<?php } else { ?>0<?php } ?>');
+    var secqaacheck = parseInt('<?php if($secqaacheck) { ?>1<?php } else { ?>0<?php } ?>');
+    var typerequired = parseInt('<?php echo $_G['forum']['threadtypes']['required'];?>');
+    var sortrequired = parseInt('<?php echo $_G['forum']['threadsorts']['required'];?>');
+    var special = parseInt('<?php echo $special;?>');
+    var isfirstpost = <?php if($isfirstpost) { ?>1<?php } else { ?>0<?php } ?>;
+    var allowposttrade = parseInt('<?php echo $_G['group']['allowposttrade'];?>');
+    var allowpostreward = parseInt('<?php echo $_G['group']['allowpostreward'];?>');
+    var allowpostactivity = parseInt('<?php echo $_G['group']['allowpostactivity'];?>');
+    var sortid = parseInt('<?php echo $sortid;?>');
+    var special = parseInt('<?php echo $special;?>');
+    var fid = <?php echo $_G['fid'];?>;
+    var postaction = '<?php echo $_GET['action'];?>';
+    var ispicstyleforum = <?php if($_G['forum']['picstyle']) { ?>1<?php } else { ?>0<?php } ?>;
 </script>
 
 <?php if($_GET['action'] == 'edit') { $editor[value] = $postinfo[message];?><?php } else { $editor[value] = $message;?><?php } ?>
-<script src="<?php echo $_G['setting']['jspath'];?>forum_post.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <script src="<?php echo $_G['setting']['jspath'];?>forum_post.js?<?php echo VERHASH;?>" type="text/javascript"></script>
 
 <?php if($isfirstpost && $sortid) { ?>
-<script type="text/javascript">
-var forum_optionlist = <?php if($forum_optionlist) { ?>'<?php echo $forum_optionlist;?>'<?php } else { ?>''<?php } ?>;
-</script>
-<script src="<?php echo $_G['setting']['jspath'];?>threadsort.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } ?><?php
-$actiontitle = <<<EOF
-
-
-EOF;
- if($_GET['action'] == 'newthread') { if($special == 0) { 
-$actiontitle .= <<<EOF
+    <script type="text/javascript">
+        var forum_optionlist = <?php if($forum_optionlist) { ?>'<?php echo $forum_optionlist;?>'<?php } else { ?>''<?php } ?>;
+    </script>
+    <script src="<?php echo $_G['setting']['jspath'];?>threadsort.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+<?php } ?><?php
+$actiontitle = <<<EOF
+
+
+EOF;
+if($_GET['action'] == 'newthread') { if($special == 0) {
+    $actiontitle .= <<<EOF
 发表帖子
-
-EOF;
- } elseif($special == 1) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($special == 1) {
+    $actiontitle .= <<<EOF
 发起投票
-
-EOF;
- } elseif($special == 2) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($special == 2) {
+    $actiontitle .= <<<EOF
 出售商品
-
-EOF;
- } elseif($special == 3) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($special == 3) {
+    $actiontitle .= <<<EOF
 发布悬赏
-
-EOF;
- } elseif($special == 4) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($special == 4) {
+    $actiontitle .= <<<EOF
 发起活动
-
-EOF;
- } elseif($special == 5) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($special == 5) {
+    $actiontitle .= <<<EOF
 发起辩论
-
-EOF;
- } elseif($specialextra) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($specialextra) {
+    $actiontitle .= <<<EOF
 {$_G['setting']['threadplugins'][$specialextra]['name']}
-
-EOF;
- } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) { 
-$actiontitle .= <<<EOF
+
+EOF;
+} } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) {
+    $actiontitle .= <<<EOF
 
 添加商品
-
-EOF;
- } elseif($_GET['action'] == 'reply') { 
-$actiontitle .= <<<EOF
+
+EOF;
+} elseif($_GET['action'] == 'reply') {
+    $actiontitle .= <<<EOF
 
 参与/回复主题
-
-EOF;
- } elseif($_GET['action'] == 'edit') { if($special == 2) { 
-$actiontitle .= <<<EOF
-编辑商品
-EOF;
- } else { 
-$actiontitle .= <<<EOF
-编辑帖子
-EOF;
- } } 
-$actiontitle .= <<<EOF
-
-
-EOF;
-?><?php
-$icon = <<<EOF
-
-
-EOF;
- if($special == 1) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($_GET['action'] == 'edit') { if($special == 2) {
+    $actiontitle .= <<<EOF
+编辑商品
+EOF;
+} else {
+    $actiontitle .= <<<EOF
+编辑帖子
+EOF;
+} }
+$actiontitle .= <<<EOF
+
+
+EOF;
+?><?php
+$icon = <<<EOF
+
+
+EOF;
+if($special == 1) {
+    $icon .= <<<EOF
 poll
-
-EOF;
- } elseif($special == 2) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($special == 2) {
+    $icon .= <<<EOF
 trade
-
-EOF;
- } elseif($special == 3) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($special == 3) {
+    $icon .= <<<EOF
 reward
-
-EOF;
- } elseif($special == 4) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($special == 4) {
+    $icon .= <<<EOF
 activity
-
-EOF;
- } elseif($special == 5) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($special == 5) {
+    $icon .= <<<EOF
 debate
-
-EOF;
- } elseif($isfirstpost && $sortid) { 
-$icon .= <<<EOF
+
+EOF;
+} elseif($isfirstpost && $sortid) {
+    $icon .= <<<EOF
 sort
-
-EOF;
- } 
-$icon .= <<<EOF
 
-
-EOF;
+EOF;
+}
+$icon .= <<<EOF
+
+
+EOF;
 ?>
 
-<?php if($_GET['action'] != 'newthread') { $subjectcut = cutstr($thread[subject], 30);?><?php } ?><?php
-$actionsubject = <<<EOF
+<?php if($_GET['action'] != 'newthread') { $subjectcut = cutstr($thread[subject], 30);?><?php } ?><?php
+$actionsubject = <<<EOF
+
 
-
-EOF;
- if($_GET['action'] == 'reply') { 
-$actionsubject .= <<<EOF
+EOF;
+if($_GET['action'] == 'reply') {
+    $actionsubject .= <<<EOF
 
 <em>&rsaquo;</em><a href="forum.php?mod=viewthread&amp;tid={$thread['tid']}">{$subjectcut}</a>
-
-EOF;
- } elseif($_GET['action'] == 'edit') { 
-$actionsubject .= <<<EOF
+
+EOF;
+} elseif($_GET['action'] == 'edit') {
+    $actionsubject .= <<<EOF
 
 <em>&rsaquo;</em><a href="forum.php?mod=redirect&amp;goto=findpost&amp;ptid={$thread['tid']}&amp;pid={$pid}">{$subjectcut}</a>
-
-EOF;
- } 
-$actionsubject .= <<<EOF
 
-
-EOF;
+EOF;
+}
+$actionsubject .= <<<EOF
+
+
+EOF;
 ?>
 
-<div id="pt" class="bm cl">
-<div class="z"><a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <?php echo $navigation;?><?php echo $actionsubject;?> <em>&rsaquo;</em> <?php echo $actiontitle;?></div>
-</div><?php $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);?><?php $advmore = !$showthreadsorts && !$special || $_GET['action'] == 'reply' && empty($_GET['addtrade']) || $_GET['action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);?><form method="post" autocomplete="off" id="postform"
-<?php if($_GET['action'] == 'newthread') { ?>action="forum.php?mod=post&amp;action=<?php if($special != 2) { ?>newthread<?php } else { ?>newtrade<?php } ?>&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;topicsubmit=yes"
-<?php } elseif($_GET['action'] == 'reply') { ?>action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $extra;?>&amp;replysubmit=yes"
-<?php } elseif($_GET['action'] == 'edit') { ?>action="forum.php?mod=post&amp;action=edit&amp;extra=<?php echo $extra;?>&amp;editsubmit=yes" <?php echo $enctype;?>
-<?php } ?>
-onsubmit="return validate(this)">
-<div id="ct" class="ct2_a ct2_a_r wp cl">
-<input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
-<input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
-<?php if($_GET['action'] == 'edit') { ?>
-<input type="hidden" name="delattachop" id="delattachop" value="0" />
-<?php } if(!empty($_GET['modthreadkey'])) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?php echo $_GET['modthreadkey'];?>" /><?php } ?>
-<input type="hidden" name="wysiwyg" id="<?php echo $editorid;?>_mode" value="<?php echo $editormode;?>" />
-<?php if($_GET['action'] == 'reply') { ?>
-<input type="hidden" name="noticeauthor" value="<?php echo $noticeauthor;?>" />
-<input type="hidden" name="noticetrimstr" value="<?php echo $noticetrimstr;?>" />
-<input type="hidden" name="noticeauthormsg" value="<?php echo $noticeauthormsg;?>" />
-<?php if($reppid) { ?>
-<input type="hidden" name="reppid" value="<?php echo $reppid;?>" />
-<?php } if($_GET['reppost']) { ?>
-<input type="hidden" name="reppost" value="<?php echo $_GET['reppost'];?>" />
-<?php } elseif($_GET['repquote']) { ?>
-<input type="hidden" name="reppost" value="<?php echo $_GET['repquote'];?>" />
-<?php } } if($_GET['action'] == 'edit') { ?>
-<input type="hidden" name="fid" id="fid" value="<?php echo $_G['fid'];?>" />
-<input type="hidden" name="tid" value="<?php echo $_G['tid'];?>" />
-<input type="hidden" name="pid" value="<?php echo $pid;?>" />
-<input type="hidden" name="page" value="<?php echo $_GET['page'];?>" />
-<?php } if($special) { ?>
-<input type="hidden" name="special" value="<?php echo $special;?>" />
-<?php } if($specialextra) { ?>
-<input type="hidden" name="specialextra" value="<?php echo $specialextra;?>" />
-<?php } ?>
-<div class="bm bw0 cl"<?php if(!$showthreadsorts && !$adveditor) { ?> id="editorbox"<?php } ?>>
-<?php if($_GET['action'] == 'newthread') { ?>
-<ul class="tb cl mbw">
-<?php if($savecount) { ?>
-<li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">草稿箱(<strong><?php echo $savecount;?></strong>)</a></li>
-<?php } if(!$_G['forum']['threadsorts']['required'] && !$_G['forum']['allowspecialonly']) { ?><li<?php echo $postspecialcheck['0'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">发表帖子</a></li><?php } if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
-<?php } if($_G['group']['allowpostpoll']) { ?><li<?php echo $postspecialcheck['1'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">发起投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li<?php echo $postspecialcheck['3'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li<?php echo $postspecialcheck['5'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">发起辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li<?php echo $postspecialcheck['4'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">发起活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li<?php echo $postspecialcheck['2'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">出售商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
-<li<?php if($specialextra==$tpid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=<?php echo $tpid;?>')"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
-<?php } } } ?>
-</ul>
-
-<div id="draftlist_menu" style="display:none">
-<ul class="xl xl1">
-<?php if($savethreads) { if(is_array($savethreads)) foreach($savethreads as $savethread) { ?><li>
-<label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
-<a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
-<span class="xg1"><?php echo $savethread['dateline'];?></span>
-</li>
-<?php } } if($savethreadothers) { if(is_array($savethreadothers)) foreach($savethreadothers as $savethread) { ?><li>
-<label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
-<a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
-<span class="xg1"><?php echo $savethread['dateline'];?></span>
-</li>
-<?php } } ?>
-<li class="xi2"><a href="forum.php?mod=guide&amp;view=my&amp;type=thread&amp;filter=save&amp;fid=0" target="_blank">查看所有草稿</a></li>
-</ul>
-</div>
-
-<?php } elseif($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { ?>
-<ul class="tb cl mbw">
-<li<?php if(!$sortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>')"><?php echo $actiontitle;?></a></li>
-<?php if($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
-<?php } } ?>
-</ul>
-<?php } ?>
-
-<div id="postbox">
-<?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
-<span id="custominfo" class="y cur1<?php if($_GET['action'] != 'reply') { ?> mtn<?php } ?>">&nbsp;<img src="<?php echo IMGDIR;?>/info_small.gif" alt="帮助" /></span>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_top'])) echo $_G['setting']['pluginhooks']['post_top'];?><div class="pbt cl">
-<?php if($sortid) { ?>
-<input type="hidden" name="sortid" value="<?php echo $sortid;?>" />
-<?php } if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
-<div class="ftid">
-<?php if($_G['forum']['ismoderator'] || empty($_G['forum']['threadtypes']['moderators'][$thread['typeid']])) { ?>
-<select name="typeid" id="typeid" width="80">
-<option value="0">选择主题分类</option><?php if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $typeid => $name) { if(empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']) { ?>
-<option value="<?php echo $typeid;?>"<?php if($thread['typeid'] == $typeid || $_GET['typeid'] == $typeid) { ?> selected="selected"<?php } ?>><?php echo strip_tags($name);; ?></option>
-<?php } } ?>
-</select>
-<?php } else { ?>
-[<?php echo strip_tags($_G['forum']['threadtypes']['types'][$thread['typeid']]);; ?>]
-<?php } ?>
-</div>
-<?php } ?>
-<div class="z">
-<?php if($_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']) { ?>
-<input name="subject" type="hidden" value="" />
-<?php } else { if($_GET['action'] != 'reply') { ?>
-<span><input type="text" name="subject" id="subject" class="px" value="<?php echo $postinfo['subject'];?>" <?php if($_GET['action'] == 'newthread') { ?>onblur="if($('tags')){relatekw('-1','-1'<?php if($_G['group']['allowposttag']) { ?>,function(){extraCheck(4)}<?php } ?>);doane();}"<?php } ?> onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" tabindex="1" /></span>
-<?php } else { ?>
-<span id="subjecthide" class="z">RE: <?php echo $thread['subject'];?> [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: <?php echo dhtmlspecialchars(str_replace('\'', '\\\'', $thread['subject'])); ?>';display('subjectchk');strLenCalc($('subject'), 'checklen', 80);return false;">修改</a>]</span>
-<span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" /></span>
-<?php } ?>			
-<span id="subjectchk"<?php if($_GET['action'] == 'reply') { ?> style="display:none"<?php } ?>>还可输入 <strong id="checklen">80</strong> 个字符</span>
-<script type="text/javascript">strLenCalc($('subject'), 'checklen', 80)</script>
-<?php } if($_GET['action'] == 'newthread' && $modnewthreads) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'reply' && $modnewreplies) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?> <span class="xg1 xw0">(草稿)</span><?php } ?>
-</div>
-</div>
-<?php if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
-<div class="pbt cl">
-<div class="ftid">
-<select name="stand" id="stand">
-<option value="">选择观点</option>
-<option value="0">中立</option>
-<option value="1"<?php if($stand == 1) { ?> selected="selected"<?php } ?>>正方</option>
-<option value="2"<?php if($stand == 2) { ?> selected="selected"<?php } ?>>反方</option>
-</select>
-</div>
-</div>
-<?php } ?>
-
-<div id="attachnotice_attach" class="tbms mbm xl" style="display:none">
-您有 <span id="unusednum_attach"></span> 个未使用的附件 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('attach', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 0)">删除</a>
-<div id="unusedlist_attach" style="display:none"></div>
-</div>
-<div id="attachnotice_img" class="tbms mbm xl" style="display:none">
-您有 <span id="unusednum_img"></span> 个未使用的图片 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('img', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 0)">删除</a>
-<div id="unusedlist_img" style="display:none"></div>
-</div>
-
-<?php if($showthreadsorts) { ?>
-<div class="exfm cl"><?php include template('forum/post_sortoption'); ?></div>
-<?php } elseif($adveditor) { if($special == 1) { include template('forum/post_poll'); } elseif($special == 2 && ($_GET['action'] != 'edit' || ($_GET['action'] == 'edit' && ($thread['authorid'] == $_G['uid'] && $_G['group']['allowposttrade'] || $_G['group']['allowedittrade'])))) { ?><p class="xg1">添加商品信息,完成后可在本帖中继续添加多个商品</p><?php include template('forum/post_trade'); } elseif($special == 3) { include template('forum/post_reward'); } elseif($special == 4) { include template('forum/post_activity'); } elseif($special == 5) { include template('forum/post_debate'); } elseif($specialextra) { ?><div class="specialpost s_clear"><?php echo $threadplughtml;?></div>
-<?php } } if($_GET['action'] == 'reply' && $quotemessage) { ?>
-<div class="pbt cl"><?php echo $quotemessage;?></div>
-<?php } ?><div id="<?php echo $editorid;?>_body_loading"><img src="<?php echo IMGDIR;?>/loading.gif" width="16" height="16" class="vm" /> 请稍后 ...</div>
-<div class="edt" id="<?php echo $editorid;?>_body" style="display: none">
-<div id="<?php echo $editorid;?>_controls" class="bar">
-<div class="y">
-<div class="b2r nbl nbr" id="<?php echo $editorid;?>_adv_5">
-<p>
-<a id="<?php echo $editorid;?>_undo" title="撤销">Undo</a>
-</p>
-<p>
-<a id="<?php echo $editorid;?>_redo" title="重做">Redo</a>
-</p>
-</div>
-<div class="z">
-<span class="mbn"><a id="<?php echo $editorid;?>_fullswitcher"></a><a id="<?php echo $editorid;?>_simple"></a></span>
-<label id="<?php echo $editorid;?>_switcher" class="bar_swch ptn"><input id="<?php echo $editorid;?>_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" <?php if(!$editor['editormode']) { ?>checked="checked"<?php } ?> onclick="switchEditor(this.checked?0:1)" />纯文本</label>
-</div>
-</div>
-<?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) { ?>
-<div class="y"><?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) echo $_G['setting']['pluginhooks']['post_editorctrl_right'];?></div>
-<?php } ?>
-<div id="<?php echo $editorid;?>_button" class="btn cl">
-<div class="b2r nbr nbl" id="<?php echo $editorid;?>_adv_s2">
-<a id="<?php echo $editorid;?>_fontname" class="dp" title="设置字体" menupos="43!"><span id="<?php echo $editorid;?>_font">字体</span></a>
-<a id="<?php echo $editorid;?>_fontsize" class="dp" title="设置文字大小" menupos="43!" menuwidth="25"><span id="<?php echo $editorid;?>_size">大小</span></a>
-<span id="<?php echo $editorid;?>_adv_1">
+    <div id="pt" class="bm cl">
+        <div class="z"><a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <?php echo $navigation;?><?php echo $actionsubject;?> <em>&rsaquo;</em> <?php echo $actiontitle;?></div>
+    </div><?php $adveditor = $isfirstpost && $special || $special == 2 && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2);?><?php $advmore = !$showthreadsorts && !$special || $_GET['action'] == 'reply' && empty($_GET['addtrade']) || $_GET['action'] == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);?><form method="post" autocomplete="off" id="postform"
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                     <?php if($_GET['action'] == 'newthread') { ?>action="forum.php?mod=post&amp;action=<?php if($special != 2) { ?>newthread<?php } else { ?>newtrade<?php } ?>&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;topicsubmit=yes"
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                     <?php } elseif($_GET['action'] == 'reply') { ?>action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $extra;?>&amp;replysubmit=yes"
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                     <?php } elseif($_GET['action'] == 'edit') { ?>action="forum.php?mod=post&amp;action=edit&amp;extra=<?php echo $extra;?>&amp;editsubmit=yes" <?php echo $enctype;?>
+    <?php } ?>
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                     onsubmit="return validate(this)">
+    <div id="ct" class="ct2_a ct2_a_r wp cl">
+        <input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
+        <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
+        <?php if($_GET['action'] == 'edit') { ?>
+            <input type="hidden" name="delattachop" id="delattachop" value="0" />
+        <?php } if(!empty($_GET['modthreadkey'])) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?php echo $_GET['modthreadkey'];?>" /><?php } ?>
+        <input type="hidden" name="wysiwyg" id="<?php echo $editorid;?>_mode" value="<?php echo $editormode;?>" />
+        <?php if($_GET['action'] == 'reply') { ?>
+            <input type="hidden" name="noticeauthor" value="<?php echo $noticeauthor;?>" />
+            <input type="hidden" name="noticetrimstr" value="<?php echo $noticetrimstr;?>" />
+            <input type="hidden" name="noticeauthormsg" value="<?php echo $noticeauthormsg;?>" />
+            <?php if($reppid) { ?>
+                <input type="hidden" name="reppid" value="<?php echo $reppid;?>" />
+            <?php } if($_GET['reppost']) { ?>
+                <input type="hidden" name="reppost" value="<?php echo $_GET['reppost'];?>" />
+            <?php } elseif($_GET['repquote']) { ?>
+                <input type="hidden" name="reppost" value="<?php echo $_GET['repquote'];?>" />
+            <?php } } if($_GET['action'] == 'edit') { ?>
+            <input type="hidden" name="fid" id="fid" value="<?php echo $_G['fid'];?>" />
+            <input type="hidden" name="tid" value="<?php echo $_G['tid'];?>" />
+            <input type="hidden" name="pid" value="<?php echo $pid;?>" />
+            <input type="hidden" name="page" value="<?php echo $_GET['page'];?>" />
+        <?php } if($special) { ?>
+            <input type="hidden" name="special" value="<?php echo $special;?>" />
+        <?php } if($specialextra) { ?>
+            <input type="hidden" name="specialextra" value="<?php echo $specialextra;?>" />
+        <?php } ?>
+        <div class="bm bw0 cl"<?php if(!$showthreadsorts && !$adveditor) { ?> id="editorbox"<?php } ?>>
+            <?php if($_GET['action'] == 'newthread') { ?>
+                <ul class="tb cl mbw">
+                    <?php if($savecount) { ?>
+                        <li class="y"><a id="draftlist" href="javascript:;" class="xi2" onmouseover="showMenu({'ctrlid':'draftlist','ctrlclass':'a','duration':2,'pos':'34'})">草稿箱(<strong><?php echo $savecount;?></strong>)</a></li>
+                    <?php } if(!$_G['forum']['threadsorts']['required'] && !$_G['forum']['allowspecialonly']) { ?><li<?php echo $postspecialcheck['0'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread')">发表帖子</a></li><?php } if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
+                    <?php } if($_G['group']['allowpostpoll']) { ?><li<?php echo $postspecialcheck['1'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=1')">发起投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li<?php echo $postspecialcheck['3'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=3')">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li<?php echo $postspecialcheck['5'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=5')">发起辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li<?php echo $postspecialcheck['4'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=4')">发起活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li<?php echo $postspecialcheck['2'];?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&special=2')">出售商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
+                        <li<?php if($specialextra==$tpid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=newthread&specialextra=<?php echo $tpid;?>')"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
+                    <?php } } } ?>
+                </ul>
+
+                <div id="draftlist_menu" style="display:none">
+                    <ul class="xl xl1">
+                        <?php if($savethreads) { if(is_array($savethreads)) foreach($savethreads as $savethread) { ?><li>
+                            <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
+                            <a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
+                            <span class="xg1"><?php echo $savethread['dateline'];?></span>
+                            </li>
+                        <?php } } if($savethreadothers) { if(is_array($savethreadothers)) foreach($savethreadothers as $savethread) { ?><li>
+                            <label>[<a href="javascript:;" title="引用" onclick="insertsave(<?php echo $savethread['pid'];?>)">引用</a>]</label>
+                            <a href="forum.php?mod=post&amp;action=edit&amp;fid=<?php echo $savethread['fid'];?>&amp;tid=<?php echo $savethread['tid'];?>&amp;pid=<?php echo $savethread['pid'];?>" class="xi2" target="_blank"><?php echo $savethread['subject'];?></a>
+                            <span class="xg1"><?php echo $savethread['dateline'];?></span>
+                            </li>
+                        <?php } } ?>
+                        <li class="xi2"><a href="forum.php?mod=guide&amp;view=my&amp;type=thread&amp;filter=save&amp;fid=0" target="_blank">查看所有草稿</a></li>
+                    </ul>
+                </div>
+
+            <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { ?>
+                <ul class="tb cl mbw">
+                    <li<?php if(!$sortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>')"><?php echo $actiontitle;?></a></li>
+                    <?php if($_GET['action'] == 'edit' && $isfirstpost && !$thread['sortid']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $tsortid => $name) { ?><li<?php if($sortid == $tsortid) { ?> class="a"<?php } ?>><a href="javascript:;" onclick="switchpost('forum.php?mod=post&action=edit&tid=<?php echo $_G['tid'];?>&pid=<?php echo $pid;?>&sortid=<?php echo $tsortid;?>')"><?php echo strip_tags($name);; ?></a></li>
+                    <?php } } ?>
+                </ul>
+            <?php } ?>
+
+            <div id="postbox">
+                <?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
+                    <span id="custominfo" class="y cur1<?php if($_GET['action'] != 'reply') { ?> mtn<?php } ?>">&nbsp;<img src="<?php echo IMGDIR;?>/info_small.gif" alt="帮助" /></span>
+                <?php } ?>
+                <?php if(!empty($_G['setting']['pluginhooks']['post_top'])) echo $_G['setting']['pluginhooks']['post_top'];?><div class="pbt cl">
+                    <?php if($sortid) { ?>
+                        <input type="hidden" name="sortid" value="<?php echo $sortid;?>" />
+                    <?php } if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
+                        <div class="ftid">
+                            <?php if($_G['forum']['ismoderator'] || empty($_G['forum']['threadtypes']['moderators'][$thread['typeid']])) { ?>
+                                <select name="typeid" id="typeid" width="80">
+                                    <option value="0">选择主题分类</option><?php if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $typeid => $name) { if(empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']) { ?>
+                                        <option value="<?php echo $typeid;?>"<?php if($thread['typeid'] == $typeid || $_GET['typeid'] == $typeid) { ?> selected="selected"<?php } ?>><?php echo strip_tags($name);; ?></option>
+                                    <?php } } ?>
+                                </select>
+                            <?php } else { ?>
+                                [<?php echo strip_tags($_G['forum']['threadtypes']['types'][$thread['typeid']]);; ?>]
+                            <?php } ?>
+                        </div>
+                    <?php } ?>
+                    <div class="z">
+                        <?php if($_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' && $thread['special'] == 2 && !$postinfo['first']) { ?>
+                        <input name="subject" type="hidden" value="" />
+                        <?php } else { if($_GET['action'] != 'reply') { ?>
+                            <span><input type="text" name="subject" id="subject" class="px" value="<?php echo $postinfo['subject'];?>" <?php if($_GET['action'] == 'newthread') { ?>onblur="if($('tags')){relatekw('-1','-1'<?php if($_G['group']['allowposttag']) { ?>,function(){extraCheck(4)}<?php } ?>);doane();}"<?php } ?> onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" tabindex="1" /></span>
+                        <?php } else { ?>
+                            <span id="subjecthide" class="z">RE: <?php echo $thread['subject'];?> [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: <?php echo dhtmlspecialchars(str_replace('\'', '\\\'', $thread['subject'])); ?>';display('subjectchk');strLenCalc($('subject'), 'checklen', 80);return false;">修改</a>]</span>
+                            <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" /></span>
+                        <?php } ?>
+                            <span id="subjectchk"<?php if($_GET['action'] == 'reply') { ?> style="display:none"<?php } ?>>还可输入 <strong id="checklen">80</strong> 个字符</span>
+                            <script type="text/javascript">strLenCalc($('subject'), 'checklen', 80)</script>
+                        <?php } if($_GET['action'] == 'newthread' && $modnewthreads) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'reply' && $modnewreplies) { ?> <span class="xg1 xw0">(需审核)</span><?php } if($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?> <span class="xg1 xw0">(草稿)</span><?php } ?>
+                    </div>
+                </div>
+                <?php if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
+                    <div class="pbt cl">
+                        <div class="ftid">
+                            <select name="stand" id="stand">
+                                <option value="">选择观点</option>
+                                <option value="0">中立</option>
+                                <option value="1"<?php if($stand == 1) { ?> selected="selected"<?php } ?>>正方</option>
+                                <option value="2"<?php if($stand == 2) { ?> selected="selected"<?php } ?>>反方</option>
+                            </select>
+                        </div>
+                    </div>
+                <?php } ?>
+
+                <div id="attachnotice_attach" class="tbms mbm xl" style="display:none">
+                    您有 <span id="unusednum_attach"></span> 个未使用的附件 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('attach', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('attach', 0)">删除</a>
+                    <div id="unusedlist_attach" style="display:none"></div>
+                </div>
+                <div id="attachnotice_img" class="tbms mbm xl" style="display:none">
+                    您有 <span id="unusednum_img"></span> 个未使用的图片 &nbsp; <a href="javascript:;" class="xi2" onclick="attachoption('img', 2);" />查看</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 1)">使用</a><span class="pipe">|</span><a href="javascript:;" class="xi2" onclick="attachoption('img', 0)">删除</a>
+                    <div id="unusedlist_img" style="display:none"></div>
+                </div>
+
+                <?php if($showthreadsorts) { ?>
+                    <div class="exfm cl"><?php include template('forum/post_sortoption'); ?></div>
+                <?php } elseif($adveditor) { if($special == 1) { include template('forum/post_poll'); } elseif($special == 2 && ($_GET['action'] != 'edit' || ($_GET['action'] == 'edit' && ($thread['authorid'] == $_G['uid'] && $_G['group']['allowposttrade'] || $_G['group']['allowedittrade'])))) { ?><p class="xg1">添加商品信息,完成后可在本帖中继续添加多个商品</p><?php include template('forum/post_trade'); } elseif($special == 3) { include template('forum/post_reward'); } elseif($special == 4) { include template('forum/post_activity'); } elseif($special == 5) { include template('forum/post_debate'); } elseif($specialextra) { ?><div class="specialpost s_clear"><?php echo $threadplughtml;?></div>
+                <?php } } if($_GET['action'] == 'reply' && $quotemessage) { ?>
+                    <div class="pbt cl"><?php echo $quotemessage;?></div>
+                <?php } ?><div id="<?php echo $editorid;?>_body_loading"><img src="<?php echo IMGDIR;?>/loading.gif" width="16" height="16" class="vm" /> 请稍后 ...</div>
+                <div class="edt" id="<?php echo $editorid;?>_body" style="display: none">
+                    <div id="<?php echo $editorid;?>_controls" class="bar">
+                        <div class="y">
+                            <div class="b2r nbl nbr" id="<?php echo $editorid;?>_adv_5">
+                                <p>
+                                    <a id="<?php echo $editorid;?>_undo" title="撤销">Undo</a>
+                                </p>
+                                <p>
+                                    <a id="<?php echo $editorid;?>_redo" title="重做">Redo</a>
+                                </p>
+                            </div>
+                            <div class="z">
+                                <span class="mbn"><a id="<?php echo $editorid;?>_fullswitcher"></a><a id="<?php echo $editorid;?>_simple"></a></span>
+                                <label id="<?php echo $editorid;?>_switcher" class="bar_swch ptn"><input id="<?php echo $editorid;?>_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" <?php if(!$editor['editormode']) { ?>checked="checked"<?php } ?> onclick="switchEditor(this.checked?0:1)" />纯文本</label>
+                            </div>
+                        </div>
+                        <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) { ?>
+                            <div class="y"><?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_right'])) echo $_G['setting']['pluginhooks']['post_editorctrl_right'];?></div>
+                        <?php } ?>
+                        <div id="<?php echo $editorid;?>_button" class="btn cl">
+                            <div class="b2r nbr nbl" id="<?php echo $editorid;?>_adv_s2">
+                                <a id="<?php echo $editorid;?>_fontname" class="dp" title="设置字体" menupos="43!"><span id="<?php echo $editorid;?>_font">字体</span></a>
+                                <a id="<?php echo $editorid;?>_fontsize" class="dp" title="设置文字大小" menupos="43!" menuwidth="25"><span id="<?php echo $editorid;?>_size">大小</span></a>
+                                <span id="<?php echo $editorid;?>_adv_1">
 <a id="<?php echo $editorid;?>_inserthorizontalrule" title="分隔线">Hr</a>
 <br />
 </span>
-<a id="<?php echo $editorid;?>_bold" title="文字加粗">B</a>
-<a id="<?php echo $editorid;?>_italic" title="文字斜体">I</a>
-<a id="<?php echo $editorid;?>_underline" title="文字加下划线">U</a>
-<a id="<?php echo $editorid;?>_forecolor" title="设置文字颜色">Color</a>
-<a id="<?php echo $editorid;?>_backcolor" title="设置文字背景色">BgColor</a>
-<a id="<?php echo $editorid;?>_url" title="添加链接">Url</a>
-<span id="<?php echo $editorid;?>_adv_8">
+                                <a id="<?php echo $editorid;?>_bold" title="文字加粗">B</a>
+                                <a id="<?php echo $editorid;?>_italic" title="文字斜体">I</a>
+                                <a id="<?php echo $editorid;?>_underline" title="文字加下划线">U</a>
+                                <a id="<?php echo $editorid;?>_forecolor" title="设置文字颜色">Color</a>
+                                <a id="<?php echo $editorid;?>_backcolor" title="设置文字背景色">BgColor</a>
+                                <a id="<?php echo $editorid;?>_url" title="添加链接">Url</a>
+                                <span id="<?php echo $editorid;?>_adv_8">
 <a id="<?php echo $editorid;?>_unlink" title="移除链接">Unlink</a>
 </span>
-</div>
-<div class="b2r nbl" id="<?php echo $editorid;?>_adv_2">
-<p id="<?php echo $editorid;?>_adv_3">
-<a id="<?php echo $editorid;?>_tbl" title="添加表格">Table</a>
-</p>
-<p>
-<a id="<?php echo $editorid;?>_removeformat" title="清除文本格式">Removeformat</a>
-</p>
-</div>
-<div class="b2r">
-<p>
-<a id="<?php echo $editorid;?>_autotypeset" title="自动排版">Autotypeset</a>
-<a id="<?php echo $editorid;?>_justifyleft" title="居左">Left</a>
-<a id="<?php echo $editorid;?>_justifycenter" title="居中">Center</a>
-<a id="<?php echo $editorid;?>_justifyright" title="居右">Right</a>
-</p>
-<p id="<?php echo $editorid;?>_adv_4">
-<a id="<?php echo $editorid;?>_floatleft" title="左浮动">FloatLeft</a>
-<a id="<?php echo $editorid;?>_floatright" title="右浮动">FloatRight</a>
-<a id="<?php echo $editorid;?>_insertorderedlist" title="排序的列表">Orderedlist</a>
-<a id="<?php echo $editorid;?>_insertunorderedlist" title="未排序列表">Unorderedlist</a>
-</p>
-</div>
-<div class="b1r" id="<?php echo $editorid;?>_adv_s1">
-<a id="<?php echo $editorid;?>_sml" title="添加表情">表情</a>
-<div id="<?php echo $editorid;?>_imagen" style="display:none">!</div>
-<a id="<?php echo $editorid;?>_image" title="添加图片" menupos="00" menuwidth="600">图片</a>
-<?php if($_G['group']['allowpostattach']) { ?>
-<div id="<?php echo $editorid;?>_attachn" style="display:none">!</div>
-<a id="<?php echo $editorid;?>_attach" title="添加附件" menupos="00" menuwidth="600">附件</a>
-<?php } if($_G['forum']['allowmediacode'] && $_G['group']['allowmediacode']) { ?>
-<a id="<?php echo $editorid;?>_aud" title="添加音乐">音乐</a>
-<a id="<?php echo $editorid;?>_vid" title="添加视频">视频</a>
-<a id="<?php echo $editorid;?>_fls" title="添加 Flash">Flash</a>
-<?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']) { ?>
-<a id="<?php echo $editorid;?>_at" title="@好友和关注的人" menupos="43" menuwidth="600">@朋友</a>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_left'])) echo $_G['setting']['pluginhooks']['post_editorctrl_left'];?>
-</div>
-<div class="b2r esb" id="<?php echo $editorid;?>_adv_s3">
-<?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_top'])) echo $_G['setting']['pluginhooks']['post_editorctrl_top'];?>
-<a id="<?php echo $editorid;?>_quote" title="添加引用文字">引用</a>
-<a id="<?php echo $editorid;?>_code" title="添加代码文字">代码</a>
-<?php if($isfirstpost) { ?>
-<a id="<?php echo $editorid;?>_free" adv="1" title="添加免费信息">Free</a>
-<?php if($_G['group']['allowhidecode']) { ?><a id="<?php echo $editorid;?>_hide" adv="1" title="添加隐藏内容">Hide</a><?php } } ?>
-<a id="<?php echo $editorid;?>_pasteword" adv="1" title="从 Word 粘贴内容">Word 粘贴</a>
-<?php if($_G['group']['allowdownremoteimg']) { if(!($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle']))) { } ?><a id="<?php echo $editorid;?>_downremoteimg" adv="1" title="下载远程图片">下载图片</a><?php } if($isfirstpost) { ?>
-<a id="<?php echo $editorid;?>_page" adv="1" title="分页">Page</a>
-<a id="<?php echo $editorid;?>_index" adv="1" title="目录">Index</a>
-<?php } if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>
-<a id="a_magic_doodle" adv="1" href="home.php?mod=magic&amp;mid=doodle&amp;showid=comment_doodle&amp;target=<?php echo $editorid;?>_textarea&amp;from=forumeditor" class="cst" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="<?php echo STATICURL;?>image/magic/doodle.small.gif" alt="doodle" title="<?php echo $_G['setting']['magics']['doodle'];?>" style="margin-top:2px" /></a>
-<?php } ?>
-<a id="<?php echo $editorid;?>_password" adv="1" title="帖子密码">Password</a>
-<a id="<?php echo $editorid;?>_postbg" adv="1" title="帖子背景">Background</a>
-<?php if($_G['group']['allowbegincode'] && $isfirstpost) { ?>
-<a id="<?php echo $editorid;?>_beginning" adv="1" title="添加起始动画" menupos="43" menuwidth="600">动画</a>
-<?php } if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?><a id="<?php echo $editorid;?>_cst<?php echo $bbcode['params'];?>_<?php echo $tag;?>" class="cst" title="<?php echo $bbcode['explanation'];?>"><img src="<?php echo STATICURL;?>image/common/<?php echo $bbcode['icon'];?>" title="<?php echo $bbcode['explanation'];?>" alt="<?php echo $tag;?>" /></a>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_bottom'])) echo $_G['setting']['pluginhooks']['post_editorctrl_bottom'];?>
-</div>
-</div>
-</div>
-
-<div id="rstnotice" class="ntc_l bbs" style="display:none">
-<a href="javascript:;" title="清除内容" class="d y" onclick="userdataoption(0)">close</a>您有上次未提交成功的数据 <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>恢复数据</strong></a>
-</div>
-
-<div class="area">
-<textarea name="<?php echo $editor['textarea'];?>" id="<?php echo $editorid;?>_textarea" class="pt" rows="15" tabindex="2"><?php echo $editor['value'];?></textarea>
-</div><link rel="stylesheet" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_editor.css?<?php echo VERHASH;?>' />
-<script src="<?php echo $_G['setting']['jspath'];?>editor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<script type="text/javascript">
-var editorid = '<?php echo $editorid;?>';
-var textobj = $(editorid + '_textarea');
-var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('<?php echo $editor['editormode'];?>') == 1 ? 1 : 0;
-var allowswitcheditor = parseInt('<?php echo $editor['allowswitcheditor'];?>');
-var allowhtml = parseInt('<?php echo $editor['allowhtml'];?>');
-var allowsmilies = parseInt('<?php echo $editor['allowsmilies'];?>');
-var allowbbcode = parseInt('<?php echo $editor['allowbbcode'];?>');
-var allowimgcode = parseInt('<?php echo $editor['allowimgcode'];?>');
-var simplodemode = parseInt('<?php if($editor['simplemode'] > 0) { ?>1<?php } else { ?>0<?php } ?>');
-var fontoptions = new Array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312");
-var smcols = <?php echo $_G['setting']['smcols'];?>;
-var custombbcodes = new Array();
-<?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?>custombbcodes["<?php echo $tag;?>"] = {'prompt' : '<?php echo $bbcode['prompt'];?>'};
-<?php } } ?>
-</script>
+                            </div>
+                            <div class="b2r nbl" id="<?php echo $editorid;?>_adv_2">
+                                <p id="<?php echo $editorid;?>_adv_3">
+                                    <a id="<?php echo $editorid;?>_tbl" title="添加表格">Table</a>
+                                </p>
+                                <p>
+                                    <a id="<?php echo $editorid;?>_removeformat" title="清除文本格式">Removeformat</a>
+                                </p>
+                            </div>
+                            <div class="b2r">
+                                <p>
+                                    <a id="<?php echo $editorid;?>_autotypeset" title="自动排版">Autotypeset</a>
+                                    <a id="<?php echo $editorid;?>_justifyleft" title="居左">Left</a>
+                                    <a id="<?php echo $editorid;?>_justifycenter" title="居中">Center</a>
+                                    <a id="<?php echo $editorid;?>_justifyright" title="居右">Right</a>
+                                </p>
+                                <p id="<?php echo $editorid;?>_adv_4">
+                                    <a id="<?php echo $editorid;?>_floatleft" title="左浮动">FloatLeft</a>
+                                    <a id="<?php echo $editorid;?>_floatright" title="右浮动">FloatRight</a>
+                                    <a id="<?php echo $editorid;?>_insertorderedlist" title="排序的列表">Orderedlist</a>
+                                    <a id="<?php echo $editorid;?>_insertunorderedlist" title="未排序列表">Unorderedlist</a>
+                                </p>
+                            </div>
+                            <div class="b1r" id="<?php echo $editorid;?>_adv_s1">
+                                <a id="<?php echo $editorid;?>_sml" title="添加表情">表情</a>
+                                <div id="<?php echo $editorid;?>_imagen" style="display:none">!</div>
+                                <a id="<?php echo $editorid;?>_image" title="添加图片" menupos="00" menuwidth="600">图片</a>
+                                <?php if($_G['group']['allowpostattach']) { ?>
+                                    <div id="<?php echo $editorid;?>_attachn" style="display:none">!</div>
+                                    <a id="<?php echo $editorid;?>_attach" title="添加附件" menupos="00" menuwidth="600">附件</a>
+                                <?php } if($_G['forum']['allowmediacode'] && $_G['group']['allowmediacode']) { ?>
+                                    <a id="<?php echo $editorid;?>_aud" title="添加音乐">音乐</a>
+                                    <a id="<?php echo $editorid;?>_vid" title="添加视频">视频</a>
+                                    <a id="<?php echo $editorid;?>_fls" title="添加 Flash">Flash</a>
+                                <?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']) { ?>
+                                    <a id="<?php echo $editorid;?>_at" title="@好友和关注的人" menupos="43" menuwidth="600">@朋友</a>
+                                <?php } ?>
+                                <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_left'])) echo $_G['setting']['pluginhooks']['post_editorctrl_left'];?>
+                            </div>
+                            <div class="b2r esb" id="<?php echo $editorid;?>_adv_s3">
+                                <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_top'])) echo $_G['setting']['pluginhooks']['post_editorctrl_top'];?>
+                                <a id="<?php echo $editorid;?>_quote" title="添加引用文字">引用</a>
+                                <a id="<?php echo $editorid;?>_code" title="添加代码文字">代码</a>
+                                <?php if($isfirstpost) { ?>
+                                    <a id="<?php echo $editorid;?>_free" adv="1" title="添加免费信息">Free</a>
+                                    <?php if($_G['group']['allowhidecode']) { ?><a id="<?php echo $editorid;?>_hide" adv="1" title="添加隐藏内容">Hide</a><?php } } ?>
+                                <a id="<?php echo $editorid;?>_pasteword" adv="1" title="从 Word 粘贴内容">Word 粘贴</a>
+                                <?php if($_G['group']['allowdownremoteimg']) { if(!($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle']))) { } ?><a id="<?php echo $editorid;?>_downremoteimg" adv="1" title="下载远程图片">下载图片</a><?php } if($isfirstpost) { ?>
+                                    <a id="<?php echo $editorid;?>_page" adv="1" title="分页">Page</a>
+                                    <a id="<?php echo $editorid;?>_index" adv="1" title="目录">Index</a>
+                                <?php } if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>
+                                    <a id="a_magic_doodle" adv="1" href="home.php?mod=magic&amp;mid=doodle&amp;showid=comment_doodle&amp;target=<?php echo $editorid;?>_textarea&amp;from=forumeditor" class="cst" onclick="showWindow(this.id, this.href, 'get', 0)"><img src="<?php echo STATICURL;?>image/magic/doodle.small.gif" alt="doodle" title="<?php echo $_G['setting']['magics']['doodle'];?>" style="margin-top:2px" /></a>
+                                <?php } ?>
+                                <a id="<?php echo $editorid;?>_password" adv="1" title="帖子密码">Password</a>
+                                <a id="<?php echo $editorid;?>_postbg" adv="1" title="帖子背景">Background</a>
+                                <?php if($_G['group']['allowbegincode'] && $isfirstpost) { ?>
+                                    <a id="<?php echo $editorid;?>_beginning" adv="1" title="添加起始动画" menupos="43" menuwidth="600">动画</a>
+                                <?php } if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?><a id="<?php echo $editorid;?>_cst<?php echo $bbcode['params'];?>_<?php echo $tag;?>" class="cst" title="<?php echo $bbcode['explanation'];?>"><img src="<?php echo STATICURL;?>image/common/<?php echo $bbcode['icon'];?>" title="<?php echo $bbcode['explanation'];?>" alt="<?php echo $tag;?>" /></a>
+                                <?php } ?>
+                                <?php if(!empty($_G['setting']['pluginhooks']['post_editorctrl_bottom'])) echo $_G['setting']['pluginhooks']['post_editorctrl_bottom'];?>
+                            </div>
+                        </div>
+                    </div>
 
-<div id="<?php echo $editorid;?>_bbar" class="bbar">
-<em id="<?php echo $editorid;?>_tip"></em>
-<span id="<?php echo $editorid;?>_svdsecond"></span>
-<a href="javascript:;" onclick="discuzcode('svd');return false;" id="<?php echo $editorid;?>_svd">保存数据</a> |
-<a href="javascript:;" onclick="discuzcode('rst');return false;" id="<?php echo $editorid;?>_rst">恢复数据</a> &nbsp;&nbsp;
-<?php if($editor['allowchecklength']) { ?>
-<a href="javascript:;" onclick="discuzcode('chck');return false;" id="<?php echo $editorid;?>_chck">字数检查</a> |
-<?php } if($editor['allowtopicreset']) { ?>
-<a href="javascript:;" onclick="discuzcode('tpr');return false;" id="<?php echo $editorid;?>_tpr">清除内容</a> &nbsp;&nbsp;
-<?php } if($editor['allowresize']) { ?>
-<span id="<?php echo $editorid;?>_resize"><a href="javascript:;" onclick="editorsize('+');return false;">加大编辑框</a> | <a href="javascript:;" onclick="editorsize('-');return false;">缩小编辑框</a><img src="<?php echo STATICURL;?>image/editor/resize.gif" onmousedown="editorresize(event)" /></span>
-<?php } ?>
-</div></div>
-<?php if(!empty($_G['setting']['pluginhooks']['post_middle'])) echo $_G['setting']['pluginhooks']['post_middle'];?><div id="post_extra" class="ptm cl">
-<div id="post_extra_tb" class="cl" onselectstart="return false">
-<label id="extra_additional_b" onclick="showExtra('extra_additional')"><span id="extra_additional_chk">附加选项</span></label>
-<?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { if($_G['group']['allowsetreadperm']) { ?>
-<label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">阅读权限</span></label>
-<?php } if($_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))) { if($_GET['action'] == 'newthread') { $extcreditstype = $_G['setting']['creditstransextra'][10];?><?php } else { $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];?><?php } $userextcredit = getuserprofile('extcredits'.$extcreditstype);?><?php if(($_GET['action'] == 'newthread' && $userextcredit > 0) || ($_GET['action'] == 'edit' && $isorigauthor && isfirstpost)) { ?>
-<label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">回帖奖励</span></label>
-<?php } } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
-<label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">抢楼主题</span></label>
-<?php } if($_G['group']['maxprice'] && !$special) { ?>
-<label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">主题售价</span></label>
-<?php } if($_G['group']['allowposttag']) { ?>
-<label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">主题标签</span></label>
-<?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
-<label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">定时发布</span></label>
-<?php } } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_attribute_extra'])) echo $_G['setting']['pluginhooks']['post_attribute_extra'];?>
-</div>
-
-<div id="post_extra_c">
-<?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { if(!empty($userextcredit)) { ?>
-<div id="extra_replycredit_c" class="exfm cl" style="display: none;">
-<div><label>每次回帖奖励: <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="<?php if($replycredit_rule['extcredits'] && $thread['replycredit'] > 0) { ?><?php echo $replycredit_rule['extcredits'];?><?php } else { ?>0<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?></label><span class="xg1">(留空或填 0 为不奖励)</span> , <label>奖励 <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="<?php if($replycredit_rule['lasttimes']) { ?><?php echo $replycredit_rule['lasttimes'];?><?php } else { ?>1<?php } ?>" onkeyup="javascript:getreplycredit();"  onblur="extraCheck(0)" /> 次</label>, <label>每人最多可获得 <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm"><?php for($i=1;$i<11;$i++) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['membertimes'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> 次</label>, <label>中奖率 <select id="replycredit_random" name="replycredit_random" class="ps vm">
- <?php for($i=100;$i>9;$i=$i-10) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['random'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> %</label></div>
-<div class="xg1">回帖奖励总额: <span id="replycredit_sum"><?php if($thread['replycredit']) { ?><?php echo $thread['replycredit'];?><?php } else { ?>0<?php } ?></span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?><?php if($thread['replycredit']) { ?><span class="xg1">(本帖尚有 <?php echo $thread['replycredit'];?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?>)</span><?php } ?>, <span id="replycredit">税后支付 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> 0</span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?>, 您有 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> <?php echo $userextcredit;?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?></div>
-</div>
-<?php } if($_G['group']['allowsetreadperm']) { ?>
-<div id="extra_readperm_c" class="exfm cl" style="display:none">
-<table cellspacing="0" cellpadding="0">
-<tr>
-<td class="xw1">阅读权限</td>
-<td>
-<select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
-<option value="">不限</option><?php if(is_array($_G['cache']['groupreadaccess'])) foreach($_G['cache']['groupreadaccess'] as $val) { ?><option value="<?php echo $val['readaccess'];?>" title="阅读权限: <?php echo $val['readaccess'];?>"<?php if($thread['readperm'] == $val['readaccess']) { ?> selected="selected"<?php } ?>><?php echo $val['grouptitle'];?></option>
-<?php } ?>
-<option value="255"<?php if($thread['readperm'] == 255) { ?> selected="selected"<?php } ?>>最高权限</option>
-</select>
-<span class="xg1">阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读</span>
-</td>
-</tr>
-</table>
-</div>
-<?php } if($_G['group']['maxprice'] && !$special) { ?>
-<div id="extra_price_c" class="exfm cl" style="display:none">
-售价:
-<input type="text" id="price" name="price" class="px pxs" value="<?php echo $thread['pricedisplay'];?>" onblur="extraCheck(2)" /> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>
-<span class="xg1">(最高 <?php echo $_G['group']['maxprice'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>)</span>
-<?php if($_G['group']['maxprice'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { if($_G['setting']['maxincperthread']) { ?><p class="xg1">主题出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>&nbsp;&nbsp;&nbsp;&nbsp;</p><?php } if($_G['setting']['maxchargespan']) { ?><p class="xg1">主题最多能销售 <?php echo $_G['setting']['maxchargespan'];?> 个小时<?php if($_GET['action'] == 'edit' && $freechargehours) { ?>,本主题还能销售 <?php echo $freechargehours;?> 个小时<?php } ?></p><?php } } ?>
-</div>
-<?php } if($_G['group']['allowposttag']) { ?>
-<div id="extra_tag_c" class="exfm cl" style="display: none;">
-<table cellspacing="0" cellpadding="0">
-<tr>
-<td class="xw1">标签</td>
-<td>
-<input type="text" class="px vm" size="60" id="tags" name="tags" value="<?php echo $postinfo['tag'];?>" onblur="extraCheck(4)" />
-<a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">自动获取</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">选择标签</a>
-</td>
-</tr>
-<tr>
-<td></td>
-<td>
-<p class="xg1">用逗号或空格隔开多个标签,最多可填写 5 个</p><?php $recent_use_tag = recent_use_tag();?><?php if($recent_use_tag) { ?>
-<p class="mtn">最近使用标签:&nbsp;<?php $tagi = 0;?><?php if(is_array($recent_use_tag)) foreach($recent_use_tag as $var) { if($tagi) { ?>, <?php } ?><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '<?php echo $var;?>' : $('tags').value += ',<?php echo $var;?>';extraCheck(4);doane();"><?php echo $var;?></a><?php $tagi++;?><?php } ?>
-</p>
-<?php } ?>
-</td>
-</tr>
-</table>
-</div>
-<?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
-<div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
-<div class="sinf sppoll z">
-<dl>
-<dt><span style="width: 4em">&nbsp;</span></dt>
-<dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" <?php if($_GET['action'] == 'edit' && getstatus($thread['status'], 3)) { ?>disabled="disabled" checked="checked"<?php } ?> onclick="extraCheck(3)" /> 设为抢楼主题</label></dd>
-<dt><label>抢楼时间:</label></dt>
-<dd>
-<div>
-<input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $postinfo['rush']['starttimefrom'];?>" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="<?php echo $postinfo['rush']['starttimeto'];?>" onkeyup="$('rushreply').checked = true;" />
-</div>
-</dd>
-<dt><label>奖励楼层:</label></dt>
-<dd>
-<input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="<?php echo $postinfo['rush']['rewardfloor'];?>" onkeyup="$('rushreply').checked = true;" />
-<p class="xg1">多楼层用英文逗号隔开,*号可匹配任意数或空值,如:8,88,*88</p>
-</dd>
-</dl>
-</div>
-<div class="sadd z">
-<dl>
-<dt>&nbsp;</dt>
-<dd>&nbsp;</dd>
-<dt><label for="stopfloor">回帖限制: </label></dt>
-<dd>
-<input type="text" name="replylimit" id="replylimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['replylimit'];?>" onkeyup="$('rushreply').checked = true;" /> <span class="xg1">每个用户回帖次数上限</span>
-</dd>
-<dt><label for="stopfloor">截止楼层:</label></dt>
-<dd>
-<input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['stopfloor'];?>" onkeyup="$('rushreply').checked = true;" />
-</dd>
-<dt><label for="creditlimit"><?php if($_G['setting']['creditstransextra']['11']) { ?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?><?php } else { ?>积分<?php } ?>下限:</label></dt>
-<dd>
-<input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['creditlimit'];?>" onkeyup="$('rushreply').checked = true;" />
-<p class="xg1"><?php if($_G['setting']['creditstransextra']['11']) { ?>(<?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?>)<?php } else { ?>总积分<?php } ?>大于此设置才能参与抢楼,可不填</p>
-</dd>
-</dl>
-</div>
-</div>
-<?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
-<div class="exfm cl" id="extra_pubdate_c" style="display: none;">
-<label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {$('cronpublishdate').click();doane(event,false);};extraCheck(5);hidenFollowBtn(this.checked);" id="cronpublish" value="true" class="pc"<?php if($cronpublish) { ?> checked="checked"<?php } ?> />定时发布</label>
-<input type="text" name="cronpublishdate" id="cronpublishdate" class="px" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="<?php echo $cronpublishdate;?>" onchange="if(this.value) $('cronpublish').checked = true;">
-</div>
-<?php } } ?>
+                    <div id="rstnotice" class="ntc_l bbs" style="display:none">
+                        <a href="javascript:;" title="清除内容" class="d y" onclick="userdataoption(0)">close</a>您有上次未提交成功的数据 <a class="xi2" href="javascript:;" onclick="userdataoption(1)"><strong>恢复数据</strong></a>
+                    </div>
 
-<div class="exfm cl" id="extra_additional_c" style="display: none;">
-<table cellspacing="0" cellpadding="0">
-<tr>
-<td class="xw1" valign="top">基本属性</td>
-<td>
-<?php if($_GET['action'] != 'edit') { if($_G['group']['allowanonymous']) { ?><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" />使用匿名发帖</label><?php } } else { if($_G['group']['allowanonymous'] || (!$_G['group']['allowanonymous'] && $orig['anonymous'])) { ?><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" <?php if($orig['anonymous']) { ?>checked="checked"<?php } ?> />使用匿名发帖</label><?php } } if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?>
-<label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"<?php if($thread['hiddenreplies']) { ?> checked="checked"<?php } ?> value="1">回帖仅作者可见</label>
-<?php } if($_G['uid'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) && $special != 3) { ?>
-<label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" <?php echo $ordertypecheck;?> />回帖倒序排列</label>
-<?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { ?>
-<label for="allownoticeauthor"><input type="checkbox" name="allownoticeauthor" id="allownoticeauthor" class="pc" value="1"<?php if($allownoticeauthor) { ?> checked="checked"<?php } ?> />接收回复通知</label>
-<?php } if($_GET['action'] != 'edit' && helper_access::check_module('feed') && $_G['forum']['allowfeed']) { ?>
-<label for="addfeed"><input type="checkbox" name="addfeed" id="addfeed" class="pc" value="1" <?php echo $addfeedcheck;?>>发送动态</label>
-<?php } ?>
-<label for="usesig"><input type="checkbox" name="usesig" id="usesig" class="pc" value="1" <?php if(!$_G['group']['maxsigsize']) { ?>disabled <?php } else { ?><?php echo $usesigcheck;?> <?php } ?>/>使用个人签名</label>
-</td>
-</tr>
-<tr>
-<td class="xw1" valign="top">文本特性</td>
-<td>
-<?php if(($_G['forum']['allowhtml'] || ($_GET['action'] == 'edit' && ($orig['htmlon'] & 1))) && $_G['group']['allowhtml']) { ?>
-<label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" <?php echo $htmloncheck;?> />HTML 代码</label>
-<?php } else { ?>
-<label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="0" <?php echo $htmloncheck;?> disabled="disabled" />HTML 代码</label>
-<?php } ?>
-<label for="allowimgcode"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"<?php if($_G['forum']['allowimgcode']) { ?> checked="checked"<?php } ?> />[img] 代码</label>
-<?php if($_G['forum']['allowimgcode']) { ?>
-<label for="allowimgurl"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" />解析图片链接</label>
-<?php } ?>
-<label for="parseurloff"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" <?php echo $urloffcheck;?> />禁用链接识别</label>
-<label for="smileyoff"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" <?php echo $smileyoffcheck;?> />禁用表情</label>
-<label for="bbcodeoff"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" <?php echo $codeoffcheck;?> />禁用编辑器代码</label>
-<?php if($_G['group']['allowimgcontent']) { ?>
-<label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="1" <?php echo $imgcontentcheck;?> onclick="switchEditor(this.checked?0:1);$('e_switchercheck').checked=this.checked;" />内容生成图片</label>
-<?php } else { ?>
-<label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="0" <?php echo $imgcontentcheck;?> disabled="disabled"/>内容生成图片</label>
-<?php } ?>
-</td>
-</tr>
-<?php if($_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts'])) { if($_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts']) && ($_G['group']['allowstickthread'] || $_G['group']['allowdigestthread'])) { ?>
-<tr>
-<td class="xw1" valign="top">管理操作</td>
-<td>
-<?php if($_G['group']['allowstickthread']) { ?>
-<label for="sticktopic"><input type="checkbox" name="sticktopic" id="sticktopic" class="pc" value="1" <?php echo $stickcheck;?> />主题置顶</label>
-<?php } if($_G['group']['allowdigestthread']) { ?>
-<label for="addtodigest"><input type="checkbox" name="addtodigest" id="addtodigest" class="pc" value="1" <?php echo $digestcheck;?> />精华帖子</label>
-<?php } ?>
-</td>
-</tr>
-<?php } } elseif($_GET['action'] == 'edit' && $_G['forum_auditstatuson']) { ?>
-<tr>
-<td class="xw1" valign="top">管理操作</td>
-<td>
-<label for="audit"><input type="checkbox" name="audit" id="audit" class="pc" value="1">通过审核</label>
-</td>
-</tr>
-<?php } if($_GET['action'] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']) { ?>
-<tr>
-<td class="xw1" valign="top">删除本帖</td>
-<td>
-<button type="button" class="pn xi1" onclick="deleteThread();"><span>删除本帖</span></button>
-<input type="hidden" name="delete" id="delete" value="0" />
-删除后无法撤销<?php if($thread['special'] == 3) { ?>, ,返还悬赏费用,不退还手续费<?php } ?>
-</td>
-</tr>
-<?php } ?>
-</table>
-</div>
-
-<?php if(!empty($_G['setting']['pluginhooks']['post_attribute_extra_body'])) echo $_G['setting']['pluginhooks']['post_attribute_extra_body'];?>
-</div>
-</div>
-<?php if($_GET['action'] != 'edit') { ?>
-<div id="seccheck">
-<?php if($secqaacheck || $seccodecheck) { ?><?php
-$sectpl = <<<EOF
-<sec> <span id="sec<hash>" onclick="showMenu(
-EOF;
- if(!empty($_G['gp_infloat'])) { 
-$sectpl .= <<<EOF
-{'ctrlid':this.id,'win':'{$_GET['handlekey']}'}
-EOF;
- } else { 
-$sectpl .= <<<EOF
-this.id
-EOF;
- } 
-$sectpl .= <<<EOF
-)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
-EOF;
-?>
-<div class="mtm"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
-$sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
-<span id="secqaa_q<?php echo $sechash;?>"></span>		
-<script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
-<?php } if($seccodecheck) { ?>
-<span id="seccode_c<?php echo $sechash;?>"></span>		
-<script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
-<?php } ?></div><?php } ?>
-</div>
-<?php } ?>
-
-<div class="mtm mbm pnpost">
-<a href="home.php?mod=spacecp&amp;ac=credit&amp;op=rule&amp;fid=<?php echo $_G['fid'];?>" class="y" target="_blank">本版积分规则</a>
-<button type="submit" id="postsubmit" class="pn pnc" value="true" name="<?php if($_GET['action'] == 'newthread') { ?>topicsubmit<?php } elseif($_GET['action'] == 'reply') { ?>replysubmit<?php } elseif($_GET['action'] == 'edit') { ?>editsubmit<?php } ?>">
-<?php if($_GET['action'] == 'newthread') { if($special == 0) { ?><span>发表帖子</span>
-<?php } elseif($special == 1) { ?><span>发起投票</span>
-<?php } elseif($special == 2) { ?><span>出售商品</span>
-<?php } elseif($special == 3) { ?><span>发布悬赏</span>
-<?php } elseif($special == 4) { ?><span>发起活动</span>
-<?php } elseif($special == 5) { ?><span>发起辩论</span>
-<?php } elseif($special == 127) { ?>
-<span><?php if($buttontext) { ?><?php echo $buttontext;?><?php } else { ?>发表帖子<?php } ?></span>
-<?php } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) { ?><span>添加商品</span>
-<?php } elseif($_GET['action'] == 'reply') { ?><span>参与/回复主题</span>
-<?php } elseif($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?>
-<span>发表帖子</span>
-<?php } elseif($_GET['action'] == 'edit') { ?><span>保存</span>
-<?php } ?>
-</button>
-<?php if($_G['uid']) { ?>
-<input type="hidden" id="postsave" name="save" value="" />
-<?php if($_GET['action'] == 'newthread' && !$modnewthreads || $_GET['action'] == 'edit' && $isfirstpost && !$modnewreplies && $thread['displayorder'] == -4) { ?>
-<button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>保存草稿</em></button>
-<?php } } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_btn_extra'])) echo $_G['setting']['pluginhooks']['post_btn_extra'];?>
-<?php if(helper_access::check_module('follow') && $_GET['action'] != 'edit') { ?>
-<span id="adddynamicspan"><label><input type="checkbox" name="adddynamic" id="adddynamic" value="true" class="pc" <?php if($_G['forum']['allowfeed'] && !$_G['tid'] && empty($_G['forum']['viewperm'])) { ?>checked="checked"<?php } ?> />转播给听众</label></span>
-<?php } if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) { ?>
-<span>
+                    <div class="area">
+                        <textarea name="<?php echo $editor['textarea'];?>" id="<?php echo $editorid;?>_textarea" class="pt" rows="15" tabindex="2"><?php echo $editor['value'];?></textarea>
+                    </div><link rel="stylesheet" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo STYLEID;?>_editor.css?<?php echo VERHASH;?>' />
+                    <script src="<?php echo $_G['setting']['jspath'];?>editor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                    <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                    <script type="text/javascript">
+                        var editorid = '<?php echo $editorid;?>';
+                        var textobj = $(editorid + '_textarea');
+                        var wysiwyg = (BROWSER.ie || BROWSER.firefox || (BROWSER.opera >= 9)) && parseInt('<?php echo $editor['editormode'];?>') == 1 ? 1 : 0;
+                        var allowswitcheditor = parseInt('<?php echo $editor['allowswitcheditor'];?>');
+                        var allowhtml = parseInt('<?php echo $editor['allowhtml'];?>');
+                        var allowsmilies = parseInt('<?php echo $editor['allowsmilies'];?>');
+                        var allowbbcode = parseInt('<?php echo $editor['allowbbcode'];?>');
+                        var allowimgcode = parseInt('<?php echo $editor['allowimgcode'];?>');
+                        var simplodemode = parseInt('<?php if($editor['simplemode'] > 0) { ?>1<?php } else { ?>0<?php } ?>');
+                        var fontoptions = new Array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312");
+                        var smcols = <?php echo $_G['setting']['smcols'];?>;
+                        var custombbcodes = new Array();
+                        <?php if($_G['cache']['bbcodes_display'][$_G['groupid']]) { if(is_array($_G['cache']['bbcodes_display'][$_G['groupid']])) foreach($_G['cache']['bbcodes_display'][$_G['groupid']] as $tag => $bbcode) { ?>custombbcodes["<?php echo $tag;?>"] = {'prompt' : '<?php echo $bbcode['prompt'];?>'};
+                        <?php } } ?>
+                    </script>
+
+                    <div id="<?php echo $editorid;?>_bbar" class="bbar">
+                        <em id="<?php echo $editorid;?>_tip"></em>
+                        <span id="<?php echo $editorid;?>_svdsecond"></span>
+                        <a href="javascript:;" onclick="discuzcode('svd');return false;" id="<?php echo $editorid;?>_svd">保存数据</a> |
+                        <a href="javascript:;" onclick="discuzcode('rst');return false;" id="<?php echo $editorid;?>_rst">恢复数据</a> &nbsp;&nbsp;
+                        <?php if($editor['allowchecklength']) { ?>
+                            <a href="javascript:;" onclick="discuzcode('chck');return false;" id="<?php echo $editorid;?>_chck">字数检查</a> |
+                        <?php } if($editor['allowtopicreset']) { ?>
+                            <a href="javascript:;" onclick="discuzcode('tpr');return false;" id="<?php echo $editorid;?>_tpr">清除内容</a> &nbsp;&nbsp;
+                        <?php } if($editor['allowresize']) { ?>
+                            <span id="<?php echo $editorid;?>_resize"><a href="javascript:;" onclick="editorsize('+');return false;">加大编辑框</a> | <a href="javascript:;" onclick="editorsize('-');return false;">缩小编辑框</a><img src="<?php echo STATICURL;?>image/editor/resize.gif" onmousedown="editorresize(event)" /></span>
+                        <?php } ?>
+                    </div></div>
+                <?php if(!empty($_G['setting']['pluginhooks']['post_middle'])) echo $_G['setting']['pluginhooks']['post_middle'];?><div id="post_extra" class="ptm cl">
+                    <div id="post_extra_tb" class="cl" onselectstart="return false">
+                        <label id="extra_additional_b" onclick="showExtra('extra_additional')"><span id="extra_additional_chk">附加选项</span></label>
+                        <?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { if($_G['group']['allowsetreadperm']) { ?>
+                            <label id="extra_readperm_b" onclick="showExtra('extra_readperm')"><span id="extra_readperm_chk">阅读权限</span></label>
+                        <?php } if($_G['group']['allowreplycredit'] && !in_array($special, array(2, 3))) { if($_GET['action'] == 'newthread') { $extcreditstype = $_G['setting']['creditstransextra'][10];?><?php } else { $extcreditstype = $replycredit_rule['extcreditstype'] ? $replycredit_rule['extcreditstype'] : $_G['setting']['creditstransextra'][10];?><?php } $userextcredit = getuserprofile('extcredits'.$extcreditstype);?><?php if(($_GET['action'] == 'newthread' && $userextcredit > 0) || ($_GET['action'] == 'edit' && $isorigauthor && isfirstpost)) { ?>
+                            <label id="extra_replycredit_b" onclick="showExtra('extra_replycredit')"><span id="extra_replycredit_chk">回帖奖励</span></label>
+                        <?php } } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
+                            <label id="extra_rushreplyset_b" onclick="showExtra('extra_rushreplyset')"><span id="extra_rushreplyset_chk">抢楼主题</span></label>
+                        <?php } if($_G['group']['maxprice'] && !$special) { ?>
+                            <label id="extra_price_b" onclick="showExtra('extra_price')"><span id="extra_price_chk">主题售价</span></label>
+                        <?php } if($_G['group']['allowposttag']) { ?>
+                            <label id="extra_tag_b" onclick="showExtra('extra_tag')"><span id="extra_tag_chk">主题标签</span></label>
+                        <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
+                            <label id="extra_pubdate_b" onclick="showExtra('extra_pubdate')"><span id="extra_pubdate_chk">定时发布</span></label>
+                        <?php } } ?>
+                        <?php if(!empty($_G['setting']['pluginhooks']['post_attribute_extra'])) echo $_G['setting']['pluginhooks']['post_attribute_extra'];?>
+                    </div>
+
+                    <div id="post_extra_c">
+                        <?php if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { if(!empty($userextcredit)) { ?>
+                            <div id="extra_replycredit_c" class="exfm cl" style="display: none;">
+                                <div><label>每次回帖奖励: <input type="text" name="replycredit_extcredits" id="replycredit_extcredits" class="px pxs vm" value="<?php if($replycredit_rule['extcredits'] && $thread['replycredit'] > 0) { ?><?php echo $replycredit_rule['extcredits'];?><?php } else { ?>0<?php } ?>" onkeyup="javascript:getreplycredit();" onblur="extraCheck(0)" /> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?></label><span class="xg1">(留空或填 0 为不奖励)</span> , <label>奖励 <input type="text" name="replycredit_times" id="replycredit_times" class="px pxs vm" value="<?php if($replycredit_rule['lasttimes']) { ?><?php echo $replycredit_rule['lasttimes'];?><?php } else { ?>1<?php } ?>" onkeyup="javascript:getreplycredit();"  onblur="extraCheck(0)" /> 次</label>, <label>每人最多可获得 <select id="replycredit_membertimes" name="replycredit_membertimes" class="ps vm"><?php for($i=1;$i<11;$i++) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['membertimes'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> 次</label>, <label>中奖率 <select id="replycredit_random" name="replycredit_random" class="ps vm">
+                                            <?php for($i=100;$i>9;$i=$i-10) {;?><option value="<?php echo $i;?>"<?php if($replycredit_rule['random'] == $i) { ?> selected="selected"<?php } ?>><?php echo $i;?></option><?php };?></select> %</label></div>
+                                <div class="xg1">回帖奖励总额: <span id="replycredit_sum"><?php if($thread['replycredit']) { ?><?php echo $thread['replycredit'];?><?php } else { ?>0<?php } ?></span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?><?php if($thread['replycredit']) { ?><span class="xg1">(本帖尚有 <?php echo $thread['replycredit'];?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?><?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?>)</span><?php } ?>, <span id="replycredit">税后支付 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> 0</span> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?>, 您有 <?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> <?php echo $userextcredit;?> <?php echo $_G['setting']['extcredits'][$extcreditstype]['unit'];?></div>
+                            </div>
+                        <?php } if($_G['group']['allowsetreadperm']) { ?>
+                            <div id="extra_readperm_c" class="exfm cl" style="display:none">
+                                <table cellspacing="0" cellpadding="0">
+                                    <tr>
+                                        <td class="xw1">阅读权限</td>
+                                        <td>
+                                            <select name="readperm" id="readperm" class="ps" style="width:90px" onchange="extraCheck(1)">
+                                                <option value="">不限</option><?php if(is_array($_G['cache']['groupreadaccess'])) foreach($_G['cache']['groupreadaccess'] as $val) { ?><option value="<?php echo $val['readaccess'];?>" title="阅读权限: <?php echo $val['readaccess'];?>"<?php if($thread['readperm'] == $val['readaccess']) { ?> selected="selected"<?php } ?>><?php echo $val['grouptitle'];?></option>
+                                                <?php } ?>
+                                                <option value="255"<?php if($thread['readperm'] == 255) { ?> selected="selected"<?php } ?>>最高权限</option>
+                                            </select>
+                                            <span class="xg1">阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读</span>
+                                        </td>
+                                    </tr>
+                                </table>
+                            </div>
+                        <?php } if($_G['group']['maxprice'] && !$special) { ?>
+                            <div id="extra_price_c" class="exfm cl" style="display:none">
+                                售价:
+                                <input type="text" id="price" name="price" class="px pxs" value="<?php echo $thread['pricedisplay'];?>" onblur="extraCheck(2)" /> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>
+                                <span class="xg1">(最高 <?php echo $_G['group']['maxprice'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>)</span>
+                                <?php if($_G['group']['maxprice'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { if($_G['setting']['maxincperthread']) { ?><p class="xg1">主题出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>&nbsp;&nbsp;&nbsp;&nbsp;</p><?php } if($_G['setting']['maxchargespan']) { ?><p class="xg1">主题最多能销售 <?php echo $_G['setting']['maxchargespan'];?> 个小时<?php if($_GET['action'] == 'edit' && $freechargehours) { ?>,本主题还能销售 <?php echo $freechargehours;?> 个小时<?php } ?></p><?php } } ?>
+                            </div>
+                        <?php } if($_G['group']['allowposttag']) { ?>
+                            <div id="extra_tag_c" class="exfm cl" style="display: none;">
+                                <table cellspacing="0" cellpadding="0">
+                                    <tr>
+                                        <td class="xw1">标签</td>
+                                        <td>
+                                            <input type="text" class="px vm" size="60" id="tags" name="tags" value="<?php echo $postinfo['tag'];?>" onblur="extraCheck(4)" />
+                                            <a href="javascript:;" id="clickbutton[]" class="xi2" onclick="relatekw('-1','-1');doane();">自动获取</a><span class="pipe">|</span><a href="javascript:;" id="choosetag" class="xi2" onclick="showWindow(this.id, 'forum.php?mod=tag', 'get', 0)">选择标签</a>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td></td>
+                                        <td>
+                                            <p class="xg1">用逗号或空格隔开多个标签,最多可填写 5 个</p><?php $recent_use_tag = recent_use_tag();?><?php if($recent_use_tag) { ?>
+                                                <p class="mtn">最近使用标签:&nbsp;<?php $tagi = 0;?><?php if(is_array($recent_use_tag)) foreach($recent_use_tag as $var) { if($tagi) { ?>, <?php } ?><a href="javascript:;" class="xi2" onclick="$('tags').value == '' ? $('tags').value += '<?php echo $var;?>' : $('tags').value += ',<?php echo $var;?>';extraCheck(4);doane();"><?php echo $var;?></a><?php $tagi++;?><?php } ?>
+                                                </p>
+                                            <?php } ?>
+                                        </td>
+                                    </tr>
+                                </table>
+                            </div>
+                        <?php } if(($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
+                            <div class="exfm cl" id="extra_rushreplyset_c" style="display: none;">
+                                <div class="sinf sppoll z">
+                                    <dl>
+                                        <dt><span style="width: 4em">&nbsp;</span></dt>
+                                        <dd><label for="rushreply"><input type="checkbox" name="rushreply" id="rushreply" class="pc vm" value="1" <?php if($_GET['action'] == 'edit' && getstatus($thread['status'], 3)) { ?>disabled="disabled" checked="checked"<?php } ?> onclick="extraCheck(3)" /> 设为抢楼主题</label></dd>
+                                        <dt><label>抢楼时间:</label></dt>
+                                        <dd>
+                                            <div>
+                                                <input type="text" name="rushreplyfrom" id="rushreplyfrom" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $postinfo['rush']['starttimefrom'];?>" onkeyup="$('rushreply').checked = true;" /><span> ~ </span><input type="text" onclick="showcalendar(event, this, true)" autocomplete="off" id="rushreplyto" name="rushreplyto" class="px" value="<?php echo $postinfo['rush']['starttimeto'];?>" onkeyup="$('rushreply').checked = true;" />
+                                            </div>
+                                        </dd>
+                                        <dt><label>奖励楼层:</label></dt>
+                                        <dd>
+                                            <input type="text" name="rewardfloor" id="rewardfloor" class="px oinf" value="<?php echo $postinfo['rush']['rewardfloor'];?>" onkeyup="$('rushreply').checked = true;" />
+                                            <p class="xg1">多楼层用英文逗号隔开,*号可匹配任意数或空值,如:8,88,*88</p>
+                                        </dd>
+                                    </dl>
+                                </div>
+                                <div class="sadd z">
+                                    <dl>
+                                        <dt>&nbsp;</dt>
+                                        <dd>&nbsp;</dd>
+                                        <dt><label for="stopfloor">回帖限制: </label></dt>
+                                        <dd>
+                                            <input type="text" name="replylimit" id="replylimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['replylimit'];?>" onkeyup="$('rushreply').checked = true;" /> <span class="xg1">每个用户回帖次数上限</span>
+                                        </dd>
+                                        <dt><label for="stopfloor">截止楼层:</label></dt>
+                                        <dd>
+                                            <input type="text" name="stopfloor" id="stopfloor" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['stopfloor'];?>" onkeyup="$('rushreply').checked = true;" />
+                                        </dd>
+                                        <dt><label for="creditlimit"><?php if($_G['setting']['creditstransextra']['11']) { ?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?><?php } else { ?>积分<?php } ?>下限:</label></dt>
+                                        <dd>
+                                            <input type="text" name="creditlimit" id="creditlimit" class="px" autocomplete="off" value="<?php echo $postinfo['rush']['creditlimit'];?>" onkeyup="$('rushreply').checked = true;" />
+                                            <p class="xg1"><?php if($_G['setting']['creditstransextra']['11']) { ?>(<?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['11']]['title'];?>)<?php } else { ?>总积分<?php } ?>大于此设置才能参与抢楼,可不填</p>
+                                        </dd>
+                                    </dl>
+                                </div>
+                            </div>
+                        <?php } if($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) { ?>
+                            <div class="exfm cl" id="extra_pubdate_c" style="display: none;">
+                                <label><input type="checkbox" name="cronpublish" onclick="if(this.checked) {$('cronpublishdate').click();doane(event,false);};extraCheck(5);hidenFollowBtn(this.checked);" id="cronpublish" value="true" class="pc"<?php if($cronpublish) { ?> checked="checked"<?php } ?> />定时发布</label>
+                                <input type="text" name="cronpublishdate" id="cronpublishdate" class="px" onclick="showcalendar(event, this, true, false, false, true);" autocomplete="off" value="<?php echo $cronpublishdate;?>" onchange="if(this.value) $('cronpublish').checked = true;">
+                            </div>
+                        <?php } } ?>
+
+                        <div class="exfm cl" id="extra_additional_c" style="display: none;">
+                            <table cellspacing="0" cellpadding="0">
+                                <tr>
+                                    <td class="xw1" valign="top">基本属性</td>
+                                    <td>
+                                        <?php if($_GET['action'] != 'edit') { if($_G['group']['allowanonymous']) { ?><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" />使用匿名发帖</label><?php } } else { if($_G['group']['allowanonymous'] || (!$_G['group']['allowanonymous'] && $orig['anonymous'])) { ?><label for="isanonymous"><input type="checkbox" name="isanonymous" id="isanonymous" class="pc" value="1" <?php if($orig['anonymous']) { ?>checked="checked"<?php } ?> />使用匿名发帖</label><?php } } if($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) { ?>
+                                            <label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"<?php if($thread['hiddenreplies']) { ?> checked="checked"<?php } ?> value="1">回帖仅作者可见</label>
+                                        <?php } if($_G['uid'] && ($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost) && $special != 3) { ?>
+                                            <label for="ordertype"><input type="checkbox" name="ordertype" id="ordertype" class="pc" value="1" <?php echo $ordertypecheck;?> />回帖倒序排列</label>
+                                        <?php } if(($_GET['action'] == 'newthread' || $_GET['action'] == 'edit' && $isfirstpost)) { ?>
+                                            <label for="allownoticeauthor"><input type="checkbox" name="allownoticeauthor" id="allownoticeauthor" class="pc" value="1"<?php if($allownoticeauthor) { ?> checked="checked"<?php } ?> />接收回复通知</label>
+                                        <?php } if($_GET['action'] != 'edit' && helper_access::check_module('feed') && $_G['forum']['allowfeed']) { ?>
+                                            <label for="addfeed"><input type="checkbox" name="addfeed" id="addfeed" class="pc" value="1" <?php echo $addfeedcheck;?>>发送动态</label>
+                                        <?php } ?>
+                                        <label for="usesig"><input type="checkbox" name="usesig" id="usesig" class="pc" value="1" <?php if(!$_G['group']['maxsigsize']) { ?>disabled <?php } else { ?><?php echo $usesigcheck;?> <?php } ?>/>使用个人签名</label>
+                                    </td>
+                                </tr>
+                                <tr>
+                                    <td class="xw1" valign="top">文本特性</td>
+                                    <td>
+                                        <?php if(($_G['forum']['allowhtml'] || ($_GET['action'] == 'edit' && ($orig['htmlon'] & 1))) && $_G['group']['allowhtml']) { ?>
+                                            <label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" <?php echo $htmloncheck;?> />HTML 代码</label>
+                                        <?php } else { ?>
+                                            <label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="0" <?php echo $htmloncheck;?> disabled="disabled" />HTML 代码</label>
+                                        <?php } ?>
+                                        <label for="allowimgcode"><input type="checkbox" id="allowimgcode" class="pc" disabled="disabled"<?php if($_G['forum']['allowimgcode']) { ?> checked="checked"<?php } ?> />[img] 代码</label>
+                                        <?php if($_G['forum']['allowimgcode']) { ?>
+                                            <label for="allowimgurl"><input type="checkbox" id="allowimgurl" class="pc" checked="checked" />解析图片链接</label>
+                                        <?php } ?>
+                                        <label for="parseurloff"><input type="checkbox" name="parseurloff" id="parseurloff" class="pc" value="1" <?php echo $urloffcheck;?> />禁用链接识别</label>
+                                        <label for="smileyoff"><input type="checkbox" name="smileyoff" id="smileyoff" class="pc" value="1" <?php echo $smileyoffcheck;?> />禁用表情</label>
+                                        <label for="bbcodeoff"><input type="checkbox" name="bbcodeoff" id="bbcodeoff" class="pc" value="1" <?php echo $codeoffcheck;?> />禁用编辑器代码</label>
+                                        <?php if($_G['group']['allowimgcontent']) { ?>
+                                            <label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="1" <?php echo $imgcontentcheck;?> onclick="switchEditor(this.checked?0:1);$('e_switchercheck').checked=this.checked;" />内容生成图片</label>
+                                        <?php } else { ?>
+                                            <label for="imgcontent"><input type="checkbox" name="imgcontent" id="imgcontent" class="pc" value="0" <?php echo $imgcontentcheck;?> disabled="disabled"/>内容生成图片</label>
+                                        <?php } ?>
+                                    </td>
+                                </tr>
+                                <?php if($_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts'])) { if($_GET['action'] == 'newthread' && $_G['forum']['ismoderator'] && ($_G['group']['allowdirectpost'] || !$_G['forum']['modnewposts']) && ($_G['group']['allowstickthread'] || $_G['group']['allowdigestthread'])) { ?>
+                                    <tr>
+                                        <td class="xw1" valign="top">管理操作</td>
+                                        <td>
+                                            <?php if($_G['group']['allowstickthread']) { ?>
+                                                <label for="sticktopic"><input type="checkbox" name="sticktopic" id="sticktopic" class="pc" value="1" <?php echo $stickcheck;?> />主题置顶</label>
+                                            <?php } if($_G['group']['allowdigestthread']) { ?>
+                                                <label for="addtodigest"><input type="checkbox" name="addtodigest" id="addtodigest" class="pc" value="1" <?php echo $digestcheck;?> />精华帖子</label>
+                                            <?php } ?>
+                                        </td>
+                                    </tr>
+                                <?php } } elseif($_GET['action'] == 'edit' && $_G['forum_auditstatuson']) { ?>
+                                    <tr>
+                                        <td class="xw1" valign="top">管理操作</td>
+                                        <td>
+                                            <label for="audit"><input type="checkbox" name="audit" id="audit" class="pc" value="1">通过审核</label>
+                                        </td>
+                                    </tr>
+                                <?php } if($_GET['action'] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']) { ?>
+                                    <tr>
+                                        <td class="xw1" valign="top">删除本帖</td>
+                                        <td>
+                                            <button type="button" class="pn xi1" onclick="deleteThread();"><span>删除本帖</span></button>
+                                            <input type="hidden" name="delete" id="delete" value="0" />
+                                            删除后无法撤销<?php if($thread['special'] == 3) { ?>, ,返还悬赏费用,不退还手续费<?php } ?>
+                                        </td>
+                                    </tr>
+                                <?php } ?>
+                            </table>
+                        </div>
+
+                        <?php if(!empty($_G['setting']['pluginhooks']['post_attribute_extra_body'])) echo $_G['setting']['pluginhooks']['post_attribute_extra_body'];?>
+                    </div>
+                </div>
+                <?php if($_GET['action'] != 'edit') { ?>
+                    <div id="seccheck">
+                        <?php if($secqaacheck || $seccodecheck) { ?><?php
+                            $sectpl = <<<EOF
+<sec> <span id="sec<hash>" onclick="showMenu(
+EOF;
+                            if(!empty($_G['gp_infloat'])) {
+                                $sectpl .= <<<EOF
+{'ctrlid':this.id,'win':'{$_GET['handlekey']}'}
+EOF;
+                            } else {
+                                $sectpl .= <<<EOF
+this.id
+EOF;
+                            }
+                            $sectpl .= <<<EOF
+)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
+EOF;
+                            ?>
+                            <div class="mtm"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
+                            $sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
+                                <span id="secqaa_q<?php echo $sechash;?>"></span>
+                                <script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
+                            <?php } if($seccodecheck) { ?>
+                                <span id="seccode_c<?php echo $sechash;?>"></span>
+                                <script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
+                            <?php } ?></div><?php } ?>
+                    </div>
+                <?php } ?>
+
+                <div class="mtm mbm pnpost">
+                    <a href="home.php?mod=spacecp&amp;ac=credit&amp;op=rule&amp;fid=<?php echo $_G['fid'];?>" class="y" target="_blank">本版积分规则</a>
+                    <button type="submit" id="postsubmit" class="pn pnc" value="true" name="<?php if($_GET['action'] == 'newthread') { ?>topicsubmit<?php } elseif($_GET['action'] == 'reply') { ?>replysubmit<?php } elseif($_GET['action'] == 'edit') { ?>editsubmit<?php } ?>">
+                        <?php if($_GET['action'] == 'newthread') { if($special == 0) { ?><span>发表帖子</span>
+                        <?php } elseif($special == 1) { ?><span>发起投票</span>
+                        <?php } elseif($special == 2) { ?><span>出售商品</span>
+                        <?php } elseif($special == 3) { ?><span>发布悬赏</span>
+                        <?php } elseif($special == 4) { ?><span>发起活动</span>
+                        <?php } elseif($special == 5) { ?><span>发起辩论</span>
+                        <?php } elseif($special == 127) { ?>
+                            <span><?php if($buttontext) { ?><?php echo $buttontext;?><?php } else { ?>发表帖子<?php } ?></span>
+                        <?php } } elseif($_GET['action'] == 'reply' && !empty($_GET['addtrade'])) { ?><span>添加商品</span>
+                        <?php } elseif($_GET['action'] == 'reply') { ?><span>参与/回复主题</span>
+                        <?php } elseif($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4) { ?>
+                            <span>发表帖子</span>
+                        <?php } elseif($_GET['action'] == 'edit') { ?><span>保存</span>
+                        <?php } ?>
+                    </button>
+                    <?php if($_G['uid']) { ?>
+                        <input type="hidden" id="postsave" name="save" value="" />
+                        <?php if($_GET['action'] == 'newthread' && !$modnewthreads || $_GET['action'] == 'edit' && $isfirstpost && !$modnewreplies && $thread['displayorder'] == -4) { ?>
+                            <button type="button" id="postsubmit" class="pn" value="true" onclick="$('postsave').value = 1;$('postsubmit').click();"><em>保存草稿</em></button>
+                        <?php } } ?>
+                    <?php if(!empty($_G['setting']['pluginhooks']['post_btn_extra'])) echo $_G['setting']['pluginhooks']['post_btn_extra'];?>
+                    <?php if(helper_access::check_module('follow') && $_GET['action'] != 'edit') { ?>
+                        <span id="adddynamicspan"><label><input type="checkbox" name="adddynamic" id="adddynamic" value="true" class="pc" <?php if($_G['forum']['allowfeed'] && !$_G['tid'] && empty($_G['forum']['viewperm'])) { ?>checked="checked"<?php } ?> />转播给听众</label></span>
+                    <?php } if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) { ?>
+                        <span>
 将此主题同步到:
-<?php if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) echo $_G['setting']['pluginhooks']['post_sync_method'];?>
+                            <?php if(!empty($_G['setting']['pluginhooks']['post_sync_method'])) echo $_G['setting']['pluginhooks']['post_sync_method'];?>
 </span>
-<?php } if($special == 2) { ?>
-<label><input type="checkbox" name="continueadd" value="yes" class="pc" />继续添加商品</label>
-<?php } if(helper_access::check_module('group') && $mygroups && $_G['forum']['status'] != 3) { ?>
-<span id="adddynamicspan"><label>&nbsp;&nbsp;来自群组:<select name="mygroupid"><option value="">选择我的群组</option><?php if(is_array($mygroups)) foreach($mygroups as $mygroupid => $mygroupname) { ?><option value="<?php echo $mygroupid;?>__<?php echo $mygroupname;?>" <?php if($selectgroupid == $mygroupid) { ?> selected<?php } ?>><?php echo $mygroupname;?></option><?php } ?></select></label></span>
-<?php } ?>
-</div>
-
-<?php if(!empty($_G['setting']['pluginhooks']['post_bottom'])) echo $_G['setting']['pluginhooks']['post_bottom'];?>
-</div>
-</div>
-</div>
+                    <?php } if($special == 2) { ?>
+                        <label><input type="checkbox" name="continueadd" value="yes" class="pc" />继续添加商品</label>
+                    <?php } if(helper_access::check_module('group') && $mygroups && $_G['forum']['status'] != 3) { ?>
+                        <span id="adddynamicspan"><label>&nbsp;&nbsp;来自群组:<select name="mygroupid"><option value="">选择我的群组</option><?php if(is_array($mygroups)) foreach($mygroups as $mygroupid => $mygroupname) { ?><option value="<?php echo $mygroupid;?>__<?php echo $mygroupname;?>" <?php if($selectgroupid == $mygroupid) { ?> selected<?php } ?>><?php echo $mygroupname;?></option><?php } ?></select></label></span>
+                    <?php } ?>
+                </div>
+
+                <?php if(!empty($_G['setting']['pluginhooks']['post_bottom'])) echo $_G['setting']['pluginhooks']['post_bottom'];?>
+            </div>
+        </div>
+    </div>
 </form>
-<iframe name="ajaxpostframe" id="ajaxpostframe" style="display: none;"></iframe>
-
-<div id="<?php echo $editorid;?>_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;"><div id="<?php echo $editorid;?>_editortoolbar" class="editortoolbar"><?php $fontoptions = array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312")?><div class="p_pop fnm" id="<?php echo $editorid;?>_fontname_menu" style="display: none">
-<ul unselectable="on"><?php if(is_array($fontoptions)) foreach($fontoptions as $fontname) { ?><li onclick="discuzcode('fontname', '<?php echo $fontname;?>')" style="font-family: <?php echo $fontname;?>" unselectable="on"><a href="javascript:;" title="<?php echo $fontname;?>"><?php echo $fontname;?></a></li>
-<?php } ?>
-</ul>
-</div><?php $sizeoptions = array(1, 2, 3, 4, 5, 6, 7)?><div class="p_pop fszm" id="<?php echo $editorid;?>_fontsize_menu" style="display: none">
-<ul unselectable="on"><?php if(is_array($sizeoptions)) foreach($sizeoptions as $size) { ?><li onclick="discuzcode('fontsize', <?php echo $size;?>)" unselectable="on"><a href="javascript:;" title="<?php echo $size;?>"><font size="<?php echo $size;?>" unselectable="on"><?php echo $size;?></font></a></li>
-<?php } ?>
-</ul>
-</div>
-
-</div>
-
-<script type="text/javascript">smilies_show('smiliesdiv', <?php echo $_G['setting']['smcols'];?>, editorid + '_');showHrBox(editorid+'_inserthorizontalrule');showHrBox(editorid+'_postbg', 'postbg');</script><?php
-$creditstring = <<<EOF
-
-EOF;
- if(is_array($postattachcredits)) foreach($postattachcredits as $id => $credit) { if($credit != '') { 
-$creditstring .= <<<EOF
-{$_G['setting']['extcredits'][$id]['title']} 
-EOF;
- if($credit >= 0) { 
-$creditstring .= <<<EOF
-+{$credit}
-EOF;
- } else { 
-$creditstring .= <<<EOF
-{$credit}
-EOF;
- } 
-$creditstring .= <<<EOF
- {$_G['setting']['extcredits'][$id]['unit']} &nbsp;
-EOF;
- } } 
-$creditstring .= <<<EOF
-
-EOF;
-?>
+    <iframe name="ajaxpostframe" id="ajaxpostframe" style="display: none;"></iframe>
 
+    <div id="<?php echo $editorid;?>_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;"><div id="<?php echo $editorid;?>_editortoolbar" class="editortoolbar"><?php $fontoptions = array("宋体", "新宋体", "黑体", "微软雅黑", "Arial", "Verdana", "simsun", "Helvetica", "Trebuchet MS", "Tahoma", "Impact", "Times New Roman", "仿宋,仿宋_GB2312", "楷体,楷体_GB2312")?><div class="p_pop fnm" id="<?php echo $editorid;?>_fontname_menu" style="display: none">
+                <ul unselectable="on"><?php if(is_array($fontoptions)) foreach($fontoptions as $fontname) { ?><li onclick="discuzcode('fontname', '<?php echo $fontname;?>')" style="font-family: <?php echo $fontname;?>" unselectable="on"><a href="javascript:;" title="<?php echo $fontname;?>"><?php echo $fontname;?></a></li>
+                    <?php } ?>
+                </ul>
+            </div><?php $sizeoptions = array(1, 2, 3, 4, 5, 6, 7)?><div class="p_pop fszm" id="<?php echo $editorid;?>_fontsize_menu" style="display: none">
+                <ul unselectable="on"><?php if(is_array($sizeoptions)) foreach($sizeoptions as $size) { ?><li onclick="discuzcode('fontsize', <?php echo $size;?>)" unselectable="on"><a href="javascript:;" title="<?php echo $size;?>"><font size="<?php echo $size;?>" unselectable="on"><?php echo $size;?></font></a></li>
+                    <?php } ?>
+                </ul>
+            </div>
 
-<script type="text/javascript">
-function switchImagebutton(btn) {
-switchButton(btn, 'image');
-$(editorid + '_image_menu').style.height = '';
-doane();
-}
-function switchAttachbutton(btn) {
-switchButton(btn, 'attach');
-doane();
-}
-</script>
-<div class="p_pof" id="<?php echo $editorid;?>_image_menu" style="display: none" unselectable="on">
-<table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
-<ul class="tb tb_s cl" id="<?php echo $editorid;?>_image_ctrl" style="margin-top:0;margin-bottom:0;">
-<li class="y"><span class="flbc" onclick="hideAttachMenu('image')">关闭</span></li>
-<?php if($allowpostimg) { ?>
-<li class="current" id="<?php echo $editorid;?>_btn_imgattachlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('imgattachlist');">上传图片</a></li>
-<?php if($allowuploadtoday) { ?>
-<li id="<?php echo $editorid;?>_btn_local" style="display:none;" did="<?php echo $editorid;?>_btn_imgattachlist|local"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('local');">普通上传</a></li>
-<?php } } if(helper_access::check_module('album')) { ?><li <?php if(!$allowpostimg) { ?>class="current"<?php } ?> id="<?php echo $editorid;?>_btn_albumlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('albumlist');">相册图片</a></li><?php } ?>
-<li <?php if(!$allowpostimg && !helper_access::check_module('album')) { ?>class="current"<?php } ?> id="<?php echo $editorid;?>_btn_www"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('www');">网络图片</a></li>
-
-<?php if(!empty($_G['setting']['pluginhooks']['post_image_btn_extra'])) echo $_G['setting']['pluginhooks']['post_image_btn_extra'];?>
-</ul>
-<div unselectable="on" id="<?php echo $editorid;?>_www" <?php if($allowpostimg || helper_access::check_module('album')) { ?>style="display: none;"<?php } ?>>
-<div class="p_opt popupfix">
-<table cellpadding="0" cellspacing="0" width="100%">
-<tr class="xg1">
-<th width="74%" class="pbn">请输入图片地址</th>
-<th width="13%" class="pbn">宽(可选)</th>
-<th width="13%" class="pbn">高(可选)</th>
-</tr>
-<tr>
-<td><input type="text" id="<?php echo $editorid;?>_image_param_1" onchange="loadimgsize(this.value)" style="width: 95%;" value="" class="px" autocomplete="off" /></td>
-<td><input id="<?php echo $editorid;?>_image_param_2" size="3" value="" class="px p_fre" autocomplete="off" /></td>
-<td><input id="<?php echo $editorid;?>_image_param_3" size="3" value="" class="px p_fre" autocomplete="off" /></td>
-</tr>
-</table>
-</div>
-<div class="o">
-<button type="button" class="pn pnc" id="<?php echo $editorid;?>_image_submit"><strong>提交</strong></button>
-</div>
-</div>
-<?php if($allowpostimg) { ?>
-
-<div unselectable="on" id="<?php echo $editorid;?>_local" style="display: none;">
-<div class="p_opt">
-<table cellpadding="0" cellspacing="0" border="0" width="100%">
-<tbody id="imgattachbodyhidden" style="display:none"><tr>
-<td class="atnu"><span id="imglocalno[]"><img src="<?php echo STATICURL;?>image/filetype/common_new.gif" /></span></td>
-<td class="atna">
+        </div>
+
+        <script type="text/javascript">smilies_show('smiliesdiv', <?php echo $_G['setting']['smcols'];?>, editorid + '_');showHrBox(editorid+'_inserthorizontalrule');showHrBox(editorid+'_postbg', 'postbg');</script><?php
+        $creditstring = <<<EOF
+
+EOF;
+        if(is_array($postattachcredits)) foreach($postattachcredits as $id => $credit) { if($credit != '') {
+            $creditstring .= <<<EOF
+{$_G['setting']['extcredits'][$id]['title']} 
+EOF;
+            if($credit >= 0) {
+                $creditstring .= <<<EOF
++{$credit}
+EOF;
+            } else {
+                $creditstring .= <<<EOF
+{$credit}
+EOF;
+            }
+            $creditstring .= <<<EOF
+ {$_G['setting']['extcredits'][$id]['unit']} &nbsp;
+EOF;
+        } }
+        $creditstring .= <<<EOF
+
+EOF;
+        ?>
+
+
+        <script type="text/javascript">
+            function switchImagebutton(btn) {
+                switchButton(btn, 'image');
+                $(editorid + '_image_menu').style.height = '';
+                doane();
+            }
+            function switchAttachbutton(btn) {
+                switchButton(btn, 'attach');
+                doane();
+            }
+        </script>
+        <div class="p_pof" id="<?php echo $editorid;?>_image_menu" style="display: none" unselectable="on">
+            <table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
+                            <ul class="tb tb_s cl" id="<?php echo $editorid;?>_image_ctrl" style="margin-top:0;margin-bottom:0;">
+                                <li class="y"><span class="flbc" onclick="hideAttachMenu('image')">关闭</span></li>
+                                <?php if($allowpostimg) { ?>
+                                    <li class="current" id="<?php echo $editorid;?>_btn_imgattachlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('imgattachlist');">上传图片</a></li>
+                                    <?php if($allowuploadtoday) { ?>
+                                        <li id="<?php echo $editorid;?>_btn_local" style="display:none;" did="<?php echo $editorid;?>_btn_imgattachlist|local"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('local');">普通上传</a></li>
+                                    <?php } } if(helper_access::check_module('album')) { ?><li <?php if(!$allowpostimg) { ?>class="current"<?php } ?> id="<?php echo $editorid;?>_btn_albumlist"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('albumlist');">相册图片</a></li><?php } ?>
+                                <li <?php if(!$allowpostimg && !helper_access::check_module('album')) { ?>class="current"<?php } ?> id="<?php echo $editorid;?>_btn_www"><a href="javascript:;" hidefocus="true" onclick="switchImagebutton('www');">网络图片</a></li>
+
+                                <?php if(!empty($_G['setting']['pluginhooks']['post_image_btn_extra'])) echo $_G['setting']['pluginhooks']['post_image_btn_extra'];?>
+                            </ul>
+                            <div unselectable="on" id="<?php echo $editorid;?>_www" <?php if($allowpostimg || helper_access::check_module('album')) { ?>style="display: none;"<?php } ?>>
+                                <div class="p_opt popupfix">
+                                    <table cellpadding="0" cellspacing="0" width="100%">
+                                        <tr class="xg1">
+                                            <th width="74%" class="pbn">请输入图片地址</th>
+                                            <th width="13%" class="pbn">宽(可选)</th>
+                                            <th width="13%" class="pbn">高(可选)</th>
+                                        </tr>
+                                        <tr>
+                                            <td><input type="text" id="<?php echo $editorid;?>_image_param_1" onchange="loadimgsize(this.value)" style="width: 95%;" value="" class="px" autocomplete="off" /></td>
+                                            <td><input id="<?php echo $editorid;?>_image_param_2" size="3" value="" class="px p_fre" autocomplete="off" /></td>
+                                            <td><input id="<?php echo $editorid;?>_image_param_3" size="3" value="" class="px p_fre" autocomplete="off" /></td>
+                                        </tr>
+                                    </table>
+                                </div>
+                                <div class="o">
+                                    <button type="button" class="pn pnc" id="<?php echo $editorid;?>_image_submit"><strong>提交</strong></button>
+                                </div>
+                            </div>
+                            <?php if($allowpostimg) { ?>
+
+                                <div unselectable="on" id="<?php echo $editorid;?>_local" style="display: none;">
+                                    <div class="p_opt">
+                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
+                                            <tbody id="imgattachbodyhidden" style="display:none"><tr>
+                                                <td class="atnu"><span id="imglocalno[]"><img src="<?php echo STATICURL;?>image/filetype/common_new.gif" /></span></td>
+                                                <td class="atna">
 <span id="imgdeschidden[]" style="display:none">
 <span id="imglocalfile[]"></span>
 </span>
-<input type="hidden" name="imglocalid[]" />
-</td>
-<td class="attc"><span id="imgcpdel[]"></span></td>
-</tr></tbody>
-</table>
-<div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="imgattachbody"></tbody></table></div>
-<div class="upbk pbm bbda">
-<div id="imgattachbtnhidden" style="display:none"><span><form name="imgattachform" id="imgattachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&amp;operation=upload&amp;simple=1&amp;type=image" target="attachframe" <?php echo $enctype;?>><input type="hidden" name="uid" value="<?php echo $_G['uid'];?>"><input type="hidden" name="hash" value="<?php echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); ?>"><input type="file" name="Filedata" size="45" class="filedata" /></form></span></div>
-<div id="imgattachbtn" class="ptm pbn"></div>
-<p id="imguploadbtn">
-<button class="pn pnc vm" type="button" onclick="uploadAttach(0, 0, 'img')"><span>上传</span></button>
-<span class="xg1">&larr;选择完文件后请点击“上传”按钮</span>
-</p>
-<p id="imguploading" style="display: none;"><img src="<?php echo IMGDIR;?>/uploading.gif" style="vertical-align: middle;" /> 上传中,请稍候,您可以<a href="javascript:;" onclick="hideMenu()">暂时关闭这个小窗口</a>,上传完成后您会收到通知</p>
-</div>
-<div class="notice upnf">
-文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
-<?php if($imgexts) { ?>
-, 可用扩展名: <span class="xi1"><?php echo $imgexts;?></span>&nbsp;
-<?php } if($creditstring) { ?>
-<br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
-<?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
-您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
-<span class="xi1 xw1">今日您已无法上传更多的附件</span>
-<?php } } ?>
-</div>
-</div>
-<div class="o">
-<button onclick="hideAttachMenu('image')" class="pn pnc">
-<strong>确定</strong>
-</button>
-</div>
-</div>
-
-
-<div unselectable="on" id="<?php echo $editorid;?>_imgattachlist">
-<div class="p_opt">
-<?php if($allowuploadtoday) { ?>
-<div class="pbm bbda cl">
-<div id="imgattach_notice" class="y" <?php if(empty($imgattachs['used'])) { ?> style="display: none"<?php } ?>>
-<?php if(helper_access::check_module('album') && $_G['group']['allowupload']) { ?>
-<div id="uploadPanel">
-<label style="margin-right:10px;"><input type="checkbox" name="selectallimg" class="pc" value="1" onchange="selectAllSaveImg(this.checked);" onpropertychange="selectAllSaveImg(this.checked);" />全选</label>
-将选中的图片保存到相册:
-<select name="uploadalbum" id="uploadalbum" class="ps vm" onchange="if(this.value == '-1') {selectCreateTab(0);}">
-<?php if($albumlist) { if(is_array($albumlist)) foreach($albumlist as $album) { ?><option value="<?php echo $album['albumid'];?>"><?php echo $album['albumname'];?></option>
-<?php } } else { ?>
-<option value="-2">-------</option>
-<?php } ?>
-<option value="-1" style="color:red;">+创建新相册</option>
-</select>
-</div>
-<div id="createalbum" style="display:none">
-<?php if($_G['setting']['albumcategorystat'] && !empty($_G['cache']['albumcategory'])) { echo category_showselect('album', 'albumcatid', !$_G['setting']['albumcategoryrequired'] ? true : false, $_GET['catid']);?>&nbsp;
-<?php } ?>
-<input type="text" name="newalbum" id="newalbum" class="px vm" size="15" value="请输入相册名称"  onfocus="if(this.value == '请输入相册名称') {this.value = '';}" onblur="if(this.value == '') {this.value = '请输入相册名称';}" />&nbsp;<button type="button" class="pn pnc" onclick="createNewAlbum();"><span>创建新相册</span></button><button type="button" class="pn" onclick="selectCreateTab(1);"><span>取消</span></button>
-</div>
-<?php } ?>
-</div>
-<span id="imgSpanButtonPlaceholder"></span>
-</div>
-<?php } ?>
-<div class="upfilelist upfl bbda">
-<?php if(!empty($imgattachs['used'])) { $imagelist = $imgattachs['used'];?><?php include template('forum/ajax_imagelist'); } ?>
-<div id="imgattachlist"></div>
-<div id="unusedimgattachlist"></div>
-
-<?php if($allowuploadtoday) { ?>
-
-<div class="fieldset flash" id="imgUploadProgress"></div>
-
-<script type="text/javascript">
-function createNewAlbum() {
-var inputObj = $('newalbum');
-if(inputObj.value == '' || inputObj.value == '请输入相册名称') {
-inputObj.value = '请输入相册名称';
-} else {
-var x = new Ajax();
-x.get('home.php?mod=misc&ac=ajax&op=createalbum&inajax=1&name=' + inputObj.value, function(s){
-var aid = parseInt(s);
-var albumList = $('uploadalbum');
-var haveoption = false;
-for(var i = 0; i < albumList.options.length; i++) {
-if(albumList.options[i].value == aid) {
-albumList.selectedIndex = i;
-haveoption = true;
-break;
-}
-}
-if(!haveoption) {
-var oOption = document.createElement("OPTION");
-oOption.text = trim(inputObj.value);
-oOption.value = aid;
-albumList.options.add(oOption);
-albumList.selectedIndex = albumList.options.length-1;
-}
-inputObj.value = ''
-});
-selectCreateTab(1)
-}
-}
-function selectCreateTab(flag) {
-var vwObj = $('uploadPanel');
-var opObj = $('createalbum');
-var selObj = $('uploadalbum');
-if(flag) {
-vwObj.style.display = '';
-opObj.style.display = 'none';
-selObj.value = selObj.options[0].value;
-} else {
-vwObj.style.display = 'none';
-opObj.style.display = '';
-}
-}
-</script>
-<?php } ?>
-</div>
-<div class="notice upnf">
-点击图片添加到帖子内容中
-<br />文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
-<?php if($imgexts) { ?>
-, 可用扩展名: <span class="xi1"><?php echo $imgexts;?></span>&nbsp;
-<?php } if($creditstring) { ?>
-<br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
-<?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
-您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
-<span class="xi1 xw1">今日您已无法上传更多的附件</span>
-<?php } } ?>
-</div>
-</div>
-<div class="o">
-<button onclick="hideAttachMenu('image')" class="pn pnc">
-<strong>确定</strong>
-</button>
-</div>
-</div>
-<?php } if(helper_access::check_module('album')) { ?>
-<div unselectable="on" id="<?php echo $editorid;?>_albumlist" <?php if($allowpostimg) { ?>style="display: none;"<?php } ?>>
-<div class="p_opt">
-<div class="upfilelist pbm bbda">
-从我的相册中选择图片:
-<select onchange="if(this.value) {ajaxget('forum.php?mod=post&action=albumphoto&aid='+this.value, 'albumphoto');}">
-<option value="">选择相册</option><?php if(is_array($albumlist)) foreach($albumlist as $album) { ?><option value="<?php echo $album['albumid'];?>"><?php echo $album['albumname'];?></option>
-<?php } ?>
-</select>
-<div id="albumphoto"></div>
-</div>
-<p class="notice">点击图片添加到帖子内容中</p>
-</div>
-<div class="o">
-<button onclick="hideAttachMenu('image')" class="pn pnc">
-<strong>确定</strong>
-</button>
-</div>
-</div>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_image_tab_extra'])) echo $_G['setting']['pluginhooks']['post_image_tab_extra'];?>
-</div></td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
-</div>
-
-<?php if($_G['group']['allowpostattach']) { ?>
-<div class="p_pof upf" id="<?php echo $editorid;?>_attach_menu" style="display: none" unselectable="on">
-<table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
-<ul class="tb tb_s cl" id="<?php echo $editorid;?>_attach_ctrl" style="margin-top:0;margin-bottom:0;">
-<li class="y"><span class="flbc" onclick="hideAttachMenu('attach')">关闭</span></li>
-<li class="current" id="<?php echo $editorid;?>_btn_attachlist"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('attachlist');">上传附件</a></li>
-<?php if($allowuploadtoday) { ?>
-<li id="<?php echo $editorid;?>_btn_upload" style="display: none;" did="<?php echo $editorid;?>_btn_attachlist|upload"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('upload');">普通上传</a></li>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_attach_btn_extra'])) echo $_G['setting']['pluginhooks']['post_attach_btn_extra'];?>
-</ul>
-
-<div class="p_opt" unselectable="on" id="<?php echo $editorid;?>_upload" style="display: none;">
-<table cellpadding="0" cellspacing="0" border="0" width="100%">
-<tbody id="attachbodyhidden" style="display:none"><tr>
-<td class="atnu"><span id="localno[]"><img src="<?php echo STATICURL;?>image/filetype/common_new.gif" /></span></td>
-<td class="atna">
+                                                    <input type="hidden" name="imglocalid[]" />
+                                                </td>
+                                                <td class="attc"><span id="imgcpdel[]"></span></td>
+                                            </tr></tbody>
+                                        </table>
+                                        <div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="imgattachbody"></tbody></table></div>
+                                        <div class="upbk pbm bbda">
+                                            <div id="imgattachbtnhidden" style="display:none"><span><form name="imgattachform" id="imgattachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&amp;operation=upload&amp;simple=1&amp;type=image" target="attachframe" <?php echo $enctype;?>><input type="hidden" name="uid" value="<?php echo $_G['uid'];?>"><input type="hidden" name="hash" value="<?php echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); ?>"><input type="file" name="Filedata" size="45" class="filedata" /></form></span></div>
+                                            <div id="imgattachbtn" class="ptm pbn"></div>
+                                            <p id="imguploadbtn">
+                                                <button class="pn pnc vm" type="button" onclick="uploadAttach(0, 0, 'img')"><span>上传</span></button>
+                                                <span class="xg1">&larr;选择完文件后请点击“上传”按钮</span>
+                                            </p>
+                                            <p id="imguploading" style="display: none;"><img src="<?php echo IMGDIR;?>/uploading.gif" style="vertical-align: middle;" /> 上传中,请稍候,您可以<a href="javascript:;" onclick="hideMenu()">暂时关闭这个小窗口</a>,上传完成后您会收到通知</p>
+                                        </div>
+                                        <div class="notice upnf">
+                                            文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
+                                            <?php if($imgexts) { ?>
+                                                , 可用扩展名: <span class="xi1"><?php echo $imgexts;?></span>&nbsp;
+                                            <?php } if($creditstring) { ?>
+                                                <br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
+                                            <?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
+                                                您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
+                                                <span class="xi1 xw1">今日您已无法上传更多的附件</span>
+                                            <?php } } ?>
+                                        </div>
+                                    </div>
+                                    <div class="o">
+                                        <button onclick="hideAttachMenu('image')" class="pn pnc">
+                                            <strong>确定</strong>
+                                        </button>
+                                    </div>
+                                </div>
+
+
+                                <div unselectable="on" id="<?php echo $editorid;?>_imgattachlist">
+                                    <div class="p_opt">
+                                        <?php if($allowuploadtoday) { ?>
+                                            <div class="pbm bbda cl">
+                                                <div id="imgattach_notice" class="y" <?php if(empty($imgattachs['used'])) { ?> style="display: none"<?php } ?>>
+                                                    <?php if(helper_access::check_module('album') && $_G['group']['allowupload']) { ?>
+                                                        <div id="uploadPanel">
+                                                            <label style="margin-right:10px;"><input type="checkbox" name="selectallimg" class="pc" value="1" onchange="selectAllSaveImg(this.checked);" onpropertychange="selectAllSaveImg(this.checked);" />全选</label>
+                                                            将选中的图片保存到相册:
+                                                            <select name="uploadalbum" id="uploadalbum" class="ps vm" onchange="if(this.value == '-1') {selectCreateTab(0);}">
+                                                                <?php if($albumlist) { if(is_array($albumlist)) foreach($albumlist as $album) { ?><option value="<?php echo $album['albumid'];?>"><?php echo $album['albumname'];?></option>
+                                                                <?php } } else { ?>
+                                                                    <option value="-2">-------</option>
+                                                                <?php } ?>
+                                                                <option value="-1" style="color:red;">+创建新相册</option>
+                                                            </select>
+                                                        </div>
+                                                        <div id="createalbum" style="display:none">
+                                                            <?php if($_G['setting']['albumcategorystat'] && !empty($_G['cache']['albumcategory'])) { echo category_showselect('album', 'albumcatid', !$_G['setting']['albumcategoryrequired'] ? true : false, $_GET['catid']);?>&nbsp;
+                                                            <?php } ?>
+                                                            <input type="text" name="newalbum" id="newalbum" class="px vm" size="15" value="请输入相册名称"  onfocus="if(this.value == '请输入相册名称') {this.value = '';}" onblur="if(this.value == '') {this.value = '请输入相册名称';}" />&nbsp;<button type="button" class="pn pnc" onclick="createNewAlbum();"><span>创建新相册</span></button><button type="button" class="pn" onclick="selectCreateTab(1);"><span>取消</span></button>
+                                                        </div>
+                                                    <?php } ?>
+                                                </div>
+                                                <span id="imgSpanButtonPlaceholder"></span>
+                                            </div>
+                                        <?php } ?>
+                                        <div class="upfilelist upfl bbda">
+                                            <?php if(!empty($imgattachs['used'])) { $imagelist = $imgattachs['used'];?><?php include template('forum/ajax_imagelist'); } ?>
+                                            <div id="imgattachlist"></div>
+                                            <div id="unusedimgattachlist"></div>
+
+                                            <?php if($allowuploadtoday) { ?>
+
+                                                <div class="fieldset flash" id="imgUploadProgress"></div>
+
+                                                <script type="text/javascript">
+                                                    function createNewAlbum() {
+                                                        var inputObj = $('newalbum');
+                                                        if(inputObj.value == '' || inputObj.value == '请输入相册名称') {
+                                                            inputObj.value = '请输入相册名称';
+                                                        } else {
+                                                            var x = new Ajax();
+                                                            x.get('home.php?mod=misc&ac=ajax&op=createalbum&inajax=1&name=' + inputObj.value, function(s){
+                                                                var aid = parseInt(s);
+                                                                var albumList = $('uploadalbum');
+                                                                var haveoption = false;
+                                                                for(var i = 0; i < albumList.options.length; i++) {
+                                                                    if(albumList.options[i].value == aid) {
+                                                                        albumList.selectedIndex = i;
+                                                                        haveoption = true;
+                                                                        break;
+                                                                    }
+                                                                }
+                                                                if(!haveoption) {
+                                                                    var oOption = document.createElement("OPTION");
+                                                                    oOption.text = trim(inputObj.value);
+                                                                    oOption.value = aid;
+                                                                    albumList.options.add(oOption);
+                                                                    albumList.selectedIndex = albumList.options.length-1;
+                                                                }
+                                                                inputObj.value = ''
+                                                            });
+                                                            selectCreateTab(1)
+                                                        }
+                                                    }
+                                                    function selectCreateTab(flag) {
+                                                        var vwObj = $('uploadPanel');
+                                                        var opObj = $('createalbum');
+                                                        var selObj = $('uploadalbum');
+                                                        if(flag) {
+                                                            vwObj.style.display = '';
+                                                            opObj.style.display = 'none';
+                                                            selObj.value = selObj.options[0].value;
+                                                        } else {
+                                                            vwObj.style.display = 'none';
+                                                            opObj.style.display = '';
+                                                        }
+                                                    }
+                                                </script>
+                                            <?php } ?>
+                                        </div>
+                                        <div class="notice upnf">
+                                            点击图片添加到帖子内容中
+                                            <br />文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
+                                            <?php if($imgexts) { ?>
+                                                , 可用扩展名: <span class="xi1"><?php echo $imgexts;?></span>&nbsp;
+                                            <?php } if($creditstring) { ?>
+                                                <br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
+                                            <?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
+                                                您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
+                                                <span class="xi1 xw1">今日您已无法上传更多的附件</span>
+                                            <?php } } ?>
+                                        </div>
+                                    </div>
+                                    <div class="o">
+                                        <button onclick="hideAttachMenu('image')" class="pn pnc">
+                                            <strong>确定</strong>
+                                        </button>
+                                    </div>
+                                </div>
+                            <?php } if(helper_access::check_module('album')) { ?>
+                                <div unselectable="on" id="<?php echo $editorid;?>_albumlist" <?php if($allowpostimg) { ?>style="display: none;"<?php } ?>>
+                                    <div class="p_opt">
+                                        <div class="upfilelist pbm bbda">
+                                            从我的相册中选择图片:
+                                            <select onchange="if(this.value) {ajaxget('forum.php?mod=post&action=albumphoto&aid='+this.value, 'albumphoto');}">
+                                                <option value="">选择相册</option><?php if(is_array($albumlist)) foreach($albumlist as $album) { ?><option value="<?php echo $album['albumid'];?>"><?php echo $album['albumname'];?></option>
+                                                <?php } ?>
+                                            </select>
+                                            <div id="albumphoto"></div>
+                                        </div>
+                                        <p class="notice">点击图片添加到帖子内容中</p>
+                                    </div>
+                                    <div class="o">
+                                        <button onclick="hideAttachMenu('image')" class="pn pnc">
+                                            <strong>确定</strong>
+                                        </button>
+                                    </div>
+                                </div>
+                            <?php } ?>
+                            <?php if(!empty($_G['setting']['pluginhooks']['post_image_tab_extra'])) echo $_G['setting']['pluginhooks']['post_image_tab_extra'];?>
+                        </div></td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
+        </div>
+
+        <?php if($_G['group']['allowpostattach']) { ?>
+            <div class="p_pof upf" id="<?php echo $editorid;?>_attach_menu" style="display: none" unselectable="on">
+                <table width="100%" cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l">&nbsp;&nbsp;</td><td class="m_c"><div class="mtm">
+                                <ul class="tb tb_s cl" id="<?php echo $editorid;?>_attach_ctrl" style="margin-top:0;margin-bottom:0;">
+                                    <li class="y"><span class="flbc" onclick="hideAttachMenu('attach')">关闭</span></li>
+                                    <li class="current" id="<?php echo $editorid;?>_btn_attachlist"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('attachlist');">上传附件</a></li>
+                                    <?php if($allowuploadtoday) { ?>
+                                        <li id="<?php echo $editorid;?>_btn_upload" style="display: none;" did="<?php echo $editorid;?>_btn_attachlist|upload"><a href="javascript:;" hidefocus="true" onclick="switchAttachbutton('upload');">普通上传</a></li>
+                                    <?php } ?>
+                                    <?php if(!empty($_G['setting']['pluginhooks']['post_attach_btn_extra'])) echo $_G['setting']['pluginhooks']['post_attach_btn_extra'];?>
+                                </ul>
+
+                                <div class="p_opt" unselectable="on" id="<?php echo $editorid;?>_upload" style="display: none;">
+                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
+                                        <tbody id="attachbodyhidden" style="display:none"><tr>
+                                            <td class="atnu"><span id="localno[]"><img src="<?php echo STATICURL;?>image/filetype/common_new.gif" /></span></td>
+                                            <td class="atna">
 <span id="deschidden[]" style="display:none">
 <span id="localfile[]"></span>
 </span>
-<input type="hidden" name="localid[]" />
-</td>
-<td class="attc"><span id="cpdel[]"></span></td>
-</tr></tbody>
-</table>
-<div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="attachbody"></tbody></table></div>
-<div class="upbk pbm bbda">
-<div id="attachbtnhidden" style="display:none"><span><form name="attachform" id="attachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&amp;operation=upload&amp;simple=1" target="attachframe" <?php echo $enctype;?>><input type="hidden" name="uid" value="<?php echo $_G['uid'];?>"><input type="hidden" name="hash" value="<?php echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); ?>"><input type="file" name="Filedata" size="45" class="fldt" /></form></span></div>
-<div id="attachbtn" class="ptm pbn"></div>
-<p id="uploadbtn">
-<button type="button" class="pn pnc vm" onclick="uploadAttach(0, 0)"><span>上传</span></button>
-<span class="xg1">&larr;选择完文件后请点击“上传”按钮</span>
-</p>
-<p id="uploading" style="display: none;"><img src="<?php echo IMGDIR;?>/uploading.gif" style="vertical-align: middle;" /> 上传中,请稍候,您可以<a href="javascript:;" onclick="hideMenu()">暂时关闭这个小窗口</a>,上传完成后您会收到通知</p>
-</div>
-<div class="notice upnf">
-文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
-<?php if($_G['group']['attachextensions']) { ?>
-, 可用扩展名: <span class="xi1"><?php echo $_G['group']['attachextensions'];?></span>&nbsp;
-<?php } if($creditstring) { ?>
-<br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
-<?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
-您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
-<span class="xi1 xw1">今日您已无法上传更多的附件</span>
-<?php } } ?>
-</div>
-</div>
-
-
-<div class="p_opt post_tablelist" unselectable="on" id="<?php echo $editorid;?>_attachlist">
-<?php if($allowuploadtoday) { ?>
-<div class="pbm bbda">
-<span id="spanButtonPlaceholder"></span>
-</div>
-<?php } ?>
-<table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" class="mtn bbs"<?php if(empty($attachs['used'])) { ?> style="display: none"<?php } ?>>
-<tr>
-<td class="atnu"></td>
-<td class="atna pbn">文件名 ( <a onclick="insertAllAttachTag();return false;" href="javascript:;" class="xi2">插入全部附件</a> )</td>
-<td class="atds pbn">描述</td>
-<?php if($_G['group']['allowsetattachperm']) { ?>
-<td class="attv pbn">
-阅读权限
-<img src="<?php echo IMGDIR;?>/faq.gif" alt="Tip" class="vm" style="margin: 0;" onmouseover="showTip(this)" tip="阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读" />
-</td>
-<?php } if($_G['group']['maxprice']) { ?><td class="attp pbn"><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?></td><?php } ?>
-<td class="attc"></td>
-</tr>
-</table>
-<div class="upfl">
-<?php if(!empty($attachs['used'])) { $attachlist = $attachs['used'];?><?php include template('forum/ajax_attachlist'); } ?>
-<div id="attachlist"></div>
-<div id="unusedattachlist"></div>
-
-<?php if($allowuploadtoday) { ?>
-<div class="fieldset flash" id="fsUploadProgress"></div>
-<?php } ?>
-
-</div>
-<div class="notice upnf">
-<p id="attach_notice"<?php if(empty($attachs['used']) && empty($attachs['unused'])) { ?> style="display: none"<?php } ?>>点击附件文件名添加到帖子内容中<?php if($_G['setting']['allowattachurl']) { ?>,"attach://" 开头的附件地址支持任何人下载请谨慎添加<?php } ?></p>
-文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
-<?php if($_G['group']['attachextensions']) { ?>
-, 可用扩展名: <span class="xi1"><?php echo $_G['group']['attachextensions'];?></span>&nbsp;
-<?php } if($creditstring) { ?>
-<br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
-<?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
-您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
-<span class="xi1 xw1">今日您已无法上传更多的附件</span>
-<?php } } if($_G['group']['maxprice'] && $_G['setting']['maxincperthread']) { ?><br />附件出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php } ?>
-</div>
-</div>
-<?php if(!empty($_G['setting']['pluginhooks']['post_attach_tab_extra'])) echo $_G['setting']['pluginhooks']['post_attach_tab_extra'];?>
-</div>
-<div class="o">
-<button onclick="hideAttachMenu('attach')" class="pn pnc" id="attach_confirms">
-<strong>确定</strong>
-</button>
-</div>
-</td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
-</div>
-<?php } ?>
-
-<iframe name="attachframe" id="attachframe" style="display: none;" onload="uploadNextAttach();"></iframe>
-
-<script type="text/javascript">
-if(wysiwyg) {
-newEditor(1, bbcode2html(textobj.value));
-} else {
-newEditor(0, textobj.value);
-}
-<?php if($editor['simplemode'] > 0) { ?>
-editorsimple();
-<?php } ?>
-
-var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
-<?php if($allowpostimg) { ?>
-ATTACHNUM['imageused'] = <?php echo @count($imgattachs['used']); ?>;
-<?php if(!empty($imgattachs['used']) || !empty($imgattachs['unused'])) { ?>
-switchImagebutton('imgattachlist');
-$(editorid + '_image').evt = false;
-updateattachnum('image');
-<?php } else { ?>
-switchImagebutton('multi');
-<?php } } if($_G['group']['allowpostattach'] || $_G['group']['allowpostimage']) { ?>
+                                                <input type="hidden" name="localid[]" />
+                                            </td>
+                                            <td class="attc"><span id="cpdel[]"></span></td>
+                                        </tr></tbody>
+                                    </table>
+                                    <div class="p_tbl"><table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="attachbody"></tbody></table></div>
+                                    <div class="upbk pbm bbda">
+                                        <div id="attachbtnhidden" style="display:none"><span><form name="attachform" id="attachform" method="post" autocomplete="off" action="misc.php?mod=swfupload&amp;operation=upload&amp;simple=1" target="attachframe" <?php echo $enctype;?>><input type="hidden" name="uid" value="<?php echo $_G['uid'];?>"><input type="hidden" name="hash" value="<?php echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); ?>"><input type="file" name="Filedata" size="45" class="fldt" /></form></span></div>
+                                        <div id="attachbtn" class="ptm pbn"></div>
+                                        <p id="uploadbtn">
+                                            <button type="button" class="pn pnc vm" onclick="uploadAttach(0, 0)"><span>上传</span></button>
+                                            <span class="xg1">&larr;选择完文件后请点击“上传”按钮</span>
+                                        </p>
+                                        <p id="uploading" style="display: none;"><img src="<?php echo IMGDIR;?>/uploading.gif" style="vertical-align: middle;" /> 上传中,请稍候,您可以<a href="javascript:;" onclick="hideMenu()">暂时关闭这个小窗口</a>,上传完成后您会收到通知</p>
+                                    </div>
+                                    <div class="notice upnf">
+                                        文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
+                                        <?php if($_G['group']['attachextensions']) { ?>
+                                            , 可用扩展名: <span class="xi1"><?php echo $_G['group']['attachextensions'];?></span>&nbsp;
+                                        <?php } if($creditstring) { ?>
+                                            <br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
+                                        <?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
+                                            您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
+                                            <span class="xi1 xw1">今日您已无法上传更多的附件</span>
+                                        <?php } } ?>
+                                    </div>
+                                </div>
 
-ATTACHNUM['attachused'] = <?php echo @count($attachs['used']); ?>;
-<?php if(!empty($attachs['used']) || !empty($attachs['unused'])) { ?>
-$(editorid + '_attach').evt = false;
-updateattachnum('attach');
-<?php } else { ?>
-switchAttachbutton('swfupload');
-<?php } } if(!empty($attachs['unused'])) { ?>
-display('attachnotice_attach');
-var msg = '';<?php if(is_array($attachs['unused'])) foreach($attachs['unused'] as $attach) { if(!empty($attach['aid'])) { ?>
-msg += '<p><label><input id="unused<?php echo $attach['aid'];?>" name="unused[]" value="<?php echo $attach['aid'];?>" checked type="checkbox" class="pc" /><span title="<?php echo $attach['filenametitle'];?> <?php echo $attach['dateline'];?>"><?php echo $attach['filename'];?></span></label></p>'
-ATTACHUNUSEDAID[<?php echo $attach['aid'];?>] = '<?php echo $attach['aid'];?>';
-<?php } } ?>
-$('unusedlist_attach').innerHTML = '<div class="cl">' + msg + '</div>';
-$('unusednum_attach').innerHTML = parseInt(<?php echo @count($attachs['unused']); ?>);
-<?php } if(!empty($imgattachs['unused'])) { ?>
-display('attachnotice_img');
-var msg = '';<?php if(is_array($imgattachs['unused'])) foreach($imgattachs['unused'] as $attach) { if(!empty($attach['aid'])) { ?>
-msg += '<p style="float:left;width:220px;"><label><input id="unused<?php echo $attach['aid'];?>" name="unused[]" value="<?php echo $attach['aid'];?>" checked type="checkbox" class="pc" /><span title="<?php echo $attach['filenametitle'];?> <?php echo $attach['dateline'];?>"><?php echo $attach['filename'];?></span></label></p>'
-IMGUNUSEDAID[<?php echo $attach['aid'];?>] = '<?php echo $attach['aid'];?>';
-<?php } } ?>
-$('unusedlist_img').innerHTML = '<div class="cl">' + msg + '</div>';
-$('unusednum_img').innerHTML = parseInt(<?php echo @count($imgattachs['unused']); ?>);
-<?php } ?>
-setCaretAtEnd();
-if(BROWSER.ie >= 5 || BROWSER.firefox >= '2') {
-_attachEvent(window, 'beforeunload', unloadAutoSave);
-}
-<?php if(!empty($_GET['cedit']) && $_GET['cedit'] == 'yes') { ?>
-loadData(1);
-$(editorid + '_switchercheck').checked = !wysiwyg;
-<?php } ?>
-</script>
-</div>
+
+                                <div class="p_opt post_tablelist" unselectable="on" id="<?php echo $editorid;?>_attachlist">
+                                    <?php if($allowuploadtoday) { ?>
+                                        <div class="pbm bbda">
+                                            <span id="spanButtonPlaceholder"></span>
+                                        </div>
+                                    <?php } ?>
+                                    <table cellpadding="0" cellspacing="0" border="0" width="100%" id="attach_tblheader" class="mtn bbs"<?php if(empty($attachs['used'])) { ?> style="display: none"<?php } ?>>
+                                        <tr>
+                                            <td class="atnu"></td>
+                                            <td class="atna pbn">文件名 ( <a onclick="insertAllAttachTag();return false;" href="javascript:;" class="xi2">插入全部附件</a> )</td>
+                                            <td class="atds pbn">描述</td>
+                                            <?php if($_G['group']['allowsetattachperm']) { ?>
+                                                <td class="attv pbn">
+                                                    阅读权限
+                                                    <img src="<?php echo IMGDIR;?>/faq.gif" alt="Tip" class="vm" style="margin: 0;" onmouseover="showTip(this)" tip="阅读权限按由高到低排列,高于或等于选中组的用户才可以阅读" />
+                                                </td>
+                                            <?php } if($_G['group']['maxprice']) { ?><td class="attp pbn"><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?></td><?php } ?>
+                                            <td class="attc"></td>
+                                        </tr>
+                                    </table>
+                                    <div class="upfl">
+                                        <?php if(!empty($attachs['used'])) { $attachlist = $attachs['used'];?><?php include template('forum/ajax_attachlist'); } ?>
+                                        <div id="attachlist"></div>
+                                        <div id="unusedattachlist"></div>
+
+                                        <?php if($allowuploadtoday) { ?>
+                                            <div class="fieldset flash" id="fsUploadProgress"></div>
+                                        <?php } ?>
+
+                                    </div>
+                                    <div class="notice upnf">
+                                        <p id="attach_notice"<?php if(empty($attachs['used']) && empty($attachs['unused'])) { ?> style="display: none"<?php } ?>>点击附件文件名添加到帖子内容中<?php if($_G['setting']['allowattachurl']) { ?>,"attach://" 开头的附件地址支持任何人下载请谨慎添加<?php } ?></p>
+                                        文件尺寸: <span class="xi1"><?php if($_G['group']['maxattachsize']) { ?>小于 <?php echo $maxattachsize_mb;?> <?php } else { ?>大小不限制<?php } ?></span>
+                                        <?php if($_G['group']['attachextensions']) { ?>
+                                            , 可用扩展名: <span class="xi1"><?php echo $_G['group']['attachextensions'];?></span>&nbsp;
+                                        <?php } if($creditstring) { ?>
+                                            <br /><a href="forum.php?mod=faq&amp;action=credits&amp;fid=<?php echo $_G['fid'];?>" target="_blank" title="积分说明">每上传一个附件您的&nbsp;<?php echo $creditstring;?></a>
+                                        <?php } if($_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']) { ?><br /><?php if($allowuploadtoday) { ?>
+                                            您今日还能上传 <?php if($_G['group']['maxattachnum']) { ?><strong><?php echo $allowuploadnum;?></strong> 个文件<?php } if($_G['group']['maxsizeperday']) { if($_G['group']['maxattachnum']) { ?> 或者 <?php } ?>总大小 <strong><?php echo $allowuploadsize;?></strong> 以内的文件<?php } } else { ?>
+                                            <span class="xi1 xw1">今日您已无法上传更多的附件</span>
+                                        <?php } } if($_G['group']['maxprice'] && $_G['setting']['maxincperthread']) { ?><br />附件出售最高收入上限为 <?php echo $_G['setting']['maxincperthread'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php } ?>
+                                    </div>
+                                </div>
+                                <?php if(!empty($_G['setting']['pluginhooks']['post_attach_tab_extra'])) echo $_G['setting']['pluginhooks']['post_attach_tab_extra'];?>
+                            </div>
+                            <div class="o">
+                                <button onclick="hideAttachMenu('attach')" class="pn pnc" id="attach_confirms">
+                                    <strong>确定</strong>
+                                </button>
+                            </div>
+                        </td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>
+            </div>
+        <?php } ?>
+
+        <iframe name="attachframe" id="attachframe" style="display: none;" onload="uploadNextAttach();"></iframe>
+
+        <script type="text/javascript">
+            if(wysiwyg) {
+                newEditor(1, bbcode2html(textobj.value));
+            } else {
+                newEditor(0, textobj.value);
+            }
+            <?php if($editor['simplemode'] > 0) { ?>
+            editorsimple();
+            <?php } ?>
+
+            var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
+            <?php if($allowpostimg) { ?>
+            ATTACHNUM['imageused'] = <?php echo @count($imgattachs['used']); ?>;
+            <?php if(!empty($imgattachs['used']) || !empty($imgattachs['unused'])) { ?>
+            switchImagebutton('imgattachlist');
+            $(editorid + '_image').evt = false;
+            updateattachnum('image');
+            <?php } else { ?>
+            switchImagebutton('multi');
+            <?php } } if($_G['group']['allowpostattach'] || $_G['group']['allowpostimage']) { ?>
+
+            ATTACHNUM['attachused'] = <?php echo @count($attachs['used']); ?>;
+            <?php if(!empty($attachs['used']) || !empty($attachs['unused'])) { ?>
+            $(editorid + '_attach').evt = false;
+            updateattachnum('attach');
+            <?php } else { ?>
+            switchAttachbutton('swfupload');
+            <?php } } if(!empty($attachs['unused'])) { ?>
+            display('attachnotice_attach');
+            var msg = '';<?php if(is_array($attachs['unused'])) foreach($attachs['unused'] as $attach) { if(!empty($attach['aid'])) { ?>
+            msg += '<p><label><input id="unused<?php echo $attach['aid'];?>" name="unused[]" value="<?php echo $attach['aid'];?>" checked type="checkbox" class="pc" /><span title="<?php echo $attach['filenametitle'];?> <?php echo $attach['dateline'];?>"><?php echo $attach['filename'];?></span></label></p>'
+            ATTACHUNUSEDAID[<?php echo $attach['aid'];?>] = '<?php echo $attach['aid'];?>';
+            <?php } } ?>
+            $('unusedlist_attach').innerHTML = '<div class="cl">' + msg + '</div>';
+            $('unusednum_attach').innerHTML = parseInt(<?php echo @count($attachs['unused']); ?>);
+            <?php } if(!empty($imgattachs['unused'])) { ?>
+            display('attachnotice_img');
+            var msg = '';<?php if(is_array($imgattachs['unused'])) foreach($imgattachs['unused'] as $attach) { if(!empty($attach['aid'])) { ?>
+            msg += '<p style="float:left;width:220px;"><label><input id="unused<?php echo $attach['aid'];?>" name="unused[]" value="<?php echo $attach['aid'];?>" checked type="checkbox" class="pc" /><span title="<?php echo $attach['filenametitle'];?> <?php echo $attach['dateline'];?>"><?php echo $attach['filename'];?></span></label></p>'
+            IMGUNUSEDAID[<?php echo $attach['aid'];?>] = '<?php echo $attach['aid'];?>';
+            <?php } } ?>
+            $('unusedlist_img').innerHTML = '<div class="cl">' + msg + '</div>';
+            $('unusednum_img').innerHTML = parseInt(<?php echo @count($imgattachs['unused']); ?>);
+            <?php } ?>
+            setCaretAtEnd();
+            if(BROWSER.ie >= 5 || BROWSER.firefox >= '2') {
+                _attachEvent(window, 'beforeunload', unloadAutoSave);
+            }
+            <?php if(!empty($_GET['cedit']) && $_GET['cedit'] == 'yes') { ?>
+            loadData(1);
+            $(editorid + '_switchercheck').checked = !wysiwyg;
+            <?php } ?>
+        </script>
+    </div>
 
 <?php if($special || ($_G['group']['allowsetpublishdate'] && ($_GET['action'] == 'newthread' || ($_GET['action'] == 'edit' && $isfirstpost && $thread['displayorder'] == -4))) || ($_GET['action'] == 'newthread' && $_G['group']['allowpostrushreply'] && $special != 2) || ($_GET['action'] == 'edit' && getstatus($thread['status'], 3))) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>calendar.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <script src="<?php echo $_G['setting']['jspath'];?>calendar.js?<?php echo VERHASH;?>" type="text/javascript"></script>
 <?php } if($allowuploadtoday || $special == 1) { if(empty($_G['setting']['pluginhooks']['post_upload_extend'])) { if(empty($_G['uploadjs'])) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>upload.js?<?php echo VERHASH;?>" type="text/javascript"></script><?php $_G['uploadjs'] = 1;?><?php } ?><script type="text/javascript">
-<?php if($allowpostimg) { ?>
-var imgUpload = new SWFUpload({
-upload_url: "<?php echo $_G['siteurl'];?>misc.php?mod=swfupload&action=swfupload&operation=upload&fid=<?php echo $_G['fid'];?>",
-post_params: {"uid" : "<?php echo $_G['uid'];?>", "hash":"<?php echo $swfconfig['hash'];?>", "type":"image"},
-file_size_limit : "<?php echo $swfconfig['max'];?>",
-file_types : "<?php echo $swfconfig['imageexts']['ext'];?>",
-file_types_description : "<?php echo $swfconfig['imageexts']['depict'];?>",
-file_upload_limit : <?php echo $swfconfig['limit'];?>,
-file_queue_limit : 0,
-swfupload_preload_handler : preLoad,
-swfupload_load_failed_handler : loadFailed,
-file_dialog_start_handler : fileDialogStart,
-file_queued_handler : fileQueued,
-file_queue_error_handler : fileQueueError,
-file_dialog_complete_handler : fileDialogComplete,
-upload_start_handler : uploadStart,
-upload_progress_handler : uploadProgress,
-upload_error_handler : uploadError,
-upload_success_handler : uploadSuccess,
-upload_complete_handler : uploadComplete,
-button_image_url : "<?php echo IMGDIR;?>/uploadbutton.png",
-button_placeholder_id : "imgSpanButtonPlaceholder",
-button_width: 100,
-button_height: 25,
-button_cursor:SWFUpload.CURSOR.HAND,
-button_window_mode: "transparent",
-custom_settings : {
-progressTarget : "imgUploadProgress",
-uploadSource: 'forum',
-uploadType: 'image',
-imgBoxObj: $('imgattachlist'),
-<?php if($swfconfig['maxsizeperday']) { ?>
-maxSizePerDay: <?php echo $swfconfig['maxsizeperday'];?>,
-<?php } if($swfconfig['maxattachnum']) { ?>
-maxAttachNum: <?php echo $swfconfig['maxattachnum'];?>,
-<?php } if($swfconfig['filtertype']) { ?>
-filterType: <?php echo $swfconfig['filtertype'];?>,
-<?php } ?>
-singleUpload: $('<?php echo $editorid;?>_btn_local')
-},
-debug: false
-});
-<?php } if($_G['group']['allowpostattach']) { ?>
-var upload = new SWFUpload({
-upload_url: "<?php echo $_G['siteurl'];?>misc.php?mod=swfupload&action=swfupload&operation=upload&fid=<?php echo $_G['fid'];?>",
-post_params: {"uid":"<?php echo $_G['uid'];?>", "hash":"<?php echo $swfconfig['hash'];?>"},
-file_size_limit : "<?php echo $swfconfig['max'];?>",
-file_types : "<?php echo $swfconfig['attachexts']['ext'];?>",
-file_types_description : "<?php echo $swfconfig['attachexts']['depict'];?>",
-file_upload_limit : <?php echo $swfconfig['limit'];?>,
-file_queue_limit : 0,
-swfupload_preload_handler : preLoad,
-swfupload_load_failed_handler : loadFailed,
-file_dialog_start_handler : fileDialogStart,
-file_queued_handler : fileQueued,
-file_queue_error_handler : fileQueueError,
-file_dialog_complete_handler : fileDialogComplete,
-upload_start_handler : uploadStart,
-upload_progress_handler : uploadProgress,
-upload_error_handler : uploadError,
-upload_success_handler : uploadSuccess,
-upload_complete_handler : uploadComplete,
-button_image_url : "<?php echo IMGDIR;?>/uploadbutton.png",
-button_placeholder_id : "spanButtonPlaceholder",
-button_width: 100,
-button_height: 25,
-button_cursor:SWFUpload.CURSOR.HAND,
-button_window_mode: "transparent",
-custom_settings : {
-progressTarget : "fsUploadProgress",
-uploadSource: 'forum',
-uploadType: 'attach',
-<?php if($swfconfig['maxsizeperday']) { ?>
-maxSizePerDay: <?php echo $swfconfig['maxsizeperday'];?>,
-<?php } if($swfconfig['maxattachnum']) { ?>
-maxAttachNum: <?php echo $swfconfig['maxattachnum'];?>,
-<?php } if($swfconfig['filtertype']) { ?>
-filterType: <?php echo $swfconfig['filtertype'];?>,
-<?php } ?>
-singleUpload: $('<?php echo $editorid;?>_btn_upload')
-},
-
-debug: false
-});
-<?php } ?>
+    <script src="<?php echo $_G['setting']['jspath'];?>upload.js?<?php echo VERHASH;?>" type="text/javascript"></script><?php $_G['uploadjs'] = 1;?><?php } ?><script type="text/javascript">
+    <?php if($allowpostimg) { ?>
+    var imgUpload = new SWFUpload({
+        upload_url: "<?php echo $_G['siteurl'];?>misc.php?mod=swfupload&action=swfupload&operation=upload&fid=<?php echo $_G['fid'];?>",
+        post_params: {"uid" : "<?php echo $_G['uid'];?>", "hash":"<?php echo $swfconfig['hash'];?>", "type":"image"},
+        file_size_limit : "<?php echo $swfconfig['max'];?>",
+        file_types : "<?php echo $swfconfig['imageexts']['ext'];?>",
+        file_types_description : "<?php echo $swfconfig['imageexts']['depict'];?>",
+        file_upload_limit : <?php echo $swfconfig['limit'];?>,
+        file_queue_limit : 0,
+        swfupload_preload_handler : preLoad,
+        swfupload_load_failed_handler : loadFailed,
+        file_dialog_start_handler : fileDialogStart,
+        file_queued_handler : fileQueued,
+        file_queue_error_handler : fileQueueError,
+        file_dialog_complete_handler : fileDialogComplete,
+        upload_start_handler : uploadStart,
+        upload_progress_handler : uploadProgress,
+        upload_error_handler : uploadError,
+        upload_success_handler : uploadSuccess,
+        upload_complete_handler : uploadComplete,
+        button_image_url : "<?php echo IMGDIR;?>/uploadbutton.png",
+        button_placeholder_id : "imgSpanButtonPlaceholder",
+        button_width: 100,
+        button_height: 25,
+        button_cursor:SWFUpload.CURSOR.HAND,
+        button_window_mode: "transparent",
+        custom_settings : {
+            progressTarget : "imgUploadProgress",
+            uploadSource: 'forum',
+            uploadType: 'image',
+            imgBoxObj: $('imgattachlist'),
+            <?php if($swfconfig['maxsizeperday']) { ?>
+            maxSizePerDay: <?php echo $swfconfig['maxsizeperday'];?>,
+            <?php } if($swfconfig['maxattachnum']) { ?>
+            maxAttachNum: <?php echo $swfconfig['maxattachnum'];?>,
+            <?php } if($swfconfig['filtertype']) { ?>
+            filterType: <?php echo $swfconfig['filtertype'];?>,
+            <?php } ?>
+            singleUpload: $('<?php echo $editorid;?>_btn_local')
+        },
+        debug: false
+    });
+    <?php } if($_G['group']['allowpostattach']) { ?>
+    var upload = new SWFUpload({
+        upload_url: "<?php echo $_G['siteurl'];?>misc.php?mod=swfupload&action=swfupload&operation=upload&fid=<?php echo $_G['fid'];?>",
+        post_params: {"uid":"<?php echo $_G['uid'];?>", "hash":"<?php echo $swfconfig['hash'];?>"},
+        file_size_limit : "<?php echo $swfconfig['max'];?>",
+        file_types : "<?php echo $swfconfig['attachexts']['ext'];?>",
+        file_types_description : "<?php echo $swfconfig['attachexts']['depict'];?>",
+        file_upload_limit : <?php echo $swfconfig['limit'];?>,
+        file_queue_limit : 0,
+        swfupload_preload_handler : preLoad,
+        swfupload_load_failed_handler : loadFailed,
+        file_dialog_start_handler : fileDialogStart,
+        file_queued_handler : fileQueued,
+        file_queue_error_handler : fileQueueError,
+        file_dialog_complete_handler : fileDialogComplete,
+        upload_start_handler : uploadStart,
+        upload_progress_handler : uploadProgress,
+        upload_error_handler : uploadError,
+        upload_success_handler : uploadSuccess,
+        upload_complete_handler : uploadComplete,
+        button_image_url : "<?php echo IMGDIR;?>/uploadbutton.png",
+        button_placeholder_id : "spanButtonPlaceholder",
+        button_width: 100,
+        button_height: 25,
+        button_cursor:SWFUpload.CURSOR.HAND,
+        button_window_mode: "transparent",
+        custom_settings : {
+            progressTarget : "fsUploadProgress",
+            uploadSource: 'forum',
+            uploadType: 'attach',
+            <?php if($swfconfig['maxsizeperday']) { ?>
+            maxSizePerDay: <?php echo $swfconfig['maxsizeperday'];?>,
+            <?php } if($swfconfig['maxattachnum']) { ?>
+            maxAttachNum: <?php echo $swfconfig['maxattachnum'];?>,
+            <?php } if($swfconfig['filtertype']) { ?>
+            filterType: <?php echo $swfconfig['filtertype'];?>,
+            <?php } ?>
+            singleUpload: $('<?php echo $editorid;?>_btn_upload')
+        },
+
+        debug: false
+    });
+    <?php } ?>
 </script>
 <?php } else { ?>
-<?php if(!empty($_G['setting']['pluginhooks']['post_upload_extend'])) echo $_G['setting']['pluginhooks']['post_upload_extend'];?>
+    <?php if(!empty($_G['setting']['pluginhooks']['post_upload_extend'])) echo $_G['setting']['pluginhooks']['post_upload_extend'];?>
 <?php } } ?>
 
-<script type="text/javascript">
-var editorsubmit = $('postsubmit');
-var editorform = $('postform');
-<?php if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
-simulateSelect('typeid');
-<?php } if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
-simulateSelect('stand');
-<?php } ?>
-function switchpost(href) {
-editchange = false;
-saveData(1);
-location.href = href + '&fid=<?php echo $_G['fid'];?>&cedit=yes<?php if(!empty($_G['tid'])) { ?>&tid=<?php echo $_G['tid'];?><?php } if(!empty($modelid)) { ?>&modelid=<?php echo $modelid;?><?php } ?>&extra=<?php echo $extra;?>';
-doane();
-}
+    <script type="text/javascript">
+        var editorsubmit = $('postsubmit');
+        var editorform = $('postform');
+        <?php if($isfirstpost && !empty($_G['forum']['threadtypes']['types'])) { ?>
+        simulateSelect('typeid');
+        <?php } if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $_GET['action'] != 'edit') { ?>
+        simulateSelect('stand');
+        <?php } ?>
+        function switchpost(href) {
+            editchange = false;
+            saveData(1);
+            location.href = href + '&fid=<?php echo $_G['fid'];?>&cedit=yes<?php if(!empty($_G['tid'])) { ?>&tid=<?php echo $_G['tid'];?><?php } if(!empty($modelid)) { ?>&modelid=<?php echo $modelid;?><?php } ?>&extra=<?php echo $extra;?>';
+            doane();
+        }
 
-<?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
-showPrompt('custominfo', 'mouseover', '<?php if($_GET['action'] == 'newthread') { echo trim($_G['setting']['sitemessage']['newthread'][array_rand($_G['setting']['sitemessage']['newthread'])]); } elseif($_GET['action'] == 'reply') { echo trim($_G['setting']['sitemessage']['reply'][array_rand($_G['setting']['sitemessage']['reply'])]); } ?>', <?php echo $_G['setting']['sitemessage']['time'];?>);
-<?php } if($_G['group']['allowpostattach']) { ?>addAttach();<?php } if($allowpostimg) { ?>addAttach('img');<?php } ?>
-
-(function () {
-var oSubjectbox = $('subjectbox'),
-oSubject = $('subject'),
-oTextarea = $('e_textarea'),
-sLen = 0;
-if(oSubjectbox) {
-if(oTextarea && oTextarea.style.display == '') {
-oTextarea.focus();
-}
-} else if(oSubject) {
-if(BROWSER.chrome) {
-sLen = oSubject.value.length;
-oSubject.setSelectionRange(sLen, sLen);
-}
-oSubject.focus();
-}
-})();
+        <?php if($_GET['action'] == 'newthread' && $_G['setting']['sitemessage']['newthread'] || $_GET['action'] == 'reply' && $_G['setting']['sitemessage']['reply']) { ?>
+        showPrompt('custominfo', 'mouseover', '<?php if($_GET['action'] == 'newthread') { echo trim($_G['setting']['sitemessage']['newthread'][array_rand($_G['setting']['sitemessage']['newthread'])]); } elseif($_GET['action'] == 'reply') { echo trim($_G['setting']['sitemessage']['reply'][array_rand($_G['setting']['sitemessage']['reply'])]); } ?>', <?php echo $_G['setting']['sitemessage']['time'];?>);
+        <?php } if($_G['group']['allowpostattach']) { ?>addAttach();<?php } if($allowpostimg) { ?>addAttach('img');<?php } ?>
 
-<?php if(empty($_GET['cedit'])) { ?>
-if(loadUserdata('forum_'+discuz_uid)) {
-$('rstnotice').style.display = '';
-}
-<?php } if(!empty($userextcredit)) { ?>
-var have_replycredit = 0;
-var creditstax = <?php echo $_G['setting']['creditstax'];?>;
-var replycredit_result_lang = "税后支付<?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> ";
-var userextcredit = <?php echo $userextcredit;?>;
-<?php if($thread['replycredit'] > 0) { ?>
-have_replycredit = <?php echo $thread['replycredit'];?>;
-<?php } } if($_GET['action'] == 'edit') { ?>
-extraCheckall();
-<?php } ?>
-</script>
+        (function () {
+            var oSubjectbox = $('subjectbox'),
+                oSubject = $('subject'),
+                oTextarea = $('e_textarea'),
+                sLen = 0;
+            if(oSubjectbox) {
+                if(oTextarea && oTextarea.style.display == '') {
+                    oTextarea.focus();
+                }
+            } else if(oSubject) {
+                if(BROWSER.chrome) {
+                    sLen = oSubject.value.length;
+                    oSubject.setSelectionRange(sLen, sLen);
+                }
+                oSubject.focus();
+            }
+        })();
+
+        <?php if(empty($_GET['cedit'])) { ?>
+        if(loadUserdata('forum_'+discuz_uid)) {
+            $('rstnotice').style.display = '';
+        }
+        <?php } if(!empty($userextcredit)) { ?>
+        var have_replycredit = 0;
+        var creditstax = <?php echo $_G['setting']['creditstax'];?>;
+        var replycredit_result_lang = "税后支付<?php echo $_G['setting']['extcredits'][$extcreditstype]['title'];?> ";
+        var userextcredit = <?php echo $userextcredit;?>;
+        <?php if($thread['replycredit'] > 0) { ?>
+        have_replycredit = <?php echo $thread['replycredit'];?>;
+        <?php } } if($_GET['action'] == 'edit') { ?>
+        extraCheckall();
+        <?php } ?>
+    </script>
 <?php if(($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' || $_GET['action'] == 'edit') && $_G['group']['allowat']) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+    <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
 <?php } include template('common/footer'); ?>

+ 22 - 0
data/template/3_3_forum_upload.tpl.php

xqd
@@ -0,0 +1,22 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('upload');?><?php include template('common/header'); ?><div class="upfile">
+<h3 class="flb">
+<em id="return_upload">上传</em>
+<em id="uploadwindowing" class="mtn" style="visibility:hidden"><img src="<?php echo IMGDIR;?>/uploading.gif" alt="" /></em>
+<span><a href="javascript:;" class="flbc" onclick="hideWindow('upload', 0)" title="关闭">关闭</a></span>
+</h3>
+<div class="c">
+<form id="uploadform" class="uploadform ptm pbm" method="post" autocomplete="off" target="uploadattachframe" onsubmit="uploadWindowstart()" action="misc.php?mod=swfupload&amp;operation=upload&amp;type=<?php echo $type;?>&amp;inajax=yes&amp;infloat=yes&amp;simple=2" enctype="multipart/form-data">
+<input type="hidden" name="handlekey" value="upload" />
+<input type="hidden" name="uid" value="<?php echo $_G['uid'];?>">
+<input type="hidden" name="hash" value="<?php echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid']); ?>">
+<div class="filebtn">
+<input type="file" name="Filedata" id="filedata" class="pf cur1" size="1" onchange="$('uploadform').submit()" />
+<button type="button" class="pn pnc"><strong>浏览</strong></button>
+</div>
+</form>
+<p class="xg1 mtn">
+<?php if($type == 'image') { ?>可用扩展名: <span class="xi1"><?php echo $imgexts;?></span><?php } elseif($_G['group']['attachextensions']) { ?>可用扩展名: <span class="xi1"><?php echo $_G['group']['attachextensions'];?></span><?php } ?>
+</p>
+<iframe name="uploadattachframe" id="uploadattachframe" style="display: none;" onload="uploadWindowload();"></iframe>
+</div>
+</div><?php include template('common/footer'); ?>

+ 1358 - 1298
data/template/3_diy_group_group.tpl.php

xqd
@@ -1,1328 +1,1388 @@
-<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('group');
-0
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_index.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_list.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_memberlist.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_create.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_invite.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_manage.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_right.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seccheck.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
-;?><?php include template('common/header'); ?><div id="pt" class="bm cl">
-<div class="z">
-<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a><em>&rsaquo;</em><a href="group.php"><?php echo $_G['setting']['navs']['3']['navname'];?></a><?php if($groupnav) { ?><?php echo $groupnav;?><?php } elseif($action == 'create') { ?><em>&rsaquo;</em>创建<?php echo $_G['setting']['navs']['3']['navname'];?><?php } ?>
-</div>
-</div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
-<div class="wp">
-<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
-</div>
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('group');
+0
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_index.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_list.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_memberlist.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_create.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_invite.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_manage.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/group/group_right.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seccheck.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+|| checktplrefresh('./template/wfdsoft_jiaohu/group/group.htm', './template/default/common/seditor.htm', 1524563502, 'diy', './data/template/3_diy_group_group.tpl.php', './template/wfdsoft_jiaohu', 'group/group')
+;?>
+<?php include template('common/header_no_nav'); ?>
+    <script type="text/javascript" src="/data/cache/area-select/area.js"></script>
+    <script src="static/js/forum_post.js?tDV" type="text/javascript"></script>
+    <style type="text/css">
+        .sg-group-link {
+            font-size: 2em;
+            font-weight: bold;
+            margin: 15px 0;
+        }
+        .sg-group-link a {
+            text-decoration: none;
+        }
+    </style>
+    <div id="pt" class="bm cl">
+        <div class="z sg-group-link">
+            <a href="./" title="首页">首页</a>
+            <span>-</span>
+            <a href="/group.php">俱乐部</a>
+            <?php if($groupnav) { ?>
+                <?php echo $groupnav;?>
+            <?php } elseif($action == 'create') { ?>
+                <span>-</span>
+                <a href="#">创建</a>
+            <?php } ?>
+        </div>
+        <!--<div class="z">-->
+        <!--<a href="./" class="nvhm" title="首页">--><?php //echo $_G['setting']['bbname'];?><!--</a><em>&rsaquo;</em><a href="group.php">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</a>--><?php //if($groupnav) { ?><!----><?php //echo $groupnav;?><!----><?php //} elseif($action == 'create') { ?><!--<em>&rsaquo;</em>创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!----><?php //} ?>
+        <!--</div>-->
+    </div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
+    <div class="wp">
+        <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
+    </div>
 
-<div id="ct" class="ct2 wp cl week_ct2">
-<div class="mn wk_f_mn padding15 backfff">
-<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
-<?php if($action != 'create') { if($_G['forum']['banner']) { ?>
-<div id="gh">
-<img src="<?php echo $_G['forum']['banner'];?>" alt="" />
-<div class="bm bmw bw0">
-<div class="bm_h bw0 cl">
-<h1 class="xs2"><?php echo $_G['forum']['name'];?></h1>
-</div>
-<div class="bm_c">
-<?php if($_G['forum']['description']) { ?><div class="pbn"><?php echo $_G['forum']['description'];?></div><?php } ?>
-<div>
-<a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=group&amp;id=<?php echo $_G['forum']['fid'];?>&amp;handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&amp;formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&amp;fid=<?php echo $_G['fid'];?>&amp;auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?>
-<span class="pipe">|</span><?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&amp;uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a><?php } ?>
-</div>
-<?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
-<div class="ptm pbn">
-<button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
-</div>
-<?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
-<p class="mtm">
-加入方式:
-<?php if($_G['forum']['jointype'] == 1) { ?>
-<strong>邀请加入</strong>
-<?php } elseif($_G['forum']['jointype'] == 2) { ?>
-<strong>审核加入</strong>
-<?php } else { ?>
-<strong>自由加入</strong>
-<?php } ?>
-浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
-</p>
-<p class="mtm xi1">
-<?php if($status == 3 || $status == 5) { ?>
-已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
-<?php } elseif(helper_access::check_module('group')) { ?>
-<button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
-<?php } ?>
-</p>
-<?php } ?>
-</div>
-</div>
-</div>
-<?php } else { ?>
-<div class="bm">
-<div class="bm_c xld xlda cl">
-<dl>
-<dd class="m"><img src="<?php echo $_G['forum']['icon'];?>" alt="<?php echo $_G['forum']['name'];?>" width="48" height="48" /></dd>
-<dt><?php echo $_G['forum']['name'];?></dt>
-<?php if($_G['forum']['description']) { ?><dd><?php echo $_G['forum']['description'];?></dd><?php } ?>
-<dd class="cl">
-<span class="y"><a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=group&amp;id=<?php echo $_G['forum']['fid'];?>&amp;handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&amp;formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&amp;fid=<?php echo $_G['fid'];?>&amp;auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?></span>
-<?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&amp;uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a> <?php } ?>
-</dd>
-<?php if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
-<dd>
-加入方式:
-<?php if($_G['forum']['jointype'] == 1) { ?>
-<strong>邀请加入</strong>
-<?php } elseif($_G['forum']['jointype'] == 2) { ?>
-<strong>审核加入</strong>
-<?php } else { ?>
-<strong>自由加入</strong>
-<?php } ?>
-浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
-</dd>
-<dd class="xi1">
-<?php if($status == 3 || $status == 5) { ?>
-已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
-<?php } elseif(helper_access::check_module('group')) { ?>
-<button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
-<?php } ?>
-</dd>
-<?php } ?>
-</dl>
-<?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
-<div class="ptm pbm">
-<button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
-</div>
-<?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } ?>
-</div>
-</div>
-<?php } ?>
-<!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
-<?php if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_top'])) echo $_G['setting']['pluginhooks']['group_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_top'];?><?php } if($status != 2 && $status != 3) { ?>
-<div class="tb cl<?php if($action != 'manage') { ?> mbm<?php } ?>">
-<?php if(in_array($_G['adminid'], array(1,2))) { ?><span class="a bw0_all y xi2"><a href="javascript:;" onclick="showWindow('grecommend<?php echo $_G['fid'];?>', 'forum.php?mod=group&action=recommend&fid=<?php echo $_G['fid'];?>');return false;">推荐到版块</a></span><?php } ?>
-<ul id="groupnav">
-<li <?php if($action == 'index') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">首页</a></li>
-<li <?php if($action == 'list') { ?>class="a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">讨论区</a></li>
-<li <?php if($action == 'memberlist' || $action == 'invite') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;action=memberlist&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">成员列表</a></li>
-<?php if($_G['forum']['ismoderator']) { ?><li <?php if($action == 'manage') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;action=manage&amp;fid=<?php echo $_G['fid'];?>#groupnav">管理<?php echo $_G['setting']['navs']['3']['navname'];?></a></li><?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_nav_extra'])) echo $_G['setting']['pluginhooks']['group_nav_extra'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_nav_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_nav_extra'];?><?php } ?>
-</ul>
-</div>
-<?php } } if($action == 'index' && $status != 2 && $status != 3) { if($status != 2) { if($livethread) { ?>
-<div id="livethread" class="tl bm bmw cl" style="padding:10px 15px;">
-<div class="livethreadtitle vm">
-<span class="replynumber xg1">回复 <span id="livereplies" class="xi1"><?php echo $livethread['replies'];?></span></span>
-<a href="forum.php?mod=viewthread&amp;tid=<?php echo $livethread['tid'];?>" target="_blank"><?php echo $livethread['subject'];?></a> <img src="<?php echo IMGDIR;?>/livethreadtitle.png" />
-</div>
-<div class="livethreadcon"><?php echo $livemessage;?></div>
-<div id="livereplycontentout">
-<div id="livereplycontent">
-</div>
-</div>
-<div id="liverefresh">有新的发言了,点击刷新</div>
-<div id="livefastreply">
-<form id="livereplypostform" method="post" action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $livethread['tid'];?>&amp;replysubmit=yes&amp;infloat=yes&amp;handlekey=livereplypost&amp;inajax=1" onsubmit="return livereplypostvalidate(this)">
-<div id="livefastcomment">
-<textarea id="livereplymessage" name="message" style="color:gray;<?php if(!$liveallowpostreply) { ?>display:none;<?php } ?>">#在这里快速回复#</textarea>
-<?php if(!$liveallowpostreply) { ?>
-<div>
-<?php if(!$_G['uid']) { ?>
-您需要登录后才可以回帖 <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)" class="xi2">登录</a> | <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2"><?php echo $_G['setting']['reglinkname'];?></a>
-<?php } else { ?>
-您现在无权发帖。<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">点击查看原因</a>
-<?php } ?>
-</div>
-<?php } ?>
-</div>
-<div id="livepostsubmit" style="display:none;">
-<?php if($secqaacheck || $seccodecheck) { ?><?php
-$sectpl = <<<EOF
-<sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
-EOF;
-?>
-<div class="mtm sec" style="text-align:right;"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
-$sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
-<span id="secqaa_q<?php echo $sechash;?>"></span>		
-<script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
-<?php } if($seccodecheck) { ?>
-<span id="seccode_c<?php echo $sechash;?>"></span>		
-<script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
-<?php } ?></div>
-<?php } ?>
-<p class="ptm pnpost" style="margin-bottom:10px;">
-<button type="submit" name="replysubmit" class="pn pnc vm" style="float:right;" value="replysubmit" id="livereplysubmit">
-<strong>发表</strong>
-</button>
-</p>
-</div>
-<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
-<input type="hidden" name="subject" value="  ">
-</form>
-</div>
-<span id="livereplypostreturn"></span>
-</div>
-<script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<script type="text/javascript">
-var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
-var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
-var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
-var replycontentlist = new Array();
-var addreplylist = new Array();
-var timeoutid = timeid = movescrollid = waitescrollid = null;
-var replycontentnum = 0;
-getnewlivepostlist(1);
-timeid = setInterval(getnewlivepostlist, 5000);
-$('livereplycontent').style.width = ($('livereplycontentout').clientWidth - 50) + 'px';
-$('livereplymessage').onfocus = function() {
-if(this.style.color == 'gray') {
-this.value = '';
-this.style.color = 'black';
-$('livepostsubmit').style.display = 'block';
-this.style.height = '56px';
-$('livefastcomment').style.height = '57px';
-}
-};
-$('livereplymessage').onblur = function() {
-if(this.value == '') {
-this.style.color = 'gray';
-this.value = '#在这里快速回复#';
-}
-};
+    <div id="ct" class="ct2 wp cl week_ct2">
+        <div class="mn wk_f_mn padding15 backfff">
+            <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
+            <?php if($action != 'create') { if($_G['forum']['banner']) { ?>
+                <div id="gh">
+                    <img src="<?php echo $_G['forum']['banner'];?>" alt="" />
+                    <div class="bm bmw bw0">
+                        <div class="bm_h bw0 cl">
+                            <h1 class="xs2"><?php echo $_G['forum']['name'];?></h1>
+                        </div>
+                        <div class="bm_c">
+                            <?php if($_G['forum']['description']) { ?><div class="pbn"><?php echo $_G['forum']['description'];?></div><?php } ?>
+                            <div>
+                                <a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=group&amp;id=<?php echo $_G['forum']['fid'];?>&amp;handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&amp;formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&amp;fid=<?php echo $_G['fid'];?>&amp;auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?>
+                                <span class="pipe">|</span><?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&amp;uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a><?php } ?>
+                            </div>
+                            <?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
+                                <div class="ptm pbn">
+                                    <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
+                                </div>
+                            <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
+                                <p class="mtm">
+                                    加入方式:
+                                    <?php if($_G['forum']['jointype'] == 1) { ?>
+                                        <strong>邀请加入</strong>
+                                    <?php } elseif($_G['forum']['jointype'] == 2) { ?>
+                                        <strong>审核加入</strong>
+                                    <?php } else { ?>
+                                        <strong>自由加入</strong>
+                                    <?php } ?>
+                                    浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
+                                </p>
+                                <p class="mtm xi1">
+                                    <?php if($status == 3 || $status == 5) { ?>
+                                        已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
+                                    <?php } elseif(helper_access::check_module('group')) { ?>
+                                        <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
+                                    <?php } ?>
+                                </p>
+                            <?php } ?>
+                        </div>
+                    </div>
+                </div>
+            <?php } else { ?>
+                <div class="bm">
+                    <div class="bm_c xld xlda cl">
+                        <dl>
+                            <dd class="m"><img src="<?php echo $_G['forum']['icon'];?>" alt="<?php echo $_G['forum']['name'];?>" width="48" height="48" /></dd>
+                            <dt><?php echo $_G['forum']['name'];?></dt>
+                            <?php if($_G['forum']['description']) { ?><dd><?php echo $_G['forum']['description'];?></dd><?php } ?>
+                            <dd class="cl">
+                                <span class="y"><a href="home.php?mod=spacecp&amp;ac=favorite&amp;type=group&amp;id=<?php echo $_G['forum']['fid'];?>&amp;handlekey=sharealbumhk_<?php echo $_G['forum']['fid'];?>&amp;formhash=<?php echo FORMHASH;?>" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" title="收藏" class="fa_fav">收藏</a><span class="pipe">|</span><?php if($_G['setting']['rssstatus'] && !$_GET['archiveid']) { ?><a href="forum.php?mod=rss&amp;fid=<?php echo $_G['fid'];?>&amp;auth=<?php echo $rssauth;?>" target="_blank" title="RSS" class="fa_rss">RSS</a><?php } if($status == 'isgroupuser' && helper_access::check_module('group')) { ?><span class="pipe">|</span><a href="javascript:;" onclick="showWindow('invite','misc.php?mod=invite&action=group&id=<?php echo $_G['fid'];?>')" class="fa_ivt"><strong class="xi2">邀请好友</strong></a><?php } ?></span>
+                                <?php if($_G['current_grouplevel']['icon']) { ?><img src="<?php echo $_G['current_grouplevel']['icon'];?>" title="<?php echo $_G['setting']['navs']['3']['navname'];?>等级: <?php echo $_G['current_grouplevel']['leveltitle'];?>" class="vm"> <?php } ?>积分: <?php echo $_G['forum']['commoncredits'];?><span class="pipe">|</span>群主: <?php $i = 1;?><?php if(is_array($groupmanagers)) foreach($groupmanagers as $manage) { if($i <= 0) { ?>, <?php } $i--;?><a href="home.php?mod=space&amp;uid=<?php echo $manage['uid'];?>" target="_blank" class="xi2"><?php echo $manage['username'];?></a> <?php } ?>
+                            </dd>
+                            <?php if($action == 'index' && ($status == 2 || $status == 3 || $status == 5)) { ?>
+                                <dd>
+                                    加入方式:
+                                    <?php if($_G['forum']['jointype'] == 1) { ?>
+                                        <strong>邀请加入</strong>
+                                    <?php } elseif($_G['forum']['jointype'] == 2) { ?>
+                                        <strong>审核加入</strong>
+                                    <?php } else { ?>
+                                        <strong>自由加入</strong>
+                                    <?php } ?>
+                                    浏览权限: <strong><?php if($_G['forum']['gviewperm'] == 0) { ?>仅成员<?php } else { ?>所有人<?php } ?></strong>
+                                </dd>
+                                <dd class="xi1">
+                                    <?php if($status == 3 || $status == 5) { ?>
+                                        已加入该<?php echo $_G['setting']['navs']['3']['navname'];?>,等待群主审核中...
+                                    <?php } elseif(helper_access::check_module('group')) { ?>
+                                        <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
+                                    <?php } ?>
+                                </dd>
+                            <?php } ?>
+                        </dl>
+                        <?php if($status != 2 && $status != 3 && $status != 5) { if(helper_access::check_module('group') && $status != 'isgroupuser') { ?>
+                            <div class="ptm pbm">
+                                <button type="button" class="pn" onclick="location.href='forum.php?mod=group&action=join&fid=<?php echo $_G['fid'];?>'"><em>加入<?php echo $_G['setting']['navs']['3']['navname'];?></em></button>
+                            </div>
+                        <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_navlink'])) echo $_G['setting']['pluginhooks']['group_navlink'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_navlink'])) echo $_G['setting']['pluginhooks']['forumdisplay_navlink'];?><?php } } ?>
+                    </div>
+                </div>
+            <?php } ?>
+                <!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
+                <?php if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_top'])) echo $_G['setting']['pluginhooks']['group_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_top'];?><?php } if($status != 2 && $status != 3) { ?>
+                    <div class="tb cl<?php if($action != 'manage') { ?> mbm<?php } ?>">
+                        <?php if(in_array($_G['adminid'], array(1,2))) { ?><span class="a bw0_all y xi2"><a href="javascript:;" onclick="showWindow('grecommend<?php echo $_G['fid'];?>', 'forum.php?mod=group&action=recommend&fid=<?php echo $_G['fid'];?>');return false;">推荐到版块</a></span><?php } ?>
+                        <ul id="groupnav">
+                            <li <?php if($action == 'index') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">首页</a></li>
+                            <li <?php if($action == 'list') { ?>class="a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">讨论区</a></li>
+                            <li <?php if($action == 'memberlist' || $action == 'invite') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;action=memberlist&amp;fid=<?php echo $_G['fid'];?>#groupnav" title="">成员列表</a></li>
+                            <?php if($_G['forum']['ismoderator']) { ?><li <?php if($action == 'manage') { ?>class="a"<?php } ?>><a href="forum.php?mod=group&amp;action=manage&amp;fid=<?php echo $_G['fid'];?>#groupnav">管理<?php echo $_G['setting']['navs']['3']['navname'];?></a></li><?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_nav_extra'])) echo $_G['setting']['pluginhooks']['group_nav_extra'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_nav_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_nav_extra'];?><?php } ?>
+                        </ul>
+                    </div>
+                <?php } } if($action == 'index' && $status != 2 && $status != 3) { if($status != 2) { if($livethread) { ?>
+                <div id="livethread" class="tl bm bmw cl" style="padding:10px 15px;">
+                    <div class="livethreadtitle vm">
+                        <span class="replynumber xg1">回复 <span id="livereplies" class="xi1"><?php echo $livethread['replies'];?></span></span>
+                        <a href="forum.php?mod=viewthread&amp;tid=<?php echo $livethread['tid'];?>" target="_blank"><?php echo $livethread['subject'];?></a> <img src="<?php echo IMGDIR;?>/livethreadtitle.png" />
+                    </div>
+                    <div class="livethreadcon"><?php echo $livemessage;?></div>
+                    <div id="livereplycontentout">
+                        <div id="livereplycontent">
+                        </div>
+                    </div>
+                    <div id="liverefresh">有新的发言了,点击刷新</div>
+                    <div id="livefastreply">
+                        <form id="livereplypostform" method="post" action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $livethread['tid'];?>&amp;replysubmit=yes&amp;infloat=yes&amp;handlekey=livereplypost&amp;inajax=1" onsubmit="return livereplypostvalidate(this)">
+                            <div id="livefastcomment">
+                                <textarea id="livereplymessage" name="message" style="color:gray;<?php if(!$liveallowpostreply) { ?>display:none;<?php } ?>">#在这里快速回复#</textarea>
+                                <?php if(!$liveallowpostreply) { ?>
+                                    <div>
+                                        <?php if(!$_G['uid']) { ?>
+                                            您需要登录后才可以回帖 <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)" class="xi2">登录</a> | <a href="member.php?mod=<?php echo $_G['setting']['regname'];?>" class="xi2"><?php echo $_G['setting']['reglinkname'];?></a>
+                                        <?php } else { ?>
+                                            您现在无权发帖。<a href="javascript:;" onclick="ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));" class="xi2">点击查看原因</a>
+                                        <?php } ?>
+                                    </div>
+                                <?php } ?>
+                            </div>
+                            <div id="livepostsubmit" style="display:none;">
+                                <?php if($secqaacheck || $seccodecheck) { ?><?php
+                                    $sectpl = <<<EOF
+<sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>
+EOF;
+                                    ?>
+                                    <div class="mtm sec" style="text-align:right;"><?php $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'] : $sechash.random(3);
+                                        $sectpl = str_replace("'", "\'", $sectpl);?><?php if($secqaacheck) { ?>
+                                            <span id="secqaa_q<?php echo $sechash;?>"></span>
+                                            <script type="text/javascript" reload="1">updatesecqaa('q<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
+                                        <?php } if($seccodecheck) { ?>
+                                            <span id="seccode_c<?php echo $sechash;?>"></span>
+                                            <script type="text/javascript" reload="1">updateseccode('c<?php echo $sechash;?>', '<?php echo $sectpl;?>', '<?php echo $_G['basescript'];?>::<?php echo CURMODULE;?>');</script>
+                                        <?php } ?></div>
+                                <?php } ?>
+                                <p class="ptm pnpost" style="margin-bottom:10px;">
+                                    <button type="submit" name="replysubmit" class="pn pnc vm" style="float:right;" value="replysubmit" id="livereplysubmit">
+                                        <strong>发表</strong>
+                                    </button>
+                                </p>
+                            </div>
+                            <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+                            <input type="hidden" name="subject" value="  ">
+                        </form>
+                    </div>
+                    <span id="livereplypostreturn"></span>
+                </div>
+                <script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                <script type="text/javascript">
+                    var postminchars = parseInt('<?php echo $_G['setting']['minpostsize'];?>');
+                    var postmaxchars = parseInt('<?php echo $_G['setting']['maxpostsize'];?>');
+                    var disablepostctrl = parseInt('<?php echo $_G['group']['disablepostctrl'];?>');
+                    var replycontentlist = new Array();
+                    var addreplylist = new Array();
+                    var timeoutid = timeid = movescrollid = waitescrollid = null;
+                    var replycontentnum = 0;
+                    getnewlivepostlist(1);
+                    timeid = setInterval(getnewlivepostlist, 5000);
+                    $('livereplycontent').style.width = ($('livereplycontentout').clientWidth - 50) + 'px';
+                    $('livereplymessage').onfocus = function() {
+                        if(this.style.color == 'gray') {
+                            this.value = '';
+                            this.style.color = 'black';
+                            $('livepostsubmit').style.display = 'block';
+                            this.style.height = '56px';
+                            $('livefastcomment').style.height = '57px';
+                        }
+                    };
+                    $('livereplymessage').onblur = function() {
+                        if(this.value == '') {
+                            this.style.color = 'gray';
+                            this.value = '#在这里快速回复#';
+                        }
+                    };
 
-$('liverefresh').onclick = function() {
-$('livereplycontent').style.position = 'absolute';
-getnewlivepostlist();
-this.style.display = 'none';
-};
+                    $('liverefresh').onclick = function() {
+                        $('livereplycontent').style.position = 'absolute';
+                        getnewlivepostlist();
+                        this.style.display = 'none';
+                    };
 
-$('livereplycontentout').onmouseover = function(e) {
+                    $('livereplycontentout').onmouseover = function(e) {
 
-if($('livereplycontent').style.position == 'absolute' && $('livereplycontent').clientHeight > 215) {
-$('livereplycontent').style.position = 'static';
-this.scrollTop = this.scrollHeight;
-}
+                        if($('livereplycontent').style.position == 'absolute' && $('livereplycontent').clientHeight > 215) {
+                            $('livereplycontent').style.position = 'static';
+                            this.scrollTop = this.scrollHeight;
+                        }
 
-if(this.scrollTop + this.clientHeight != this.scrollHeight) {
-clearInterval(timeid);
-clearTimeout(timeoutid);
-clearInterval(movescrollid);
-timeid = timeoutid = movescrollid = null;
+                        if(this.scrollTop + this.clientHeight != this.scrollHeight) {
+                            clearInterval(timeid);
+                            clearTimeout(timeoutid);
+                            clearInterval(movescrollid);
+                            timeid = timeoutid = movescrollid = null;
 
-if(waitescrollid == null) {
-waitescrollid = setTimeout(function() {
-$('liverefresh').style.display = 'block';
-}, 60000 * 10);
-}
-} else {
-clearTimeout(waitescrollid);
-waitescrollid = null;
-}
-};
+                            if(waitescrollid == null) {
+                                waitescrollid = setTimeout(function() {
+                                    $('liverefresh').style.display = 'block';
+                                }, 60000 * 10);
+                            }
+                        } else {
+                            clearTimeout(waitescrollid);
+                            waitescrollid = null;
+                        }
+                    };
 
-$('livereplycontentout').onmouseout = function(e) {
+                    $('livereplycontentout').onmouseout = function(e) {
 
-if(this.scrollTop + this.clientHeight == this.scrollHeight) {
-$('livereplycontent').style.position = 'absolute';
-clearInterval(timeid);
-timeid = setInterval(getnewlivepostlist, 10000);
-}
-};
+                        if(this.scrollTop + this.clientHeight == this.scrollHeight) {
+                            $('livereplycontent').style.position = 'absolute';
+                            clearInterval(timeid);
+                            timeid = setInterval(getnewlivepostlist, 10000);
+                        }
+                    };
 
-function getnewlivepostlist(first) {
-var x = new Ajax('JSON');
-x.getJSON('forum.php?mod=misc&action=livelastpost&fid=<?php echo $livethread['fid'];?>', function(s, x) {
-var count = s.data.count;
-$('livereplies').innerHTML = count;
-var newpostlist = s.data.list;
-for(i in newpostlist) {
-var postid = i;
-var postcontent = '';
-postcontent += '<dt><a href="home.php?mod=space&amp;uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].avatar + '</a></dt>';
-postcontent += '<dd><a href="home.php?mod=space&amp;uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].author + '</a></dd>';
-postcontent += '<dd>' + newpostlist[i].message + '</dd>';
-postcontent += '<dd class="dateline">' + newpostlist[i].dateline + '</dd>';
-if(replycontentlist[postid]) {
-$('livereply_' + postid).innerHTML = postcontent;
-continue;
-}
-addreplylist[postid] = '<dl id="livereply_' + postid + '">' + postcontent + '</dl>';
-}
-if(first) {
-for(i in addreplylist) {
-replycontentlist[i] = addreplylist[i];
-replycontentnum++;
-var div = document.createElement('div');
-div.innerHTML = addreplylist[i];
-$('livereplycontent').appendChild(div);
-delete addreplylist[i];
-}
-} else {
-livecontentfacemove();
-}
-});
-}
+                    function getnewlivepostlist(first) {
+                        var x = new Ajax('JSON');
+                        x.getJSON('forum.php?mod=misc&action=livelastpost&fid=<?php echo $livethread['fid'];?>', function(s, x) {
+                            var count = s.data.count;
+                            $('livereplies').innerHTML = count;
+                            var newpostlist = s.data.list;
+                            for(i in newpostlist) {
+                                var postid = i;
+                                var postcontent = '';
+                                postcontent += '<dt><a href="home.php?mod=space&amp;uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].avatar + '</a></dt>';
+                                postcontent += '<dd><a href="home.php?mod=space&amp;uid=' + newpostlist[i].authorid + '" target="_blank">' + newpostlist[i].author + '</a></dd>';
+                                postcontent += '<dd>' + newpostlist[i].message + '</dd>';
+                                postcontent += '<dd class="dateline">' + newpostlist[i].dateline + '</dd>';
+                                if(replycontentlist[postid]) {
+                                    $('livereply_' + postid).innerHTML = postcontent;
+                                    continue;
+                                }
+                                addreplylist[postid] = '<dl id="livereply_' + postid + '">' + postcontent + '</dl>';
+                            }
+                            if(first) {
+                                for(i in addreplylist) {
+                                    replycontentlist[i] = addreplylist[i];
+                                    replycontentnum++;
+                                    var div = document.createElement('div');
+                                    div.innerHTML = addreplylist[i];
+                                    $('livereplycontent').appendChild(div);
+                                    delete addreplylist[i];
+                                }
+                            } else {
+                                livecontentfacemove();
+                            }
+                        });
+                    }
 
-function livecontentfacemove() {
+                    function livecontentfacemove() {
 //note 从队列中取出数据
-var reply = '';
-for(i in addreplylist) {
-reply = replycontentlist[i] = addreplylist[i];
-replycontentnum++;
-delete addreplylist[i];
-break;
-}
-if(reply) {
-var div = document.createElement('div');
-div.innerHTML = reply;
-var oldclientHeight = $('livereplycontent').clientHeight;
-$('livereplycontent').appendChild(div);
-$('livereplycontentout').style.overflowY = 'hidden';
-$('livereplycontent').style.bottom = oldclientHeight - $('livereplycontent').clientHeight + 'px';
+                        var reply = '';
+                        for(i in addreplylist) {
+                            reply = replycontentlist[i] = addreplylist[i];
+                            replycontentnum++;
+                            delete addreplylist[i];
+                            break;
+                        }
+                        if(reply) {
+                            var div = document.createElement('div');
+                            div.innerHTML = reply;
+                            var oldclientHeight = $('livereplycontent').clientHeight;
+                            $('livereplycontent').appendChild(div);
+                            $('livereplycontentout').style.overflowY = 'hidden';
+                            $('livereplycontent').style.bottom = oldclientHeight - $('livereplycontent').clientHeight + 'px';
+
+                            if(replycontentnum > 20) {
+                                $('livereplycontent').removeChild($('livereplycontent').firstChild);
+                                for(i in replycontentlist) {
+                                    delete replycontentlist[i];
+                                    break;
+                                }
+                                replycontentnum--;
+                            }
 
-if(replycontentnum > 20) {
-$('livereplycontent').removeChild($('livereplycontent').firstChild);
-for(i in replycontentlist) {
-delete replycontentlist[i];
-break;
-}
-replycontentnum--;
-}
+                            if(!movescrollid) {
+                                movescrollid = setInterval(function() {
+                                    if(parseInt($('livereplycontent').style.bottom) < 0) {
+                                        $('livereplycontent').style.bottom =
+                                            ((parseInt($('livereplycontent').style.bottom) + 5) > 0 ? 0 : (parseInt($('livereplycontent').style.bottom) + 5)) + 'px';
+                                    } else {
+                                        $('livereplycontentout').style.overflowY = 'auto';
+                                        clearInterval(movescrollid);
+                                        movescrollid = null;
+                                        timeoutid = setTimeout(livecontentfacemove, 1000);
+                                    }
+                                }, 100);
+                            }
+                        }
+                    }
 
-if(!movescrollid) {
-movescrollid = setInterval(function() {
-if(parseInt($('livereplycontent').style.bottom) < 0) {
-$('livereplycontent').style.bottom =
-((parseInt($('livereplycontent').style.bottom) + 5) > 0 ? 0 : (parseInt($('livereplycontent').style.bottom) + 5)) + 'px';
-} else {
-$('livereplycontentout').style.overflowY = 'auto';
-clearInterval(movescrollid);
-movescrollid = null;
-timeoutid = setTimeout(livecontentfacemove, 1000);
-}
-}, 100);
-}
-}
-}
+                    function livereplypostvalidate(theform) {
+                        var s;
+                        if(theform.message.value == '' || $('livereplymessage').style.color == 'gray') {
+                            s = '抱歉,您尚未输入内容';
+                        }
+                        if(s) {
+                            showError(s);
+                            doane();
+                            $('livereplysubmit').disabled = false;
+                            return false;
+                        }
+                        $('livereplysubmit').disabled = true;
+                        theform.message.value = theform.message.value.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, '$1[img]$2[/img]');
+                        theform.message.value = parseurl(theform.message.value);
+                        ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));
+                        return false;
+                    }
+
+                    function succeedhandle_livereplypost(url, msg, param) {
+                        $('livereplymessage').value = '';
+                        $('livereplycontent').style.position = 'absolute';
+                        if(param['sechash']) {
+                            updatesecqaa(param['sechash']);
+                            updateseccode(param['sechash']);
+                        }
+                        getnewlivepostlist();
+                    }
+                </script>
+            <?php } if(helper_access::check_module('group')) { ?>
+                <div id="pgt" class="bm bw0 pgs cl">
+                    <div class="pg">
+                        <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>" class="nxt">查看所有主题</a>
+                    </div>
+                    <a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
+                </div>
+            <?php } ?>
+                <div class="tl bm bml">
+                    <div class="th">
+                        <table cellpadding="0" cellspacing="0" border="0">
+                            <thead>
+                            <tr>
+                                <td class="icn">&nbsp;</td>
+                                <th>最新主题</th>
+                                <td class="by">作者/时间</td>
+                                <td class="num">回复/查看</td>
+                                <td class="by">最后发表</td>
+                            </tr>
+                            </thead>
+                        </table>
+                    </div>
+                    <div class="bm_c">
+                        <?php if($newthreadlist['dateline']['data']) { ?>
+                            <table cellpadding="0" cellspacing="0" border="0">
+                                <tbody id="<?php echo $thread['id'];?>"><?php if(is_array($newthreadlist['dateline']['data'])) foreach($newthreadlist['dateline']['data'] as $thread) { ?><tr>
+                                    <td class="icn">
+                                        <a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>" title="新窗口打开" target="_blank">
+                                            <?php if($thread['folder'] == 'lock') { ?>
+                                                <img src="<?php echo IMGDIR;?>/folder_lock.gif" />
+                                            <?php } elseif($thread['special'] == 1) { ?>
+                                                <img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
+                                            <?php } elseif($thread['special'] == 2) { ?>
+                                                <img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
+                                            <?php } elseif($thread['special'] == 3) { ?>
+                                                <img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
+                                            <?php } elseif($thread['special'] == 4) { ?>
+                                                <img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
+                                            <?php } elseif($thread['special'] == 5) { ?>
+                                                <img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
+                                            <?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
+                                                <img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" />
+                                            <?php } else { ?>
+                                                <img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
+                                            <?php } ?>
+                                        </a>
+                                    </td>
+                                    <th>
+                                        <span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>" class="xst"><?php echo $thread['subject'];?></a></span>
+                                    </th>
+                                    <td class="by">
+                                        <cite>
+                                            <?php if($thread['authorid'] && $thread['author']) { ?>
+                                                <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a>
+                                            <?php } else { if($_G['forum']['ismoderator']) { ?>
+                                                <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>">匿名</a>
+                                            <?php } else { ?>
+                                                匿名
+                                            <?php } } ?>
+                                        </cite>
+                                        <em><?php echo $thread['dateline'];?></em>
+                                    </td>
+                                    <td class="num">
+                                        <a class="xi2" href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>"><?php echo $thread['allreplies'];?></a><em><?php echo $thread['views'];?></em>
+                                    </td>
+                                    <td class="by">
+                                        <cite>
+                                            <?php if($thread['lastposterenc']) { ?>
+                                                <a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a>
+                                            <?php } else { ?>
+                                                匿名
+                                            <?php } ?>
+                                        </cite>
+                                        <em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
+                                    </td>
+                                    </tr>
+                                <?php } ?>
+                                </tbody>
+                                <?php if($_G['forum']['threads'] > 10) { ?>
+                                    <tbody>
+                                    <tr class="bw0_all">
+                                        <td colspan="5" class="ptm"><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>#groupnav" class="y xi2">点击查看更多话题</a></td>
+                                    </tr>
+                                    </tbody>
+                                <?php } ?>
+                            </table>
+                        <?php } else { ?>
+                            <p class="emp">本版块或指定的范围内尚无主题。</p>
+                        <?php } ?>
+                    </div>
+                </div>
+                <div class="bm bml">
+                    <div class="bm_h cl">
+                        <h2>成员动态</h2>
+                    </div>
+                    <div class="bm_c">
+                        <?php if($groupfeedlist) { ?>
+                            <ul class="el"><?php if(is_array($groupfeedlist)) foreach($groupfeedlist as $feed) { ?><li>
+                                    <img src="<?php echo $feed['icon_image'];?>" class="t" />
+                                    <?php if(!empty($feed['title_template'])) { ?><?php echo $feed['title_template'];?><?php } ?> <?php if(!empty($feed['body_data']['subject'])) { ?><?php echo $feed['body_data']['subject'];?><?php } ?>
+                                    </li>
+                                <?php } ?>
+                            </ul>
+                        <?php } else { ?>
+                            <p class="emp">本<?php echo $_G['setting']['navs']['3']['navname'];?>没有最新动态</p>
+                        <?php } ?>
+                    </div>
+                </div>
+            <?php if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
+                <ul class="p_pop" id="newspecial_menu" style="display: none">
+                    <?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
+                        <li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
+                    <?php } } } if($_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $id => $threadsorts) { if($_G['forum']['threadsorts']['show'][$id]) { ?>
+                        <li class="popupmenu_option"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;sortid=<?php echo $id;?>"><?php echo $threadsorts;?></a></li>
+                    <?php } } } ?>
+                </ul>
+            <?php } } } elseif($action == 'list') { if($_G['forum']['ismoderator']) { ?>
+                <script src="<?php echo $_G['setting']['jspath'];?>forum_moderate.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+            <?php } ?>
+                <div id="pgt" class="bm bw0 pgs cl">
+                    <?php echo $multipage;?>
+                    <?php if(helper_access::check_module('group')) { ?>
+                        <span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>">返回首页</a></span>
 
-function livereplypostvalidate(theform) {
-var s;
-if(theform.message.value == '' || $('livereplymessage').style.color == 'gray') {
-s = '抱歉,您尚未输入内容';
-}
-if(s) {
-showError(s);
-doane();
-$('livereplysubmit').disabled = false;
-return false;
-}
-$('livereplysubmit').disabled = true;
-theform.message.value = theform.message.value.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, '$1[img]$2[/img]');
-theform.message.value = parseurl(theform.message.value);
-ajaxpost('livereplypostform', 'livereplypostreturn', 'livereplypostreturn', 'onerror', $('livereplysubmit'));
-return false;
-}
+                        <a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
+                    <?php } ?>
+                    <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_top'];?>
+                </div>
+            <?php if($_G['forum']['threadtypes']) { ?>
+                <ul class="ttp bm cl">
+                    <li id="ttp_all"<?php if(!$_GET['typeid']) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>">全部</a></li>
+                    <?php if($_G['forum']['threadtypes']) { if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $id => $name) { ?><li<?php if($_GET['typeid'] == $id) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?><?php if($_GET['typeid'] != $id) { ?>&amp;filter=typeid&amp;typeid=<?php echo $id;?><?php echo $forumdisplayadd['typeid'];?><?php } ?>"><?php echo $name;?></a>
+                        <?php } } ?>
+                        <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_filter_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_filter_extra'];?>
+                </ul>
+            <?php } ?>
+                <div id="threadlist" class="tl bm" style="position: relative;">
+                    <div class="th">
+                        <table cellpadding="0" cellspacing="0">
+                            <tr>
+                                <td class="icn">&nbsp;</td>
+                                <?php if($_G['forum']['ismoderator']) { ?><td class="o">&nbsp;</td><?php } ?>
+                                <th>帖子</th>
+                                <td class="by">作者/时间</td>
+                                <td class="num">回复/查看</td>
+                                <td class="by">最后发表</td>
+                            </tr>
+                        </table>
+                    </div>
+                    <div class="bm_c">
+                        <form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&amp;action=moderate&amp;fid=<?php echo $_G['fid'];?>&amp;infloat=yes&amp;nopost=yes">
+                            <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
+                            <input type="hidden" name="listextra" value="<?php echo $extra;?>" />
+                            <table cellpadding="0" cellspacing="0" border="0">
+                                <?php if($_G['forum_threadcount']) { ?>
+                                    <tbody class="emptb"><tr><td class="icn"></td><?php if($_G['forum']['ismoderator']) { ?><td class="o"></td><?php } ?><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody><?php if(is_array($_G['forum_threadlist'])) foreach($_G['forum_threadlist'] as $key => $thread) { ?><?php echo adshow("threadlist");?><tbody id="<?php echo $thread['id'];?>">
+                                    <tr>
+                                        <td class="icn">
+                                            <a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>" title="新窗口打开" target="_blank">
+                                                <?php if($thread['folder'] == 'lock') { ?>
+                                                    <img src="<?php echo IMGDIR;?>/folder_lock.gif" />
+                                                <?php } elseif($thread['special'] == 1) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
+                                                <?php } elseif($thread['special'] == 2) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
+                                                <?php } elseif($thread['special'] == 3) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
+                                                <?php } elseif($thread['special'] == 4) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
+                                                <?php } elseif($thread['special'] == 5) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
+                                                <?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
+                                                    <img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" />
+                                                <?php } else { ?>
+                                                    <img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
+                                                <?php } ?>
+                                        </td>
+                                        <?php if($_G['forum']['ismoderator']) { ?>
+                                            <td class="o">
+                                                <?php if($thread['fid'] == $_G['fid']) { if($thread['displayorder'] <= 3 || $_G['adminid'] == 1) { ?>
+                                                    <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" class="pc" value="<?php echo $thread['tid'];?>" />
+                                                <?php } else { ?>
+                                                    <input type="checkbox" disabled="disabled" />
+                                                <?php } } else { ?>
+                                                    <input type="checkbox" disabled="disabled" />
+                                                <?php } ?>
+                                            </td>
+                                        <?php } ?>
+                                        <th>
+                                            <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_thread'][$key])) echo $_G['setting']['pluginhooks']['forumdisplay_thread'][$key];?>
+                                            <?php if($thread['moved']) { if($_G['forum']['ismoderator']) { ?>
+                                                <a href="forum.php?mod=topicadmin&amp;action=moderate&amp;optgroup=3&amp;operation=delete&amp;tid=<?php echo $thread['moved'];?>" onclick="showWindow('mods', this.href);return false">移动:</a>
+                                            <?php } else { ?>
+                                                移动:
+                                            <?php } } ?>
+                                            <?php echo $thread['typehtml'];?>
+                                            <span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"<?php echo $thread['highlight'];?> class="xst"><?php echo $thread['subject'];?></a></span>
+                                            <?php if($thread['readperm']) { ?> - [阅读权限 <span class="xw1"><?php echo $thread['readperm'];?></span>]<?php } if($thread['price'] > 0) { if($thread['special'] == '3') { ?>
+                                                - <span style="color: #C60">[悬赏<span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['title'];?>]</span>
+                                            <?php } else { ?>
+                                                - [售价 <span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>]
+                                            <?php } } elseif($thread['special'] == '3' && $thread['price'] < 0) { ?>
+                                                - <span style="color: #269F11">[已解决]</span>
+                                            <?php } if($thread['attachment'] == 2) { ?>
+                                                <img src="<?php echo STATICURL;?>image/filetype/image_s.gif" alt="图片附件" align="absmiddle" />
+                                            <?php } elseif($thread['attachment'] == 1) { ?>
+                                                <img src="<?php echo STATICURL;?>image/filetype/common.gif" alt="附件" align="absmiddle" />
+                                            <?php } if($thread['displayorder'] == 0) { if($thread['recommendicon']) { ?>
+                                                <img src="<?php echo IMGDIR;?>/recommend_<?php echo $thread['recommendicon'];?>.gif" align="absmiddle" alt="recommend" title="评价指数 <?php echo $thread['recommends'];?>" />
+                                            <?php } if($thread['heatlevel']) { ?>
+                                                <img src="<?php echo IMGDIR;?>/hot_<?php echo $thread['heatlevel'];?>.gif" align="absmiddle" alt="heatlevel" title="<?php echo $thread['heatlevel'];?> 级热门" />
+                                            <?php } if($thread['digest'] > 0) { ?>
+                                                <img src="<?php echo IMGDIR;?>/digest_<?php echo $thread['digest'];?>.gif" align="absmiddle" alt="digest" title="精华 <?php echo $thread['digest'];?>" />
+                                            <?php } if($thread['rate'] > 0) { ?>
+                                                <img src="<?php echo IMGDIR;?>/agree.gif" align="absmiddle" alt="agree" title="帖子被加分" />
+                                            <?php } } if($thread['multipage']) { ?>
+                                                <span class="tps"><?php echo $thread['multipage'];?></span>
+                                            <?php } ?>
+                                        </th>
+                                        <td class="by">
+                                            <cite>
+                                                <?php if($thread['authorid'] && $thread['author']) { ?>
+                                                    <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a><?php if(!empty($verify[$thread['authorid']])) { ?><?php echo $verify[$thread['authorid']];?><?php } } else { if($_G['forum']['ismoderator']) { ?>
+                                                    <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>">匿名</a>
+                                                <?php } else { ?>
+                                                    匿名
+                                                <?php } } ?>
+                                            </cite>
+                                            <em><?php echo $thread['dateline'];?></em>
+                                        </td>
+                                        <td class="num">
+                                            <?php echo $thread['allreplies'];?><em><?php echo $thread['views'];?></em>
+                                        </td>
+                                        <td class="by">
+                                            <cite><?php if($thread['lastposter']) { ?><a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a></cite><?php } else { ?>匿名<?php } ?></cite><em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost<?php echo $highlight;?>#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
+                                        </td>
+                                    </tr>
+                                        </tbody>
+                                    <?php } } else { ?>
+                                    <tbody><tr><th colspan="6"><p class="emp">本版块或指定的范围内尚无主题。</p></th></tr></tbody>
+                                <?php } ?>
+                            </table>
+                            <?php if($_G['forum']['ismoderator'] && $_G['forum_threadcount']) { include template('forum/topicadmin_modlayer'); } ?>
+                        </form>
+                    </div>
+                </div>
+            <?php if(helper_access::check_module('group')) { ?>
+                <div class="bm bw0 pgs cl">
+                    <?php echo $multipage;?>
+                    <span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>">返回首页</a></span>
+                    <a href="javascript:;" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
+                    <?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'];?>
+                </div>
 
-function succeedhandle_livereplypost(url, msg, param) {
-$('livereplymessage').value = '';
-$('livereplycontent').style.position = 'absolute';
-if(param['sechash']) {
-updatesecqaa(param['sechash']);
-updateseccode(param['sechash']);
-}
-getnewlivepostlist();
-}
-</script>
-<?php } if(helper_access::check_module('group')) { ?>
-<div id="pgt" class="bm bw0 pgs cl">
-<div class="pg">
-<a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>" class="nxt">查看所有主题</a>
-</div>
-<a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
-</div>
-<?php } ?>
-<div class="tl bm bml">
-<div class="th">
-<table cellpadding="0" cellspacing="0" border="0">
-<thead>
-<tr>
-<td class="icn">&nbsp;</td>
-<th>最新主题</th>
-<td class="by">作者/时间</td>
-<td class="num">回复/查看</td>
-<td class="by">最后发表</td>
-</tr>
-</thead>
-</table>
-</div>
-<div class="bm_c">
-<?php if($newthreadlist['dateline']['data']) { ?>
-<table cellpadding="0" cellspacing="0" border="0">
-<tbody id="<?php echo $thread['id'];?>"><?php if(is_array($newthreadlist['dateline']['data'])) foreach($newthreadlist['dateline']['data'] as $thread) { ?><tr>
-<td class="icn">
-<a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>" title="新窗口打开" target="_blank">
-<?php if($thread['folder'] == 'lock') { ?>
-<img src="<?php echo IMGDIR;?>/folder_lock.gif" />
-<?php } elseif($thread['special'] == 1) { ?>
-<img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
-<?php } elseif($thread['special'] == 2) { ?>
-<img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
-<?php } elseif($thread['special'] == 3) { ?>
-<img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
-<?php } elseif($thread['special'] == 4) { ?>
-<img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
-<?php } elseif($thread['special'] == 5) { ?>
-<img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
-<?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
-<img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" />
-<?php } else { ?>
-<img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
-<?php } ?>
-</a>
-</td>
-<th>
-<span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>" class="xst"><?php echo $thread['subject'];?></a></span>
-</th>
-<td class="by">
-<cite>
-<?php if($thread['authorid'] && $thread['author']) { ?>
-<a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a>
-<?php } else { if($_G['forum']['ismoderator']) { ?>
-<a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>">匿名</a>
-<?php } else { ?>
-匿名
-<?php } } ?>
-</cite>
-<em><?php echo $thread['dateline'];?></em>
-</td>
-<td class="num">
-<a class="xi2" href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>"><?php echo $thread['allreplies'];?></a><em><?php echo $thread['views'];?></em>
-</td>
-<td class="by">
-<cite>
-<?php if($thread['lastposterenc']) { ?>
-<a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a>
-<?php } else { ?>
-匿名
-<?php } ?>
-</cite>
-<em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
-</td>
-</tr>
-<?php } ?>
-</tbody>
-<?php if($_G['forum']['threads'] > 10) { ?>
-<tbody>
-<tr class="bw0_all">
-<td colspan="5" class="ptm"><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>#groupnav" class="y xi2">点击查看更多话题</a></td>
-</tr>
-</tbody>
-<?php } ?>
-</table>
-<?php } else { ?>
-<p class="emp">本版块或指定的范围内尚无主题。</p>
-<?php } ?>
-</div>
-</div>
-<div class="bm bml">
-<div class="bm_h cl">
-<h2>成员动态</h2>
-</div>
-<div class="bm_c">
-<?php if($groupfeedlist) { ?>
-<ul class="el"><?php if(is_array($groupfeedlist)) foreach($groupfeedlist as $feed) { ?><li>
-<img src="<?php echo $feed['icon_image'];?>" class="t" />
-<?php if(!empty($feed['title_template'])) { ?><?php echo $feed['title_template'];?><?php } ?> <?php if(!empty($feed['body_data']['subject'])) { ?><?php echo $feed['body_data']['subject'];?><?php } ?>
-</li>
-<?php } ?>
-</ul>
-<?php } else { ?>
-<p class="emp">本<?php echo $_G['setting']['navs']['3']['navname'];?>没有最新动态</p>
-<?php } ?>
-</div>
-</div>
-<?php if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
-<ul class="p_pop" id="newspecial_menu" style="display: none">
-<?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
-<li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
-<?php } } } if($_G['forum']['threadsorts'] && !$_G['forum']['allowspecialonly']) { if(is_array($_G['forum']['threadsorts']['types'])) foreach($_G['forum']['threadsorts']['types'] as $id => $threadsorts) { if($_G['forum']['threadsorts']['show'][$id]) { ?>
-<li class="popupmenu_option"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;sortid=<?php echo $id;?>"><?php echo $threadsorts;?></a></li>
-<?php } } } ?>
-</ul>
-<?php } } } elseif($action == 'list') { if($_G['forum']['ismoderator']) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>forum_moderate.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<?php } ?>
-<div id="pgt" class="bm bw0 pgs cl">
-<?php echo $multipage;?>
-<?php if(helper_access::check_module('group')) { ?>
-<span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>">返回首页</a></span>
+                <?php if($_G['setting']['fastpost']) { include template('forum/forumdisplay_fastpost'); } if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
+                <ul class="p_pop" id="newspecial_menu" style="display: none">
+                    <?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
+                        <li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
+                    <?php } } } ?>
+                </ul>
+            <?php } } } elseif($action == 'memberlist') { if($op == 'alluser') { if($adminuserlist) { ?>
+                <div class="bm bml">
+                    <div class="bm_h cl">
+                        <h2>管理成员</h2>
+                    </div>
+                    <div class="bm_c">
+                        <ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
+                                <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
+                                    <?php if($user['level'] == 1) { ?>
+                                        <em class="gm"></em>
+                                    <?php } elseif($user['level'] == 2) { ?>
+                                        <em class="gm" style="filter:alpha(opacity=50); opacity: 0.5"></em>
+                                    <?php } if($user['online']) { ?>
+                                        <em class="gol" style="margin-top: 15px;"></em>
+                                    <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                </li>
+                            <?php } ?>
+                        </ul>
+                    </div>
+                </div>
+            <?php } if($staruserlist || $alluserlist) { ?>
+                <div class="bm bml">
+                    <div class="bm_h cl">
+                        <h2>成员</h2>
+                    </div>
+                    <div class="bm_c">
+                        <?php if($staruserlist) { ?>
+                            <ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
+                                    <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
+                                        <em class="gs"></em>
+                                        <?php if($user['online']) { ?>
+                                            <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?> title="在线"></em>
+                                        <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                    <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                    </li>
+                                <?php } ?>
+                            </ul>
+                        <?php } if($alluserlist) { ?>
+                            <ul class="ml mls cl"><?php if(is_array($alluserlist)) foreach($alluserlist as $user) { ?><li>
+                                    <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" class="avt" c="1"><?php echo avatar($user['uid'], 'small'); ?></a>
+                                    <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                    </li>
+                                <?php } ?>
+                            </ul>
+                        <?php } ?>
+                    </div>
+                </div>
+            <?php } if($multipage) { ?><div class="pgs cl"><?php echo $multipage;?></div><?php } } } elseif($action == 'create') { ?><div class="bm bml" id="main_messaqge">
+                <div class="bm_h cl">
+                    <h1 class="xs2">创建我的俱乐部<?php //echo $_G['setting']['navs']['3']['navname'];?>
+                        <?php if($_G['setting']['groupmod']) { ?>&nbsp;&nbsp;&nbsp;(需要审核开通)<?php } ?>
+                    </h1>
+                </div>
+                <div class="bm_c">
+                    <form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" onsubmit="checkCategory();ajaxpost('groupform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="forum.php?mod=group&amp;action=create">
+                        <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
+                        <input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
+                        <input type="hidden" name="handlekey" value="creategroup" />
+                        <table cellspacing="0" cellpadding="0" class="tfm" summary="创建<?php echo $_G['setting']['navs']['3']['navname'];?>">
+                            <tbody>
+                            <tr>
+                                <th>&nbsp;</th>
+                                <td>
+                                    <style type="text/css">
+                                        #returnmessage4 { display: none; color: <?php echo NOTICETEXT;?>; font-weight: bold; }
+                                        #returnmessage4.onerror { display: block; }
+                                    </style>
+                                    <p id="returnmessage4"></p>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th><strong class="rq y">*</strong><?php //echo $_G['setting']['navs']['3']['navname'];?>俱乐部名称</th>
+                                <td>
+                                    <input type="text" name="name" id="name" class="px" size="36" tabindex="1" value="" autocomplete="off" onBlur="checkgroupname()" tabindex="1" />
+                                    <span id="groupnamecheck" class="xi1"></span>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th><strong class="rq y">*</strong>所属地区</th>
+                                <td>
+                                    <select id="s_province" name="province"></select>  
 
-<a href="javascript:;" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
-<?php } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_top'];?>
-</div>
-<?php if($_G['forum']['threadtypes']) { ?>
-<ul class="ttp bm cl">
-<li id="ttp_all"<?php if(!$_GET['typeid']) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?>">全部</a></li>
-<?php if($_G['forum']['threadtypes']) { if(is_array($_G['forum']['threadtypes']['types'])) foreach($_G['forum']['threadtypes']['types'] as $id => $name) { ?><li<?php if($_GET['typeid'] == $id) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $_G['fid'];?><?php if($_GET['typeid'] != $id) { ?>&amp;filter=typeid&amp;typeid=<?php echo $id;?><?php echo $forumdisplayadd['typeid'];?><?php } ?>"><?php echo $name;?></a>
-<?php } } ?>
-<?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_filter_extra'])) echo $_G['setting']['pluginhooks']['forumdisplay_filter_extra'];?>
-</ul>
-<?php } ?>
-<div id="threadlist" class="tl bm" style="position: relative;">
-<div class="th">
-<table cellpadding="0" cellspacing="0">
-<tr>
-<td class="icn">&nbsp;</td>
-<?php if($_G['forum']['ismoderator']) { ?><td class="o">&nbsp;</td><?php } ?>
-<th>帖子</th>
-<td class="by">作者/时间</td>
-<td class="num">回复/查看</td>
-<td class="by">最后发表</td>
-</tr>
-</table>
-</div>
-<div class="bm_c">
-<form method="post" autocomplete="off" name="moderate" id="moderate" action="forum.php?mod=topicadmin&amp;action=moderate&amp;fid=<?php echo $_G['fid'];?>&amp;infloat=yes&amp;nopost=yes">
-<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
-<input type="hidden" name="listextra" value="<?php echo $extra;?>" />
-<table cellpadding="0" cellspacing="0" border="0">
-<?php if($_G['forum_threadcount']) { ?>
-<tbody class="emptb"><tr><td class="icn"></td><?php if($_G['forum']['ismoderator']) { ?><td class="o"></td><?php } ?><th></th><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody><?php if(is_array($_G['forum_threadlist'])) foreach($_G['forum_threadlist'] as $key => $thread) { ?><?php echo adshow("threadlist");?><tbody id="<?php echo $thread['id'];?>">
-<tr>
-<td class="icn">
-<a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>" title="新窗口打开" target="_blank">
-<?php if($thread['folder'] == 'lock') { ?>
-<img src="<?php echo IMGDIR;?>/folder_lock.gif" />
-<?php } elseif($thread['special'] == 1) { ?>
-<img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
-<?php } elseif($thread['special'] == 2) { ?>
-<img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
-<?php } elseif($thread['special'] == 3) { ?>
-<img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
-<?php } elseif($thread['special'] == 4) { ?>
-<img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
-<?php } elseif($thread['special'] == 5) { ?>
-<img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
-<?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
-<img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" />
-<?php } else { ?>
-<img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
-<?php } ?>
-</td>
-<?php if($_G['forum']['ismoderator']) { ?>
-<td class="o">
-<?php if($thread['fid'] == $_G['fid']) { if($thread['displayorder'] <= 3 || $_G['adminid'] == 1) { ?>
-<input onclick="tmodclick(this)" type="checkbox" name="moderate[]" class="pc" value="<?php echo $thread['tid'];?>" />
-<?php } else { ?>
-<input type="checkbox" disabled="disabled" />
-<?php } } else { ?>
-<input type="checkbox" disabled="disabled" />
-<?php } ?>
-</td>
-<?php } ?>
-<th>
-<?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_thread'][$key])) echo $_G['setting']['pluginhooks']['forumdisplay_thread'][$key];?>
-<?php if($thread['moved']) { if($_G['forum']['ismoderator']) { ?>
-<a href="forum.php?mod=topicadmin&amp;action=moderate&amp;optgroup=3&amp;operation=delete&amp;tid=<?php echo $thread['moved'];?>" onclick="showWindow('mods', this.href);return false">移动:</a>
-<?php } else { ?>
-移动:
-<?php } } ?>
-<?php echo $thread['typehtml'];?>
-<span id="thread_<?php echo $thread['tid'];?>"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"<?php echo $thread['highlight'];?> class="xst"><?php echo $thread['subject'];?></a></span>
-<?php if($thread['readperm']) { ?> - [阅读权限 <span class="xw1"><?php echo $thread['readperm'];?></span>]<?php } if($thread['price'] > 0) { if($thread['special'] == '3') { ?>
-- <span style="color: #C60">[悬赏<span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['title'];?>]</span>
-<?php } else { ?>
-- [售价 <span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>]
-<?php } } elseif($thread['special'] == '3' && $thread['price'] < 0) { ?>
-- <span style="color: #269F11">[已解决]</span>
-<?php } if($thread['attachment'] == 2) { ?>
-<img src="<?php echo STATICURL;?>image/filetype/image_s.gif" alt="图片附件" align="absmiddle" />
-<?php } elseif($thread['attachment'] == 1) { ?>
-<img src="<?php echo STATICURL;?>image/filetype/common.gif" alt="附件" align="absmiddle" />
-<?php } if($thread['displayorder'] == 0) { if($thread['recommendicon']) { ?>
-<img src="<?php echo IMGDIR;?>/recommend_<?php echo $thread['recommendicon'];?>.gif" align="absmiddle" alt="recommend" title="评价指数 <?php echo $thread['recommends'];?>" />
-<?php } if($thread['heatlevel']) { ?>
-<img src="<?php echo IMGDIR;?>/hot_<?php echo $thread['heatlevel'];?>.gif" align="absmiddle" alt="heatlevel" title="<?php echo $thread['heatlevel'];?> 级热门" />
-<?php } if($thread['digest'] > 0) { ?>
-<img src="<?php echo IMGDIR;?>/digest_<?php echo $thread['digest'];?>.gif" align="absmiddle" alt="digest" title="精华 <?php echo $thread['digest'];?>" />
-<?php } if($thread['rate'] > 0) { ?>
-<img src="<?php echo IMGDIR;?>/agree.gif" align="absmiddle" alt="agree" title="帖子被加分" />
-<?php } } if($thread['multipage']) { ?>
-<span class="tps"><?php echo $thread['multipage'];?></span>
-<?php } ?>
-</th>
-<td class="by">
-<cite>
-<?php if($thread['authorid'] && $thread['author']) { ?>
-<a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo $thread['author'];?></a><?php if(!empty($verify[$thread['authorid']])) { ?><?php echo $verify[$thread['authorid']];?><?php } } else { if($_G['forum']['ismoderator']) { ?>
-<a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>">匿名</a>
-<?php } else { ?>
-匿名
-<?php } } ?>
-</cite>
-<em><?php echo $thread['dateline'];?></em>
-</td>
-<td class="num">
-<?php echo $thread['allreplies'];?><em><?php echo $thread['views'];?></em>
-</td>
-<td class="by">
-<cite><?php if($thread['lastposter']) { ?><a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastposter'];?></a></cite><?php } else { ?>匿名<?php } ?></cite><em><a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost<?php echo $highlight;?>#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a></em>
-</td>
-</tr>
-</tbody>
-<?php } } else { ?>
-<tbody><tr><th colspan="6"><p class="emp">本版块或指定的范围内尚无主题。</p></th></tr></tbody>
-<?php } ?>
-</table>
-<?php if($_G['forum']['ismoderator'] && $_G['forum_threadcount']) { include template('forum/topicadmin_modlayer'); } ?>
-</form>
-</div>
-</div>
-<?php if(helper_access::check_module('group')) { ?>
-<div class="bm bw0 pgs cl">
-<?php echo $multipage;?>
-<span <?php if($_G['setting']['visitedforums']) { ?>id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<?php } ?> class="pgb y"><a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>">返回首页</a></span>
-<a href="javascript:;" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'forum.php?mod=post&action=newthread&fid=<?php echo $_G['fid'];?>')" title="发帖"><img src="<?php echo IMGDIR;?>/pn_post.png" alt="发帖" /></a>
-<?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_postbutton_bottom'];?>
-</div>
+                                    <select id="s_city" name="city" ></select>  
 
-<?php if($_G['setting']['fastpost']) { include template('forum/forumdisplay_fastpost'); } if($_G['group']['allowpost'] && ($_G['group']['allowposttrade'] || $_G['group']['allowpostpoll'] || $_G['group']['allowpostreward'] || $_G['group']['allowpostactivity'] || $_G['group']['allowpostdebate'] || $_G['setting']['threadplugins'] || $_G['forum']['threadsorts'])) { ?>
-<ul class="p_pop" id="newspecial_menu" style="display: none">
-<?php if(!$_G['forum']['allowspecialonly']) { ?><li><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><?php } if($_G['group']['allowpostpoll']) { ?><li class="poll"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=1">发布投票</a></li><?php } if($_G['group']['allowpostreward']) { ?><li class="reward"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=3">发布悬赏</a></li><?php } if($_G['group']['allowpostdebate']) { ?><li class="debate"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=5">发布辩论</a></li><?php } if($_G['group']['allowpostactivity']) { ?><li class="activity"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=4">发布活动</a></li><?php } if($_G['group']['allowposttrade']) { ?><li class="trade"><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;special=2">发布商品</a></li><?php } if($_G['setting']['threadplugins']) { if(is_array($_G['forum']['threadplugin'])) foreach($_G['forum']['threadplugin'] as $tpid) { if(array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])) { ?>
-<li class="popupmenu_option"<?php if($_G['setting']['threadplugins'][$tpid]['icon']) { ?> style="background-image:url(<?php echo $_G['setting']['threadplugins'][$tpid]['icon'];?>)"<?php } ?>><a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php echo $_G['fid'];?>&amp;specialextra=<?php echo $tpid;?>"><?php echo $_G['setting']['threadplugins'][$tpid]['name'];?></a></li>
-<?php } } } ?>
-</ul>
-<?php } } } elseif($action == 'memberlist') { if($op == 'alluser') { if($adminuserlist) { ?>
-<div class="bm bml">
-<div class="bm_h cl">
-<h2>管理成员</h2>
-</div>
-<div class="bm_c">
-<ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
-<?php if($user['level'] == 1) { ?>
-<em class="gm"></em>
-<?php } elseif($user['level'] == 2) { ?>
-<em class="gm" style="filter:alpha(opacity=50); opacity: 0.5"></em>
-<?php } if($user['online']) { ?>
-<em class="gol" style="margin-top: 15px;"></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-</li>
-<?php } ?>
-</ul>
-</div>
-</div>
-<?php } if($staruserlist || $alluserlist) { ?>
-<div class="bm bml">
-<div class="bm_h cl">
-<h2>成员</h2>
-</div>
-<div class="bm_c">
-<?php if($staruserlist) { ?>
-<ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
-<em class="gs"></em>
-<?php if($user['online']) { ?>
-<em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?> title="在线"></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-</li>
-<?php } ?>
-</ul>
-<?php } if($alluserlist) { ?>
-<ul class="ml mls cl"><?php if(is_array($alluserlist)) foreach($alluserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" class="avt" c="1"><?php echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-</li>
-<?php } ?>
-</ul>
-<?php } ?>
-</div>
-</div>
-<?php } if($multipage) { ?><div class="pgs cl"><?php echo $multipage;?></div><?php } } } elseif($action == 'create') { ?><div class="bm bml" id="main_messaqge">
-<div class="bm_h cl">
-<h1 class="xs2">创建新<?php echo $_G['setting']['navs']['3']['navname'];?>
-<?php if($_G['setting']['groupmod']) { ?>&nbsp;&nbsp;&nbsp;(需要审核开通)<?php } ?>
-</h1>
-</div>
-<div class="bm_c">
-<form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" onsubmit="checkCategory();ajaxpost('groupform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="forum.php?mod=group&amp;action=create">
-<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
-<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
-<input type="hidden" name="handlekey" value="creategroup" />
-<table cellspacing="0" cellpadding="0" class="tfm" summary="创建<?php echo $_G['setting']['navs']['3']['navname'];?>">
-<tbody>
-<tr>
-<th>&nbsp;</th>
-<td>
-<style type="text/css">
-#returnmessage4 { display: none; color: <?php echo NOTICETEXT;?>; font-weight: bold; }
-#returnmessage4.onerror { display: block; }
-</style>
-<p id="returnmessage4"></p>
-</td>
-</tr>
-<tr>
-<th><strong class="rq y">*</strong><?php echo $_G['setting']['navs']['3']['navname'];?>名称:</th>
-<td>
-<input type="text" name="name" id="name" class="px" size="36" tabindex="1" value="" autocomplete="off" onBlur="checkgroupname()" tabindex="1" />
-<span id="groupnamecheck" class="xi1"></span>
-</td>
-</tr>
-<tr>
-<th><strong class="rq y">*</strong>所属分类:</th>
-<td>
-<select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
-<option value="0">请选择</option>
-<?php echo $groupselect['first'];?>
-</select>
-<em id="secondgroup"></em>
-<span id="groupcategorycheck" class="xi1"></span>
-</td>
-</tr>
-<tr>
-<th><?php echo $_G['setting']['navs']['3']['navname'];?>简介:</th>
-<td>
-<script type="text/javascript">
-var allowbbcode = allowimgcode = parsetype = 1;
-var allowhtml = forumallowhtml = allowsmilies = 0;
-</script>
-<script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<div id="descriptionpreview"></div>
-<div class="tedt">
-<div class="bar">
-<div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<div class="fpd">
-<?php if(in_array('bold', $seditor['1'])) { ?>
-<a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
-<?php } if(in_array('color', $seditor['1'])) { ?>
-<a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
-<?php } if(in_array('img', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
-<?php } if(in_array('link', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
-<?php } if(in_array('quote', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
-<?php } if(in_array('code', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
-<?php } if(in_array('smilies', $seditor['1'])) { ?>
-<a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
-<?php if(empty($seditor['2'])) { ?>
-<script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
-<?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
-<?php } ?>
-<?php echo $seditor['3'];?>
-</div></div>
-<div class="area">
-<textarea id="descriptionmessage" name="descriptionnew" tabindex="3" class="pt" rows="8"></textarea>
-</div>
-</div>
-</tr>
-<tr>
-<th><strong class="rq y">*</strong>浏览权限:</th>
-<td>
-<label class="lb"><input type="radio" name="gviewperm" class="pr" tabindex="4" value="1" checked="checked" />所有人</label>
-<label class="lb"><input type="radio" name="gviewperm" class="pr" value="0" />仅成员</label>
-</td>
-</tr>
-<tr>
-<th><strong class="rq y">*</strong>加入方式:</th>
-<td>
-<label class="lb"><input type="radio" name="jointype" class="pr" tabindex="5" value="0" checked="checked" />自由加入</label>
-<label class="lb"><input type="radio" name="jointype" class="pr" value="2" />审核加入</label>
-<label class="lb"><input type="radio" name="jointype" class="pr" value="1" />邀请加入</label>
-</td>
-</tr>
-<tr>
-<th>&nbsp;</th>
-<td>
-<input type="hidden" name="createsubmit" value="true"><button type="submit" class="pn pnc" tabindex="6"><strong>创建</strong></button>
-<?php if($_G['group']['buildgroupcredits']) { ?>&nbsp;&nbsp;&nbsp;(<strong class="rq">创建<?php echo $_G['setting']['navs']['3']['navname'];?>需要消耗 <?php echo $_G['group']['buildgroupcredits'];?> <?php echo $_G['setting']['extcredits'][$creditstransextra]['unit'];?><?php echo $_G['setting']['extcredits'][$creditstransextra]['title'];?></strong>)<?php } ?>
-</td>
-</tr>
-</tbody>
-</table>
-</form>
-</div>
-</div>
-<script type="text/javascript">
-function checkgroupname() {
-var groupname = trim($('name').value);
-ajaxget('forum.php?mod=ajax&forumcheck=1&infloat=creategroup&handlekey=creategroup&action=checkgroupname&groupname=' + (BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(groupname) : groupname), 'groupnamecheck');
-}
-function checkCategory(){
-var groupcategory = trim($('fup').value);
-if(groupcategory == ''){
-$('groupcategorycheck').innerHTML = '请选择<?php echo $_G['setting']['navs']['3']['navname'];?>分类';
-return false;
-} else {
-$('groupcategorycheck').innerHTML = '';
-}
-}
-<?php if($_GET['fupid']) { ?>
-ajaxget('forum.php?mod=ajax&action=secondgroup&fupid=<?php echo $_GET['fupid'];?><?php if($_GET['groupid']) { ?>&groupid=<?php echo $_GET['groupid'];?><?php } ?>', 'secondgroup');
-<?php } ?>
-if($('name')) {
-$('name').focus();
-}
-</script><?php } elseif($action == 'invite') { ?><div class="bm" id="main_messaqge">
-<form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" action="forum.php?mod=group&amp;action=invite">
-<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
-<input type="hidden" name="fid" value="<?php echo $_G['fid'];?>" />
-<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" /><?php if(is_array($friendarray)) foreach($friendarray as $uid => $member) { ?><input type="checkbox" name="inviteuid[]" value="<?php echo $uid;?>"><?php echo $member['username'];?> <?php echo $member['avatar'];?>
-<?php } ?>
-<table cellspacing="0" cellpadding="0" class="tfm" summary="邀请加入">
-<caption>请选择您要邀请的好友</caption>
-<tbody>
-<tr>
-<th>邀请列表</th>
-<td><textarea rows="4" cols="40" name="invitemsg" class="pt"></textarea></td>
-</tr>
-<tr>
-<th>&nbsp;</th>
-<td><button class="pn pnc" type="submit" name="invitesubmit" value="true" tabindex="1"><strong>完成</strong></button></td>
-</tr>
-</tbody>
-</table>
-</form>
-</div><?php } elseif($action == 'manage') { ?><p class="tbmu">
-<a href="forum.php?mod=group&amp;action=manage&amp;op=group&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'group') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>设置</a>
-<?php if(!empty($groupmanagers[$_G['uid']]) || $_G['adminid'] == 1) { ?>
-<span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=checkuser&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'checkuser') { ?> class="a"<?php } ?>>成员审核</a>
-<span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'manageuser') { ?> class="a"<?php } ?>>成员管理</a>
-<?php } if($_G['forum']['founderuid'] == $_G['uid'] || $_G['adminid'] == 1) { ?>
-<span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=threadtype&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'threadtype') { ?> class="a"<?php } ?>>主题分类</a>
-<span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=demise&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'demise') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>转让</a>
-<?php } ?>
-</p>
+                                    <select id="s_county" name="county"></select>
+                                    <em id="secondgroup"></em>
+                                    <span id="groupcategorycheck" class="xi1"></span>
+                                </td>
+                            </tr>
+<!--                            <tr>-->
+<!--                                <th><strong class="rq y">*</strong>所属分类:</th>-->
+<!--                                <td>-->
+<!--                                    <select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">-->
+<!--                                        <option value="0">请选择</option>-->
+<!--                                        --><?php //echo $groupselect['first'];?>
+<!--                                    </select>-->
+<!--                                    <em id="secondgroup"></em>-->
+<!--                                    <span id="groupcategorycheck" class="xi1"></span>-->
+<!--                                </td>-->
+<!--                            </tr>-->
+                            <tr>
+                                <th><?php echo $_G['setting']['navs']['3']['navname'];?>简介</th>
+                                <td>
+                                    <script type="text/javascript">
+                                        var allowbbcode = allowimgcode = parsetype = 1;
+                                        var allowhtml = forumallowhtml = allowsmilies = 0;
+                                    </script>
+                                    <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                    <div id="descriptionpreview"></div>
+                                    <div class="tedt">
+                                        <div class="bar">
+                                            <div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                            <div class="fpd">
+                                                <?php if(in_array('bold', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
+                                                <?php } if(in_array('color', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
+                                                <?php } if(in_array('img', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
+                                                <?php } if(in_array('link', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
+                                                <?php } if(in_array('quote', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
+                                                <?php } if(in_array('code', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
+                                                <?php } if(in_array('smilies', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
+                                                <?php if(empty($seditor['2'])) { ?>
+                                                    <script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
+                                                <?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
+                                                    <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                                    <a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
+                                                <?php } ?>
+                                                <?php echo $seditor['3'];?>
+                                            </div></div>
+                                        <div class="area">
+                                            <textarea id="descriptionmessage" name="descriptionnew" tabindex="3" class="pt" rows="8"></textarea>
+                                        </div>
+                                    </div>
+                            </tr>
+                            <tr>
+                                <th><?php //echo $_G['setting']['navs']['3']['navname'];?>上传LOGO</th>
+                                <td>
+                                    <input type="text" name="activityaid_url" id="activityaid_url" class="px" />
+                                    <button type="button" class="pn" onclick="uploadWindow(function (aid, url){activityaid_upload(aid, url)})"><span>上传</span></button>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th><strong class="rq y">*</strong>浏览权限:</th>
+                                <td>
+                                    <label class="lb"><input type="radio" name="gviewperm" class="pr" tabindex="4" value="1" checked="checked" />所有人</label>
+                                    <label class="lb"><input type="radio" name="gviewperm" class="pr" value="0" />仅成员</label>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th><strong class="rq y">*</strong>加入方式:</th>
+                                <td>
+                                    <label class="lb"><input type="radio" name="jointype" class="pr" tabindex="5" value="0" checked="checked" />自由加入</label>
+                                    <label class="lb"><input type="radio" name="jointype" class="pr" value="2" />审核加入</label>
+                                    <label class="lb"><input type="radio" name="jointype" class="pr" value="1" />邀请加入</label>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th>&nbsp;</th>
+                                <td>
+                                    <input type="hidden" name="createsubmit" value="true"><button type="submit" class="pn pnc" tabindex="6"><strong>创建</strong></button>
+                                    <?php if($_G['group']['buildgroupcredits']) { ?>&nbsp;&nbsp;&nbsp;(<strong class="rq">创建<?php echo $_G['setting']['navs']['3']['navname'];?>需要消耗 <?php echo $_G['group']['buildgroupcredits'];?> <?php echo $_G['setting']['extcredits'][$creditstransextra]['unit'];?><?php echo $_G['setting']['extcredits'][$creditstransextra]['title'];?></strong>)<?php } ?>
+                                </td>
+                            </tr>
+                            </tbody>
+                        </table>
+                    </form>
+                </div>
+            </div>
+                <script type="text/javascript">
+                    function checkgroupname() {
+                        var groupname = trim($('name').value);
+                        ajaxget('forum.php?mod=ajax&forumcheck=1&infloat=creategroup&handlekey=creategroup&action=checkgroupname&groupname=' + (BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(groupname) : groupname), 'groupnamecheck');
+                    }
+                    function checkCategory(){
+                        var groupcategory = trim($('fup').value);
+                        if(groupcategory == ''){
+                            $('groupcategorycheck').innerHTML = '请选择<?php echo $_G['setting']['navs']['3']['navname'];?>分类';
+                            return false;
+                        } else {
+                            $('groupcategorycheck').innerHTML = '';
+                        }
+                    }
+                    <?php if($_GET['fupid']) { ?>
+                    ajaxget('forum.php?mod=ajax&action=secondgroup&fupid=<?php echo $_GET['fupid'];?><?php if($_GET['groupid']) { ?>&groupid=<?php echo $_GET['groupid'];?><?php } ?>', 'secondgroup');
+                    <?php } ?>
+                    if($('name')) {
+                        $('name').focus();
+                    }
+                </script><?php } elseif($action == 'invite') { ?><div class="bm" id="main_messaqge">
+                <form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" action="forum.php?mod=group&amp;action=invite">
+                    <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
+                    <input type="hidden" name="fid" value="<?php echo $_G['fid'];?>" />
+                    <input type="hidden" name="referer" value="<?php echo dreferer(); ?>" /><?php if(is_array($friendarray)) foreach($friendarray as $uid => $member) { ?><input type="checkbox" name="inviteuid[]" value="<?php echo $uid;?>"><?php echo $member['username'];?> <?php echo $member['avatar'];?>
+                    <?php } ?>
+                    <table cellspacing="0" cellpadding="0" class="tfm" summary="邀请加入">
+                        <caption>请选择您要邀请的好友</caption>
+                        <tbody>
+                        <tr>
+                            <th>邀请列表</th>
+                            <td><textarea rows="4" cols="40" name="invitemsg" class="pt"></textarea></td>
+                        </tr>
+                        <tr>
+                            <th>&nbsp;</th>
+                            <td><button class="pn pnc" type="submit" name="invitesubmit" value="true" tabindex="1"><strong>完成</strong></button></td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </form>
+                </div><?php } elseif($action == 'manage') { ?><p class="tbmu">
+                <a href="forum.php?mod=group&amp;action=manage&amp;op=group&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'group') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>设置</a>
+                <?php if(!empty($groupmanagers[$_G['uid']]) || $_G['adminid'] == 1) { ?>
+                    <span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=checkuser&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'checkuser') { ?> class="a"<?php } ?>>成员审核</a>
+                    <span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'manageuser') { ?> class="a"<?php } ?>>成员管理</a>
+                <?php } if($_G['forum']['founderuid'] == $_G['uid'] || $_G['adminid'] == 1) { ?>
+                    <span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=threadtype&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'threadtype') { ?> class="a"<?php } ?>>主题分类</a>
+                    <span class="pipe">|</span><a href="forum.php?mod=group&amp;action=manage&amp;op=demise&amp;fid=<?php echo $_G['fid'];?>"<?php if($_GET['op'] == 'demise') { ?> class="a"<?php } ?>><?php echo $_G['setting']['navs']['3']['navname'];?>转让</a>
+                <?php } ?>
+            </p>
 
-<?php if($_GET['op'] == 'group') { ?>
-<div class="bm bw0">
-<form enctype="multipart/form-data" action="forum.php?mod=group&amp;action=manage&amp;op=group&amp;fid=<?php echo $_G['fid'];?>" name="manage" method="post" autocomplete="off">
-<input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
-<table cellspacing="0" cellpadding="0" class="tfm vt" summary="<?php echo $_G['setting']['navs']['3']['navname'];?>管理面板">
-<tbody>
-<tr>
-<th>&nbsp;</th>
-<td><strong class="rq"><em id="returnmessage4"></em></strong></td>
-</tr>
-<?php if(!empty($specialswitch['allowchangename']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
-<tr>
-<th><span class="rq">*</span><?php echo $_G['setting']['navs']['3']['navname'];?>名称:</th>
-<td><input type="text" id="name" name="name" class="px" size="36" tabindex="1" value="<?php echo $_G['forum']['name'];?>" autocomplete="off" tabindex="1" /></td>
-</tr>
-<?php } if(!empty($specialswitch['allowchangetype']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
-<tr>
-<th><span class="rq">*</span>所属分类:</th>
-<td>
-<select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
-<?php echo $groupselect['first'];?>
-</select>
-<em id="secondgroup"><?php if($groupselect['second']) { ?><select id="fup" name="fup" class="ps" ><?php echo $groupselect['second'];?></select><?php } ?></em>
-</td>
-</tr>
-<?php } ?>
-<tr>
-<th><?php echo $_G['setting']['navs']['3']['navname'];?>简介</th>
-<td>
-<script type="text/javascript">
-var allowbbcode = allowimgcode = parsetype = 1;
-var allowhtml = forumallowhtml = allowsmilies = 0;
-</script>
-<script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<div id="descriptionpreview"></div>
-<div class="tedt">
-<div class="bar">
-<div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<div class="fpd">
-<?php if(in_array('bold', $seditor['1'])) { ?>
-<a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
-<?php } if(in_array('color', $seditor['1'])) { ?>
-<a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
-<?php } if(in_array('img', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
-<?php } if(in_array('link', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
-<?php } if(in_array('quote', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
-<?php } if(in_array('code', $seditor['1'])) { ?>
-<a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
-<?php } if(in_array('smilies', $seditor['1'])) { ?>
-<a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
-<?php if(empty($seditor['2'])) { ?>
-<script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
-<?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
-<script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
-<a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
-<?php } ?>
-<?php echo $seditor['3'];?>
-</div></div>
-<div class="area">
-<textarea id="descriptionmessage" name="descriptionnew" class="pt" rows="8"><?php echo $_G['forum']['descriptionnew'];?></textarea>
-</div>
-</div>
-</tr>
-<tr>
-<th>浏览权限</th>
-<td>
-<label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="1" <?php echo $gviewpermselect['1'];?> />所有人</label>
-<label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="0" <?php echo $gviewpermselect['0'];?> />仅成员</label>
-</td>
-</tr>
-<tr>
-<th>加入方式</th>
-<td>
-<label class="lb"><input type="radio" name="jointypenew" class="pr" value="0" <?php echo $jointypeselect['0'];?> />自由加入</label>
-<label class="lb"><input type="radio" name="jointypenew" class="pr" value="2" <?php echo $jointypeselect['2'];?> />审核加入</label>
-<label class="lb"><input type="radio" name="jointypenew" class="pr" value="1" <?php echo $jointypeselect['1'];?> />邀请加入</label>
-<?php if(!empty($specialswitch['allowclosegroup'])) { ?>
-<label class="lb"><input type="radio" name="jointypenew" class="pr" value="-1" <?php echo $jointypeselect['-1'];?> />关闭</label>
-<p class="d">注:<?php echo $_G['setting']['navs']['3']['navname'];?>关闭后只有群主才可以浏览</p>
-<?php } ?>
-</td>
-</tr>
-<?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && $domainlength) { ?>
-<tr>
-<th>二级域名</th>
-<td>
-http://<input type="text" name="domain" class="px" value="<?php echo $_G['forum']['domain'];?>" style="width: 100px;" />.<?php echo $_G['setting']['domain']['root']['group'];?>
-<p class="d">
-域名可使用最少 <?php echo $domainlength;?> 个 ,最多 30 个的字母或数字组合,且必须字母开头。<br/>
-<?php if($_G['forum']['domain'] && $consume) { ?>修改域名将需要支付积分<strong><?php echo $consume;?></strong>,您现在有拥有<strong><?php echo $credits;?></strong><?php } ?>
-</p>
-</td>
-</tr>
-<?php } if(!empty($_G['group']['allowupbanner']) || $_G['adminid'] == 1) { ?>
-<tr>
-<th><?php echo $_G['setting']['navs']['3']['navname'];?>顶部图片</th>
-<td>
-<input type="file" name="bannernew" id="bannernew" class="pf" size="25" />
-<?php if($_G['forum']['banner']) { ?>
-<label><input type="checkbox" name="deletebanner" class="pc" value="1" />不使用图片</label>
-<p class="d">当‘<?php echo $_G['setting']['navs']['3']['navname'];?>图片’使用的话,<?php echo $_G['setting']['navs']['3']['navname'];?>图标在该<?php echo $_G['setting']['navs']['3']['navname'];?>页面不做显示</p>
-</td>
-</tr>
-<tr>
-<th>&nbsp;</th>
-<td>
-<img onload="thumbImg(this, 1)" _width="544" _height="400" src="<?php echo $_G['forum']['banner'];?>?<?php echo TIMESTAMP;?>" />
-<?php } ?>
-<p class="d">
-<?php if($_G['setting']['group_imgsizelimit']) { ?>
-文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB &nbsp;
-<?php } ?>
-建议使用尺寸为 730×150 的图片以取得最佳效果
-</p>
+            <?php if($_GET['op'] == 'group') { ?>
+                <div class="bm bw0">
+                    <form enctype="multipart/form-data" action="forum.php?mod=group&amp;action=manage&amp;op=group&amp;fid=<?php echo $_G['fid'];?>" name="manage" method="post" autocomplete="off">
+                        <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
+                        <table cellspacing="0" cellpadding="0" class="tfm vt" summary="<?php echo $_G['setting']['navs']['3']['navname'];?>管理面板">
+                            <tbody>
+                            <tr>
+                                <th>&nbsp;</th>
+                                <td><strong class="rq"><em id="returnmessage4"></em></strong></td>
+                            </tr>
+                            <?php if(!empty($specialswitch['allowchangename']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
+                                <tr>
+                                    <th><span class="rq">*</span><?php echo $_G['setting']['navs']['3']['navname'];?>名称:</th>
+                                    <td><input type="text" id="name" name="name" class="px" size="36" tabindex="1" value="<?php echo $_G['forum']['name'];?>" autocomplete="off" tabindex="1" /></td>
+                                </tr>
+                            <?php } if(!empty($specialswitch['allowchangetype']) && ($_G['uid'] == $_G['forum']['founderuid'] || $_G['adminid'] == 1)) { ?>
+                                <tr>
+                                    <th><span class="rq">*</span>所属分类:</th>
+                                    <td>
+                                        <select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
+                                            <?php echo $groupselect['first'];?>
+                                        </select>
+                                        <em id="secondgroup"><?php if($groupselect['second']) { ?><select id="fup" name="fup" class="ps" ><?php echo $groupselect['second'];?></select><?php } ?></em>
+                                    </td>
+                                </tr>
+                            <?php } ?>
+                            <tr>
+                                <th><?php echo $_G['setting']['navs']['3']['navname'];?>简介</th>
+                                <td>
+                                    <script type="text/javascript">
+                                        var allowbbcode = allowimgcode = parsetype = 1;
+                                        var allowhtml = forumallowhtml = allowsmilies = 0;
+                                    </script>
+                                    <script src="<?php echo $_G['setting']['jspath'];?>bbcode.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                    <div id="descriptionpreview"></div>
+                                    <div class="tedt">
+                                        <div class="bar">
+                                            <div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">预览</a></div><?php $seditor = array('description', array('bold', 'color', 'img', 'link'));?><script src="<?php echo $_G['setting']['jspath'];?>seditor.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                            <div class="fpd">
+                                                <?php if(in_array('bold', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" title="文字加粗" class="fbld"<?php if(empty($seditor['2'])) { ?> onclick="seditor_insertunit('<?php echo $seditor['0'];?>', '[b]', '[/b]');doane(event);"<?php } ?>>B</a>
+                                                <?php } if(in_array('color', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" title="设置文字颜色" class="fclr" id="<?php echo $seditor['0'];?>forecolor"<?php if(empty($seditor['2'])) { ?> onclick="showColorBox(this.id, 2, '<?php echo $seditor['0'];?>');doane(event);"<?php } ?>>Color</a>
+                                                <?php } if(in_array('img', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>img" href="javascript:;" title="图片" class="fmg"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'img');doane(event);"<?php } ?>>Image</a>
+                                                <?php } if(in_array('link', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>url" href="javascript:;" title="添加链接" class="flnk"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'url');doane(event);"<?php } ?>>Link</a>
+                                                <?php } if(in_array('quote', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>quote" href="javascript:;" title="引用" class="fqt"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'quote');doane(event);"<?php } ?>>Quote</a>
+                                                <?php } if(in_array('code', $seditor['1'])) { ?>
+                                                    <a id="<?php echo $seditor['0'];?>code" href="javascript:;" title="代码" class="fcd"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'code');doane(event);"<?php } ?>>Code</a>
+                                                <?php } if(in_array('smilies', $seditor['1'])) { ?>
+                                                    <a href="javascript:;" class="fsml" id="<?php echo $seditor['0'];?>sml"<?php if(empty($seditor['2'])) { ?> onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false;"<?php } ?>>Smilies</a>
+                                                <?php if(empty($seditor['2'])) { ?>
+                                                    <script type="text/javascript" reload="1">smilies_show('<?php echo $seditor['0'];?>smiliesdiv', <?php echo $_G['setting']['smcols'];?>, '<?php echo $seditor['0'];?>');</script>
+                                                <?php } } if(in_array('at', $seditor['1']) && $_G['group']['allowat']) { ?>
+                                                    <script src="<?php echo $_G['setting']['jspath'];?>at.js?<?php echo VERHASH;?>" type="text/javascript"></script>
+                                                    <a id="<?php echo $seditor['0'];?>at" href="javascript:;" title="@朋友" class="fat"<?php if(empty($seditor['2'])) { ?> onclick="seditor_menu('<?php echo $seditor['0'];?>', 'at');doane(event);"<?php } ?>>@朋友</a>
+                                                <?php } ?>
+                                                <?php echo $seditor['3'];?>
+                                            </div></div>
+                                        <div class="area">
+                                            <textarea id="descriptionmessage" name="descriptionnew" class="pt" rows="8"><?php echo $_G['forum']['descriptionnew'];?></textarea>
+                                        </div>
+                                    </div>
+                            </tr>
+                            <tr>
+                                <th>浏览权限</th>
+                                <td>
+                                    <label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="1" <?php echo $gviewpermselect['1'];?> />所有人</label>
+                                    <label class="lb"><input type="radio" name="gviewpermnew" class="pr" value="0" <?php echo $gviewpermselect['0'];?> />仅成员</label>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th>加入方式</th>
+                                <td>
+                                    <label class="lb"><input type="radio" name="jointypenew" class="pr" value="0" <?php echo $jointypeselect['0'];?> />自由加入</label>
+                                    <label class="lb"><input type="radio" name="jointypenew" class="pr" value="2" <?php echo $jointypeselect['2'];?> />审核加入</label>
+                                    <label class="lb"><input type="radio" name="jointypenew" class="pr" value="1" <?php echo $jointypeselect['1'];?> />邀请加入</label>
+                                    <?php if(!empty($specialswitch['allowclosegroup'])) { ?>
+                                        <label class="lb"><input type="radio" name="jointypenew" class="pr" value="-1" <?php echo $jointypeselect['-1'];?> />关闭</label>
+                                        <p class="d">注:<?php echo $_G['setting']['navs']['3']['navname'];?>关闭后只有群主才可以浏览</p>
+                                    <?php } ?>
+                                </td>
+                            </tr>
+                            <?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && $domainlength) { ?>
+                                <tr>
+                                    <th>二级域名</th>
+                                    <td>
+                                        http://<input type="text" name="domain" class="px" value="<?php echo $_G['forum']['domain'];?>" style="width: 100px;" />.<?php echo $_G['setting']['domain']['root']['group'];?>
+                                        <p class="d">
+                                            域名可使用最少 <?php echo $domainlength;?> 个 ,最多 30 个的字母或数字组合,且必须字母开头。<br/>
+                                            <?php if($_G['forum']['domain'] && $consume) { ?>修改域名将需要支付积分<strong><?php echo $consume;?></strong>,您现在有拥有<strong><?php echo $credits;?></strong><?php } ?>
+                                        </p>
+                                    </td>
+                                </tr>
+                            <?php } if(!empty($_G['group']['allowupbanner']) || $_G['adminid'] == 1) { ?>
+                                <tr>
+                                <th><?php echo $_G['setting']['navs']['3']['navname'];?>顶部图片</th>
+                                <td>
+                                <input type="file" name="bannernew" id="bannernew" class="pf" size="25" />
+                                <?php if($_G['forum']['banner']) { ?>
+                                    <label><input type="checkbox" name="deletebanner" class="pc" value="1" />不使用图片</label>
+                                    <p class="d">当‘<?php echo $_G['setting']['navs']['3']['navname'];?>图片’使用的话,<?php echo $_G['setting']['navs']['3']['navname'];?>图标在该<?php echo $_G['setting']['navs']['3']['navname'];?>页面不做显示</p>
+                                    </td>
+                                    </tr>
+                                    <tr>
+                                    <th>&nbsp;</th>
+                                    <td>
+                                    <img onload="thumbImg(this, 1)" _width="544" _height="400" src="<?php echo $_G['forum']['banner'];?>?<?php echo TIMESTAMP;?>" />
+                                <?php } ?>
+                                <p class="d">
+                                    <?php if($_G['setting']['group_imgsizelimit']) { ?>
+                                        文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB &nbsp;
+                                    <?php } ?>
+                                    建议使用尺寸为 730×150 的图片以取得最佳效果
+                                </p>
 
-</td>
-</tr>
-<?php } ?>
-<tr>
-<th><?php echo $_G['setting']['navs']['3']['navname'];?>图标</th>
-<td>
-<input type="file" id="iconnew" class="pf vm" size="25" name="iconnew" />
-<p class="d">
-自动缩略成 48 X 48 像素大小的图片 &nbsp;
-<?php if($_G['setting']['group_imgsizelimit']) { ?>
-文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
-<?php } ?></p>
-<?php if($_G['forum']['icon']) { ?>
-<img width="48" height="48" alt="" class="vm" style="margin-right: 1em;" src="<?php echo $_G['forum']['icon'];?>?<?php echo TIMESTAMP;?>" />
-<?php } ?>
-</td>
-</tr>
-<tr>
-<th>&nbsp;</th>
-<td><button type="submit" name="groupmanage" class="pn pnc" value="1"><strong>提交</strong></button></td>
-</tr>
-</tbody>
-</table>
-</form>
-</div>
-<?php } elseif($_GET['op'] == 'checkuser') { if($checkusers) { ?>
-<p class="tbmu cl">
+                                </td>
+                                </tr>
+                            <?php } ?>
+                            <tr>
+                                <th><?php echo $_G['setting']['navs']['3']['navname'];?>图标</th>
+                                <td>
+                                    <input type="file" id="iconnew" class="pf vm" size="25" name="iconnew" />
+                                    <p class="d">
+                                        自动缩略成 48 X 48 像素大小的图片 &nbsp;
+                                        <?php if($_G['setting']['group_imgsizelimit']) { ?>
+                                            文件小于 <?php echo $_G['setting']['group_imgsizelimit'];?> KB
+                                        <?php } ?></p>
+                                    <?php if($_G['forum']['icon']) { ?>
+                                        <img width="48" height="48" alt="" class="vm" style="margin-right: 1em;" src="<?php echo $_G['forum']['icon'];?>?<?php echo TIMESTAMP;?>" />
+                                    <?php } ?>
+                                </td>
+                            </tr>
+                            <tr>
+                                <th>&nbsp;</th>
+                                <td><button type="submit" name="groupmanage" class="pn pnc" value="1"><strong>提交</strong></button></td>
+                            </tr>
+                            </tbody>
+                        </table>
+                    </form>
+                </div>
+            <?php } elseif($_GET['op'] == 'checkuser') { if($checkusers) { ?>
+                <p class="tbmu cl">
 <span class="y">
 <a href="forum.php?mod=group&amp;action=manage&amp;op=checkuser&amp;fid=<?php echo $_G['fid'];?>&amp;checkall=2">忽略全部</a><span class="pipe">|</span>
 <a href="forum.php?mod=group&amp;action=manage&amp;op=checkuser&amp;fid=<?php echo $_G['fid'];?>&amp;checkall=1">全部通过</a>
 </span>
-</p>
-<div class="xld xlda"><?php if(is_array($checkusers)) foreach($checkusers as $uid => $user) { ?><dl class="bbda cl">
-<dd class="m avt"><?php echo avatar($user['uid'], 'small'); ?></dd>
-<dt><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a> <span class="xw0">(<?php echo $user['joindateline'];?>)</span></dt>
-<dd class="pns"><button type="submit" name="checkusertrue" class="pn pnc" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=1'"><em>通过</em></button> &nbsp; <button type="submit" name="checkuserfalse" class="pn" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=2'"><em>忽略</em></button></dd>
-</dl>
-<?php } ?>
-</div>
-<?php if($multipage) { ?><div class="pgs cl mtm"><?php echo $multipage;?></div><?php } } else { ?>
-<p class="emp">暂无需要审核成员。</p>
-<?php } } elseif($_GET['op'] == 'manageuser') { ?>
-<script type="text/javascript">
-function groupManageUser(targetlevel_val) {
-$('targetlevel').value = targetlevel_val;
-$('manageuser').submit();
-}
-</script>
-<?php if($_G['forum']['membernum'] > 50) { ?>
-<div class="bm_c pns">
-<form action="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>" method="post">
-<input type="text" <?php if(empty($_GET['srchuser'])) { ?>onclick="$('groupsearch').value=''"<?php } ?> value="<?php if($_GET['srchuser']) { ?><?php echo $_GET['srchuser'];?><?php } else { ?>请输入成员名称<?php } ?>" size="15" class="px p_fre vm" id="groupsearch" name="srchuser">&nbsp;
-<button class="pn vm" type="submit"><span>搜索</span></button>
-</form>
-</div>
-<?php } ?>
-<form action="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>&amp;manageuser=true" name="manageuser" id="manageuser" method="post" autocomplete="off" class="ptm">
-<input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
-        <input type="hidden" value="0" name="targetlevel" id="targetlevel" />
-<?php if($adminuserlist) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>管理成员</h2>
-</div>
-<div class="bm_c">
-<ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt">
-<?php if($user['level'] == 1) { ?>
-<em class="gm"></em>
-<?php } elseif($user['level'] == 2) { ?>
-<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
-<?php } if($user['online']) { ?>
-<em class="gol"></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-<p><?php if($_G['adminid'] == 1 || ($_G['uid'] != $user['uid'] && ($_G['uid'] == $_G['forum']['founderuid'] || $user['level'] > $groupuser['level']))) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
-</li>
-<?php } ?>
-</ul>
-</div>
-</div>
-<?php } if($staruserlist || $userlist) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>成员</h2>
-</div>
-<div class="bm_c">
-<?php if($staruserlist) { ?>
-<ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt">
-<em class="gs"></em>
-<?php if($user['online']) { ?>
-<em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-<p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
-</li>
-<?php } ?>
-</ul>
-<?php } if($userlist) { ?>
-<ul class="ml mls cl"><?php if(is_array($userlist)) foreach($userlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-<p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
-</li>
-<?php } ?>
-</ul>
-<?php } ?>
-</div>
-</div>
-<?php } if($multipage) { ?><div class="pgs cl mbm"><?php echo $multipage;?></div><?php } ?>
-<div class="cl"><?php if(is_array($mtype)) foreach($mtype as $key => $name) { ?>            	<?php if($_G['forum']['founderuid'] == $_G['uid'] || $key > $groupuser['level'] || $_G['adminid'] == 1) { ?>
-                <button type="button" name="manageuser" value="true" class="pn" onclick="groupManageUser('<?php echo $key;?>')"><span><?php echo $name;?></span></button>
-                <?php } ?>
+                </p>
+                <div class="xld xlda"><?php if(is_array($checkusers)) foreach($checkusers as $uid => $user) { ?><dl class="bbda cl">
+                        <dd class="m avt"><?php echo avatar($user['uid'], 'small'); ?></dd>
+                        <dt><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a> <span class="xw0">(<?php echo $user['joindateline'];?>)</span></dt>
+                        <dd class="pns"><button type="submit" name="checkusertrue" class="pn pnc" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=1'"><em>通过</em></button> &nbsp; <button type="submit" name="checkuserfalse" class="pn" value="true" onclick="location.href='forum.php?mod=group&action=manage&op=checkuser&fid=<?php echo $_G['fid'];?>&uid=<?php echo $user['uid'];?>&checktype=2'"><em>忽略</em></button></dd>
+                        </dl>
+                    <?php } ?>
+                </div>
+                <?php if($multipage) { ?><div class="pgs cl mtm"><?php echo $multipage;?></div><?php } } else { ?>
+                <p class="emp">暂无需要审核成员。</p>
+            <?php } } elseif($_GET['op'] == 'manageuser') { ?>
+                <script type="text/javascript">
+                    function groupManageUser(targetlevel_val) {
+                        $('targetlevel').value = targetlevel_val;
+                        $('manageuser').submit();
+                    }
+                </script>
+            <?php if($_G['forum']['membernum'] > 50) { ?>
+                <div class="bm_c pns">
+                    <form action="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>" method="post">
+                        <input type="text" <?php if(empty($_GET['srchuser'])) { ?>onclick="$('groupsearch').value=''"<?php } ?> value="<?php if($_GET['srchuser']) { ?><?php echo $_GET['srchuser'];?><?php } else { ?>请输入成员名称<?php } ?>" size="15" class="px p_fre vm" id="groupsearch" name="srchuser">&nbsp;
+                        <button class="pn vm" type="submit"><span>搜索</span></button>
+                    </form>
+                </div>
+            <?php } ?>
+                <form action="forum.php?mod=group&amp;action=manage&amp;op=manageuser&amp;fid=<?php echo $_G['fid'];?>&amp;manageuser=true" name="manageuser" id="manageuser" method="post" autocomplete="off" class="ptm">
+                    <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
+                    <input type="hidden" value="0" name="targetlevel" id="targetlevel" />
+                    <?php if($adminuserlist) { ?>
+                        <div class="bm">
+                            <div class="bm_h cl">
+                                <h2>管理成员</h2>
+                            </div>
+                            <div class="bm_c">
+                                <ul class="ml mls cl"><?php if(is_array($adminuserlist)) foreach($adminuserlist as $user) { ?><li>
+                                        <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt">
+                                            <?php if($user['level'] == 1) { ?>
+                                                <em class="gm"></em>
+                                            <?php } elseif($user['level'] == 2) { ?>
+                                                <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
+                                            <?php } if($user['online']) { ?>
+                                                <em class="gol"></em>
+                                            <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                        <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                        <p><?php if($_G['adminid'] == 1 || ($_G['uid'] != $user['uid'] && ($_G['uid'] == $_G['forum']['founderuid'] || $user['level'] > $groupuser['level']))) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
+                                        </li>
+                                    <?php } ?>
+                                </ul>
+                            </div>
+                        </div>
+                    <?php } if($staruserlist || $userlist) { ?>
+                        <div class="bm">
+                            <div class="bm_h cl">
+                                <h2>成员</h2>
+                            </div>
+                            <div class="bm_c">
+                                <?php if($staruserlist) { ?>
+                                    <ul class="ml mls cl"><?php if(is_array($staruserlist)) foreach($staruserlist as $user) { ?><li>
+                                            <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="明星成员<?php if($user['online']) { ?> 在线<?php } ?>" class="avt">
+                                                <em class="gs"></em>
+                                                <?php if($user['online']) { ?>
+                                                    <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
+                                                <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                            <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                            <p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
+                                            </li>
+                                        <?php } ?>
+                                    </ul>
+                                <?php } if($userlist) { ?>
+                                    <ul class="ml mls cl"><?php if(is_array($userlist)) foreach($userlist as $user) { ?><li>
+                                            <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
+                                            <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                            <p><?php if($_G['adminid'] == 1 || $user['level'] > $groupuser['level']) { ?><input type="checkbox" class="pc" name="muid[<?php echo $user['uid'];?>]" value="<?php echo $user['level'];?>" /><?php } ?></p>
+                                            </li>
+                                        <?php } ?>
+                                    </ul>
+                                <?php } ?>
+                            </div>
+                        </div>
+                    <?php } if($multipage) { ?><div class="pgs cl mbm"><?php echo $multipage;?></div><?php } ?>
+                    <div class="cl"><?php if(is_array($mtype)) foreach($mtype as $key => $name) { ?>            	<?php if($_G['forum']['founderuid'] == $_G['uid'] || $key > $groupuser['level'] || $_G['adminid'] == 1) { ?>
+                            <button type="button" name="manageuser" value="true" class="pn" onclick="groupManageUser('<?php echo $key;?>')"><span><?php echo $name;?></span></button>
+                        <?php } ?>
+                        <?php } ?>
+                    </div>
+                </form>
+            <?php } elseif($_GET['op'] == 'threadtype') { ?>
+                <div class="bm bw0">
+                    <?php if(empty($specialswitch['allowthreadtype'])) { ?>
+                        目前您的<?php echo $_G['setting']['navs']['3']['navname'];?>等级不能使用此功能。
+                    <?php } else { ?>
+                        <script type="text/JavaScript">
+                            var rowtypedata = [
+                                [
+                                    [1,'<input type="checkbox" class="pc" disabled="disabled" />', ''],
+                                    [1,'<input type="checkbox" class="pc" name="newenable[]" checked="checked" value="1" />', ''],
+                                    [1,'<input class="px" type="text" size="2" name="newdisplayorder[]" value="0" />'],
+                                    [1,'<input class="px" type="text" name="newname[]" />']
+                                ],
+                            ];
+                            var addrowdirect = 0;
+                            var typenumlimit = <?php echo $typenumlimit;?>;
+                            function addrow(obj, type) {
+                                var table = obj.parentNode.parentNode.parentNode.parentNode;
+                                if(typenumlimit <= obj.parentNode.parentNode.parentNode.rowIndex - 1) {
+                                    alert('最多只能有'+typenumlimit+'个主题分类。');
+                                    return false;
+                                }
+                                if(!addrowdirect) {
+                                    var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex);
+                                } else {
+                                    var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex + 1);
+                                }
+
+                                var typedata = rowtypedata[type];
+                                for(var i = 0; i <= typedata.length - 1; i++) {
+                                    var cell = row.insertCell(i);
+                                    cell.colSpan = typedata[i][0];
+                                    var tmp = typedata[i][1];
+                                    if(typedata[i][2]) {
+                                        cell.className = typedata[i][2];
+                                    }
+                                    tmp = tmp.replace(/\{(\d+)\}/g, function($1, $2) {return addrow.arguments[parseInt($2) + 1];});
+                                    cell.innerHTML = tmp;
+                                }
+                                addrowdirect = 0;
+                            }
+                        </script>
+                        <div id="threadtypes">
+                            <form id="threadtypeform" action="forum.php?mod=group&amp;action=manage&amp;op=threadtype&amp;fid=<?php echo $_G['fid'];?>" autocomplete="off" method="post" name="threadtypeform">
+                                <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
+                                <table cellspacing="0" cellpadding="0" class="tfm vt">
+                                    <tr>
+                                        <th>启用主题分类:</th>
+                                        <td>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="1" onclick="$('threadtypes_config').style.display = '';$('threadtypes_manage').style.display = '';" <?php echo $checkeds['status']['1'];?> />是</label>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="0" onclick="$('threadtypes_config').style.display = 'none';$('threadtypes_manage').style.display = 'none';"  <?php echo $checkeds['status']['0'];?> />否</label>
+                                            <p class="d">设置是否启用主题分类功能,您需要同时设定相应的分类选项,才能启用本功能</p>
+                                        </td>
+                                    </tr>
+                                    <tbody id="threadtypes_config" style="display: <?php echo $display;?>">
+                                    <tr>
+                                        <th>发帖必须归类:</th>
+                                        <td>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="1" <?php echo $checkeds['required']['1'];?> />是</label>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="0" <?php echo $checkeds['required']['0'];?> />否</label>
+                                            <p class="d">是否强制用户发表新主题时必须选择分类</p>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <th>类别前缀:</th>
+                                        <td>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="0" <?php echo $checkeds['prefix']['0'];?> />不显示</label>
+                                            <label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="1" <?php echo $checkeds['prefix']['1'];?> />显示</label>
+                                            <p class="d">是否在主题前面显示分类的名称</p>
+                                        </td>
+                                    </tr>
+                                    </tbody>
+                                </table>
+                                <div id="threadtypes_manage" style="display: <?php echo $display;?>">
+                                    <h2 class="ptm pbm">主题分类</h2>
+                                    <table cellspacing="0" cellpadding="0" class="dt">
+                                        <thead>
+                                        <tr>
+                                            <th width="25">删除</th>
+                                            <th>启用</th>
+                                            <th>顺序</th>
+                                            <th>分类名称</th>
+                                        </tr>
+                                        </thead>
+                                        <?php if($threadtypes) { if(is_array($threadtypes)) foreach($threadtypes as $val) { ?><tbody>
+                                        <tr>
+                                            <td><input type="checkbox" class="pc" name="threadtypesnew[options][delete][]" value="<?php echo $val['typeid'];?>" /></td>
+                                            <td><input type="checkbox" class="pc" name="threadtypesnew[options][enable][<?php echo $val['typeid'];?>]" value="1" class="pc" <?php echo $val['enablechecked'];?> /></td>
+                                            <td><input type="text" name="threadtypesnew[options][displayorder][<?php echo $val['typeid'];?>]" class="px" size="2" value="<?php echo $val['displayorder'];?>" /></td>
+                                            <td><input type="text" name="threadtypesnew[options][name][<?php echo $val['typeid'];?>]" class="px" value="<?php echo $val['name'];?>" /></td>
+                                        </tr>
+                                            </tbody>
+                                        <?php } } ?>
+                                        <tr>
+                                            <td colspan="4"><img class="vm" src="<?php echo IMGDIR;?>/addicn.gif" /> <a href="javascript:;" onclick="addrow(this, 0)">添加分类</a></td>
+                                        </tr>
+                                    </table>
+                                </div>
+                                <button type="submit" class="pn pnc mtm" name="groupthreadtype" value="1"><strong>提交</strong></button>
+                            </form>
+                        </div>
+                    <?php } ?>
+                </div>
+            <?php } elseif($_GET['op'] == 'demise') { ?>
+                <div class="bm bw0">
+                    <?php if($groupmanagers) { ?>
+                        <div class="tbmu">
+                            <h2>接受转让资格:</h2><p>只能转让给本<?php echo $_G['setting']['navs']['3']['navname'];?>的管理成员。</p><p>接收者要具备可再创建新<?php echo $_G['setting']['navs']['3']['navname'];?>的资格。</p>
+                            <div class="mtm"><h2>温馨提示:</h2><p><?php echo $_G['setting']['navs']['3']['navname'];?>转让成功后,您依然是该群的群主,但不再是<?php echo $_G['setting']['navs']['3']['navname'];?>创始人,所以可自由退出该<?php echo $_G['setting']['navs']['3']['navname'];?>。</p><p>转让后无法直接恢复群,需被接收者主动操作才可以再次转回,请谨慎操作。</p></div>
+                        </div>
+                        <form action="forum.php?mod=group&amp;action=manage&amp;op=demise&amp;fid=<?php echo $_G['fid'];?>" name="groupdemise" method="post" class="exfm">
+                            <input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
+                            <table cellspacing="0" cellpadding="0" class="tfm vt">
+                                <tr>
+                                    <th>将<?php echo $_G['setting']['navs']['3']['navname'];?>转让给:</th>
+                                    <td>
+                                        <ul class="ml mls cl"><?php if(is_array($groupmanagers)) foreach($groupmanagers as $user) { ?><li>
+                                                <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>设为群主<?php } elseif($user['level'] == 2) { ?>设为副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
+                                                <p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
+                                                <p><?php if($user['uid'] != $_G['uid']) { ?><input type="radio" class="pr" name="suid" value="<?php echo $user['uid'];?>" /><?php } ?></p>
+                                                </li>
+                                            <?php } ?>
+                                        </ul>
+                                    </td>
+                                </tr>
+                                <tr>
+                                    <th>请输入登录密码</th>
+                                    <td><input type="password" name="grouppwd" class="px p_fre" /></td>
+                                </tr>
+                                <tr>
+                                    <th>&nbsp;</th>
+                                    <td>
+                                        <button type="submit" name="groupdemise" class="pn pnc" value="1"><strong>提交</strong></button>
+                                    </td>
+                                </tr>
+                            </table>
+                        </form>
+                    <?php } else { ?>
+                        <p class="emp"><?php echo $_G['setting']['navs']['3']['navname'];?>目前还没有管理成员。</p>
+                    <?php } ?>
+                </div>
+            <?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_bottom'])) echo $_G['setting']['pluginhooks']['group_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_bottom'];?><?php } ?>
+            <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
+        </div>
+        <div class="sd wk_sq_sd padding15 backfff">
+            <div class="drag">
+                <!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
+            </div><?php if($action == 'index') { ?>
+                <div class="bm bml tns">
+                    <table cellpadding="4" cellspacing="0" border="0">
+                        <tr>
+                            <th><p><?php echo $_G['forum']['posts'];?></p>帖子</th>
+                            <th><p><?php echo $_G['forum']['membernum'];?></p>成员</th>
+                            <td><p><?php echo $groupcache['ranking']['data']['today'];?></p>排名</td>
+                        </tr>
+                    </table>
+                </div>
+                <?php if(!empty($_G['setting']['pluginhooks']['group_index_side'])) echo $_G['setting']['pluginhooks']['group_index_side'];?>
+                <?php if($status != 2 && $status != 3) { ?>
+                    <div class="bm">
+                        <ul class="tb tb_h cl">
+                            <li class="a" id="new" onmouseover="this.className='a';$('top').className='';$('newuserlist').style.display='block';$('topuserlist').style.display='none';"><a href="javascript:;">新加入</a></li>
+                            <li id="top" onmouseover="this.className='a';$('new').className='';$('topuserlist').style.display='block';$('newuserlist').style.display='none';"><a href="javascript:;">活跃成员</a></li>
+                        </ul>
+                        <div class="bm_c">
+                            <ul class="ml mls cl" id="newuserlist" style="display:block;"><?php if(is_array($newuserlist)) foreach($newuserlist as $user) { ?><li>
+                                    <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
+                                        <?php if($user['level'] == 1) { ?>
+                                            <em class="gm"></em>
+                                        <?php } elseif($user['level'] == 2) { ?>
+                                            <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
+                                        <?php } elseif($user['level'] == 3) { ?>
+                                            <em class="gs"></em>
+                                        <?php } if($user['online']) { ?>
+                                            <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
+                                        <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                    <p>
+                                        <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
+                                    </p>
+                                    </li>
+                                <?php } ?>
+                            </ul>
+                            <ul class="ml mls cl" id="topuserlist" style="display:none;"><?php if(is_array($activityuserlist)) foreach($activityuserlist as $user) { ?><li>
+                                    <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
+                                        <?php if($user['level'] == 1) { ?>
+                                            <em class="gm"></em>
+                                        <?php } elseif($user['level'] == 2) { ?>
+                                            <em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
+                                        <?php } elseif($user['level'] == 3) { ?>
+                                            <em class="gs"></em>
+                                        <?php } if($user['online']) { ?>
+                                            <em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
+                                        <?php } echo avatar($user['uid'], 'small'); ?></a>
+                                    <p>
+                                        <a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
+                                    </p>
+                                    </li>
+                                <?php } ?>
+                            </ul>
+                        </div>
+                    </div>
+
+                    <?php if($groupviewed_list) { ?>
+                        <div class="bm">
+                            <div class="bm_h cl">
+                                <h2>浏览过的<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
+                            </div>
+                            <div class="bm_c">
+                                <ul class="ml mls cl"><?php if(is_array($groupviewed_list)) foreach($groupviewed_list as $groupid => $group) { ?><li>
+                                        <a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" class="avt"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
+                                        <p><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></p>
+                                        <span><?php echo $group['membernum'];?></span>
+                                        </li>
+                                    <?php } ?>
+                                </ul>
+                            </div>
+                        </div>
+                    <?php } } } elseif($action == 'list') { if($groupcache['replies']['data']) { ?>
+                <div class="bm">
+                    <div class="bm_h cl">
+                        <h2>今天大家都在讨论的话题</h2>
+                    </div>
+                    <div class="bm_c">
+                        <ul class="xl xl1"><?php if(is_array($groupcache['replies']['data'])) foreach($groupcache['replies']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
+                            <?php } ?>
+                        </ul>
+                    </div>
+                </div>
+            <?php } if($groupcache['digest']['data']) { ?>
+                <div class="bm">
+                    <div class="bm_h cl">
+                        <h2>精华推荐</h2>
+                    </div>
+                    <div class="bm_c">
+                        <ul class="xl xl1"><?php if(is_array($groupcache['digest']['data'])) foreach($groupcache['digest']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
+                            <?php } ?>
+                        </ul>
+                    </div>
+                </div>
+            <?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_top'])) echo $_G['setting']['pluginhooks']['group_side_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_top'];?><?php } if($action == 'create') { ?>
+                <div class="bm bmn">
+                    <div class="bm_c xw1 xi1">您已有 <?php echo $groupnum;?> 个<?php echo $_G['setting']['navs']['3']['navname'];?>,还能创建 <?php echo $allowbuildgroup;?> 个。</div>
+                </div>
+            <?php } else { if($action != 'index' && ($status != 2 || $status != 3)) { ?>
+                <div class="bm bml">
+                    <div class="bm_h cl">
+                        <h2>在本<?php echo $_G['setting']['navs']['3']['navname'];?>中寻找帖子</h2>
+                    </div>
+                    <div class="bm_c hm pns">
+                        <form method="post" action="search.php?mod=group&amp;srchfid=<?php echo $_G['fid'];?>&amp;searchsubmit=1">
+                            <input type="text" name="srchtxt" id="groupsearch" class="px p_fre vm" size="15" value="请输入搜索关键字" onclick="$('groupsearch').value=''" />&nbsp;
+                            <button type="submit" class="pn vm"><span>搜索</span></button>
+                        </form>
+                    </div>
+                </div>
             <?php } ?>
-</div>
-</form>
-<?php } elseif($_GET['op'] == 'threadtype') { ?>
-<div class="bm bw0">
-<?php if(empty($specialswitch['allowthreadtype'])) { ?>
-目前您的<?php echo $_G['setting']['navs']['3']['navname'];?>等级不能使用此功能。
-<?php } else { ?>
-<script type="text/JavaScript">
-var rowtypedata = [
-[
-[1,'<input type="checkbox" class="pc" disabled="disabled" />', ''],
-[1,'<input type="checkbox" class="pc" name="newenable[]" checked="checked" value="1" />', ''],
-[1,'<input class="px" type="text" size="2" name="newdisplayorder[]" value="0" />'],
-[1,'<input class="px" type="text" name="newname[]" />']
-],
-];
-var addrowdirect = 0;
-var typenumlimit = <?php echo $typenumlimit;?>;
-function addrow(obj, type) {
-var table = obj.parentNode.parentNode.parentNode.parentNode;
-if(typenumlimit <= obj.parentNode.parentNode.parentNode.rowIndex - 1) {
-alert('最多只能有'+typenumlimit+'个主题分类。');
-return false;
-}
-if(!addrowdirect) {
-var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex);
-} else {
-var row = table.insertRow(obj.parentNode.parentNode.parentNode.rowIndex + 1);
-}
 
-var typedata = rowtypedata[type];
-for(var i = 0; i <= typedata.length - 1; i++) {
-var cell = row.insertCell(i);
-cell.colSpan = typedata[i][0];
-var tmp = typedata[i][1];
-if(typedata[i][2]) {
-cell.className = typedata[i][2];
-}
-tmp = tmp.replace(/\{(\d+)\}/g, function($1, $2) {return addrow.arguments[parseInt($2) + 1];});
-cell.innerHTML = tmp;
-}
-addrowdirect = 0;
-}
-</script>
-<div id="threadtypes">
-<form id="threadtypeform" action="forum.php?mod=group&amp;action=manage&amp;op=threadtype&amp;fid=<?php echo $_G['fid'];?>" autocomplete="off" method="post" name="threadtypeform">
-<input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
-<table cellspacing="0" cellpadding="0" class="tfm vt">
-<tr>
-<th>启用主题分类:</th>
-<td>
-<label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="1" onclick="$('threadtypes_config').style.display = '';$('threadtypes_manage').style.display = '';" <?php echo $checkeds['status']['1'];?> />是</label>
-<label class="lb"><input type="radio" name="threadtypesnew[status]" class="pr" value="0" onclick="$('threadtypes_config').style.display = 'none';$('threadtypes_manage').style.display = 'none';"  <?php echo $checkeds['status']['0'];?> />否</label>
-<p class="d">设置是否启用主题分类功能,您需要同时设定相应的分类选项,才能启用本功能</p>
-</td>
-</tr>
-<tbody id="threadtypes_config" style="display: <?php echo $display;?>">
-<tr>
-<th>发帖必须归类:</th>
-<td>
-<label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="1" <?php echo $checkeds['required']['1'];?> />是</label>
-<label class="lb"><input type="radio" name="threadtypesnew[required]" class="pr" value="0" <?php echo $checkeds['required']['0'];?> />否</label>
-<p class="d">是否强制用户发表新主题时必须选择分类</p>
-</td>
-</tr>
-<tr>
-<th>类别前缀:</th>
-<td>
-<label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="0" <?php echo $checkeds['prefix']['0'];?> />不显示</label>
-<label class="lb"><input type="radio" name="threadtypesnew[prefix]" class="pr" value="1" <?php echo $checkeds['prefix']['1'];?> />显示</label>
-<p class="d">是否在主题前面显示分类的名称</p>
-</td>
-</tr>
-</tbody>
-</table>
-<div id="threadtypes_manage" style="display: <?php echo $display;?>">
-<h2 class="ptm pbm">主题分类</h2>
-<table cellspacing="0" cellpadding="0" class="dt">
-<thead>
-<tr>
-<th width="25">删除</th>
-<th>启用</th>
-<th>顺序</th>
-<th>分类名称</th>
-</tr>
-</thead>
-<?php if($threadtypes) { if(is_array($threadtypes)) foreach($threadtypes as $val) { ?><tbody>
-<tr>
-<td><input type="checkbox" class="pc" name="threadtypesnew[options][delete][]" value="<?php echo $val['typeid'];?>" /></td>
-<td><input type="checkbox" class="pc" name="threadtypesnew[options][enable][<?php echo $val['typeid'];?>]" value="1" class="pc" <?php echo $val['enablechecked'];?> /></td>
-<td><input type="text" name="threadtypesnew[options][displayorder][<?php echo $val['typeid'];?>]" class="px" size="2" value="<?php echo $val['displayorder'];?>" /></td>
-<td><input type="text" name="threadtypesnew[options][name][<?php echo $val['typeid'];?>]" class="px" value="<?php echo $val['name'];?>" /></td>
-</tr>
-</tbody>
-<?php } } ?>
-<tr>
-<td colspan="4"><img class="vm" src="<?php echo IMGDIR;?>/addicn.gif" /> <a href="javascript:;" onclick="addrow(this, 0)">添加分类</a></td>
-</tr>
-</table>
-</div>
-<button type="submit" class="pn pnc mtm" name="groupthreadtype" value="1"><strong>提交</strong></button>
-</form>
-</div>
-<?php } ?>
-</div>
-<?php } elseif($_GET['op'] == 'demise') { ?>
-<div class="bm bw0">
-<?php if($groupmanagers) { ?>
-<div class="tbmu">
-<h2>接受转让资格:</h2><p>只能转让给本<?php echo $_G['setting']['navs']['3']['navname'];?>的管理成员。</p><p>接收者要具备可再创建新<?php echo $_G['setting']['navs']['3']['navname'];?>的资格。</p>
-<div class="mtm"><h2>温馨提示:</h2><p><?php echo $_G['setting']['navs']['3']['navname'];?>转让成功后,您依然是该群的群主,但不再是<?php echo $_G['setting']['navs']['3']['navname'];?>创始人,所以可自由退出该<?php echo $_G['setting']['navs']['3']['navname'];?>。</p><p>转让后无法直接恢复群,需被接收者主动操作才可以再次转回,请谨慎操作。</p></div>
-</div>
-<form action="forum.php?mod=group&amp;action=manage&amp;op=demise&amp;fid=<?php echo $_G['fid'];?>" name="groupdemise" method="post" class="exfm">
-<input type="hidden" value="<?php echo FORMHASH;?>" name="formhash" />
-<table cellspacing="0" cellpadding="0" class="tfm vt">
-<tr>
-<th>将<?php echo $_G['setting']['navs']['3']['navname'];?>转让给:</th>
-<td>
-<ul class="ml mls cl"><?php if(is_array($groupmanagers)) foreach($groupmanagers as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>设为群主<?php } elseif($user['level'] == 2) { ?>设为副群主<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt"><?php echo avatar($user['uid'], 'small'); ?></a>
-<p><a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a></p>
-<p><?php if($user['uid'] != $_G['uid']) { ?><input type="radio" class="pr" name="suid" value="<?php echo $user['uid'];?>" /><?php } ?></p>
-</li>
-<?php } ?>
-</ul>
-</td>
-</tr>
-<tr>
-<th>请输入登录密码</th>
-<td><input type="password" name="grouppwd" class="px p_fre" /></td>
-</tr>
-<tr>
-<th>&nbsp;</th>
-<td>
-<button type="submit" name="groupdemise" class="pn pnc" value="1"><strong>提交</strong></button>
-</td>
-</tr>
-</table>
-</form>
-<?php } else { ?>
-<p class="emp"><?php echo $_G['setting']['navs']['3']['navname'];?>目前还没有管理成员。</p>
-<?php } ?>
-</div>
-<?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_bottom'])) echo $_G['setting']['pluginhooks']['group_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_bottom'];?><?php } ?>
-<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
-</div>
-<div class="sd wk_sq_sd padding15 backfff">
-<div class="drag">
-<!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
-</div><?php if($action == 'index') { ?>
-<div class="bm bml tns">
-<table cellpadding="4" cellspacing="0" border="0">
-<tr>
-<th><p><?php echo $_G['forum']['posts'];?></p>帖子</th>
-<th><p><?php echo $_G['forum']['membernum'];?></p>成员</th>
-<td><p><?php echo $groupcache['ranking']['data']['today'];?></p>排名</td>
-</tr>
-</table>
-</div>
-<?php if(!empty($_G['setting']['pluginhooks']['group_index_side'])) echo $_G['setting']['pluginhooks']['group_index_side'];?>
-<?php if($status != 2 && $status != 3) { ?>
-<div class="bm">
-<ul class="tb tb_h cl">
-<li class="a" id="new" onmouseover="this.className='a';$('top').className='';$('newuserlist').style.display='block';$('topuserlist').style.display='none';"><a href="javascript:;">新加入</a></li>
-<li id="top" onmouseover="this.className='a';$('new').className='';$('topuserlist').style.display='block';$('newuserlist').style.display='none';"><a href="javascript:;">活跃成员</a></li>
-</ul>
-<div class="bm_c">
-<ul class="ml mls cl" id="newuserlist" style="display:block;"><?php if(is_array($newuserlist)) foreach($newuserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
-<?php if($user['level'] == 1) { ?>
-<em class="gm"></em>
-<?php } elseif($user['level'] == 2) { ?>
-<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
-<?php } elseif($user['level'] == 3) { ?>
-<em class="gs"></em>
-<?php } if($user['online']) { ?>
-<em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
-</p>
-</li>
-<?php } ?>
-</ul>
-<ul class="ml mls cl" id="topuserlist" style="display:none;"><?php if(is_array($activityuserlist)) foreach($activityuserlist as $user) { ?><li>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>" title="<?php if($user['level'] == 1) { ?>群主<?php } elseif($user['level'] == 2) { ?>副群主<?php } elseif($user['level'] == 3) { ?>明星成员<?php } if($user['online']) { ?> 在线<?php } ?>" class="avt" c="1">
-<?php if($user['level'] == 1) { ?>
-<em class="gm"></em>
-<?php } elseif($user['level'] == 2) { ?>
-<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
-<?php } elseif($user['level'] == 3) { ?>
-<em class="gs"></em>
-<?php } if($user['online']) { ?>
-<em class="gol"<?php if($user['level'] <= 3) { ?> style="margin-top: 15px;"<?php } ?>></em>
-<?php } echo avatar($user['uid'], 'small'); ?></a>
-<p>
-<a href="home.php?mod=space&amp;uid=<?php echo $user['uid'];?>"><?php echo $user['username'];?></a>
-</p>
-</li>
-<?php } ?>
-</ul>
-</div>
-</div>
+                <div class="bm bml">
+                    <div class="bm_h cl">
+                        <h2><?php echo $_G['setting']['navs']['3']['navname'];?>地址</h2>
+                    </div>
+                    <div class="bm_c">
+                        <p>
+                            <?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && !empty($_G['forum']['domain'])) { ?>
+                                <a href="http://<?php echo $_G['forum']['domain'];?>.<?php echo $_G['setting']['domain']['root']['group'];?>" id="group_link"></a>
+                            <?php } else { ?>
+                                <a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>" id="group_link"></a>
+                            <?php } ?>
+                            [<a href="javascript:;" onclick="setCopy($('group_link').href, '<?php echo $_G['setting']['navs']['3']['navname'];?>地址复制成功')" class="xi2">复制</a>]
+                        </p>
+                        <script type="text/javascript">$('group_link').innerHTML = $('group_link').href</script>
+                        <p class="ptn xg1"><?php echo $_G['forum']['foundername'];?> 创建于 <?php echo $_G['forum']['dateline'];?></p>
+                        <?php if($status == 'isgroupuser') { ?><p class="ptn"><a onclick="showDialog('您确定要退出该<?php echo $_G['setting']['navs']['3']['navname'];?>吗?', 'confirm', '', function(){location.href='forum.php?mod=group&action=out&fid=<?php echo $_G['fid'];?>'})" href="javascript:;" class="xi2">退出<?php echo $_G['setting']['navs']['3']['navname'];?></a><p><?php } ?>
+                    </div>
+                </div>
+            <?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_bottom'])) echo $_G['setting']['pluginhooks']['group_side_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_bottom'];?><?php } ?>
 
-<?php if($groupviewed_list) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>浏览过的<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
-</div>
-<div class="bm_c">
-<ul class="ml mls cl"><?php if(is_array($groupviewed_list)) foreach($groupviewed_list as $groupid => $group) { ?><li>
-<a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>" class="avt"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
-<p><a href="forum.php?mod=group&amp;fid=<?php echo $groupid;?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></p>
-<span><?php echo $group['membernum'];?></span>
-</li>
-<?php } ?>
-</ul>
-</div>
-</div>
-<?php } } } elseif($action == 'list') { if($groupcache['replies']['data']) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>今天大家都在讨论的话题</h2>
-</div>
-<div class="bm_c">
-<ul class="xl xl1"><?php if(is_array($groupcache['replies']['data'])) foreach($groupcache['replies']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
-<?php } ?>
-</ul>
-</div>
-</div>
-<?php } if($groupcache['digest']['data']) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>精华推荐</h2>
-</div>
-<div class="bm_c">
-<ul class="xl xl1"><?php if(is_array($groupcache['digest']['data'])) foreach($groupcache['digest']['data'] as $tid => $thread) { ?><li><a href="forum.php?mod=viewthread&amp;tid=<?php echo $tid;?>"><?php echo $thread['subject'];?></a></li>
-<?php } ?>
-</ul>
-</div>
-</div>
-<?php } } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_top'])) echo $_G['setting']['pluginhooks']['group_side_top'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_top'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_top'];?><?php } if($action == 'create') { ?>
-<div class="bm bmn">
-<div class="bm_c xw1 xi1">您已有 <?php echo $groupnum;?> 个<?php echo $_G['setting']['navs']['3']['navname'];?>,还能创建 <?php echo $allowbuildgroup;?> 个。</div>
-</div>
-<?php } else { if($action != 'index' && ($status != 2 || $status != 3)) { ?>
-<div class="bm bml">
-<div class="bm_h cl">
-<h2>在本<?php echo $_G['setting']['navs']['3']['navname'];?>中寻找帖子</h2>
-</div>
-<div class="bm_c hm pns">
-<form method="post" action="search.php?mod=group&amp;srchfid=<?php echo $_G['fid'];?>&amp;searchsubmit=1">
-<input type="text" name="srchtxt" id="groupsearch" class="px p_fre vm" size="15" value="请输入搜索关键字" onclick="$('groupsearch').value=''" />&nbsp;
-<button type="submit" class="pn vm"><span>搜索</span></button>
-</form>
-</div>
-</div>
-<?php } ?>
+            <div class="drag">
+                <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
+            </div>
 
-<div class="bm bml">
-<div class="bm_h cl">
-<h2><?php echo $_G['setting']['navs']['3']['navname'];?>地址</h2>
-</div>
-<div class="bm_c">
-<p>
-<?php if($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && !empty($_G['forum']['domain'])) { ?>
-<a href="http://<?php echo $_G['forum']['domain'];?>.<?php echo $_G['setting']['domain']['root']['group'];?>" id="group_link"></a>
-<?php } else { ?>
-<a href="forum.php?mod=group&amp;fid=<?php echo $_G['fid'];?>" id="group_link"></a>
-<?php } ?>
-[<a href="javascript:;" onclick="setCopy($('group_link').href, '<?php echo $_G['setting']['navs']['3']['navname'];?>地址复制成功')" class="xi2">复制</a>]
-</p>
-<script type="text/javascript">$('group_link').innerHTML = $('group_link').href</script>
-<p class="ptn xg1"><?php echo $_G['forum']['foundername'];?> 创建于 <?php echo $_G['forum']['dateline'];?></p>
-<?php if($status == 'isgroupuser') { ?><p class="ptn"><a onclick="showDialog('您确定要退出该<?php echo $_G['setting']['navs']['3']['navname'];?>吗?', 'confirm', '', function(){location.href='forum.php?mod=group&action=out&fid=<?php echo $_G['fid'];?>'})" href="javascript:;" class="xi2">退出<?php echo $_G['setting']['navs']['3']['navname'];?></a><p><?php } ?>
-</div>
-</div>
-<?php } if(CURMODULE == 'group') { ?><?php if(!empty($_G['setting']['pluginhooks']['group_side_bottom'])) echo $_G['setting']['pluginhooks']['group_side_bottom'];?><?php } else { ?><?php if(!empty($_G['setting']['pluginhooks']['forumdisplay_side_bottom'])) echo $_G['setting']['pluginhooks']['forumdisplay_side_bottom'];?><?php } ?>
+        </div>
+    </div>s
 
-<div class="drag">
-<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
-</div>
+    <script type="text/javascript">
+        _init_area();
+        // var Gid  = document.getElementById ;
+        // Gid('s_county').setAttribute('onchange','showArea()');
 
-</div>
-</div>
+        function updatecinemaattach(aid, url, attachurl) {
+            $('activityaid').value = aid;
+            $('activityattach_image').innerHTML = '<img src="' + attachurl + '/' + url + '" class="spimg" />';
+            ATTACHORIMAGE = 1;
+        }
 
-<div class="wp mtn">
-<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
-</div><?php include template('common/footer'); ?>
+        function activityaid_upload(aid, url) {
+            $('activityaid_url').value = url;
+            updatecinemaattach(aid, url, 'data/attachment/forum');
+        }
+    </script>
+    <div class="wp mtn">
+        <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
+    </div><?php include template('common/footer'); ?>

+ 146 - 69
data/template/3_diy_group_index.tpl.php

xqd xqd xqd xqd
@@ -1,6 +1,11 @@
 <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');?>
 <?php //include template('common/header'); ?>
 <?php include template('common/header_no_nav'); ?>
+    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick.css"/>
+    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick-theme.css"/>
+    <link rel="stylesheet" type="text/css" href="data/cache/font-awesome/css/fontawesome-all.min.css"/>
+    <script type="text/javascript" src="data/cache/jquery-3.3.1.min.js"></script>
+    <script type="text/javascript" src="data/cache/slick/slick.min.js"></script>
 <style type="text/css">
     .sg-group-link {
         font-size: 2em;
@@ -10,10 +15,51 @@
     .sg-group-link a {
         text-decoration: none;
     }
+    .sg-create-group {
+        font-size: 2em;
+        text-align: center;
+    }
+    .sg-right-block {
+        padding: 25px 15px;
+    }
+    .sg-create-group div {
+        margin-top: 15px;
+    }
+    .sg-create-group-desp {
+        font-size: 0.6em;
+    }
+    .sg-create-group-icon {
+        font-size: 1.5em;
+    }
+    .sg-create-group-icon:hover {
+        color: red;
+    }
+    .sg-hot-post-title {
+        text-align: center;
+        font-size: 2em;
+        font-weight: bold;
+    }
+    .sg-hot-post-list {
+        font-size: 1.1em;
+        margin-top: 20px
+    }
+    .sg-hot-post-list a {
+        display: block;
+        text-decoration: none;
+    }
+    .sg-container {
+        padding: 20px 15px;
+    }
+    .sg-block-title {
+        font-size: 2em;
+    }
+    .sg-recommend-container {
+        margin-top: 15px;
+    }
 </style>
 <div id="pt" class="bm cl">
 <div class="z sg-group-link">
-<a href="./" title="首页">首页</a><span>-</span><a href="group.php">俱乐部</a><?php echo $navigation;?>
+<a href="./" title="首页">首页</a><span>-</span><a href="#">俱乐部</a><?php echo $navigation;?>
 </div>
 </div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
 <div class="wp">
@@ -32,37 +78,53 @@
 </div>
 <!--[diy=diycommendtop]--><div id="diycommendtop" class="area"></div><!--[/diy]-->
 <?php if(!empty($_G['setting']['pluginhooks']['index_header'])) echo $_G['setting']['pluginhooks']['index_header'];?>
-<div id="g_commend" class="bm">
-<div class="bm_h cl">
-<h2>推荐<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
-</div>
-<div class="bm_c cl"><?php if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?><dl class="xld">
-<dd class="m"><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><img src="<?php echo $val['icon'];?>" alt="<?php echo $val['name'];?>" width="48" height="48" /></a></dd>
-<dt><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><?php echo $val['name'];?></a></dt>
-<dd class="xg1"><?php echo $val['description'];?></dd>
-</dl>
-<?php } ?>
-</div>
-</div>
+    <div class="bm sg-container">
+        <div class="sg-block-title"><h2>地区</h2></div>
+        <div class="sg-area-container"></div>
+    </div>
+    <div class="bm sg-container">
+        <div class="sg-block-title"><h2>推荐</h2></div>
+        <div class="sg-recommend-container">
+            <?php if(is_array(dunserialize($_G['setting']['group_recommend']))) { ?>
+                <?php foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?>
+                    <div>
+                        <img src="<?php echo $val['icon'];?>" width="48" height="48">
+                    </div>
+                <?php } ?>
+            <?php } ?>
+        </div>
+    </div>
+<!--<div id="g_commend" class="bm">-->
+<!--<div class="bm_h cl">-->
+<!--<h2>推荐--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</h2>-->
+<!--</div>-->
+<!--<div class="bm_c cl">--><?php //if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?><!--<dl class="xld">-->
+<!--<dd class="m"><a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--"><img src="--><?php //echo $val['icon'];?><!--" alt="--><?php //echo $val['name'];?><!--" width="48" height="48" /></a></dd>-->
+<!--<dt><a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--">--><?php //echo $val['name'];?><!--</a></dt>-->
+<!--<dd class="xg1">--><?php //echo $val['description'];?><!--</dd>-->
+<!--</dl>-->
+<?php //} ?>
+<!--</div>-->
+<!--</div>-->
 
 <!--[diy=diycategorytop]--><div id="diycategorytop" class="area"></div><!--[/diy]-->
 <?php if(!empty($_G['setting']['pluginhooks']['index_top'])) echo $_G['setting']['pluginhooks']['index_top'];?>
-<div class="bm">
-<div class="bm_h cl">
-<h2><?php echo $_G['setting']['navs']['3']['navname'];?>分类</h2>
-</div>
-<div class="bm_c"><?php if(is_array($first)) foreach($first as $groupid => $group) { ?><dl class="mbm pbm bbda">
-<dt class="pbn">
-<span class="y xi2"><?php if(is_array($group['secondlist'])) foreach($group['secondlist'] as $fid) { ?><a href="group.php?sgid=<?php echo $fid;?>"><?php echo $second[$fid]['name'];?></a> <?php } ?><a href="group.php?gid=<?php echo $groupid;?>">更多 &rsaquo;</a></span>
-<strong class="xs2"><a href="group.php?gid=<?php echo $groupid;?>"><?php echo $group['name'];?></a></strong><?php if($group['groupnum']) { ?><span class="xg1">(<?php echo $group['groupnum'];?>)</span><?php } ?>
-</dt>
-<dd><?php if(is_array($lastupdategroup[$groupid])) foreach($lastupdategroup[$groupid] as $val) { ?><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><?php echo $val['name'];?></a> &nbsp;&nbsp;
-<?php } ?>
-</dd>
-</dl>
-<?php } ?>
-</div>
-</div>
+<!--<div class="bm">-->
+<!--<div class="bm_h cl">-->
+<!--<h2>--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--分类</h2>-->
+<!--</div>-->
+<!--<div class="bm_c">--><?php //if(is_array($first)) foreach($first as $groupid => $group) { ?><!--<dl class="mbm pbm bbda">-->
+<!--<dt class="pbn">-->
+<!--<span class="y xi2">--><?php //if(is_array($group['secondlist'])) foreach($group['secondlist'] as $fid) { ?><!--<a href="group.php?sgid=--><?php //echo $fid;?><!--">--><?php //echo $second[$fid]['name'];?><!--</a> --><?php //} ?><!--<a href="group.php?gid=--><?php //echo $groupid;?><!--">更多 &rsaquo;</a></span>-->
+<!--<strong class="xs2"><a href="group.php?gid=--><?php //echo $groupid;?><!--">--><?php //echo $group['name'];?><!--</a></strong>--><?php //if($group['groupnum']) { ?><!--<span class="xg1">(--><?php //echo $group['groupnum'];?><!--)</span>--><?php //} ?>
+<!--</dt>-->
+<!--<dd>--><?php //if(is_array($lastupdategroup[$groupid])) foreach($lastupdategroup[$groupid] as $val) { ?><!--<a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--">--><?php //echo $val['name'];?><!--</a> &nbsp;&nbsp;-->
+<?php //} ?>
+<!--</dd>-->
+<!--</dl>-->
+<?php //} ?>
+<!--</div>-->
+<!--</div>-->
 <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
 <?php if(!empty($_G['setting']['pluginhooks']['index_bottom'])) echo $_G['setting']['pluginhooks']['index_bottom'];?>
 </div>
@@ -72,56 +134,71 @@
 <!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
 </div>
 <?php if(!empty($_G['setting']['pluginhooks']['index_side_top'])) echo $_G['setting']['pluginhooks']['index_side_top'];?>
-<?php if(helper_access::check_module('group')) { if(empty($gid) && empty($sgid)) { ?>
-<div class="bm">
-<div class="bm_h cl">
-<h2>创建<?php echo $_G['setting']['navs']['3']['navname'];?>步骤</h2>
-</div>
-<div class="bm_c">
-<ul id="g_guide" class="mbm">
-<li><label><strong class="xi1">创建<?php echo $_G['setting']['navs']['3']['navname'];?></strong><span class="xg1">创建自己的地盘</span></label></li>
-<li><label><strong class="xi1">个性设置</strong><span class="xg1">精心打造<?php echo $_G['setting']['navs']['3']['navname'];?>空间</span></label></li>
-<li><label><strong class="xi1">邀请好友</strong><span class="xg1">邀请好友加入我的<?php echo $_G['setting']['navs']['3']['navname'];?></span></label></li>
-<li><label><strong class="xi1"><?php echo $_G['setting']['navs']['3']['navname'];?>升级</strong><span class="xg1"><?php echo $_G['setting']['navs']['3']['navname'];?>积分升级赢得社区推荐</span></label></li>
-</ul>
-<?php if(helper_access::check_module('group')) { ?>
-<a href="forum.php?mod=group&amp;action=create" id="create_group_btn"><img src="<?php echo IMGDIR;?>/create_group.png" alt="创建<?php echo $_G['setting']['navs']['3']['navname'];?>" /></a>
-<?php } ?>
-</div>
-</div>
-<?php } else { ?>
-<div class="bm bw0">
-<div class="bm_c">
-<a href="forum.php?mod=group&amp;action=create&amp;fupid=<?php echo $fup;?>&amp;groupid=<?php echo $sgid;?>" id="create_group_btn"><img src="<?php echo IMGDIR;?>/create_group.png" alt="创建<?php echo $_G['setting']['navs']['3']['navname'];?>" /></a>
-</div>
-</div>
-<?php } } ?>
-<div class="drag">
-<!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
-</div>
-<?php if($topgrouplist) { ?>
-<div id="g_top" class="bm">
-<div class="bm_h cl">
-<h2><?php echo $_G['setting']['navs']['3']['navname'];?>积分排行</h2>
-</div>
-<div class="bm_c">
-<ol class="xl"><?php if(is_array($topgrouplist)) foreach($topgrouplist as $fid => $group) { ?><li class="top1"><span class="y xi2 xg1"> <?php echo $group['commoncredits'];?></span><a href="forum.php?mod=group&amp;fid=<?php echo $group['fid'];?>" title="<?php echo $group['name'];?>"><?php echo $group['name'];?></a></li>
-<?php } ?>
-</ol>
-</div>
-</div>
-<?php } ?>
+    <div class="bm sg-create-group sg-right-block">
+        <div class="sg-create-group-title"><h2>我要创建</h2></div>
+        <div class="sg-create-group-icon">
+            <a href="/forum.php?mod=group&action=create"><i class="fa fa-plus"></i></a>
+        </div>
+        <div class="sg-create-group-desp">创建一个属于自己的专属模块</div>
+    </div>
+
+    <div class="bm sg-hot-post-rank sg-right-block">
+        <div class="sg-hot-post-title"><h2>热帖排行</h2></div>
+        <div class="sg-hot-post-list">
+            <a class="sg-hot-post-item" href="#">穿越四大无人区</a>
+            <a class="sg-hot-post-item" href="#">西藏三日游</a>
+        </div>
+    </div>
+<?php //if(helper_access::check_module('group')) { if(empty($gid) && empty($sgid)) { ?>
+<!--<div class="bm">-->
+<!--<div class="bm_h cl">-->
+<!--<h2>创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--步骤</h2>-->
+<!--</div>-->
+<!--<div class="bm_c">-->
+<!--<ul id="g_guide" class="mbm">-->
+<!--<li><label><strong class="xi1">创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</strong><span class="xg1">创建自己的地盘</span></label></li>-->
+<!--<li><label><strong class="xi1">个性设置</strong><span class="xg1">精心打造--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--空间</span></label></li>-->
+<!--<li><label><strong class="xi1">邀请好友</strong><span class="xg1">邀请好友加入我的--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</span></label></li>-->
+<!--<li><label><strong class="xi1">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--升级</strong><span class="xg1">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--积分升级赢得社区推荐</span></label></li>-->
+<!--</ul>-->
+<?php //if(helper_access::check_module('group')) { ?>
+<!--<a href="forum.php?mod=group&amp;action=create" id="create_group_btn"><img src="--><?php //echo IMGDIR;?><!--/create_group.png" alt="创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--" /></a>-->
+<?php //} ?>
+<!--</div>-->
+<!--</div>-->
+<?php //} else { ?>
+<!--<div class="bm bw0">-->
+<!--<div class="bm_c">-->
+<!--<a href="forum.php?mod=group&amp;action=create&amp;fupid=--><?php //echo $fup;?><!--&amp;groupid=--><?php //echo $sgid;?><!--" id="create_group_btn"><img src="--><?php //echo IMGDIR;?><!--/create_group.png" alt="创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--" /></a>-->
+<!--</div>-->
+<!--</div>-->
+<?php //} } ?>
+<!--<div class="drag">-->
+    <!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
+<!--</div>-->
+<?php //if($topgrouplist) { ?>
+<!--<div id="g_top" class="bm">-->
+<!--<div class="bm_h cl">-->
+<!--<h2>--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--积分排行</h2>-->
+<!--</div>-->
+<!--<div class="bm_c">-->
+<!--<ol class="xl">--><?php //if(is_array($topgrouplist)) foreach($topgrouplist as $fid => $group) { ?><!--<li class="top1"><span class="y xi2 xg1"> --><?php //echo $group['commoncredits'];?><!--</span><a href="forum.php?mod=group&amp;fid=--><?php //echo $group['fid'];?><!--" title="--><?php //echo $group['name'];?><!--">--><?php //echo $group['name'];?><!--</a></li>-->
+<?php //} ?>
+<!--</ol>-->
+<!--</div>-->
+<!--</div>-->
+<?php //} ?>
 <div class="drag">
 <!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
 </div>
 <?php if(!empty($_G['setting']['pluginhooks']['index_side_bottom'])) echo $_G['setting']['pluginhooks']['index_side_bottom'];?>
 </div>
 </div>
-<div class="aaa-bbb">niaho</div>
 <script type="text/javascript">
     $(function () {
        $('.sg-group-slick').slick({
            autoplay: true,
+           arrows: false,
            dots: true,
            infinite: true,
            speed: 300,

+ 149 - 148
data/template/3_xj_event_post_event.tpl.php

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -1,5 +1,5 @@
-<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
-$return = <<<EOF
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
+$return = <<<EOF
 
 <style>
 .labeltitle {
@@ -60,7 +60,7 @@ color: #999999;
 </style>
 <script language="javascript">
 function getmb(selObj) {
-//实例化Ajax
+//实锟斤拷锟斤拷Ajax
 var ajax = null;
 if(window.XMLHttpRequest) {
 ajax = new XMLHttpRequest();
@@ -70,14 +70,14 @@ ajax = new ActiveXObject("Microsoft.XMLHTTP");
 return;
 }
 if(selObj.options[selObj.selectedIndex].value != '') {
-//需要POST的值,把每个变量都通过&来联接 
+//锟斤拷要POST锟斤拷值锟斤拷锟斤拷每锟斤拷锟斤拷锟斤拷锟斤拷通锟斤拷&锟斤拷锟斤拷锟斤拷 
 var postStr = "file=" + selObj.options[selObj.selectedIndex].value;
-//通过Get方式打开连接
+//通锟斤拷Get锟斤拷式锟斤拷锟斤拷锟斤拷
 ajax.open("POST", "plugin.php?id=xj_event:event_template", true);
 //ajax.setRequestHeader("Content-Type","text/html;charset=gb2312");
 ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
 ajax.send(postStr);
-//返回数据的处理函数
+//锟斤拷锟斤拷锟斤拷锟捷的达拷锟斤拷锟斤拷
 ajax.onreadystatechange = function() {
 if(ajax.readyState == 4 && ajax.status == 200) {
 var gainstr = ajax.responseText;
@@ -95,14 +95,14 @@ insertText(gainstr, gainstr.length, 0);
 <ul class="xjmenu">
 <li class="xjmenu_a" onclick="remenu(1)" id="xjmenu1">绾夸笅娲诲姩</li>
 <li class="xjmenu_b" onclick="remenu(2)" id="xjmenu2">绾夸笂娲诲姩</li>
-
-EOF;
- if($module_eventurl) { 
-$return .= <<<EOF
-<li class="xjmenu_b" onclick="remenu(3)" id="xjmenu3">澶栭摼娲诲姩</li>
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+if($module_eventurl) {
+    $return .= <<<EOF
+<li class="xjmenu_b" onclick="remenu(3)" id="xjmenu3">澶栭摼娲诲姩</li>
+EOF;
+}
+$return .= <<<EOF
 
 </ul>
 <input type="hidden" name="postclass" id="postclass" value="1" />
@@ -114,70 +114,70 @@ $return .= <<<EOF
 </dd>
 <dd id="offlineclass_dd">
 <label>娲诲姩绫诲瀷:<i>*</i></label>
-<select name="offlineclass" id="offlineclass" class="ps">
-EOF;
- if(is_array($offlineclass)) foreach($offlineclass as $key => $value) { 
-$return .= <<<EOF
+<select name="offlineclass" id="offlineclass" class="ps">
+EOF;
+if(is_array($offlineclass)) foreach($offlineclass as $key => $value) {
+    $return .= <<<EOF
 <option value="{$value['0']}">{$value['1']}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </select>
 </dd>
 <dd id="onlineclass_dd" style="display:none;">
 <label>娲诲姩绫诲瀷:<i>*</i></label>
-<select name="onlineclass" id="onlineclass" class="ps">
-EOF;
- if(is_array($onlineclass)) foreach($onlineclass as $key => $value) { 
-$return .= <<<EOF
+<select name="onlineclass" id="onlineclass" class="ps">
+EOF;
+if(is_array($onlineclass)) foreach($onlineclass as $key => $value) {
+    $return .= <<<EOF
 <option value="{$value['0']}">{$value['1']}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </select>
 </dd>
 
-
-EOF;
- if(!$_G['cache']['plugin']['xj_event']['event_city']) { 
-$return .= <<<EOF
+
+EOF;
+if(!$_G['cache']['plugin']['xj_event']['event_city']) {
+    $return .= <<<EOF
 
 <dd id="citys_dd">
 <label>娲诲姩鍦板尯:</label>
-<select name="citys" id="citys" class="ps">
-EOF;
- if(is_array($citys)) foreach($citys as $key => $value) { 
-$return .= <<<EOF
+<select name="citys" id="citys" class="ps">
+EOF;
+    if(is_array($citys)) foreach($citys as $key => $value) {
+        $return .= <<<EOF
 <option value="{$value}">{$value}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+    }
+    $return .= <<<EOF
 
 </select>
 </dd>
-
-EOF;
- } else { 
-$return .= <<<EOF
+
+EOF;
+} else {
+    $return .= <<<EOF
 
 <dd id="citys_dd">
 <label>娲诲姩鍦板尯:</label>
 
 <select id="shen" onChange="goGo(this.options.selectedIndex);">
-<option value="" selected>{$lang_province}</option>
-EOF;
- if(is_array($province)) foreach($province as $key => $value) { 
-$return .= <<<EOF
+<option value="" selected>{$lang_province}</option>
+EOF;
+    if(is_array($province)) foreach($province as $key => $value) {
+        $return .= <<<EOF
 <option value="{$value['name']}">{$value['name']}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+    }
+    $return .= <<<EOF
 
 </select>
 
@@ -193,15 +193,15 @@ var group = new Array(groups);
 for(i = 0; i < groups; i++){
 group[i] = new Array();
 }
-group[0][0] = new Option("{$lang_city}", "");
-EOF;
- if(is_array($city)) foreach($city as $key => $value) { 
-$return .= <<<EOF
+group[0][0] = new Option("{$lang_city}", "");
+EOF;
+    if(is_array($city)) foreach($city as $key => $value) {
+        $return .= <<<EOF
 group[{$value['upid']}][{$value['displayorder']}] = new Option("{$value['name']}", "{$value['name']}");
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+    }
+    $return .= <<<EOF
 
 function goGo(x) {
 var tempff = document.getElementById("city");
@@ -213,10 +213,10 @@ tempff.options[i] = new Option(group[x][i].text, group[x][i].value);
 tempff.options[0].selected = true;
 }
 </script>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 
 <dd id="event_address_dd">
@@ -235,29 +235,29 @@ $return .= <<<EOF
 <label>绉�垎鏀�粯:</label>
 <input type="text" name="use_extcredits_num" id="use_extcredits_num" value="" class="px" />
 <select name="use_extcredits" id="use_extcredits" class="ps">
-<option value=""> 璇烽€夋嫨 </option>
-EOF;
- if(is_array($extcredits)) foreach($extcredits as $key => $value) { 
-$return .= <<<EOF
+<option value=""> 璇烽€夋嫨 </option>
+EOF;
+if(is_array($extcredits)) foreach($extcredits as $key => $value) {
+    $return .= <<<EOF
 <option value="{$key}">{$value['title']}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </select>
 <span>鎶ュ悕娲诲姩闇€瑕佹敮浠樼殑绉�垎锛屼笉鍙�笌浜烘皯甯佺粍鍚堟敮浠�</span></dd>
 <dd id="use_cost_dd">
 <label>姣忎汉璐圭敤:</label>
-<input type="text" name="use_cost" id="use_cost" value="0" class="px" /> <span>鍏嶈垂璇峰~0</span> <input type="checkbox" name="eventpay" id="eventpay" class="pc" value="1" /> 鍚�敤鍦ㄧ嚎鏀�粯 <input type="checkbox" name="eventaa" id="eventaa" class="pc" value="1" 
-EOF;
- if($setting['eventaa']) { 
-$return .= <<<EOF
+<input type="text" name="use_cost" id="use_cost" value="0" class="px" /> <span>鍏嶈垂璇峰~0</span> <input type="checkbox" name="eventpay" id="eventpay" class="pc" value="1" /> 鍚�敤鍦ㄧ嚎鏀�粯 <input type="checkbox" name="eventaa" id="eventaa" class="pc" value="1" 
+EOF;
+if($setting['eventaa']) {
+    $return .= <<<EOF
 checked
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 /> AA (璐圭敤涓嶇‘瀹氭椂閫夋嫨)
 </dd>
 
@@ -284,45 +284,45 @@ $('gengduofeiyong').outerHTML = '<p style=" padding:5px 0px;">鍚嶇О锛�<input ty
 <input type="text" name="activityexpiration" id="activityexpiration" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="" tabindex="1" />
 <span>娲诲姩鎶ュ悕鏃堕棿娈碉紝鍦ㄦ椂闂存�浠ュ�灏辨棤娉曟姤鍚�</span></dd>
 
-
-EOF;
- if($_G['groupid']==1 ) { 
-$return .= <<<EOF
+
+EOF;
+if($_G['groupid']==1 ) {
+    $return .= <<<EOF
 
 <dd id="">
 <label>娲诲姩鎺掑簭:<i>*</i></label>
 <input type="text" name="eventorder" id="eventorder" class="px" value="0" />
 <span>鏁板€艰秺澶ц秺闈犲墠</span>
 </dd>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 
 <dd id="userfield_dd">
-<label>蹇呭~璧勬枡椤�:</label>
-EOF;
- if(is_array($userfield)) foreach($userfield as $key => $val) { 
-$return .= <<<EOF
-<input type="checkbox" name="userfield[]" id="userfield_{$key}" class="pc" value="{$key}" 
-EOF;
- if($activity[ 'ufield'][ 'userfield'] && in_array($key, $activity[ 'ufield'][ 'userfield'])) { 
-$return .= <<<EOF
- checked="checked" 
-EOF;
- } 
-$return .= <<<EOF
+<label>蹇呭~璧勬枡椤�:</label>
+EOF;
+if(is_array($userfield)) foreach($userfield as $key => $val) {
+    $return .= <<<EOF
+<input type="checkbox" name="userfield[]" id="userfield_{$key}" class="pc" value="{$key}" 
+EOF;
+    if($activity[ 'ufield'][ 'userfield'] && in_array($key, $activity[ 'ufield'][ 'userfield'])) {
+        $return .= <<<EOF
+ checked="checked" 
+EOF;
+    }
+    $return .= <<<EOF
  /> {$val}
-
-EOF;
- } if(is_array($myuserfield)) foreach($myuserfield as $val) { 
-$return .= <<<EOF
+
+EOF;
+} if(is_array($myuserfield)) foreach($myuserfield as $val) {
+    $return .= <<<EOF
 <input type="checkbox" name="myuserfield[]" id="myuserfield_{$val['id']}" class="pc" value="{$val['id']}" />{$val['title']}
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 
 <input type="checkbox" name="userfield[]" checked="checked" id="userfield_message" class="pc" value="bmmessage" /> 鐣欒█ </dd>
@@ -338,27 +338,27 @@ $return .= <<<EOF
 <dd id="event_template_dd">
 <label>娲诲姩妯℃澘:</label>
 <select name="event_template" id="event_template" class="ps" onchange="getmb(this);">
-<option value="">閫夋嫨妯℃澘</option>
-EOF;
- if(is_array($event_template)) foreach($event_template as $key => $value) { 
-$return .= <<<EOF
+<option value="">閫夋嫨妯℃澘</option>
+EOF;
+if(is_array($event_template)) foreach($event_template as $key => $value) {
+    $return .= <<<EOF
 <option value="{$value['1']}">{$value['0']}</option>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </select>
-
-EOF;
- if($_G['groupid']==1) { 
-$return .= <<<EOF
+
+EOF;
+if($_G['groupid']==1) {
+    $return .= <<<EOF
 
 <a href="plugin.php?id=xj_event:event_template&amp;act=manage" target="_blank" style="color:#0066CC;">妯℃澘绠$悊</a>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </dd>
 <dd id="eventzy_enable_dd">
@@ -372,26 +372,26 @@ $return .= <<<EOF
 <option value="鍒嗕韩">鍒嗕韩</option>
 <option value="璁板綍">璁板綍</option>
 </select>
-
-EOF;
- if($_G['cache']['plugin']['xj_event']['homeword_forum']) { 
-$return .= <<<EOF
+
+EOF;
+if($_G['cache']['plugin']['xj_event']['homeword_forum']) {
+    $return .= <<<EOF
 
 <input name="eventzy_fid" type="hidden" value="{$_G['cache']['plugin']['xj_event']['homeword_forum']}" />
-
-EOF;
- } else { 
-$return .= <<<EOF
+
+EOF;
+} else {
+    $return .= <<<EOF
 
 鍙戣〃鐗堝潡:
 <select name="eventzy_fid" id="eventzy_fid" class="ps">
 <option value="0" selected="selected">閫夋嫨鐗堝潡...</option>
 {$forumlist}
 </select>
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 
 鐢ㄦ埛鍙戣〃浣滀笟鏁伴檺鍒�:<input type="text" name="eventzy_xz" class="px" id="eventzy_xz" size="5" />
@@ -550,6 +550,7 @@ ATTACHORIMAGE = 1;
 
 function activityaid_upload(aid, url) {
 $('activityaid_url').value = url;
+
 updatecinemaattach(aid, url, 'data/attachment/forum');
 }
 EXTRAFUNC['validator']['special'] = 'validateextra';
@@ -590,19 +591,19 @@ return false;
 return true;
 }
 
-
-EOF;
- if($_GET['postclass']==2) { 
-$return .= <<<EOF
+
+EOF;
+if($_GET['postclass']==2) {
+    $return .= <<<EOF
 
 remenu(2);
-
-EOF;
- } 
-$return .= <<<EOF
+
+EOF;
+}
+$return .= <<<EOF
 
 </script>
 
-
-EOF;
+
+EOF;
 ?>

+ 1 - 0
forum.php

xqd
@@ -68,6 +68,7 @@ runhooks();
 
 $navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['forum']);
 $_G['setting']['threadhidethreshold'] = 1;
+
 require DISCUZ_ROOT.'./source/module/forum/forum_'.$mod.'.php';
 
 ?>

+ 0 - 1
source/include/post/post_newthread.php

xqd
@@ -135,7 +135,6 @@ if(!submitcheck('topicsubmit', 0, $seccodecheck, $secqaacheck)) {
 
 	!isset($attachs['unused']) && $attachs['unused'] = array();
 	!isset($imgattachs['unused']) && $imgattachs['unused'] = array();
-
 	getgpc('infloat') ? include template('forum/post_infloat') : include template('forum/post');
 
 } else {

+ 1 - 1
source/module/forum/forum_group.php

xqd
@@ -360,7 +360,7 @@ if($action == 'index') {
 		}
 		showmessage('group_create_succeed', "forum.php?mod=group&action=manage&fid=$newfid", array(), array('showdialog' => 1, 'showmsg' => true, 'locationtime' => true));
 	}
-
+    $_G['setting']['navs']['3']['navname'] = '俱乐部';
 	include template('diy:group/group:'.$_G['fid']);
 
 } elseif($action == 'manage'){

+ 0 - 1
source/plugin/xj_event/event_thread.class.php

xqd
@@ -74,7 +74,6 @@ class threadplugin_xj_event {
 				$i++;
 			}
 		};
-
 		include  template('xj_event:post_event');
 		return $return;
 	}

+ 1 - 0
static/js/forum_post.js

xqd
@@ -549,6 +549,7 @@ function uploadWindowload() {
 function uploadWindow(recall, type) {
 	var type = isUndefined(type) ? 'image' : type;
 	UPLOADWINRECALL = recall;
+
 	showWindow('upload', 'forum.php?mod=misc&action=upload&fid=' + fid + '&type=' + type, 'get', 0, {'zindex':601});
 }