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

bruce0721 2021-12-11 帝国cms 390 ℃ 0 评论 请在这里放置你的在线分享代码
<?php
$name=array("慧馨","雁妍","娅秋","珊芸","秋丝","秋函","秋央","秋萌","惠秋","映秋","秋漫","倚蓉","秋娜","芝婷","秋桂");
$i=rand(0,15);
$writer_sql=$empire->query("select writer from {$dbtbpre}enewswriter");
while($w_r=$empire->fetch($writer_sql))
{
    $w_class.="<option value='".$w_r[writer]."'>".$w_r[writer]."</option>";
}
?>
<input type=text name=writer value="<?=$ecmsfirstpost==1?$name[$i]:ehtmlspecialchars(stripSlashes($r[writer]))?>" size=""> 
        <select name="w_id" id="select7" onchange="document.add.writer.value=document.add.w_id.value">
          <option>选择作者</option>
          <?=$w_class?>
        </select>
<input type="button" name="wbutton" value="增加作者" onclick="window.open('NewsSys/writer.php?<?=$ecms_hashur[ehref]?>&addwritername='+document.add.writer.value);">


本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

老李个人博客