www.gusucode.com > SDCMS三合一企业网站管理系统PHP源码程序 > SDCMS三合一企业网站管理系统/sdcms_swhy_v1.7/sdcms_swhy_v1.7/上传本目录中文件/app/admin/view/module/bbs_cate/edit.php
<?php if(!defined('IN_SDCMS')) exit;?><!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="renderer" content="webkit"> <title>编辑分类</title> <link rel="stylesheet" href="{WEB_ROOT}public/css/amazeui.min.css"> <link rel="stylesheet" href="{WEB_ROOT}public/admin/css/layout.css"> <link rel="stylesheet" href="{WEB_ROOT}public/admin/css/toastr.css"> <script src="{WEB_ROOT}public/js/jquery.min.js"></script> <script src="{WEB_ROOT}public/js/amazeui.min.js"></script> <script src="{WEB_ROOT}public/js/dropzone.js"></script> <script src="{WEB_ROOT}public/layer/layer.js"></script> <script src="{WEB_ROOT}public/admin/js/base.js"></script> <script src="{WEB_ROOT}public/admin/js/toastr.min.js"></script> <script src="{WEB_ROOT}public/validator/jquery.validator.min.js?local=zh-CN"></script> <script src="{WEB_ROOT}public/dialog/dialog-min.js"></script> <!--[if lt IE 9]> <script src="{WEB_ROOT}public/js/html5shiv.js"></script> <script src="{WEB_ROOT}public/js/respond.min.js"></script> <![endif]--> </head> <body> <div class="am-progress am-progress-striped am-active" id="progress"><div class="am-progress-bar am-progress-bar-success" style="width:0%"></div></div> <div class="position">当前位置:社区管理 > <a href="{U('index')}">社区分类</a> > <a href="{THIS_LOCAL}">编辑分类</a></div> <div class="border"> <!----> <legend>编辑分类</legend> <form class="am-form am-form-horizontal" method="post"> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">分类名称</label> <div class="am-u-sm-10"> <input type="text" name="t0" size="50" value="{$catename}" placeholder="请输入分类名称" data-rule="分类名称:required;"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">优化标题</label> <div class="am-u-sm-10"> <input type="text" name="t1" size="50" value="{$seotitle}"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">关键字</label> <div class="am-u-sm-10"> <input type="text" name="t2" size="50" value="{$seokey}"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">描述</label> <div class="am-u-sm-10"> <textarea name="t3" rows="3" cols="50">{$seodesc}</textarea> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">查看权限</label> <div class="am-u-sm-10"> {if strlen($view_group)} {php $view_data=json_decode($view_group)} {else} {php $view_data=[]} {/if} {sdcms:rs top="0" table="sd_user_group" order="ordnum,gid"} <label class="am-radio-inline"> <input type="checkbox" name="t6[]" id="t6_{$i}" value="{$rs[gid]}" {if in_array($rs[gid],$view_data)} checked{/if}><span for="t6_{$i}">{$rs[gname]}</span> </label> {/sdcms:rs} <span class="am-margin-left input-tips"><br> 如果未勾选,则所有人都可以查看帖子</span> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">发帖权限</label> <div class="am-u-sm-10"> {if strlen($post_group)} {php $post_data=json_decode($post_group)} {else} {php $post_data=[]} {/if} {sdcms:rs top="0" table="sd_user_group" order="ordnum,gid"} <label class="am-radio-inline"> <input type="checkbox" name="t7[]" id="t7_{$i}" value="{$rs[gid]}" {if in_array($rs[gid],$post_data)} checked{/if}><span for="t7_{$i}">{$rs[gname]}</span> </label> {/sdcms:rs} <span class="am-margin-left input-tips"><br> 如果未勾选,则所有用户均可发帖</span> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">回帖权限</label> <div class="am-u-sm-10"> {if strlen($reply_group)} {php $reply_data=json_decode($reply_group)} {else} {php $reply_data=[]} {/if} {sdcms:rs top="0" table="sd_user_group" order="ordnum,gid"} <label class="am-radio-inline"> <input type="checkbox" name="t8[]" id="t8_{$i}" value="{$rs[gid]}" {if in_array($rs[gid],$reply_data)} checked{/if}><span for="t8_{$i}">{$rs[gname]}</span> </label> {/sdcms:rs} <span class="am-margin-left input-tips"><br> 如果未勾选,则所有用户均可回帖</span> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">排序</label> <div class="am-u-sm-10"> <input type="text" name="t4" size="50" value="{$ordnum}"> <span class="am-margin-left input-tips">数字越小越靠前</span> </div> </div> <div class="am-form-group"> <label class="am-u-sm-2 am-form-label">状态</label> <div class="am-u-sm-10"> <label class="am-radio-inline"> <input type="radio" name="t5" id="t5_1" value="1"{if $isshow==1} checked{/if}><span for="t5_1">启用</span> </label> <label class="am-radio-inline"> <input type="radio" name="t5" id="t5_2" value="0"{if $isshow==0} checked{/if}><span for="t5_2">锁定</span> </label> </div> </div> <div class="am-form-group"> <div class="am-u-sm-10 am-u-sm-offset-2"> <button type="submit" class="am-btn am-btn-primary am-radius">保存</button> <button type="button" class="am-btn am-radius am-back">返回</button> </div> </div> </form> <!----> </div> <script> $(function(){ toastr.options={"positionClass":"toast-bottom-center","timeOut":"3000","onclick":null,showMethod:"slideDown",hideMethod:"slideUp"}; $('.am-form').validator({ timely:2, stopOnError:true, focusCleanup:true, ignore:':hidden', theme:'yellow_right_effect', valid:function(form) { $.AMUI.progress.inc(); $.ajax({ type:'post', cache:false, dataType:'json', url:'{THIS_LOCAL}', data:$(form).serialize(), error:function(e){alert(e.responseText);}, success:function(d) { $.AMUI.progress.set(1.0); if(d.state=='success') { toastr.success(d.msg); setTimeout(function(){location.href='{U("index")}';},1500); } else { toastr.error(d.msg); } } }) } }); }) $(".dropzone").dropzone( { maxFiles: 1, acceptedFiles: ".jpg,.gif,.png", success:function(file,data,that) { data=jQuery.parseJSON(data); this.removeFile(file); if(data.state=="success") { toastr.success("上传成功"); $("#"+$(that).attr("config")).val(data.msg); } else { toastr.error("上传失败:"+data.msg); } }, sending:function(file){ $("#progress").css("display","block"); }, totaluploadprogress:function(progress){ progress=Math.round(progress*100)/100; $("#progress .am-progress-bar").css("width",progress+"%"); $("#progress .am-progress-bar").html(progress+"%"); }, queuecomplete:function(progress){ setTimeout(function(){ $("#progress").css("display","none"); },1000); }, error:function(file,msg) { toastr.error(msg); } }); </script> </body> </html>