帝国cms添加文章随机分配作者的方法

  1. <?php
  2. $name=array("慧馨","雁妍","娅秋","珊芸","秋丝","秋函","秋央","秋萌","惠秋","映秋","秋漫","倚蓉","秋娜","芝婷","秋桂");
  3. $i=rand(0,15);
  4. $writer_sql=$empire->query("select writer from {$dbtbpre}enewswriter");
  5. while($w_r=$empire->fetch($writer_sql))
  6. {
  7.     $w_class.="<option value='".$w_r[writer]."'>".$w_r[writer]."</option>";
  8. }
  9. ?>
  10. <input type=text name=writer value="<?=$ecmsfirstpost==1?$name[$i]:ehtmlspecialchars(stripSlashes($r[writer]))?>" size="">
  11.         <select name="w_id" id="select7" onchange="document.add.writer.value=document.add.w_id.value">
  12.           <option>选择作者</option>
  13.           <?=$w_class?>
  14.         </select>
  15. <input type="button" name="wbutton" value="增加作者" onclick="window.open('NewsSys/writer.php?<?=$ecms_hashur[ehref]?>&addwritername='+document.add.writer.value);">
复制代码






上一篇:帝国cms会员空间伪静态规则配置
下一篇:帝国cms sql语句调用头部变量temp.header的方法