初始化

This commit is contained in:
2026-08-08 18:28:49 +08:00
parent 9bef4420e0
commit f082037a6e
854 changed files with 217171 additions and 11 deletions
+48
View File
@@ -0,0 +1,48 @@
<?php
$activeMenu = 'database';
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-database"></i> 数据库表管理</h3>
<div class="box-tools">
<span class="badge bg-blue">共 <?php echo count($tables); ?> 张表</span>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<thead>
<tr>
<th>序号</th>
<th>表名</th>
<th>记录数</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php foreach ($tables as $idx => $tbl): ?>
<tr>
<td><?php echo $idx + 1; ?></td>
<td>
<strong><?php echo htmlspecialchars($tbl['business_name']); ?></strong>
<br><code style="color:#999;"><?php echo htmlspecialchars($tbl['name']); ?></code>
</td>
<td><span class="badge bg-light-blue"><?php echo $tbl['count']; ?></span></td>
<td>
<a href="<?php echo BASE_URL; ?>/Admin/databaseView/<?php echo $idx; ?>" class="btn btn-sm btn-primary">
<i class="fa fa-eye"></i> 查看/编辑
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>