Ejemplo n.º 1
0
	public static function getRoles($groupid){
		$group = usergroup::getInstance();
		$groups = $group->getrow("groupid='$groupid'");
		if($groups['powerlist'] != ''){
			return unserialize($groups['powerlist']);
		}
	}
Ejemplo n.º 2
0
</span>
</td>
</tr>
</table>
</div>  

<div id="con_one_5" style="display:none">
<table border="0" cellspacing="0" cellpadding="0" id="table5" width="100%">
<thead>
<tr class="th">
<th width="38%">会员组</th>
<th  width="30%">浏览</th>
<th  width="30%">下载</th>
</tr>
<?php 
foreach (usergroup::getInstance()->group as $group) {
    if ($group['groupid'] == '888') {
        continue;
    }
    ?>
<tr>
<td align="center"><?php 
    echo $group['name'];
    ?>
</td>
<td align="center"><?php 
    echo form::checkbox("_ranks[" . $group['groupid'] . "][view]", -1, @$data['_ranks'][$group['groupid']]['view']);
    ?>
</td>
<td align="center"><?php 
    echo form::checkbox("_ranks[" . $group['groupid'] . "][down]", -1, @$data['_ranks'][$group['groupid']]['down']);
Ejemplo n.º 3
0
function chkfpw($str,$groupid){
	$obj = usergroup::getInstance();
	$row = $obj->getrow($groupid);
	if($row['fpwlist']){
		$fpwlist = explode(',',$row['fpwlist']);
		return in_array($str,$fpwlist);
	}
	return false;
}