function profile_node_star($post, $s, $e, $upgrademenu = 1) { $stars = showstars($post['stars']); $menu = $post['upgradecredit'] !== false ? profile_node_upgrade_menu($post) : ''; ?><?php $return = <<<EOF {$s}<span EOF; if($post['upgradecredit'] !== false && $upgrademenu) { $return .= <<<EOF id="g_up{$post['pid']}" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12!'});" EOF; } $return .= <<<EOF >{$stars}</span>{$e} EOF; if($upgrademenu) { $return .= <<<EOF {$menu} EOF; } $return .= <<<EOF EOF; ?><?php return $return; }
</li><?php } ?> </ul> </div> <?php if ($oltimespan) { ?> <p>在线时间: 总计在线 <em><?php echo $member['totalol']; ?> </em> 小时, 本月在线 <em><?php echo $member['thismonthol']; ?> </em> 小时 <?php showstars(ceil(($member['totalol'] + 1) / 50)); ?> (升级剩余时间 <span class="bold"><?php echo $member['olupgrade']; ?> </span> 小时)</p><?php } ?> <hr class="dashline" /> <?php if ($member['medals']) { ?> <h3 class="blocktitle lightlink">勋章</h3><?php if (is_array($member['medals'])) {
<?php } function permtbody($maingroup) { global $_G, $bperms, $pperms, $sperms, $aperms;?><tr><td><?php echo showstars($_G['cache']['usergroups'][$maingroup['groupid']]['stars']);; ?></td></tr> <tbody class="ca"><?php if(is_array($bperms)) foreach($bperms as $key => $groupbperm) { ?><tr <?php if($key%2==0) { ?>class="alt"<?php } ?>> <td> <?php if($groupbperm == 'creditshigher' || $groupbperm == 'readaccess' || $groupbperm == 'maxpmnum') { ?> <?php echo $maingroup[$groupbperm];?> <?php } elseif($groupbperm == 'allowsearch') { if($maingroup['allowsearch'] == '0') { ?>禁用搜索<?php } elseif($maingroup['allowsearch'] == '1') { ?>只允许搜索标题<?php } else { ?>允许搜索帖子内容<?php } } else { if($maingroup[$groupbperm] >= 1) { ?><img src="<?php echo IMGDIR;?>/data_valid.gif" alt="data_valid" /><?php } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" alt="data_invalid" /><?php } } ?> </td> </tr> <?php } ?> </tbody> <tr class="alt h"> <th><?php echo $maingroup['grouptitle'];?></th> </tr> <tbody class="cb"><?php if(is_array($pperms)) foreach($pperms as $key => $grouppperm) { ?><tr <?php if($key%2==0) { ?>class="alt"<?php } ?>> <td> <?php if(in_array($grouppperm, array('maxsigsize', 'maxbiosize'))) { ?> <?php echo $maingroup[$grouppperm];?> 字节 <?php } elseif($grouppperm == 'allowrecommend') { if($maingroup['allowrecommend'] > 0) { ?>+<?php echo $maingroup['allowrecommend'];?><?php } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" /><?php } } elseif(in_array($grouppperm, array('allowat', 'allowcreatecollection'))) { echo intval($maingroup[$grouppperm]); } else { if($maingroup[$grouppperm] == 1 || (in_array($grouppperm, array('raterange', 'allowcommentpost')) && !empty($maingroup[$grouppperm]))) { ?><img src="<?php echo IMGDIR;?>/data_valid.gif" alt="data_valid" /><?php } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" alt="data_invalid" /><?php } } ?> </td> </tr> <?php } ?> </tbody> <tr class="alt h"> <th><?php echo $maingroup['grouptitle'];?></th> </tr> <tbody class="cc"><?php if(is_array($sperms)) foreach($sperms as $key => $perm) { ?><tr <?php if($key%2==0) { ?>class="alt"<?php } ?>> <td> <?php if(in_array($perm, array('maxspacesize', 'maximagesize'))) { if($maingroup[$perm]) { ?><?php echo $maingroup[$perm];?><?php } else { ?>没有限制<?php } } else { if($maingroup[$perm] == 1) { ?><img src="<?php echo IMGDIR;?>/data_valid.gif" alt="data_valid" /><?php } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" alt="data_invalid" /><?php } } ?> </td> </tr> <?php } ?> </tbody> <tr class="alt h"> <th><?php echo $maingroup['grouptitle'];?></th> </tr> <tbody class="cd"><?php if(is_array($aperms)) foreach($aperms as $key => $groupaperm) { ?><tr <?php if($key%2==0) { ?>class="alt"<?php } ?>> <td> <?php if(in_array($groupaperm, array('maxattachsize', 'maxsizeperday', 'maxattachnum'))) { if($maingroup[$groupaperm]) { ?><?php echo $maingroup[$groupaperm];?><?php } else { ?>没有限制<?php } } elseif($groupaperm == 'attachextensions') { if($maingroup['allowpostattach'] == 1) { if($maingroup['attachextensions']) { ?><p class="nwp" title="<?php echo $maingroup['attachextensions'];?>"><?php echo $maingroup['attachextensions'];?></p><?php } else { ?>没有限制<?php } } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" /><?php } } else { if($maingroup[$groupaperm] == 1) { ?><img src="<?php echo IMGDIR;?>/data_valid.gif" alt="data_valid" /><?php } else { ?><img src="<?php echo IMGDIR;?>/data_invalid.gif" alt="data_invalid" /><?php } } ?> </td> </tr> <?php } ?> </tbody><?php }?><?php include template('common/footer'); ?>
<li>最后发表: <?=$member['lastpost']?></li> <? if($discuz_uid == $member['uid'] || $allowviewip) { ?> <li>注册 IP: <?=$member['regip']?> - <?=$member['regiplocation']?></li> <li>上次访问 IP: <?=$member['lastip']?> - <?=$member['lastiplocation']?></li> <? } ?> </ul> <ul class="commonlist"> <li>发帖数级别: <?=$member['ranktitle']?> <? showstars($member['rankstars']); ?></li> <li>阅读权限: <?=$member['readaccess']?></li> <li>帖子: <?=$member['posts']?> 篇(占全部帖子的 <?=$percent?>%)</li> <li>平均每日发帖: <?=$postperday?> 篇</li> <li>精华: <?=$member['digestposts']?> 篇</li> <? if($pvfrequence) { ?><li>页面访问量: <?=$member['pageviews']?></li><? } ?> </ul> </div> <? if($oltimespan) { ?><p>在线时间: 总计在线 <em><?=$member['totalol']?></em> 小时, 本月在线 <em><?=$member['thismonthol']?></em> 小时 <? showstars(ceil(($member['totalol'] + 1) / 50)); ?> (升级剩余时间 <span class="bold"><?=$member['olupgrade']?></span> 小时)</p><? } ?> <hr class="dashline" /> <? if($member['medals']) { ?> <h3 class="blocktitle lightlink">勋章</h3><? if(is_array($member['medals'])) { foreach($member['medals'] as $medal) { ?><img src="images/common/<?=$medal['image']?>" border="0" alt="<?=$medal['name']?>" title="<?=$medal['name']?>" /> <? } } ?><hr class="dashline" /> <? } ?> <h3 class="blocktitle lightlink">积分: <?=$member['credits']?></h3> <p><? $sp = ''; if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><?=$sp?><?=$credit['img']?><?=$credit['title']?>: <?=$member['extcredits'.$id]?> <?=$credit['unit']?><? $sp = ', '; } } ?></p> <? if($tradeopen) { ?> <hr class="dashline" /> <h3 class="blocktitle lightlink">信用评价 <a href="eccredit.php?uid=<?=$member['uid']?>" style="font-size: 12px; color: #09C;">(查看详细的信用记录)</a></h3> <p> 买家信用评价: <?=$member['sellercredit']?> <a href="eccredit.php?uid=<?=$member['uid']?>" target="_blank"><img src="images/rank/seller/<?=$member['sellerrank']?>.gif" border="0" class="absmiddle"></a>
echo $post['authorid']; ?> " target="_blank"><?php echo $post['avatar']; ?> </a></div> <?php } ?> <p><em><?php echo $post['authortitle']; ?> </em></p> </div> <p><?php showstars($post['stars']); ?> </p> <?php if ($customauthorinfo['1']) { ?> <dl class="profile s_clear"><?php @eval('echo "' . $customauthorinfo['1'] . '";'); ?> </dl><?php } if ($post['medals']) { ?> <p><?php if (is_array($post['medals'])) { foreach ($post['medals'] as $medal) {
/** * 星星数据函数 * @param INT $starnum 星星数量 * @param Array $starimg 星星图片资源 */ public function showstar($starnum, $starimg) { $starnum = $starnum ? $starnum : 0; if (empty($starimg) || !is_array($starimg) || empty($starnum) || $starnum < 0) { return array(); } //starnum分组星星数,base底数,几个星星换成一个月亮,几个月亮换成太阳用.showstar星星月亮太阳图标. $return['starnum'] = $starnum; $return['base'] = $this->settings['showstars']; $return['starimg'] = $starimg; //计算星星图标开始. $star[1] = hg_fetchimgurl($starimg['star']); $star[2] = hg_fetchimgurl($starimg['moon']); $star[3] = hg_fetchimgurl($starimg['sun']); $return['star'] = showstars($this->settings['showstars'], $starnum, $star); //计算星星图标结束 return $return; }
<td>用户级别</td> <td>积分起点</td> <td>阅读权限</td> <td>操作</td> </tr> </thead> <tbody><?php if (is_array($extgroups)) { foreach ($extgroups as $gp) { ?> <tr> <td><strong><?php echo $gp['grouptitle']; ?> <strong></td> <td><?php showstars($gp['stars']); ?> </td> <td><?php echo $gp['creditshigher']; ?> </td> <td><?php echo $gp['readaccess']; ?> </td> <td><a href="my.php?item=grouppermission&searchgroupid=<?php echo $gp['groupid']; ?> " class="lightlink" target="_blank">查看权限</a></td>