Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/escort46.de/public_html/ |
<h3><i class="fa fa-cart-plus mgr-10 profile-icon"></i> Meine Bestellungen</h3>
<div class="mypro_table table-responsive">
<table class="beta table table-striped table-hover" id="adtbl" style="overflow:auto;" >
<thead>
<tr>
<th>ID</th>
<?php if($detect->isMobile()){ ?>
<th>Profiltitel</th>
<?php } ?>
<th>Status</th>
<th>Planen</th>
<th>Tage</th>
<th>Menge</th>
<th>Art</th>
<?php if($detect->isMobile()){ ?>
<?php }else{ ?>
<th>Profiltitel</th>
<?php } ?>
<th>Auftragsdatum</th>
</tr>
</thead>
<tbody>
<?php
$orders = "SELECT payment.*, advertise.profile_tile,advertise.em_id, advertise.category_id, advertise.isApproved from payment
inner join advertise on advertise.id= payment.ad_id
inner join user on user.id= advertise.em_id
WHERE advertise.em_id=".$_SESSION['id']." ORDER BY payment_date DESC";
$ads_orders = mysqli_query($connection,$orders);
while($orderrow=mysqli_fetch_array($ads_orders)){
if($orderrow['plan_id']==1 || $orderrow['plan_id']==2 || $orderrow['plan_id']==3){
$daysqry="SELECT * FROM plans WHERE plan_id='".$orderrow['plan_id']."' AND sub_plan_id='".$orderrow['sub_plan_id']."'";
$days = mysqli_fetch_assoc(mysqli_query($connection,$daysqry));
$days = $days['plan_days'];
}elseif($orderrow['plan_id']==4){
$daysqry="SELECT * FROM boost_plan WHERE plan_id='".$orderrow['plan_id']."' AND sub_plan_id='".$orderrow['sub_plan_id']."'";
$days = mysqli_fetch_assoc(mysqli_query($connection,$daysqry));
$days = $days['plan_days'];
}else{
$days = "FREE";
}
?> <tr>
<td class="center" data-label="ID"><?php echo $orderrow['id']; ?></td>
<?php if($detect->isMobile()){ ?>
<td class="center mob_center">
<a href="<?php echo SUB_URL; ?>/<?php if($orderrow["category_id"] ==5){?>events<?php }else{ ?>user_detail<?php } ?><?php echo $orderrow["ad_id"]."/".friendly_seo_string($orderrow["profile_tile"]);?>" class="search_link" data-placement="top" data-toggle="tooltip" data-original-title="view" target="_blank" title="View Advert">
<?php echo substr($orderrow['profile_tile'],0,50)."..."; ?>
</a>
</td>
<?php } ?>
<td class="center" data-label="Status">
<?php if($orderrow['payment_status'] == "Completed"): ?>
<span class="label_status label label-success" title="Completed">Completed</span>
<?php else:?>
<?php
if($orderrow['payment_status'] == "Pending"){
$status = 'Pending';
}elseif($orderrow['payment_status'] == "Failed"){
$status = 'Failed';
}else{
$status = 'Unknown';
}
?>
<span id="order-status_change_<?php echo $orderrow['id'] ?>" class="status_change_order label_status label label-danger" data-id="<?php echo $orderrow['id'] ?>" data-status-id="<?php echo $orderrow['payment_status'] ?>" data-placement="top" data-toggle="tooltip" data-original-title="<?php echo $orderrow['payment_status']?>" title="<?php echo $status ?>"><?php echo $status ?></span>
<?php endif;?>
</td>
<td class="center" data-label="Plan">
<b>
<?php
if($orderrow['plan_id']==1){
echo "BRONZE";
}elseif($orderrow['plan_id']==2){
echo "SILVER";
}elseif($orderrow['plan_id']==3){
echo "GOLD";
}elseif($orderrow['plan_id']==4){
echo "BOOST";
}else{
echo "FREE";
}
?>
</b>
</td>
<td class="center" data-label="Days"><?php echo $days; ?></td>
<td class="center" data-label="Amount"><?php echo $orderrow['rec_amount']; ?> <?php echo $orderrow['currency']; ?></td>
<td class="center" data-label="Type"><?php echo $orderrow['payment_type']; ?></td>
<?php if($detect->isMobile()){ ?>
<?php }else{ ?>
<td class="center">
<a href="<?php echo SUB_URL; ?>/<?php if($orderrow["category_id"] ==5){?>events<?php }else{ ?>user_detail<?php } ?>/<?php echo $orderrow["ad_id"]."/".friendly_seo_string($orderrow["profile_tile"]);?>" class="search_link" data-placement="top" data-toggle="tooltip" data-original-title="view" target="_blank" title="View Advert">
<?php echo substr($orderrow['profile_tile'],0,50)."..."; ?>
</a>
</td>
<?php } ?>
<td class="center" data-label="Order date"><?php echo date("d-m-Y",strtotime($orderrow['payment_date'])); ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="clearfix"></div>
<div id="orderModal" class="modal fade multi-step" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title step-1" data-step="1">Payment Method</h4>
<h4 class="modal-title step-2" data-step="2">Payment</h4>
<h4 class="modal-title step-3" data-step="3">Payment Information</h4>
</div>
<div class="modal-body row">
<div class="step-1 pa-0" data-step="3">
<div class="paymentCont">
<div class="paymentWrap">
<?php
$setting = array();
$sql_setting=mysqli_query($connection,"select * from payment_setting");
while($sql_setting_row=mysqli_fetch_assoc($sql_setting)){
$setting[$sql_setting_row['setting']] = $sql_setting_row['value'];
}
?>
<input type="hidden" value="3" id="selected_plan_id_order" name="selected_plan_id_order" />
<input type="hidden" value="3" id="selected_sub_plan_id_order" name="selected_sub_plan_id_order" />
<?php if(trim($setting["paypal_mode"])=="1"){ ?>
<input type="hidden" value="2" id="selected_payment_option_order" name="selected_payment_option_order" />
<?php } ?>
<?php if(trim($setting["paypal_mode"])=="0" ){ ?>
<input type="hidden" value="3" id="selected_payment_option_order" name="selected_payment_option_order" />
<?php } ?>
<div class="paymentBtnGroup" data-toggle="buttons">
<!--<div class="col-md-6 col-sm-6 col-xs-12 payment_methods btn paymentMethod">
<div class="method">
<img src="<?php echo MAIN_URL ?>/images/stripe.png" />
<br />
<input type="radio" value="1" id="payment_option_list_1" class="radio payment_option_list" name="payment_option_list" >
<label class="radio__label" for="payment_option_list_1"></label>
</div>
</div>-->
<?php
$col = "col-lg-10 col-lg-offset-1";
if(trim($setting["paypal_mode"])=="1" && trim($setting["bankwire_mode"])=="1"){
$col = "col-md-6 col-sm-6";
}
?>
<?php if(trim($setting["paypal_mode"])=="1"){ ?>
<div class="<?=$col?> col-xs-12 payment_methods btn paymentMethod active">
<div class="method">
<img src="<?php echo MAIN_URL ?>/images/paypal.png" />
<br />
<input type="radio" value="2" id="payment_option_list_2_order" class="radio payment_option_list_order" name="payment_option_list_order" checked>
<label class="radio__label" for="payment_option_list_2_order"></label>
</div>
</div>
<?php } ?>
<?php if(trim($setting["bankwire_mode"])=="1"){ ?>
<div class="<?=$col?> col-xs-12 payment_methods btn paymentMethod <?php if(trim($setting["paypal_mode"])=="0"){ ?> active <?php } ?> ">
<div class="method">
<img src="<?php echo MAIN_URL ?>/images/banktransfer.png"
>
<br />
<input type="radio" value="3" id="payment_option_list_3_order" class="radio payment_option_list_order" name="payment_option_list_order" <?php if(trim($setting["paypal_mode"])=="0"){ ?> checked="checked" <?php } ?>>
<label class="radio__label" for="payment_option_list_3_order"></label>
</div>
</div>
<?php } ?>
<!--<div class="col-md-6 col-sm-6 col-xs-12 payment_methods btn paymentMethod">
<div class="method">
<img src="<?php echo MAIN_URL ?>/images/coinbase-payment-gateway.png" width="180" height="200"/>
<br />
<input type="radio" value="4" id="payment_option_list_4" class="radio payment_option_list" name="payment_option_list" >
<label class="radio__label" for="payment_option_list_4"></label>
</div>
</div>-->
</div>
</div>
</div>
</div>
<div class="step-2 pa-0" id="final_payment_order" data-step="2"></div>
<div class="step-3 pa-0" id="finishing_order" data-step="3"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default step step-2 btn-prev pull-left" data-step="2" onclick="sendEvent('#orderModal', 1)">Back</button>
<button type="button" id="btn_final_step_order" class="btn btn-custom step step-1" data-step="1" onclick="sendEvent('#orderModal', 2)">Next</button>
<!--<button type="button" class="btn btn-default step step-5 btn-prev pull-left" data-step="5" onclick="sendEvent('#myModal', 4)">Back</button>-->
</div>
</div>
</div>
</div>
<script src="<?php echo MAIN_URL ?>/src/js/multi-step-modal.js"></script>
<script type="text/javascript">
$('#orderModal').on('hidden.bs.modal', function (e) {
sendEvent('#orderModal','1');
$('#final_payment_order').html('');
});
$(document.body).on('click','.status_change_order',function(e){
e.preventDefault();
$('#boost_output').html(loader_div);
order_id = $(this).data('id');
order_status = $(this).data('status-id');
if(order_status=="Completed" ){
return false;
}
$.ajax({
url:'<?php echo SUB_URL ?>/services_html/order_pay',
type:'post',
data:{order_id:order_id, order_status:order_status},
success:function (data){
if(data == '2'){
$('#payment_option_list_2_order').attr("checked", "checked");
$('#selected_payment_option_order').val("2");
}else{
//bankwire mode
$('#payment_option_list_3_order').attr("checked", "checked");
$('#selected_payment_option_order').val("3");
}
}
});
$('#orderModal').modal({backdrop: 'static', keyboard: false}, 'toggle' );
$('.status_change_order').unbind();
});
//orders
$(document.body).on('change','.payment_option_list_order',function(e){
if ($(this).is(':checked')){
$('#selected_payment_option_order').val($(this).val());
}
});
$(document.body).on('click','#btn_final_step_order',function(e){
e.preventDefault();
$('#final_payment_order').html(loader_div);
var payment_option = $('#selected_payment_option_order').val();
if(payment_option != 1 && payment_option != 2 && payment_option != 3 && payment_option != 4){
payment_option = 1;
$('#selected_payment_option_order').val(payment_option);
}
$.ajax({
url:'<?php echo SUB_URL ?>/services_html/order_payment_system',
type:'post',
data:{payment_option:payment_option,order_id:order_id},
success:function (data){
//console.log(data);
if(data != ''){
$('#final_payment_order').html(data);
if(payment_option == 2){
$('#submit_payment_order').trigger('click');
$('#final_payment_order').html(loader_div);
}
}
}
});
});
//Added by shail for bankwire extra steps 5
$(document.body).on('click','#btn_finishing_order',function(e){
e.preventDefault();
$('#finishing_order').html(loader_div);
var payment_option = $('#selected_payment_option_order').val();
if(payment_option != 1 && payment_option != 2 && payment_option != 3 && payment_option != 4){
payment_option = 1;
$('#selected_payment_option_order').val(payment_option);
}
$.ajax({
url:'<?php echo SUB_URL ?>/services_html/order_payment_system',
type:'post',
data:{payment_option:payment_option,order_id:order_id, mode:"process",},
success:function (data){
//console.log(data);
if(data != ''){
$('#finishing_order').html(data);
}
}
});
});
</script>