���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /proc/self/root/var/www/html/tien-dien/code/admin/shipping/ |
<section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="?act=admin&code=home">Trang chủ</a></li> <li class="breadcrumb-item"><a href="?act=admin&code=shipping">Phương thức vận chuyển</a></li> <li class="breadcrumb-item active"><?php echo (isset($shipping) && $shipping['id'] > 0) ? 'Chỉnh sửa' : 'Thêm mới'; ?></li> </ol> <div class="card"> <div class="card-header"> <h3 class="card-title"><?php echo (isset($shipping) && $shipping['id'] > 0) ? 'Chỉnh sửa phương thức vận chuyển' : 'Thêm phương thức vận chuyển mới'; ?></h3> </div> <!-- /.card-header --> <div class="card-body"> <?php if (isset($errors) && !empty($errors)): ?> <div class="alert alert-danger"> <ul> <?php foreach ($errors as $error): ?> <li><?php echo $error; ?></li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <form method="post" action=""> <div class="form-group"> <label for="name">Tên phương thức vận chuyển *</label> <input type="text" class="form-control" id="name" name="name" value="<?php echo isset($shipping) ? htmlspecialchars($shipping['name']) : ''; ?>" required> </div> <div class="form-group"> <label for="description">Mô tả</label> <textarea class="form-control" id="description" name="description" rows="3"><?php echo isset($shipping) ? htmlspecialchars($shipping['description']) : ''; ?></textarea> </div> <div class="form-group"> <label for="cost">Chi phí (VNĐ) *</label> <input type="number" class="form-control" id="cost" name="cost" value="<?php echo isset($shipping) ? $shipping['cost'] : 0; ?>" min="0" step="1000" required> </div> <div class="form-group"> <label for="sort_order">Thứ tự sắp xếp</label> <input type="number" class="form-control" id="sort_order" name="sort_order" value="<?php echo isset($shipping) ? $shipping['sort_order'] : 0; ?>" min="0"> <small class="form-text text-muted">Số nhỏ hơn sẽ hiển thị trước.</small> </div> <div class="form-group"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input" id="status" name="status" <?php echo (isset($shipping) && $shipping['status'] == 1) ? 'checked' : ''; ?>> <label class="custom-control-label" for="status">Hoạt động</label> </div> </div> <div class="form-group"> <button type="submit" name="submit" class="btn btn-primary">Lưu</button> <a href="?act=admin&code=shipping" class="btn btn-default">Hủy</a> </div> </form> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </div> </section>