first commit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
<!-- div class="container" -->
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col col-lg-3">
|
||||
<div class="card" style="width: 100%; background-color: lemonchiffon; padding: 5px;">
|
||||
<div class="card-body" id="card_form">
|
||||
<font color=red><?= $message ?> </font>
|
||||
<form id="editform" name="editform" method="post" action="?id=<?= $id?>">
|
||||
<input type="hidden" name="id" value="<?= $id ?>" />
|
||||
<input type="hidden" name="app_id" value="<?= $app_id ?>" />
|
||||
<div class="form-group">
|
||||
<label for="name">Provider Name</label>
|
||||
<input type="text" class="form-control" id="name" name="name" maxlength="50" placeholder="Provider Name" value="<?= $name ?>" readonly />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="country">Country</label>
|
||||
<?= $country_select ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="ios_app_id">iOS App ID</label>
|
||||
<input type="text" class="form-control" id="ios_app_id" name="ios_app_id" maxlength="100" placeholder="Apple Store iOS App ID" value="<?= $ios_app_id ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="android_app_id">Android App ID</label>
|
||||
<input type="text" class="form-control" id="android_app_id" name="android_app_id" maxlength="100" placeholder="Google Play Android App ID" value="<?= $android_app_id ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="gobtn" id="gotbtn" class="btn btn-info btn-block btn-sm"><?= $form_button ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col col-lg-9">
|
||||
<!-- Media library -->
|
||||
<div class="panel panel-white">
|
||||
<div class="panel-heading">
|
||||
<h6 class="panel-title text-semibold">Transporter App List for <?=$name?></h6>
|
||||
<div class="heading-elements">
|
||||
<button type="submit" class="btn btn-info btn-xs" onclick="document.location='/bkoadmin/transport';return false;">Back to Transporter List</button>
|
||||
<table><tr><td><? ?></td><td><? ?></td></tr></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<?= isset($transporter_apps)?$transporter_apps:"" ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /media library -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function EditTransportProviderApp(id) {
|
||||
if (id>0) {
|
||||
var data = transport_apps.get(id);
|
||||
var form = document.editform;
|
||||
form.app_id.value = data.get('id');
|
||||
form.country.value = data.get('country');
|
||||
form.ios_app_id.value = data.get('ios_app_id');
|
||||
form.android_app_id.value = data.get('android_app_id');
|
||||
form.gobtn.innerHTML = 'Update';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var transport_apps = new Map();
|
||||
<? foreach($transport_apps as $id=>$data) {
|
||||
echo "var transport_apps_entry_${id} = new Map();\n";
|
||||
foreach ($data as $key=>$val) {
|
||||
echo "transport_apps_entry_${id}.set('${key}','${val}');\n";
|
||||
}
|
||||
echo "transport_apps.set(${id},transport_apps_entry_${id});\n";
|
||||
} ?>
|
||||
<? if ($_SERVER['REQUEST_METHOD']=='GET' && $app_id>0) {
|
||||
echo "EditTransportProviderApp(${app_id});\n";
|
||||
} ?>
|
||||
// -->
|
||||
</script>
|
||||
Reference in New Issue
Block a user