MakeBq.php 136 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. $doobject=(int)$_GET['doobject'];
  19. $selfdoobject=(int)$_GET['selfdoobject'];
  20. $addselfinfo=(int)$_GET['addselfinfo'];
  21. $selfinfooption='';
  22. $parentclass=(int)$_GET['parentclass'];
  23. $addparentclass='';
  24. if($parentclass)
  25. {
  26. $addparentclass='父';
  27. }
  28. //操作对象
  29. if($doobject==2)//按栏目
  30. {
  31. //操作类型
  32. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  33. <tr>
  34. <td width="24%">操作类型:</td>
  35. <td width="76%"><select name="dotype" id="select">
  36. <option value="0">栏目最新信息</option>
  37. <option value="1">栏目点击排行</option>
  38. <option value="2">栏目推荐信息</option>
  39. <option value="9">栏目评论排行</option>
  40. <option value="12">栏目头条信息</option>
  41. <option value="15">栏目下载排行</option>
  42. </select></td>
  43. </tr>
  44. </table>';
  45. //选择栏目
  46. $fcfile='../../data/fc/ListEnews.php';
  47. $class="<script src=../../data/fc/cmsclass.js></script>";
  48. if(!file_exists($fcfile))
  49. {$class=ShowClass_AddClass("",0,0,"|-",0,0);}
  50. if($addselfinfo==1)
  51. {
  52. }
  53. elseif($addselfinfo==2)//一级栏目+当前栏目
  54. {
  55. $selfinfooption='<option value="\'selfinfo\'">当前栏目</option><option value="\'0\'">一级栏目</option>';
  56. }
  57. elseif($addselfinfo==3)//一级栏目
  58. {
  59. $selfinfooption='<option value="\'0\'">一级栏目</option>';
  60. }
  61. elseif($addselfinfo==4)//不限栏目
  62. {
  63. $selfinfooption='<option value="0">不限栏目</option>';
  64. }
  65. else
  66. {
  67. $selfinfooption='<option value="\'selfinfo\'">当前栏目</option>';
  68. }
  69. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  70. <tr>
  71. <td width="24%">选择'.$addparentclass.'栏目:</td>
  72. <td width="76%"><select name="classid" id="select2">
  73. '.$selfinfooption.'
  74. '.$class.'
  75. </select></td>
  76. </tr>
  77. </table>';
  78. }
  79. elseif($doobject==3)//按专题
  80. {
  81. //操作类型
  82. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  83. <tr>
  84. <td width="24%">操作类型:</td>
  85. <td width="76%"><select name="dotype" id="select">
  86. <option value="6">专题最新信息</option>
  87. <option value="7">专题点击排行</option>
  88. <option value="8">专题推荐信息</option>
  89. <option value="11">专题评论排行</option>
  90. <option value="14">专题头条信息</option>
  91. <option value="17">专题下载排行</option>
  92. </select></td>
  93. </tr>
  94. </table>';
  95. //选择专题
  96. $ztclass='';
  97. $ztsql=$empire->query("select ztid,ztname from {$dbtbpre}enewszt order by ztid desc");
  98. while($ztr=$empire->fetch($ztsql))
  99. {
  100. $ztclass.="<option value='".$ztr['ztid']."'>".$ztr['ztname']."</option>";
  101. }
  102. if($addselfinfo==1)
  103. {
  104. }
  105. else
  106. {
  107. $selfinfooption='<option value="\'selfinfo\'">当前专题</option>';
  108. }
  109. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  110. <tr>
  111. <td width="24%">选择专题:</td>
  112. <td width="76%"><select name="classid" id="select2">
  113. '.$selfinfooption.'
  114. '.$ztclass.'
  115. </select></td>
  116. </tr>
  117. </table>';
  118. }
  119. elseif($doobject==4)//按数据表
  120. {
  121. //操作类型
  122. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  123. <tr>
  124. <td width="24%">操作类型:</td>
  125. <td width="76%"><select name="dotype" id="select">
  126. <option value="18">表最新信息</option>
  127. <option value="19">表点击排行</option>
  128. <option value="20">表推荐信息</option>
  129. <option value="21">表评论排行</option>
  130. <option value="22">表头条信息</option>
  131. <option value="23">表下载排行</option>
  132. </select></td>
  133. </tr>
  134. </table>';
  135. //选择数据表
  136. $tb='';
  137. $tbsql=$empire->query("select tbname,tname from {$dbtbpre}enewstable order by tid");
  138. while($tbr=$empire->fetch($tbsql))
  139. {
  140. $tb.="<option value=\"'".$tbr[tbname]."'\">".$tbr[tname]."</option>";
  141. }
  142. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  143. <tr>
  144. <td width="24%">选择数据表:</td>
  145. <td width="76%"><select name="classid" id="select2">
  146. '.$tb.'
  147. </select></td>
  148. </tr>
  149. </table>';
  150. }
  151. elseif($doobject==5)//按标题分类
  152. {
  153. //操作类型
  154. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  155. <tr>
  156. <td width="24%">操作类型:</td>
  157. <td width="76%"><select name="dotype" id="select">
  158. <option value="25">标题分类最新信息</option>
  159. <option value="26">标题分类点击排行</option>
  160. <option value="27">标题分类推荐信息</option>
  161. <option value="28">标题分类评论排行</option>
  162. <option value="29">标题分类头条信息</option>
  163. <option value="30">标题分类下载排行</option>
  164. </select></td>
  165. </tr>
  166. </table>';
  167. //选择标题分类
  168. $tts='';
  169. $ttsql=$empire->query("select typeid,tname from {$dbtbpre}enewsinfotype order by typeid");
  170. while($ttr=$empire->fetch($ttsql))
  171. {
  172. $tts.="<option value='$ttr[typeid]'>$ttr[tname]</option>";
  173. }
  174. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  175. <tr>
  176. <td width="24%">选择标题分类:</td>
  177. <td width="76%"><select name="classid" id="select2">
  178. '.$tts.'
  179. </select></td>
  180. </tr>
  181. </table>';
  182. }
  183. elseif($doobject==6)//按SQL
  184. {
  185. //操作类型
  186. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  187. <tr>
  188. <td width="24%">操作类型:</td>
  189. <td width="76%"><select name="dotype" id="select">
  190. <option value="24">SQL查询</option>
  191. </select></td>
  192. </tr>
  193. </table>';
  194. //选择SQL
  195. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  196. <tr>
  197. <td width="24%">选择:</td>
  198. <td width="76%"><select name="classid" id="select2">
  199. <option value="\'sql语句\'">SQL查询</option>
  200. </select></td>
  201. </tr>
  202. </table>';
  203. }
  204. else//按默认表
  205. {
  206. //操作类型
  207. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  208. <tr>
  209. <td width="24%">操作类型:</td>
  210. <td width="76%"><select name="dotype" id="select">
  211. <option value="3">默认表最新信息</option>
  212. <option value="4">默认表点击排行</option>
  213. <option value="5">默认表推荐信息</option>
  214. <option value="10">默认表评论排行</option>
  215. <option value="13">默认表头条信息</option>
  216. <option value="16">默认表下载排行</option>
  217. </select></td>
  218. </tr>
  219. </table>';
  220. //选择SQL
  221. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  222. <tr>
  223. <td width="24%">选择:</td>
  224. <td width="76%"><select name="classid" id="select2">
  225. <option value="0">默认表('.$public_r[tbname].')</option>
  226. </select></td>
  227. </tr>
  228. </table>';
  229. }
  230. //标签模板
  231. $bqname=RepPostStr($_GET['bqname'],1);
  232. if(empty($bqname))
  233. {
  234. $bqname='ecmsinfo';
  235. }
  236. $mydotype=RepPostStr($_GET['mydotype'],1);
  237. $defchangeobject=RepPostStr($_GET['defchangeobject'],1);
  238. if($defchangeobject==1)
  239. {
  240. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  241. <tr>
  242. <td width="24%">选择:</td>
  243. <td width="76%"><select name="classid" id="select2">
  244. <option value="\'\'">默认</option>
  245. </select></td>
  246. </tr>
  247. </table>';
  248. }
  249. if($bqname=='ecmsinfo'||$bqname=='listsonclass'||$bqname=='otherlink'||$bqname=='eshowphoto'||$bqname=='tagsinfo'||$bqname=='showclasstemp'||$bqname=='eshowzt'||$bqname=='listshowclass'||$bqname=='gbookinfo'||$bqname=='showplinfo')
  250. {
  251. $bqtemp='';
  252. $bqtempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsbqtemp")." order by tempid");
  253. while($bqtempr=$empire->fetch($bqtempsql))
  254. {
  255. $bqtemp.="<option value='".$bqtempr[tempid]."'>".$bqtempr[tempname]."</option>";
  256. }
  257. }
  258. //当前使用的模板组
  259. $thegid=GetDoTempGid();
  260. ?>
  261. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  262. <html>
  263. <head>
  264. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  265. <title>帝国网站管理系统--标签生成</title>
  266. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  267. <script language="javascript">
  268. window.resizeTo(800,600);
  269. window.focus();
  270. </script>
  271. <script>
  272. //返回附加SQL
  273. function ReturnAddSql(addsql,orderby){
  274. var addstr='';
  275. var r;
  276. var yh="'";
  277. if(addsql!=''||orderby!='')
  278. {
  279. r=addsql.split("'");
  280. if(r.length!=1)
  281. {
  282. yh='"';
  283. }
  284. if(addsql!='')
  285. {
  286. addstr+=','+yh+addsql+yh;
  287. }
  288. else
  289. {
  290. addstr+=",''";
  291. }
  292. if(orderby!='')
  293. {
  294. addstr+=",'"+orderby+"'";
  295. }
  296. }
  297. return addstr;
  298. }
  299. //返回是否加单引号
  300. function ReturnAddYh(tids){
  301. var r;
  302. if(tids=='')
  303. {
  304. return "''";
  305. }
  306. r=tids.split(",");
  307. if(r.length!=1)
  308. {
  309. tids="'"+tids+"'";
  310. }
  311. return tids;
  312. }
  313. </script>
  314. </head>
  315. <body>
  316. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  317. <tr>
  318. <td height="25">选择标签:
  319. <select name="bq" id="bq" style= "font-size:16px;" onchange="if(this.options[this.selectedIndex].value!=''){self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname='+this.options[this.selectedIndex].value}">
  320. <option value="" style="background-color:#AFCFF3">信息调用标签</option>
  321. <option value="ecmsinfo"<?=$bqname=='ecmsinfo'?' selected':''?>>&nbsp; &gt; 万能标签调用 (ecmsinfo)</option>
  322. <option value="eloop"<?=$bqname=='eloop'?' selected':''?>>&nbsp; &gt; 灵动标签 (e:loop)</option>
  323. <option value="eindexloop"<?=$bqname=='eindexloop'?' selected':''?>>&nbsp; &gt; 索引灵动标签 (e:indexloop)</option>
  324. <option value="phomenews"<?=$bqname=='phomenews'?' selected':''?>>&nbsp; &gt; 文字调用标签 (phomenews)</option>
  325. <option value="phomenewspic"<?=$bqname=='phomenewspic'?' selected':''?>>&nbsp; &gt; 图文信息调用[标题图片的信息] (phomenewspic)</option>
  326. <option value="phomeflashpic"<?=$bqname=='phomeflashpic'?' selected':''?>>&nbsp; &gt; FLASH幻灯信息调用 (phomeflashpic)</option>
  327. <option value="listsonclass&doobject=2&addselfinfo=2"<?=$bqname=='listsonclass'?' selected':''?>>&nbsp; &gt; 循环子栏目数据标签 (listsonclass)</option>
  328. <option value="otherlink&defchangeobject=1"<?=$bqname=='otherlink'?' selected':''?>>&nbsp; &gt; 相关链接标签 (otherlink)</option>
  329. <option value="tagsinfo"<?=$bqname=='tagsinfo'?' selected':''?>>&nbsp; &gt; 调用TAGS的信息标签 (tagsinfo)</option>
  330. <option value="spinfo"<?=$bqname=='spinfo'?' selected':''?>>&nbsp; &gt; 调用碎片的信息标签 (spinfo)</option>
  331. <option value="showtags"<?=$bqname=='showtags'?' selected':''?>>&nbsp; &gt; 调用TAGS标签 (showtags)</option>
  332. <option value="totaldata&doobject=2&addselfinfo=1"<?=$bqname=='totaldata'?' selected':''?>>&nbsp; &gt; 网站信息统计 (totaldata)</option>
  333. <option value="eshowphoto"<?=$bqname=='eshowphoto'?' selected':''?>>&nbsp; &gt; 图库模型分页标签 (eshowphoto)</option>
  334. <option value="showsearch&doobject=2&addselfinfo=4"<?=$bqname=='showsearch'?' selected':''?>>&nbsp; &gt; 搜索关键字调用标签 (showsearch)</option>
  335. <option value="" style="background-color:#AFCFF3">栏目调用标签</option>
  336. <option value="showclasstemp&doobject=2&addselfinfo=2&parentclass=1"<?=$bqname=='showclasstemp'?' selected':''?>>&nbsp; &gt; 带模板的栏目导航标签 (showclasstemp)</option>
  337. <option value="eshowzt"<?=$bqname=='eshowzt'?' selected':''?>>&nbsp; &gt; 专题调用标签 (eshowzt)</option>
  338. <option value='listshowclass&doobject=2&addselfinfo=2&parentclass=1'<?=$bqname=='listshowclass'?' selected':''?>>&nbsp; &gt; 循环栏目导航标签 (listshowclass)</option>
  339. <option value="" style="background-color:#AFCFF3">非信息调用标签</option>
  340. <option value="phomead"<?=$bqname=='phomead'?' selected':''?>>&nbsp; &gt; 广告调用标签 (phomead)</option>
  341. <option value="phomevote"<?=$bqname=='phomevote'?' selected':''?>>&nbsp; &gt; 投票调用标签 (phomevote)</option>
  342. <option value="phomelink"<?=$bqname=='phomelink'?' selected':''?>>&nbsp; &gt; 友情链接调用标签 (phomelink)</option>
  343. <option value="gbookinfo"<?=$bqname=='gbookinfo'?' selected':''?>>&nbsp; &gt; 留言板调用标签 (gbookinfo)</option>
  344. <option value="showplinfo"<?=$bqname=='showplinfo'?' selected':''?>>&nbsp; &gt; 评论调用标签 (showplinfo)</option>
  345. <option value="echocheckbox"<?=$bqname=='echocheckbox'?' selected':''?>>&nbsp; &gt; 复选字段输出内容标签 (echocheckbox)</option>
  346. <option value="" style="background-color:#AFCFF3">会员相关调用</option>
  347. <option value="ShowMemberInfo"<?=$bqname=='ShowMemberInfo'?' selected':''?>>会员信息调用函数 (ShowMemberInfo)</option>
  348. <option value="ListMemberInfo"<?=$bqname=='ListMemberInfo'?' selected':''?>>会员列表调用函数 (ListMemberInfo)</option>
  349. <option value="spaceeloop"<?=$bqname=='spaceeloop'?' selected':''?>>会员空间信息标签调用 (spaceeloop)</option>
  350. <option value="" style="background-color:#AFCFF3">其它标签</option>
  351. <option value="includefile"<?=$bqname=='includefile'?' selected':''?>>&nbsp; &gt; 引用文件标签 (includefile)</option>
  352. <option value="readhttp"<?=$bqname=='readhttp'?' selected':''?>>&nbsp; &gt; 读取远程页面 (readhttp)</option>
  353. </select></td>
  354. </tr>
  355. </table>
  356. <br>
  357. <?php
  358. if($bqname=='ecmsinfo')
  359. {
  360. ?>
  361. <script>
  362. //返回标签
  363. function ShowBqFun(){
  364. var obj=document.bqform;
  365. var bqstr;
  366. var addstr='';
  367. var fclassid=obj.classid.value;
  368. var fline=obj.line.value;
  369. var ftitlelen=obj.titlelen.value;
  370. var fshowclass=obj.showclass.value;
  371. var fdotype=obj.dotype.value;
  372. var ftempid=obj.tempid.value;
  373. var fispic=obj.ispic.value;
  374. var faddsql=obj.addsql.value;
  375. var forderby=obj.orderby.value;
  376. addstr=ReturnAddSql(faddsql,forderby);
  377. bqstr="[ecmsinfo]"+fclassid+","+fline+","+ftitlelen+","+fshowclass+","+fdotype+","+ftempid+","+fispic+addstr+"[/ecmsinfo]";
  378. obj.bqshow.value=bqstr;
  379. }
  380. </script>
  381. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  382. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  383. <?=$ecms_hashur['eform']?>
  384. <tr>
  385. <td height="25" colspan="2" class="header">ecmsinfo标签生成
  386. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  387. </tr>
  388. <tr>
  389. <td height="25" colspan="2">选择调用对象:
  390. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&doobject='+this.options[this.selectedIndex].value">
  391. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  392. <?=$public_r['tbname']?>
  393. )</option>
  394. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  395. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  396. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  397. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  398. </select> </td>
  399. </tr>
  400. <tr>
  401. <td width="50%" height="25" bgcolor="#FFFFFF">
  402. <?=$dotype?>
  403. </td>
  404. <td width="50%" bgcolor="#FFFFFF">
  405. <?=$changeobject?>
  406. </td>
  407. </tr>
  408. <tr>
  409. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  410. <tr>
  411. <td width="24%">调用数量:</td>
  412. <td width="76%"><input name="line" type="text" id="line3" value="10"></td>
  413. </tr>
  414. </table></td>
  415. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  416. <tr>
  417. <td width="24%">标签模板:</td>
  418. <td width="76%"><select name="tempid" id="select3">
  419. <?=$bqtemp?>
  420. </select>
  421. <input type="button" name="Submit6222323" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  422. </tr>
  423. </table></td>
  424. </tr>
  425. <tr>
  426. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  427. <tr>
  428. <td width="24%">标题截取字数:</td>
  429. <td width="76%"><input name="titlelen" type="text" id="titlelen2" value="32">
  430. </td>
  431. </tr>
  432. </table></td>
  433. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  434. <tr>
  435. <td width="24%">显示栏目名:</td>
  436. <td width="76%"><select name="showclass" id="showclass">
  437. <option value="0">否</option>
  438. <option value="1">是</option>
  439. </select> <font color="#666666">(标签模板要加[!--class.name--])</font>
  440. </td>
  441. </tr>
  442. </table></td>
  443. </tr>
  444. <tr>
  445. <td height="25" bgcolor="#FFFFFF">只调用有标题图片的信息:
  446. <select name="ispic" id="ispic">
  447. <option value="0">不限</option>
  448. <option value="1">是</option>
  449. </select></td>
  450. <td bgcolor="#FFFFFF">&nbsp;</td>
  451. </tr>
  452. <tr>
  453. <td height="25" colspan="2">选项设置</td>
  454. </tr>
  455. <tr>
  456. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  457. <tr>
  458. <td width="24%">附加SQL条件:</td>
  459. <td width="76%"><input name="addsql" type="text" id="addsql2"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  460. <option value=""> -- 预选项 -- </option>
  461. <option value="isgood=1">1级推荐</option>
  462. <option value="firsttitle=1">1级头条</option>
  463. <option value="field='值'">字段等于某值</option>
  464. </select></td>
  465. </tr>
  466. </table></td>
  467. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  468. <tr>
  469. <td width="24%">显示排序:</td>
  470. <td width="76%"><input name="orderby" type="text" id="orderby2"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  471. <option value=""> -- 预选项 -- </option>
  472. <option value="newstime DESC">按发布时间降序排序</option>
  473. <option value="newstime ASC">按发布时间升序排序</option>
  474. <option value="id DESC">按ID降序排序</option>
  475. <option value="onclick DESC">按点击率降序排序</option>
  476. <option value="totaldown DESC">按下载数降序排序</option>
  477. <option value="plnum DESC">按评论数降序排序</option>
  478. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  479. </select></td>
  480. </tr>
  481. </table></td>
  482. </tr>
  483. <tr>
  484. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  485. </td>
  486. </tr>
  487. <tr>
  488. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#ecmsinfo" target="_blank" title="查看详细标签语法">[ecmsinfo]栏目ID/标题分类ID,显示条数,标题截取数,是否显示栏目名,操作类型,模板ID,只显示有标题图片,附加SQL条件,显示排序[/ecmsinfo]</a></font></td>
  489. </tr>
  490. <tr>
  491. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  492. <tr>
  493. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  494. </tr>
  495. <tr>
  496. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  497. </tr>
  498. </table></td>
  499. </tr>
  500. </table>
  501. </form>
  502. <?php
  503. }
  504. elseif($bqname=='eloop')
  505. {
  506. ?>
  507. <script>
  508. //返回标签
  509. function ShowBqFun(){
  510. var obj=document.bqform;
  511. var bqstr;
  512. var addstr='';
  513. var fclassid=obj.classid.value;
  514. var fline=obj.line.value;
  515. var fdotype=obj.dotype.value;
  516. var fispic=obj.ispic.value;
  517. var faddsql=obj.addsql.value;
  518. var forderby=obj.orderby.value;
  519. addstr=ReturnAddSql(faddsql,forderby);
  520. bqstr="[e:loop={"+fclassid+","+fline+","+fdotype+","+fispic+addstr+"}]\r\n<a href=\"<?="<?=\$bqsr['titleurl']?>"?>\" target=\"_blank\"><?="<?=\$bqr['title']?>"?></a> <br>\r\n[/e:loop]";
  521. obj.bqshow.value=bqstr;
  522. }
  523. </script>
  524. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  525. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="eloop">
  526. <?=$ecms_hashur['eform']?>
  527. <tr>
  528. <td height="25" colspan="2" class="header">灵动标签(e:loop)生成
  529. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  530. </tr>
  531. <tr>
  532. <td height="25" colspan="2">选择调用对象:
  533. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&doobject='+this.options[this.selectedIndex].value">
  534. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  535. <?=$public_r['tbname']?>
  536. )</option>
  537. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  538. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  539. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  540. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  541. </select> </td>
  542. </tr>
  543. <tr>
  544. <td width="50%" height="25" bgcolor="#FFFFFF">
  545. <?=$dotype?>
  546. </td>
  547. <td width="50%" bgcolor="#FFFFFF">
  548. <?=$changeobject?>
  549. </td>
  550. </tr>
  551. <tr>
  552. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  553. <tr>
  554. <td width="24%">调用数量:</td>
  555. <td width="76%"><input name="line" type="text" id="line" value="10"></td>
  556. </tr>
  557. </table></td>
  558. <td bgcolor="#FFFFFF">只调用有标题图片的信息:
  559. <select name="ispic" id="select6">
  560. <option value="0">不限</option>
  561. <option value="1">是</option>
  562. </select> </td>
  563. </tr>
  564. <tr>
  565. <td height="25" colspan="2">选项设置</td>
  566. </tr>
  567. <tr>
  568. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  569. <tr>
  570. <td width="24%">附加SQL条件:</td>
  571. <td width="76%"><input name="addsql" type="text" id="addsql"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  572. <option value=""> -- 预选项 -- </option>
  573. <option value="isgood=1">1级推荐</option>
  574. <option value="firsttitle=1">1级头条</option>
  575. <option value="field='值'">字段等于某值</option>
  576. </select></td>
  577. </tr>
  578. </table></td>
  579. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  580. <tr>
  581. <td width="24%">显示排序:</td>
  582. <td width="76%"><input name="orderby" type="text" id="orderby"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  583. <option value=""> -- 预选项 -- </option>
  584. <option value="newstime DESC">按发布时间降序排序</option>
  585. <option value="newstime ASC">按发布时间升序排序</option>
  586. <option value="id DESC">按ID降序排序</option>
  587. <option value="onclick DESC">按点击率降序排序</option>
  588. <option value="totaldown DESC">按下载数降序排序</option>
  589. <option value="plnum DESC">按评论数降序排序</option>
  590. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  591. </select></td>
  592. </tr>
  593. </table></td>
  594. </tr>
  595. <tr>
  596. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit3" value="输出标签" onclick="ShowBqFun();">
  597. </td>
  598. </tr>
  599. <tr>
  600. <td height="25" colspan="2" bgcolor="#FFFFFF"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#eloop" target="_blank" title="查看详细标签语法">[e:loop={栏目ID/标题分类ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序}]<br>
  601. 模板代码内容<br>
  602. [/e:loop]</a></td>
  603. </tr>
  604. <tr>
  605. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  606. <tr>
  607. <td><textarea name="bqshow" cols="65" rows="12" id="bqshow" style="width:100%"></textarea></td>
  608. </tr>
  609. <tr>
  610. <td height="25"><input type="button" name="Submit22" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  611. </tr>
  612. </table></td>
  613. </tr>
  614. </table>
  615. </form>
  616. <?php
  617. }
  618. elseif($bqname=='eindexloop')
  619. {
  620. if($selfdoobject==9)//专题子类
  621. {
  622. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  623. <tr>
  624. <td width="24%">操作类型:</td>
  625. <td width="76%"><select name="dotype" id="select">
  626. <option value="4">专题子类最新信息</option>
  627. <option value="5">专题子类最早信息</option>
  628. <option value="6">专题子类推荐信息</option>
  629. </select></td>
  630. </tr>
  631. </table>';
  632. $changeobject='<input name="classid" type="text" id="classid" value="0"><input type="button" name="Submit42" value="查看专题ID" onclick="window.open(\'../special/ListZt.php'.$ecms_hashur['whehref'].'\');"><font color="#666666">(当前专题ID用:\'selfinfo\',多个ID用“,”号隔开)</font>';
  633. }
  634. elseif($selfdoobject==7)//TAGS
  635. {
  636. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  637. <tr>
  638. <td width="24%">操作类型:</td>
  639. <td width="76%"><select name="dotype" id="select">
  640. <option value="9">TAGS最新信息</option>
  641. <option value="10">TAGS最早信息</option>
  642. </select></td>
  643. </tr>
  644. </table>';
  645. $changeobject='<input name="classid" type="text" id="classid" value="0"><input type="button" name="Submit42" value="查看TAGS的ID" onclick="window.open(\'../tags/ListTags.php'.$ecms_hashur['whehref'].'\');"><font color="#666666">(多个ID用“,”号隔开)</font>';
  646. }
  647. elseif($selfdoobject==8)//碎片
  648. {
  649. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  650. <tr>
  651. <td width="24%">操作类型:</td>
  652. <td width="76%"><select name="dotype" id="select">
  653. <option value="7">碎片最新信息</option>
  654. <option value="8">碎片最早信息</option>
  655. </select></td>
  656. </tr>
  657. </table>';
  658. $changeobject='<input name="classid" type="text" id="classid" value="0"><input type="button" name="Submit42" value="查看碎片ID" onclick="window.open(\'../sp/ListSp.php'.$ecms_hashur['whehref'].'\');"><font color="#666666">(多个ID用“,”号隔开)</font>';
  659. }
  660. elseif($selfdoobject==6)//按SQL
  661. {
  662. //操作类型
  663. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  664. <tr>
  665. <td width="24%">操作类型:</td>
  666. <td width="76%"><select name="dotype" id="select">
  667. <option value="11">SQL查询</option>
  668. </select></td>
  669. </tr>
  670. </table>';
  671. //选择SQL
  672. $changeobject='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  673. <tr>
  674. <td width="24%">选择:</td>
  675. <td width="76%"><select name="classid" id="select2">
  676. <option value="\'sql语句\'">SQL查询</option>
  677. </select></td>
  678. </tr>
  679. </table>';
  680. }
  681. else//专题
  682. {
  683. $dotype='<table width="100%" border="0" cellspacing="0" cellpadding="0">
  684. <tr>
  685. <td width="24%">操作类型:</td>
  686. <td width="76%"><select name="dotype" id="select">
  687. <option value="1">专题最新信息</option>
  688. <option value="2">专题最早信息</option>
  689. <option value="3">专题推荐信息</option>
  690. </select></td>
  691. </tr>
  692. </table>';
  693. $changeobject='<input name="classid" type="text" id="classid" value="0"><input type="button" name="Submit42" value="查看专题ID" onclick="window.open(\'../special/ListZt.php'.$ecms_hashur['whehref'].'\');"><font color="#666666">(当前专题ID用:\'selfinfo\',多个ID用“,”号隔开)</font>';
  694. }
  695. ?>
  696. <script>
  697. //返回标签
  698. function ShowBqFun(){
  699. var obj=document.bqform;
  700. var bqstr;
  701. var addstr='';
  702. var fclassid=obj.classid.value;
  703. var fline=obj.line.value;
  704. var fdotype=obj.dotype.value;
  705. var fuseclassid=obj.useclassid.value;
  706. var fmodid=obj.modid.value;
  707. var faddsql=obj.addsql.value;
  708. var forderby='';
  709. addstr=ReturnAddSql(faddsql,forderby);
  710. bqstr="[e:indexloop={"+fclassid+","+fline+","+fdotype+",'"+fuseclassid+"','"+fmodid+"'"+addstr+"}]\r\n<a href=\"<?="<?=\$bqsr['titleurl']?>"?>\" target=\"_blank\"><?="<?=\$bqr['title']?>"?></a> <br>\r\n[/e:indexloop]";
  711. obj.bqshow.value=bqstr;
  712. }
  713. </script>
  714. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  715. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="eindexloop">
  716. <?=$ecms_hashur['eform']?>
  717. <tr>
  718. <td height="25" colspan="2" class="header">索引灵动标签(e:indexloop)生成
  719. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  720. </tr>
  721. <tr>
  722. <td height="25" colspan="2">选择调用对象:
  723. <select name="selfdoobject" id="selfdoobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&selfdoobject='+this.options[this.selectedIndex].value">
  724. <option value="3"<?=$selfdoobject==3?' selected':''?>>专题</option>
  725. <option value="9"<?=$selfdoobject==9?' selected':''?>>专题子类</option>
  726. <option value="7"<?=$selfdoobject==7?' selected':''?>>TAGS</option>
  727. <option value="8"<?=$selfdoobject==8?' selected':''?>>碎片</option>
  728. <option value="6"<?=$selfdoobject==6?' selected':''?>>按SQL调用</option>
  729. </select> </td>
  730. </tr>
  731. <tr>
  732. <td width="50%" height="25" bgcolor="#FFFFFF">
  733. <?=$dotype?>
  734. </td>
  735. <td width="50%" bgcolor="#FFFFFF">
  736. <?=$changeobject?> </td>
  737. </tr>
  738. <tr>
  739. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  740. <tr>
  741. <td width="24%">调用数量:</td>
  742. <td width="76%"><input name="line" type="text" id="line" value="10"></td>
  743. </tr>
  744. </table></td>
  745. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  746. <tr>
  747. <td width="24%">所属栏目ID:</td>
  748. <td width="76%"><input name="useclassid" type="text" id="useclassid"> <font color="#666666">(多个ID用,号隔开)</font></td>
  749. </tr>
  750. </table></td>
  751. </tr>
  752. <tr>
  753. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  754. <tr>
  755. <td width="24%">所属系统模型ID:</td>
  756. <td width="76%"><input name="modid" type="text" id="line6"> <font color="#666666">(多个ID用,号隔开)</font></td>
  757. </tr>
  758. </table></td>
  759. <td bgcolor="#FFFFFF">&nbsp;</td>
  760. </tr>
  761. <tr>
  762. <td height="25" colspan="2">选项设置</td>
  763. </tr>
  764. <tr>
  765. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  766. <tr>
  767. <td width="24%">附加SQL条件:</td>
  768. <td width="76%"><input name="addsql" type="text" id="addsql"></td>
  769. </tr>
  770. </table></td>
  771. <td bgcolor="#FFFFFF">&nbsp;</td>
  772. </tr>
  773. <tr>
  774. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit3" value="输出标签" onclick="ShowBqFun();"> </td>
  775. </tr>
  776. <tr>
  777. <td height="25" colspan="2" bgcolor="#FFFFFF"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#eindexloop" target="_blank" title="查看详细标签语法">[e:indexloop={索引分类ID,显示条数,操作类型,栏目ID,系统模型ID,附加SQL条件}]<br>
  778. 模板代码内容<br>
  779. [/e:indexloop]</a></td>
  780. </tr>
  781. <tr>
  782. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  783. <tr>
  784. <td><textarea name="bqshow" cols="65" rows="12" id="bqshow" style="width:100%"></textarea></td>
  785. </tr>
  786. <tr>
  787. <td height="25"><input type="button" name="Submit22" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  788. </tr>
  789. </table></td>
  790. </tr>
  791. </table>
  792. </form>
  793. <?php
  794. }
  795. elseif($bqname=='phomenews')
  796. {
  797. ?>
  798. <script>
  799. //返回标签
  800. function ShowBqFun(){
  801. var obj=document.bqform;
  802. var bqstr;
  803. var addstr='';
  804. var fclassid=obj.classid.value;
  805. var fline=obj.line.value;
  806. var ftitlelen=obj.titlelen.value;
  807. var fshowclass=obj.showclass.value;
  808. var fdotype=obj.dotype.value;
  809. var fshowtime=obj.showtime.value;
  810. var fformattime=obj.formattime.value;
  811. var faddsql=obj.addsql.value;
  812. var forderby=obj.orderby.value;
  813. addstr=ReturnAddSql(faddsql,forderby);
  814. bqstr="[phomenews]"+fclassid+","+fline+","+ftitlelen+","+fshowtime+","+fdotype+","+fshowclass+",'"+fformattime+"'"+addstr+"[/phomenews]";
  815. obj.bqshow.value=bqstr;
  816. }
  817. </script>
  818. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  819. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  820. <?=$ecms_hashur['eform']?>
  821. <tr>
  822. <td height="25" colspan="2" class="header">phomenews标签生成
  823. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  824. </tr>
  825. <tr>
  826. <td height="25" colspan="2">选择调用对象:
  827. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&doobject='+this.options[this.selectedIndex].value">
  828. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  829. <?=$public_r['tbname']?>
  830. )</option>
  831. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  832. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  833. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  834. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  835. </select> </td>
  836. </tr>
  837. <tr>
  838. <td width="50%" height="25" bgcolor="#FFFFFF">
  839. <?=$dotype?>
  840. </td>
  841. <td width="50%" bgcolor="#FFFFFF">
  842. <?=$changeobject?>
  843. </td>
  844. </tr>
  845. <tr>
  846. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  847. <tr>
  848. <td width="24%">调用数量:</td>
  849. <td width="76%"><input name="line" type="text" id="line3" value="10"></td>
  850. </tr>
  851. </table></td>
  852. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  853. <tr>
  854. <td width="24%">显示栏目名:</td>
  855. <td width="76%"><select name="showclass" id="select2">
  856. <option value="0">否</option>
  857. <option value="1">是</option>
  858. </select> </td>
  859. </tr>
  860. </table></td>
  861. </tr>
  862. <tr>
  863. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  864. <tr>
  865. <td width="24%">标题截取字数:</td>
  866. <td width="76%"><input name="titlelen" type="text" id="titlelen2" value="32">
  867. </td>
  868. </tr>
  869. </table></td>
  870. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  871. <tr>
  872. <td width="24%">是否显示时间:</td>
  873. <td width="76%"><select name="showtime" id="select4">
  874. <option value="0">否</option>
  875. <option value="1">是</option>
  876. </select></td>
  877. </tr>
  878. </table></td>
  879. </tr>
  880. <tr>
  881. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  882. <tr>
  883. <td width="24%">时间格式:</td>
  884. <td width="76%"><input name="formattime" type="text" id="formattime" value="(m-d)">
  885. </td>
  886. </tr>
  887. </table></td>
  888. <td bgcolor="#FFFFFF">&nbsp;</td>
  889. </tr>
  890. <tr>
  891. <td height="25" colspan="2">选项设置</td>
  892. </tr>
  893. <tr>
  894. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  895. <tr>
  896. <td width="24%">附加SQL条件:</td>
  897. <td width="76%"><input name="addsql" type="text" id="addsql2"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  898. <option value=""> -- 预选项 -- </option>
  899. <option value="isgood=1">1级推荐</option>
  900. <option value="firsttitle=1">1级头条</option>
  901. <option value="field='值'">字段等于某值</option>
  902. </select></td>
  903. </tr>
  904. </table></td>
  905. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  906. <tr>
  907. <td width="24%">显示排序:</td>
  908. <td width="76%"><input name="orderby" type="text" id="orderby2"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  909. <option value=""> -- 预选项 -- </option>
  910. <option value="newstime DESC">按发布时间降序排序</option>
  911. <option value="newstime ASC">按发布时间升序排序</option>
  912. <option value="id DESC">按ID降序排序</option>
  913. <option value="onclick DESC">按点击率降序排序</option>
  914. <option value="totaldown DESC">按下载数降序排序</option>
  915. <option value="plnum DESC">按评论数降序排序</option>
  916. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  917. </select></td>
  918. </tr>
  919. </table></td>
  920. </tr>
  921. <tr>
  922. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  923. </td>
  924. </tr>
  925. <tr>
  926. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomenews" target="_blank" title="查看详细标签语法">[phomenews]栏目ID/标题分类ID,显示条数,标题截取数,是否显示时间,操作类型,是否显示栏目名,'时间格式化',附加SQL条件,显示排序[/phomenews]</a></font></td>
  927. </tr>
  928. <tr>
  929. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  930. <tr>
  931. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  932. </tr>
  933. <tr>
  934. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  935. </tr>
  936. </table></td>
  937. </tr>
  938. </table>
  939. </form>
  940. <?php
  941. }
  942. elseif($bqname=='phomenewspic')
  943. {
  944. ?>
  945. <script>
  946. //返回标签
  947. function ShowBqFun(){
  948. var obj=document.bqform;
  949. var bqstr;
  950. var addstr='';
  951. var fclassid=obj.classid.value;
  952. var fline=obj.line.value;
  953. var flnum=obj.lnum.value;
  954. var ftitlelen=obj.titlelen.value;
  955. var fshowtitle=obj.showtitle.value;
  956. var fdotype=obj.dotype.value;
  957. var fpicwidth=obj.picwidth.value;
  958. var fpicheight=obj.picheight.value;
  959. var faddsql=obj.addsql.value;
  960. var forderby=obj.orderby.value;
  961. addstr=ReturnAddSql(faddsql,forderby);
  962. bqstr="[phomenewspic]"+fclassid+","+fline+","+flnum+","+fpicwidth+","+fpicheight+","+fshowtitle+","+ftitlelen+","+fdotype+addstr+"[/phomenewspic]";
  963. obj.bqshow.value=bqstr;
  964. }
  965. </script>
  966. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  967. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  968. <?=$ecms_hashur['eform']?>
  969. <tr>
  970. <td height="25" colspan="2" class="header">phomenewspic标签生成
  971. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  972. </tr>
  973. <tr>
  974. <td height="25" colspan="2">选择调用对象:
  975. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&doobject='+this.options[this.selectedIndex].value">
  976. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  977. <?=$public_r['tbname']?>
  978. )</option>
  979. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  980. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  981. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  982. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  983. </select> </td>
  984. </tr>
  985. <tr>
  986. <td width="50%" height="25" bgcolor="#FFFFFF">
  987. <?=$dotype?>
  988. </td>
  989. <td width="50%" bgcolor="#FFFFFF">
  990. <?=$changeobject?>
  991. </td>
  992. </tr>
  993. <tr>
  994. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  995. <tr>
  996. <td width="24%">调用总数量:</td>
  997. <td width="76%"><input name="lnum" type="text" id="line3" value="8"></td>
  998. </tr>
  999. </table></td>
  1000. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1001. <tr>
  1002. <td width="24%">每行显示数量:</td>
  1003. <td width="76%"><input name="line" type="text" id="num" value="4">
  1004. </td>
  1005. </tr>
  1006. </table></td>
  1007. </tr>
  1008. <tr>
  1009. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1010. <tr>
  1011. <td width="24%">图片大小:</td>
  1012. <td width="76%">宽
  1013. <input name="picwidth" type="text" id="picwidth" value="170" size="6">
  1014. ×高
  1015. <input name="picheight" type="text" id="picheight" value="120" size="6"> </td>
  1016. </tr>
  1017. </table> </td>
  1018. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1019. <tr>
  1020. <td width="24%">是否显示标题:</td>
  1021. <td width="76%"><select name="showtitle" id="select5">
  1022. <option value="0">否</option>
  1023. <option value="1">是</option>
  1024. </select></td>
  1025. </tr>
  1026. </table></td>
  1027. </tr>
  1028. <tr>
  1029. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1030. <tr>
  1031. <td width="24%">标题截取字数:</td>
  1032. <td width="76%"><input name="titlelen" type="text" id="titlelen" value="26">
  1033. </td>
  1034. </tr>
  1035. </table></td>
  1036. <td bgcolor="#FFFFFF">&nbsp;</td>
  1037. </tr>
  1038. <tr>
  1039. <td height="25" colspan="2">选项设置</td>
  1040. </tr>
  1041. <tr>
  1042. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1043. <tr>
  1044. <td width="24%">附加SQL条件:</td>
  1045. <td width="76%"><input name="addsql" type="text" id="addsql2"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  1046. <option value=""> -- 预选项 -- </option>
  1047. <option value="isgood=1">1级推荐</option>
  1048. <option value="firsttitle=1">1级头条</option>
  1049. <option value="field='值'">字段等于某值</option>
  1050. </select></td>
  1051. </tr>
  1052. </table></td>
  1053. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1054. <tr>
  1055. <td width="24%">显示排序:</td>
  1056. <td width="76%"><input name="orderby" type="text" id="orderby2"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  1057. <option value=""> -- 预选项 -- </option>
  1058. <option value="newstime DESC">按发布时间降序排序</option>
  1059. <option value="newstime ASC">按发布时间升序排序</option>
  1060. <option value="id DESC">按ID降序排序</option>
  1061. <option value="onclick DESC">按点击率降序排序</option>
  1062. <option value="totaldown DESC">按下载数降序排序</option>
  1063. <option value="plnum DESC">按评论数降序排序</option>
  1064. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  1065. </select></td>
  1066. </tr>
  1067. </table></td>
  1068. </tr>
  1069. <tr>
  1070. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1071. </td>
  1072. </tr>
  1073. <tr>
  1074. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomenewspic" target="_blank" title="查看详细标签语法">[phomenewspic]栏目ID/标题分类ID,每行显示条数,显示总信息数,图片宽度,图片高度,是否显示标题,标题截取数,操作类型,附加SQL条件,显示排序[/phomenewspic]</a></font></td>
  1075. </tr>
  1076. <tr>
  1077. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1078. <tr>
  1079. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1080. </tr>
  1081. <tr>
  1082. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1083. </tr>
  1084. </table></td>
  1085. </tr>
  1086. </table>
  1087. </form>
  1088. <?php
  1089. }
  1090. elseif($bqname=='phomeflashpic')
  1091. {
  1092. ?>
  1093. <script>
  1094. //返回标签
  1095. function ShowBqFun(){
  1096. var obj=document.bqform;
  1097. var bqstr;
  1098. var addstr='';
  1099. var fclassid=obj.classid.value;
  1100. var fline=obj.line.value;
  1101. var fkeeptime=obj.keeptime.value;
  1102. var ftitlelen=obj.titlelen.value;
  1103. var fshowtitle=obj.showtitle.value;
  1104. var fdotype=obj.dotype.value;
  1105. var fpicwidth=obj.picwidth.value;
  1106. var fpicheight=obj.picheight.value;
  1107. var faddsql=obj.addsql.value;
  1108. var forderby=obj.orderby.value;
  1109. addstr=ReturnAddSql(faddsql,forderby);
  1110. bqstr="[phomeflashpic]"+fclassid+","+fline+","+fpicwidth+","+fpicheight+","+fshowtitle+","+ftitlelen+","+fdotype+","+fkeeptime+addstr+"[/phomeflashpic]";
  1111. obj.bqshow.value=bqstr;
  1112. }
  1113. </script>
  1114. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1115. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  1116. <?=$ecms_hashur['eform']?>
  1117. <tr>
  1118. <td height="25" colspan="2" class="header">phomeflashpic标签生成
  1119. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1120. </tr>
  1121. <tr>
  1122. <td height="25" colspan="2">选择调用对象:
  1123. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&doobject='+this.options[this.selectedIndex].value">
  1124. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  1125. <?=$public_r['tbname']?>
  1126. )</option>
  1127. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  1128. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  1129. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  1130. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  1131. </select> </td>
  1132. </tr>
  1133. <tr>
  1134. <td width="50%" height="25" bgcolor="#FFFFFF">
  1135. <?=$dotype?>
  1136. </td>
  1137. <td width="50%" bgcolor="#FFFFFF">
  1138. <?=$changeobject?>
  1139. </td>
  1140. </tr>
  1141. <tr>
  1142. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1143. <tr>
  1144. <td width="24%">调用数量:</td>
  1145. <td width="76%"><input name="line" type="text" id="line3" value="5"></td>
  1146. </tr>
  1147. </table></td>
  1148. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1149. <tr>
  1150. <td width="24%">停顿秒数:</td>
  1151. <td width="76%"><input name="keeptime" type="text" id="num" value="0">
  1152. <font color="#666666">(0为默认)</font></td>
  1153. </tr>
  1154. </table></td>
  1155. </tr>
  1156. <tr>
  1157. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1158. <tr>
  1159. <td width="24%">图片大小:</td>
  1160. <td width="76%">宽
  1161. <input name="picwidth" type="text" id="picwidth" value="170" size="6">
  1162. ×高
  1163. <input name="picheight" type="text" id="picheight" value="120" size="6"> </td>
  1164. </tr>
  1165. </table> </td>
  1166. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1167. <tr>
  1168. <td width="24%">是否显示标题:</td>
  1169. <td width="76%"><select name="showtitle" id="select5">
  1170. <option value="0">否</option>
  1171. <option value="1">是</option>
  1172. </select></td>
  1173. </tr>
  1174. </table></td>
  1175. </tr>
  1176. <tr>
  1177. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1178. <tr>
  1179. <td width="24%">标题截取字数:</td>
  1180. <td width="76%"><input name="titlelen" type="text" id="titlelen" value="26">
  1181. </td>
  1182. </tr>
  1183. </table></td>
  1184. <td bgcolor="#FFFFFF">&nbsp;</td>
  1185. </tr>
  1186. <tr>
  1187. <td height="25" colspan="2">选项设置</td>
  1188. </tr>
  1189. <tr>
  1190. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1191. <tr>
  1192. <td width="24%">附加SQL条件:</td>
  1193. <td width="76%"><input name="addsql" type="text" id="addsql2"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  1194. <option value=""> -- 预选项 -- </option>
  1195. <option value="isgood=1">1级推荐</option>
  1196. <option value="firsttitle=1">1级头条</option>
  1197. <option value="field='值'">字段等于某值</option>
  1198. </select></td>
  1199. </tr>
  1200. </table></td>
  1201. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1202. <tr>
  1203. <td width="24%">显示排序:</td>
  1204. <td width="76%"><input name="orderby" type="text" id="orderby2"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  1205. <option value=""> -- 预选项 -- </option>
  1206. <option value="newstime DESC">按发布时间降序排序</option>
  1207. <option value="newstime ASC">按发布时间升序排序</option>
  1208. <option value="id DESC">按ID降序排序</option>
  1209. <option value="onclick DESC">按点击率降序排序</option>
  1210. <option value="totaldown DESC">按下载数降序排序</option>
  1211. <option value="plnum DESC">按评论数降序排序</option>
  1212. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  1213. </select></td>
  1214. </tr>
  1215. </table></td>
  1216. </tr>
  1217. <tr>
  1218. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1219. </td>
  1220. </tr>
  1221. <tr>
  1222. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomeflashpic" target="_blank" title="查看详细标签语法">[phomeflashpic]栏目ID/标题分类ID,显示总数,图片宽度,图片高度,是否显示标题,标题截取数,操作类型,停顿秒数,附加SQL条件,显示排序[/phomeflashpic]</a></font></td>
  1223. </tr>
  1224. <tr>
  1225. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1226. <tr>
  1227. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1228. </tr>
  1229. <tr>
  1230. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1231. </tr>
  1232. </table></td>
  1233. </tr>
  1234. </table>
  1235. </form>
  1236. <?php
  1237. }
  1238. elseif($bqname=='listsonclass')
  1239. {
  1240. ?>
  1241. <script>
  1242. //返回标签
  1243. function ShowBqFun(){
  1244. var obj=document.bqform;
  1245. var bqstr;
  1246. var addstr='';
  1247. var fclassid=obj.classid.value;
  1248. var fline=obj.line.value;
  1249. var ftitlelen=obj.titlelen.value;
  1250. var fshowclass=obj.showclass.value;
  1251. var fdotype=obj.dotype.value;
  1252. var ftempid=obj.tempid.value;
  1253. var fispic=obj.ispic.value;
  1254. var fclassnum=obj.classnum.value;
  1255. var ffirstdotype=obj.firstdotype.value;
  1256. var ffirsttitlelen=obj.firsttitlelen.value;
  1257. var ffirstsmalltextlen=obj.firstsmalltextlen.value;
  1258. var ffirstispic=obj.firstispic.value;
  1259. var faddsql=obj.addsql.value;
  1260. var forderby=obj.orderby.value;
  1261. addstr=ReturnAddSql(faddsql,forderby);
  1262. bqstr="[listsonclass]"+fclassid+","+fline+","+ftitlelen+","+fshowclass+","+fdotype+","+ftempid+","+fispic+","+fclassnum+","+ffirstdotype+","+ffirsttitlelen+","+ffirstsmalltextlen+","+ffirstispic+addstr+"[/listsonclass]";
  1263. obj.bqshow.value=bqstr;
  1264. }
  1265. </script>
  1266. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1267. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  1268. <?=$ecms_hashur['eform']?>
  1269. <tr>
  1270. <td height="25" colspan="2" class="header">listsonclass标签生成
  1271. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1272. </tr>
  1273. <tr>
  1274. <td height="25" colspan="2">标签基本参数</td>
  1275. </tr>
  1276. <tr>
  1277. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1278. <tr>
  1279. <td width="24%">操作类型:</td>
  1280. <td width="76%"><select name="dotype" id="dotype">
  1281. <option value="0">栏目最新</option>
  1282. <option value="1">栏目热门</option>
  1283. <option value="2">栏目推荐</option>
  1284. <option value="3">栏目评论排行</option>
  1285. <option value="4">栏目头条</option>
  1286. <option value="5">栏目下载排行</option>
  1287. </select></td>
  1288. </tr>
  1289. </table></td>
  1290. <td width="50%" bgcolor="#FFFFFF">
  1291. <?=$changeobject?>
  1292. </td>
  1293. </tr>
  1294. <tr>
  1295. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1296. <tr>
  1297. <td width="24%">调用信息数:</td>
  1298. <td width="76%"><input name="line" type="text" id="line3" value="10"></td>
  1299. </tr>
  1300. </table></td>
  1301. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1302. <tr>
  1303. <td width="24%">标签模板:</td>
  1304. <td width="76%"><select name="tempid" id="select7">
  1305. <?=$bqtemp?>
  1306. </select> <input type="button" name="Submit62223232" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  1307. </tr>
  1308. </table></td>
  1309. </tr>
  1310. <tr>
  1311. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1312. <tr>
  1313. <td width="24%">标题截取字数:</td>
  1314. <td width="76%"><input name="titlelen" type="text" id="titlelen3" value="32">
  1315. </td>
  1316. </tr>
  1317. </table></td>
  1318. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1319. <tr>
  1320. <td width="24%">显示栏目名:</td>
  1321. <td width="76%"><select name="showclass" id="select8">
  1322. <option value="0">否</option>
  1323. <option value="1">是</option>
  1324. </select> <font color="#666666">(标签模板要加[!--class.name--])</font>
  1325. </td>
  1326. </tr>
  1327. </table></td>
  1328. </tr>
  1329. <tr>
  1330. <td height="25" bgcolor="#FFFFFF">只调用有标题图片的信息:
  1331. <select name="ispic" id="select9">
  1332. <option value="0">不限</option>
  1333. <option value="1">是</option>
  1334. </select></td>
  1335. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1336. <tr>
  1337. <td width="24%">限制栏目数量:</td>
  1338. <td width="76%"><input name="classnum" type="text" id="titlelen4" value="0">
  1339. <font color="#666666">(0为不限制)</font></td>
  1340. </tr>
  1341. </table></td>
  1342. </tr>
  1343. <tr>
  1344. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1345. <tr>
  1346. <td width="24%">头条操作类型:</td>
  1347. <td width="76%"><select name="firstdotype" id="select10">
  1348. <option value="0">不显示栏目头条</option>
  1349. <option value="1">栏目内容简介</option>
  1350. <option value="2">栏目推荐信息</option>
  1351. <option value="3">栏目头条信息</option>
  1352. <option value="4">栏目最新信息</option>
  1353. </select></td>
  1354. </tr>
  1355. </table></td>
  1356. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1357. <tr>
  1358. <td width="24%">头条标题截取字数:</td>
  1359. <td width="76%"><input name="firsttitlelen" type="text" id="firsttitlelen" value="32">
  1360. </td>
  1361. </tr>
  1362. </table></td>
  1363. </tr>
  1364. <tr>
  1365. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1366. <tr>
  1367. <td width="24%">头条简介截取字数:</td>
  1368. <td width="76%"><input name="firstsmalltextlen" type="text" id="firstsmalltextlen" value="0">
  1369. </td>
  1370. </tr>
  1371. </table></td>
  1372. <td bgcolor="#FFFFFF">头条只调用有标题图片的信息:
  1373. <select name="firstispic" id="select11">
  1374. <option value="0">不限</option>
  1375. <option value="1">是</option>
  1376. </select></td>
  1377. </tr>
  1378. <tr>
  1379. <td height="25" colspan="2">选项设置</td>
  1380. </tr>
  1381. <tr>
  1382. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1383. <tr>
  1384. <td width="24%">附加SQL条件:</td>
  1385. <td width="76%"><input name="addsql" type="text" id="addsql2"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  1386. <option value=""> -- 预选项 -- </option>
  1387. <option value="isgood=1">1级推荐</option>
  1388. <option value="firsttitle=1">1级头条</option>
  1389. <option value="field='值'">字段等于某值</option>
  1390. </select></td>
  1391. </tr>
  1392. </table></td>
  1393. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1394. <tr>
  1395. <td width="24%">显示排序:</td>
  1396. <td width="76%"><input name="orderby" type="text" id="orderby2"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  1397. <option value=""> -- 预选项 -- </option>
  1398. <option value="newstime DESC">按发布时间降序排序</option>
  1399. <option value="newstime ASC">按发布时间升序排序</option>
  1400. <option value="id DESC">按ID降序排序</option>
  1401. <option value="onclick DESC">按点击率降序排序</option>
  1402. <option value="totaldown DESC">按下载数降序排序</option>
  1403. <option value="plnum DESC">按评论数降序排序</option>
  1404. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  1405. </select></td>
  1406. </tr>
  1407. </table></td>
  1408. </tr>
  1409. <tr>
  1410. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1411. </td>
  1412. </tr>
  1413. <tr>
  1414. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#listsonclass" target="_blank" title="查看详细标签语法">[listsonclass]栏目ID,显示条数,标题截取数,是否显示栏目名,操作类型,模板ID,只显示有标题图片,显示栏目数,显示头条操作类型,头条标题截取数,头条简介截取数,头条只显示有标题图片,附加SQL条件,显示排序[/listsonclass]</a></font></td>
  1415. </tr>
  1416. <tr>
  1417. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1418. <tr>
  1419. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1420. </tr>
  1421. <tr>
  1422. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1423. </tr>
  1424. </table></td>
  1425. </tr>
  1426. </table>
  1427. </form>
  1428. <?php
  1429. }
  1430. elseif($bqname=='totaldata')
  1431. {
  1432. ?>
  1433. <script>
  1434. //返回标签
  1435. function ShowBqFun(){
  1436. var obj=document.bqform;
  1437. var bqstr;
  1438. var fclassid=obj.classid.value;
  1439. var flimittime=obj.limittime.value;
  1440. var fdotype=obj.dotype.value;
  1441. var ftotaltype=obj.totaltype.value;
  1442. bqstr="[totaldata]"+fclassid+","+fdotype+","+flimittime+","+ftotaltype+"[/totaldata]";
  1443. obj.bqshow.value=bqstr;
  1444. }
  1445. </script>
  1446. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1447. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="eloop">
  1448. <?=$ecms_hashur['eform']?>
  1449. <tr>
  1450. <td height="25" colspan="2" class="header">totaldata标签生成
  1451. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1452. </tr>
  1453. <tr>
  1454. <td height="25" colspan="2">标签基本参数</td>
  1455. </tr>
  1456. <tr>
  1457. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1458. <tr>
  1459. <td width="24%">操作类型:</td>
  1460. <td width="76%"><select name="dotype" id="select12" onchange="var addurl='';if(this.options[this.selectedIndex].value==0){addurl='&doobject=2';}else if(this.options[this.selectedIndex].value==1){addurl='&doobject=5';}else if(this.options[this.selectedIndex].value==2){addurl='&doobject=4';}self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&addselfinfo=1&mydotype='+this.options[this.selectedIndex].value+addurl;">
  1461. <option value="0"<?=$mydotype==0?' selected':''?>>统计栏目数据</option>
  1462. <option value="1"<?=$mydotype==1?' selected':''?>>统计标题分类</option>
  1463. <option value="2"<?=$mydotype==2?' selected':''?>>统计数据表</option>
  1464. </select></td>
  1465. </tr>
  1466. </table></td>
  1467. <td width="50%" bgcolor="#FFFFFF">
  1468. <?=$changeobject?>
  1469. </td>
  1470. </tr>
  1471. <tr>
  1472. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1473. <tr>
  1474. <td width="24%">时间范围:</td>
  1475. <td width="76%"><select name="limittime" id="select13">
  1476. <option value="0">不限</option>
  1477. <option value="1">今日</option>
  1478. <option value="2">本月</option>
  1479. <option value="3">本年</option>
  1480. </select></td>
  1481. </tr>
  1482. </table></td>
  1483. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1484. <tr>
  1485. <td width="24%">统计类型:</td>
  1486. <td width="76%"><select name="totaltype" id="select29">
  1487. <option value="0">统计信息数</option>
  1488. <option value="1">统计评论数</option>
  1489. <option value="2">统计点击数</option>
  1490. <option value="3">统计下载数</option>
  1491. </select></td>
  1492. </tr>
  1493. </table></td>
  1494. </tr>
  1495. <tr>
  1496. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit3" value="输出标签" onclick="ShowBqFun();">
  1497. </td>
  1498. </tr>
  1499. <tr>
  1500. <td height="25" colspan="2" bgcolor="#FFFFFF"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#totaldata" target="_blank" title="查看详细标签语法">[totaldata]栏目ID,操作类型,时间范围,统计类型[/totaldata]</a></td>
  1501. </tr>
  1502. <tr>
  1503. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1504. <tr>
  1505. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1506. </tr>
  1507. <tr>
  1508. <td height="25"><input type="button" name="Submit22" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1509. </tr>
  1510. </table></td>
  1511. </tr>
  1512. </table>
  1513. </form>
  1514. <?php
  1515. }
  1516. elseif($bqname=='otherlink')
  1517. {
  1518. ?>
  1519. <script>
  1520. //返回标签
  1521. function ShowBqFun(){
  1522. var obj=document.bqform;
  1523. var bqstr;
  1524. var addstr='';
  1525. var fclassid=obj.classid.value;
  1526. var fline=obj.line.value;
  1527. var ftitlelen=obj.titlelen.value;
  1528. var fshowclass=obj.showclass.value;
  1529. var fdotype=obj.dotype.value;
  1530. var ftempid=obj.tempid.value;
  1531. var fispic=obj.ispic.value;
  1532. bqstr="[otherlink]"+ftempid+","+fclassid+","+fline+","+ftitlelen+","+fshowclass+","+fdotype+","+fispic+"[/otherlink]";
  1533. obj.bqshow.value=bqstr;
  1534. }
  1535. </script>
  1536. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1537. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  1538. <?=$ecms_hashur['eform']?>
  1539. <tr>
  1540. <td height="25" colspan="2" class="header">otherlink标签生成
  1541. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1542. </tr>
  1543. <tr>
  1544. <td height="25" colspan="2">标签基本参数 </td>
  1545. </tr>
  1546. <tr>
  1547. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1548. <tr>
  1549. <td width="24%">操作类型:</td>
  1550. <td width="76%"><select name="dotype" id="dotype" onchange="var addurl='';if(this.options[this.selectedIndex].value==0){addurl='&defchangeobject=1';}else if(this.options[this.selectedIndex].value==1){addurl='&doobject=4';}else if(this.options[this.selectedIndex].value==2){addurl='&doobject=2';}else if(this.options[this.selectedIndex].value==3){addurl='&doobject=5';}self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&addselfinfo=1&mydotype='+this.options[this.selectedIndex].value+addurl;">
  1551. <option value="0"<?=$mydotype==0?' selected':''?>>默认</option>
  1552. <option value="1"<?=$mydotype==1?' selected':''?>>按数据表</option>
  1553. <option value="2"<?=$mydotype==2?' selected':''?>>按栏目</option>
  1554. <option value="3"<?=$mydotype==3?' selected':''?>>按标题分类</option>
  1555. </select></td>
  1556. </tr>
  1557. </table></td>
  1558. <td width="50%" bgcolor="#FFFFFF">
  1559. <?=$changeobject?>
  1560. </td>
  1561. </tr>
  1562. <tr>
  1563. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1564. <tr>
  1565. <td width="24%">调用数量:</td>
  1566. <td width="76%"><input name="line" type="text" id="line3" value="10"></td>
  1567. </tr>
  1568. </table></td>
  1569. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1570. <tr>
  1571. <td width="24%">标签模板:</td>
  1572. <td width="76%"><select name="tempid" id="select3">
  1573. <?=$bqtemp?>
  1574. </select> <input type="button" name="Submit6222323" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  1575. </tr>
  1576. </table></td>
  1577. </tr>
  1578. <tr>
  1579. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1580. <tr>
  1581. <td width="24%">标题截取字数:</td>
  1582. <td width="76%"><input name="titlelen" type="text" id="titlelen2" value="32">
  1583. </td>
  1584. </tr>
  1585. </table></td>
  1586. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1587. <tr>
  1588. <td width="24%">显示栏目名:</td>
  1589. <td width="76%"><select name="showclass" id="showclass">
  1590. <option value="0">否</option>
  1591. <option value="1">是</option>
  1592. </select> <font color="#666666">(标签模板要加[!--class.name--])</font>
  1593. </td>
  1594. </tr>
  1595. </table></td>
  1596. </tr>
  1597. <tr>
  1598. <td height="25" bgcolor="#FFFFFF">只调用有标题图片的信息:
  1599. <select name="ispic" id="ispic">
  1600. <option value="0">不限</option>
  1601. <option value="1">是</option>
  1602. </select></td>
  1603. <td bgcolor="#FFFFFF">&nbsp;</td>
  1604. </tr>
  1605. <tr>
  1606. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1607. </td>
  1608. </tr>
  1609. <tr>
  1610. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#otherlink" target="_blank" title="查看详细标签语法">[otherlink]标签模板ID,操作对象,调用条数,标题截取字数,是否显示栏目名,操作类型,只显示标题图片的信息[/otherlink]</a></font></td>
  1611. </tr>
  1612. <tr>
  1613. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1614. <tr>
  1615. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1616. </tr>
  1617. <tr>
  1618. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1619. </tr>
  1620. </table></td>
  1621. </tr>
  1622. </table>
  1623. </form>
  1624. <?php
  1625. }
  1626. elseif($bqname=='eshowphoto')
  1627. {
  1628. ?>
  1629. <script>
  1630. //返回标签
  1631. function ShowBqFun(){
  1632. var obj=document.bqform;
  1633. var bqstr;
  1634. var addstr='';
  1635. var ftempid=obj.tempid.value;
  1636. var fpicwidth=obj.picwidth.value;
  1637. var fpicheight=obj.picheight.value;
  1638. bqstr="[eshowphoto]"+ftempid+","+fpicwidth+","+fpicheight+"[/eshowphoto]";
  1639. obj.bqshow.value=bqstr;
  1640. }
  1641. </script>
  1642. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1643. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="eshowphoto">
  1644. <?=$ecms_hashur['eform']?>
  1645. <tr>
  1646. <td height="25" colspan="2" class="header">eshowphoto标签生成
  1647. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1648. </tr>
  1649. <tr>
  1650. <td height="25" colspan="2">标签基本参数</td>
  1651. </tr>
  1652. <tr>
  1653. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1654. <tr>
  1655. <td width="24%">标签模板:</td>
  1656. <td width="76%"><select name="tempid" id="tempid">
  1657. <?=$bqtemp?>
  1658. </select> <input type="button" name="Submit62223233" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  1659. </tr>
  1660. </table></td>
  1661. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1662. <tr>
  1663. <td width="24%">导航图片大小:</td>
  1664. <td width="76%">宽
  1665. <input name="picwidth" type="text" id="picwidth" value="170" size="6">
  1666. ×高
  1667. <input name="picheight" type="text" id="picheight" value="120" size="6">
  1668. </td>
  1669. </tr>
  1670. </table></td>
  1671. </tr>
  1672. <tr>
  1673. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1674. </td>
  1675. </tr>
  1676. <tr>
  1677. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#eshowphoto" target="_blank" title="查看详细标签语法">[eshowphoto]标签模板ID,导航图片宽度,导航图片高度[/eshowphoto]</a></font></td>
  1678. </tr>
  1679. <tr>
  1680. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1681. <tr>
  1682. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1683. </tr>
  1684. <tr>
  1685. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1686. </tr>
  1687. </table></td>
  1688. </tr>
  1689. </table>
  1690. </form>
  1691. <?php
  1692. }
  1693. elseif($bqname=='showsearch')
  1694. {
  1695. ?>
  1696. <script>
  1697. //返回标签
  1698. function ShowBqFun(){
  1699. var obj=document.bqform;
  1700. var bqstr;
  1701. var fclassid=obj.classid.value;
  1702. var fdotype=obj.dotype.value;
  1703. var flnum=obj.lnum.value;
  1704. var fline=obj.line.value;
  1705. bqstr="[showsearch]"+fline+","+flnum+","+fclassid+","+fdotype+"[/showsearch]";
  1706. obj.bqshow.value=bqstr;
  1707. }
  1708. </script>
  1709. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1710. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="showsearch">
  1711. <?=$ecms_hashur['eform']?>
  1712. <tr>
  1713. <td height="25" colspan="2" class="header">showsearch标签生成
  1714. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1715. </tr>
  1716. <tr>
  1717. <td height="25" colspan="2">标签基本参数</td>
  1718. </tr>
  1719. <tr>
  1720. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1721. <tr>
  1722. <td width="24%">操作类型:</td>
  1723. <td width="76%"><select name="dotype" id="dotype">
  1724. <option value="0">搜索热门排行</option>
  1725. <option value="1">最新搜索排行</option>
  1726. </select></td>
  1727. </tr>
  1728. </table></td>
  1729. <td width="50%" bgcolor="#FFFFFF">
  1730. <?=$changeobject?>
  1731. </td>
  1732. </tr>
  1733. <tr>
  1734. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1735. <tr>
  1736. <td width="24%">调用总数量:</td>
  1737. <td width="76%"><input name="lnum" type="text" id="lnum" value="8"></td>
  1738. </tr>
  1739. </table></td>
  1740. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1741. <tr>
  1742. <td width="24%">每行显示数量:</td>
  1743. <td width="76%"><input name="line" type="text" id="line" value="4">
  1744. </td>
  1745. </tr>
  1746. </table></td>
  1747. </tr>
  1748. <tr>
  1749. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit3" value="输出标签" onclick="ShowBqFun();">
  1750. </td>
  1751. </tr>
  1752. <tr>
  1753. <td height="25" colspan="2" bgcolor="#FFFFFF"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#showsearch" target="_blank" title="查看详细标签语法">[showsearch]每行显示条数,总条数,栏目id,操作类型[/showsearch]</a></td>
  1754. </tr>
  1755. <tr>
  1756. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1757. <tr>
  1758. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1759. </tr>
  1760. <tr>
  1761. <td height="25"><input type="button" name="Submit22" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1762. </tr>
  1763. </table></td>
  1764. </tr>
  1765. </table>
  1766. </form>
  1767. <?php
  1768. }
  1769. elseif($bqname=='tagsinfo')
  1770. {
  1771. ?>
  1772. <script>
  1773. //返回标签
  1774. function ShowBqFun(){
  1775. var obj=document.bqform;
  1776. var bqstr;
  1777. var addstr='';
  1778. var fclassid=ReturnAddYh(obj.classid.value);
  1779. var fline=obj.line.value;
  1780. var ftitlelen=obj.titlelen.value;
  1781. var ftids=ReturnAddYh(obj.tids.value);
  1782. var ftempid=obj.tempid.value;
  1783. var fmids=ReturnAddYh(obj.mids.value);
  1784. bqstr="[tagsinfo]"+ftids+","+fline+","+ftitlelen+","+ftempid+","+fclassid+","+fmids+"[/tagsinfo]";
  1785. obj.bqshow.value=bqstr;
  1786. }
  1787. </script>
  1788. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1789. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="tagsinfo">
  1790. <?=$ecms_hashur['eform']?>
  1791. <tr>
  1792. <td height="25" colspan="2" class="header">tagsinfo标签生成
  1793. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1794. </tr>
  1795. <tr>
  1796. <td height="25" colspan="2">标签基本参数 </td>
  1797. </tr>
  1798. <tr>
  1799. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1800. <tr>
  1801. <td width="24%">TAGS的ID:</td>
  1802. <td width="76%"><input name="tids" type="text" id="tids"> <input type="button" name="Submit4" value="查看TAGS" onclick="window.open('../tags/ListTags.php<?=$ecms_hashur['whehref']?>');">
  1803. <font color="#666666">(多个ID用,号隔开)</font></td>
  1804. </tr>
  1805. </table></td>
  1806. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1807. <tr>
  1808. <td width="24%">标签模板:</td>
  1809. <td width="76%"><select name="tempid" id="tempid">
  1810. <?=$bqtemp?>
  1811. </select> <input type="button" name="Submit62223234" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  1812. </tr>
  1813. </table> </td>
  1814. </tr>
  1815. <tr>
  1816. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1817. <tr>
  1818. <td width="24%">调用数量:</td>
  1819. <td width="76%"><input name="line" type="text" id="line3" value="10"></td>
  1820. </tr>
  1821. </table></td>
  1822. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1823. <tr>
  1824. <td width="24%">限制栏目ID:</td>
  1825. <td width="76%"><input name="classid" type="text" id="classid" value="0">
  1826. <font color="#666666">
  1827. <input type="button" name="Submit42" value="查看栏目ID" onclick="window.open('../ListClass.php<?=$ecms_hashur['whehref']?>');">
  1828. (0为不限,多个ID用,号隔开)</font> </td>
  1829. </tr>
  1830. </table> </td>
  1831. </tr>
  1832. <tr>
  1833. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1834. <tr>
  1835. <td width="24%">标题截取字数:</td>
  1836. <td width="76%"><input name="titlelen" type="text" id="titlelen2" value="32">
  1837. </td>
  1838. </tr>
  1839. </table></td>
  1840. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1841. <tr>
  1842. <td width="24%">限制系统模型ID:</td>
  1843. <td width="76%"><input name="mids" type="text" id="mids" value="0">
  1844. <font color="#666666"> (0为不限,多个ID用,号隔开)</font> </td>
  1845. </tr>
  1846. </table></td>
  1847. </tr>
  1848. <tr>
  1849. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1850. </td>
  1851. </tr>
  1852. <tr>
  1853. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#tagsinfo" target="_blank" title="查看详细标签语法">[tagsinfo]TAGS的ID,显示条数,标题截取数,标签模板ID,栏目ID,系统模型ID[/tagsinfo]</a></font></td>
  1854. </tr>
  1855. <tr>
  1856. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1857. <tr>
  1858. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1859. </tr>
  1860. <tr>
  1861. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1862. </tr>
  1863. </table></td>
  1864. </tr>
  1865. </table>
  1866. </form>
  1867. <?php
  1868. }
  1869. elseif($bqname=='spinfo')
  1870. {
  1871. ?>
  1872. <script>
  1873. //返回标签
  1874. function ShowBqFun(){
  1875. var obj=document.bqform;
  1876. var bqstr;
  1877. var addstr='';
  1878. var fline=obj.line.value;
  1879. var ftitlelen=obj.titlelen.value;
  1880. var fvname=obj.vname.value;
  1881. bqstr="[spinfo]'"+fvname+"',"+fline+","+ftitlelen+"[/spinfo]";
  1882. obj.bqshow.value=bqstr;
  1883. }
  1884. </script>
  1885. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1886. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="spinfo">
  1887. <?=$ecms_hashur['eform']?>
  1888. <tr>
  1889. <td height="25" colspan="2" class="header">spinfo标签生成
  1890. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1891. </tr>
  1892. <tr>
  1893. <td height="25" colspan="2">标签基本参数 </td>
  1894. </tr>
  1895. <tr>
  1896. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1897. <tr>
  1898. <td width="24%">碎片变量名:</td>
  1899. <td width="76%"><input name="vname" type="text" id="vname">
  1900. <input type="button" name="Submit43" value="查看碎片" onclick="window.open('../sp/ListSp.php<?=$ecms_hashur['whehref']?>');"></td>
  1901. </tr>
  1902. </table></td>
  1903. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1904. <tr>
  1905. <td width="24%">调用数量:</td>
  1906. <td width="76%"><input name="line" type="text" id="line" value="10"></td>
  1907. </tr>
  1908. </table></td>
  1909. </tr>
  1910. <tr>
  1911. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1912. <tr>
  1913. <td width="24%">标题截取字数:</td>
  1914. <td width="76%"><input name="titlelen" type="text" id="titlelen2" value="32">
  1915. </td>
  1916. </tr>
  1917. </table></td>
  1918. <td bgcolor="#FFFFFF">&nbsp; </td>
  1919. </tr>
  1920. <tr>
  1921. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  1922. </td>
  1923. </tr>
  1924. <tr>
  1925. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#spinfo" target="_blank" title="查看详细标签语法">[spinfo]碎片变量名,显示条数,标题截取数[/spinfo]</a></font></td>
  1926. </tr>
  1927. <tr>
  1928. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1929. <tr>
  1930. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  1931. </tr>
  1932. <tr>
  1933. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  1934. </tr>
  1935. </table></td>
  1936. </tr>
  1937. </table>
  1938. </form>
  1939. <?php
  1940. }
  1941. elseif($bqname=='showtags')
  1942. {
  1943. $tagsclass='';
  1944. $tcsql=$empire->query("select classid,classname from {$dbtbpre}enewstagsclass order by classid");
  1945. while($tcr=$empire->fetch($tcsql))
  1946. {
  1947. $tagsclass.='<option value="'.$tcr[classid].'">'.$tcr[classname].'</option>';
  1948. }
  1949. ?>
  1950. <script>
  1951. //返回标签
  1952. function ShowBqFun(){
  1953. var obj=document.bqform;
  1954. var bqstr;
  1955. var addstr='';
  1956. var tfont='';
  1957. var dh='';
  1958. var fclassid=obj.tagsclassid.value;
  1959. var flnum=obj.lnum.value;
  1960. var fline=obj.line.value;
  1961. var forderby=obj.orderby.value;
  1962. var fisgood=obj.isgood.value;
  1963. var fjg=obj.jg.value;
  1964. var fshownum=obj.shownum.value;
  1965. var faddcs=obj.addcs.value;
  1966. var fvartype=obj.vartype.value;
  1967. //属性
  1968. if(obj.tfontb.checked==true)
  1969. {
  1970. tfont+='s';
  1971. dh=',';
  1972. }
  1973. if(obj.tfontr.checked==true)
  1974. {
  1975. tfont+=dh+'r';
  1976. }
  1977. bqstr="[showtags]"+fclassid+","+flnum+","+fline+",'"+forderby+"',"+fisgood+",'"+tfont+"','"+fjg+"',"+fshownum+",'"+faddcs+"','"+fvartype+"'[/showtags]";
  1978. obj.bqshow.value=bqstr;
  1979. }
  1980. </script>
  1981. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  1982. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="showtags">
  1983. <?=$ecms_hashur['eform']?>
  1984. <tr>
  1985. <td height="25" colspan="2" class="header">showtags标签生成
  1986. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  1987. </tr>
  1988. <tr>
  1989. <td height="25" colspan="2">标签基本参数 </td>
  1990. </tr>
  1991. <tr>
  1992. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  1993. <tr>
  1994. <td width="24%">选择TAGS分类:</td>
  1995. <td width="76%"><select name="tagsclassid" id="tagsclassid">
  1996. <option value="''">不限</option>
  1997. <option value="'selfinfo'">调用当前信息TAGS</option>
  1998. <?=$tagsclass?>
  1999. </select> </td>
  2000. </tr>
  2001. </table></td>
  2002. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2003. <tr>
  2004. <td width="24%">调用总数量:</td>
  2005. <td width="76%"><input name="lnum" type="text" id="lnum" value="10"></td>
  2006. </tr>
  2007. </table></td>
  2008. </tr>
  2009. <tr>
  2010. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2011. <tr>
  2012. <td width="24%">每行显示数量:</td>
  2013. <td width="76%"><input name="line" type="text" id="titlelen2" value="0">
  2014. <font color="#666666">(0为不换行) </font></td>
  2015. </tr>
  2016. </table></td>
  2017. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2018. <tr>
  2019. <td width="24%">显示排序:</td>
  2020. <td width="76%"><input name="orderby" type="text" id="orderby"> <select name="selectorderby" id="select" onchange="document.bqform.orderby.value=document.bqform.selectorderby.value">
  2021. <option value="">默认排序</option>
  2022. <option value="tagid desc">按TAGSID降序</option>
  2023. <option value="num desc">按信息数降序</option>
  2024. </select>
  2025. <font color="#666666">(调用当前TAGS本设置无效)</font></td>
  2026. </tr>
  2027. </table></td>
  2028. </tr>
  2029. <tr>
  2030. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2031. <tr>
  2032. <td width="24%">只显示推荐的:</td>
  2033. <td width="76%"><select name="isgood" id="select14">
  2034. <option value="0">不限</option>
  2035. <option value="1">是</option>
  2036. </select>
  2037. <font color="#666666">(调用当前TAGS本设置无效)</font> </td>
  2038. </tr>
  2039. </table></td>
  2040. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2041. <tr>
  2042. <td width="24%">推荐TAGS属性:</td>
  2043. <td width="76%"><input name="tfontb" type="checkbox" id="tfontb" value="1">
  2044. 加粗 <input name="tfontr" type="checkbox" id="tfontr" value="1">
  2045. 加红<font color="#666666">(调用当前TAGS本设置无效)</font></td>
  2046. </tr>
  2047. </table></td>
  2048. </tr>
  2049. <tr>
  2050. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2051. <tr>
  2052. <td width="24%">显示间隔符:</td>
  2053. <td width="76%"><input name="jg" type="text" id="line2" value="&amp;nbsp;">
  2054. </td>
  2055. </tr>
  2056. </table></td>
  2057. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2058. <tr>
  2059. <td width="24%">显示信息数量:</td>
  2060. <td width="76%"><select name="shownum" id="select16">
  2061. <option value="0">不显示</option>
  2062. <option value="1">显示</option>
  2063. </select>
  2064. <font color="#666666">(调用当前TAGS本设置无效)</font></td>
  2065. </tr>
  2066. </table></td>
  2067. </tr>
  2068. <tr>
  2069. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2070. <tr>
  2071. <td width="24%">链接附加参数:</td>
  2072. <td width="76%"><input name="addcs" type="text" id="line4">
  2073. <font color="#666666">(比如:&amp;tempid=模板ID) </font></td>
  2074. </tr>
  2075. </table></td>
  2076. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2077. <tr>
  2078. <td width="24%">链接使用变量:</td>
  2079. <td width="76%"><select name="vartype">
  2080. <option value="tagname">tagname</option>
  2081. <option value="tagid">tagid</option>
  2082. </select>
  2083. <font color="#666666">(比如:tagname=帝国或tagid=1)</font></td>
  2084. </tr>
  2085. </table></td>
  2086. </tr>
  2087. <tr>
  2088. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2089. </td>
  2090. </tr>
  2091. <tr>
  2092. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#showtags" target="_blank" title="查看详细标签语法">[showtags]分类ID,显示数量,每行显示数量,显示排序,只显示推荐,推荐TAGS属性,显示间隔符,是否显示信息数,链接附加参数,链接使用变量[/showtags]</a></font></td>
  2093. </tr>
  2094. <tr>
  2095. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2096. <tr>
  2097. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2098. </tr>
  2099. <tr>
  2100. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2101. </tr>
  2102. </table></td>
  2103. </tr>
  2104. </table>
  2105. </form>
  2106. <?php
  2107. }
  2108. elseif($bqname=='showclasstemp')
  2109. {
  2110. ?>
  2111. <script>
  2112. //返回标签
  2113. function ShowBqFun(){
  2114. var obj=document.bqform;
  2115. var bqstr;
  2116. var addstr='';
  2117. var fclassid=obj.classid.value;
  2118. var fshownum=obj.shownum.value;
  2119. var ftempid=obj.tempid.value;
  2120. var fclassnum=obj.classnum.value;
  2121. bqstr="[showclasstemp]"+fclassid+","+ftempid+","+fshownum+","+fclassnum+"[/showclasstemp]";
  2122. obj.bqshow.value=bqstr;
  2123. }
  2124. </script>
  2125. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2126. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2127. <?=$ecms_hashur['eform']?>
  2128. <tr>
  2129. <td height="25" colspan="2" class="header">showclasstemp标签生成
  2130. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2131. </tr>
  2132. <tr>
  2133. <td height="25" colspan="2">标签基本参数 </td>
  2134. </tr>
  2135. <tr>
  2136. <td width="50%" height="25" bgcolor="#FFFFFF">
  2137. <?=$changeobject?>
  2138. </td>
  2139. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2140. <tr>
  2141. <td width="24%">标签模板:</td>
  2142. <td width="76%"><select name="tempid" id="select15">
  2143. <?=$bqtemp?>
  2144. </select> <input type="button" name="Submit62223235" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  2145. </tr>
  2146. </table></td>
  2147. </tr>
  2148. <tr>
  2149. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2150. <tr>
  2151. <td width="24%">显示栏目信息数:</td>
  2152. <td width="76%"><select name="shownum" id="select17">
  2153. <option value="0">不显示</option>
  2154. <option value="1">显示</option>
  2155. </select>
  2156. <font color="#666666">(标签模板加[!--num--])</font></td>
  2157. </tr>
  2158. </table></td>
  2159. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2160. <tr>
  2161. <td width="24%">限制显示栏目数:</td>
  2162. <td width="76%"><input name="classnum" type="text" id="titlelen5" value="0">
  2163. <font color="#666666">(0为不限制)</font> </td>
  2164. </tr>
  2165. </table></td>
  2166. </tr>
  2167. <tr>
  2168. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2169. </td>
  2170. </tr>
  2171. <tr>
  2172. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#showclasstemp" target="_blank" title="查看详细标签语法">[showclasstemp]父栏目ID,标签模板ID,是否显示栏目信息数,显示栏目数[/showclasstemp]</a></font></td>
  2173. </tr>
  2174. <tr>
  2175. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2176. <tr>
  2177. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2178. </tr>
  2179. <tr>
  2180. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2181. </tr>
  2182. </table></td>
  2183. </tr>
  2184. </table>
  2185. </form>
  2186. <?php
  2187. }
  2188. elseif($bqname=='eshowzt')
  2189. {
  2190. //分类
  2191. $zcstr='';
  2192. $zcsql=$empire->query("select classid,classname from {$dbtbpre}enewsztclass order by classid");
  2193. while($zcr=$empire->fetch($zcsql))
  2194. {
  2195. $zcstr.="<option value='".$zcr[classid]."'>".$zcr[classname]."</option>";
  2196. }
  2197. ?>
  2198. <script>
  2199. //返回标签
  2200. function ShowBqFun(){
  2201. var obj=document.bqform;
  2202. var bqstr;
  2203. var addstr='';
  2204. var fclassid=ReturnAddYh(obj.classid.value);
  2205. var fzcid=obj.zcid.value;
  2206. var ftempid=obj.tempid.value;
  2207. var fclassnum=obj.classnum.value;
  2208. bqstr="[eshowzt]"+ftempid+","+fzcid+","+fclassnum+","+fclassid+"[/eshowzt]";
  2209. obj.bqshow.value=bqstr;
  2210. }
  2211. </script>
  2212. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2213. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2214. <?=$ecms_hashur['eform']?>
  2215. <tr>
  2216. <td height="25" colspan="2" class="header">eshowzt标签生成
  2217. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2218. </tr>
  2219. <tr>
  2220. <td height="25" colspan="2">标签基本参数</td>
  2221. </tr>
  2222. <tr>
  2223. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2224. <tr>
  2225. <td width="24%">标签模板:</td>
  2226. <td width="76%"><select name="tempid" id="select20">
  2227. <?=$bqtemp?>
  2228. </select> <input type="button" name="Submit622232353" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  2229. </tr>
  2230. </table></td>
  2231. <td width="50%" bgcolor="#FFFFFF">
  2232. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2233. <tr>
  2234. <td width="24%">限制专题分类:</td>
  2235. <td width="76%"><select name="zcid" id="select19">
  2236. <option value="0">不限</option>
  2237. <?=$zcstr?>
  2238. </select> <input type="button" name="Submit622232352" value="管理专题分类" onclick="window.open('../special/ListZtClass.php<?=$ecms_hashur['whehref']?>');"></td>
  2239. </tr>
  2240. </table></td>
  2241. </tr>
  2242. <tr>
  2243. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2244. <tr>
  2245. <td width="24%">限制显示专题数:</td>
  2246. <td width="76%"><input name="classnum" type="text" id="classnum" value="0">
  2247. <font color="#666666">(0为不限制)</font> </td>
  2248. </tr>
  2249. </table> </td>
  2250. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2251. <tr>
  2252. <td width="24%">限制所属栏目ID:</td>
  2253. <td width="76%"><input name="classid" type="text" id="classid" value="0">
  2254. <font color="#666666">
  2255. <input type="button" name="Submit422" value="查看栏目ID" onclick="window.open('../ListClass.php<?=$ecms_hashur['whehref']?>');">
  2256. (0为不限,多个ID用,号隔开)</font> </td>
  2257. </tr>
  2258. </table></td>
  2259. </tr>
  2260. <tr>
  2261. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2262. </td>
  2263. </tr>
  2264. <tr>
  2265. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#eshowzt" target="_blank" title="查看详细标签语法">[eshowzt]标签模板ID,专题类别ID,显示专题数,所属栏目ID[/eshowzt]</a></font></td>
  2266. </tr>
  2267. <tr>
  2268. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2269. <tr>
  2270. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2271. </tr>
  2272. <tr>
  2273. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2274. </tr>
  2275. </table></td>
  2276. </tr>
  2277. </table>
  2278. </form>
  2279. <?php
  2280. }
  2281. elseif($bqname=='listshowclass')
  2282. {
  2283. ?>
  2284. <script>
  2285. //返回标签
  2286. function ShowBqFun(){
  2287. var obj=document.bqform;
  2288. var bqstr;
  2289. var addstr='';
  2290. var fclassid=obj.classid.value;
  2291. var fshownum=obj.shownum.value;
  2292. var ftempid=obj.tempid.value;
  2293. var fclassnum=obj.classnum.value;
  2294. bqstr="[listshowclass]"+fclassid+","+ftempid+","+fshownum+","+fclassnum+"[/listshowclass]";
  2295. obj.bqshow.value=bqstr;
  2296. }
  2297. </script>
  2298. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2299. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2300. <?=$ecms_hashur['eform']?>
  2301. <tr>
  2302. <td height="25" colspan="2" class="header">listshowclass标签生成
  2303. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2304. </tr>
  2305. <tr>
  2306. <td height="25" colspan="2">标签基本参数 </td>
  2307. </tr>
  2308. <tr>
  2309. <td width="50%" height="25" bgcolor="#FFFFFF">
  2310. <?=$changeobject?>
  2311. </td>
  2312. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2313. <tr>
  2314. <td width="24%">标签模板:</td>
  2315. <td width="76%"><select name="tempid" id="select15">
  2316. <?=$bqtemp?>
  2317. </select> <input type="button" name="Submit62223235" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  2318. </tr>
  2319. </table></td>
  2320. </tr>
  2321. <tr>
  2322. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2323. <tr>
  2324. <td width="24%">显示栏目信息数:</td>
  2325. <td width="76%"><select name="shownum" id="select17">
  2326. <option value="0">不显示</option>
  2327. <option value="1">显示</option>
  2328. </select>
  2329. <font color="#666666">(标签模板加[!--num--])</font></td>
  2330. </tr>
  2331. </table></td>
  2332. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2333. <tr>
  2334. <td width="24%">限制显示栏目数:</td>
  2335. <td width="76%"><input name="classnum" type="text" id="titlelen5" value="0">
  2336. <font color="#666666">(0为不限制)</font> </td>
  2337. </tr>
  2338. </table></td>
  2339. </tr>
  2340. <tr>
  2341. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2342. </td>
  2343. </tr>
  2344. <tr>
  2345. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#listshowclass" target="_blank" title="查看详细标签语法">[listshowclass]父栏目ID,标签模板ID,是否显示栏目信息数,显示栏目数[/listshowclass]</a></font></td>
  2346. </tr>
  2347. <tr>
  2348. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2349. <tr>
  2350. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2351. </tr>
  2352. <tr>
  2353. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2354. </tr>
  2355. </table></td>
  2356. </tr>
  2357. </table>
  2358. </form>
  2359. <?php
  2360. }
  2361. elseif($bqname=='phomead')
  2362. {
  2363. ?>
  2364. <script>
  2365. //返回标签
  2366. function ShowBqFun(){
  2367. var obj=document.bqform;
  2368. var bqstr;
  2369. var addstr='';
  2370. var fclassid=obj.classid.value;
  2371. bqstr="[phomead]"+fclassid+"[/phomead]";
  2372. obj.bqshow.value=bqstr;
  2373. }
  2374. </script>
  2375. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2376. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2377. <?=$ecms_hashur['eform']?>
  2378. <tr>
  2379. <td height="25" colspan="2" class="header">phomead标签生成
  2380. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2381. </tr>
  2382. <tr>
  2383. <td height="25" colspan="2">标签基本参数 </td>
  2384. </tr>
  2385. <tr>
  2386. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2387. <tr>
  2388. <td width="24%">广告ID:</td>
  2389. <td width="76%"><input name="classid" type="text" id="classid" value="0">
  2390. <input type="button" name="Submit622232354" value="查看广告ID" onclick="window.open('../tool/ListAd.php<?=$ecms_hashur['whehref']?>');"></td>
  2391. </tr>
  2392. </table></td>
  2393. <td width="50%" bgcolor="#FFFFFF">&nbsp;</td>
  2394. </tr>
  2395. <tr>
  2396. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2397. </td>
  2398. </tr>
  2399. <tr>
  2400. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomead" target="_blank" title="查看详细标签语法">[phomead]广告ID[/phomead]</a></font></td>
  2401. </tr>
  2402. <tr>
  2403. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2404. <tr>
  2405. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2406. </tr>
  2407. <tr>
  2408. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2409. </tr>
  2410. </table></td>
  2411. </tr>
  2412. </table>
  2413. </form>
  2414. <?php
  2415. }
  2416. elseif($bqname=='phomevote')
  2417. {
  2418. ?>
  2419. <script>
  2420. //返回标签
  2421. function ShowBqFun(){
  2422. var obj=document.bqform;
  2423. var bqstr;
  2424. var addstr='';
  2425. var fclassid=obj.classid.value;
  2426. bqstr="[phomevote]"+fclassid+"[/phomevote]";
  2427. obj.bqshow.value=bqstr;
  2428. }
  2429. </script>
  2430. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2431. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2432. <?=$ecms_hashur['eform']?>
  2433. <tr>
  2434. <td height="25" colspan="2" class="header">phomevote标签生成
  2435. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2436. </tr>
  2437. <tr>
  2438. <td height="25" colspan="2">标签基本参数 </td>
  2439. </tr>
  2440. <tr>
  2441. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2442. <tr>
  2443. <td width="24%">投票ID:</td>
  2444. <td width="76%"><input name="classid" type="text" id="classid" value="0">
  2445. <input type="button" name="Submit622232354" value="查看投票ID" onclick="window.open('../tool/ListVote.php<?=$ecms_hashur['whehref']?>');"></td>
  2446. </tr>
  2447. </table></td>
  2448. <td width="50%" bgcolor="#FFFFFF">&nbsp;</td>
  2449. </tr>
  2450. <tr>
  2451. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2452. </td>
  2453. </tr>
  2454. <tr>
  2455. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomevote" target="_blank" title="查看详细标签语法">[phomevote]投票ID[/phomevote]</a></font></td>
  2456. </tr>
  2457. <tr>
  2458. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2459. <tr>
  2460. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2461. </tr>
  2462. <tr>
  2463. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2464. </tr>
  2465. </table></td>
  2466. </tr>
  2467. </table>
  2468. </form>
  2469. <?php
  2470. }
  2471. elseif($bqname=='phomelink')
  2472. {
  2473. //类别
  2474. $cstr='';
  2475. $csql=$empire->query("select classid,classname from {$dbtbpre}enewslinkclass order by classid");
  2476. while($cr=$empire->fetch($csql))
  2477. {
  2478. $cstr.="<option value='".$cr[classid]."'>".$cr[classname]."</option>";
  2479. }
  2480. ?>
  2481. <script>
  2482. //返回标签
  2483. function ShowBqFun(){
  2484. var obj=document.bqform;
  2485. var bqstr;
  2486. var addstr='';
  2487. var fline=obj.line.value;
  2488. var flnum=obj.lnum.value;
  2489. var fcid=obj.cid.value;
  2490. var fdotype=obj.dotype.value;
  2491. var fshowlink=obj.showlink.value;
  2492. bqstr="[phomelink]"+fline+","+flnum+","+fdotype+","+fcid+","+fshowlink+"[/phomelink]";
  2493. obj.bqshow.value=bqstr;
  2494. }
  2495. </script>
  2496. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2497. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2498. <?=$ecms_hashur['eform']?>
  2499. <tr>
  2500. <td height="25" colspan="2" class="header">phomelink标签生成
  2501. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2502. </tr>
  2503. <tr>
  2504. <td height="25" colspan="2">标签基本参数</td>
  2505. </tr>
  2506. <tr>
  2507. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2508. <tr>
  2509. <td width="24%">操作类型:</td>
  2510. <td width="76%"><select name="dotype" id="select20">
  2511. <option value="0">所有链接</option>
  2512. <option value="1">只调用图片链接</option>
  2513. <option value="2">只调用文字链接</option>
  2514. </select> </td>
  2515. </tr>
  2516. </table></td>
  2517. <td width="50%" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2518. <tr>
  2519. <td width="24%">限制分类:</td>
  2520. <td width="76%"><select name="cid" id="select19">
  2521. <option value="0">不限</option>
  2522. <?=$cstr?>
  2523. </select> <input type="button" name="Submit622232352" value="管理友情链接分类" onclick="window.open('../tool/LinkClass.php<?=$ecms_hashur['whehref']?>');"></td>
  2524. </tr>
  2525. </table></td>
  2526. </tr>
  2527. <tr>
  2528. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2529. <tr>
  2530. <td width="24%">调用总数量:</td>
  2531. <td width="76%"><input name="lnum" type="text" id="lnum" value="12"></td>
  2532. </tr>
  2533. </table></td>
  2534. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2535. <tr>
  2536. <td width="24%">每行显示数量:</td>
  2537. <td width="76%"><input name="line" type="text" id="line5" value="6">
  2538. </td>
  2539. </tr>
  2540. </table></td>
  2541. </tr>
  2542. <tr>
  2543. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2544. <tr>
  2545. <td width="24%">显示原链接:</td>
  2546. <td width="76%"><select name="showlink" id="select18">
  2547. <option value="0">统计点击链接</option>
  2548. <option value="1">显示原链接</option>
  2549. </select> </td>
  2550. </tr>
  2551. </table></td>
  2552. <td bgcolor="#FFFFFF">&nbsp;</td>
  2553. </tr>
  2554. <tr>
  2555. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2556. </td>
  2557. </tr>
  2558. <tr>
  2559. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#phomelink" target="_blank" title="查看详细标签语法">[phomelink]每行显示数,显示总数,操作类型,分类id,是否显示原链接[/phomelink]</a></font></td>
  2560. </tr>
  2561. <tr>
  2562. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2563. <tr>
  2564. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2565. </tr>
  2566. <tr>
  2567. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2568. </tr>
  2569. </table></td>
  2570. </tr>
  2571. </table>
  2572. </form>
  2573. <?php
  2574. }
  2575. elseif($bqname=='gbookinfo')
  2576. {
  2577. //分类
  2578. $cstr='';
  2579. $csql=$empire->query("select bid,bname from {$dbtbpre}enewsgbookclass order by bid");
  2580. while($cr=$empire->fetch($csql))
  2581. {
  2582. $cstr.="<option value='".$cr[bid]."'>".$cr[bname]."</option>";
  2583. }
  2584. ?>
  2585. <script>
  2586. //返回标签
  2587. function ShowBqFun(){
  2588. var obj=document.bqform;
  2589. var bqstr;
  2590. var addstr='';
  2591. var fline=obj.line.value;
  2592. var fcid=obj.cid.value;
  2593. var ftempid=obj.tempid.value;
  2594. bqstr="[gbookinfo]"+fline+","+ftempid+","+fcid+"[/gbookinfo]";
  2595. obj.bqshow.value=bqstr;
  2596. }
  2597. </script>
  2598. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2599. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2600. <?=$ecms_hashur['eform']?>
  2601. <tr>
  2602. <td height="25" colspan="2" class="header">gbookinfo标签生成
  2603. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2604. </tr>
  2605. <tr>
  2606. <td height="25" colspan="2">标签基本参数</td>
  2607. </tr>
  2608. <tr>
  2609. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2610. <tr>
  2611. <td width="24%">标签模板:</td>
  2612. <td width="76%"><select name="tempid" id="select20">
  2613. <?=$bqtemp?>
  2614. </select> <input type="button" name="Submit622232353" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  2615. </tr>
  2616. </table></td>
  2617. <td width="50%" bgcolor="#FFFFFF">
  2618. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2619. <tr>
  2620. <td width="24%">限制留言分类:</td>
  2621. <td width="76%"><select name="cid" id="select19">
  2622. <option value="0">不限</option>
  2623. <?=$cstr?>
  2624. </select> <input type="button" name="Submit622232352" value="管理留言分类" onclick="window.open('../tool/GbookClass.php<?=$ecms_hashur['whehref']?>');"></td>
  2625. </tr>
  2626. </table></td>
  2627. </tr>
  2628. <tr>
  2629. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2630. <tr>
  2631. <td width="24%">调用数量:</td>
  2632. <td width="76%"><input name="line" type="text" id="line" value="5">
  2633. </td>
  2634. </tr>
  2635. </table> </td>
  2636. <td bgcolor="#FFFFFF">&nbsp;</td>
  2637. </tr>
  2638. <tr>
  2639. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2640. </td>
  2641. </tr>
  2642. <tr>
  2643. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#gbookinfo" target="_blank" title="查看详细标签语法">[gbookinfo]显示信息数,标签模板ID,留言分类ID[/gbookinfo]</a></font></td>
  2644. </tr>
  2645. <tr>
  2646. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2647. <tr>
  2648. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2649. </tr>
  2650. <tr>
  2651. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2652. </tr>
  2653. </table></td>
  2654. </tr>
  2655. </table>
  2656. </form>
  2657. <?php
  2658. }
  2659. elseif($bqname=='showplinfo')
  2660. {
  2661. ?>
  2662. <script>
  2663. //返回标签
  2664. function ShowBqFun(){
  2665. var obj=document.bqform;
  2666. var bqstr;
  2667. var addstr='';
  2668. var fline=obj.line.value;
  2669. var fclassid=obj.classid.value;
  2670. var fid=obj.id.value;
  2671. var ftempid=obj.tempid.value;
  2672. var fisgood=obj.isgood.value;
  2673. var fdotype=obj.dotype.value;
  2674. bqstr="[showplinfo]"+fline+","+ftempid+","+fclassid+","+fid+","+fisgood+","+fdotype+"[/showplinfo]";
  2675. obj.bqshow.value=bqstr;
  2676. }
  2677. </script>
  2678. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2679. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2680. <?=$ecms_hashur['eform']?>
  2681. <tr>
  2682. <td height="25" colspan="2" class="header">showplinfo标签生成
  2683. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2684. </tr>
  2685. <tr>
  2686. <td height="25" colspan="2">标签基本参数</td>
  2687. </tr>
  2688. <tr>
  2689. <td width="50%" height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2690. <tr>
  2691. <td width="24%">操作类型:</td>
  2692. <td width="76%"><select name="dotype" id="select22">
  2693. <option value="0">按发布时间排列</option>
  2694. <option value="1">按支持数排列</option>
  2695. <option value="2">按反对数排列</option>
  2696. </select> </td>
  2697. </tr>
  2698. </table></td>
  2699. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2700. <tr>
  2701. <td width="24%">标签模板:</td>
  2702. <td width="76%"><select name="tempid" id="select21">
  2703. <?=$bqtemp?>
  2704. </select> <input type="button" name="Submit6222323532" value="管理标签模板" onclick="window.open('ListBqtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
  2705. </tr>
  2706. </table> </td>
  2707. </tr>
  2708. <tr>
  2709. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2710. <tr>
  2711. <td width="24%">调用数量:</td>
  2712. <td width="76%"><input name="line" type="text" id="line" value="10">
  2713. </td>
  2714. </tr>
  2715. </table></td>
  2716. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2717. <tr>
  2718. <td width="24%">限制栏目ID:</td>
  2719. <td width="76%"><input name="classid" type="text" id="classid" value="0">
  2720. [<a href="#empirecms" onclick="document.bqform.classid.value='$GLOBALS[navclassid]';">当前栏目ID</a>]
  2721. <font color="#666666">
  2722. <input type="button" name="Submit4222" value="查看栏目ID" onclick="window.open('../ListClass.php<?=$ecms_hashur['whehref']?>');">
  2723. (0为不限)</font> </td>
  2724. </tr>
  2725. </table></td>
  2726. </tr>
  2727. <tr>
  2728. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2729. <tr>
  2730. <td width="24%">限制信息ID:</td>
  2731. <td width="76%"><input name="id" type="text" id="id" value="0">
  2732. [<a href="#empirecms" onclick="document.bqform.id.value='$navinfor[id]';">当前信息ID</a>] <font color="#666666"> (0为不限)</font></td>
  2733. </tr>
  2734. </table></td>
  2735. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2736. <tr>
  2737. <td width="24%">只调用推荐评论:</td>
  2738. <td width="76%"><select name="isgood" id="select23">
  2739. <option value="0">不限</option>
  2740. <option value="1">只调用推荐评论</option>
  2741. </select> </td>
  2742. </tr>
  2743. </table></td>
  2744. </tr>
  2745. <tr>
  2746. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2747. </td>
  2748. </tr>
  2749. <tr>
  2750. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#showplinfo" target="_blank" title="查看详细标签语法">[showplinfo]调用条数,标签模板ID,栏目ID,信息ID,显示推荐评论,操作类型[/showplinfo]</a></font></td>
  2751. </tr>
  2752. <tr>
  2753. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2754. <tr>
  2755. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2756. </tr>
  2757. <tr>
  2758. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2759. </tr>
  2760. </table></td>
  2761. </tr>
  2762. </table>
  2763. </form>
  2764. <?php
  2765. }
  2766. elseif($bqname=='echocheckbox')
  2767. {
  2768. ?>
  2769. <script>
  2770. //返回标签
  2771. function ShowBqFun(){
  2772. var obj=document.bqform;
  2773. var bqstr;
  2774. var addstr='';
  2775. var flfield=obj.lfield.value;
  2776. var fexpstr=obj.expstr.value;
  2777. bqstr="[echocheckbox]'"+flfield+"','"+fexpstr+"'[/echocheckbox]";
  2778. obj.bqshow.value=bqstr;
  2779. }
  2780. </script>
  2781. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2782. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2783. <?=$ecms_hashur['eform']?>
  2784. <tr>
  2785. <td height="25" colspan="2" class="header">echocheckbox标签生成
  2786. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2787. </tr>
  2788. <tr>
  2789. <td height="25" colspan="2">标签基本参数 </td>
  2790. </tr>
  2791. <tr>
  2792. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2793. <tr>
  2794. <td width="24%">复选字段名:</td>
  2795. <td width="76%"><input name="lfield" type="text" id="lfield" value="title">
  2796. </td>
  2797. </tr>
  2798. </table></td>
  2799. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2800. <tr>
  2801. <td width="24%">分隔符:</td>
  2802. <td width="76%"><input name="expstr" type="text" id="expstr" value="&lt;br&gt;">
  2803. </td>
  2804. </tr>
  2805. </table></td>
  2806. </tr>
  2807. <tr>
  2808. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2809. </td>
  2810. </tr>
  2811. <tr>
  2812. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#echocheckbox" target="_blank" title="查看详细标签语法">[echocheckbox]'字段','分隔符'[/echocheckbox]</a></font></td>
  2813. </tr>
  2814. <tr>
  2815. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2816. <tr>
  2817. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2818. </tr>
  2819. <tr>
  2820. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2821. </tr>
  2822. </table></td>
  2823. </tr>
  2824. </table>
  2825. </form>
  2826. <?php
  2827. }
  2828. elseif($bqname=='includefile')
  2829. {
  2830. ?>
  2831. <script>
  2832. //返回标签
  2833. function ShowBqFun(){
  2834. var obj=document.bqform;
  2835. var bqstr;
  2836. var addstr='';
  2837. var flfile=obj.lfile.value;
  2838. bqstr="[includefile]'"+flfile+"'[/includefile]";
  2839. obj.bqshow.value=bqstr;
  2840. }
  2841. </script>
  2842. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2843. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2844. <?=$ecms_hashur['eform']?>
  2845. <tr>
  2846. <td height="25" colspan="2" class="header">includefile标签生成
  2847. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2848. </tr>
  2849. <tr>
  2850. <td height="25" colspan="2">标签基本参数 </td>
  2851. </tr>
  2852. <tr>
  2853. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2854. <tr>
  2855. <td width="24%">引用文件地址:</td>
  2856. <td width="76%"><input name="lfile" type="text" id="lfile" value="../../header.html">
  2857. <font color="#666666">(相对于后台目录)</font> </td>
  2858. </tr>
  2859. </table></td>
  2860. <td width="50%" bgcolor="#FFFFFF">&nbsp;</td>
  2861. </tr>
  2862. <tr>
  2863. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2864. </td>
  2865. </tr>
  2866. <tr>
  2867. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#includefile" target="_blank" title="查看详细标签语法">[includefile]'文件地址'[/includefile]</a></font></td>
  2868. </tr>
  2869. <tr>
  2870. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2871. <tr>
  2872. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2873. </tr>
  2874. <tr>
  2875. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2876. </tr>
  2877. </table></td>
  2878. </tr>
  2879. </table>
  2880. </form>
  2881. <?php
  2882. }
  2883. elseif($bqname=='readhttp')
  2884. {
  2885. ?>
  2886. <script>
  2887. //返回标签
  2888. function ShowBqFun(){
  2889. var obj=document.bqform;
  2890. var bqstr;
  2891. var addstr='';
  2892. var flfile=obj.lfile.value;
  2893. bqstr="[readhttp]'"+flfile+"'[/readhttp]";
  2894. obj.bqshow.value=bqstr;
  2895. }
  2896. </script>
  2897. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2898. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ecmsinfo">
  2899. <?=$ecms_hashur['eform']?>
  2900. <tr>
  2901. <td height="25" colspan="2" class="header">readhttp标签生成
  2902. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2903. </tr>
  2904. <tr>
  2905. <td height="25" colspan="2">标签基本参数 </td>
  2906. </tr>
  2907. <tr>
  2908. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2909. <tr>
  2910. <td width="24%">读取网页地址:</td>
  2911. <td width="76%"><input name="lfile" type="text" id="lfile" value="http://">
  2912. </td>
  2913. </tr>
  2914. </table></td>
  2915. <td width="50%" bgcolor="#FFFFFF">&nbsp;</td>
  2916. </tr>
  2917. <tr>
  2918. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2919. </td>
  2920. </tr>
  2921. <tr>
  2922. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#readhttp" target="_blank" title="查看详细标签语法">[readhttp]'页面地址'[/readhttp]</a></font></td>
  2923. </tr>
  2924. <tr>
  2925. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2926. <tr>
  2927. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2928. </tr>
  2929. <tr>
  2930. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2931. </tr>
  2932. </table></td>
  2933. </tr>
  2934. </table>
  2935. </form>
  2936. <?php
  2937. }
  2938. elseif($bqname=='ShowMemberInfo')
  2939. {
  2940. ?>
  2941. <script>
  2942. //返回标签
  2943. function ShowBqFun(){
  2944. var obj=document.bqform;
  2945. var bqstr;
  2946. var addstr='';
  2947. var flfield=obj.lfield.value;
  2948. var fmuserid=obj.muserid.value;
  2949. bqstr="<?="<?php\\r\\n\$userr=sys_ShowMemberInfo(\"+fmuserid+\",'\"+flfield+\"');\\r\\n?>"?>\r\n";
  2950. obj.bqshow.value=bqstr;
  2951. }
  2952. </script>
  2953. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  2954. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ShowMemberInfo">
  2955. <?=$ecms_hashur['eform']?>
  2956. <tr>
  2957. <td height="25" colspan="2" class="header">ShowMemberInfo函数调用生成
  2958. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  2959. </tr>
  2960. <tr>
  2961. <td height="25" colspan="2">标签基本参数 </td>
  2962. </tr>
  2963. <tr>
  2964. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2965. <tr>
  2966. <td width="24%">会员帐号ID:</td>
  2967. <td width="76%"><input name="muserid" type="text" id="muserid" value="0">
  2968. <input type="button" name="Submit62223235222" value="查看会员ID" onclick="window.open('../member/ListMember.php<?=$ecms_hashur['whehref']?>');">
  2969. <font color="#666666">(0为发布者ID)</font></td>
  2970. </tr>
  2971. </table></td>
  2972. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2973. <tr>
  2974. <td width="24%">查询字段:</td>
  2975. <td width="76%">
  2976. <input name="lfield" type="text" id="lfield">
  2977. <font color="#666666">(空为查询所有会员字段)</font> </td>
  2978. </tr>
  2979. </table></td>
  2980. </tr>
  2981. <tr>
  2982. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  2983. </td>
  2984. </tr>
  2985. <tr>
  2986. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#ShowMemberInfo" target="_blank" title="查看详细标签语法">sys_ShowMemberInfo(用户ID,查询字段)</a></font></td>
  2987. </tr>
  2988. <tr>
  2989. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2990. <tr>
  2991. <td><textarea name="bqshow" cols="65" rows="5" id="bqshow" style="width:100%"></textarea></td>
  2992. </tr>
  2993. <tr>
  2994. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  2995. </tr>
  2996. </table></td>
  2997. </tr>
  2998. </table>
  2999. </form>
  3000. <?php
  3001. }
  3002. elseif($bqname=='ListMemberInfo')
  3003. {
  3004. ?>
  3005. <script>
  3006. //返回标签
  3007. function ShowBqFun(){
  3008. var obj=document.bqform;
  3009. var bqstr;
  3010. var addstr='';
  3011. var tfont='';
  3012. var dh='';
  3013. var fdotype=obj.dotype.value;
  3014. var fline=obj.line.value;
  3015. var fmgroupid=obj.mgroupid.value;
  3016. var fmuserid=obj.muserid.value;
  3017. var flfield=obj.lfield.value;
  3018. bqstr="<?="<?php\\r\\n\$usersql=sys_ListMemberInfo(\"+fline+\",\"+fdotype+\",'\"+fmgroupid+\"','\"+fmuserid+\"','\"+flfield+\"');\\r\\nwhile(\$userr=\$empire->fetch(\$usersql))\\r\\n{\\r\\n?>\\r\\n<a href=\\\"/e/space/?userid=<?=\$userr[userid]?>\\\"><?=\$userr[username]?></a><br>\\r\\n<?php\\r\\n}\\r\\n?>"?>";
  3019. obj.bqshow.value=bqstr;
  3020. }
  3021. </script>
  3022. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  3023. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="ListMemberInfo">
  3024. <?=$ecms_hashur['eform']?>
  3025. <tr>
  3026. <td height="25" colspan="2" class="header">ListMemberInfo调用函数生成
  3027. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  3028. </tr>
  3029. <tr>
  3030. <td height="25" colspan="2">标签基本参数 </td>
  3031. </tr>
  3032. <tr>
  3033. <td width="50%" height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  3034. <tr>
  3035. <td width="24%">操作类型:</td>
  3036. <td width="76%"><select name="dotype" id="dotype">
  3037. <option value="0">按注册时间排序</option>
  3038. <option value="1">按积分排序排序</option>
  3039. <option value="2">按资金排行排序</option>
  3040. <option value="3">按会员空间人气排行排序</option>
  3041. </select> </td>
  3042. </tr>
  3043. </table></td>
  3044. <td width="50%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3045. <tr>
  3046. <td width="24%">调用数量:</td>
  3047. <td width="76%"><input name="line" type="text" id="line7" value="10">
  3048. </td>
  3049. </tr>
  3050. </table></td>
  3051. </tr>
  3052. <tr>
  3053. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3054. <tr>
  3055. <td width="24%">限制会员组ID:</td>
  3056. <td width="76%"><input name="mgroupid" type="text" id="mgroupid">
  3057. <input type="button" name="Submit622232352222" value="查看会员组ID" onclick="window.open('../member/ListMemberGroup.php<?=$ecms_hashur['whehref']?>');">
  3058. <font color="#666666">(不设置为不限,多个会员组用逗号隔开,如:'1,2') </font></td>
  3059. </tr>
  3060. </table></td>
  3061. <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3062. <tr>
  3063. <td width="24%">会员帐号ID:</td>
  3064. <td width="76%"><input name="muserid" type="text" id="muserid">
  3065. <input type="button" name="Submit622232352223" value="查看会员ID" onclick="window.open('../member/ListMember.php<?=$ecms_hashur['whehref']?>');">
  3066. <font color="#666666">(不设置为不限,多个用户ID用逗号隔开,如:'25,27')</font></td>
  3067. </tr>
  3068. </table></td>
  3069. </tr>
  3070. <tr>
  3071. <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3072. <tr>
  3073. <td width="24%">查询字段:</td>
  3074. <td width="76%"> <input name="lfield" type="text" id="lfield3"> <font color="#666666">(空为查询所有会员字段)</font>
  3075. </td>
  3076. </tr>
  3077. </table></td>
  3078. <td bgcolor="#FFFFFF">&nbsp;</td>
  3079. </tr>
  3080. <tr>
  3081. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit" value="输出标签" onclick="ShowBqFun();">
  3082. </td>
  3083. </tr>
  3084. <tr>
  3085. <td height="25" colspan="2" bgcolor="#FFFFFF"><font color="#333333"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#ListMemberInfo" target="_blank" title="查看详细标签语法">sys_ListMemberInfo(调用条数,操作类型,会员组ID,用户ID,查询字段)</a></font></td>
  3086. </tr>
  3087. <tr>
  3088. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3089. <tr>
  3090. <td><textarea name="bqshow" cols="65" rows="12" id="bqshow" style="width:100%"></textarea></td>
  3091. </tr>
  3092. <tr>
  3093. <td height="25"><input type="button" name="Submit2" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  3094. </tr>
  3095. </table></td>
  3096. </tr>
  3097. </table>
  3098. </form>
  3099. <?php
  3100. }
  3101. elseif($bqname=='spaceeloop')
  3102. {
  3103. ?>
  3104. <script>
  3105. //返回标签
  3106. function ShowBqFun(){
  3107. var obj=document.bqform;
  3108. var bqstr;
  3109. var addstr='';
  3110. var fclassid=obj.classid.value;
  3111. var fline=obj.line.value;
  3112. var fdotype=obj.dotype.value;
  3113. var fispic=obj.ispic.value;
  3114. var faddsql=obj.addsql.value;
  3115. var forderby=obj.orderby.value;
  3116. addstr=ReturnAddSql(faddsql,forderby);
  3117. bqstr="<?="<?php\\r\\n\$spacesql=espace_eloop(\"+fclassid+\",\"+fline+\",\"+fdotype+\",\"+fispic+addstr+\");\\r\\nwhile(\$spacer=\$empire->fetch(\$spacesql))\\r\\n{\\r\\n \$spacesr=espace_eloop_sp(\$spacer);\\r\\n?>\\r\\n<a href=\\\"<?=\$spacesr[titleurl]?>\\\" target=\\\"_blank\\\"><?=\$spacer[title]?></a> <br>\\r\\n<?php\\r\\n}\\r\\n?>"?>";
  3118. obj.bqshow.value=bqstr;
  3119. }
  3120. </script>
  3121. <form action="MakeBq.php" method="GET" name="bqform" id="bqform">
  3122. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id="spaceeloop">
  3123. <?=$ecms_hashur['eform']?>
  3124. <tr>
  3125. <td height="25" colspan="2" class="header">spaceeloop会员空间灵动标签生成
  3126. <input name="bqname" type="hidden" id="bqname" value="<?=$bqname?>"></td>
  3127. </tr>
  3128. <tr>
  3129. <td height="25" colspan="2">选择调用对象:
  3130. <select name="doobject" id="doobject" onchange="self.location.href='MakeBq.php?<?=$ecms_hashur['ehref']?>&bqname=<?=$bqname?>&addselfinfo=1&doobject='+this.options[this.selectedIndex].value">
  3131. <option value="1"<?=$doobject==1?' selected':''?>>按默认表(
  3132. <?=$public_r['tbname']?>
  3133. )</option>
  3134. <option value="2"<?=$doobject==2?' selected':''?>>栏目</option>
  3135. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  3136. <option value="4"<?=$doobject==4?' selected':''?>>数据表</option>
  3137. <option value="5"<?=$doobject==5?' selected':''?>>标题分类</option>
  3138. <option value="6"<?=$doobject==6?' selected':''?>>按SQL调用</option>
  3139. </select> </td>
  3140. </tr>
  3141. <tr>
  3142. <td width="50%" height="25" bgcolor="#FFFFFF">
  3143. <?=$dotype?>
  3144. </td>
  3145. <td width="50%" bgcolor="#FFFFFF">
  3146. <?=$changeobject?>
  3147. </td>
  3148. </tr>
  3149. <tr>
  3150. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  3151. <tr>
  3152. <td width="24%">调用数量:</td>
  3153. <td width="76%"><input name="line" type="text" id="line" value="10"></td>
  3154. </tr>
  3155. </table></td>
  3156. <td bgcolor="#FFFFFF">只调用有标题图片的信息:
  3157. <select name="ispic" id="select6">
  3158. <option value="0">不限</option>
  3159. <option value="1">是</option>
  3160. </select> </td>
  3161. </tr>
  3162. <tr>
  3163. <td height="25" colspan="2">选项设置</td>
  3164. </tr>
  3165. <tr>
  3166. <td height="25" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  3167. <tr>
  3168. <td width="24%">附加SQL条件:</td>
  3169. <td width="76%"><input name="addsql" type="text" id="addsql"> <select name="addsqlselect" onchange="document.bqform.addsql.value=this.value">
  3170. <option value=""> -- 预选项 -- </option>
  3171. <option value="isgood=1">1级推荐</option>
  3172. <option value="firsttitle=1">1级头条</option>
  3173. <option value="field='值'">字段等于某值</option>
  3174. </select></td>
  3175. </tr>
  3176. </table></td>
  3177. <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  3178. <tr>
  3179. <td width="24%">显示排序:</td>
  3180. <td width="76%"><input name="orderby" type="text" id="orderby"> <select name="orderbyselect" onchange="document.bqform.orderby.value=this.value">
  3181. <option value=""> -- 预选项 -- </option>
  3182. <option value="newstime DESC">按发布时间降序排序</option>
  3183. <option value="newstime ASC">按发布时间升序排序</option>
  3184. <option value="id DESC">按ID降序排序</option>
  3185. <option value="onclick DESC">按点击率降序排序</option>
  3186. <option value="totaldown DESC">按下载数降序排序</option>
  3187. <option value="plnum DESC">按评论数降序排序</option>
  3188. <option value="diggtop DESC">按顶数(digg)降序排序</option>
  3189. </select></td>
  3190. </tr>
  3191. </table></td>
  3192. </tr>
  3193. <tr>
  3194. <td height="25" colspan="2" bgcolor="#FFFFFF"><input type="button" name="Submit3" value="输出标签" onclick="ShowBqFun();">
  3195. </td>
  3196. </tr>
  3197. <tr>
  3198. <td height="25" colspan="2" bgcolor="#FFFFFF"><a href="EnewsBq.php<?=$ecms_hashur['whehref']?>#spaceeloop" target="_blank" title="查看详细标签语法">&lt;?php<br>
  3199. $spacesql=espace_eloop(栏目ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序);<br>
  3200. while($spacer=$empire-&gt;fetch($spacesql))<br>
  3201. {<br>
  3202. $spacesr=espace_eloop_sp($spacer);<br>
  3203. ?&gt;<br>
  3204. 模板代码内容<br>
  3205. &lt;?php<br>
  3206. }<br>
  3207. ?&gt;</a></td>
  3208. </tr>
  3209. <tr>
  3210. <td height="25" colspan="2" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  3211. <tr>
  3212. <td><textarea name="bqshow" cols="65" rows="12" id="bqshow" style="width:100%"></textarea></td>
  3213. </tr>
  3214. <tr>
  3215. <td height="25"><input type="button" name="Submit22" value="复制上面标签内容" onclick="window.clipboardData.setData('Text',document.bqform.bqshow.value);document.bqform.bqshow.select()"></td>
  3216. </tr>
  3217. </table></td>
  3218. </tr>
  3219. </table>
  3220. </form>
  3221. <?php
  3222. }
  3223. ?>
  3224. </body>
  3225. </html>
  3226. <?php
  3227. db_close();
  3228. $empire=null;
  3229. ?>