86 lines
4.5 KiB
HTML
86 lines
4.5 KiB
HTML
<include file="Inc:header"/>
|
|
<style>
|
|
label{ display: inline-block; margin-right: 10px;}
|
|
.power_list{ padding:10px;}
|
|
.power_list label{ height: 30px; line-height: 30px;}
|
|
.app_list .app_name{ line-height: 40px; height: 40px;background:#F5F5F5; }
|
|
.action_list{ margin-left: 30px; padding-left: 10px; padding-top: 5px; padding-bottom: 10px; margin-top: 5px; border: 1px solid #ececec; margin-bottom: 10px;}
|
|
.action_list .action_name label{ margin-bottom: 0px;}
|
|
.method_list{ padding-left: 50px;}
|
|
</style>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<div class="widget-box">
|
|
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
|
|
<h5>{$pagetitle}</h5>
|
|
<span class="icon" style="float:right"> <a href="javascript:goback()"><i class=" icon-share-alt"></i></a></span>
|
|
</div>
|
|
<div class="widget-content nopadding">
|
|
<form id="basic_validate" class="form-horizontal" method="post" action="__SELF__" onsubmit="return save_form(this)">
|
|
<input type="hidden" name="role_id" value="{$role_id}">
|
|
<div class="power_list">
|
|
<foreach name="data" item="app" >
|
|
<div class="app_list">
|
|
<div class="app_name"><label><input type="checkbox" name="access[]" value="{$app.id}_1" onclick="check_this(this)" {$app['access']?'checked':''}/>{$app.title}</label></div>
|
|
<foreach name="app.child" item="action">
|
|
<div class="action_list">
|
|
<div class="action_name"><label><input type="checkbox" name="access[]" value="{$action.id}_2" onclick="check_this(this)" {$action['access']?'checked':''}/>{$action.title}</label></div>
|
|
<div class="method_list">
|
|
<foreach name="action.child" item="method">
|
|
<label><input type="checkbox" name="access[]" value="{$method.id}_3" {$method['access']?'checked':''}/>{$method.title}</label>
|
|
<?php
|
|
if($method[child]){
|
|
echo "(";
|
|
foreach($method[child] as $third){
|
|
?>
|
|
|
|
|
|
<label style="margin-right:0px;"/><input type="checkbox" name="access[]" value="{$third.id}_3" {$third['access']?'checked':''}>{$third.title}</label>
|
|
|
|
|
|
<?php
|
|
}
|
|
echo ")     ";
|
|
}
|
|
?>
|
|
|
|
</foreach>
|
|
</div>
|
|
</div>
|
|
</foreach>
|
|
</div>
|
|
</foreach>
|
|
</div>
|
|
|
|
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-success form_submit">确定</button>
|
|
<button type="button" class="btn btn-danger" id="closeIframe" onclick="cancel()">取消</button>
|
|
<div id="status"></div>
|
|
</div>
|
|
<div id="submitted"></div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<include file="Inc/footer"/>
|
|
|
|
<script language='javascript'>
|
|
function check_this(obj){
|
|
if($(obj).is(':checked')){
|
|
$(obj).parent().parent().parent().parent().parent().find("input[type='checkbox']").prop('checked',true);
|
|
$.uniform.update();
|
|
}else{
|
|
$(obj).parent().parent().parent().parent().parent().find("input[type='checkbox']").prop('checked',false);
|
|
$.uniform.update();
|
|
}
|
|
}
|
|
|
|
</script> |