97 lines
4.4 KiB
PHP
97 lines
4.4 KiB
PHP
<!-- 抓贼概率-->
|
|
<?php
|
|
use common\services\GameConfigServices;
|
|
use common\services\ItemServices;
|
|
use common\utils\CommUtil;
|
|
|
|
?>
|
|
|
|
<section class="content-header">
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h3 class="box-title">抓贼概率</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body">
|
|
<div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
|
|
<div class="row">
|
|
<div class="col-sm-6"></div>
|
|
<div class="col-sm-6"></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
|
|
<thead>
|
|
<tr role="row">
|
|
<th class="sorting_asc" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-sort="ascending"
|
|
aria-label="Rendering engine: activate to sort column descending">ID
|
|
</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">名称</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">抓贼概率(百分比)</th>
|
|
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach ($list as $item): ?>
|
|
<tr role="row">
|
|
<td><?= $item['id'] ?></td>
|
|
<td><?= $item['name'] ?></td>
|
|
<td><?= $item['effect_id'] ?></td>
|
|
<td>
|
|
<a href="<?= \yii\helpers\Url::to(['config/grab-odds-get', 'id' => $item['id']]) ?>"><i class="fa fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-5">
|
|
<div class="dataTables_info" id="example2_info" role="status" aria-live="polite"><?= sprintf('总共%d条数据', count($list)); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
|
|
</div>
|
|
|
|
|
|
<div class="box">
|
|
<form action="<?= \yii\helpers\Url::to(['config/grab-odds-gold-edit']) ?>" class="form-horizontal" method="post">
|
|
<div class="box-body">
|
|
<h4>被抓时扣多少金币</h4>
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">最小金币</span>
|
|
<input type="number" class="form-control" name="goldMin" value="<?= $commList[GameConfigServices::COMMON_STEAL_CATCH]['min'] ?>">
|
|
</div>
|
|
<!-- /input-group -->
|
|
</div>
|
|
<!-- /.col-lg-6 -->
|
|
<div class="col-lg-6">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">最大金币</span>
|
|
<input type="number" class="form-control" name="goldMax" value="<?= $commList[GameConfigServices::COMMON_STEAL_CATCH]['max'] ?>">
|
|
</div>
|
|
<!-- /input-group -->
|
|
</div>
|
|
<!-- /.col-lg-6 -->
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-info pull-right">提交修改</button>
|
|
</div>
|
|
<!-- /.box-footer -->
|
|
</form>
|
|
</div>
|
|
</section>
|