[后台调用]调用数据字典(单项)DYCMS

/ / 2024-10-13   阅读:2526
[后台调用]调用数据字典(单项)...
<td class="radiolist">
	<?php
	$dictsql="select id,mingcheng from dict_item where dictid=3 order by paixu asc,id asc";
	$dictresult=$conn->query($dictsql);
	if($dictresult->num_rows>0){
	while($dictdata=$dictresult->fetch_assoc()){
	?>
	<input type="radio" name="leixing" id="leixing<?php echo $dictdata["id"]?>" value="<?php echo $dictdata["id"]?>" <?php if($leixing==$dictdata["id"]){?>checked="checked"<?php }?> />
	<label for="leixing<?php echo $dictdata["id"]?>"><?php echo $dictdata["mingcheng"]?></label>
	&nbsp;&nbsp;&nbsp;
	<?php
	}
	}
	?>
</td>


上一篇:DYCMS发送邮件

下一篇:没有了

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈