OneThink设置单选框默认值
来源:原创
时间:2016-09-16
作者:脚本小站
分类:PHP
<div class="form-item"> <label class="item-label">是否隐藏<span class="check-tips"></span></label> <div class="controls"> <label class="radio"><input type="radio" name="hide" value="1">是</label> <label class="radio"><input type="radio" name="hide" value="0">否</label> </div> </div> <div class="form-item"> <label class="item-label">仅开发者模式可见<span class="check-tips"></span></label> <div class="controls"> <label class="radio"><input type="radio" name="is_dev" value="1">是</label> <label class="radio"><input type="radio" name="is_dev" value="0">否</label> </div> </div>
<script> Think.setValue("pid", {$info.pid|default = 0}); Think.setValue("hide", {$info.hide|default = 0}); Think.setValue("is_dev", {$info.is_dev|default = 0}); </script>
- yum安装php7
- Warning: File upload error - unable to create a temporary fi
- php过滤html标签函数strip_tags($str,'<img>')
- file_put_contents中的FILE_USE_INCLUDE_PATH,LOCK_EX
- oneThink数据备份模块添加下载方法
- php边运行边输出ob_end_clean() flush();
- websocket+php+js实现服务度端向前端推送消息
- Maximum execution time of 30 seconds exceeded in
- customPage.class.php可添加js事件的分页类
- ThinkPHP数据查询方法总结select,find,getField,query