| Server IP : 127.0.0.1 / Your IP : 216.73.216.48 Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64 User : win 10 ( 0) PHP Version : 8.2.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/xamppkk/htdocs-coblaa/cranepay/ |
Upload File : |
<html>
<?php
include('db.php');
session_start();
if(isset($_SESSION['id']))
{
$user_id = $_SESSION['id'];
}
////////////////////////////////////////////////////////////////////////////////////
?>
<head>
<title>Stock</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/order.css" />
</head>
<body onclick="get_focused();" >
<div class="main_home_tile" ><img src="main_icon/back_btn.png" onclick="history.back()" class="main_icon_img" />Order List</div>
<div class="contianer_div" >
<div class="order_lebal" >
<span class="sub_order_lebal" >Id no.</span>
<span class="sub_order_lebal" >Amount</span>
<span class="sub_order_lebal" >Profits</span>
<span class="sub_order_lebal" >Days</span>
</div>
<?php
$get_order ="select * from pending_ordertb where user_id='$user_id'";
$run_order = mysqli_query($con,$get_order );
while($row_order = mysqli_fetch_array($run_order ))
{
$order_id = $row_order['id'];
$state_amt = $row_order['amount'];
$profit_amt = $row_order['exp_profit'];
$duration = $row_order['duration'];
?>
<div class="order_out" >
<span class="sub_order_out" ><?php echo"$order_id"; ?></span>
<span class="sub_order_out" ><?php echo"$state_amt/="; ?></span>
<span class="sub_order_out" ><?php echo"$profit_amt/="; ?></span>
<span class="sub_order_out" ><?php echo"$duration"; ?> </span>
</div>
<?php } ?>
</div>
<div class="main_button_div" >
<a href="index"><div class="main_button" >
<img src="main_icon/home.png" class="down_btn_icon_img" />
<div class="down_btn" >Home</div>
</div></a>
<a href="order"><div class="main_button_mid" >
<img src="main_icon/invest3.jpg" class="down_btn_icon_img" />
<div class="down_btn" >Invest</div>
</div></a>
<a href="dash"><div class="main_button_right" >
<img src="main_icon/profile3.jpg" class="down_btn_icon_img" />
<div class="down_btn" >Profile</div>
</div>
</div></a>
<script>
function show_more_detail(smd)
{
invest_detail_div1 = 'invest_detail_div'+smd;
clear_invest_btn1 = 'clear_invest_btn'+smd;
show_invest_btn1 = 'show_invest_btn'+smd;
document.getElementById(invest_detail_div1).style.display="block";
document.getElementById(clear_invest_btn1).style.display="block";
document.getElementById(show_invest_btn1).style.display="none";
//alert(4);
}
function clear_more_detail(cmd)
{
invest_detail_div1 = 'invest_detail_div'+cmd;
clear_invest_btn1 = 'clear_invest_btn'+cmd;
show_invest_btn1 = 'show_invest_btn'+cmd;
document.getElementById(invest_detail_div1).style.display="none";
document.getElementById(clear_invest_btn1).style.display="none";
document.getElementById(show_invest_btn1).style.display="block";
//alert(4);
}
function close_all_open_div()
{
document.getElementById(invest_detail_div1).style.display="none";
document.getElementById(clear_invest_btn1).style.display="none";
document.getElementById(show_invest_btn1).style.display="block";
}
</script>
<body>
</html>