HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/inventory.breadsecret.com/view/eventSetting/form.php
<?php
include("view/layout/meta.php");
include("view/layout/head.php");

$userObj = unserialize($_SESSION['user']);

$this->setHasContainer(true);
?>
<main class="content">
<div class="funcBar d-flex text-white">
    <span class="funcTitle me-auto"><?=L('menu.eventSetting');?> <?=L('Edit'); ?></span>
    <div class="funcMenu mx-3 py-2">
        <a class="btn" href="<?php Utility\WebSystem::path($request->referer(Requests\Request::REFERER_QUERY), true, false);?>" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?=L('Back');?>"><i class="fas fa-1x fa-list-alt"></i></a>
    </div>
</div>
<form id="form-user" class="container my-3">
<div class="card my-3">
    <div class="card-top">
      <div class="row my-3 mx-1">
        <div class="col-md-6">
          <h5 class="card-title"><?=L('Edit'); ?> <?=L('Record');?></h5>
        </div>      
        <div class="col-md-6 text-end"></div>
      </div>
    </div>
    <div class="card-body">
        <div class="form-group row mx-0">
            <?php 

                $startDate = Controller\eventSetting::getSettingMeta("regStartDate");
                $endDate = Controller\eventSetting::getSettingMeta("regEndDate");
		        $this->halfRowInput(L('regStartDate'), 'startDate', 'startDate', 'date', '', $startDate->metaValue);
                $this->halfRowInput(L('regEndDate'), 'endDate', 'endDate', 'date', '', $endDate->metaValue);
            ?>
        </div>          
        <?php $this->rowSubmit(L('Edit')); ?>
    </div>
</div>
</form>
</main>
<?php
include("view/layout/foot.php");
include("view/layout/js.php");
?>
<script>
    $('#form-user').submit(function (e) {
        var data = new FormData(this);
        ajaxFunc.apiCall("POST", "eventSetting", data, "multipart/form-data", ajaxFunc.responseHandle);
        e.preventDefault();
    });
</script>
<?php
include("view/layout/endpage.php");
?>