This commit is contained in:
liumengyi
2021-12-01 10:24:45 +08:00
parent 63b0c9be3c
commit 86674338d9
3 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -115,7 +115,10 @@
<?php if(!empty($lang->$moduleName->menus) and $action == 'browse') continue;;?>
<?php if(!empty($version) and strpos($changelogs, ",$moduleName-$actionLabel,") === false) continue;?>
<div class='group-item'>
<?php echo html::checkbox("actions[{$moduleName}]", array($action => $lang->$moduleName->$actionLabel), isset($groupPrivs[$moduleName][$action]) ? $action : '', '', 'inline');?>
<div class='checkbox-primary checkbox-inline'>
<input type='checkbox' name='actions[<?php echo $moduleName;?>][]' value='<?php echo $action;?>' <?php if(isset($groupPrivs[$moduleName][$action])) echo "checked='checked'";?> id='actions[<?php echo $moduleName . "]" . $action;?>' title='<?php echo $lang->$moduleName->$actionLabel;?>';>
<label for='actions[<?php echo $moduleName . "]" . $action;?>' ><?php echo $lang->$moduleName->$actionLabel;?></label>
</div>
</div>
<?php endforeach;?>
</td>
+1 -1
View File
@@ -17,7 +17,7 @@
<small class='text-muted'> <?php echo $lang->group->byModuleTips; ?></small>
</h2>
</div>
<form class='table-bymodule pdb-20' method='post' target='hiddenwin'>
<table class='table table-form'>
<tr class='text-center'>
+4 -1
View File
@@ -120,7 +120,10 @@ td.menus + td {border-left: 0;}
<?php if(!empty($lang->$moduleName->menus) and $action == 'browse') continue;;?>
<?php if(!empty($version) and strpos($changelogs, ",$moduleName-$actionLabel,") === false) continue;?>
<div class='group-item'>
<?php echo html::checkbox("actions[{$moduleName}]", array($action => $lang->$moduleName->$actionLabel), isset($groupPrivs[$moduleName][$action]) ? $action : '', '', 'inline');?>
<div class='checkbox-primary checkbox-inline'>
<input type='checkbox' name='actions[<?php echo $moduleName;?>][]' value='<?php echo $action;?>' <?php if(isset($groupPrivs[$moduleName][$action])) echo "checked='checked'";?> id='actions[<?php echo $moduleName . "]" . $action;?>' title='<?php echo $lang->$moduleName->$actionLabel;?>';>
<label for='actions[<?php echo $moduleName . "]" . $action;?>' ><?php echo $lang->$moduleName->$actionLabel;?></label>
</div>
</div>
<?php endforeach;?>
</td>