头像 V
老猫 UID:靓2 管理员开发者 CTO 4天前 ( 山河虽无恙,吾辈当自强 _)
  好看的积分页面

F.webp

路径:plugin/tt_credits/view/htm/my_credits.htm (进my_credits.htm文件里面全部覆盖就好)
<template include="./plugin/tt_credits/view/htm/my_credits.template.htm">
	<slot name="my_body">
<?php $no_cache_user = user_read($uid);
$progress=100; $max=1; $now=$no_cache_user['credits'];
if($no_cache_user['gid']>100){
	foreach($grouplist as $group) {
		if($group['gid'] < 100) continue;
		$n = $no_cache_user['credits'] ;
		if($n > $group['creditsfrom'] && $n <= $group['creditsto']) {
			$max=$group['creditsto'];
			if($no_cache_user['groupname']!=$group['name']) {
				$no_cache_user['groupname']=$group['name'];
				user_update_group($uid);
			}
			break;
		}
	}
	$progress = (int)($now/$max * 100.0);
}
$set = setting_get('tt_credits');
?>
<div class="row clearfix">
<div class="col-md-12 column">

    <style>
        .money-1{

            background:linear-gradient(to right, #bababa, #666666, #303030);
        }
        .money-2{

            background:linear-gradient(to right, #e6d16b, #dfc12a, #e6bf00);
        }
        .money-3{

            background:linear-gradient(to right, #ff8080, #ea4343, #db0f0f);
        }
        .moneys span{

            float:right;
        }
        .moneys i{

            font-size: 58px;
            float: left;
            margin-top:-13px;
            opacity:0.5;
        }
        .moneys{

            overflow:hidden;
            width: 100%;
            height: 60px;
            margin-bottom:10px;
            padding: 20px 30px;
            font-size: 20px;
            color: #fff;
            border-radius:5px;
        }
    </style>
<div class="money-1 moneys"><i class="icon-trophy"></i>
<span><?php echo $no_cache_user['credits'];?> <?php echo lang('credits1');?></span>&nbsp;</div>

<div class="money-2 moneys"><i class="icon-database"></i>
<span><?php echo $no_cache_user['golds'];?> <?php echo lang('credits2');?></span>&nbsp;
</div>
<div class="money-3 moneys"><i class="icon-paypal"></i>
<span><?php echo $no_cache_user['rmbs'];?> <?php echo lang('credits3');?></span>&nbsp;

</div><hr>
</div>
</div>

<div class="row clearfix">
        <div class="col-md-12 column">
          <div class="pb-3 pt-3 border-top border-bottom">
              <?php
              $cred1 = $set['limit'] * ($set['thread_exp'] + $set['post_exp']);
              $cred2 = $set['limit'] * ($set['thread_gold'] + $set['post_gold']);
              ?>
              每日可获得<?php echo lang('credits1').$cred1;?>点,<?php echo lang('credits2').$cred2;?>枚。</div>
          <table class="table">
            <thead>
              <tr>
                <th>规则</th>
                <th><?php echo lang('credits1');?></th>
                <th><?php echo lang('credits2');?></th>
                <th><?php echo lang('credits3');?></th>
              </tr>
            </thead>
            <tbody>
          
              <tr>
                <td class="text-success">发帖</td>
                <td> +<?php echo $set['thread_exp'];?> 点 (限<?php echo $set['limit'];?>次)</td>
                <td> +<?php echo $set['thread_gold'];?> 枚 (限<?php echo $set['limit'];?>次)</td>
                <td><?php if($set['thread_rmb'] == 0){ echo '-----';}else{ echo $set['thread_rmb'];}?></td>
              </tr>              
              <tr>
                <td class="text-success">回帖</td>
                <td> +<?php echo $set['post_exp'];?> 点 (限<?php echo $set['limit'];?>次)</td>
                <td> +<?php echo $set['post_gold'];?> 枚 (限<?php echo $set['limit'];?>次)</td>
                <td><?php if($set['post_rmb'] == 0){ echo '-----';}else{ echo $set['post_rmb'];}?></td>
              </tr>
              <?php if($set['digest1_exp'] != 0){?>
              <tr>
                <td class="text-success"><?php echo lang('digest_1');?></td>
                <td> +<?php echo $set['digest1_exp'];?> 点 (无限)</td>
                <td> +<?php echo $set['digest1_gold'];?> 枚 (无限)</td>
                <td><?php if($set['digest1_rmb'] == 0){ echo '-----';}else{ echo $set['digest1_rmb'];}?></td>
              </tr>              
              <tr>
                <td class="text-success"><?php echo lang('digest_2');?></td>
                <td> +<?php echo $set['digest2_exp'];?> 点 (无限)</td>
                <td> +<?php echo $set['digest2_gold'];?> 枚 (无限)</td>
                <td><?php if($set['digest2_rmb'] == 0){ echo '-----';}else{ echo $set['digest2_rmb'];}?></td>
              </tr>
              <tr>
                <td class="text-success"><?php echo lang('digest_3');?></td>
                <td> +<?php echo $set['digest3_exp'];?> 点 (无限)</td>
                <td> +<?php echo $set['digest3_gold'];?> 枚 (无限)</td>
                <td><?php if($set['digest3_rmb'] == 0){ echo '-----';}else{ echo $set['digest3_rmb'];}?></td>
              </tr>
              <?php }?>
              <tr>
                <td class="text-danger">下载</td>
                <td>-----</td>                
                <td><?php if($set['down_gold'] == 0){ echo '-----';}else{ echo '-'.$set['down_gold'].' 枚 (无限)';}?></td>                
                <td>-----</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <hr>
      <p><?php echo lang('user_group');?>: <?php echo $no_cache_user['groupname'];?></p>
<div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: <?php echo $progress;?>%;" aria-valuenow="<?php echo $progress;?>" aria-valuemin="0" aria-valuemax="100"><?php if($progress>=20) echo $progress,'%';?></div><?php if($progress<20) echo $progress,'%';?></div>
		<!--{hook my_credits_after.htm}-->
	</slot></template>
<script>
    $('a[data-active="my-credits"]').addClass('active');
</script>
<!--{hook my_credits_script_after.htm}-->


123 1
已有回复 (1)
  • zackma (UID:128) LV.2 @Ta 4天前   ( 这家伙太懒了,什么也没留下。 )
    #0

    感谢分享

菜鸟米铺-用好米做好站
发新帖