DEDECMS文章模型整合下载功能,可判断点数,会员组等下载权限(3)

<tr> <td height="24" class="bline"> <table width="800" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="90" height="30">&nbsp;需会员权限:</td> <td width="179" align="center"> <select name="daccess" id="daccess" style="width:90px"> <?php $dsql->SetQuery("Select * from `js_arcrank` where rank>=0 "); $dsql->Execute(); while($row = $dsql->GetArray()) { if($row['rank']==0) $row['membername'] = "不限会员"; if($row['rank'] == $daccess) echo " <option value='{$row['rank']}' selected>{$row['membername']}</option>\r\n"; else echo " <option value='{$row['rank']}'>{$row['membername']}</option>\r\n"; } ?> </select> </td> <td width="120" align="center">需消费金币:</td> <td width="411"> <input name="needmoney" type="text" id="needmoney" value="<?php echo $needmoney; ?>" size="8" />个 </td> </tr> <tr> <td height="26" colspan="4" style="border-top:1px dashed #8EAF61">&nbsp; <span class="STYLE1">(如果设定了下载限制,<a href=http://www.dede58.com/"soft_config.php" target="_blank"><u>软件频道设置</u></a>中“附件下载方式:”必须选择“链接到跳转页面”) </span></td> </tr> </table> </td> </tr> <tr> <td height="24" colspan="4" bgcolor="#F9FCEF"class="bline2"><strong>&nbsp;软件链接列表:</strong></td> </tr> <tr> <td height="24" colspan="4" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="72">&nbsp;其它地址:</td> <td> <input name="picnum" type="text" id="picnum" size="8" value="5" /> <input name='kkkup' type='button' id='kkkup2' value='增加数量' onClick="MakeUpload();" /> &nbsp; <input type="button" name="Submit3" id="btsh3" value="隐藏地址" onClick="ShowHideAddr();" /> (最多为30个链接) </td> </tr> </table> </td> </tr> <tr> <td height="24" colspan="4" class="bline" style="padding-left:8px"> <?php echo $nForm; ?> <div id='morelink' style='display:block'> <div id='uploadfield' style='width:800px'></div> </div> </td> </tr>  

article_edit.html修改完毕,接下来开始修改article_add.php,要认真看哦!

5、打开article_add.php,找到

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/a7ed53c161c91887986f31cf332a8bce.html