<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">会员消费(本店收入)纪录</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-edit fa-fw"></i> 会员消费(本店收入)纪录
                <div class="pull-right" style="display: none;">
                    <div class="btn-group">
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                            Actions
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu pull-right" role="menu">
                            <li><a href="#">Action</a>
                            </li>
                            <li><a href="#">Another action</a>
                            </li>
                            <li><a href="#">Something else here</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="#">Separated link</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="pull-right">
                    <?php $total_volume = 0;?>
                    <?php foreach($list as $v) {?>
                        <?$total_volume += $v->volume;?>
                    <?php } ?>
                    本店收益积分汇总: <a><?=count($list)>0?$total_volume:"0";?>分</a>
                </div>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <?if(count($list)==0){?>
                    <div class="alert alert-warning">
                        当前没有纪录
                    </div>
                <?}?>
                <table class="table table-striped table-bordered table-hover dataTable no-footer" <?if(count($list)==0){?>style="display:none;"<?}?>>
                    <thead>
                    <tr>
                        <th>消费录入日期</th>
                        <th>消费项目</th>
                        <th>备注</th>
                        <th>会员帐号</th>
                        <th>消费金额</th>
                        <th>会员积分</th>
                        <th>本店积分</th>
                        <th>业务员积分</th>
                    </tr>
                    </thead>
                    <tbody>
                    <? foreach ($list as $l) { ?>
                        <tr>
                            <td><?=$l->time?></td>
                            <td><?=$l->title?></td>
                            <td><?=$l->remark?></td>
                            <td><?=$l->consumer_name?></td>
                            <td>￥<?=$l->volume?>元</td>
                            <td><?=$l->uscore?></td>
                            <!--<td>￥<?=intval($l->type) == '0'?bcdiv($l->volume, 100, 2):"0";?>元</td>-->
                            <td><?=$l->lscore?>分</td>
                            <td><?=$l->sscore?>分</td>
                        </tr>
                    <?}?>
                    </tbody>
                </table>
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
        <!-- /.panel -->
    </div>
</div><commit_msg>formula<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">会员消费(本店收入)纪录</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-edit fa-fw"></i> 会员消费(本店收入)纪录
                <div class="pull-right" style="display: none;">
                    <div class="btn-group">
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                            Actions
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu pull-right" role="menu">
                            <li><a href="#">Action</a>
                            </li>
                            <li><a href="#">Another action</a>
                            </li>
                            <li><a href="#">Something else here</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="#">Separated link</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="pull-right">
                    <?php $total_volume = 0;?>
                    <?php foreach($list as $v) {?>
                        <?$total_volume += $v->volume;?>
                    <?php } ?>
                    本店收益积分汇总: <a><?=count($list)>0?$total_volume:"0";?>分</a>
                </div>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <?if(count($list)==0){?>
                    <div class="alert alert-warning">
                        当前没有纪录
                    </div>
                <?}?>
                <table class="table table-striped table-bordered table-hover dataTable no-footer" <?if(count($list)==0){?>style="display:none;"<?}?>>
                    <thead>
                    <tr>
                        <th>消费录入日期</th>
                        <th>消费项目</th>
                        <th>备注</th>
                        <th>会员帐号</th>
                        <th>消费金额</th>
                        <th>会员积分</th>
                        <th>本店积分</th>
                        <th>业务员积分</th>
                    </tr>
                    </thead>
                    <tbody>
                    <? foreach ($list as $l) { ?>
                        <tr>
                            <td><?=$l->time?></td>
                            <td><?=$l->title?></td>
                            <td><?=$l->remark?></td>
                            <td><?=$l->consumer_name?></td>
                            <td>￥<?=$l->volume?>元</td>
                            <td><?=$l->uscore?></td>
                            <!--<td>￥<?=intval($l->type) == '0'?bcdiv($l->volume, 100, 2):"0";?>元</td>-->
                            <td><?=$l->pscore?>分</td>
                            <td><?=$l->sscore?>分</td>
                        </tr>
                    <?}?>
                    </tbody>
                </table>
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
        <!-- /.panel -->
    </div>
</div>
{'fraction_non_alphanumeric': 0.1805149210064365, 'fraction_numerical': 0.005558806319485079, 'mean_word_length': 0.8695652173913043, 'pattern_counts': {'":': 0, '<': 249, '<?xml version=': 0, '>': 273, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644625', 'n_tokens_mistral': 1989, 'n_tokens_neox': 1961, 'n_words': 291}