123 lines
4.7 KiB
PHP
123 lines
4.7 KiB
PHP
<form method="POST" action="?">
|
|
<?php if (isset($card_id) && $card_id > 0) { ?>
|
|
<input type="hidden" name="id" value="<?= $card_id ?>" />
|
|
<?php } ?>
|
|
|
|
<div class="row">
|
|
<div class="col col-lg-6">
|
|
|
|
<div class="form-group">
|
|
<label for="categoryLabel">Template</label>
|
|
<?= $card_template ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="categoryLabel">Category</label>
|
|
<?= $card_category ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cansaveLabel">Can user save ?</label>
|
|
<?= $card_can_save ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cardPictureslabel">Picture</label>
|
|
<?= $card_pictures ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cardName">Card ID</label>
|
|
<input type="text" class="form-control" id="cardName" name="card_name" maxlength="100" placeholder="Card Unique ID" value="<?= $card_name ?>" />
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="showTitleInput">Show Title</label>
|
|
<?= $card_titleshow ?>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="cardShortTitle">Card Short Title</label>
|
|
<input type="text" class="form-control" id="cardShortTitle" name="short_title" maxlength="35" placeholder="Card Short Title" value="<?= $short_title ?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cardTitle">Card Title</label>
|
|
<input type="text" class="form-control" id="cardTitle" name="card_title" maxlength="100" placeholder="Card Title" value="<?= $card_title ?>" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="card_country">Card Country</label>
|
|
<?= $card_country ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col col-lg-6">
|
|
|
|
<div class="form-group">
|
|
<label for="descriptionCardlab">Description[250]</label>
|
|
<textarea class="form-control" name="description" id="descriptionCardlab" rows="5" maxlength="250" placeholder="Description"><?= $description ?></textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleFormControlTextarea1">1st Button </label>
|
|
<input type="text" class="form-control" name="button1" id="exampleFormControlTextarea1" maxlength="35" placeholder="Button 1" value="<?= $button1 ?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleFormControlTextarea1">1st Button Text</label>
|
|
<input type="text" class="form-control" name="button1_text" id="descriptionCardlab" maxlength="35" placeholder="Button 1 Text" value="<?= $button1_text ?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="categoryLabel">Can Expire</label>
|
|
<?= $card_canexpire ?>
|
|
<br>
|
|
<label for="categoryLabel">Expiration date</label>
|
|
<input type="text" class="form-control" name="card_expiration" value="<?= $card_expiration ?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cansaveLabel">Status</label>
|
|
<?= $card_status ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="cansaveLabel">Notification</label>
|
|
<?= $card_notify ?>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" name="go" class="btn btn-info btn-block btn-sm"><?= $form_button ?></button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card" style="width: 100%; background-color:honeydew;">
|
|
<div class="card-body">
|
|
<?php if (isset($card_id) && $card_id > 0) { ?>
|
|
|
|
<button type="button" class="btn btn-danger btn-block btn-sm" data-toggle="modal" data-target="#exampleModalScrollable">More Setting</button>
|
|
|
|
<p class="card-text">We are ready to go on here.</p>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
<? /* http://www.daterangepicker.com/ */ ?>
|
|
<script>
|
|
$(function () {
|
|
$('input[name="card_expiration"]').daterangepicker({
|
|
singleDatePicker: true,
|
|
showDropdowns: true,
|
|
minYear: <?= date("Y") ?>,
|
|
maxYear: <?= date("Y") + 10 ?>, /*parseInt(moment().format('YYYY'),10),*/
|
|
locale: {
|
|
format: 'YYYY-MM-DD'
|
|
}
|
|
}, function (start, end, label) {
|
|
var years = moment().diff(start, 'years');
|
|
});
|
|
});
|
|
</script>
|