Files
MES/app/views/Admin/customerEdit.php
T
2026-08-08 18:28:49 +08:00

46 lines
2.2 KiB
PHP

<?php
$activeMenu = 'customer';
include APP_PATH . 'app/views/layouts/admin_header.php';
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<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">
<div class="form-group">
<label>公司名称 <span class="text-danger">*</span></label>
<input type="text" name="company_name" class="form-control" value="<?php echo htmlspecialchars($cust['company_name']); ?>" required>
</div>
<div class="form-group">
<label>联系人1</label>
<input type="text" name="contact1" class="form-control" value="<?php echo htmlspecialchars($cust['contact1'] ?? ''); ?>">
</div>
<div class="form-group">
<label>联系方式1</label>
<input type="text" name="phone1" class="form-control" value="<?php echo htmlspecialchars($cust['phone1'] ?? ''); ?>">
</div>
<div class="form-group">
<label>联系人2</label>
<input type="text" name="contact2" class="form-control" value="<?php echo htmlspecialchars($cust['contact2'] ?? ''); ?>">
</div>
<div class="form-group">
<label>联系方式2</label>
<input type="text" name="phone2" class="form-control" value="<?php echo htmlspecialchars($cust['phone2'] ?? ''); ?>">
</div>
</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/customer" 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'; ?>