初始化

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
+74
View File
@@ -0,0 +1,74 @@
<?php
$activeMenu = 'workstation';
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-edit"></i> 编辑工位</h3>
</div>
<form method="post" action="">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($csrfToken); ?>">
<div class="box-body">
<?php if (!empty($error)): ?>
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4><i class="icon fa fa-ban"></i> 操作失败</h4>
<?php echo htmlspecialchars($error); ?>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>工位名称 <span class="text-danger">*</span></label>
<input type="text" name="station_name" class="form-control" value="<?php echo htmlspecialchars($station['station_name']); ?>" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>工位编码</label>
<input type="text" class="form-control" value="<?php echo htmlspecialchars($station['station_code']); ?>" disabled>
<small class="text-muted">编码不可修改</small>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>工位类型</label>
<input type="text" class="form-control" value="<?php echo htmlspecialchars($station['station_type']); ?>" disabled>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>排序</label>
<input type="number" name="sort_order" class="form-control" value="<?php echo $station['sort_order']; ?>" min="1">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>状态</label>
<select name="status" class="form-control">
<option value="1" <?php echo $station['status'] == 1 ? 'selected' : ''; ?>>启用</option>
<option value="0" <?php echo $station['status'] == 0 ? 'selected' : ''; ?>>禁用</option>
</select>
</div>
</div>
</div>
<!-- 字段配置编辑器 -->
<?php echo $fieldEditor ?? ''; ?>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-warning"><i class="fa fa-save"></i> 更新</button>
<a href="<?php echo BASE_URL; ?>/Admin/workstation" class="btn btn-default"><i class="fa fa-arrow-left"></i> 返回</a>
</div>
</form>
</div>
</div>
</div>
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>