<?php
require_once('../database/header.php');
require_once('../database/function.php');

if($userdata['status']=='paywait'){
echo '<script>
window.location = "paywait.php"
</script>
';	
}


// Handle Gateway Toggle
if (isset($_POST['toggle_gateway'])) {
    $g_name = $_POST['gateway_name'];
    $new_status = $_POST['new_status'];
    $g_user = $userdata['username'];
    
    $upd_g = $conn->prepare("UPDATE add_merchant SET status = ? WHERE user = ? AND merchant_name = ?");
    if ($upd_g->execute([$new_status, $g_user, $g_name])) {
        echo '<script>
            setTimeout(function() {
                alert("Gateway status updated to ' . $new_status . '");
                window.location.href = "dashboard.php";
            }, 100);
        </script>';
    }
}
?>
<div class="main-panel">
<div class="content-wrapper">
    
<div class="row">
<div class="col-md-12 grid-margin">
<div class="d-flex justify-content-between flex-wrap">
<div class="d-flex align-items-end flex-wrap">
<div class="mr-md-3 mr-xl-5">
<h2>欢迎回来，</h2>
<!--<p class="mb-md-0">IP : <?php echo $user_ip; ?></p> -->
</div>
</div>

<div class="d-flex justify-content-between align-items-end flex-wrap">
    
<form  method="POST" action="">
<input type="hidden" name="merchant_id" value="<?php echo isset($merchant_id) ? $merchant_id : ''; ?>">
<input type="hidden" name="access_token" value="<?php echo $token; ?>">
<!-- Your Button -->
<button type="submit" class="btn btn-light bg-white btn-icon mr-3 mt-2 mt-xl-0">
<i class="mdi mdi-qrcode-scan text-muted"></i> 
</button>
</form>                 
                  
<form  method="POST" action="">
<input type="hidden" name="access_token" value="<?php echo $token; ?>">
<!-- Your Button -->
<button type="submit" class="btn btn-light bg-white btn-icon mr-3 mt-2 mt-xl-0">
<i class="mdi mdi-account-star text-muted"></i> 
</button>
</form>

<button href="add-merchant.php" type="button" class="btn btn-light bg-white btn-icon mr-3 mt-2 mt-xl-0" onclick="window.location.href='add-merchant.php';">
<i class="mdi mdi-plus text-muted"></i>
</button>
<button class="btn btn-primary mt-2 mt-xl-0" onclick="window.location.href='bharatpe-transactions.php';">实时报告</button>
</div>
</div>
</div>
</div>
        
          
<div class="row">
<div class="col-md-12 grid-margin stretch-card ">
<div class="card">
<div class="card-body dashboard-tabs p-0 shadow">
<ul class="nav nav-tabs px-4" role="tablist">
    
<li class="nav-item">
<a class="nav-link active" id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">今日交易</a>
</li>

<li class="nav-item">
<a class="nav-link" id="sales-tab" data-toggle="tab" href="#sales" role="tab" aria-controls="sales" aria-selected="false">本月交易</a>
</li>

<li class="nav-item">
<a class="nav-link" id="purchases-tab" data-toggle="tab" href="#purchases" role="tab" aria-controls="purchases" aria-selected="false">本年交易</a>
</li>

<li class="nav-item">
<a class="nav-link" id="bharatpe-tab" data-toggle="tab" href="#bharatpe" role="tab" aria-controls="bharatpe" aria-selected="false">总交易</a>
</li>     

<li class="nav-item">
<a class="nav-link" id="session-tab" data-toggle="tab" href="#session" role="tab" aria-controls="session" aria-selected="false">网关状态</a>
</li>                     
</ul>

                      
                      
<!-----Today Transactions ----->

<div class="tab-content py-0 px-0">
 <div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
<div class="d-flex flex-wrap justify-content-xl-between">

<!-----BOX START ----->
<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-check-circle-outline mr-3 icon-lg text-success"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">成功</small>
<h5 class="mr-2 mb-0"> 
₹ <?php
$start_of_day = date('Y-m-d 00:00:00');  // Start of today (midnight)
$end_of_day = date('Y-m-d 23:59:59');    // End of today (just before midnight)
$sql = $conn->prepare("SELECT COALESCE(SUM(amount), 0) AS total_amount FROM create_orders WHERE txn_status = 'SUCCESS' AND date BETWEEN ? AND ?");
$sql->execute([$start_of_day, $end_of_day]);
$result = $sql->fetch(PDO::FETCH_ASSOC);
echo $result['total_amount'];
?>                          
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-autorenew mr-3 icon-lg text-info"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">待处理</small>
<h5 class="mr-2 mb-0">
₹ <?php
$start_of_day = date('Y-m-d 00:00:00');  // Start of today (midnight)
$end_of_day = date('Y-m-d 23:59:59');    // End of today (just before midnight)
$sql = $conn->prepare("SELECT COALESCE(SUM(amount), 0) AS total_amount FROM create_orders WHERE txn_status = 'PENDING' AND date BETWEEN ? AND ?");
$sql->execute([$start_of_day, $end_of_day]);
$result = $sql->fetch(PDO::FETCH_ASSOC);
echo $result['total_amount'];
?>
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-close-circle-outline mr-3 icon-lg text-danger"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">失败</small>
<h5 class="mr-2 mb-0">
₹ <?php
$start_of_day = date('Y-m-d 00:00:00');  // Start of today (midnight)
$end_of_day = date('Y-m-d 23:59:59');    // End of today (just before midnight)
$sql = $conn->prepare("SELECT COALESCE(SUM(amount), 0) AS total_amount FROM create_orders WHERE txn_status = 'FAILED' AND date BETWEEN ? AND ?");
$sql->execute([$start_of_day, $end_of_day]);
$result = $sql->fetch(PDO::FETCH_ASSOC);
echo $result['total_amount'];
?>                            
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-bank mr-3 icon-lg text-warning"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">成功订单 </small>
<h5 class="mr-2 mb-0">

<?php
$start_of_day = date('Y-m-d 00:00:00');  // Start of today (midnight)
$end_of_day = date('Y-m-d 23:59:59');    // End of today (just before midnight)
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE txn_status ='SUCCESS' AND date BETWEEN ? AND ?");
$sql->execute([$start_of_day, $end_of_day]);
$result = $sql->fetchColumn();
echo $result;
?> 
</h5>
</div>
</div>

<div class="d-flex py-3 border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-server-security mr-3 icon-lg text-primary"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">总订单</small>
<h5 class="mr-2 mb-0">
<?php
$currentYear = date('Y');
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE YEAR(date) = ?");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?>
    
</h5>
</div>
</div>
<!-----BOX END ----->

</div>
</div>
                    
<!-----Month Transactions ----->

<div class="tab-pane fade" id="sales" role="tabpanel" aria-labelledby="sales-tab">
<div class="d-flex flex-wrap justify-content-xl-between">

<!-----BOX START ----->

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-check-all mr-3 icon-lg text-success"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Success</small>
<h5 class="mr-2 mb-0">
₹ <?php
$currentMonthYear = date('Y-m');
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='SUCCESS' AND DATE_FORMAT(date, '%Y-%m') = ?
");
$sql->execute([$currentMonthYear]);
$result = $sql->fetchColumn();
echo $result;
?> 
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-refresh mr-3 icon-lg text-info"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Pending</small>
<h5 class="mr-2 mb-0">
₹ <?php
$currentMonthYear = date('Y-m');
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='PENDING' AND DATE_FORMAT(date, '%Y-%m') = ?
");
$sql->execute([$currentMonthYear]);
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>
                        
<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-close mr-3 icon-lg text-danger"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Failed</small>
<h5 class="mr-2 mb-0">
₹ <?php
$currentMonthYear = date('Y-m');
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='FAILED'  AND DATE_FORMAT(date, '%Y-%m') = ?
");
$sql->execute([$currentMonthYear]);
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>
                        
<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-currency-usd mr-3 icon-lg text-warning"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Success Order</small>
<h5 class="mr-2 mb-0">
<?php
$currentMonth = date('Y-m'); // Get current year and month (e.g., '2023-10')
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE txn_status ='Success'  AND DATE_FORMAT(date, '%Y-%m') = ?");
$sql->execute([$currentMonth]); // Corrected line
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>
                        
<div class="d-flex py-3 border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-server-security mr-3 icon-lg text-primary"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Total Order</small>
<h5 class="mr-2 mb-0">
<?php
$currentMonth = date('Y-m'); // Get current year and month (e.g., '2023-10')
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE  DATE_FORMAT(date, '%Y-%m') = ?");
$sql->execute([$currentMonth]); // Corrected line
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>
 <!-----BOX END----->
</div>
</div>
                    
                    
<!-----Year Transactions ----->
                    
<div class="tab-pane fade" id="purchases" role="tabpanel" aria-labelledby="purchases-tab">
<div class="d-flex flex-wrap justify-content-xl-between">
          
 <!-----BOX START----->                          
<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-checkbox-marked mr-3 icon-lg text-success"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Success</small>
<h5 class="mr-2 mb-0"> 
₹ <?php
$currentYear = date('Y'); // Get the current year
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='Success' AND DATE_FORMAT(date, '%Y') = ?
");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?> 
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-clock-fast mr-3 icon-lg text-info"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Pending</small>
<h5 class="mr-2 mb-0"> 
₹ <?php
$currentYear = date('Y'); // Get the current year
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='PENDING' AND DATE_FORMAT(date, '%Y') = ?
");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?> 
</h5>
</div>
</div>

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-close-box mr-3 icon-lg text-danger"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Failed</small>
<h5 class="mr-2 mb-0"> 
₹ <?php
$currentYear = date('Y'); // Get the current year
$sql = $conn->prepare("select coalesce(sum(amount), 0) AS total_amount from create_orders WHERE txn_status ='FAILED'AND DATE_FORMAT(date, '%Y') = ?
");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?> 
</h5>
</div>
</div>
                        
<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-currency-usd mr-3 icon-lg text-warning"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Total Order</small>
<h5 class="mr-2 mb-0">
<?php
$currentYear = date('Y');
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE txn_status ='Success'  AND YEAR(date) = ?");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>

<div class="d-flex py-3 border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-server-security mr-3 icon-lg text-primary"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">Session</small>
<h5 class="mr-2 mb-0">
<?php
$currentYear = date('Y');
$sql = $conn->prepare("SELECT COUNT(*) FROM create_orders WHERE txn_status ='Success'  AND YEAR(date) = ?");
$sql->execute([$currentYear]);
$result = $sql->fetchColumn();
echo $result;
?>
</h5>
</div>
</div>
<!-----BOX END ----->
</div>
</div>
                    

<!-----End Year Transactions ----->

    
<!-----Total Transactions ----->  

<div class="tab-pane fade" id="bharatpe" role="tabpanel" aria-labelledby="bharatpe-tab">
<div class="d-flex flex-wrap justify-content-xl-between">

<div class="d-flex border-md-right flex-grow-1 align-items-center justify-content-center p-3 item">
<i class="mdi mdi-check-decagram mr-3 icon-lg text-danger"></i>
<div class="d-flex flex-column justify-content-around">
<small class="mb-1 text-muted">总交易 (所有网关)</small>
<h5 class="mr-2 mb-0"> 
₹ <?php 
    $sql = $conn->prepare("SELECT COALESCE(SUM(amount), 0) FROM create_orders WHERE txn_status = 'SUCCESS'");
    $sql->execute();
    echo $sql->fetchColumn();
?> </h5>
</div>
</div>
  
</div>
</div>
<!-----End Total Transactions ----->     
     
     
<!-----Gateway Status ----->           
<div class="tab-pane fade" id="session" role="tabpanel" aria-labelledby="session-tab">
<div class="d-flex flex-wrap justify-content-start">

<!-- RSPay Box -->
<div class="d-flex border border-light p-3 m-2 align-items-center" style="background:#fff; border-radius:10px; min-width: 250px;">
    <div class="mr-3">
       <img src="../assets/logo/icon.png" alt="pay2inr" class="rounded-circle" width="50" height="50">
    </div>
    <div class="d-flex flex-column">
        <h6 class="mb-1">pay2inr (Active)</h6>
        
        <?php
        // Self-Post Handler logic would theoretically go at top of file, but putting button form here
        // Checking current status
        $g_merchant_name = "RSPay"; 
        $g_user = $userdata['username'];
        $sql = $conn->prepare("SELECT status FROM add_merchant WHERE user = ? AND merchant_name = ?");
        $sql->execute([$g_user, $g_merchant_name]);
        $g_status = $sql->fetchColumn();
        $is_active = ($g_status == 'Active');
        ?>
        
        <form method="POST" action="">
            <input type="hidden" name="gateway_name" value="RSPay">
            <input type="hidden" name="new_status" value="<?php echo $is_active ? 'Inactive' : 'Active'; ?>">
            <button type="submit" name="toggle_gateway" class="btn btn-sm <?php echo $is_active ? 'btn-danger' : 'btn-success'; ?> mt-1">
                <?php echo $is_active ? 'Deactivate' : 'Activate'; ?>
            </button>
        </form>
    </div>
</div>

</div>
</div>
<!-----End Gateway Status  ----->           

                    
</div>
</div>
</div>
</div>
</div>

<!-----End Count  ----->    

<div class="row">
<div class="col-md-3 grid-margin">
<div class="card d-flex align-items-center bg-primary">
<div class="card-body">
<div class="d-flex flex-row align-items-center">
<i class="mdi mdi-account-convert mr-3 icon-lg text-white"></i>
<div class="ms-3">
<h6 class="text-white">待审用户</h6>
<p class="mt-2 text-white card-text"> 
<?php
$sql = $conn->prepare("select count(*) from loginusers WHERE status = ?");
$sql->execute(['pending']);
$result = $sql->fetchColumn();
echo $result;
?>
</p>
</div>
</div>
</div>
</div>
</div>

<div class="col-md-3 grid-margin">
<div class="card d-flex align-items-center bg-success">
<div class="card-body">
<div class="d-flex flex-row align-items-center">
<i class="mdi mdi-code-greater-than-or-equal mr-3 icon-lg text-white"></i>
<div class="ms-3">
<h6 class="text-white">API合作伙伴</h6>
<p class="mt-2 text-white card-text">	
<?php
$sql = $conn->prepare("select count(*) from loginusers WHERE usertype = ?");
$sql->execute(['apipartner']);
$result = $sql->fetchColumn();
echo $result;
?>
</p>
</div>
</div>
</div>
</div>
</div>

<div class="col-md-3 grid-margin">
<div class="card d-flex align-items-center bg-danger">
<div class="card-body">
<div class="d-flex flex-row align-items-center">
<i class="mdi mdi-account mr-3 icon-lg text-white"></i>
<div class="ms-3">
<h6 class="text-white">白标用户</h6>
<p class="mt-2 text-white card-text">	
<?php
$sql = $conn->prepare("select count(*) from loginusers WHERE usertype = ?");
$sql->execute(['wluser']);
$result = $sql->fetchColumn();
echo $result;
?>
</p>
</div>
</div>
</div>
</div>
</div>

<div class="col-md-3 grid-margin">
<div class="card d-flex align-items-center bg-info">
<div class="card-body">
<div class="d-flex flex-row align-items-center">
<i class="mdi mdi-clock-alert-outline mr-3 icon-lg text-white"></i>
<div class="ms-3">
<h6 class="text-white">上次同步</h6>
<p class="mt-2 text-white card-text">
<?php
$sql = $conn->prepare("SELECT last_sync FROM add_merchant WHERE user = ?");
$sql->execute([$userdata['username']]);
$result = $sql->fetchColumn();
if ($result) {
echo $result;
} else {
echo "会话过期.";
}
?>
</p>
</div>
</div>
</div>
</div>
</div>            
</div>


<!----- Recent Transactions -------->

<div class="row">
<div class="col-md-12 stretch-card ">
<div class="card">
<div class="card-body">
<p class="card-title">近期交易</p>

<div class="table-responsive">
<table id="recent-purchases-listing" class="table">
<thead>
<tr>
<th>用户</th>
<th>日期</th>
<th>订单号</th>
<th>金额</th>
<th>应用</th>
<th>商户</th>
<th>UTR</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<?php if($userdata['usertype']=="mainadmin") {?>	  				  
<?php
$stmt = $conn->prepare("select * from create_orders ORDER BY `id` DESC LIMIT 5");
$stmt->execute();
$sl=1;
while($row=$stmt->fetch()) {

$status = '<span class="badge badge-info">Pending</span>';
if($row['txn_status']== 'SUCCESS'){
$status = '<span class="badge badge-success">Success</span>';    
}
if($row['txn_status']== 'PENDING'){
$status = '<span class="badge badge-info">Pending</span>';    
}
if($row['txn_status']== 'FAILED'){
$status = '<span class="badge badge-danger">Failed</span>';    
}

$app_name = (isset($row['received_from']) ? strtoupper($row['received_from']) : '');
if($app_name == 'RSPAY') $app_name = 'pay2inr';

$mer_name = (isset($row['merchant_name']) ? strtoupper($row['merchant_name']) : '');
if($mer_name == 'RSPAY') $mer_name = 'pay2inr';

echo "<tr>
<td style='display:none;'>".$sl."</td>
<td class='text-dark'>".$row['user']."</td>
<td class='text-dark'>".(isset($row['date']) ? strtoupper($row['date']) : '')."</td>
<td class='text-dark'>".$row['orderid']."</td>
<td style='font-size:13px' class='text-dark'>Rs. ".(isset($row['amount']) ? strtoupper($row['amount']) : '')."</td>
<td style='font-size:13px' class='text-dark'>".$app_name."</td>
<td style='font-size:13px' class='text-dark'>".$mer_name."</td>
<td style='font-size:13px' class='text-dark'>".(isset($row['utr_number']) ? strtoupper($row['utr_number']) : '')."</td>
<td class='text-primary'><i>".$status."</i></td>
</tr>";
$sl++;}							
?>					
<?php
}else{
?>
<?php
$stmt = $conn->prepare("select * from create_orders WHERE user = ? ORDER BY `id` DESC LIMIT 5");
$stmt->execute([$userdata['username']]);
$sl=1;
while($row=$stmt->fetch()) {
$status = '<span class="badge badge-info">Pending</span>';
if($row['txn_status']== 'SUCCESS'){
$status = '<span class="badge badge-success">Success</span>';    
}
if($row['txn_status']== 'PENDING'){
$status = '<span class="badge badge-info">Pending</span>';    
}
if($row['txn_status']== 'FAILED'){
$status = '<span class="badge badge-danger">Failed</span>';    
}

$app_name = (isset($row['received_from']) ? strtoupper($row['received_from']) : '');
if($app_name == 'RSPAY') $app_name = 'pay2inr';

$mer_name = (isset($row['merchant_name']) ? strtoupper($row['merchant_name']) : '');
if($mer_name == 'RSPAY') $mer_name = 'pay2inr';

echo "<tr>
<td style='display:none;'>".$sl."</td>
<td class='text-dark'>".$row['user']."</td>
<td class='text-dark'>".(isset($row['date']) ? strtoupper($row['date']) : '')."</td>
<td class='text-dark'>".$row['orderid']."</td>
<td style='font-size:13px' class='text-dark'>Rs. ".(isset($row['amount']) ? strtoupper($row['amount']) : '')."</td>
<td style='font-size:13px' class='text-dark'>".$app_name."</td>
<td style='font-size:13px' class='text-dark'>".$mer_name."</td>
<td style='font-size:13px' class='text-dark'><b>".(isset($row['utr_number']) ? strtoupper($row['utr_number']) : '')."</b></td>
<td class='text-primary'><i>".$status."</i></td>
</tr>";
$sl++;}							
?>
<?php
}
?>

                        
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
        
<?php
require_once('../database/footer.php');
?>
