https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/views/account/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/views/account/claim.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!--make some space gap on top with menu-->
<div class="banner" style="padding-top: 30px;">
</div>
<style>
	#shipping-country-container {
		display: none;
	}
</style>
<div class="container margin_top_48px margin_bottom_48px">
	<div class="row" style="padding-bottom:50px;">
		<div class="col-sm-2" style="border-right:1px solid #ccc;">
			<?= Modules::run('myaccount_menu'); ?>
		</div><!-- end col-sm-2-->

		<div class="col-sm-10">
			<div class="row form-group">
				<div class="col-sm-12">
					<h4><?= strtoupper(lang('claim')); ?></h4>
					<?= $this->session->flashdata('success'); //to display success message 
					?>
					<?= $this->session->flashdata('success1'); //to display success message 
					?>
				</div><!--end class="col-sm-4" -->
			</div><!-- end class="row"-->

			<!-- Form Start -->
			<?php echo form_open('account/claim_pengajuan'); ?>
			<div id="order_idBlock" class="row form-group">
				<div class="col-sm-3">
					<label><?= lang('no_order_choice'); ?><sup>*</sup></label>
				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">
					<select id="order_id" name="order_id" class="form-control" required>
						<option value="">Choose Order ID</option>
						<?php if (isset($get_order_warranty_validation)) : ?>
							<?php foreach ($get_order_warranty_validation as $order_id_list) : ?>
								<option value="<?= $order_id_list->id_orders; ?>"><?= $order_id_list->id_orders; ?> - <?= $order_id_list->order_date; ?></option>
							<?php endforeach; ?>
						<?php endif; ?>
					</select><span id="loadingSpinner3"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span>
					<?php echo '<span style="font-size:10px;">' . form_error('order_id') . '</span>'; ?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->


			<div id="order_detail_idBlock" class="row form-group">
				<div class="col-sm-3">
					<label><?= lang('item_choice'); ?><sup>*</sup></label>
				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">
					<select id="order_detail_id" name="order_detail_id" class="form-control" required>
						<option value="">Choose Item </option>
						<?php if (isset($order_details)) : ?>
							<?php foreach ($order_details as $order_detail) : ?>
								<option value="<?= $order_detail->id_orders_detail; ?>"><?= ucwords($order_detail->orders_id); ?>-<?= ucwords($order_detail->attributes); ?>-<?= ucwords($order_detail->item_name); ?></option>
							<?php endforeach; ?>
						<?php endif; ?>
					</select> <span id="loadingSpinner4"><img style="width:30px; height:auto;" src="<?= base_url('assets/frontend/img/spinner.gif'); ?>"></span>
					<?php echo '<span style="font-size:10px;">' . form_error('order_id_detail') . '</span>'; ?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->

			<div class="row form-group">
				<input id="item_name" name="item_name" type="text" value="<?= ucwords($order_details->item_name); ?>" hidden>
				<input id="order_date" type="text" value="<?= ucwords($get_order_warranty_validation->order_date); ?>" hidden>
			</div><!-- end class="row"-->

			<div class="row form-group">

				<div class="col-sm-3">
					<label><?= ucwords(lang('reason')); ?><sup>*</sup></label>
				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">
					<?php
					$data = array(
						'name'        => 'reason_pengajuan',
						'id'          => 'reason',
						'class'		=> 'form-control',
						'required'    => 'required'
					);
					echo form_input($data);
					echo '<span style="font-size:10px;">' . form_error('reason_pengajuan') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->


			<div class="row form-group">
				<div class="col-sm-3">
					<label><?= lang('proof'); ?><sup>*</sup></label>
				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">
					<?php
					$data = array(
						'name'        => 'link_video',
						'id'          => 'link',
						'class'		=> 'form-control',
						'required'    => 'required'
					);
					echo form_input($data);
					echo '<span style="font-size:10px;">' . form_error('link_video') . '</span>';
					?>
				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->



			<div class="row form-group">
				<div class="col-sm-3">
					<p><sup>*</sup> <?= lang('required_fields'); ?></p>
				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">

				</div><!--end class="col-sm-8" -->
			</div><!-- end class="row"-->

			<div class="row form-group">
				<div class="col-sm-3">

				</div><!--end class="col-sm-4" -->
				<div class="col-sm-9">
					<input type="submit" name="submit_pengajuan" value="<?= strtoupper(lang('submit_claim')); ?>" class="form-control" style="background:<?= $primary_colortheme; ?>; color: white;" />
				</div><!--end class="col-sm-9" -->
			</div><!-- end class="row"-->

			<?php echo form_close(); ?>
			<table class="table table-striped">
				<thead>
					<tr>
						<th>ID Claim</th>
						<th>Order Date</th>
						<th>Item</th>
						<th>Reason Claim</th>
						<th>Link Bukti</th>
						<th>Status</th>
						<th>Keterangan</th>
					</tr>
				</thead>
				<tbody>
					<?php foreach ($claim_list as $claim) : ?>
						<tr>
							<td><?php echo $claim->id_claim; ?></td>
							<td><?php echo $claim->order_date; ?></td>
							<td><?php echo $claim->item_name; ?></td>
							<td><?php echo $claim->reason_claim; ?></td>
							<td style="max-width: 150px; word-wrap: break-word; white-space: normal;"><a href="<?php echo $claim->link_bukti; ?>"><?php echo $claim->link_bukti; ?></a></td>
							<td>
								<?php
								if ($claim->status == 1) {
									echo "Proses Analisa";
								} elseif ($claim->status == 2) {
									echo "Disetujui";
								} elseif ($claim->status == 3) {
									echo "Ditolak";
								} elseif ($claim->status == 4) {
									echo "Terkirim";
								} elseif ($claim->status == 5) {
									echo "Terkirim";
								} elseif ($claim->status == 6) {
									echo "Disetujui";
								}
								?>
								<?php if ($claim->status == 2) : ?>
									<?php echo form_open('account/claim_payment_confirmation'); ?>
									<input type="hidden" name="id_claim" value="<?= $claim->id_claim; ?>">

									<?php if ($claim->payment_confirm == 1) : ?>

										<input disable=type="submit" name="" value="<?= strtoupper(lang('already_confirm')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px; " disabled>

									<?php else : ?>

										<input type="submit" name="claim_confirm_payment" value="<?= strtoupper(lang('confirm')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px; ">

									<?php endif; ?>
									<?php echo form_close(); ?>
								<?php endif ?>
							</td>

							<td style="text-align: center;"><?php echo ($claim->keterangan != '') ? $claim->keterangan : '-'; ?></td>
						</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
		</div><!-- end col-sm-8-->

	</div><!-- end row-->
</div><!-- end container -->

<script>
	$(document).ready(function() {
		// ketika order_id dipilih
		$('#order_id').on('change', function() {
			var order_id = $(this).val(); // ambil nilai dari order_id yang dipilih
			if (order_id != '') {
				// hapus semua opsi pada order_detail_id
				$('#order_detail_id').find('option').not(':first').remove();
				// ambil data item yang sesuai dengan order_id yang dipilih
				$.ajax({
					url: 'get_order_details/' + order_id, // ganti dengan URL controller yang sesuai
					type: 'GET',
					dataType: 'json',
					success: function(response) {
						// tambahkan opsi pada order_detail_id sesuai dengan data yang diterima dari server
						$.each(response, function(index, data) {
							$('#order_detail_id').append('<option value="' + data.id_orders_detail + '">' + data.orders_id + '-' + data.item_name + '-' + data.attributes + '</option>');
						});
					}
				});
			} else {
				// jika order_id tidak dipilih, hapus semua opsi pada order_detail_id
				$('#order_detail_id').find('option').not(':first').remove();
			}
		});
	});

	$(document).ready(function() {

		$('#loadingSpinner1').hide();
		$('#loadingSpinner2').hide();
		$('#loadingSpinner3').hide();
		$('#loadingSpinner4').hide();

		$('#province').change(function() {
			var id_province = $(this).val();
			load_district_ajax(id_province);
		});

		$('#shipping_province').change(function() {
			var id_shipping_province = $(this).val();
			load_shipping_district_ajax(id_shipping_province);
		});

		$('#district').change(function() {
			var id_district = $(this).val();
			load_subdistrict_ajax(id_district);
		});

		$('#shipping_district').change(function() {
			var id_shipping_district = $(this).val();
			load_shipping_subdistrict_ajax(id_shipping_district);
		});

		function load_district_ajax(id_province) {

			$('#loadingSpinner1').show();
			$.ajax({
				'url': '<?= base_url(); ?>' + 'ajax' + '/ajax_get_district',
				'type': 'POST',
				'data': {
					'id_province': id_province,
					'<?= $this->security->get_csrf_token_name(); ?>': '<?= $this->security->get_csrf_hash(); ?>'
				},
				'success': function(data) {
					if (data) {
						/*---success----*/
						$('#district').html(data);
						$('#loadingSpinner1').hide();
					};
				}
			});
		}

		function load_subdistrict_ajax(id_district) {

			$('#loadingSpinner2').show();

			$.ajax({
				'url': '<?= base_url(); ?>' + 'ajax' + '/ajax_get_subdistrict',
				'type': 'POST',
				'data': {
					'id_district': id_district,
					'<?= $this->security->get_csrf_token_name(); ?>': '<?= $this->security->get_csrf_hash(); ?>'
				},
				'success': function(data) {
					if (data) {
						/*---success----*/
						$('#subdistrict').html(data);
						$('#loadingSpinner2').hide();
					};
				}
			});
		}

		function load_shipping_district_ajax(id_shipping_province) {

			$('#loadingSpinner3').show();

			$.ajax({
				'url': '<?= base_url(); ?>' + 'ajax' + '/ajax_get_shipping_district',
				'type': 'POST',
				'data': {
					'id_shipping_province': id_shipping_province,
					'<?= $this->security->get_csrf_token_name(); ?>': '<?= $this->security->get_csrf_hash(); ?>'
				},
				'success': function(data) {

					var container = $('#shipping_district');

					if (data) {
						container.html(data);
						$('#loadingSpinner3').hide();
					};
				}
			});
		}

		function load_shipping_subdistrict_ajax(id_shipping_district) {

			$('#loadingSpinner4').show();

			$.ajax({
				'url': '<?= base_url(); ?>' + 'ajax' + '/ajax_get_shipping_subdistrict',
				'type': 'POST',
				'data': {
					'id_shipping_district': id_shipping_district,
					'<?= $this->security->get_csrf_token_name(); ?>': '<?= $this->security->get_csrf_hash(); ?>'
				},
				'success': function(data) {
					if (data) {
						/*---success----*/
						$('#shipping_subdistrict').html(data);
						$('#loadingSpinner4').hide();
					};
				}
			});
		}

	});
</script>

https://t.me/RX1948 - 2025