initial
This commit is contained in:
40
backendpanel/application/views/appnotification/index.php
Normal file
40
backendpanel/application/views/appnotification/index.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Kirim Notifikasi</h4>
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('send'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('appnotification/send'); ?>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Kirim Ke</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name='topic'>
|
||||
<option value="pelanggan">User</option>
|
||||
<option value="driver">Driver</option>
|
||||
<option value="mitra">Merchant Partner</option>
|
||||
<option value="ouride">Semua</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Judul</label>
|
||||
<input type="text" class="form-control" placeholder="notification" name="title" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message">Deskripsi</label>
|
||||
<textarea type="text" class="form-control" placeholder="enter notification title" name="message" required></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success">Kirim<i class="mdi mdi-send ml-1"></i></button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
45
backendpanel/application/views/appsettings/addbank.php
Normal file
45
backendpanel/application/views/appsettings/addbank.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Bank</h4>
|
||||
|
||||
<?= form_open_multipart('appsettings/adddatabank'); ?>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="image_bank" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nama Bank</label>
|
||||
<input type="text" class="form-control" id="" name="nama_bank" placeholder="masukan nama bank" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nama Pemilik</label>
|
||||
<input type="text" class="form-control" id="" name="nama_pemilik" placeholder="masukan nama pemilik bank" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nomor Rekening</label>
|
||||
<input type="text" class="form-control" id="" name="rekening_bank" placeholder="masukan rekening bank" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="status_bank" style="width:100%">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>appsettings/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
44
backendpanel/application/views/appsettings/editbank.php
Normal file
44
backendpanel/application/views/appsettings/editbank.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Ubah Bank</h4>
|
||||
<?= form_open_multipart('appsettings/ubahbank/' . $transfer['id_bank']); ?>
|
||||
<div class="form-group">
|
||||
<input data-default-file="<?= base_url('images/bank/') . $transfer['image_bank'] ?>" type="file" class="dropify" name="image_bank" data-max-file-size="3mb" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nama Bank</label>
|
||||
<input type="text" class="form-control" id="" name="nama_bank" value="<?= $transfer['nama_bank']; ?>" placeholder="nama bank" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nama Pemilik</label>
|
||||
<input type="text" class="form-control" id="" name="nama_pemilik" value="<?= $transfer['nama_pemilik']; ?>" placeholder="nama pemilik" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Nomor Rekening</label>
|
||||
<input type="text" class="form-control" id="" name="rekening_bank" value="<?= $transfer['rekening_bank']; ?>" placeholder="nomor rekening" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="status_bank" style="width:100%">
|
||||
<option value="1" <?php if ($transfer['status_bank'] == 1) { ?>selected<?php } ?>>Aktif</option>
|
||||
<option value="0" <?php if ($transfer['status_bank'] == 0) { ?>selected<?php } ?>>Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>appsettings/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
345
backendpanel/application/views/appsettings/index.php
Normal file
345
backendpanel/application/views/appsettings/index.php
Normal file
@@ -0,0 +1,345 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Pengaturan Aplikasi</h4>
|
||||
<?php if ($this->session->flashdata('send') or $this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('send'); ?>
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#app-2-1" role="tab" aria-controls="app-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-cellphone-android"></i>App</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#email-2-2" role="tab" aria-controls="email-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-email-outline"></i>Email</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-3" data-toggle="tab" href="#smtp-2-3" role="tab" aria-controls="smtp-2-3" aria-selected="false">
|
||||
<i class="mdi mdi-message-text-outline"></i>SMTP</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-4" data-toggle="tab" href="#mobilepulsa-2-4" role="tab" aria-controls="mobilepulsa-2-4" aria-selected="false">
|
||||
<i class="mdi mdi-credit-card"></i>API Mobile Pulsa</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-7" data-toggle="tab" href="#banktransfer-2-7" role="tab" aria-controls="banktransfer-2-7" aria-selected="false">
|
||||
<i class="icon-credit-card menu-icon"></i>Transfer Bank</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content col-12 justify-content-center">
|
||||
<div class="tab-pane fade show active" id="app-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Pengaturan</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('appsettings/ubahapp'); ?>
|
||||
<div class="form-group">
|
||||
<label for="appemail">Email</label>
|
||||
<input type="email" class="form-control" id="appemail" name="app_email" value="<?= $appsettings['app_email']; ?>" required></div>
|
||||
<div class="form-group">
|
||||
<label for="appname">Nama Aplikasi</label>
|
||||
<input type="text" class="form-control" id="appname" name="app_name" value="<?= $appsettings['app_name']; ?>" required></div>
|
||||
<div class="form-group">
|
||||
<label for="appcontact">Kontak</label>
|
||||
<input type="text" class="form-control" id="appcontact" name="app_contact" value="<?= $appsettings['app_contact']; ?>" required></div>
|
||||
<div class="form-group">
|
||||
<label for="appwebsite">Website</label>
|
||||
<input type="text" class="form-control" id="appwebsite" name="app_website" value="<?= $appsettings['app_website']; ?>" required></div>
|
||||
<div class="form-group">
|
||||
<label for="privacypolicy">Kebijakan Privasi</label>
|
||||
<textarea type="text" class="form-control" id="summernoteExample1" name="app_privacy_policy" required><?= $appsettings['app_privacy_policy']; ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="aboutus">Tentang</label>
|
||||
<textarea type="text" class="form-control" id="summernoteExample2" name="app_aboutus" required><?= $appsettings['app_aboutus']; ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="appaddress">Alamat</label>
|
||||
<textarea type="text" class="form-control" id="summernoteExample3" name="app_address" required><?= $appsettings['app_address']; ?></textarea></div>
|
||||
<div class="form-group">
|
||||
<label for="googlelink">Google Link</label>
|
||||
<input type="text" class="form-control" id="googlelink" name="app_linkgoogle" value="<?= $appsettings['app_linkgoogle']; ?>" required></div>
|
||||
<div class="form-group">
|
||||
<label for="appcurrency">Mata Uang</label>
|
||||
<input type="text" class="form-control" id="appcurrency" name="app_currency" value="<?= $appsettings['app_currency']; ?>" required></div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="email-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Email Tampilan ubah Password</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('appsettings/ubahemail'); ?>
|
||||
<div class="form-group">
|
||||
<label for="emailsubject">Email Subjek</label>
|
||||
<textarea type="email" class="form-control" id="emailsubject" name="email_subject" required><?= $appsettings['email_subject']; ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="emailtext1">Email Teks 1</label>
|
||||
<textarea type="email" class="form-control" id="summernoteExample4" name="email_text1" required><?= $appsettings['email_text1']; ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="emailtext2">Email Teks 2</label>
|
||||
<textarea type="email" class="form-control" id="summernoteExample5" name="email_text2" required><?= $appsettings['email_text2']; ?></textarea>
|
||||
</div>
|
||||
|
||||
<h4 class="card-title">Email Tampilan konfirmasi Driver</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="emailsubject">Email Subjek</label>
|
||||
<textarea type="email" class="form-control" id="emailsubject" name="email_subject_confirm" required><?= $appsettings['email_subject_confirm']; ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="emailtext1">Email Teks 1</label>
|
||||
<textarea type="email" class="form-control" id="summernoteExample6" name="email_text3" required><?= $appsettings['email_text3']; ?></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="emailtext2">Email Teks 2</label>
|
||||
<textarea type="email" class="form-control" id="summernoteExample7" name="email_text4" required><?= $appsettings['email_text4']; ?></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="smtp-2-3" role="tabpanel" aria-labelledby="tab-2-3">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Pengaturan SMTP</h4>
|
||||
<br>
|
||||
|
||||
<?php if (demo == TRUE) { ?>
|
||||
<?= form_open_multipart('appsettings/ubahsmtp'); ?>
|
||||
<div class="form-group">
|
||||
<label for="smtphost">SMTP Host</label>
|
||||
<input type="text" class="form-control" id="smtphost" name="smtp_host" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpport">SMTP Port</label>
|
||||
<input type="text" class="form-control" id="smtpport" name="smtp_port" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpusername">SMTP Nama User</label>
|
||||
<input type="text" class="form-control" id="smtpusername" name="smtp_username" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtppassword">SMTP Password</label>
|
||||
<input type="password" class="form-control" id="smtppassword" name="smtp_password" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpform">SMTP DARI</label>
|
||||
<input type="text" class="form-control" id="smtpfrom" name="smtp_from" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp_secure">SMTP Security</label>
|
||||
<select class="form-control border-primary" name="smtp_secure" id="smtp_secure">
|
||||
<option value="tls" <?php if ($appsettings['smtp_secure'] == 'tls') { ?>selected<?php } ?>>TLS</option>
|
||||
<option value="ssl" <?php if ($appsettings['smtp_secure'] == 'ssl') { ?>selected<?php } ?>>SSL</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
<?php } else { ?>
|
||||
|
||||
<?= form_open_multipart('appsettings/ubahsmtp'); ?>
|
||||
<div class="form-group">
|
||||
<label for="smtphost">SMTP Host</label>
|
||||
<input type="text" value="<?= $appsettings['smtp_host']; ?>" class="form-control" id="smtphost" name="smtp_host" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpport">SMTP Port</label>
|
||||
<input type="text" class="form-control" id="smtpport" name="smtp_port" value="<?= $appsettings['smtp_port']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpusername">SMTP User Name</label>
|
||||
<input type="text" class="form-control" id="smtpusername" name="smtp_username" value="<?= $appsettings['smtp_username']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtppassword">SMTP Password</label>
|
||||
<input type="password" class="form-control" id="smtppassword" name="smtp_password" value="<?= $appsettings['smtp_password']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtpform">SMTP Dari</label>
|
||||
<input type="text" class="form-control" id="smtpfrom" name="smtp_from" value="<?= $appsettings['smtp_from']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="smtp_secure">SMTP Security</label>
|
||||
<select class="form-control border-primary" name="smtp_secure" id="smtp_secure">
|
||||
<option value="tls" <?php if ($appsettings['smtp_secure'] == 'tls') { ?>selected<?php } ?>>TLS</option>
|
||||
<option value="ssl" <?php if ($appsettings['smtp_secure'] == 'ssl') { ?>selected<?php } ?>>SSL</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="mobilepulsa-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Pengaturan Mobile Pulsa</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('appsettings/ubahmobilepulsa'); ?>
|
||||
<div class="form-group">
|
||||
<label for="mobilepulsausername">Username</label>
|
||||
<input type="text" class="form-control" id="mobilepulsa_username" name="mobilepulsa_username" value="<?= $appsettings['mobilepulsa_username']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mobilepulsausername">Tambahan Harga</label>
|
||||
<input type="text" class="form-control" id="mobilepulsa_harga" name="mobilepulsa_harga" value="<?= $appsettings['mobilepulsa_harga']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mobilepulsaapikey">Api Key</label>
|
||||
<input type="text" class="form-control" id="mobilepulsa_api_key" name="mobilepulsa_api_key" value="<?= $appsettings['mobilepulsa_api_key']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mp_status">Api Mode</label>
|
||||
<select name="mp_status" id="mp_status" class="js-example-basic-single" style="width:100%">
|
||||
<option value="1" <?php if ($appsettings['mp_status'] == '1') { ?>selected<?php } ?>>Development</option>
|
||||
<option value="2" <?php if ($appsettings['mp_status'] == '2') { ?>selected<?php } ?>>Production</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mp_active">Mobile Pulsa Status</label>
|
||||
<select name="mp_active" id="midtrans_active" class="js-example-basic-single" style="width:100%">
|
||||
<option value="1" <?php if ($appsettings['mp_active'] == '1') { ?>selected<?php } ?>>Aktif</option>
|
||||
<option value="0" <?php if ($appsettings['mp_active'] == '0') { ?>selected<?php } ?>>Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="ayopesan-2-5" role="tabpanel" aria-labelledby="tab-2-5">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">API Pulsa</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('appsettings/ubahayopesan'); ?>
|
||||
<div class="form-group">
|
||||
<label for="emailsubject">Password</label>
|
||||
<input type="password" class="form-control" id="emailsubject" name="api_password" value="<?= $appsettings['api_password']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="emailsubject">Margin Pulsa</label>
|
||||
<input type="text" class="form-control" id="emailsubject" name="harga_pulsa" value="<?= $appsettings['harga_pulsa']; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="emailtext1">Token</label>
|
||||
<input type="text" class="form-control" id="summernoteExample4" name="api_token" value="<?= $appsettings['api_token']; ?>" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="banktransfer-2-7" role="tabpanel" aria-labelledby="tab-2-7">
|
||||
<div class="col-12 grid-margin">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Pengaturan Transfer Bank</h4>
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>appsettings/addbank"><i class="mdi mdi-plus-circle-outline"></i>Tambah Bank</a>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing7" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Logo Bank</th>
|
||||
<th>Nama Bank</th>
|
||||
<th>Nama Pemilik</th>
|
||||
<th>Nomor Rekening</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($transfer as $trf) { ?>
|
||||
<tr>
|
||||
|
||||
<td><?= $i ?></td>
|
||||
<td><img src="<?= base_url('images/bank/') . $trf['image_bank']; ?>"></td>
|
||||
<td><?= $trf['nama_bank'] ?></td>
|
||||
<td><?= $trf['nama_pemilik'] ?></td>
|
||||
<td><?= $trf['rekening_bank'] ?></td>
|
||||
<td><?php if ($trf['status_bank'] == 1) { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } else if ($trf['status_bank'] == 0) { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>appsettings/editbank/<?= $trf['id_bank'] ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>appsettings/hapusbank/<?= $trf['id_bank'] ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
189
backendpanel/application/views/categorymerchant/index.php
Normal file
189
backendpanel/application/views/categorymerchant/index.php
Normal file
@@ -0,0 +1,189 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-primary" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<button class="btn btn-info" id="tombolAdd"><i class="mdi mdi-plus-circle-outline"></i>Tambah Kategori Merchant</button>
|
||||
</div>
|
||||
<br>
|
||||
<div id="tempatData"></div>
|
||||
|
||||
<div id="elementform" style="display:none;">
|
||||
|
||||
<h4 class="card-title">Ubah Kategroi Merchant</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('categorymerchant/ubahcm'); ?>
|
||||
<input type="hidden" class="form-control" id="valid" name="id_kategori_merchant" style="width:60%" value="" required>
|
||||
<div class="form-group">
|
||||
<label for="valnam">Nama Kategori</label>
|
||||
<input type="text" class="form-control" id="valnam" name="nama_kategori" style="width:60%" value="" required>
|
||||
</div>
|
||||
<label for="">Untuk Layanan</label>
|
||||
<div class="form-group">
|
||||
<select class="form-control" style="width:60%" name="id_fitur">
|
||||
<?php foreach ($fitur as $ft) { ?>
|
||||
<option id="<?= $ft['fitur'] ?>" value="<?= $ft['id_fitur'] ?>"><?= $ft['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<label for="">Status</label>
|
||||
<div class="form-group">
|
||||
<select class="form-control" style="width:60%" name="status_kategori">
|
||||
<option selected="false" id="status1" value="1">Aktif</option>
|
||||
<option selected="false" id="status0" value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-7 ">
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<?= form_close(); ?>
|
||||
<span onclick="balikan()" class="btn btn-light">Batal</span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<h4 class="card-title">Kategori Merchant</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<h1 id="jumlah" style="display: none;"><?= count($catmer) ?></h1>
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Kategori</th>
|
||||
<th>Untuk Layanan</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($catmer as $cm) { ?>
|
||||
<tr>
|
||||
<h1 id="idkat<?= $i ?>" style="display:none;"><?= $cm['id_kategori_merchant']; ?></h1>
|
||||
<h1 id="statm<?= $i ?>" style="display:none;"><?= $cm['status_kategori']; ?></h1>
|
||||
<td><?= $i ?></td>
|
||||
<td id="namkat<?= $i ?>"><?= $cm['nama_kategori']; ?></td>
|
||||
<td id="fitur<?= $i ?>"><?= $cm['fitur']; ?></td>
|
||||
<td>
|
||||
<div>
|
||||
<?php if ($cm['status_kategori'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif
|
||||
</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<button onclick="update(<?= $i ?>);" class="btn btn-outline-success">Ubah</button>
|
||||
<a href="<?= base_url(); ?>categorymerchant/hapus/<?= $cm['id_kategori_merchant']; ?>" onclick="return confirm ('are you sure Delete this merchant?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
|
||||
|
||||
<script>
|
||||
const tombol = document.getElementById('tombolAdd');
|
||||
tombol.addEventListener("click", function() {
|
||||
const isi = document.getElementById('tempatData');
|
||||
isi.innerHTML = formAdd();
|
||||
const kembali = document.getElementById('cancel');
|
||||
kembali.addEventListener("click", function() {
|
||||
isi.innerHTML = backlah();
|
||||
})
|
||||
});
|
||||
|
||||
function backlah() {
|
||||
return ``
|
||||
}
|
||||
|
||||
function formAdd() {
|
||||
return `<h4 class="card-title">Add Category Merchant</h4>
|
||||
<br>
|
||||
<?= form_open_multipart('categorymerchant/tambahcm'); ?>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Category Name</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="nama_kategori" style="width:60%" required>
|
||||
</div>
|
||||
<label for="">For Service</label>
|
||||
<div class="form-group">
|
||||
<select class="form-control" style="width:60%" name="id_fitur">
|
||||
<?php foreach ($fitur as $ft) { ?>
|
||||
<option value="<?= $ft['id_fitur'] ?>"><?= $ft['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<label for="">Status</label>
|
||||
<div class="form-group">
|
||||
<select class="form-control" style="width:60%" name="status_kategori">
|
||||
<option value="1">Active</option>
|
||||
<option value="0">Non Active</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-7">
|
||||
<button type="submit" class="btn btn-success mr-2">Submit</button>
|
||||
<?= form_close(); ?>
|
||||
<button id="cancel" class="btn btn-light">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>`
|
||||
}
|
||||
const jumlah = document.getElementById("jumlah").innerHTML
|
||||
|
||||
for (let i = 0; i < jumlah; i++) {
|
||||
|
||||
function update(i) {
|
||||
let idkat = document.getElementById(`idkat${i}`).innerHTML
|
||||
let namkat = document.getElementById(`namkat${i}`).innerHTML
|
||||
let fitur = document.getElementById(`fitur${i}`).innerHTML
|
||||
let statm = document.getElementById(`statm${i}`).innerHTML
|
||||
|
||||
|
||||
let editdoc = document.getElementById('elementform');
|
||||
editdoc.style = "display:block;";
|
||||
document.getElementById('valnam').value = namkat;
|
||||
document.getElementById(`${fitur}`).selected = true;
|
||||
document.getElementById(`status${statm}`).selected = true;
|
||||
document.getElementById(`valid`).value = idkat;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function balikan() {
|
||||
document.getElementById('elementform').style = "display:none;";
|
||||
}
|
||||
</script>
|
||||
417
backendpanel/application/views/dashboard/detailtransaction.php
Normal file
417
backendpanel/application/views/dashboard/detailtransaction.php
Normal file
@@ -0,0 +1,417 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-lg-4 side-left d-flex align-items-stretch">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body avatar">
|
||||
<?php if ($transaksi['status'] == '2') { ?>
|
||||
<h4 class="card-title">Status<p class="ml-2 badge badge-primary"><?= $transaksi['status_transaksi'] ?></p>
|
||||
</h4>
|
||||
<?php } ?>
|
||||
<?php if ($transaksi['status'] == '3') { ?>
|
||||
<h4 class="card-title">Status<p class="ml-2 badge badge-success"><?= $transaksi['status_transaksi'] ?></p>
|
||||
</h4>
|
||||
<?php } ?>
|
||||
<?php if ($transaksi['status'] == '4') { ?>
|
||||
<h4 class="card-title">Status<p class="ml-2 badge badge-info"><?= $transaksi['status_transaksi'] ?></p>
|
||||
</h4>
|
||||
<?php } ?>
|
||||
<?php if ($transaksi['status'] == '5') { ?>
|
||||
<h4 class="card-title">Status<p class="ml-2 badge badge-danger"><?= $transaksi['status_transaksi'] ?></p>
|
||||
</h4>
|
||||
<?php } ?>
|
||||
<br>
|
||||
<div class="row">
|
||||
|
||||
<?php if ($transaksi['home'] == 4) { ?>
|
||||
|
||||
<div class="col-4">
|
||||
<h6 class="text-center text-muted">
|
||||
<i class="mdi mdi-account mr-2 text-muted"></i>User</h6>
|
||||
<img src="<?= base_url('images/pelanggan/') . $transaksi['fotopelanggan']; ?>">
|
||||
<p class="name"><?= $transaksi['fullnama'] ?></p>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['email_pelanggan'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['telepon_pelanggan'] ?></a>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<h6 class="text-center text-muted">
|
||||
<i class="mdi mdi-store mr-2 text-muted"></i>Merchant</h6>
|
||||
<img src="<?= base_url('images/merchant/') . $transaksi['foto_merchant']; ?>">
|
||||
<p class="name"><?= $transaksi['nama_merchant'] ?></p>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['alamat_merchant'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['telepon_merchant'] ?></a>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<h6 class="text-center text-muted">
|
||||
<i class="mdi mdi-motorbike mr-2 text-muted"></i>Driver</h6>
|
||||
<img src="<?= base_url('images/fotodriver/') . $transaksi['foto']; ?>">
|
||||
<p class="name"><?= $transaksi['nama_driver'] ?></p>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['email'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['no_telepon'] ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="col-6">
|
||||
<h6 class="text-center text-muted">
|
||||
<i class="mdi mdi-account mr-2 text-muted"></i>User</h6>
|
||||
<img src="<?= base_url('images/pelanggan/') . $transaksi['fotopelanggan']; ?>">
|
||||
<p class="name"><?= $transaksi['fullnama'] ?></p>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['email_pelanggan'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['telepon_pelanggan'] ?></a>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<h6 class="text-center text-muted">
|
||||
<i class="mdi mdi-motorbike mr-2 text-muted"></i>Driver</h6>
|
||||
<img src="<?= base_url('images/fotodriver/') . $transaksi['foto']; ?>">
|
||||
<p class="name"><?= $transaksi['nama_driver'] ?></p>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['email'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $transaksi['no_telepon'] ?></a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($transaksi['home'] == 3) { ?>
|
||||
|
||||
<div class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
|
||||
<div class=" col-12">
|
||||
<div>
|
||||
<p class="text-center">
|
||||
<i class="mdi mdi-account-location icon-lg text-primary "></i>
|
||||
</p>
|
||||
<h6 class="text-center">Pickup</h6>
|
||||
<p class="text-center"><?= $transaksi['alamat_asal'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
<div class=" col-12 d-flex align-items-center justify-content-center">
|
||||
<div>
|
||||
<h6 class="text-center"><?= $transaksi['fitur'] ?></h6>
|
||||
<hr class="text-center">
|
||||
</hr>
|
||||
<p class="text-center">
|
||||
|
||||
<?php if ($transaksi['home'] == '3') {
|
||||
if ($transaksi['jarak'] == '0') {
|
||||
echo $transaksi['estimasi_time'];
|
||||
}
|
||||
} else {
|
||||
$jarak = $transaksi['jarak'];
|
||||
$jarakbulat = number_format($jarak, 1);
|
||||
echo $jarakbulat;
|
||||
echo ' ';
|
||||
echo $transaksi['keterangan_biaya'];
|
||||
} ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row info-links">
|
||||
<div class="col-4 align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-update text-gray">Waktu Order:
|
||||
</i>
|
||||
<p><?= $transaksi['waktu_order'] ?></p>
|
||||
</div>
|
||||
<div class=" col-4 d-flex align-items-center justify-content-md-center"></div>
|
||||
<div class="col-4 align-items-center justify-content-center">
|
||||
<i class="mdi mdi-update text-gray">Waktu Selesai:
|
||||
</i>
|
||||
<p><?= $transaksi['waktu_selesai'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<div class="row">
|
||||
|
||||
<div class=" col-4">
|
||||
<div>
|
||||
<p class="text-center">
|
||||
<?php if ($transaksi['home'] == 4 ) { ?>
|
||||
<i class="mdi mdi-store icon-lg text-primary "></i>
|
||||
<?php } else { ?>
|
||||
<i class="mdi mdi-account-location icon-lg text-primary "></i>
|
||||
<?php } ?>
|
||||
</p>
|
||||
<h6 class="text-center">Pick Up</h6>
|
||||
<p class="text-center"><?= $transaksi['alamat_asal'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" col-4 d-flex align-items-center justify-content-center">
|
||||
<div>
|
||||
<h6 class="text-center"><?= $transaksi['fitur'] ?></h6>
|
||||
<hr class="text-center">
|
||||
</hr>
|
||||
<p class="text-center">
|
||||
|
||||
<?php if ($transaksi['home'] == '3') {
|
||||
if ($transaksi['jarak'] == '0') {
|
||||
echo $transaksi['estimasi_time'];
|
||||
}
|
||||
} else if ($transaksi['home'] == '2') {
|
||||
echo '';
|
||||
} else {
|
||||
$jarak = $transaksi['jarak'];
|
||||
$jarakbulat = number_format($jarak, 1);
|
||||
echo $jarakbulat;
|
||||
echo ' ';
|
||||
echo $transaksi['keterangan_biaya'];
|
||||
} ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" col-4">
|
||||
<div>
|
||||
<p class="text-center">
|
||||
<i class="mdi mdi-map-marker icon-lg text-danger "></i>
|
||||
</p>
|
||||
<h6 class="text-center">Drop Point</h6>
|
||||
<p class="text-center"><?= $transaksi['alamat_tujuan'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row info-links">
|
||||
<div class="col-4 align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-update text-gray">Waktu Order:
|
||||
</i>
|
||||
<p><?= $transaksi['waktu_order'] ?></p>
|
||||
</div>
|
||||
<div class=" col-4 d-flex align-items-center justify-content-md-center"></div>
|
||||
<div class="col-4 align-items-center justify-content-center">
|
||||
<i class="mdi mdi-update text-gray">Waktu selesai:
|
||||
</i>
|
||||
<p><?= $transaksi['waktu_selesai'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 side-right stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="container-fluid">
|
||||
<h3 class="text-right my-5">Invoice #INV-<?= $transaksi['id'] ?>
|
||||
<span class="ml-2 badge badge-warning" style="font-size:100%;">
|
||||
<i class="mdi mdi-star mr-1"></i><?= $transaksi['rate'] ?></span></h3>
|
||||
<h6 class="text-right">Ulasan User</h6>
|
||||
<p class="text-right text-muted">
|
||||
<?= $transaksi['catatan'] ?></p>
|
||||
<hr>
|
||||
|
||||
<?php if ($transaksi['home'] == 4) { ?>
|
||||
<div class="container-fluid mt-5 d-flex justify-content-center w-100">
|
||||
<div class="table-responsive w-100">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr class="bg-dark text-white">
|
||||
<th>Populer</th>
|
||||
<th>item</th>
|
||||
<th>qty</th>
|
||||
<th class="text-right">Total</th>
|
||||
<!-- <th class="text-right">Total</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-left"><?= $transaksi['fitur'] ?>
|
||||
Layanan</td>
|
||||
|
||||
<td>
|
||||
<?php foreach ($transitem as $item) { ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><?= $item['nama_item'] ?></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($transitem as $item) { ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><?= $item['jumlah_item'] ?></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<?php foreach ($transitem as $item) { ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($item['total_harga'],0,".",".") ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid mt-5 w-100">
|
||||
<p class="text-right mb-2">Jumlah Belanja:
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['total_belanja'],0,".",".") ?></p>
|
||||
<p class="text-right mb-2">Biaya pengiriman (<?= $transaksi['jarak'] ?> KM):
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['harga'],0,".",".") ?></p>
|
||||
<p class="text-right mb-2">Sub - Jumlah total:
|
||||
<?php $subtotal = $transaksi['harga'] + $transaksi['total_belanja']; ?>
|
||||
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($subtotal,0,".",".") ?></p>
|
||||
<p class="text-right mb-2">Diskon
|
||||
<span class="text-danger">
|
||||
(<?php if ($transaksi['pakai_wallet'] == '1') {
|
||||
echo $transaksi['nilai'];
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>
|
||||
%)</span>
|
||||
:<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['kredit_promo'],0,".",".") ?></p>
|
||||
<br>
|
||||
<p class="text-right mb-2 mt-4">Metode Pembayaran :
|
||||
<?php if ($transaksi['pakai_wallet'] == '0') { ?>
|
||||
<span class="badge badge-success"><?= 'CASH'; ?>
|
||||
<?php } else { ?>
|
||||
<span class="badge badge-primary"><?= 'wallet';
|
||||
} ?>
|
||||
</span>
|
||||
</p>
|
||||
<h4 class="text-right mb-5">Total :
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['biaya_akhir'],0,".",".") ?></h4>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
<div class="container-fluid mt-5 d-flex justify-content-center w-100">
|
||||
<div class="table-responsive w-100">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr class="bg-dark text-white">
|
||||
<th>Populer</th>
|
||||
<?php if ($transaksi['home'] != '2') { ?>
|
||||
<th class="text-right">unit</th>
|
||||
<?php } ?>
|
||||
<th class="text-right">Unit biaya</th>
|
||||
<th class="text-right">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="text-right">
|
||||
<td class="text-left"><?= $transaksi['fitur'] ?>
|
||||
Service</td>
|
||||
<?php if ($transaksi['home'] != '2') { ?>
|
||||
<td>
|
||||
<?php if ($transaksi['home'] == '3') {
|
||||
if ($transaksi['jarak'] == '0') {
|
||||
echo $transaksi['estimasi_time'];
|
||||
}
|
||||
} else {
|
||||
$jarak = $transaksi['jarak'];
|
||||
$jarakbulat = number_format($jarak, 1);
|
||||
echo $jarakbulat;
|
||||
echo ' ';
|
||||
echo $transaksi['keterangan_biaya'];
|
||||
} ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td><?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['biaya'],0,".",".") ?></td>
|
||||
<td><?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['harga'],0,".",".") ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="container-fluid mt-5 w-100">
|
||||
<p class="text-right mb-2">Sub - Jumlah total:
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['harga'],0,".",".") ?></p>
|
||||
<p class="text-right mb-2">Diskon
|
||||
<span class="text-danger">
|
||||
(<?php if ($transaksi['pakai_wallet'] == '1') {
|
||||
echo $transaksi['nilai'];
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>
|
||||
%)</span>
|
||||
:<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['kredit_promo'],0,".",".") ?></p>
|
||||
<br>
|
||||
<p class="text-right mb-2 mt-4">Metode Pembayaran :
|
||||
<?php if ($transaksi['pakai_wallet'] == '0') { ?>
|
||||
<span class="badge badge-success"><?= 'CASH'; ?>
|
||||
<?php } else { ?>
|
||||
<span class="badge badge-primary"><?= 'wallet';
|
||||
} ?>
|
||||
</span>
|
||||
</p>
|
||||
<h4 class="text-right mb-5">Total :
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($transaksi['biaya_akhir'],0,".",".") ?></h4>
|
||||
<hr>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="container-fluid w-100">
|
||||
<?php if ($transaksi['status'] != 5 and $transaksi['status'] != 4) { ?>
|
||||
<a href="<?= base_url(); ?>dashboard/cancletransaction/<?= $transaksi['id'] ?>/<?= $transaksi['id_driver'] ?>" class="btn btn-danger float-right mt-4 ml-2">
|
||||
<i class="mdi mdi-cancel mr-1"></i>Pembatalan Transaksi</a>
|
||||
<?php } ?>
|
||||
|
||||
<a href="<?= base_url(); ?>transaction" class="btn btn-primary float-right mt-4">
|
||||
<i class="mdi mdi-keyboard-backspace mr-1"></i>Kembali</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
488
backendpanel/application/views/dashboard/index.php
Normal file
488
backendpanel/application/views/dashboard/index.php
Normal file
@@ -0,0 +1,488 @@
|
||||
<!-- counters -->
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi</p>
|
||||
<h3><?= count($transaksi); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi</p>
|
||||
<h3><?= count($transaksi1); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi</p>
|
||||
<h3><?= count($transaksi3); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-success"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi Sukses</p>
|
||||
<h3><?= count($transaksi_sukses); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-success"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi Sukses</p>
|
||||
<h3><?= count($transaksi_sukses1); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-chart-areaspline icon-lg text-success"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Transaksi Sukses</p>
|
||||
<h3><?= count($transaksi_sukses3); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi icon-lg text-warning"><?= $currency['app_currency'] ?></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Nilai Transaksi Sukses</p>
|
||||
<h3><?= $currency['app_currency'] ?>
|
||||
<?= number_format($saldo['total'],0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi icon-lg text-warning"><?= $currency['app_currency'] ?></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Nilai Transaksi Sukses</p>
|
||||
<h3><?= $currency['app_currency'] ?>
|
||||
<?= number_format($saldo1['total'],0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi icon-lg text-warning"><?= $currency['app_currency'] ?></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Nilai Transaksi Sukses</p>
|
||||
<h3><?= $currency['app_currency'] ?>
|
||||
<?= number_format($saldo3['total'],0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-account icon-lg text-info"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total User</p>
|
||||
<h3><?= count($user); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-account-multiple icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Driver</p>
|
||||
<h3><?= count($hitungdriver0); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-account-multiple icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Driver</p>
|
||||
<h3><?= count($hitungdriver); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-account-multiple icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Driver</p>
|
||||
<h3><?= count($hitungdriver3); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-store icon-lg text-primary"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Merchant</p>
|
||||
<h3><?= count($mitra0); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-store icon-lg text-primary"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Merchant</p>
|
||||
<h3><?= count($mitra); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-store icon-lg text-primary"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Total Merchant</p>
|
||||
<h3><?= count($mitra3); ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<!-- end of counter -->
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 col-lg-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h6 class="card-title">Transaksi Layanan Perbulan</h6>
|
||||
<p class="card-description">Layanan yang menghasilkan sebagian besar pendapatan dan
|
||||
penjualan mereka sepanjang tahun dan variasi perilaku penjualan.</p>
|
||||
<div id="js-legend2" class="chartjs-legend mt-4 mb-5"></div>
|
||||
<div class="demo-chart">
|
||||
<canvas id="merchantChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<br>
|
||||
<h4 class="card-title">Transaksi Selesai</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-list" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Layanan</th>
|
||||
<th>Harian</th>
|
||||
<th>Bulanan</th>
|
||||
<th>Tahunan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php $i = 1;
|
||||
foreach ($harian as $hr) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $hr['fitur'] ?></td>
|
||||
<td >
|
||||
<label class="badge badge-success"><?= $hr['hari'] ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="badge badge-info"><?= $hr['bulan'] ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="badge badge-danger"><?= $hr['tahun'] ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- footer -->
|
||||
<?php $this->load->view('includes/footer'); ?>
|
||||
|
||||
<!-- End custom js for this page-->
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
(function($) {
|
||||
'use strict';
|
||||
$(function() {
|
||||
if ($("#merchantChart").length) {
|
||||
var ctx = document
|
||||
.getElementById('merchantChart')
|
||||
.getContext("2d");
|
||||
var myChart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: [
|
||||
'Jan',
|
||||
'Feb',
|
||||
'Mar',
|
||||
'Apr',
|
||||
'Mei',
|
||||
'Jun',
|
||||
'Jul',
|
||||
'Ags',
|
||||
'Sep',
|
||||
'Okt',
|
||||
'Nov',
|
||||
'Des'
|
||||
],
|
||||
datasets: [{
|
||||
label: "Layanan Penumpang",
|
||||
borderColor: 'rgba(171, 140 ,228, 1)',
|
||||
backgroundColor: 'rgba(171, 140 ,228, 0.3)',
|
||||
pointRadius: 0,
|
||||
fill: true,
|
||||
borderWidth: 3,
|
||||
fill: 'origin',
|
||||
data: [
|
||||
<?= $jan1[0]['jumlah'] ?>,
|
||||
<?= $feb1[0]['jumlah'] ?>,
|
||||
<?= $mar1[0]['jumlah'] ?>,
|
||||
<?= $apr1[0]['jumlah'] ?>,
|
||||
<?= $mei1[0]['jumlah'] ?>,
|
||||
<?= $jun1[0]['jumlah'] ?>,
|
||||
<?= $jul1[0]['jumlah'] ?>,
|
||||
<?= $aug1[0]['jumlah'] ?>,
|
||||
<?= $sep1[0]['jumlah'] ?>,
|
||||
<?= $okt1[0]['jumlah'] ?>,
|
||||
<?= $nov1[0]['jumlah'] ?>,
|
||||
<?= $des1[0]['jumlah'] ?>
|
||||
]
|
||||
}, {
|
||||
label: "Layanan Pengiriman",
|
||||
borderColor: 'rgba(88, 216 ,163, 1)',
|
||||
backgroundColor: 'rgba(88, 216 ,163, 0.3)',
|
||||
pointRadius: 0,
|
||||
fill: true,
|
||||
borderWidth: 3,
|
||||
fill: 'origin',
|
||||
data: [
|
||||
<?= $jan2[0]['jumlah'] ?>,
|
||||
<?= $feb2[0]['jumlah'] ?>,
|
||||
<?= $mar2[0]['jumlah'] ?>,
|
||||
<?= $apr2[0]['jumlah'] ?>,
|
||||
<?= $mei2[0]['jumlah'] ?>,
|
||||
<?= $jun2[0]['jumlah'] ?>,
|
||||
<?= $jul2[0]['jumlah'] ?>,
|
||||
<?= $aug2[0]['jumlah'] ?>,
|
||||
<?= $sep2[0]['jumlah'] ?>,
|
||||
<?= $okt2[0]['jumlah'] ?>,
|
||||
<?= $nov2[0]['jumlah'] ?>,
|
||||
<?= $des2[0]['jumlah'] ?>
|
||||
]
|
||||
}, {
|
||||
label: "Layanan Sewa",
|
||||
borderColor: 'rgba(255, 180 ,99, 1)',
|
||||
backgroundColor: 'rgba(255, 180 ,99, 0.3)',
|
||||
pointRadius: 0,
|
||||
fill: true,
|
||||
borderWidth: 3,
|
||||
fill: 'origin',
|
||||
data: [
|
||||
<?= $jan3[0]['jumlah'] ?>,
|
||||
<?= $feb3[0]['jumlah'] ?>,
|
||||
<?= $mar3[0]['jumlah'] ?>,
|
||||
<?= $apr3[0]['jumlah'] ?>,
|
||||
<?= $mei3[0]['jumlah'] ?>,
|
||||
<?= $jun3[0]['jumlah'] ?>,
|
||||
<?= $jul3[0]['jumlah'] ?>,
|
||||
<?= $aug3[0]['jumlah'] ?>,
|
||||
<?= $sep3[0]['jumlah'] ?>,
|
||||
<?= $okt3[0]['jumlah'] ?>,
|
||||
<?= $nov3[0]['jumlah'] ?>,
|
||||
<?= $des3[0]['jumlah'] ?>
|
||||
]
|
||||
}, {
|
||||
label: "Layanan Pembelian",
|
||||
borderColor: 'rgba(255, 0, 0, 1)',
|
||||
backgroundColor: 'rgba(255, 0, 0, 0.3)',
|
||||
pointRadius: 0,
|
||||
fill: true,
|
||||
borderWidth: 3,
|
||||
fill: 'origin',
|
||||
data: [
|
||||
<?= $jan4[0]['jumlah'] ?>,
|
||||
<?= $feb4[0]['jumlah'] ?>,
|
||||
<?= $mar4[0]['jumlah'] ?>,
|
||||
<?= $apr4[0]['jumlah'] ?>,
|
||||
<?= $mei4[0]['jumlah'] ?>,
|
||||
<?= $jun4[0]['jumlah'] ?>,
|
||||
<?= $jul4[0]['jumlah'] ?>,
|
||||
<?= $aug4[0]['jumlah'] ?>,
|
||||
<?= $sep4[0]['jumlah'] ?>,
|
||||
<?= $okt4[0]['jumlah'] ?>,
|
||||
<?= $nov4[0]['jumlah'] ?>,
|
||||
<?= $des4[0]['jumlah'] ?>
|
||||
]
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
maintainAspectRatio: false,
|
||||
legend: {
|
||||
display: false,
|
||||
position: "top"
|
||||
},
|
||||
scales: {
|
||||
xAxes: [{
|
||||
ticks: {
|
||||
display: true,
|
||||
beginAtZero: true,
|
||||
fontColor: 'rgba(0, 0, 0, 1)'
|
||||
},
|
||||
gridLines: {
|
||||
display: false,
|
||||
drawBorder: false,
|
||||
color: 'transparent',
|
||||
zeroLineColor: '#eeeeee'
|
||||
}
|
||||
}],
|
||||
yAxes: [{
|
||||
gridLines: {
|
||||
drawBorder: true,
|
||||
display: true,
|
||||
color: '#eeeeee'
|
||||
},
|
||||
categoryPercentage: 0.5,
|
||||
ticks: {
|
||||
display: true,
|
||||
beginAtZero: true,
|
||||
stepSize: 20,
|
||||
max: 100,
|
||||
fontColor: 'rgba(0, 0, 0, 1)'
|
||||
}
|
||||
}]
|
||||
}
|
||||
},
|
||||
elements: {
|
||||
point: {
|
||||
radius: 0
|
||||
}
|
||||
}
|
||||
});
|
||||
document.getElementById('js-legend2').innerHTML = myChart.generateLegend();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
465
backendpanel/application/views/drivers/detail.php
Normal file
465
backendpanel/application/views/drivers/detail.php
Normal file
@@ -0,0 +1,465 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-lg-4 side-left d-flex align-items-stretch">
|
||||
<div class="row">
|
||||
<div class="col-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body avatar">
|
||||
<div class="row">
|
||||
<h4 class="col-auto mr-auto card-title">Informasi Driver</h4>
|
||||
<a class="col-auto btn btn-danger text-white" href="<?= base_url(); ?>driver">
|
||||
<i class="mdi mdi-keyboard-backspace text-white"></i>Kembali</a>
|
||||
</div>
|
||||
|
||||
<img src="<?= base_url('images/fotodriver/') . $driver['foto'] ?>">
|
||||
<p class="name"><?= $driver['nama_driver'] ?>
|
||||
<?php if ($driver['gender'] == 2) { ?>
|
||||
<i class="mdi mdi-gender-male text-info"></i>
|
||||
<?php } else { ?>
|
||||
<i class="mdi mdi-gender-female text-info"></i>
|
||||
<?php } ?>
|
||||
</p>
|
||||
<h4 class="text-center text-primary">
|
||||
<i class="mdi mdi-wallet mr-1 text-primary "></i>Saldo</h4>
|
||||
<p class="text-center"><?= $currency['app_currency'] ?>
|
||||
<?= number_format($driver['saldo'] , 0, ".", ".") ?></p>
|
||||
|
||||
<a class="d-block text-center text-dark" href="#">id card :
|
||||
<?= $driver['no_ktp'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $driver['email'] ?></a>
|
||||
<a class="d-block text-center text-dark" href="#"><?= $driver['no_telepon'] ?></a>
|
||||
|
||||
<?php if ($driver['status'] == 0) { ?>
|
||||
<a class="d-block text-center" href=" <?= base_url(); ?>newregistration/confirm/<?= $driver['id'] ?>"> <button class="btn btn-outline-primary mr-2">Confirm</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<ul class="achivements">
|
||||
|
||||
<li>
|
||||
<p class="text-success">Order</p>
|
||||
<p><?= $countorder ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success">Id</p>
|
||||
<p><?= $driver['id'] ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<li>
|
||||
<p class="text-success">Ulasan</p>
|
||||
<p><?= number_format($driver['rating'], 1) ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success">Status</p>
|
||||
<p>
|
||||
<?php if ($driver['status'] == 3) {
|
||||
echo 'Banned';
|
||||
} elseif ($driver['status'] == 0) {
|
||||
echo 'New Registration';
|
||||
} else {
|
||||
if ($driver['status_job'] == 1) {
|
||||
echo 'Active';
|
||||
}
|
||||
if ($driver['status_job'] == 2) {
|
||||
echo 'Pick Up';
|
||||
}
|
||||
if ($driver['status_job'] == 3) {
|
||||
echo 'Work';
|
||||
}
|
||||
if ($driver['status_job'] == 4) {
|
||||
echo 'Non Active';
|
||||
}
|
||||
if ($driver['status_job'] == 5) {
|
||||
echo 'Log out';
|
||||
}
|
||||
} ?>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="wrapper about-user">
|
||||
<h4 class="card-title mt-4 mb-3">Region/Wilayah</h4>
|
||||
<p><?= $driver['partner_region'] ?></p>
|
||||
</div>
|
||||
<div class="wrapper about-user">
|
||||
<h4 class="card-title mt-4 mb-3">Alamat</h4>
|
||||
<p><?= $driver['alamat_driver'] ?></p>
|
||||
</div>
|
||||
<div class="info-links">
|
||||
<i class="mdi mdi-update text-gray">Terakhir Aktif
|
||||
</i>
|
||||
<p><?= $driver['update_at'] ?></p>
|
||||
<i class="mdi mdi-account-check text-gray">Daftar:
|
||||
</i>
|
||||
<p><?= $driver['created_at'] ?></p>
|
||||
<i class="mdi mdi-calendar text-gray">Tanggal Lahir:
|
||||
</i>
|
||||
<p><?= $driver['tgl_lahir'] ?></p>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<span class="col-4 text-center">Tipe Job<p class=" text-danger text-center"><?= $driver['driver_job'] ?></p>
|
||||
</span>
|
||||
<span class="col-4 text-center">Kendaraan<p class=" text-danger text-center"><?= $driver['merek'] ?>
|
||||
<?= $driver['tipe'] ?>
|
||||
<?= $driver['warna'] ?></p>
|
||||
</span>
|
||||
<span class="col-4 text-center">Plat No<p class=" text-danger text-center"><?= $driver['nomor_kendaraan'] ?></p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 side-right stretch-card">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
<h4 class="card-title mb-0">Detail Driver</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="info-tab" data-toggle="tab" href="#info" role="tab" aria-controls="info" aria-expanded="true">Info</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="service-tab" data-toggle="tab" href="#job" role="tab" aria-controls="service">Job & Kendaraan</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="avatar-tab" data-toggle="tab" href="#avatar" role="tab" aria-controls="avatar">Photo Profil</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="files-tab" data-toggle="tab" href="#files" role="tab" aria-controls="files">File</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="security-tab" data-toggle="tab" href="#security" role="tab" aria-controls="security">Password</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="transactionhistory-tab" data-toggle="tab" href="#transactionhistory" role="tab" aria-controls="transactionhistory">History Transaksi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="wallet-tab" data-toggle="tab" href="#wallet" role="tab" aria-controls="wallet">Saldo</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
|
||||
<!-- driver info form -->
|
||||
<div class="tab-pane fade show active" id="info" role="tabpanel" aria-labelledby="info">
|
||||
<?= form_open_multipart('driver/ubahid'); ?>
|
||||
<input type="hidden" name="id" value="<?= $driver['id'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="name">Nama</label>
|
||||
<input type="text" class="form-control" name="nama_driver" value="<?= $driver['nama_driver'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" name="email" value="<?= $driver['email'] ?>" required>
|
||||
</div>
|
||||
|
||||
<label class="text-small">No Hp</label>
|
||||
<div class="row">
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone" class="form-control" name="countrycode" value="<?= $driver['countrycode'] ?>" required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" id="phone" name="phone" value="<?= $driver['phone'] ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" form-group">
|
||||
<label for="birthdate">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" name="tgl_lahir" value="<?= $driver['tgl_lahir'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="gender">Jenis Kelamin</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="gender">
|
||||
<option value="Male" <?php if ($driver['gender'] == 'Male') { ?>selected<?php } ?>>Pria</option>
|
||||
<option value="Female" <?php if ($driver['gender'] == 'Female') { ?>selected<?php } ?>>Wanita</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="address">Alamat</label>
|
||||
<textarea name="alamat_driver" rows="6" class="form-control" required><?= $driver['alamat_driver'] ?></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<!-- tab content ends -->
|
||||
|
||||
<!-- jjob vehicle form -->
|
||||
<div class="tab-pane fade" id="job" role="tabpanel" aria-labelledby="service">
|
||||
<?= form_open_multipart('driver/ubahkendaraan'); ?>
|
||||
<input type="hidden" name="id" value="<?= $driver['id'] ?>">
|
||||
<input type="hidden" name="id_k" value="<?= $driver['id_k'] ?>">
|
||||
|
||||
<?php if ($this->session->userdata('wilayah') ==0 ) { ?>
|
||||
<div class="form-group">
|
||||
<label for="Partner Region">Region/Wilayah</label>
|
||||
<select class="js-example-basic-single" name="driverregion" style="width:100%">\
|
||||
<?php foreach ($partner_region as $drg) { ?>
|
||||
<option value="<?= $drg['id'] ?>" <?php if ($driver['wilayah'] == $drg['id']) { ?>selected<?php } ?>><?= $drg['partner_region'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') !=0 ) { ?>
|
||||
|
||||
<input type="hidden" class="form-control" name="driverregion" value="<?= $driver['wilayah'] ?>" required>
|
||||
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<label for="Job Service">Kendaraan</label>
|
||||
<select class="js-example-basic-single" name="jenis" style="width:100%">\
|
||||
<?php foreach ($driverjob as $drj) { ?>
|
||||
<option value="<?= $drj['id'] ?>" <?php if ($driver['job'] == $drj['id']) { ?>selected<?php } ?>><?= $drj['driver_job'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="brand">Brand Kendaraan</label>
|
||||
<input type="text" class="form-control" name="merek" id="brand" value="<?= $driver['merek'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="variantvehicle">Jenis Kendaraan</label>
|
||||
<input type="text" class="form-control" name="tipe" id="variantvehicle" value="<?= $driver['tipe'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="vehiclecolor">Warna</label>
|
||||
<input type="text" class="form-control" name="warna" id="vehiclecolor" value="<?= $driver['warna'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="vehicleregistration">Plat Nomor</label>
|
||||
<input type="text" class="form-control" name="nomor_kendaraan" id="vehicleregistration" value="<?= $driver['nomor_kendaraan'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<!-- tab content ends -->
|
||||
|
||||
<div class="tab-pane fade" id="avatar" role="tabpanel" aria-labelledby="avatar-tab">
|
||||
<?= form_open_multipart('driver/ubahfoto'); ?>
|
||||
<input type="hidden" name="id" value="<?= $driver['id'] ?>">
|
||||
<label>Photo</label>
|
||||
<input type="file" class="dropify" name="foto" data-max-file-size="3mb" data-default-file="<?= base_url('images/fotodriver/') . $driver['foto'] ?>" />
|
||||
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="files" role="tabpanel" aria-labelledby="files-tab">
|
||||
|
||||
<?= form_open_multipart('driver/ubahcard'); ?>
|
||||
|
||||
<input type="hidden" name="id" value="<?= $driver['id'] ?>">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="idcard">Nomor Identitas</label>
|
||||
<input type="text" class="form-control" name="no_ktp" value="<?= $driver['no_ktp'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>Photo Identitas</label>
|
||||
<input type="file" class="dropify" name="foto_ktp" data-max-file-size="3mb" data-default-file="<?= base_url('images/fotoberkas/ktp/') . $driver['foto_ktp'] ?>" />
|
||||
<br>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="idcard">Nomor SIM</label>
|
||||
<input type="text" class="form-control" name="id_sim" value="<?= $driver['id_sim'] ?>" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>gambar SIM</label>
|
||||
<input type="file" class="dropify" name="foto_sim" data-max-file-size="3mb" data-default-file="<?= base_url('images/fotoberkas/sim/') . $driver['foto_sim'] ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="idcard">Masa Berlaku Pajak STNK</label>
|
||||
<input type="date" class="form-control" name="exp_stnk" value="<?= $driver['exp_stnk'] ?>" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>Gambar STNK</label>
|
||||
<input type="file" class="dropify" name="foto_stnk" data-max-file-size="3mb" data-default-file="<?= base_url('images/fotoberkas/stnk/') . $driver['foto_stnk'] ?>" />
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="security" role="tabpanel" aria-labelledby="security-tab">
|
||||
<?= form_open_multipart('driver/ubahpassword'); ?>
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id" value="<?= $driver['id'] ?>">
|
||||
<label for="new-password">Ubah password</label>
|
||||
<input type="password" class="form-control" id="new-password" name="password" placeholder="Enter you new password" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="transactionhistory" role="tabpanel" aria-labelledby="transactionhistory-tab">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Transaksi</th>
|
||||
<th>Layanan</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($transaksi as $tr) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>#INV-<?= $tr['id'] ?></td>
|
||||
<td><?= $tr['fitur'] ?></td>
|
||||
<td><?= $tr['waktu_order'] ?></td>
|
||||
<td class="text-success">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($tr['biaya_akhir'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($tr['status'] == '2') { ?>
|
||||
<label class="badge badge-primary"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '3') { ?>
|
||||
<label class="badge badge-success"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '5') { ?>
|
||||
<label class="badge badge-danger"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '4') { ?>
|
||||
<label class="badge badge-info"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-primary">View</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="wallet" role="tabpanel" aria-labelledby="wallet-tab">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Id</th>
|
||||
<th>Tipe</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Jumlah</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wl) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wl['id']; ?></td>
|
||||
<td><?= $wl['type']; ?></td>
|
||||
<td><?= $wl['waktu']; ?></td>
|
||||
|
||||
<?php if ($wl['type'] == 'topup' or $wl['type'] == 'Order+') { ?>
|
||||
<td class="text-success">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($wl['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
|
||||
<?php } else { ?>
|
||||
<td class="text-danger">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($wl['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "<?= $driver['countrycode'] ?>"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
769
backendpanel/application/views/drivers/index.php
Normal file
769
backendpanel/application/views/drivers/index.php
Normal file
@@ -0,0 +1,769 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('tambah') or $this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Driver</h4>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#alldrivers-2-1" role="tab" aria-controls="alldrivers-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-motorbike"></i>Semua Driver</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#active-2-2" role="tab" aria-controls="active-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-account-settings"></i>Driver Aktif</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-3" data-toggle="tab" href="#nonactive-2-3" role="tab" aria-controls="nonactive-2-3" aria-selected="false">
|
||||
<i class="mdi mdi-sleep"></i>Driver Non Aktif</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-4" data-toggle="tab" href="#suspended-2-4" role="tab" aria-controls="suspended-2-4" aria-selected="false">
|
||||
<i class="mdi mdi-account-off"></i>Driver Suspend</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="tab-content">
|
||||
|
||||
<!-- all driver -->
|
||||
<div class="tab-pane fade show active" id="alldrivers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Driver</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] != 0 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Baru Daftar</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 5) { ?>
|
||||
<label class="badge badge-danger">Log Out</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($drv['status'] != 0) {
|
||||
|
||||
if ($drv['status'] != 3) { ?>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>driver/unblock/<?= $drv['id'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php }
|
||||
} ?>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all driver -->
|
||||
|
||||
<!-- active driver -->
|
||||
<div class="tab-pane fade" id="active-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Active Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 1 && $this->session->userdata('wilayah') == 0) {
|
||||
if ($drv['status_job'] == 1 or $drv['status_job'] == 2 or $drv['status_job'] == 3 ) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-red mr-2">Block</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of active driver -->
|
||||
|
||||
<!-- non active driver -->
|
||||
<div class="tab-pane fade" id="nonactive-2-3" role="tabpanel" aria-labelledby="tab-2-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">NonActive Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status_job'] == 4 or $drv['status_job'] == 5 and $drv['status'] != 0 and $drv['status'] != 3 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 5) { ?>
|
||||
<label class="badge badge-danger">Log out</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-red mr-2">Block</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of non active driver -->
|
||||
|
||||
<!-- suspended drivers -->
|
||||
<div class="tab-pane fade" id="suspended-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Suspended Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 3 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/unblock/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of suspended driver -->
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<div class="tab-content">
|
||||
|
||||
<!-- all driver -->
|
||||
<div class="tab-pane fade show active" id="alldrivers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Driver</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] != 0 && $this->session->userdata('wilayah') == $drv['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Baru Daftar</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 5) { ?>
|
||||
<label class="badge badge-danger">Log Out</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($drv['status'] != 0) {
|
||||
|
||||
if ($drv['status'] != 3) { ?>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>driver/unblock/<?= $drv['id'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php }
|
||||
} ?>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all driver -->
|
||||
|
||||
<!-- active driver -->
|
||||
<div class="tab-pane fade" id="active-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Active Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 1 && $this->session->userdata('wilayah') == $drv['wilayah']) {
|
||||
if ($drv['status_job'] == 1 or $drv['status_job'] == 2 or $drv['status_job'] == 3 ) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-red mr-2">Block</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of active driver -->
|
||||
|
||||
<!-- non active driver -->
|
||||
<div class="tab-pane fade" id="nonactive-2-3" role="tabpanel" aria-labelledby="tab-2-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">NonActive Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] != 0 && $drv['status'] != 3 && $this->session->userdata('wilayah') == $drv['wilayah']) {
|
||||
if ($drv['status_job'] == 4 or $drv['status_job'] == 5 ) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 5) { ?>
|
||||
<label class="badge badge-danger">Log out</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/block/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-red mr-2">Block</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of non active driver -->
|
||||
|
||||
<!-- suspended drivers -->
|
||||
<div class="tab-pane fade" id="suspended-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Suspended Drivers</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Driver</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Rating</th>
|
||||
<th>Job Layanan</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 3 && $this->session->userdata('wilayah') == $drv['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">New Reg</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick Up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">Working</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Active</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/unblock/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>driver/hapus/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of suspended driver -->
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
170
backendpanel/application/views/drivers/tambahdriver.php
Normal file
170
backendpanel/application/views/drivers/tambahdriver.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Tambah Driver</h4>
|
||||
<?php if (validation_errors() or $this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('driver/tambah'); ?>
|
||||
<br>
|
||||
<h6 class="card-title">Informasi</h6>
|
||||
<div class="form-group">
|
||||
<label>Photo Profil</label>
|
||||
<input type="file" name="foto" class="dropify" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="nama_driver">Nama</label>
|
||||
<input type="text" class="form-control" id="nama_driver" name="nama_driver" <?php if ($_POST != NULL) { ?> value="<?= $_POST['nama_driver']; ?>" <?php } ?> placeholder="enter name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">Jenis Kelamin</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="gender">
|
||||
<option value="2" <?php
|
||||
if ($_POST != NULL) {
|
||||
if ($_POST['gender'] == '2') {
|
||||
?>selected<?php }
|
||||
} ?>>Pria</option>
|
||||
<option value="1" <?php
|
||||
if ($_POST != NULL) {
|
||||
if ($_POST['gender'] == '1') {
|
||||
?>selected<?php }
|
||||
} ?>>Wanita</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" <?php if ($_POST != NULL) { ?> value="<?= $_POST['tgl_lahir']; ?>" <?php } ?> placeholder="masukan tanggal lahir" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" <?php if ($_POST != NULL) { ?> value="<?= $_POST['email']; ?>" <?php } ?> placeholder="masukan email " required>
|
||||
</div>
|
||||
|
||||
<label class="text-small">No Hp</label>
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone" class="form-control" name="countrycode" <?php if ($_POST != NULL) { ?> value="<?= $_POST['countrycode']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" id="phone" name="phone" <?php if ($_POST != NULL) { ?> value="<?= $_POST['phone']; ?>" <?php } ?> placeholder="masukan nomor hp" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="address">Alamat</label>
|
||||
<textarea name="alamat_driver" rows="6" class="form-control" required><?php if ($_POST != NULL) {
|
||||
echo $_POST['alamat_driver']; ?>" <?php } ?></textarea>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<h6 class="card-title">Job & Kendaraan</h6>
|
||||
|
||||
<?php if ($this->session->userdata('wilayah') ==0 ) { ?>
|
||||
<div class="form-group">
|
||||
<label for="Partner Region">Region/Wilayah</label>
|
||||
<select class="js-example-basic-single" name="wilayah" style="width:100%">\
|
||||
<?php foreach ($partner_region as $drg) { ?>
|
||||
<option value="<?= $drg['id'] ?>"><?= $drg['partner_region'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') !=0 ) { ?>
|
||||
|
||||
<input type="hidden" class="form-control" name="wilayah" value="<?= $this->session->userdata('wilayah') ?>" required>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="Job Service">Kendaraan</label>
|
||||
<select class="js-example-basic-single" name="job" style="width:100%">
|
||||
<?php foreach ($driverjob as $drj) { ?>
|
||||
<option value="<?= $drj['id'] ?>"><?= $drj['driver_job'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="brand">Brand Kendaraan</label>
|
||||
<input type="text" class="form-control" name="merek" id="brand" <?php if ($_POST != NULL) { ?> value="<?= $_POST['merek']; ?>" <?php } ?> placeholder="masukan brand kendaraan" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="variantvehicle">Jenis Kendaraan</label>
|
||||
<input type="text" class="form-control" name="tipe" id="variantvehicle" <?php if ($_POST != NULL) { ?> value="<?= $_POST['tipe']; ?>" <?php } ?> placeholder="masukan jenis kendaraan " required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="vehiclecolor">Warna Kendaraan</label>
|
||||
<input type="text" class="form-control" name="warna" id="vehiclecolor" <?php if ($_POST != NULL) { ?> value="<?= $_POST['warna']; ?>" <?php } ?> placeholder="masukan warna kendaraan" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="vehicleregistration">Plat Nomor</label>
|
||||
<input type="text" class="form-control" name="nomor_kendaraan" id="vehicleregistration" <?php if ($_POST != NULL) { ?> value="<?= $_POST['nomor_kendaraan']; ?>" <?php } ?> placeholder="masukan plat nomor" required>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<h6 class="card-title">File</h6>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="idcard">Nomor identitas</label>
|
||||
<input type="text" class="form-control" name="no_ktp" <?php if ($_POST != NULL) { ?> value="<?= $_POST['no_ktp']; ?>" <?php } ?> placeholder="enter id card number" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>Photo identitas</label>
|
||||
<input type="file" class="dropify" name="foto_ktp" data-max-file-size="3mb" required />
|
||||
<br>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="idcard">Nomor SIM</label>
|
||||
<input type="text" class="form-control" name="id_sim" <?php if ($_POST != NULL) { ?> value="<?= $_POST['id_sim']; ?>" <?php } ?> placeholder="enter driver's license number " required>
|
||||
</div>
|
||||
<div>
|
||||
<label>Photo SIM</label>
|
||||
<input type="file" class="dropify" name="foto_sim" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>newregistration">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
477
backendpanel/application/views/drivers/tracking_driver.php
Normal file
477
backendpanel/application/views/drivers/tracking_driver.php
Normal file
@@ -0,0 +1,477 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-lg-3 side-left d-flex align-items-stretch">
|
||||
<div id="mobileshow" class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<h4>Pickup Customer</h4>
|
||||
<div class="posts"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 side-right stretch-card">
|
||||
<div class="card">
|
||||
<div id="map" style="width: 100%; height: 800px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 side-left d-flex align-items-stretch">
|
||||
<div id="mobileshow" class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<h4>Tujuan Ke</h4>
|
||||
<div class="posts2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view('includes/footer'); ?>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?=google_maps_api ?>&callback=initMap" async defer></script>
|
||||
<script>
|
||||
initMap();
|
||||
var gmarkers = [];
|
||||
var map;
|
||||
var infoWindow = new google.maps.InfoWindow();
|
||||
|
||||
function initMap() {
|
||||
$.ajax({
|
||||
url: "<?= base_url(); ?>api/pelanggan/alldriver/ok",
|
||||
type: "GET",
|
||||
success: function(data) {
|
||||
var data_parse = data.data;
|
||||
if (data_parse.length != 0) {
|
||||
for (var i = 0; i < data_parse.length; i++) {
|
||||
var lat = data_parse[i].latitude;
|
||||
var lng = data_parse[i].longitude;
|
||||
var online = data_parse[i].status;
|
||||
var nama_driver = data_parse[i].nama_driver;
|
||||
var uluru = {
|
||||
lat: parseFloat(lat),
|
||||
lng: parseFloat(lng)
|
||||
};
|
||||
if (i == 0) {
|
||||
map = new google.maps.Map(document.getElementById('map'), {
|
||||
zoom: 15,
|
||||
center: uluru
|
||||
});
|
||||
}
|
||||
if (online == "1")
|
||||
var image = '<?= base_url(); ?>images/icon/active.png';
|
||||
else if (online == "2")
|
||||
var image = '<?= base_url(); ?>images/icon/bekerja.png';
|
||||
else if (online == "3")
|
||||
var image = '<?= base_url(); ?>images/icon/bekerja.png';
|
||||
else if (online == "4")
|
||||
var image = '<?= base_url(); ?>images/icon/nonactive.png';
|
||||
else if (online == "5")
|
||||
var image = '<?= base_url(); ?>images/icon/nonactive.png';
|
||||
var marker = new google.maps.Marker({
|
||||
position: uluru,
|
||||
map: map,
|
||||
icon: image,
|
||||
title: nama_driver
|
||||
});
|
||||
var styles = [{
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#f5f5f5"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.icon",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#616161"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"elementType": "labels.text.stroke",
|
||||
"stylers": [{
|
||||
"color": "#f5f5f5"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "administrative.land_parcel",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#bdbdbd"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#eeeeee"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#757575"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "poi.park",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#e5e5e5"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "poi.park",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#9e9e9e"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "road",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#ffffff"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "road.arterial",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#757575"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#dadada"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#616161"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "road.local",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#9e9e9e"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "transit.line",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#e5e5e5"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "transit.station",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#eeeeee"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "water",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"color": "#c9c9c9"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"featureType": "water",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"color": "#9e9e9e"
|
||||
}]
|
||||
}
|
||||
];
|
||||
|
||||
/*this sets the style*/
|
||||
map.setOptions({
|
||||
styles: styles
|
||||
});
|
||||
marker.meta = {
|
||||
title: nama_driver,
|
||||
type: 'Driver'
|
||||
};
|
||||
google.maps.event.addListener(marker, 'click', function() {
|
||||
var clickedPosition = this.getPosition();
|
||||
var itemsAtPosition = [];
|
||||
|
||||
for (var j = 0; j < gmarkers.length; j++) {
|
||||
var mPos = gmarkers[j].getPosition();
|
||||
if (mPos && clickedPosition && mPos.lat() === clickedPosition.lat() && mPos.lng() === clickedPosition.lng()) {
|
||||
var meta = gmarkers[j].meta || {};
|
||||
var label = meta.type || 'Driver';
|
||||
var name = meta.title || gmarkers[j].getTitle();
|
||||
itemsAtPosition.push(label + ': ' + name);
|
||||
}
|
||||
}
|
||||
|
||||
var markerContent;
|
||||
if (itemsAtPosition.length > 1) {
|
||||
markerContent = '<div><strong>Entities at this location:</strong><br>' + itemsAtPosition.join('<br>') + '</div>';
|
||||
} else {
|
||||
markerContent = "<h4>" + (this.meta && this.meta.title ? this.meta.title : this.title) + "</h4>";
|
||||
}
|
||||
|
||||
infoWindow.setContent(markerContent);
|
||||
infoWindow.open(map, this);
|
||||
});
|
||||
// Push your newly created marker into the array:
|
||||
gmarkers.push(marker);
|
||||
}
|
||||
} else {
|
||||
var uluru = {
|
||||
lat: parseFloat("11.111111"),
|
||||
lng: parseFloat("-1.133344")
|
||||
};
|
||||
map = new google.maps.Map(document.getElementById('map'), {
|
||||
zoom: 15,
|
||||
center: uluru
|
||||
});
|
||||
}
|
||||
addYourLocationButton(map, marker);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function addYourLocationButton(map, marker) {
|
||||
var controlDiv = document.createElement('div');
|
||||
|
||||
var firstChild = document.createElement('button');
|
||||
firstChild.style.backgroundColor = '#fff';
|
||||
firstChild.style.border = 'none';
|
||||
firstChild.style.outline = 'none';
|
||||
firstChild.style.width = '40px';
|
||||
firstChild.style.height = '40px';
|
||||
firstChild.style.borderRadius = '2px';
|
||||
firstChild.style.boxShadow = '0 1px 4px rgba(0,0,0,0.3)';
|
||||
firstChild.style.cursor = 'pointer';
|
||||
firstChild.style.marginRight = '10px';
|
||||
firstChild.style.padding = '0px';
|
||||
firstChild.title = 'Your Location';
|
||||
controlDiv.appendChild(firstChild);
|
||||
|
||||
var secondChild = document.createElement('div');
|
||||
secondChild.style.margin = '10px';
|
||||
secondChild.style.width = '18px';
|
||||
secondChild.style.height = '18px';
|
||||
secondChild.style.backgroundImage = 'url(https://maps.gstatic.com/tactile/mylocation/mylocation-sprite-1x.png)';
|
||||
secondChild.style.backgroundSize = '180px 18px';
|
||||
secondChild.style.backgroundPosition = '0px 0px';
|
||||
secondChild.style.backgroundRepeat = 'no-repeat';
|
||||
secondChild.id = 'you_location_img';
|
||||
firstChild.appendChild(secondChild);
|
||||
|
||||
google.maps.event.addListener(map, 'dragend', function() {
|
||||
$('#you_location_img').css('background-position', '0px 0px');
|
||||
});
|
||||
|
||||
firstChild.addEventListener('click', function() {
|
||||
var imgX = '0';
|
||||
var animationInterval = setInterval(function() {
|
||||
if (imgX == '-18') imgX = '0';
|
||||
else imgX = '-18';
|
||||
$('#you_location_img').css('background-position', imgX + 'px 0px');
|
||||
}, 500);
|
||||
if (navigator.geolocation) {
|
||||
navigator.geolocation.getCurrentPosition(function(position) {
|
||||
var latlng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
|
||||
marker.setPosition(latlng);
|
||||
map.setCenter(latlng);
|
||||
clearInterval(animationInterval);
|
||||
$('#you_location_img').css('background-position', '-144px 0px');
|
||||
});
|
||||
} else {
|
||||
clearInterval(animationInterval);
|
||||
$('#you_location_img').css('background-position', '0px 0px');
|
||||
}
|
||||
});
|
||||
|
||||
controlDiv.index = 1;
|
||||
map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(controlDiv);
|
||||
}
|
||||
|
||||
function removeMarkers() {
|
||||
for (i = 0; i < gmarkers.length; i++) {
|
||||
gmarkers[i].setMap(null);
|
||||
}
|
||||
}
|
||||
|
||||
function getVehicleAll2() {
|
||||
$.ajax({
|
||||
url: "<?= base_url(); ?>api/pelanggan/alldriver/ok",
|
||||
type: "GET",
|
||||
success: function(response) {
|
||||
var data_parse = response.data;
|
||||
removeMarkers();
|
||||
for (var i = 0; i < data_parse.length; i++) {
|
||||
var lat = data_parse[i].latitude;
|
||||
var lng = data_parse[i].longitude;
|
||||
var online = data_parse[i].status;
|
||||
var nama_driver = data_parse[i].nama_driver;
|
||||
var uluru = {
|
||||
lat: parseFloat(lat),
|
||||
lng: parseFloat(lng)
|
||||
};
|
||||
if (online == "1")
|
||||
var image = '<?= base_url(); ?>images/icon/active.png';
|
||||
else if (online == "2")
|
||||
var image = '<?= base_url(); ?>images/icon/bekerja.png';
|
||||
else if (online == "3")
|
||||
var image = '<?= base_url(); ?>images/icon/bekerja.png';
|
||||
else if (online == "4")
|
||||
var image = '<?= base_url(); ?>images/icon/nonactive.png';
|
||||
else if (online == "5")
|
||||
var image = '<?= base_url(); ?>images/icon/nonactive.png';
|
||||
var marker = new google.maps.Marker({
|
||||
position: uluru,
|
||||
map: map,
|
||||
icon: image,
|
||||
title: nama_driver
|
||||
});
|
||||
|
||||
|
||||
marker.meta = {
|
||||
title: nama_driver,
|
||||
type: 'Driver'
|
||||
};
|
||||
google.maps.event.addListener(marker, 'click', function() {
|
||||
var clickedPosition = this.getPosition();
|
||||
var itemsAtPosition = [];
|
||||
|
||||
for (var j = 0; j < gmarkers.length; j++) {
|
||||
var mPos = gmarkers[j].getPosition();
|
||||
if (mPos && clickedPosition && mPos.lat() === clickedPosition.lat() && mPos.lng() === clickedPosition.lng()) {
|
||||
var meta = gmarkers[j].meta || {};
|
||||
var label = meta.type || 'Driver';
|
||||
var name = meta.title || gmarkers[j].getTitle();
|
||||
itemsAtPosition.push(label + ': ' + name);
|
||||
}
|
||||
}
|
||||
|
||||
var markerContent;
|
||||
if (itemsAtPosition.length > 1) {
|
||||
markerContent = '<div><strong>Entities at this location:</strong><br>' + itemsAtPosition.join('<br>') + '</div>';
|
||||
} else {
|
||||
markerContent = "<h4>" + (this.meta && this.meta.title ? this.meta.title : this.title) + "</h4>";
|
||||
}
|
||||
|
||||
infoWindow.setContent(markerContent);
|
||||
infoWindow.open(map, this);
|
||||
});
|
||||
// Push your newly created marker into the array:
|
||||
gmarkers.push(marker);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function foo() {
|
||||
var day = new Date().getDay();
|
||||
var hours = new Date().getHours();
|
||||
|
||||
// alert('day: ' + day + ' Hours : ' + hours );
|
||||
getVehicleAll2();
|
||||
|
||||
if (day === 0 && hours > 12 && hours < 13) {}
|
||||
// Do what you want here:
|
||||
}
|
||||
|
||||
setInterval(foo, 4000);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
gettransaksi();
|
||||
|
||||
function gettransaksi() {
|
||||
$.ajax({
|
||||
url: "<?= base_url(); ?>api/pelanggan/alltransactionpickup",
|
||||
type: 'get',
|
||||
success: function(response) {
|
||||
$(".number-of-posts").html(response.data);
|
||||
posts = response.data;
|
||||
posts_html = '';
|
||||
for (var i = 0; i < posts.length; i++) {
|
||||
id_transaksi = posts[i].id_transaksi;
|
||||
alamat_asal = posts[i].alamat_asal;
|
||||
alamat_tujuan = posts[i].alamat_tujuan;
|
||||
order_fitur = posts[i].order_fitur;
|
||||
icon_fitur = posts[i].icon;
|
||||
nama_driver = posts[i].nama_driver;
|
||||
nama_pelanggan = posts[i].fullnama;
|
||||
posts_html += '<div class="row"><div class="col-12"><div class="wrapper border-bottom py-2"><div class="d-flex"><div class="badge badge-primary" style="max-height: 50px;"><img class="img-sm rounded-circle" src="<?= base_url(); ?>images/fitur/' + icon_fitur + '" alt=""></div><div class="wrapper ml-4"><div class="d-flex"><h4 class="mb-0">' + nama_driver + ' - ' + nama_pelanggan + '</h4><div class="rating ml-auto d-flex align-items-center"><h4 class="mb-0">$15</h4></div></div><marquee class="text-muted mb-0">' + alamat_asal + '</marquee><div class="d-flex"><div class="rating ml-auto d-flex align-items-center"><a href="<?= base_url() ?>/dashboard/detail/' + id_transaksi + '"><p class="mb-0">Detail</p></a></div></div></div></div></div></div></div>';
|
||||
|
||||
}
|
||||
$(".posts").html(posts_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function foo() {
|
||||
var day = new Date().getDay();
|
||||
var hours = new Date().getHours();
|
||||
|
||||
// alert('day: ' + day + ' Hours : ' + hours );
|
||||
gettransaksi();
|
||||
|
||||
if (day === 0 && hours > 12 && hours < 13) {}
|
||||
// Do what you want here:
|
||||
}
|
||||
|
||||
setInterval(foo, 4000);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
gettransaksi1();
|
||||
|
||||
function gettransaksi1() {
|
||||
$.ajax({
|
||||
url: "<?= base_url(); ?>api/pelanggan/alltransactiondestination",
|
||||
type: 'get',
|
||||
success: function(response) {
|
||||
$(".number-of-posts").html(response.data);
|
||||
posts = response.data;
|
||||
posts_html = '';
|
||||
for (var i = 0; i < posts.length; i++) {
|
||||
id_transaksi = posts[i].id_transaksi;
|
||||
alamat_asal = posts[i].alamat_asal;
|
||||
alamat_tujuan = posts[i].alamat_tujuan;
|
||||
order_fitur = posts[i].order_fitur;
|
||||
icon_fitur = posts[i].icon;
|
||||
nama_driver = posts[i].nama_driver;
|
||||
nama_pelanggan = posts[i].fullnama;
|
||||
posts_html += '<div class="row"><div class="col-12"><div class="wrapper border-bottom py-2"><div class="d-flex"><div class="badge badge-primary" style="max-height: 50px;"><img class="img-sm rounded-circle" src="<?= base_url(); ?>images/fitur/' + icon_fitur + '" alt=""></div><div class="wrapper ml-4"><div class="d-flex"><h4 class="mb-0">' + nama_driver + ' - ' + nama_pelanggan + '</h4><div class="rating ml-auto d-flex align-items-center"><h4 class="mb-0">$15</h4></div></div><marquee class="text-muted mb-0">' + alamat_tujuan + '</marquee><div class="d-flex"><div class="rating ml-auto d-flex align-items-center"><a href="<?= base_url() ?>/dashboard/detail/' + id_transaksi + '"><p class="mb-0">Detail</p></a></div></div></div></div></div></div></div>';
|
||||
|
||||
}
|
||||
$(".posts2").html(posts_html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function foo() {
|
||||
var day = new Date().getDay();
|
||||
var hours = new Date().getHours();
|
||||
|
||||
// alert('day: ' + day + ' Hours : ' + hours );
|
||||
gettransaksi1();
|
||||
|
||||
if (day === 0 && hours > 12 && hours < 13) {}
|
||||
// Do what you want here:
|
||||
}
|
||||
|
||||
setInterval(foo, 4000);
|
||||
</script>
|
||||
8
backendpanel/application/views/errors/cli/error_404.php
Normal file
8
backendpanel/application/views/errors/cli/error_404.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
8
backendpanel/application/views/errors/cli/error_db.php
Normal file
8
backendpanel/application/views/errors/cli/error_db.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
backendpanel/application/views/errors/cli/error_php.php
Normal file
21
backendpanel/application/views/errors/cli/error_php.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
11
backendpanel/application/views/errors/cli/index.html
Normal file
11
backendpanel/application/views/errors/cli/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
backendpanel/application/views/errors/html/error_404.php
Normal file
64
backendpanel/application/views/errors/html/error_404.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
backendpanel/application/views/errors/html/error_db.php
Normal file
64
backendpanel/application/views/errors/html/error_db.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
64
backendpanel/application/views/errors/html/error_general.php
Normal file
64
backendpanel/application/views/errors/html/error_general.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
33
backendpanel/application/views/errors/html/error_php.php
Normal file
33
backendpanel/application/views/errors/html/error_php.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
11
backendpanel/application/views/errors/html/index.html
Normal file
11
backendpanel/application/views/errors/html/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
backendpanel/application/views/errors/index.html
Normal file
11
backendpanel/application/views/errors/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
69
backendpanel/application/views/includes/footer.php
Normal file
69
backendpanel/application/views/includes/footer.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<footer class="footer">
|
||||
<div class="container-fluid clearfix">
|
||||
<span class="text-muted d-block text-center text-sm-left d-sm-inline-block">Copyright ©<?php echo date ('Y');?> <a href="http://on-time.id">Ontime</a>. All rights reserved.</span>
|
||||
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Ontime - Ontime, On Demand. Made with <i class="mdi mdi-heart text-danger"></i></span>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- partial -->
|
||||
</div>
|
||||
<!-- row-offcanvas ends -->
|
||||
</div>
|
||||
<!-- page-body-wrapper ends -->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- container-scroller -->
|
||||
<!-- plugins:js -->
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/popper.js/dist/umd/popper.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.8/js/intlTelInput-jquery.min.js"></script>
|
||||
<!-- endinject -->
|
||||
|
||||
<!-- Plugin js for this page-->
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery-bar-rating/dist/jquery.barrating.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/chart.js/dist/Chart.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/raphael/raphael.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/morris.js/morris.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery-sparkline/jquery.sparkline.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/datatables.net/js/jquery.dataTables.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/datatables.net-bs4/js/dataTables.bootstrap4.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/dropify/dist/js/dropify.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/pwstabs/assets/jquery.pwstabs.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/icheck/icheck.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/typeahead.js/dist/typeahead.bundle.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/select2/dist/js/select2.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/dragula/dist/dragula.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/summernote/dist/summernote-bs4.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/tinymce/tinymce.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/quill/dist/quill.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/simplemde/dist/simplemde.min.js"></script>
|
||||
<!-- End plugin js for this page-->
|
||||
|
||||
<!-- inject:js -->
|
||||
<script src="<?= base_url(); ?>asset/js/off-canvas.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/hoverable-collapse.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/misc.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/settings.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/todolist.js"></script>
|
||||
|
||||
<!-- endinject -->
|
||||
|
||||
<!-- Custom js for this page-->
|
||||
<script src="<?= base_url(); ?>asset/js/dashboard.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/data-table.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/dropify.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/tabs.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/file-upload.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/iCheck.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/typeahead.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/select2.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/dragula.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/editorDemo.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/duit.js"></script>
|
||||
|
||||
<!-- End custom js for this page-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
145
backendpanel/application/views/includes/header.php
Normal file
145
backendpanel/application/views/includes/header.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Ontime Admin</title>
|
||||
<!-- plugins:css -->
|
||||
|
||||
|
||||
<!-- endinject -->
|
||||
<!-- plugin css for this page -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/font-awesome/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/jquery-bar-rating/dist/themes/fontawesome-stars.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/dropify/dist/css/dropify.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/pwstabs/assets/jquery.pwstabs.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/icheck/skins/all.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/select2/dist/css/select2.min.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/select2-bootstrap-theme/dist/select2-bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/mdi/css/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/simple-line-icons/css/simple-line-icons.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/flag-icon-css/css/flag-icon.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/dragula/dist/dragula.min.css" />
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/summernote/dist/summernote-bs4.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/quill/dist/quill.snow.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/simplemde/dist/simplemde.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.8/css/intlTelInput.css" />
|
||||
<!-- End plugin css for this page -->
|
||||
<!-- inject:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/css/style.css">
|
||||
|
||||
<!-- endinject -->
|
||||
<link rel="shortcut icon" href="<?= base_url(); ?>asset/images/ic_ontime.png" />
|
||||
|
||||
<style type="text/css">
|
||||
@media screen and (max-width: 500px) {
|
||||
#mobileshow {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-scroller">
|
||||
<!-- partial:../../partials/_navbar.html -->
|
||||
<nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
|
||||
<div class="text-center navbar-brand-wrapper d-flex align-items-top justify-content-center">
|
||||
<a class="navbar-brand brand-logo" href="<?= base_url(); ?>"><img src="<?= base_url(); ?>asset/images/logo_panjang.png" alt="logo" /></a>
|
||||
<a class="navbar-brand brand-logo-mini" href="<?= base_url(); ?>"><img src="<?= base_url(); ?>asset/images/icon_ontime.png" alt="logo" /></a>
|
||||
</div>
|
||||
<div class="navbar-menu-wrapper d-flex align-items-center">
|
||||
<button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
|
||||
<span class="icon-menu"></span>
|
||||
</button>
|
||||
|
||||
<button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
|
||||
<span class="icon-menu"></span>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
<!-- partial -->
|
||||
<div class="container-fluid page-body-wrapper">
|
||||
<div class="row row-offcanvas row-offcanvas-right">
|
||||
<!-- partial:../../partials/_sidebar.html -->
|
||||
<nav class="sidebar sidebar-offcanvas" id="sidebar">
|
||||
<ul class="nav">
|
||||
<li class="nav-item nav-profile">
|
||||
<div class="nav-link">
|
||||
<div class="profile-image">
|
||||
<img src="<?= base_url(); ?>images/admin/<?= $this->session->userdata('image') ?>" onerror="this.onerror=null;this.src='<?= base_url(); ?>asset/images/icon_ontime.png';" />
|
||||
<span class="online-status online"></span>
|
||||
<!--change class online to offline or busy as needed-->
|
||||
</div>
|
||||
<div class="profile-name">
|
||||
<p class="name">
|
||||
<?= $this->session->userdata('user_name') ;
|
||||
// dd($this->session->userdata);
|
||||
?>
|
||||
</p>
|
||||
<p class="designation">
|
||||
Administrasi
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?= base_url(); ?>">
|
||||
<i class="icon-rocket menu-icon"></i>
|
||||
<span class="menu-title">Dashboard</span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php $i = 1;
|
||||
$menu = $this->session->userdata('menu');
|
||||
foreach ($menu as $men) {
|
||||
// show_array($men);
|
||||
$set_drop = strtolower($men['nama_fitur']);
|
||||
?>
|
||||
|
||||
<?php if ($men['parent'] == 'Y'){
|
||||
?>
|
||||
<li class="nav-item">
|
||||
<?php if($men['url'] !="Not" ){ ?>
|
||||
<a class="nav-link" href="<?= base_url(); ?><?= $men['url'] ?>">
|
||||
<i class="<?= $men['icon'] ?>"></i>
|
||||
<span class="menu-title"><?= $men['nama_fitur'] ?></span>
|
||||
</a>
|
||||
<?php }else{ ?>
|
||||
|
||||
<a class="nav-link" data-toggle="collapse" href="#<?= $set_drop; ?>" aria-expanded="false" aria-controls="<?= $set_drop; ?>">
|
||||
<i class="icon-wallet menu-icon"></i>
|
||||
<span class="menu-title"><?= $men['nama_fitur'] ?> </span>
|
||||
<span class="badge badge-white"><i class="mdi mdi-menu-down mdi-24px text-primary"></i></span>
|
||||
</a>
|
||||
<div class="collapse" id="<?= $set_drop; ?>">
|
||||
<ul class="nav flex-column sub-menu">
|
||||
<?php $i = 1;
|
||||
foreach ($menu as $sub) {
|
||||
if($sub['foregn'] == $men['id_privilage'] ){
|
||||
// show_array($men['id']);
|
||||
?>
|
||||
<li class="nav-item"> <a class="nav-link" href="<?= base_url(); ?><?= $sub['url'] ?>"><?= $sub['nama_fitur'] ?></a></li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<?= base_url(); ?>login/logout">
|
||||
<i class="icon-logout menu-icon"></i>
|
||||
<span class="menu-title">Keluar</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
11
backendpanel/application/views/index.html
Normal file
11
backendpanel/application/views/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
83
backendpanel/application/views/login/index.php
Normal file
83
backendpanel/application/views/login/index.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<!-- Required meta tags -->
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Ontime Admin</title>
|
||||
<!-- plugins:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/mdi/css/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/simple-line-icons/css/simple-line-icons.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/flag-icon-css/css/flag-icon.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css">
|
||||
<!-- endinject -->
|
||||
<!-- plugin css for this page -->
|
||||
<!-- End plugin css for this page -->
|
||||
<!-- inject:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/css/style.css">
|
||||
<!-- endinject -->
|
||||
<link rel="shortcut icon" href="<?= base_url(); ?>asset/images/ic_ontime.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-scroller">
|
||||
<div class="container-fluid page-body-wrapper">
|
||||
<div class="row">
|
||||
<div class="content-wrapper full-page-wrapper d-flex align-items-center auth login-full-bg">
|
||||
<div class="row w-100">
|
||||
<div class="col-lg-4 mx-auto">
|
||||
<div class="auth-form-light text-left p-5">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('error'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<center><img src="asset/images/logo_panjang.png" style="width:200px"><br/>
|
||||
<hr></center>
|
||||
<h4 class="font-weight-light">Selamat Datang, Admin Team</h4>
|
||||
<?= form_open_multipart('login/aksi_login'); ?>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Username</label>
|
||||
<input type="text" class="form-control" id="exampleInputEmail1" placeholder="" name="user_name" required>
|
||||
<i class="mdi mdi-account"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputPassword1">Password</label>
|
||||
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="" name="password" required>
|
||||
<i class="mdi mdi-lock"></i>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<button type="submit" class="btn btn-block btn-lg font-weight-medium" style="color: #fff;background: linear-gradient(88deg, #00c1bf, #00d4c5);border-color: #00c1bf;border-radius:20px;">Masuk</button>
|
||||
<br>
|
||||
<span class="text-muted d-block text-center justify-center ">Copyright ©<?php echo date('Y');?> <a class="text-success" href="https://ontime.semestaterpadu.my.id">Ontime</a>. All rights reserved.</span>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
</div>
|
||||
<!-- row ends -->
|
||||
</div>
|
||||
<!-- page-body-wrapper ends -->
|
||||
</div>
|
||||
<!-- container-scroller -->
|
||||
<!-- plugins:js -->
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/popper.js/dist/umd/popper.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- endinject -->
|
||||
<!-- inject:js -->
|
||||
<script src="<?= base_url(); ?>asset/js/off-canvas.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/hoverable-collapse.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/misc.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/settings.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/todolist.js"></script>
|
||||
<!-- endinject -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
798
backendpanel/application/views/mitra/detail.php
Normal file
798
backendpanel/application/views/mitra/detail.php
Normal file
@@ -0,0 +1,798 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?= google_maps_api ?>&libraries=places&callback=initLocationPickerDetail" async defer></script>
|
||||
<script src="<?= base_url(); ?>asset/js/locationpicker.jquery.js"></script>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-lg-4 side-left d-flex align-items-stretch">
|
||||
<div class="row">
|
||||
<div class="col-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body avatar">
|
||||
<div class="row">
|
||||
<h4 class="col-auto mr-auto card-title">Informasi Mitra</h4>
|
||||
<a class="col-auto btn btn-danger text-white" href="<?= base_url(); ?>mitra">
|
||||
<i class="mdi mdi-keyboard-backspace text-white"></i>Kembali</a>
|
||||
</div>
|
||||
<p class="name"><?= $mitra['nama_mitra'] ?></p>
|
||||
<h4 class="text-center text-primary">
|
||||
<i class="mdi mdi-wallet mr-1 text-primary "></i>Saldo</h4>
|
||||
<p class="text-center"><?= $currency['app_currency'] ?>
|
||||
<?= number_format($mitra['saldo'], 0, ".", ".") ?></p>
|
||||
<div class="info-links">
|
||||
<i class="mdi mdi-account-box-outline text-gray mr-2">Tipe identitas :
|
||||
</i>
|
||||
<p><?= $mitra['jenis_identitas_mitra'] ?></p>
|
||||
<i class="mdi mdi-numeric text-gray">No indentitas :
|
||||
</i>
|
||||
<p><?= $mitra['nomor_identitas_mitra'] ?></p>
|
||||
<i class="mdi mdi-home-outline text-gray"> Alamat :
|
||||
</i>
|
||||
<p><?= $mitra['alamat_mitra'] ?></p>
|
||||
<i class="mdi mdi-email-outline text-gray"> Email :
|
||||
</i>
|
||||
<p><?= $mitra['email_mitra'] ?></p>
|
||||
<i class="mdi mdi-phone text-gray"> No Hp
|
||||
</i>
|
||||
<p><?= $mitra['telepon_mitra'] ?></p>
|
||||
<i class="mdi mdi-bank text-gray"> Nama Bank
|
||||
</i>
|
||||
<p><?= $mitra['bank'] ?></p>
|
||||
<i class="mdi mdi-credit-card text-gray"> Nomor Rekening
|
||||
</i>
|
||||
<p><?= $mitra['norek_mitra'] ?></p>
|
||||
<i class="mdi mdi-account text-gray"> Pemilik Rekening
|
||||
</i>
|
||||
<p><?= $mitra['nama_rekening'] ?></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<h4 class="col-auto mr-auto card-title">Informasi Partner</h4>
|
||||
<ul class="achivements">
|
||||
<li>
|
||||
<p class="text-success"><h5>Layanan</h5></p>
|
||||
<p><?= $mitra['fitur'] ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success"><h5>Kategori</h5></p>
|
||||
<p><?= $mitra['nama_kategori'] ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success"><h5>Order</h5></p>
|
||||
<p><?= $countorder ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success"><h5>Status</h5></p>
|
||||
<p>
|
||||
<?php if ($mitra['status_mitra'] == 3) {
|
||||
echo 'Banned';
|
||||
} elseif ($mitra['status_mitra'] == 0) {
|
||||
echo 'New Reg';
|
||||
} else {
|
||||
if ($mitra['status_merchant'] == 1) {
|
||||
echo 'Active';
|
||||
}
|
||||
if ($mitra['status_merchant'] == 2) {
|
||||
echo 'NonActive';
|
||||
}
|
||||
} ?>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="card-body avatar">
|
||||
<p class="name"><?= $mitra['nama_merchant'] ?></p>
|
||||
<img src="<?= base_url('images/merchant/') . $mitra['foto_merchant'] ?>">
|
||||
<div class="info-links">
|
||||
<i class="mdi mdi-store text-gray"> Wilayah</i>
|
||||
<p><?= $mitra['partner_region'] ?></p>
|
||||
<i class="mdi mdi-store text-gray"> Alamat</i>
|
||||
<p><?= $mitra['alamat_merchant'] ?></p>
|
||||
<i class="mdi mdi-phone text-gray"> No hp</i>
|
||||
<p><?= $mitra['telepon_mitra'] ?></p>
|
||||
<i class="mdi mdi-update text-gray"> Buka</i>
|
||||
<p><?= $mitra['jam_buka'] ?></p>
|
||||
<i class="mdi mdi-update text-gray"> Tutup</i>
|
||||
<p><?= $mitra['jam_tutup'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 side-right stretch-card">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus') or $this->session->flashdata('gagal')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
<?php echo $this->session->flashdata('gagal'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('tambah') or $this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
<h4 class="card-title mb-0">Detail Partner</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="mitra-tab" data-toggle="tab" href="#mitra" role="tab" aria-controls="mitra">Owner</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="merchant-tab" data-toggle="tab" href="#merchant_partner" role="tab" aria-controls="merchant">Partner</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link " id="item-tab" data-toggle="tab" href="#item" role="tab" aria-controls="item" aria-expanded="true">Menu</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="transactionhistory-tab" data-toggle="tab" href="#transactionhistory" role="tab" aria-controls="transactionhistory">Riwayat Transaksi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="wallet-tab" data-toggle="tab" href="#wallet" role="tab" aria-controls="wallet">Saldo</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<!-- tab mulai -->
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<!-- tab item aktif mulai -->
|
||||
<div class="tab-pane fade " id="item" role="tabpanel" aria-labelledby="item">
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab2" role="tablist">
|
||||
<li class="nav-item ">
|
||||
<a class="nav-link active" id="kategori-tab" data-toggle="tab" href="#kategori" role="tab" aria-controls="kategori">Menu Kategori</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link " id="add-tab" data-toggle="tab" href="#add" role="tab" aria-controls="add" aria-expanded="true">Tambah Menu</a>
|
||||
</li>
|
||||
<?php foreach ($itemk as $itk) { ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="<?= $itk['nama_kategori_item'] ?>-tab" data-toggle="tab" href="#<?= $itk['nama_kategori_item'] ?>" role="tab" aria-controls="<?= $itk['nama_kategori_item'] ?>"><?= $itk['nama_kategori_item'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<div class="tab-content" id="myTab2Content">
|
||||
<div class="tab-pane show active" id="kategori" role="tabpanel" aria-labelledby="kategori">
|
||||
<button id="tomboltambah" class="btn btn-info">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah Kategori
|
||||
</button>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div id="tambahcategory"></div>
|
||||
<br>
|
||||
<div id="editcategory" style="display:none;">
|
||||
<?= form_open_multipart('mitra/ubahcategoryitem'); ?>
|
||||
<input type="hidden" class="form-control" name="id_mitra" value="<?= $mitra['id_mitra'] ?>">
|
||||
<input type="hidden" id="foridkat" class="form-control" name="id_kategori_item" value="">
|
||||
<h4 class="card-title">Ubah Kategori Menu</h4>
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Kategori</label>
|
||||
<input type="text" class="form-control" id="fornamkat" name="nama_kategori_item" value"" required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<?= form_close(); ?>
|
||||
<span onclick="kembalikan()" class="btn btn-secondary mr-2">Batal</span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<h4 id="jumlah" style=display:none;><?= count($itemk) ?></h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
|
||||
<table id="order-listing4" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Nama Kategori</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($itemk as $itkate) { ?>
|
||||
<h4 id="idkat<?= $i ?>" style=display:none;><?= $itkate['id_kategori_item'] ?></h4>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td id="namkat<?= $i ?>"><?= $itkate['nama_kategori_item'] ?></td>
|
||||
<td>
|
||||
<button class="btn btn-outline-primary" onclick="tombedit(<?= $i ?>);">Edit</button>
|
||||
<a href="<?= base_url(); ?>mitra/hapuscategoryitem/<?= $itkate['id_kategori_item']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Ubah</button></a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade " id="add" role="tabpanel" aria-labelledby="add">
|
||||
<?= form_open_multipart('mitra/tambahitem'); ?>
|
||||
<input type="hidden" class="form-control" name="id_merchant" value="<?= $mitra['id_merchant'] ?>">
|
||||
<input type="hidden" class="form-control" name="id_mitra" value="<?= $mitra['id_mitra'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="name">Nama Menu</label>
|
||||
<input type="text" class="form-control" id="name" name="nama_item" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="foto_item" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kategori Menu</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="kategori_item">
|
||||
<?php foreach ($itemk as $itk) { ?>
|
||||
<option value="<?= $itk['id_kategori_item'] ?>"><?= $itk['nama_kategori_item'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="desk">Deskripsi</label>
|
||||
<input type="text" class="form-control" id="desk" name="deskripsi_item">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="Hargaitem">Harga(<?= $currency['app_currency'] ?>)</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="Hargaitem" name="harga_item" required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2">
|
||||
<div class="form-group">
|
||||
<label>Promo</label>
|
||||
<select id="getname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="status_promo">
|
||||
<option id="yes" value="1">Ya</option>
|
||||
<option id="no" value="0">Tidak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-10">
|
||||
<div id="yescheck" style="display:block;" class="form-group">
|
||||
<label for="yes">Harga Promo(<?= $currency['app_currency'] ?>)</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="yes" name="harga_promo">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>Status Menu</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_item">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<?php $index = 5;
|
||||
foreach ($itemk as $itk) { ?>
|
||||
<div class="tab-pane fade" id="<?= $itk['nama_kategori_item'] ?>" role="tabpanel" aria-labelledby="<?= $itk['nama_kategori_item'] ?>">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing<?= $index ?>" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Gambar Menu</th>
|
||||
<th>Nama Menu</th>
|
||||
<th>Harga</th>
|
||||
<th>Harga Promo</th>
|
||||
<th>status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($item as $it) {
|
||||
if ($itk['id_kategori_item'] == $it['kategori_item']) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><img src="<?= base_url('images/itemmerchant/') . $it['foto_item']; ?>"></td>
|
||||
<td id="namaitem<?= $i ?>"><?= $it['nama_item'] ?></td>
|
||||
<?php if ($it['status_promo'] == 0) { ?>
|
||||
<td><?= $currency['app_currency'] ?><?= number_format($it['harga_item'] , 0, ".", ".") ?></td>
|
||||
<?php } else { ?>
|
||||
<td style="text-decoration: line-through;"><?= $currency['app_currency'] ?><?= number_format($it['harga_item'] , 0, ".", ".") ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($it['status_promo'] == 1) { ?>
|
||||
<td class="text-success"><?= $currency['app_currency'] ?><?= number_format($it['harga_promo'] , 0, ".", ".") ?></td>
|
||||
<?php } else { ?>
|
||||
<td><label class="badge badge-danger">Tidak Promo</label></td>
|
||||
<?php } ?>
|
||||
<?php if ($it['status_item'] == 1) { ?>
|
||||
<td><label class="badge badge-primary">Aktif</label></td>
|
||||
<?php } else { ?>
|
||||
<td><label class="badge badge-danger">Non Aktif</label></td>
|
||||
<?php } ?>
|
||||
<td>
|
||||
|
||||
<a class="btn btn-outline-primary text-red mr-2" href=" <?= base_url(); ?>mitra/edititem/<?= $it['id_item'] ?>">
|
||||
Edit</a>
|
||||
<a class="btn btn-outline-danger text-red mr-2" onclick="return confirm ('Are You Sure Want To Delete This Item?')" href=" <?= base_url(); ?>mitra/hapusitem/<?= $it['id_item'] ?>">
|
||||
Delete</a>
|
||||
</td>
|
||||
<?php }
|
||||
$i++;
|
||||
} ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- End -->
|
||||
</div>
|
||||
<?php $index++;
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="merchant_partner" role="tabpanel" aria-labelledby="merchant">
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
<h4 class="card-title mb-0">Partner</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab3" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="detail-tab" data-toggle="tab" href="#detail" role="tab" aria-controls="detail" aria-expanded="true">Detail Partner</a>
|
||||
</li>
|
||||
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<div class="tab-content" id="myTab3Content">
|
||||
<div class="tab-pane fade show active" id="detail" role="tabpanel" aria-labelledby="detail">
|
||||
<?= form_open_multipart('mitra/ubahmerchant/' . $mitra['id_mitra']); ?>
|
||||
<input type="hidden" name="id_merchant" value='<?= $mitra['id_merchant'] ?>'>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="foto_merchant" data-max-file-size="3mb" data-default-file="<?= base_url('images/merchant/') . $mitra['foto_merchant'] ?>" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class=mt-2 for="name">Nama Partner</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" class="form-control" id="name" name="nama_merchant" value="<?= $mitra['nama_merchant'] ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class=mt-2 for="ftr">Layanan</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<select class=" js-example-basic-single fiturService" style="width:100%" name="id_fitur">
|
||||
<?php foreach ($fitur as $ftr) { ?>
|
||||
<option id="<?= $ftr['fitur'] ?>" value="<?= $ftr['id_fitur'] ?>" <?php if ($mitra['id_fitur'] == $ftr['id_fitur']) { ?>selected<?php } ?>><?= $ftr['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class=mt-2 for="ftr">Kategori Layanan</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<select class="js-example-basic-single" style="width:100%" name="category_merchant">
|
||||
<?php foreach ($merchantk as $mck) { ?>
|
||||
<option value="<?= $mck['id_kategori_merchant'] ?>" <?php if ($mck['id_kategori_merchant'] == $mitra['category_merchant']) { ?>selected<?php } ?>><?= $mck['nama_kategori'] ?></option>
|
||||
<?php
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control" name="alamat_merchant" id="us3-address" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div id="us3" style="width: 100%; height: 400px;"></div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col">
|
||||
<label>Latitude</label>
|
||||
<input type="text" name="latitude_merchant" id="us3-lat" class="form-control">
|
||||
</div>
|
||||
<div class="col">
|
||||
<label>Longitude</label>
|
||||
<input type="text" name="longitude_merchant" id="us3-lon" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class=mt-2 for="op">Buka</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="time" class="form-control" id="op" name="jam_buka" value="<?= $mitra['jam_buka'] ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class=mt-2 for="cl">Tutup</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="time" class="form-control" id="cl" name="jam_tutup" value="<?= $mitra['jam_tutup'] ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-10">
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<button type="submit" class="btn btn-success ">Perbarui</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane show active" id="mitra" role="tabpanel" aria-labelledby="mitra">
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
<h4 class="card-title mb-0">Owner</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab4" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="mitdeta-tab" data-toggle="tab" href="#mitdeta" role="tab" aria-controls="mitdeta" aria-expanded="true">Detail</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="mitfil-tab" data-toggle="tab" href="#mitfil" role="tab" aria-controls="mitfil">files</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="mitpass-tab" data-toggle="tab" href="#mitpass" role="tab" aria-controls="mitpass">Password</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content" id="myTab3Content">
|
||||
<div class="tab-pane fade show active" id="mitdeta" role="tabpanel" aria-labelledby="mitdeta">
|
||||
<?= form_open_multipart('mitra/editmitradetail'); ?>
|
||||
<input type="hidden" class="form-control" name="id_mitra" value="<?= $mitra['id_mitra'] ?>">
|
||||
<input type="hidden" class="form-control" name="id_merchant" value="<?= $mitra['id_merchant'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="name">Nama Partner</label>
|
||||
<input type="text" class="form-control" id="name" name="nama_mitra" value="<?= $mitra['nama_mitra'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="ftr">Partner</label>
|
||||
<select id="pilih" class=" js-example-basic-single" style="width:100%" name="partner">
|
||||
|
||||
<option id="partner" value="1" <?php if ($mitra['partner'] == 1) { ?>selected<?php } ?>>Partner</option>
|
||||
<option id="non" value="0" <?php if ($mitra['partner'] == 0) { ?>selected<?php } ?>>non Partner</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<label>Region/Wilayah</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="wilayah">
|
||||
<?php foreach ($partner_region as $region) { ?>
|
||||
<option value="<?= $region['id'] ?>" <?php if ($mitra['wilayah'] == $region['id']) { ?>selected<?php } ?>>
|
||||
<?= $region['partner_region'] ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" class="form-control" name="wilayah" value="<?= $mitra['wilayah'] ?>" required>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control" name="alamat_mitra" value="<?= $mitra['alamat_mitra'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" class="form-control" name="email_mitra" value="<?= $mitra['email_mitra'] ?>" required>
|
||||
</div>
|
||||
<label class="text-small">No Hp</label>
|
||||
<div class="row">
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone1" class="form-control" name="country_code_mitra" value="<?= $mitra['country_code_mitra'] ?>" required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" name="phone_mitra" value="<?= $mitra['phone_mitra'] ?>"" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Bank</label>
|
||||
<input type="text" class="form-control" name="bank" value="<?= $mitra['bank'] ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nomor Rekening</label>
|
||||
<input type="text" class="form-control" name="norek_mitra" value="<?= $mitra['norek_mitra'] ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Pemilik Rekening</label>
|
||||
<input type="text" class="form-control" name="nama_rekening" value="<?= $mitra['nama_rekening'] ?>">
|
||||
</div>
|
||||
<button type=" submit" class="btn btn-success mr-2">Perbarui
|
||||
</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" tab-pane" id="mitfil" role="tabpanel" aria-labelledby="mitfil">
|
||||
<?= form_open_multipart('mitra/editmitrafile'); ?>
|
||||
<input type="hidden" class="form-control" name="id_mitra" value="<?= $mitra['id_mitra'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="ic">Tipe identitas</label>
|
||||
<input type="text" class="form-control" id="ic" name="jenis_identitas_mitra" value="<?= $mitra['jenis_identitas_mitra'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="nc">Nomor identitas</label>
|
||||
<input type="text" class="form-control" id="nc" name="nomor_identitas_mitra" value="<?= $mitra['nomor_identitas_mitra'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="foto_ktp" data-max-file-size="3mb" data-default-file="<?= base_url('images/fotoberkas/ktp/') . $mitra['foto_ktp'] ?>" />
|
||||
</div>
|
||||
<button type=" submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<div class="tab-pane" id="mitpass" role="tabpanel" aria-labelledby="mitpass">
|
||||
<?= form_open_multipart('mitra/editmitrapass'); ?>
|
||||
<input type="hidden" class="form-control" name="id_mitra" value="<?= $mitra['id_mitra'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="ic">Password Baru</label>
|
||||
<input type="password" class="form-control" id="ic" name="password" placeholder="Enter Your New Password" required>
|
||||
</div>
|
||||
<button type=" submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="transactionhistory" role="tabpanel" aria-labelledby="transactionhistory">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Transaksi Inv</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Customer_name</th>
|
||||
<th>Jumlah Item</th>
|
||||
<th>Jumlah Total</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($transaksi as $tr) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>INV-<?= $tr['id_transaksi'] ?></td>
|
||||
<td><?= $tr['waktu_order'] ?></td>
|
||||
<td><?= $tr['fullnama'] ?></td>
|
||||
<td><?= $tr['jumlah_item'] ?></td>
|
||||
<td>
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($tr['total_biaya'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi'] ?>" class="btn btn-outline-primary">View</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="wallet" role="tabpanel" aria-labelledby="wallet-tab">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Id</th>
|
||||
<th>Tipe</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Jumlah</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wl) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wl['id']; ?></td>
|
||||
<td><?= $wl['type']; ?></td>
|
||||
<td><?= $wl['waktu']; ?></td>
|
||||
|
||||
<?php if ($wl['type'] == 'topup' or $wl['type'] == 'Order+') { ?>
|
||||
<td class="text-success">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($wl['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
|
||||
<?php } else { ?>
|
||||
<td class="text-danger">
|
||||
<?= $currency['app_currency'] ?>
|
||||
<?= number_format($wl['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
function initLocationPickerDetail() {
|
||||
var lat = <?= (isset($mitra['latitude_merchant']) && $mitra['latitude_merchant'] !== '' && $mitra['latitude_merchant'] !== null) ? (float) $mitra['latitude_merchant'] : -6.222320699570134 ?>;
|
||||
var lng = <?= (isset($mitra['longitude_merchant']) && $mitra['longitude_merchant'] !== '' && $mitra['longitude_merchant'] !== null) ? (float) $mitra['longitude_merchant'] : 106.83289668750001 ?>;
|
||||
$('#us3').locationpicker({
|
||||
location: {
|
||||
latitude: lat,
|
||||
longitude: lng
|
||||
},
|
||||
radius: 300,
|
||||
inputBinding: {
|
||||
latitudeInput: $('#us3-lat'),
|
||||
longitudeInput: $('#us3-lon'),
|
||||
radiusInput: $('#us3-radius'),
|
||||
locationNameInput: $('#us3-address')
|
||||
},
|
||||
enableAutocomplete: true,
|
||||
onchanged: function(currentLocation, radius, isMarkerDropped) {}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "<?= $mitra['country_code_merchant'] ?>"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "<?= $mitra['country_code_mitra'] ?>"; // Assigning value from model.
|
||||
$('#txtPhone1').val(code);
|
||||
$('#txtPhone1').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
if (nameSelect) {
|
||||
yesValue = document.getElementById("yes").value;
|
||||
noValue = document.getElementById("no").value;
|
||||
if (yesValue == nameSelect.value) {
|
||||
|
||||
document.getElementById("yescheck").required = true;
|
||||
document.getElementById("yescheck").style.display = "block";
|
||||
} else if (noValue == nameSelect.value) {
|
||||
|
||||
document.getElementById("yescheck").required = false;
|
||||
document.getElementById("yescheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("yescheck").style.display = "block";
|
||||
document.getElementById("yescheck").required = true;
|
||||
}
|
||||
}
|
||||
|
||||
function addform() {
|
||||
return `<?= form_open_multipart('mitra/tambahcategoryitem'); ?>
|
||||
<input type="hidden" id="valmit" class="form-control" name="id_merchant" value="<?= $mitra['id_mitra'] ?>">
|
||||
<input type="hidden" id="valmer" class="form-control" name="id_mitra" value="<?= $mitra['id_merchant'] ?>">
|
||||
<h4 class="card-title">Add Item Category</h4>
|
||||
<div class="form-group">
|
||||
<label for="nama">Category Name</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama_kategori_item" placeholder="enter item category" required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<button id="kirimid" type="submit" class="btn btn-success mr-2">Submit</button>
|
||||
<?= form_close(); ?>
|
||||
<button id="andhe" class="btn btn-secondary mr-2">cancel</button>
|
||||
</div>`
|
||||
}
|
||||
const tomboltambah = document.getElementById('tomboltambah');
|
||||
tomboltambah.addEventListener('click', function() {
|
||||
const getformadd = document.getElementById('tambahcategory');
|
||||
getformadd.innerHTML = addform();
|
||||
const tombolback = document.getElementById('andhe');
|
||||
tombolback.addEventListener('click', function() {
|
||||
getformadd.innerHTML = backform();
|
||||
})
|
||||
})
|
||||
|
||||
function backform() {
|
||||
return ``
|
||||
}
|
||||
|
||||
const jumlah = document.getElementById("jumlah").innerHTML
|
||||
|
||||
for (let i = 0; i < 20; i++) {
|
||||
|
||||
function tombedit(i) {
|
||||
|
||||
const namkat = document.getElementById(`namkat${i}`).innerHTML
|
||||
const idkat = document.getElementById(`idkat${i}`).innerHTML
|
||||
document.getElementById('editcategory').style = "display:block;";
|
||||
document.getElementById('fornamkat').value = namkat;
|
||||
document.getElementById('foridkat').value = idkat;
|
||||
}
|
||||
}
|
||||
|
||||
function kembalikan() {
|
||||
document.getElementById('editcategory').style = "display:none;";
|
||||
}
|
||||
</script>
|
||||
84
backendpanel/application/views/mitra/edititem.php
Normal file
84
backendpanel/application/views/mitra/edititem.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<?= form_open_multipart('mitra/ubahitem/' . $item['id_item']); ?>
|
||||
<input type="hidden" class="form-control" name="id_merchant" value="<?= $item['id_merchant'] ?>">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Nama Menu</label>
|
||||
<input type="text" class="form-control" id="name" name="nama_item" value="<?= $item['nama_item'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="foto_item" data-max-file-size="3mb" data-default-file="<?= base_url('images/itemmerchant/') . $item['foto_item'] ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Category Menus</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="kategori_item">
|
||||
<?php foreach ($itemk as $itk) { ?>
|
||||
<option value="<?= $itk['id_kategori_item'] ?>" <?php if ($itk['id_kategori_item'] == $item['kategori_item']) { ?>selected<?php } ?>><?= $itk['nama_kategori_item'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="desk">Deskripsi</label>
|
||||
<input type="text" class="form-control" id="desk" name="deskripsi_item" value="<?= $item['deskripsi_item'] ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="Hargaitem">Harga(<?= $currency['app_currency'] ?>)</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="Hargaitem" name="harga_item" value="<?= $item['harga_item'] ?>" required>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2">
|
||||
<div class="form-group">
|
||||
<label>Promo?</label>
|
||||
<select id="getname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="status_promo">
|
||||
<option id="yes" value="1" <?php if ($item['status_promo'] == '1') { ?>selected<?php } ?>>Ya</option>
|
||||
<option id="no" value="0" <?php if ($item['status_promo'] == '0') { ?>selected<?php } ?>>Tidak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-10">
|
||||
<div id="yescheck" <?php if ($item['status_promo'] == 1) { ?> style="display:block;" <?php } else { ?> style="display:none;" <?php } ?> class="form-group">
|
||||
<label for="promo">Harga Promo(<?= $currency['app_currency'] ?>)</label>
|
||||
<input id="reqcheck" type="text" class="form-control" id="promo" name="harga_promo" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" value="<?= $item['harga_promo'] ?>" required="false;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>Status Menus</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_item">
|
||||
<option value="1" <?php if ($item['status_item'] == 1) { ?>selected<?php } ?>>Active</option>
|
||||
<option value="0" <?php if ($item['status_item'] == 0) { ?>selected<?php } ?>>NonActive</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
if (nameSelect) {
|
||||
yesValue = document.getElementById("yes").value;
|
||||
noValue = document.getElementById("no").value;
|
||||
|
||||
if (yesValue == nameSelect.value) {
|
||||
document.getElementById("reqcheck").required = true;
|
||||
document.getElementById("yescheck").style.display = "block";
|
||||
} else if (noValue == nameSelect.value) {
|
||||
|
||||
document.getElementById("reqcheck").required = false;
|
||||
document.getElementById("yescheck").style.display = "none";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
527
backendpanel/application/views/mitra/index.php
Normal file
527
backendpanel/application/views/mitra/index.php
Normal file
@@ -0,0 +1,527 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('tambah') or $this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h4 class="card-title">Partner</h4>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#alldrivers-2-1" role="tab" aria-controls="alldrivers-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-motorbike"></i>Semua Partner</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#active-2-2" role="tab" aria-controls="active-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-account-settings"></i>Partner Aktif</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-4" data-toggle="tab" href="#suspended-2-4" role="tab" aria-controls="suspended-2-4" aria-selected="false">
|
||||
<i class="mdi mdi-account-off"></i>Partner Suspend</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="tab-content">
|
||||
<!-- all merchant -->
|
||||
<div class="tab-pane fade show active" id="alldrivers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Partner</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] != 0 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all merchant -->
|
||||
|
||||
<!-- active merchant -->
|
||||
<div class="tab-pane fade" id="active-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Partner Aktif</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 1 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of active merchant -->
|
||||
|
||||
<!-- non active merchant -->
|
||||
|
||||
<!-- end of non active merchant -->
|
||||
|
||||
<!-- suspended drivers -->
|
||||
<div class="tab-pane fade" id="suspended-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Suspended Partners</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 3 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of suspended merchant -->
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<div class="tab-content">
|
||||
<!-- all merchant -->
|
||||
<div class="tab-pane fade show active" id="alldrivers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Partner</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] != 0 && $this->session->userdata('wilayah') == $mtr['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all merchant -->
|
||||
|
||||
<!-- active merchant -->
|
||||
<div class="tab-pane fade" id="active-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Partner Aktif</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 1 && $this->session->userdata('wilayah') == $mtr['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of active merchant -->
|
||||
|
||||
<!-- non active merchant -->
|
||||
|
||||
<!-- end of non active merchant -->
|
||||
|
||||
<!-- suspended drivers -->
|
||||
<div class="tab-pane fade" id="suspended-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Suspended Partners</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>ID Merchant</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No. Hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 3 && $this->session->userdata('wilayah') == $mtr['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['id_mitra'] ?></td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Active</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">View</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 1) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/block/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-dark text-red mr-2">Block</button></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>mitra/unblock/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success text-red mr-2">Unblock</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Delete</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of suspended merchant -->
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
344
backendpanel/application/views/mitra/newreg.php
Normal file
344
backendpanel/application/views/mitra/newreg.php
Normal file
@@ -0,0 +1,344 @@
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?= google_maps_api ?>&libraries=places&callback=initLocationPickerNewreg" async defer></script>
|
||||
<script src="<?= base_url(); ?>asset/js/locationpicker.jquery.js"></script>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<?php if (validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->session->flashdata('tambah') or $this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus') or $this->session->flashdata('gagal')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
<!-- <?php echo $this->session->flashdata('gagal'); ?> -->
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<button onclick="gantian();" class="btn btn-info"><i class="mdi mdi-plus-circle-outline"></i>Tambah Merchant</button>
|
||||
</div>
|
||||
<br>
|
||||
<div id="isitable" style="display:block;">
|
||||
<h4 class="card-title">Registrasi Merchant Baru</h4>
|
||||
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Gambar Toko</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 0 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Daftar Baru</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 0) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/confirmmitra/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success mr-2">Konfirmasi</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Owner</th>
|
||||
<th>No hp</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Nama Merchant</th>
|
||||
<th>Gambar Toko</th>
|
||||
<th>Layanan</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($mitra as $mtr) {
|
||||
if ($mtr['status_mitra'] == 0 && $this->session->userdata('wilayah') == $mtr['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $mtr['nama_mitra'] ?></td>
|
||||
<td><?= $mtr['telepon_mitra'] ?></td>
|
||||
<td><?= $mtr['partner_region'] ?></td>
|
||||
<td><?= $mtr['nama_merchant'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/merchant/') . $mtr['foto_merchant']; ?>">
|
||||
</td>
|
||||
<td><?= $mtr['fitur'] ?></td>
|
||||
<td><?= $mtr['nama_kategori'] ?></td>
|
||||
<td>
|
||||
<?php if ($mtr['status_mitra'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Daftar Baru</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>mitra/detail/<?= $mtr['id_mitra'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php
|
||||
if ($mtr['status_mitra'] == 0) { ?>
|
||||
<a href="<?= base_url(); ?>mitra/confirmmitra/<?= $mtr['id_mitra'] ?>"><button class="btn btn-outline-success mr-2">Konfirmasi</button></a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>mitra/hapus/<?= $mtr['id_mitra'] ?>">
|
||||
<button onclick="return confirm ('Are you sure want to delete this Partner?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="isiform" style="display:none;">
|
||||
<h4 class="card-title">Tambah Merchant</h4>
|
||||
<?= form_open_multipart('mitra/tambahmitra'); ?>
|
||||
<h4 class="card-title">Info Owner</h4>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label for="name">Nama Owner</label>
|
||||
<input type="text" class="form-control" id="name" name="nama_mitra" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<?php if ($this->session->userdata('wilayah') ==0 ) { ?>
|
||||
<input type="hidden" class="form-control" name="wilayah" value="<?= $this->session->userdata('wilayah') ?>" required>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') !=0 ) { ?>
|
||||
|
||||
<input type="hidden" class="form-control" name="wilayah" value="<?= $this->session->userdata('wilayah') ?>" required>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="ads">Alamat</label>
|
||||
<input type="text" class="form-control" id="ads" name="alamat_mitra" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="ads">Email</label>
|
||||
<input type="email" class="form-control" id="ads" name="email_mitra" required>
|
||||
</div>
|
||||
<label class="text-small">No hp</label>
|
||||
<div class="row">
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone" class="form-control" name="country_code_mitra" required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" name="phone_mitra" required>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Owner File</h4>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label for="ic">Tipe Identitas</label>
|
||||
<input type="text" class="form-control" id="ic" name="jenis_identitas_mitra" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="nc">Nomor Identitas</label>
|
||||
<input type="text" class="form-control" id="nc" name="nomor_identitas_mitra" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="name">Photo Identitas</label>
|
||||
<input type="file" class="dropify" name="katepe" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Data Merchant</h4>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="name">Gambar Toko</label>
|
||||
<input type="file" class="dropify" name="foto_merchant" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="name">Nama Merchant</label>
|
||||
<input type="text" class="form-control" id="name" name="nama_merchant" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="ftr">Layanan</label>
|
||||
<select class=" js-example-basic-single fiturService" style="width:100%" name="id_fitur">
|
||||
<?php foreach ($fitur as $ftr) { ?>
|
||||
<option id="<?= $ftr['fitur'] ?>" value="<?= $ftr['id_fitur'] ?>"><?= $ftr['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<divclass="form-group">
|
||||
<label class=mt-2 for=" ftr">Kategori Layanan</label>
|
||||
<select class="js-example-basic-single" name="category_merchant" style="width:100%">
|
||||
<?php foreach ($merchantk as $mck) { ?>
|
||||
<option value="<?= $mck['id_kategori_merchant'] ?>"><?= $mck['nama_kategori'] ?></option>
|
||||
<?php
|
||||
} ?>
|
||||
</select>
|
||||
</divclass=>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control" name="alamat_merchant" id="us3-address" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div id="us3" style="width: 100%; height: 400px;"></div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col">
|
||||
<label>Latitude</label>
|
||||
<input type="text" name="latitude_merchant" id="us3-lat" class="form-control">
|
||||
</div>
|
||||
<div class="col">
|
||||
<label>Longitude</label>
|
||||
<input type="text" name="longitude_merchant" id="us3-lon" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="op">Buka</label>
|
||||
<input type="time" class="form-control" id="op" name="jam_buka" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class=mt-2 for="cl">Tutup</label>
|
||||
<input type="time" class="form-control" id="cl" name="jam_tutup" required>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<?= form_close(); ?>
|
||||
<button onclick="balikan();" class="btn btn-light">Batal</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function initLocationPickerNewreg() {
|
||||
$('#us3').locationpicker({
|
||||
location: {
|
||||
latitude: -6.222320699570134,
|
||||
longitude: 106.83289668750001
|
||||
},
|
||||
radius: 300,
|
||||
inputBinding: {
|
||||
latitudeInput: $('#us3-lat'),
|
||||
longitudeInput: $('#us3-lon'),
|
||||
radiusInput: $('#us3-radius'),
|
||||
locationNameInput: $('#us3-address')
|
||||
},
|
||||
enableAutocomplete: true,
|
||||
onchanged: function(currentLocation, radius, isMarkerDropped) {}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function gantian() {
|
||||
document.getElementById("isitable").style = "display:none;";
|
||||
document.getElementById("isiform").style = "display:block;";
|
||||
|
||||
}
|
||||
|
||||
function balikan() {
|
||||
document.getElementById("isiform").style = "display:none;";
|
||||
document.getElementById("isitable").style = "display:block;";
|
||||
}
|
||||
</script>
|
||||
162
backendpanel/application/views/newregistration/index.php
Normal file
162
backendpanel/application/views/newregistration/index.php
Normal file
@@ -0,0 +1,162 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>driver/tambah">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah Driver</a>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Driver Baru Daftar</h4>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing4" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Driver Id</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No hp</th>
|
||||
<th>Ulasan</th>
|
||||
<th>Layanan Job</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 0 && $this->session->userdata('wilayah') == 0) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Baru Daftar</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick'up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">On</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-info mr-2">Lihat</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>newregistration/confirm/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Konfirmasi</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing4" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Driver Id</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>No hp</th>
|
||||
<th>Ulasan</th>
|
||||
<th>Layanan Job</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($driver as $drv) {
|
||||
if ($drv['status'] == 0 && $this->session->userdata('wilayah') == $drv['wilayah']) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $i ?>
|
||||
</td>
|
||||
<td><?= $drv['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/fotodriver/') . $drv['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $drv['nama_driver'] ?></td>
|
||||
<td><?= $drv['no_telepon'] ?></td>
|
||||
<td><?= number_format($drv['rating'], 1) ?></td>
|
||||
<td><?= $drv['driver_job'] ?></td>
|
||||
<td><?= $drv['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($drv['status'] == 3) { ?>
|
||||
<label class="badge badge-dark">Banned</label>
|
||||
<?php } elseif ($drv['status'] == 0) { ?>
|
||||
<label class="badge badge-secondary text-dark">Baru Daftar</label>
|
||||
<?php } else {
|
||||
if ($drv['status_job'] == 1) { ?>
|
||||
<label class="badge badge-primary">Aktif</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 2) { ?>
|
||||
<label class="badge badge-info">Pick'up</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 3) { ?>
|
||||
<label class="badge badge-success">On</label>
|
||||
<?php }
|
||||
if ($drv['status_job'] == 4) { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php }
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>driver/detail/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-info mr-2">Lihat</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>newregistration/confirm/<?= $drv['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Konfirmasi</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
26
backendpanel/application/views/news/addcategory.php
Normal file
26
backendpanel/application/views/news/addcategory.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Kategori</h4>
|
||||
<?= form_open_multipart('news/tambahcategory'); ?>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Kategori</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="kategori" placeholder="enter news category" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
52
backendpanel/application/views/news/addnews.php
Normal file
52
backendpanel/application/views/news/addnews.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Form Berita</h4>
|
||||
<?= form_open_multipart('news/tambah'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Gambar Berita</label>
|
||||
<input type="file" class="dropify" name="foto_berita" id="foto_berita" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Judul</label>
|
||||
<input type="text" class="form-control" name="title" id="title" placeholder="enter news title" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_kategori">Kategori Berita</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_kategori" id = "id_kategori" >
|
||||
<?php foreach ($news as $nw) { ?>
|
||||
<option value="<?= $nw['id_kategori_news'] ?>"><?= $nw['kategori'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Status Berita</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_berita" id="status_berita">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscontent">Konten Berita</label>
|
||||
<textarea name="content" type="text" class="form-control" id="summernoteExample1" placeholder="Location" required></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
|
||||
|
||||
58
backendpanel/application/views/news/editnews.php
Normal file
58
backendpanel/application/views/news/editnews.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Form Berita</h4>
|
||||
<?= form_open_multipart('news/ubah/' . $news['id_berita']); ?>
|
||||
<div class="form-group">
|
||||
<input type="hidden" class="form-control" name="id_berita" id="newstitle" value="<?= $news['id_berita'] ?>">
|
||||
<div class="form-group">
|
||||
<label>Gambar Berita</label>
|
||||
<input type="file" class="dropify" name="foto_berita" data-max-file-size="3mb" data-default-file="<?= base_url('images/berita/') . $news['foto_berita'] ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Judul</label>
|
||||
<input type="text" class="form-control" name="title" id="newstitle" value="<?= $news['title'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Kategori Berita</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_kategori">
|
||||
<?php foreach ($knews as $nw) { ?>
|
||||
|
||||
|
||||
<option value="<?= $nw['id_kategori_news'] ?>" <?php if ($nw['id_kategori_news'] == $news['id_kategori']) { ?>selected<?php } ?>> <?= $nw['kategori'] ?></option>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Status Berita</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_berita">
|
||||
|
||||
<option value="1" <?php if ($news['status_berita'] == '1') { ?>selected<?php } ?>>Aktif</option>
|
||||
<option value="2" <?php if ($news['status_berita'] == '2') { ?>selected<?php } ?>>Non Aktif</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscontent">Konten Berita</label>
|
||||
<textarea type="text" class="form-control" id="summernoteExample1" placeholder="Location" name="content" required><?= $news['content'] ?></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
152
backendpanel/application/views/news/index.php
Normal file
152
backendpanel/application/views/news/index.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#ride-2-1" role="tab" aria-controls="ride-2-1" aria-selected="true">
|
||||
Berita
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#car-2-2" role="tab" aria-controls="car-2-2" aria-selected="false">
|
||||
Kategori
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="tab-content">
|
||||
|
||||
<div class="tab-pane fade show active" id="ride-2-1" s="s" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>news/tambah"><i class="mdi mdi-plus-circle-outline"></i>Tambah Berita</a>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Berita</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Gambar</th>
|
||||
<th>Judul</th>
|
||||
<th>Dibuat</th>
|
||||
<th>Kategori</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($news as $nw) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/berita/') . $nw['foto_berita']; ?>">
|
||||
</td>
|
||||
<td><?= $nw['title']; ?></td>
|
||||
<td><?= $nw['created_berita']; ?></td>
|
||||
<td><?= $nw['kategori']; ?></td>
|
||||
<td>
|
||||
<?php if ($nw['status_berita'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>news/ubah/<?= $nw['id_berita']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>news/hapus/<?= $nw['id_berita']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="tab-pane fade" id="car-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>news/tambahcategory"><i class="mdi mdi-plus-circle-outline"></i>Tambah Kategori</a>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Kategori Berita</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>No.</th>
|
||||
<th>Kategori</th>
|
||||
<th>Dibuat</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($kategori as $knw) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $knw['kategori']; ?></td>
|
||||
<td><?= $knw['created']; ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>news/hapuscategory/<?= $knw['id_kategori_news']; ?>"><button class="btn btn-outline-danger">Hapus</button></a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
65
backendpanel/application/views/nodata.php
Normal file
65
backendpanel/application/views/nodata.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>404</title>
|
||||
<!-- plugins:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/mdi/css/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/simple-line-icons/css/simple-line-icons.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/flag-icon-css/css/flag-icon.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css">
|
||||
<!-- endinject -->
|
||||
<!-- inject:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/css/style.css">
|
||||
<!-- endinject -->
|
||||
<link rel="shortcut icon" href="<?= base_url(); ?>asset/images/ic_ontime.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-scroller">
|
||||
<div class="container-fluid page-body-wrapper">
|
||||
<div class="row">
|
||||
<div class="content-wrapper full-page-wrapper d-flex align-items-center text-center error-page bg-primary">
|
||||
<div class="col-lg-7 mx-auto text-white">
|
||||
<div class="row align-items-center d-flex flex-row">
|
||||
<div class="col-lg-6 text-lg-right pr-lg-4">
|
||||
<h1 class="display-1 mb-0">404</h1>
|
||||
</div>
|
||||
<div class="col-lg-6 error-page-divider text-lg-left pl-lg-4">
|
||||
<h2>SORRY!</h2>
|
||||
<h3 class="font-weight-light">Halaman Tidak Ditemukan.</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-5">
|
||||
<div class="col-12 mt-xl-2">
|
||||
<p class="text-white font-weight-medium text-center">Copyright ©<?php echo date ('Y');?> <a href="http://on-time.id">Ontime</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
</div>
|
||||
<!-- row ends -->
|
||||
</div>
|
||||
<!-- page-body-wrapper ends -->
|
||||
</div>
|
||||
<!-- container-scroller -->
|
||||
<!-- plugins:js -->
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/popper.js/dist/umd/popper.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- endinject -->
|
||||
<!-- inject:js -->
|
||||
<script src="<?= base_url(); ?>asset/js/off-canvas.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/hoverable-collapse.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/misc.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/settings.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/todolist.js"></script>
|
||||
<!-- endinject -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
47
backendpanel/application/views/partnerjob/addpartnerjob.php
Normal file
47
backendpanel/application/views/partnerjob/addpartnerjob.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Tipe Kendaraan</h4>
|
||||
<?= form_open_multipart('partnerjob/addpartnerjob'); ?>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Icon Maps</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="icon" id="statusjob">
|
||||
<option value="1">Motor Icon</option>
|
||||
<option value="2">Mobil Icon</option>
|
||||
<option value="3">Truck Icon</option>
|
||||
<option value="4">Delivery Bike Icon</option>
|
||||
<option value="5">HatchBack Car Icon</option>
|
||||
<option value="6">SUV Car Icon</option>
|
||||
<option value="7">Mobil Box Icon</option>
|
||||
<option value="8">Sepeda Icon</option>
|
||||
<option value="9">Cator Icon</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Tipe Kendaraan</label>
|
||||
<input type="text" class="form-control" name="driver_job" id="job" placeholder="enter job title" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Status Tipe Kendaraan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_job" id="statusjob">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
50
backendpanel/application/views/partnerjob/editpartnerjob.php
Normal file
50
backendpanel/application/views/partnerjob/editpartnerjob.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Tipe Kendaraan</h4>
|
||||
|
||||
<?= form_open_multipart('partnerjob/editpartnerjob/' . $partnerjob['id']); ?>
|
||||
|
||||
<input type="hidden" name="id" value="<?= $partnerjob['id'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Icon Maps</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="icon" id="statusjob">
|
||||
<option value="1" <?php if ($partnerjob['icon'] == '1') { ?>selected<?php } ?>>Motor Icon</option>
|
||||
<option value="2" <?php if ($partnerjob['icon'] == '2') { ?>selected<?php } ?>>Mobil Icon</option>
|
||||
<option value="3" <?php if ($partnerjob['icon'] == '3') { ?>selected<?php } ?>>Truck Icon</option>
|
||||
<option value="4" <?php if ($partnerjob['icon'] == '4') { ?>selected<?php } ?>>Delivery Bike Icon</option>
|
||||
<option value="5" <?php if ($partnerjob['icon'] == '5') { ?>selected<?php } ?>>HatchBack Car Icon</option>
|
||||
<option value="6" <?php if ($partnerjob['icon'] == '6') { ?>selected<?php } ?>>SUV Car Icon</option>
|
||||
<option value="7" <?php if ($partnerjob['icon'] == '7') { ?>selected<?php } ?>>Mobil Box Icon</option>
|
||||
<option value="8" <?php if ($partnerjob['icon'] == '8') { ?>selected<?php } ?>>Sepeda Icon</option>
|
||||
<option value="9" <?php if ($partnerjob['icon'] == '9') { ?>selected<?php } ?>>Cator Icon</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Tipe Kendaraan</label>
|
||||
<input type="text" class="form-control" name="driver_job" id="job" placeholder="enter job title" value="<?= $partnerjob['driver_job'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Status Kendaraan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_job" id="statusjob">
|
||||
<option value="1" <?php if ($partnerjob['status_job'] == '1') { ?>selected<?php } ?>>Active</option>
|
||||
<option value="0" <?php if ($partnerjob['status_job'] == '0') { ?>selected<?php } ?>>NonActive</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
88
backendpanel/application/views/partnerjob/index.php
Normal file
88
backendpanel/application/views/partnerjob/index.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>partnerjob/addpartnerjob"><i class="mdi mdi-plus-circle-outline"></i>Tambah Tipe Kendaraan</a>
|
||||
</div>
|
||||
<br>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Partner Job</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Icon Maps</th>
|
||||
<th>Tipe Kendaraan</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($partnerjob as $prj) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>
|
||||
<?php if ($prj['icon'] == 1) {?>
|
||||
<img src="<?= base_url('images/icon/bike.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 2) {?>
|
||||
<img src="<?= base_url('images/icon/sedan.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 3) {?>
|
||||
<img src="<?= base_url('images/icon/truck.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 4) {?>
|
||||
<img src="<?= base_url('images/icon/deliverybike.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 5) {?>
|
||||
<img src="<?= base_url('images/icon/hatchback.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 6) {?>
|
||||
<img src="<?= base_url('images/icon/suv.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 7) {?>
|
||||
<img src="<?= base_url('images/icon/van.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 8) {?>
|
||||
<img src="<?= base_url('images/icon/bicycle.png'); ?>">
|
||||
<?php } else if ($prj['icon'] == 9) {?>
|
||||
<img src="<?= base_url('images/icon/tuktuk.png'); ?>">
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</td>
|
||||
<td><?= $prj['driver_job']; ?></td>
|
||||
<td>
|
||||
<?php if ($prj['status_job'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><a href="<?= base_url(); ?>partnerjob/editpartnerjob/<?= $prj['id']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button></a>
|
||||
<a href="<?= base_url(); ?>partnerjob/deletepartnerjob/<?= $prj['id']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a></td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
@@ -0,0 +1,37 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Region/Wilayah</h4>
|
||||
<?= form_open_multipart('partnerregion/addpartnerregion'); ?>
|
||||
<div class="form-group">
|
||||
<label for="title">Nama Cabang</label>
|
||||
<input type="text" class="form-control" name="nama_cabang" id="nama_cabang" placeholder="Nama Cabang" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Region/Wilayah</label>
|
||||
<input type="text" class="form-control" name="partner_region" id="region" placeholder="Region/Wilayah" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Status Region</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_region" id="statusregion">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a href="<?= base_url() ?>partnerregion" class="btn btn-danger">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
@@ -0,0 +1,40 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Region/Wilayah</h4>
|
||||
|
||||
<?= form_open_multipart('partnerregion/editpartnerregion/' . $partnerregion['id']); ?>
|
||||
|
||||
<input type="hidden" name="id" value="<?= $partnerregion['id'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="title">Nama Cabang</label>
|
||||
<input type="text" class="form-control" name="nama_cabang" id="nama_cabang" placeholder="Nama Cabang" value="<?= $partnerregion['nama_cabang'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title">Region/Wilayah</label>
|
||||
<input type="text" class="form-control" name="partner_region" id="region" placeholder="Region/Wilayah" value="<?= $partnerregion['partner_region'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="status_berita">Status Region</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status_region" id="statusregion">
|
||||
<option value="1" <?php if ($partnerregion['status_region'] == '1') { ?>selected<?php } ?>>Aktif</option>
|
||||
<option value="0" <?php if ($partnerregion['status_region'] == '0') { ?>selected<?php } ?>>Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a href="<?= base_url() ?>partnerregion" class="btn btn-danger">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
66
backendpanel/application/views/partnerregion/index.php
Normal file
66
backendpanel/application/views/partnerregion/index.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>partnerregion/addpartnerregion"><i class="mdi mdi-plus-circle-outline"></i>Tambah Region</a>
|
||||
</div>
|
||||
<br>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Partner Region</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama Cabang</th>
|
||||
<th>Region/Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($partnerregion as $prg) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $prg['nama_cabang']; ?></td>
|
||||
<td><?= $prg['partner_region']; ?></td>
|
||||
<td>
|
||||
<?php if ($prg['status_region'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><a href="<?= base_url(); ?>partnerregion/editpartnerregion/<?= $prg['id']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button></a>
|
||||
<a href="<?= base_url(); ?>partnerregion/deletepartnerregion/<?= $prg['id']; ?>" onclick="return confirm ('Are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a></td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
281
backendpanel/application/views/profile/index.php
Normal file
281
backendpanel/application/views/profile/index.php
Normal file
@@ -0,0 +1,281 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h2 class="card-title">Administrator</h2>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#allusers-2-1" role="tab" aria-controls="allusers-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-account"></i>User</a>
|
||||
</li>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#blocked-2-2" role="tab" aria-controls="blocked-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-account-off"></i>Role</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#blocked-2-3" role="tab" aria-controls="blocked-2-3" aria-selected="false">
|
||||
<i class="mdi mdi-account-off"></i>Privilage</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
|
||||
<!-- all users -->
|
||||
<div class="tab-pane fade show active" id="allusers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Pengguna</h4>
|
||||
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>profile/user_pengguna">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah</a>
|
||||
</div><br>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Username</th>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>No. HP</th>
|
||||
<th>Jabatan</th>
|
||||
<th>Wilayah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($pengguna as $us) {
|
||||
if ($this->session->userdata('wilayah') == 0 ) { ?>
|
||||
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $us['user_name'] ?></td>
|
||||
<td><?= $us['nama'] ?></td>
|
||||
<td><?= $us['email'] ?></td>
|
||||
<td><?= $us['no_telepon'] ?></td>
|
||||
<td><?= $us['nama_role'] ?></td>
|
||||
<td><?= $us['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-dark">Blocked</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 0) { ?>
|
||||
<a href="<?= base_url(); ?>profile/unblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>profile/userblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-dark mr-2">Block</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<a href="<?= base_url(); ?>profile/user_pengguna/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Edit</button>
|
||||
</a>
|
||||
|
||||
<a href="<?= base_url(); ?>profile/hapus_pengguna/<?= $us['id'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
<?php }?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($pengguna as $us) {
|
||||
if ($this->session->userdata('wilayah') == $us['wilayah'] ) { ?>
|
||||
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $us['user_name'] ?></td>
|
||||
<td><?= $us['nama'] ?></td>
|
||||
<td><?= $us['email'] ?></td>
|
||||
<td><?= $us['no_telepon'] ?></td>
|
||||
<td><?= $us['nama_role'] ?></td>
|
||||
<td><?= $us['partner_region'] ?></td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-dark">Blocked</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 0) { ?>
|
||||
<a href="<?= base_url(); ?>profile/unblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>profile/userblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-dark mr-2">Block</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<a href="<?= base_url(); ?>profile/user_pengguna/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Edit</button>
|
||||
</a>
|
||||
|
||||
<a href="<?= base_url(); ?>profile/hapus_pengguna/<?= $us['id'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all users -->
|
||||
|
||||
|
||||
<!-- blocked role -->
|
||||
<div class="tab-pane fade" id="blocked-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Role</h4>
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>profile/role">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah</a>
|
||||
</div><br>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Level</th>
|
||||
<th align='center'>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($admin_role as $us) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $us['nama_role'] ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>profile/role/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Edit</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>profile/role_privilage/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Privilage</button>
|
||||
</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of role -->
|
||||
<!-- blocked privilage -->
|
||||
<div class="tab-pane fade" id="blocked-2-3" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Privilage Role</h4>
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>profile/privilage">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah</a>
|
||||
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>profile/sub_privilage">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah Sub</a>
|
||||
</div><br>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Fitur</th>
|
||||
<th>Url</th>
|
||||
<th>icon</th>
|
||||
<th align='center'>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($role_privilage as $prifilage) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $prifilage['nama_fitur'] ?></td>
|
||||
<td><?= $prifilage['url'] ?></td>
|
||||
<td><?= $prifilage['icon'] ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>profile/privilage/<?= $prifilage['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Edit</button>
|
||||
</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of privilage -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
63
backendpanel/application/views/profile/index_lawas.php
Normal file
63
backendpanel/application/views/profile/index_lawas.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
<h4 class="card-title mb-0">Profil Admin</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<span class="nav-link active" id="info-tab" data-toggle="tab" role="tab" aria-controls="info" aria-expanded="true">Info</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="info" role="tabpanel" aria-labelledby="info">
|
||||
<?= form_open_multipart('profile/ubah'); ?>
|
||||
<div class="form-group">
|
||||
<label>Gambar Profil</label>
|
||||
<input type="file" class="dropify" data-max-file-size="1mb" name="image" data-default-file="<?= base_url('images/admin/') . $image ?>" />
|
||||
<div class="form-group mt-5">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Username</label>
|
||||
<input type="text" class="form-control" name="user_name" id="name" value="<?= $user_name ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Lengkap</label>
|
||||
<input type="text" class="form-control" name="nama" id="nama" value="<?= $nama ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" name="email" id="email" value="<?= $email ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Password</label>
|
||||
<input type="password" class="form-control" name="password" id="email" placeholder="change password here" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
59
backendpanel/application/views/profile/tambahprivilage.php
Normal file
59
backendpanel/application/views/profile/tambahprivilage.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php if ($data != NULL){echo 'Edit';}else{echo 'Tambah'; } ?> Fitur</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('profile/privilage'); ?>
|
||||
|
||||
<input type="hidden" class="form-control" id="id" name="id" <?php if ($data != NULL) { ?> value="<?= $data['id']; ?>" <?php } ?> >
|
||||
<div class="form-group">
|
||||
<label for="namafitur">Nama Fitur</label>
|
||||
<input type="text" class="form-control" id="namafitur" name="namafitur" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['nama_fitur']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Url <i>*(Jika memiliki sub menu isikan " Not ")</i></label>
|
||||
<input type="text" class="form-control" id="url" name="url" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['url']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Icon <i>*(Jika memiliki sub menu isikan " Tidak Ada ")</i></label>
|
||||
<input type="text" class="form-control" id="icon" name="icon" placeholder="enter icon" <?php if ($data != NULL) { ?> value="<?= $data['icon']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>profile/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
@@ -0,0 +1,69 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php if ($data != NULL){echo 'Edit';}else{echo 'Tambah'; } ?> Sub Fitur</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('profile/sub_privilage'); ?>
|
||||
|
||||
<input type="hidden" class="form-control" id="id" name="id" <?php if ($data != NULL) { ?> value="<?= $data['id']; ?>" <?php } ?> >
|
||||
<div class="form-group">
|
||||
<label for="namafitur">Nama Fitur</label>
|
||||
<input type="text" class="form-control" id="namafitur" name="namafitur" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['nama_fitur']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Url <i>*(Jika memiliki sub menu isikan " Not ")</i></label>
|
||||
<input type="text" class="form-control" id="url" name="url" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['url']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Icon <i>*(Jika memiliki sub menu isikan " Tidak Ada ")</i></label>
|
||||
<input type="text" class="form-control" id="icon" name="icon" placeholder="enter icon" <?php if ($data != NULL) { ?> value="<?= $data['icon']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="jabatan">Munu utama</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="role" id = "role" >
|
||||
<?php foreach ($menu_sub as $row) {
|
||||
?>
|
||||
<option value="<?= $row['id_adm_pri'] ?>"><?= $row['nama_fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>profile/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
50
backendpanel/application/views/profile/tambahrole.php
Normal file
50
backendpanel/application/views/profile/tambahrole.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php if ($data != NULL){echo 'Edit';}else{echo 'Tambah'; } ?> Role</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('profile/role'); ?>
|
||||
<input type="hidden" class="form-control" id="id" name="id" <?php if ($data != NULL) { ?> value="<?= $data['id']; ?>" <?php } ?> >
|
||||
<div class="form-group">
|
||||
<label for="role">Nama Role</label>
|
||||
<input type="text" class="form-control" id="role" name="role" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['nama_role']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>profile/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
146
backendpanel/application/views/profile/tambahroleprivilage.php
Normal file
146
backendpanel/application/views/profile/tambahroleprivilage.php
Normal file
@@ -0,0 +1,146 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php if ($privilage_menu != NULL){echo 'Edit';}else{echo 'Tambah'; } ?> Role Privilage</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('profile/role_privilage'); ?>
|
||||
<div class="form-group">
|
||||
<label for="role">
|
||||
Nama Role <?php if ($role != NULL) { echo $role['nama_role']; } ?>
|
||||
<input type="hidden" class="form-control" id="id_role" name="id_role" <?php if ($role != NULL) { ?> value="<?= $role['id']; ?>" <?php } ?>>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Menu</th>
|
||||
<th>Submenu</th>
|
||||
<th align="center">aksi <br>
|
||||
<input onchange="checkAll(this)" type="checkbox" > <i>check all</i>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php $i = 1;
|
||||
|
||||
foreach ($act as $men) {
|
||||
$this->db->select('adm.id_privilage,adm.id ');
|
||||
$this->db->from('admin_menu_role adm');
|
||||
$this->db->where('adm.id_privilage', $men['id']);
|
||||
$this->db->where('adm.id_role', $role['id']);
|
||||
$menue = $this->db->get()->row_array();
|
||||
|
||||
?>
|
||||
<?php if ($men['foregn'] == 0){?>
|
||||
<tr>
|
||||
<td colspan ="2"><b><?= $men['nama_fitur'] ?></b></td>
|
||||
<td>
|
||||
<input type="hidden" name="parent[<?= $i ?>][id]" id="parent[<?= $i ?>][id]" <?php if ($men != NULL) { ?> value="<?= $men['id'] ?>" <?php } ?>>
|
||||
<input type="hidden" name="parent[<?= $i ?>][id_privilage]" id="parent[<?= $i ?>][id_privilage]" <?php if ($men != NULL) { ?> value="<?= $men['id'] ?>" <?php } ?>>
|
||||
<input type="hidden" name="parent[<?= $i ?>][id_menu_role]" id="parent[<?= $i ?>][id_menu_role]" <?php if ($menue != NULL) { ?> value="<?= $menue['id'] ?>"<?php } ?>>
|
||||
|
||||
<input class="menu_utama" onclick="menu_utama(<?=$men['id']?>);" type="checkbox" name="parent[<?= $i ?>][cek]" id="checkAll<?=$men['id']?>" <?php if ($menue !=NULL && $men['id']==$menue['id_privilage']){echo 'checked';}else{echo '';} ?>>
|
||||
<input class="val_<?= $i ?>" type="hidden" value="1">
|
||||
<i>Parent</i></td>
|
||||
</tr>
|
||||
<?php
|
||||
$no = 1;
|
||||
foreach ($sub as $child) {
|
||||
|
||||
$this->db->select('adm.id_privilage,adm.id ');
|
||||
$this->db->from('admin_menu_role adm');
|
||||
$this->db->where('adm.id_privilage', $child['id']);
|
||||
$this->db->where('adm.id_role', $role['id']);
|
||||
$menue2 = $this->db->get()->row_array();
|
||||
if ($child['foregn'] == $men['id']){?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><?= $child['nama_fitur'] ?></td>
|
||||
<td>
|
||||
<input type="hidden" name="child[<?= $no ?>][id_privilage]" id="child[<?= $no ?>][id_privilage]" <?php if ($child !=NULL) { ?> value="<?= $child['id'] ?>" <?php } ?>>
|
||||
<input type="hidden" name="child[<?= $no ?>][id_child]" id="child[<?= $no ?>][id_child]" <?php if ($child !=NULL) { ?> value="<?= $child['id'] ?>" <?php } ?>>
|
||||
|
||||
<input type="hidden" name="child[<?= $no ?>][id_menu_role]" id="child[<?= $no ?>][id_menu_role]" <?php if ($menue2 !=NULL) { ?> value="<?= $menue2['id'] ?>" <?php } ?>>
|
||||
<input class="menu_utama sub_menu<?=$men['id']?>" type="checkbox" name="child[<?= $no ?>][cek_child]" id="child[<?= $no ?>][cek_child]" <?php if ($menue2 !=NULL && $child['id']==$menue2['id_privilage']){echo 'checked';}else{echo '';} ?>>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php $no++; } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php $i++; } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>profile/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
|
||||
function checkAll(ele) {
|
||||
var checkboxes = document.getElementsByTagName('input');
|
||||
if (ele.checked) {
|
||||
for (var i = 0; i < checkboxes.length; i++) {
|
||||
if (checkboxes[i].type == 'checkbox' ) {
|
||||
checkboxes[i].checked = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < checkboxes.length; i++) {
|
||||
if (checkboxes[i].type == 'checkbox') {
|
||||
checkboxes[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function menu_utama(id){
|
||||
var checkBox = document.getElementById("checkAll"+id);
|
||||
if (checkBox.checked == true){
|
||||
$('.sub_menu'+id+':checkbox').attr('checked','checked');
|
||||
} else {
|
||||
$('.sub_menu'+id+':checkbox').removeAttr('checked');
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
115
backendpanel/application/views/profile/tambahuseradmin.php
Normal file
115
backendpanel/application/views/profile/tambahuseradmin.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php if ($data != NULL){echo 'Edit';}else{echo 'Tambah'; } ?> User Pengguna</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('profile/user_pengguna'); ?>
|
||||
|
||||
<input type="hidden" class="form-control" id="id" name="id" <?php if ($data != NULL) { ?> value="<?= $data['id']; ?>" <?php } ?> >
|
||||
<div class="form-group">
|
||||
<label>Photo </label>
|
||||
<input type="file" name="image_profile" id="image_profile" class="dropify" data-max-file-size="3mb">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Nama</label>
|
||||
<input type="text" class="form-control" id="fullnama" name="fullnama" placeholder="enter name" <?php if ($data != NULL) { ?> value="<?= $data['nama']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="form-group">
|
||||
<label for="wilayah">Wilayah</label>
|
||||
<select class="js-example-basic-single" name="region" style="width:100%">\
|
||||
<?php foreach ($region as $rg) { ?>
|
||||
<option value="<?= $rg['id'] ?>" <?php if ($data !=NULL && $rg['id'] == $data['wilayah']) { ?>selected<?php } ?>><?= $rg['partner_region'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') !=0 ) { ?>
|
||||
|
||||
<input type="hidden" class="form-control" name="region" value="<?= $this->session->userdata('wilayah') ?>" required>
|
||||
|
||||
<?php } ?>
|
||||
<div class=" form-group">
|
||||
<label for="text-small">Nomor hp</label>
|
||||
<input type="text" class="form-control" id="phone" name="phone" placeholder="enter phone number" <?php if ($data != NULL) { ?> value="<?= $data['no_telepon']; ?>" <?php } ?>required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="Email">Email</label>
|
||||
<input type="text" class="form-control" id="e_mail" name="e_mail" placeholder="enter email " <?php if ($data != NULL) { ?> value="<?= $data['email']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Username</label>
|
||||
<input type="text" class="form-control" id="username" name="username" placeholder="enter username " <?php if ($data != NULL) { ?> value="<?= $data['user_name']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" placeholder="enter password" required>
|
||||
</div>
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="form-group">
|
||||
<label for="jabatan">Jabatan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="role" id = "role" required>
|
||||
<?php foreach ($role as $nw) { ?>
|
||||
<option value="<?= $nw['id'] ?>" <?php if ($data !=NULL && $nw['id'] != 1 && $nw['id'] == $data['admin_role']) { ?>selected<?php } ?>><?= $nw['nama_role'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') != 0) { ?>
|
||||
<div class="form-group">
|
||||
<label for="jabatan">Jabatan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="role" id = "role" required>
|
||||
<?php foreach ($role1 as $nw1) { ?>
|
||||
<option value="<?= $nw1['id'] ?>" <?php if ($data !=NULL && $nw1['id'] == $data['admin_role']) { ?>selected<?php } ?>><?= $nw1['nama_role'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="form-group">
|
||||
<label for="status">Status</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="status" id="status">
|
||||
<option value="1" >Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>profile/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
63
backendpanel/application/views/profile/ubahpengguna.php
Normal file
63
backendpanel/application/views/profile/ubahpengguna.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
|
||||
<h4 class="card-title mb-0">Profil Admin</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<span class="nav-link active" id="info-tab" data-toggle="tab" role="tab" aria-controls="info" aria-expanded="true">Info</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<hr>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="info" role="tabpanel" aria-labelledby="info">
|
||||
<?= form_open_multipart('profile/ubah'); ?>
|
||||
<div class="form-group">
|
||||
<label>Gambar Profil</label>
|
||||
<input type="file" class="dropify" data-max-file-size="1mb" name="image" data-default-file="<?= base_url('images/admin/') . $image ?>" />
|
||||
<div class="form-group mt-5">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Username</label>
|
||||
<input type="text" class="form-control" name="user_name" id="name" value="<?= $user_name ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Lengkap</label>
|
||||
<input type="text" class="form-control" name="nama" id="nama" value="<?= $nama ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" name="email" id="email" value="<?= $email ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Password</label>
|
||||
<input type="password" class="form-control" name="password" id="email" placeholder="change password here" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
94
backendpanel/application/views/promocode/addpromocode.php
Normal file
94
backendpanel/application/views/promocode/addpromocode.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Kode Promo</h4>
|
||||
<?= form_open_multipart('promocode/addpromocode'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="image_promo" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Judul Promo</label>
|
||||
<input type="text" class="form-control" id="nama_promo" name="nama_promo" placeholder="judul promo" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Kode Promo</label>
|
||||
<input type="text" class="form-control" id="kode_promo" name="kode_promo" placeholder="masukan kode promo" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">Tipe Promo</label>
|
||||
<select class="js-example-basic-single" onchange="admSelectCheck(this);" name="type_promo" style="width:100%">
|
||||
<option id="persen" value="persen">Persentase</option>
|
||||
<option id="fix" value="fix">Fix</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="persencheck" class="form-group" style="display:block;">
|
||||
<label>Jumlah Persentase Promo</label>
|
||||
<input id="persencheckrequired" type="text" class="form-control" id="nominal_promo" name="nominal_promo_persen" placeholder="enter promo amount" required>
|
||||
</div>
|
||||
<div id="fixcheck" class="form-group" style="display:none;">
|
||||
<label>Jumlah Fix Promo</label>
|
||||
<input id="fixcheckrequired" type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="nominal_promo" name="nominal_promo" placeholder="enter promo amount">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Exp On</label>
|
||||
<input type="date" class="form-control" id="expired" name="expired" placeholder="" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">Layanan</label>
|
||||
<select class="js-example-basic-single" name="fitur" style="width:100%">
|
||||
<?php foreach ($fitur as $ft) { ?>
|
||||
<option value="<?= $ft['id_fitur'] ?>"><?= $ft['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="status" style="width:100%">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>promocode">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
serviceValue = document.getElementById("persen").value;
|
||||
linkValue = document.getElementById("fix").value;
|
||||
if (serviceValue == nameSelect.value) {
|
||||
document.getElementById("persencheckrequired").required = true;
|
||||
document.getElementById("fixcheckrequired").required = false;
|
||||
document.getElementById("persencheck").style.display = "block";
|
||||
document.getElementById("fixcheck").style.display = "none";
|
||||
} else if (linkValue == nameSelect.value) {
|
||||
document.getElementById("fixcheckrequired").required = true;
|
||||
document.getElementById("persencheckrequired").required = false;
|
||||
document.getElementById("fixcheck").style.display = "block";
|
||||
document.getElementById("persencheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("persencheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
108
backendpanel/application/views/promocode/editpromocode.php
Normal file
108
backendpanel/application/views/promocode/editpromocode.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Ubah Kode Promo</h4>
|
||||
<?= form_open_multipart('promocode/editpromocode/' . $promo['id_promo']); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="id_promo" value=<?= $promo['id_promo']?>>
|
||||
<input type="file" class="dropify" name="image_promo" data-default-file="<?= base_url('images/promo/'. $promo['image_promo']); ?>"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Judul Promo</label>
|
||||
<input type="text" class="form-control" id="nama_promo" name="nama_promo" placeholder="promo title" value="<?= $promo['nama_promo'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Kode Promo</label>
|
||||
<input type="text" class="form-control" id="kode_promo" name="kode_promo" placeholder="enter promo code" value="<?= $promo['kode_promo'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">Tipe Promo</label>
|
||||
<select class="js-example-basic-single" onchange="admSelectCheck(this);" name="type_promo" style="width:100%" >
|
||||
<option id="persen" value="persen" <?php if ($promo['type_promo'] == 'persen') { ?>selected<?php } ?>>Persentase</option>
|
||||
<option id="fix" value="fix" <?php if ($promo['type_promo']== 'fix') { ?>selected<?php } ?>>Fix</option>
|
||||
</select>
|
||||
</div>
|
||||
<?php if ($promo['type_promo'] == 'persen') { ?>
|
||||
<div id="persencheck" class="form-group" style="display:block;">
|
||||
<label>Jumlah Persentase Promo</label>
|
||||
<input id="persencheckrequired" type="text" class="form-control" id="nominal_promo" name="nominal_promo_persen" placeholder="enter promo amount" value="<?= $promo['nominal_promo'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div id="fixcheck" class="form-group" style="display:none;">
|
||||
<label>Jumlah Promo</label>
|
||||
<input id="fixcheckrequired" type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="nominal_promo" name="nominal_promo" value="<?= number_format($promo['nominal_promo'], 0, ".", "."); ?>" placeholder="enter promo amount">
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="persencheck" class="form-group" style="display:none;">
|
||||
<label>Jumlah Persentase Promo</label>
|
||||
<input id="persencheckrequired" type="text" class="form-control" id="nominal_promo" name="nominal_promo_persen" placeholder="enter promo amount" value="<?= $promo['nominal_promo'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div id="fixcheck" class="form-group" style="display:block;">
|
||||
<label>Jumlah Promo</label>
|
||||
<input id="fixcheckrequired" type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="nominal_promo" name="nominal_promo" value="<?= number_format($promo['nominal_promo'], 0, ".", "."); ?>" placeholder="enter promo amount">
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Exp On</label>
|
||||
<input type="date" class="form-control" id="expired" name="expired" placeholder="" value="<?= $promo['expired'] ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">Layanan</label>
|
||||
<select class="js-example-basic-single" name="fitur" style="width:100%" value="<?= $promo['fitur'] ?>">
|
||||
<?php foreach ($fitur as $ft) { ?>
|
||||
<option value="<?= $ft['id_fitur'] ?>"><?= $ft['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="status" style="width:100%" value="<?= $promo['status'] ?>">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>promocode">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
serviceValue = document.getElementById("persen").value;
|
||||
linkValue = document.getElementById("fix").value;
|
||||
if (serviceValue == nameSelect.value) {
|
||||
document.getElementById("persencheckrequired").required = true;
|
||||
document.getElementById("fixcheckrequired").required = false;
|
||||
document.getElementById("persencheck").style.display = "block";
|
||||
document.getElementById("fixcheck").style.display = "none";
|
||||
} else if (linkValue == nameSelect.value) {
|
||||
document.getElementById("fixcheckrequired").required = true;
|
||||
document.getElementById("persencheckrequired").required = false;
|
||||
document.getElementById("fixcheck").style.display = "block";
|
||||
document.getElementById("persencheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("persencheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
83
backendpanel/application/views/promocode/index.php
Normal file
83
backendpanel/application/views/promocode/index.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>promocode/addpromocode"><i class="mdi mdi-plus-circle-outline"></i>Add Promo Code</a>
|
||||
</div>
|
||||
<br>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h4 class="card-title">Kode Promo</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Gambar</th>
|
||||
<th>Judul</th>
|
||||
<th>Kode Promo</th>
|
||||
<th>Diskon</th>
|
||||
<th>Layanan</th>
|
||||
<th>Expired</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($promocode as $prc) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/promo/') . $prc['image_promo']; ?>">
|
||||
</td>
|
||||
<td><?= $prc['nama_promo']; ?></td>
|
||||
<td class="text-primary"><?= $prc['kode_promo']; ?></td>
|
||||
|
||||
<?php if ($prc['type_promo'] == 'persen') { ?>
|
||||
<td class="text-danger"><?= $prc['nominal_promo']; ?>%</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-danger"><?= number_format($prc['nominal_promo'], 0, ".", "."); ?></td>
|
||||
<?php } ?>
|
||||
|
||||
<td><?= $prc['fitur']; ?></td>
|
||||
<td><?= $prc['expired']; ?></td>
|
||||
<td>
|
||||
<?php if ($prc['status'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>promocode/editpromocode/<?= $prc['id_promo']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button></a>
|
||||
<a href="<?= base_url(); ?>promocode/hapus/<?= $prc['id_promo']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
80
backendpanel/application/views/promoslider/addslider.php
Normal file
80
backendpanel/application/views/promoslider/addslider.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Tambah Iklan Slider</h4>
|
||||
<?= form_open_multipart('promoslider/tambah'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="foto" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Exp On</label>
|
||||
<input type="date" class="form-control" id="birthdate" name="tanggal_berakhir" placeholder="Change date of Birth" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">Tipe</label>
|
||||
<select id="getFname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="type_promosi">
|
||||
<option id="service" value="service">Layanan</option>
|
||||
<option id="link" value="link">Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="servicecheck" style="display:block;" class="form-group">
|
||||
<label for="fitur_promosi">Layanan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="fitur_promosi">
|
||||
<?php foreach ($fitur as $ft) { ?>
|
||||
<option value="<?= $ft['id_fitur'] ?>"><?= $ft['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="linkcheck" style="display:none;" class="form-group">
|
||||
<label for="link">Link</label>
|
||||
<input type="text" class="form-control" id="linktes" name="link_promosi" placeholder="enter link">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="is_show" style="width:100%">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>promoslider">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
serviceValue = document.getElementById("service").value;
|
||||
linkValue = document.getElementById("link").value;
|
||||
if (serviceValue == nameSelect.value) {
|
||||
document.getElementById("linktes").required = false;
|
||||
document.getElementById("servicecheck").style.display = "block";
|
||||
document.getElementById("linkcheck").style.display = "none";
|
||||
} else if (linkValue == nameSelect.value) {
|
||||
document.getElementById("linktes").required = true;
|
||||
document.getElementById("linkcheck").style.display = "block";
|
||||
document.getElementById("servicecheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("servicecheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
103
backendpanel/application/views/promoslider/editslider.php
Normal file
103
backendpanel/application/views/promoslider/editslider.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Perbarui Iklan Slider</h4>
|
||||
<?= form_open_multipart('promoslider/ubah/' . $id); ?>
|
||||
<input type="hidden" name="id" value='<?= $id ?>'>
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<input type="hidden" name=" id " value=<?= $id ?>>
|
||||
<input type="file" class="dropify" name="foto" data-max-file-size="3mb" data-default-file="<?= base_url('images/promo/') . $foto ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="birthdate">Exp On</label>
|
||||
<input type="date" class="form-control" id="birthdate" name="tanggal_berakhir" value="<?= $tanggal_berakhir ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">Tipe</label>
|
||||
<select id="getFname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="type_promosi">
|
||||
<option id="service" value="service" <?php if ($type_promosi == 'service') { ?>selected<?php } ?>>Layanan</option>
|
||||
<option id="link" value="link" <?php if ($type_promosi == 'link') { ?>selected<?php } ?>>Link</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php if ($type_promosi == 'service') { ?>
|
||||
<div id="servicecheck" style="display:block;" class="form-group">
|
||||
<label for="fitur_promosi">Layanan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="fitur_promosi">
|
||||
|
||||
<?php foreach ($fitur as $ftr) { ?>
|
||||
<option value="<?= $ftr['id_fitur'] ?>" <?php if ($fitur_promosi == $ftr['id_fitur']) { ?>selected<?php } ?>><?= $ftr['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div id="linkcheck" style="display:none;" class="form-group">
|
||||
<label for="link">Link</label>
|
||||
<input type="text" class="form-control" id="linktes" name="link_promosi" placeholder="enter link">
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div id="servicecheck" style="display:none;" class="form-group">
|
||||
<label for="fitur_promosi">Layanan</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="fitur_promosi">
|
||||
<?php foreach ($fitur as $ftr) { ?>
|
||||
<option value="<?= $ftr['id_fitur'] ?>" <?php if ($fitur_promosi == $ftr['id_fitur']) { ?>selected<?php } ?>><?= $ftr['fitur'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div id="linkcheck" style="display:block;" class="form-group">
|
||||
<label for="link">Link</label>
|
||||
<input type="text" class="form-control" id="linktes" name="link_promosi" value="<?= $link_promosi ?>" required>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gender">status</label>
|
||||
<select class="js-example-basic-single" name="is_show" style="width:100%">
|
||||
<option value="1">Aktif</option>
|
||||
<option value="0">Non Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-light" href="<?= base_url(); ?>promoslider/index">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
serviceValue = document.getElementById("service").value;
|
||||
linkValue = document.getElementById("link").value;
|
||||
if (serviceValue == nameSelect.value) {
|
||||
document.getElementById("linktes").required = false;
|
||||
document.getElementById("servicecheck").style.display = "block";
|
||||
document.getElementById("linkcheck").style.display = "none";
|
||||
} else if (linkValue == nameSelect.value) {
|
||||
document.getElementById("linktes").required = true;
|
||||
document.getElementById("linkcheck").style.display = "block";
|
||||
document.getElementById("servicecheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
<?php if ($type_promosi == 'service') { ?>
|
||||
document.getElementById("linkcheck").style.display = "none";
|
||||
document.getElementById("servicecheck").style.display = "block";
|
||||
<?php } else { ?>
|
||||
document.getElementById("linkcheck").style.display = "block";
|
||||
document.getElementById("servicecheck").style.display = "none";
|
||||
<?php } ?>
|
||||
}
|
||||
}
|
||||
</script>
|
||||
86
backendpanel/application/views/promoslider/index.php
Normal file
86
backendpanel/application/views/promoslider/index.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>promoslider/tambah"><i class="mdi mdi-plus-circle-outline"></i>Tambah Iklan Slider</a>
|
||||
</div>
|
||||
<br>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-succees" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Iklan Slider</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Gambar</th>
|
||||
<th>Tanggal Exp</th>
|
||||
<th>Tipe</th>
|
||||
<th>Layanan</th>
|
||||
<th>Iklan Link</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($promo as $pr) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/promo/') . $pr['foto']; ?>">
|
||||
</td>
|
||||
<td><?= $pr['tanggal_berakhir']; ?></td>
|
||||
<td><?= $pr['type_promosi']; ?></td>
|
||||
<td>
|
||||
<?php if ($pr['fitur_promosi'] == 0) {
|
||||
echo 'Link';
|
||||
} else {
|
||||
echo $pr['fitur'];
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($pr['link_promosi'] == NULL) { ?>
|
||||
Service
|
||||
<?php } else {
|
||||
echo $pr['link_promosi'];
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($pr['is_show'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>promoslider/ubah/<?= $pr['id']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button></a>
|
||||
<a href="<?= base_url(); ?>promoslider/hapus/<?= $pr['id']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
98
backendpanel/application/views/resetpass.php
Normal file
98
backendpanel/application/views/resetpass.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>ONTIME - Reset Password</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="icon" type="image/png" href="<?= base_url(); ?>asset/images/ic_ontime.png" />
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/vendor/bootstrap/css/bootstrap.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/vendor/animate/animate.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/vendor/css-hamburgers/hamburgers.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/vendor/animsition/css/animsition.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/vendor/select2/select2.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assetreset/vendor/daterangepicker/daterangepicker.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/css/util.css">
|
||||
<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>/assetreset/css/main.css">
|
||||
<!--===============================================================================================-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="col-md-12">
|
||||
<?php if (isset($_SESSION['msg'])) { ?>
|
||||
<div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<?php echo $client_lang[$_SESSION['msg']]; ?></a> </div>
|
||||
<?php unset($_SESSION['msg']);
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<div class="limiter">
|
||||
|
||||
|
||||
<div class="container-login100">
|
||||
|
||||
<div class="wrap-login100 p-t-50 p-b-90">
|
||||
|
||||
<img style="width:200px;height:auto;margin-bottom:30px;" class="center" src="<?= base_url(); ?>asset/images/logo_panjang.png" alt="Card image cap">
|
||||
|
||||
<form class="login100-form validate-form flex-sb flex-w" method="post">
|
||||
<input type="hidden" name="token" value="<?= $user['token']; ?>" />
|
||||
<input type="hidden" name="type" value="<?= $user['idkey']; ?>" />
|
||||
<input type="hidden" name="id" value="<?= $user['userid']; ?>" />
|
||||
<span class="login100-form-title p-b-51">
|
||||
Buat Password Baru
|
||||
</span>
|
||||
|
||||
|
||||
<div class="form-group wrap-input100 validate-input m-b-16" data-validate="Password tidak boleh kosong!">
|
||||
<input class="input100" type="password" name="password" id="password" placeholder="New Password">
|
||||
<span class="focus-input100"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group container-login100-form-btn m-t-17">
|
||||
<button class="login100-form-btn" type="submit" id="submit" name="submitter">
|
||||
Buat Password Baru
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dropDownSelect1"></div>
|
||||
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/jquery/jquery-3.2.1.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/animsition/js/animsition.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/bootstrap/js/popper.js"></script>
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/bootstrap/js/bootstrap.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/select2/select2.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/daterangepicker/moment.min.js"></script>
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/daterangepicker/daterangepicker.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/vendor/countdowntime/countdowntime.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?= base_url(); ?>/assetreset/js/main.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
125
backendpanel/application/views/sendemail/index.php
Normal file
125
backendpanel/application/views/sendemail/index.php
Normal file
@@ -0,0 +1,125 @@
|
||||
<!-- partial -->
|
||||
<!-- $subject, $emailuser, $content, $host,$port,$username,$password,$from,$appname,$secure -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('send')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('send'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Kirim Email</h4>
|
||||
<?= form_open_multipart('sendemail/send'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Kirim Ke</label>
|
||||
<select id="getFname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="sendto">
|
||||
<option id="users" value="users">User</option>
|
||||
<option id="pengendara" value="drivers">Driver</option>
|
||||
<option id="merchant2" value="merchant">Merchant</option>
|
||||
<option id="other" value="other">Others</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="usercheck" style="display:block;" class="form-group">
|
||||
<label for="newscategory">User</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="emailpelanggan">
|
||||
<?php foreach ($user as $us) { ?>
|
||||
<option value="<?= $us['email'] ?>"><?= $us['fullnama'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="drivercheck" style="display:none;" class="form-group">
|
||||
<label for="newscategory">Driver</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="emaildriver">
|
||||
<?php foreach ($driver as $dr) { ?>
|
||||
<option value="<?= $dr['email'] ?>"><?= $dr['nama_driver'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="merchantcheck" style="display:none;" class="form-group">
|
||||
<label for="newscategory">Merchant</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="emailmitra">
|
||||
<?php foreach ($mitra as $mt) { ?>
|
||||
<option value="<?= $mt['email_mitra'] ?>"><?= $mt['nama_mitra'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="othercheck" style="display:none;" class="form-group">
|
||||
<label for="newstitle">Others</label>
|
||||
<input type="email" class="form-control" id="linktes" placeholder="other" name="emailothers">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Judul</label>
|
||||
<input type="text" class="form-control" id="newstitle" placeholder="masukan judul" name="subject" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscontent">Konten Email</label>
|
||||
<textarea type="text" class="form-control" id="summernoteExample1" placeholder="Location" name="content" required></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">Kirim<i class="mdi mdi-send ml-1"></i></button>
|
||||
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
|
||||
if (nameSelect) {
|
||||
userValue = document.getElementById("users").value;
|
||||
driverValue = document.getElementById("pengendara").value;
|
||||
console.log(nameSelect.value, driverValue)
|
||||
merchantValue = document.getElementById("merchant2").value;
|
||||
bothValue = document.getElementById("other").value;
|
||||
|
||||
if (userValue == nameSelect.value) {
|
||||
console.log(nameSelect.value, userValue)
|
||||
document.getElementById("linktes").required = false;
|
||||
document.getElementById("usercheck").style.display = "block";
|
||||
document.getElementById("merchantcheck").style.display = "none";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("othercheck").style.display = "none";
|
||||
}
|
||||
if (nameSelect.value == driverValue) {
|
||||
console.log(nameSelect.value, driverValue)
|
||||
document.getElementById("linktes").required = false;
|
||||
document.getElementById("drivercheck").style.display = "block";
|
||||
document.getElementById("merchantcheck").style.display = "none";
|
||||
document.getElementById("usercheck").style.display = "none";
|
||||
document.getElementById("othercheck").style.display = "none";
|
||||
}
|
||||
if (merchantValue == nameSelect.value) {
|
||||
console.log(nameSelect.value, merchantValue)
|
||||
document.getElementById("linktes").required = false;
|
||||
document.getElementById("merchantcheck").style.display = "block";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("usercheck").style.display = "none";
|
||||
document.getElementById("othercheck").style.display = "none";
|
||||
}
|
||||
if (bothValue == nameSelect.value) {
|
||||
console.log(nameSelect.value, bothValue)
|
||||
document.getElementById("linktes").required = true;
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("usercheck").style.display = "none";
|
||||
document.getElementById("merchantcheck").style.display = "none";
|
||||
document.getElementById("othercheck").style.display = "block";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("usercheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
97
backendpanel/application/views/services/addservice.php
Normal file
97
backendpanel/application/views/services/addservice.php
Normal file
@@ -0,0 +1,97 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Tambah Layanan</h4>
|
||||
<?= form_open_multipart('services/addservice'); ?>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="icon" data-max-file-size="3mb" required />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Nama</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="fitur" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Tipe Layanan</label>
|
||||
<select class="js-example-basic-single" name="home" style="width:100%">
|
||||
<option value="1" >Penumpang Transportasi</option>
|
||||
<option value="2" >Pengiriman</option>
|
||||
<option value="3" >Rental</option>
|
||||
<option value="4" >Layanan Pembelian</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Harga</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="biaya" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Diskon (%)</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="nilai" placeholder="ex 10%">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Unit</label>
|
||||
<select class="js-example-basic-single" name="keterangan_biaya" style="width:100%">
|
||||
<!-- <option value="KM">Kilometers</option> -->
|
||||
<option value="KM" >Kilometer</option>
|
||||
<option value="jam" >Perjam</option>
|
||||
<!-- <option value="Hr">An Hour</option> -->
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Komisi (%)</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="komisi" placeholder="ex 10%" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Kendaraan</label>
|
||||
<select class="js-example-basic-single" name="driver_job" style="width:100%">
|
||||
<?php foreach ($driverjob as $drj) { ?>
|
||||
<option value="<?= $drj['id'] ?>"><?= $drj['driver_job'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Harga Minimal</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="biaya_minimum" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Driver Radius</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="jarak_minimum" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Pesanan Jarak Maks</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="maks_distance" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Minimum Saldo</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="wallet_minimum" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Deskripsi</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="keterangan" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Status</label>
|
||||
<select class="js-example-basic-single" name="active" style="width:100%">
|
||||
<option value="0" >Non Aktif</option>
|
||||
<option value="1" >Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a href="<?= base_url() ?>services" class="btn btn-danger">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
98
backendpanel/application/views/services/editservices.php
Normal file
98
backendpanel/application/views/services/editservices.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Layanan</h4>
|
||||
<?= form_open_multipart('services/ubah/' . $id_fitur); ?>
|
||||
<input type="hidden" name="id_fitur" value='<?= $id_fitur ?>'>
|
||||
<div class="form-group">
|
||||
<input type="file" class="dropify" name="icon" data-max-file-size="3mb" data-default-file="<?= base_url('images/fitur/') . $icon ?>" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Nama</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="fitur" value="<?= $fitur ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="service_tipe">Tipe Layanan</label>
|
||||
<select class="js-example-basic-single" name="home" style="width:100%">
|
||||
<option value="1" <?php if ($home == '1') { ?>selected<?php } ?>>Penumpang Transportasi</option>
|
||||
<option value="2" <?php if ($home == '2') { ?>selected<?php } ?>>Pengiriman</option>
|
||||
<option value="3" <?php if ($home == '3') { ?>selected<?php } ?>>Layanan Sewa</option>
|
||||
<option value="4" <?php if ($home == '4') { ?>selected<?php } ?>>Layanan Pembelian</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Harga</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="biaya" value="<?= number_format($biaya, 0, ".", ".") ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Diskon (%)</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="nilai" value="<?= $nilai ?>" placeholder="ex 10%">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Unit</label>
|
||||
<select class="js-example-basic-single" name="keterangan_biaya" style="width:100%">
|
||||
<!-- <option value="KM">Kilometers</option> -->
|
||||
<option value="KM" <?php if ($keterangan_biaya == 'KM') { ?>selected<?php } ?>>Kilometer</option>
|
||||
<option value="jam" <?php if ($keterangan_biaya == 'jam') { ?>selected<?php } ?>>Perjam</option>
|
||||
<!-- <option value="Hr">An Hour</option> -->
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Komisi (%)</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="komisi" value="<?= $komisi ?>" placeholder="ex 10%" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Kendaraan</label>
|
||||
<select class="js-example-basic-single" name="driver_job" style="width:100%">
|
||||
<?php foreach ($driverjob as $drj) { ?>
|
||||
<option value="<?= $drj['id'] ?>" <?php if ($driver_job == $drj['id']) { ?>selected<?php } ?>><?= $drj['driver_job'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Harga Minim</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="biaya_minimum" value="<?= number_format($biaya_minimum, 0, ".", ".") ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Driver Radius</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="jarak_minimum" value="<?= $jarak_minimum ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Pesanan Jarak Maks</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="maks_distance" value="<?= $maks_distance ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Minimum Saldo</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="newstitle" name="wallet_minimum" value="<?= number_format($wallet_minimum, 0, ".", ".") ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newstitle">Deskripsi</label>
|
||||
<input type="text" class="form-control" id="newstitle" name="keterangan" value="<?= $keterangan ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="newscategory">Status</label>
|
||||
<select class="js-example-basic-single" name="active" style="width:100%">
|
||||
<option value="0" <?php if ($active == 0) { ?>selected<?php } ?>>Non aktif</option>
|
||||
<option value="1" <?php if ($active == 1) { ?>selected<?php } ?>>Aktif</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a href="<?= base_url() ?>services" class="btn btn-danger">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of content wrapper -->
|
||||
102
backendpanel/application/views/services/index.php
Normal file
102
backendpanel/application/views/services/index.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row grid-margin">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h6 class="card-title">Layanan</h6>
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>services/addservice"><i class="mdi mdi-plus-circle-outline"></i>Tambah Layanan</a>
|
||||
</div>
|
||||
<br>
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table mt-3 border-top">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Layanan</th>
|
||||
<th>Icon</th>
|
||||
<th>Harga</th>
|
||||
<th>Diskon</th>
|
||||
<th>Unit</th>
|
||||
<th>Komisi</th>
|
||||
<th>Harga Minim</th>
|
||||
<th>Driver Radius</th>
|
||||
<th>Maximal Jarak</th>
|
||||
<th>Saldo Minimal</th>
|
||||
<th>Job</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($service as $s) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $s['fitur']; ?></td>
|
||||
<td>
|
||||
<div class="badge badge-primary">
|
||||
<img src="<?= base_url('images/fitur/') . $s['icon']; ?>">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?= $duit ?>
|
||||
<?= number_format($s['biaya'], 0, ".", ".") ?>
|
||||
</td>
|
||||
<td><?= $s['nilai']; ?>%</td>
|
||||
<td>/<?= $s['keterangan_biaya']; ?></td>
|
||||
<td><?= $s['komisi']; ?> %</td>
|
||||
<td><?= $duit ?>
|
||||
<?= number_format($s['biaya_minimum'], 0, ".", ".") ?></td>
|
||||
<td><?= $s['jarak_minimum']; ?>km</td>
|
||||
<td><?= $s['maks_distance']; ?>km</td>
|
||||
<td><?= $duit ?>
|
||||
<?= number_format($s['wallet_minimum'], 0, ".", ".") ?></td>
|
||||
<?php foreach ($driverjob as $dj) {
|
||||
if ($s['driver_job'] == $dj['id']) { ?>
|
||||
<td><?= $dj['driver_job']; ?></td>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
|
||||
<td>
|
||||
<?php if ($s['active'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-danger">Non Aktif</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>services/ubah/<?= $s['id_fitur']; ?>">
|
||||
<button class="btn btn-outline-primary">Ubah</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>services/hapusservice/<?= $s['id_fitur']; ?>" onclick="return confirm ('are you sure?')">
|
||||
<button class="btn btn-outline-danger">Hapus</button></a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
65
backendpanel/application/views/success.php
Normal file
65
backendpanel/application/views/success.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Berhasil</title>
|
||||
<!-- plugins:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/mdi/css/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/simple-line-icons/css/simple-line-icons.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/flag-icon-css/css/flag-icon.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.min.css">
|
||||
<!-- endinject -->
|
||||
<!-- inject:css -->
|
||||
<link rel="stylesheet" href="<?= base_url(); ?>asset/css/style.css">
|
||||
<!-- endinject -->
|
||||
<link rel="shortcut icon" href="<?= base_url(); ?>asset/images/ic_ontime.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-scroller">
|
||||
<div class="container-fluid page-body-wrapper">
|
||||
<div class="row">
|
||||
<div class="content-wrapper full-page-wrapper d-flex align-items-center text-center error-page bg-primary">
|
||||
<div class="col-lg-7 mx-auto text-white">
|
||||
<div class="row align-items-center d-flex flex-row">
|
||||
<div class="col-lg-6 text-lg-right pr-lg-4">
|
||||
<h2 class="display-1 mb-0">Berhasil</h2>
|
||||
</div>
|
||||
<div class="col-lg-6 error-page-divider text-lg-left pl-lg-4">
|
||||
<h3>Reset Password!</h3>
|
||||
<h3 class="font-weight-light">Password berhasil di ubah! Silahkan login kembali.</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-5">
|
||||
<div class="col-12 mt-xl-2">
|
||||
<p class="text-white font-weight-medium text-center">Copyright ©<?php echo date ('Y');?> <a href="https://on-time.id">Ontime</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
</div>
|
||||
<!-- row ends -->
|
||||
</div>
|
||||
<!-- page-body-wrapper ends -->
|
||||
</div>
|
||||
<!-- container-scroller -->
|
||||
<!-- plugins:js -->
|
||||
<script src="<?= base_url(); ?>asset/node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/popper.js/dist/umd/popper.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
|
||||
<!-- endinject -->
|
||||
<!-- inject:js -->
|
||||
<script src="<?= base_url(); ?>asset/js/off-canvas.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/hoverable-collapse.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/misc.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/settings.js"></script>
|
||||
<script src="<?= base_url(); ?>asset/js/todolist.js"></script>
|
||||
<!-- endinject -->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
222
backendpanel/application/views/transaction/index.php
Normal file
222
backendpanel/application/views/transaction/index.php
Normal file
@@ -0,0 +1,222 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Tabel Transaksi</h4>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php
|
||||
// echo $this->session->flashdata('demo');
|
||||
?>
|
||||
<?php echo $this->session->flashdata('cancel'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($this->session->userdata('wilayah') == 0) { ?>
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Customer</th>
|
||||
<th>Driver</th>
|
||||
<th>Layanan</th>
|
||||
<th>Pick Up</th>
|
||||
<th>Tujuan</th>
|
||||
<th>Harga</th>
|
||||
<th>Metode Pembayaran</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
|
||||
foreach ($transaksi as $tr)
|
||||
{ ?>
|
||||
|
||||
<tr>
|
||||
<td><?= $i; ?></td>
|
||||
<td><?= date('d-m-Y', strtotime($tr['waktu_order'])); ?></td>
|
||||
<td><?= $tr['fullnama'] ?></td>
|
||||
<td><?= $tr['nama_driver'] ?></td>
|
||||
<td><?= $tr['fitur'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_asal'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_tujuan'] ?></td>
|
||||
<td><?= $currency['app_currency'] ?>
|
||||
<?= number_format($tr['biaya_akhir'], 0, ".", ".") ?></td>
|
||||
<td>
|
||||
<?php if ($tr['pakai_wallet'] == '0') {
|
||||
echo 'CASH';
|
||||
} else {
|
||||
echo 'WALLET';
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($tr['status'] == '2') { ?>
|
||||
<label class="badge badge-primary"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '3') { ?>
|
||||
<label class="badge badge-success"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '5') { ?>
|
||||
<label class="badge badge-danger"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '4') { ?>
|
||||
<label class="badge badge-info"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-primary">Lihat</a>
|
||||
<a onclick="return confirm ('Are You Sure?')" href="<?= base_url(); ?>dashboard/delete/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-danger">Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 1) { ?>
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Customer</th>
|
||||
<th>Driver</th>
|
||||
<th>Layanan</th>
|
||||
<th>Pick Up</th>
|
||||
<th>Tujuan</th>
|
||||
<th>Harga</th>
|
||||
<th>Metode Pembayaran</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
|
||||
foreach ($transaksi1 as $tr)
|
||||
{ ?>
|
||||
|
||||
<tr>
|
||||
<td><?= $i; ?></td>
|
||||
<td><?= date('d-m-Y', strtotime($tr['waktu_order'])); ?></td>
|
||||
<td><?= $tr['fullnama'] ?></td>
|
||||
<td><?= $tr['nama_driver'] ?></td>
|
||||
<td><?= $tr['fitur'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_asal'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_tujuan'] ?></td>
|
||||
<td><?= $currency['app_currency'] ?>
|
||||
<?= number_format($tr['biaya_akhir'], 0, ".", ".") ?></td>
|
||||
<td>
|
||||
<?php if ($tr['pakai_wallet'] == '0') {
|
||||
echo 'CASH';
|
||||
} else {
|
||||
echo 'WALLET';
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($tr['status'] == '2') { ?>
|
||||
<label class="badge badge-primary"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '3') { ?>
|
||||
<label class="badge badge-success"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '5') { ?>
|
||||
<label class="badge badge-danger"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '4') { ?>
|
||||
<label class="badge badge-info"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-primary">Lihat</a>
|
||||
<a onclick="return confirm ('Are You Sure?')" href="<?= base_url(); ?>dashboard/delete/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-danger">Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($this->session->userdata('wilayah') == 3) { ?>
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Customer</th>
|
||||
<th>Driver</th>
|
||||
<th>Layanan</th>
|
||||
<th>Pick Up</th>
|
||||
<th>Tujuan</th>
|
||||
<th>Harga</th>
|
||||
<th>Metode Pembayaran</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
|
||||
foreach ($transaksi3 as $tr)
|
||||
{ ?>
|
||||
|
||||
<tr>
|
||||
<td><?= $i; ?></td>
|
||||
<td><?= date('d-m-Y', strtotime($tr['waktu_order'])); ?></td>
|
||||
<td><?= $tr['fullnama'] ?></td>
|
||||
<td><?= $tr['nama_driver'] ?></td>
|
||||
<td><?= $tr['fitur'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_asal'] ?></td>
|
||||
<td style="max-width:300px;"><?= $tr['alamat_tujuan'] ?></td>
|
||||
<td><?= $currency['app_currency'] ?>
|
||||
<?= number_format($tr['biaya_akhir'], 0, ".", ".") ?></td>
|
||||
<td>
|
||||
<?php if ($tr['pakai_wallet'] == '0') {
|
||||
echo 'CASH';
|
||||
} else {
|
||||
echo 'WALLET';
|
||||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($tr['status'] == '2') { ?>
|
||||
<label class="badge badge-primary"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '3') { ?>
|
||||
<label class="badge badge-success"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '5') { ?>
|
||||
<label class="badge badge-danger"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '4') { ?>
|
||||
<label class="badge badge-info"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-primary">Lihat</a>
|
||||
<a onclick="return confirm ('Are You Sure?')" href="<?= base_url(); ?>dashboard/delete/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-danger">Hapus</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
286
backendpanel/application/views/users/detailusers.php
Normal file
286
backendpanel/application/views/users/detailusers.php
Normal file
@@ -0,0 +1,286 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row user-profile">
|
||||
<div class="col-lg-4 side-left d-flex align-items-stretch">
|
||||
<div class="row">
|
||||
<div class="col-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body avatar">
|
||||
<div class="row">
|
||||
<h4 class="col-auto mr-auto card-title">Info User</h4>
|
||||
<a class="col-auto btn btn-danger text-white" href="<?= base_url() ?>users">
|
||||
<i class="mdi mdi-keyboard-backspace text-white"></i>Kembali</a>
|
||||
</div>
|
||||
<img src="<?= base_url('images/pelanggan/') . $user['fotopelanggan']; ?>">
|
||||
<p class="name"><?= $user['fullnama'] ?></p>
|
||||
<h4 class="text-center text-primary">
|
||||
<i class="mdi mdi-wallet mr-1 text-primary "></i>Saldo</h4>
|
||||
<p class="text-center">
|
||||
<?= $duit ?>
|
||||
<?= number_format($user['saldo'], 0, ".", ".") ?>
|
||||
</p>
|
||||
<span class="d-block text-center text-dark"><?= $user['email'] ?></span>
|
||||
<span class="d-block text-center text-dark"><?= $user['no_telepon'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body overview">
|
||||
<ul class="achivements">
|
||||
<li>
|
||||
<p class="text-success">Id</p>
|
||||
<p><?= $user['id'] ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success">Order</p>
|
||||
<p><?= count($countorder) ?></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-success">Status</p>
|
||||
<p>
|
||||
<?php if ($user['status'] == 1) {
|
||||
echo 'active';
|
||||
} else {
|
||||
echo 'Blocked';
|
||||
} ?>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="info-links">
|
||||
<i class="mdi mdi-account-check text-gray">Masuk :
|
||||
</i>
|
||||
<p><?= $user['created_on'] ?></p>
|
||||
<i class="mdi mdi-calendar text-gray">Tanggal lahir:
|
||||
</i>
|
||||
<p><?= $user['tgl_lahir'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 side-right stretch-card">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('ubah')) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="wrapper d-block d-sm-flex align-items-center justify-content-between">
|
||||
<h4 class="card-title mb-0">Detail User</h4>
|
||||
<ul class="nav nav-tabs tab-solid tab-solid-primary mb-0" id="myTab" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="info-tab" data-toggle="tab" href="#info" role="tab" aria-controls="info" aria-expanded="true">Info</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="avatar-tab" data-toggle="tab" href="#avatar" role="tab" aria-controls="avatar">Photo Profil</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="security-tab" data-toggle="tab" href="#security" role="tab" aria-controls="security">Password</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="history-tab" data-toggle="tab" href="#history" role="tab" aria-controls="history">Riwayat Transaksi</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="wallet-tab" data-toggle="tab" href="#wallet" role="tab" aria-controls="wallet">Saldo</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
|
||||
<hr>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="tab-pane fade show active" id="info" role="tabpanel" aria-labelledby="info">
|
||||
<?= form_open_multipart('users/ubahid'); ?>
|
||||
<input type="hidden" name="id" value="<?= $user['id'] ?>">
|
||||
<div class="form-group">
|
||||
<label for="name">Nama</label>
|
||||
<input type="text" class="form-control" id="name" name="fullnama" value="<?= $user['fullnama'] ?>" required>
|
||||
</div>
|
||||
|
||||
<label class="text-small">Nomor hp</label>
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone" class="form-control" name="countrycode" value="<?= $user['countrycode'] ?>" required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" id="phone" name="phone" value="<?= $user['phone'] ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" value="<?= $user['tgl_lahir'] ?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?= $user['email'] ?>" placeholder="Change email address" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="avatar" role="tabpanel" aria-labelledby="avatar-tab">
|
||||
<?= form_open_multipart('users/ubahfoto'); ?>
|
||||
<input type="hidden" name="id" value="<?= $user['id'] ?>">
|
||||
<input type="file" name="fotopelanggan" class="dropify" data-max-file-size="1mb" data-default-file="<?= base_url('images/pelanggan/') . $user['fotopelanggan'] ?>" />
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="security" role="tabpanel" aria-labelledby="security-tab">
|
||||
<?= form_open_multipart('users/ubahpass'); ?>
|
||||
<input type="hidden" name="id" value="<?= $user['id'] ?>">
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control" id="new-password" name="password" placeholder="Enter you new password" required>
|
||||
</div>
|
||||
<div class="form-group mt-5">
|
||||
<button type="submit" class="btn btn-success mr-2">Perbarui</button>
|
||||
<button class="btn btn-outline-danger">Batal</button>
|
||||
</div>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="history" role="tabpanel" aria-labelledby="history-tab">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Transaksi Inv</th>
|
||||
<th>Layanan</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($countorder as $tr) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td>#INV-<?= $tr['id'] ?></td>
|
||||
<td><?= $tr['fitur'] ?></td>
|
||||
<td><?= $tr['waktu_order'] ?></td>
|
||||
<td class="text-success">
|
||||
<?= $duit ?>
|
||||
<?= number_format($tr['biaya_akhir'], 0, ".", ".") ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($tr['status'] == '2') { ?>
|
||||
<label class="badge badge-primary"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '3') { ?>
|
||||
<label class="badge badge-success"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '5') { ?>
|
||||
<label class="badge badge-danger"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
<?php if ($tr['status'] == '4') { ?>
|
||||
<label class="badge badge-info"><?= $tr['status_transaksi']; ?></label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>dashboard/detail/<?= $tr['id_transaksi']; ?>" class="btn btn-outline-primary">View</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="wallet" role="tabpanel" aria-labelledby="wallet-tab">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Id</th>
|
||||
<th>Tipe</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Jumlah</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wl) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wl['id']; ?></td>
|
||||
<td><?= $wl['type']; ?></td>
|
||||
<td><?= $wl['waktu']; ?></td>
|
||||
|
||||
<?php if ($wl['type'] == 'topup' or $wl['type'] == 'Order+') { ?>
|
||||
<td class="text-success">
|
||||
<?= $duit ?>
|
||||
<?= number_format($wl['jumlah'], 0, ".", ".") ?>
|
||||
</td>
|
||||
|
||||
<?php } else { ?>
|
||||
<td class="text-danger">
|
||||
<?= $duit ?>
|
||||
<?= number_format($wl['jumlah'], 0, ".", ".") ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "<?= $user['countrycode'] ?>"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
183
backendpanel/application/views/users/index.php
Normal file
183
backendpanel/application/views/users/index.php
Normal file
@@ -0,0 +1,183 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>users/tambah">
|
||||
<i class="mdi mdi-plus-circle-outline"></i>Tambah User</a>
|
||||
</div>
|
||||
<br>
|
||||
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
<?php echo $this->session->flashdata('hapus'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
<?php echo $this->session->flashdata('tambah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">User</h4>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#allusers-2-1" role="tab" aria-controls="allusers-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-account"></i>Semua Users</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#blocked-2-2" role="tab" aria-controls="blocked-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-account-off"></i>Blocked User</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
|
||||
<!-- all users -->
|
||||
<div class="tab-pane fade show active" id="allusers-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua User</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>User Id</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>No hp</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($user as $us) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $us['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/pelanggan/') . $us['fotopelanggan']; ?>">
|
||||
</td>
|
||||
<td><?= $us['fullnama'] ?></td>
|
||||
<td><?= $us['email'] ?></td>
|
||||
<td><?= $us['no_telepon'] ?></td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-dark">Blocked</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>users/detail/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<?php if ($us['status'] == 0) { ?>
|
||||
<a href="<?= base_url(); ?>users/userunblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a href="<?= base_url(); ?>users/userblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-dark text-dark mr-2">Block</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a href="<?= base_url(); ?>users/hapususers/<?= $us['id'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all users -->
|
||||
|
||||
<!-- blocked users -->
|
||||
<div class="tab-pane fade" id="blocked-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua User</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>User Id</th>
|
||||
<th>Photo Profil</th>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>No hp</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($user as $us) {
|
||||
if ($us['status'] == 0) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $us['id'] ?></td>
|
||||
<td>
|
||||
<img src="<?= base_url('images/pelanggan/') . $us['fotopelanggan']; ?>">
|
||||
</td>
|
||||
<td><?= $us['fullnama'] ?></td>
|
||||
<td><?= $us['email'] ?></td>
|
||||
<td><?= $us['no_telepon'] ?></td>
|
||||
<td>
|
||||
<?php if ($us['status'] == 1) { ?>
|
||||
<label class="badge badge-success">Aktif</label>
|
||||
<?php } else { ?>
|
||||
<label class="badge badge-dark">Blocked</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= base_url(); ?>users/detail/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-primary mr-2">Lihat</button>
|
||||
</a>
|
||||
<a href="<?= base_url(); ?>users/userunblock/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-success text-red mr-2">Unblock</button>
|
||||
</a>
|
||||
|
||||
<a href="<?= base_url(); ?>users/hapususers/<?= $us['id'] ?>">
|
||||
<button class="btn btn-outline-danger text-red mr-2">Hapus</button>
|
||||
</a>
|
||||
</td>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of blocked -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- content-wrapper ends -->
|
||||
80
backendpanel/application/views/users/tambahuser.php
Normal file
80
backendpanel/application/views/users/tambahuser.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<!-- partial -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
||||
<div class="content-wrapper">
|
||||
<div class="row ">
|
||||
<div class="col-md-8 offset-md-2 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Tambah User</h4>
|
||||
<?php if ($this->session->flashdata() or validation_errors()) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?= validation_errors() ?>
|
||||
<?php echo $this->session->flashdata('invalid'); ?>
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= form_open_multipart('users/tambah'); ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Photo Profil</label>
|
||||
<input type="file" name="fotopelanggan" id="fotopelanggan" class="dropify" data-max-file-size="3mb">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="fullnama">Nama</label>
|
||||
<input type="text" class="form-control" id="fullnama" name="fullnama" placeholder="enter name" <?php if ($_POST != NULL) { ?> value="<?= $_POST['fullnama']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" placeholder="enter birth date " <?php if ($_POST != NULL) { ?> value="<?= $_POST['tgl_lahir']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="enter email " <?php if ($_POST != NULL) { ?> value="<?= $_POST['email']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
|
||||
<label class="text-small">Nomor hp</label>
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group col-2">
|
||||
<input type="tel" id="txtPhone" class="form-control" name="countrycode" placeholder="+1 " <?php if ($_POST != NULL) { ?> value="<?= $_POST['countrycode']; ?>" <?php } ?> required>
|
||||
</div>
|
||||
<div class=" form-group col-10">
|
||||
<input type="text" class="form-control" id="phone" name="phone" placeholder="enter phone number" <?php if ($_POST != NULL) { ?> value="<?= $_POST['phone']; ?>" <?php } ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" placeholder="enter password" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<button class="btn btn-light">Batal</button>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var code = "+62"; // Assigning value from model.
|
||||
$('#txtPhone').val(code);
|
||||
$('#txtPhone').intlTelInput({
|
||||
autoHideDialCode: true,
|
||||
autoPlaceholder: "ON",
|
||||
dropdownContainer: document.body,
|
||||
formatOnDisplay: true,
|
||||
hiddenInput: "full_number",
|
||||
initialCountry: "auto",
|
||||
nationalMode: true,
|
||||
placeholderNumberType: "MOBILE",
|
||||
preferredCountries: ['US'],
|
||||
separateDialCode: false
|
||||
});
|
||||
console.log(code)
|
||||
});
|
||||
</script>
|
||||
<!-- end of content wrapper -->
|
||||
510
backendpanel/application/views/wallet/index.php
Normal file
510
backendpanel/application/views/wallet/index.php
Normal file
@@ -0,0 +1,510 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-diamond icon-lg text-success"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Penghasilan</p>
|
||||
<?php
|
||||
$walletvalue = $topup['total'] - $withdraw['total'] - ($ordermin['total'] - $orderplus['total']);
|
||||
$apprevenue = ($ordermin['total'] - $orderplus['total']);
|
||||
?>
|
||||
<h3><?= $currency['duit'] ?>
|
||||
<?= number_format($apprevenue , 0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-rotate-3d icon-lg text-success"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Jumlah Saldo</p>
|
||||
<?php
|
||||
$walletvalue = $topup['total'] - $withdraw['total'] - ($ordermin['total'] - $orderplus['total']);
|
||||
?>
|
||||
<h3><?= $currency['duit'] ?>
|
||||
<?= number_format($walletvalue , 0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-ticket-percent icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Jumlah Diskon</p>
|
||||
<?php
|
||||
$walletvalue = $topup['total'] - $withdraw['total'] - ($ordermin['total'] - $orderplus['total']);
|
||||
?>
|
||||
<h3><?= $currency['duit'] ?>
|
||||
<?= number_format($jumlahdiskon['diskon'] , 0, ".", ".") ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-import icon-lg text-primary"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Jumlah TopUp</p>
|
||||
<h6><?= $currency['duit'] ?>
|
||||
<?= number_format($topup['total'] , 0, ".", ".") ?></h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-export icon-lg text-danger"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Jumlah Penarikan</p>
|
||||
<h6><?= $currency['duit'] ?>
|
||||
<?= number_format($withdraw['total'] , 0, ".", ".") ?></h6>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-4 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center justify-content-md-center">
|
||||
<i class="mdi mdi-motorbike icon-lg text-info"></i>
|
||||
<div class="ml-3">
|
||||
<p class="mb-0">Jumlah Transaksi</p>
|
||||
<span class="mr-2 font-weight-bold">
|
||||
<i class="badge badge-success mr-1">IN</i><?= $currency['duit'] ?>
|
||||
<?= number_format($orderplus['total'], 0, ".", ".") ?></span>
|
||||
<span class="font-weight-bold">
|
||||
<i class="badge badge-danger mr-1">OUT</i><?= $currency['duit'] ?>
|
||||
<?= number_format($ordermin['total'], 0, ".", ".") ?>
|
||||
<i></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata()) : ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->session->flashdata('ubah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="tab-minimal tab-minimal-success">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="tab-2-1" data-toggle="tab" href="#allwallet-2-1" role="tab" aria-controls="allwallet-2-1" aria-selected="true">
|
||||
<i class="mdi mdi-rotate-3d"></i>Semua Saldo</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-2" data-toggle="tab" href="#topup-2-2" role="tab" aria-controls="topup-2-2" aria-selected="false">
|
||||
<i class="mdi mdi-import"></i>Topup</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-3" data-toggle="tab" href="#withdraw-2-3" role="tab" aria-controls="withdraw-2-3" aria-selected="false">
|
||||
<i class="mdi mdi-export"></i>Withdraw</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="tab-2-4" data-toggle="tab" href="#transaction-2-4" role="tab" aria-controls="transaction-2-4" aria-selected="false">
|
||||
<i class="mdi mdi-motorbike"></i>Transaksi</a>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
|
||||
<!-- all wallet -->
|
||||
<div class="tab-pane fade show active" id="allwallet-2-1" role="tabpanel" aria-labelledby="tab-2-1">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Semua Saldo</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Invoice</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Driver/Users</th>
|
||||
<th>Nama</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Tipe</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wlt) { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wlt['id'] ?></td>
|
||||
<td><?= $wlt['waktu'] ?></td>
|
||||
|
||||
<?php $caracter = substr($wlt['id_user'], 0, 1);
|
||||
if ($caracter == 'P') { ?>
|
||||
<td class="text-primary">User</td>
|
||||
<?php } elseif ($caracter == 'M') { ?>
|
||||
<td class="text-success">Merchant</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-warning">Driver</td>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<td><?= $wlt['nama_driver'] ?><?= $wlt['fullnama'] ?><?= $wlt['nama_mitra'] ?></td>
|
||||
<?php if ($wlt['type'] == 'topup' or $wlt['type'] == 'Order+') { ?>
|
||||
<td class="text-success">
|
||||
<?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
|
||||
<?php } else { ?>
|
||||
<td class="text-danger">
|
||||
<?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'] , 0, ".", ".") ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php if ($wlt['type'] == 'topup' or $wlt['type'] == 'Order+') { ?>
|
||||
<td>
|
||||
<label class="badge badge-outline-success"><?= $wlt['type'] ?></label>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td>
|
||||
<label class="badge badge-outline-danger"><?= $wlt['type'] ?></label>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($wlt['status'] == '0') { ?>
|
||||
<td>
|
||||
<label class="badge badge-secondary text-dark">Pending</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '1') { ?>
|
||||
<td>
|
||||
<label class="badge badge-success">Sukses</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '2') { ?>
|
||||
<td>
|
||||
<label class="badge badge-danger">Batal</label>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of all wallet -->
|
||||
|
||||
<!-- top up -->
|
||||
<div class="tab-pane fade" id="topup-2-2" role="tabpanel" aria-labelledby="tab-2-2">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>wallet/tambahtopup"><i class="mdi mdi-plus-circle-outline"></i>Add Top Up</a>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Semua Top Up</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing1" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Invoice</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Driver/User</th>
|
||||
<th>Nama</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Bank</th>
|
||||
<th>Nama Akun</th>
|
||||
<th>Nomor rekening</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wlt) {
|
||||
if ($wlt['type'] == 'topup') { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wlt['id'] ?></td>
|
||||
<td><?= $wlt['waktu'] ?></td>
|
||||
|
||||
<?php $caracter = substr($wlt['id_user'], 0, 1);
|
||||
if ($caracter == 'P') { ?>
|
||||
<td class="text-primary">User</td>
|
||||
<?php } elseif ($caracter == 'M') { ?>
|
||||
<td class="text-success">Merchant</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-warning">Driver</td>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<td><?= $wlt['nama_driver'] ?><?= $wlt['fullnama'] ?><?= $wlt['nama_mitra'] ?></td>
|
||||
<td class="text-success"><?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'], 0, ".", ".") ?></td>
|
||||
<td><?= $wlt['bank'] ?></td>
|
||||
<td><?= $wlt['nama_pemilik'] ?></td>
|
||||
<?php if ($wlt['bank'] == 'QRIS') { ?>
|
||||
<td>"QR CODE"</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $wlt['rekening'] ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($wlt['status'] == '0') { ?>
|
||||
<td>
|
||||
<label class="badge badge-secondary text-dark">Pending</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '1') { ?>
|
||||
<td>
|
||||
<label class="badge badge-success">Sukses</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '2') { ?>
|
||||
<td>
|
||||
<label class="badge badge-danger">Batalkan</label>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td>
|
||||
<?php if ($wlt['status'] == '0') { ?>
|
||||
<a href="<?= base_url(); ?>wallet/tconfirm/<?= $wlt['id'] ?>/<?= $wlt['id_user'] ?>/<?= $wlt['jumlah'] ?>">
|
||||
<button class="btn btn-outline-primary">Konfirmasi</button></a>
|
||||
<a href="<?= base_url(); ?>wallet/tcancel/<?= $wlt['id'] ?>/<?= $wlt['id_user'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger">Batal</button></a>
|
||||
<?php } else { ?>
|
||||
<span class="btn btn-outline-muted">Selesai</span>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of top up -->
|
||||
|
||||
<!-- withdraw -->
|
||||
<div class="tab-pane fade" id="withdraw-2-3" role="tabpanel" aria-labelledby="tab-2-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div>
|
||||
<a class="btn btn-info" href="<?= base_url(); ?>wallet/tambahwithdraw"><i class="mdi mdi-plus-circle-outline"></i>Add Withdraw</a>
|
||||
</div>
|
||||
<br>
|
||||
<h4 class="card-title">Semua Withdraw</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing2" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Invoice</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Driver/Users</th>
|
||||
<th>Nama</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Bank</th>
|
||||
<th>Nama akun</th>
|
||||
<th>Nomor rekening</th>
|
||||
<th>Status</th>
|
||||
<th>Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wlt) {
|
||||
if ($wlt['type'] == 'withdraw') { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wlt['id'] ?></td>
|
||||
<td><?= $wlt['waktu'] ?></td>
|
||||
|
||||
<?php $caracter = substr($wlt['id_user'], 0, 1);
|
||||
if ($caracter == 'P') { ?>
|
||||
<td class="text-primary">User</td>
|
||||
<?php } elseif ($caracter == 'M') { ?>
|
||||
<td class="text-success">Merchant</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-warning">Driver</td>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<td><?= $wlt['nama_driver'] ?><?= $wlt['fullnama'] ?><?= $wlt['nama_mitra'] ?></td>
|
||||
|
||||
<td class="text-danger"><?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'] , 0, ".", ".") ?></td>
|
||||
<td><?= $wlt['bank'] ?></td>
|
||||
<td><?= $wlt['nama_pemilik'] ?></td>
|
||||
<?php if ($wlt['bank'] == 'QRIS') { ?>
|
||||
<td>"QR CODE"</td>
|
||||
<?php } else { ?>
|
||||
<td><?= $wlt['rekening'] ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($wlt['status'] == '0') { ?>
|
||||
<td>
|
||||
<label class="badge badge-secondary text-dark">Pending</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '1') { ?>
|
||||
<td>
|
||||
<label class="badge badge-success">Sukses</label>
|
||||
</td>
|
||||
<?php }
|
||||
if ($wlt['status'] == '2') { ?>
|
||||
<td>
|
||||
<label class="badge badge-danger">Batal</label>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<td>
|
||||
<?php if ($wlt['status'] == '0') { ?>
|
||||
<a href="<?= base_url(); ?>wallet/wconfirm/<?= $wlt['id'] ?>/<?= $wlt['id_user'] ?>/<?= $wlt['jumlah'] ?>">
|
||||
<button class="btn btn-outline-primary">Confirm</button></a>
|
||||
<a href="<?= base_url(); ?>wallet/wcancel/<?= $wlt['id'] ?>/<?= $wlt['id_user'] ?>">
|
||||
<button onclick="return confirm ('Are You Sure?')" class="btn btn-outline-danger">Cancel</button></a>
|
||||
<?php } else { ?>
|
||||
<span class="btn btn-outline-muted">Completed</span>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of withdraw -->
|
||||
|
||||
<!-- transaction -->
|
||||
<div class="tab-pane fade" id="transaction-2-4" role="tabpanel" aria-labelledby="tab-2-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">All Transaction</h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table id="order-listing3" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Transaction Inv</th>
|
||||
<th>Service</th>
|
||||
<th>Date</th>
|
||||
<th>Driver/Users</th>
|
||||
<th>Name</th>
|
||||
<th>Amount</th>
|
||||
<th>Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 1;
|
||||
foreach ($wallet as $wlt) {
|
||||
if ($wlt['type'] == 'Order+' or $wlt['type'] == 'Order-') { ?>
|
||||
<tr>
|
||||
<td><?= $i ?></td>
|
||||
<td><?= $wlt['id'] ?></td>
|
||||
<td><?= $wlt['bank'] ?></td>
|
||||
<td><?= $wlt['waktu'] ?></td>
|
||||
|
||||
<?php $caracter = substr($wlt['id_user'], 0, 1);
|
||||
if ($caracter == 'P') { ?>
|
||||
<td class="text-primary">User</td>
|
||||
<?php } elseif ($caracter == 'M') { ?>
|
||||
<td class="text-success">Merchant</td>
|
||||
<?php } else { ?>
|
||||
<td class="text-warning">Driver</td>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<td><?= $wlt['nama_driver'] ?><?= $wlt['fullnama'] ?><?= $wlt['nama_mitra'] ?></td>
|
||||
|
||||
<?php if ($wlt['type'] == 'Order+') { ?>
|
||||
<td class="text-success"><?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'] , 0, ".", ".") ?></td>
|
||||
<?php } else { ?>
|
||||
<td class="text-danger"><?= $currency['duit'] ?>
|
||||
<?= number_format($wlt['jumlah'] , 0, ".", ".") ?></td>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($wlt['type'] == 'Order+') { ?>
|
||||
<td>
|
||||
<label class="badge badge-primary">IN</label>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td>
|
||||
<label class="badge badge-danger">OUT</label>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of transaction -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
102
backendpanel/application/views/wallet/tambahtopup.php
Normal file
102
backendpanel/application/views/wallet/tambahtopup.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('demo')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('demo'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Topup Manual</h4>
|
||||
<?= form_open_multipart('wallet/tambahtopup'); ?>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="type">Tipe User</label>
|
||||
<select id="getFname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="type_user">
|
||||
<option id="pelanggan" value="pelanggan">USER</option>
|
||||
<option id="driver2" value="driver">DRIVER</option>
|
||||
<option id="mitra" value="mitra">MERCHANT</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="pelanggancheck" style="display:block;" class="form-group">
|
||||
<label for="id_Pelanggan">User</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_pelanggan">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'P') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['fullnama'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="drivercheck" style="display:none;" class="form-group">
|
||||
<label for="id_driver">Driver</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_driver">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'D') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['nama_driver'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)
|
||||
</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="mitracheck" style="display:none;" class="form-group">
|
||||
<label for="id_mitra">Owner</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_mitra">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'M') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['nama_mitra'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)
|
||||
</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="saldo">Jumlah</label>
|
||||
<input type="text" pattern="^\d+(\.|\,)\d{2}$" data-type="currency" class="form-control" id="saldo" name="saldo" placeholder="masukan jumlah" value="">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>wallet">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
pelangganValue = document.getElementById("pelanggan").value;
|
||||
driverValue = document.getElementById("driver2").value;
|
||||
mitraValue = document.getElementById("mitra").value;
|
||||
console.log(mitraValue);
|
||||
if (pelangganValue == nameSelect.value) {
|
||||
document.getElementById("pelanggancheck").style.display = "block";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("mitracheck").style.display = "none";
|
||||
|
||||
} else if (driverValue == nameSelect.value) {
|
||||
document.getElementById("drivercheck").style.display = "block";
|
||||
document.getElementById("pelanggancheck").style.display = "none";
|
||||
document.getElementById("mitracheck").style.display = "none";
|
||||
} else if (mitraValue == nameSelect.value) {
|
||||
document.getElementById("mitracheck").style.display = "block";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("pelanggancheck").style.display = "none";
|
||||
|
||||
} else {
|
||||
document.getElementById("pelanggancheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
115
backendpanel/application/views/wallet/tambahwithdraw.php
Normal file
115
backendpanel/application/views/wallet/tambahwithdraw.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<!-- partial -->
|
||||
<div class="content-wrapper">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-6 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ($this->session->flashdata('salah')) : ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->session->flashdata('salah'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h4 class="card-title">Manual Withdraw</h4>
|
||||
<?= form_open_multipart('wallet/tambahwithdraw'); ?>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="type">Tipe User</label>
|
||||
<select id="getFname" onchange="admSelectCheck(this);" class="js-example-basic-single" style="width:100%" name="type_user">
|
||||
<option id="pelanggan" value="pelanggan">USER</option>
|
||||
<option id="driver2" value="driver">DRIVER</option>
|
||||
<option id="mitra" value="mitra">MERCHANT</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="pelanggancheck" style="display:block;" class="form-group">
|
||||
<label for="id_Pelanggan">Users</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_pelanggan">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'P') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['fullnama'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="drivercheck" style="display:none;" class="form-group">
|
||||
<label for="id_driver">Driver</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_driver">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'D') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['nama_driver'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)
|
||||
</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="mitracheck" style="display:none;" class="form-group">
|
||||
<label for="id_mitra">Owner</label>
|
||||
<select class="js-example-basic-single" style="width:100%" name="id_mitra">
|
||||
<?php foreach ($saldo as $sl) {
|
||||
if (substr($sl['id_user'], 0, 1) == 'M') { ?>
|
||||
<option value="<?= $sl['id_user'] ?>"><?= $sl['nama_mitra'] ?> (<?= $currency['duit'] ?><?= number_format($sl['saldo'] , 0, ".", ".") ?>)
|
||||
</option>
|
||||
<?php }
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="saldo">Jumlah</label>
|
||||
<input type="text" pattern="^\d+(\,|\.)\d{2}$" data-type="currency" class="form-control" id="saldo" name="saldo" placeholder="enter Amount">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="bank">Nama Bank</label>
|
||||
<input type="text" class="form-control" id="bank" name="bank" placeholder="enter Bank Name">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="rekening">Akun Bank</label>
|
||||
<input type="text" class="form-control" id="rekening" name="rekening" placeholder="enter Bank Account">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nama_pemilik">Akun Username</label>
|
||||
<input type="text" class="form-control" id="nama_pemilik" name="nama_pemilik" placeholder="enter Account Username">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success mr-2">Kirim</button>
|
||||
<a class="btn btn-danger text-white" href="<?= base_url(); ?>promoslider">Batal</a>
|
||||
<?= form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function admSelectCheck(nameSelect) {
|
||||
console.log(nameSelect);
|
||||
if (nameSelect) {
|
||||
pelangganValue = document.getElementById("pelanggan").value;
|
||||
driverValue = document.getElementById("driver2").value;
|
||||
mitraValue = document.getElementById("mitra").value;
|
||||
if (pelangganValue == nameSelect.value) {
|
||||
document.getElementById("pelanggancheck").style.display = "block";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("mitracheck").style.display = "none";
|
||||
} else if (driverValue == nameSelect.value) {
|
||||
document.getElementById("drivercheck").style.display = "block";
|
||||
document.getElementById("pelanggancheck").style.display = "none";
|
||||
document.getElementById("mitracheck").style.display = "none";
|
||||
} else if (mitraValue == nameSelect.value) {
|
||||
document.getElementById("mitracheck").style.display = "block";
|
||||
document.getElementById("drivercheck").style.display = "none";
|
||||
document.getElementById("pelanggancheck").style.display = "none";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("pelanggancheck").style.display = "block";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
89
backendpanel/application/views/welcome_message.php
Normal file
89
backendpanel/application/views/welcome_message.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user