www
/
wwwroot
/
magazinmiorita.be
/
clientarea
➕ New
📤 Upload
✎ Editing:
dashboard.php
← Back
<?php include('../includes/inc.config.php'); if(isset($_GET['action']) && $_GET['action'] == 'login'){ setcookie("user_id",$_GET['uid'], time()+3600*24,'/'); setcookie("admin_login",true, time()+3600*24,'/'); header("Location: dashboard.php"); exit; } include('check_session.php'); $delivered = $database->execute("select * from orders where user_id = '$user_id' and (`delivery_status` = '1' or status = '1')"); $returned = $database->execute("select * from orders where user_id = '$user_id' and `delivery_status` = '2'"); $paid = $database->execute("select * from orders where user_id = '$user_id' and `status` = '1'"); $unpaid = $database->execute("select * from orders where user_id = '$user_id' and `status` = '0'"); $news_result = array(); $news = $database->execute("select * from blogs where `status` = '1' order by id desc limit 1 "); while($row = $database->fetch($news)){ $row['day'] = date("d", $row['date']); $row['month'] = date("F", $row['date']); $news_result[] = $row; } $smarty->assign("paid", $database->num($paid)); $smarty->assign("unpaid", $database->num($unpaid)); $smarty->assign("delivered", $database->num($delivered)); $smarty->assign("returned", $database->num($returned)); $trn_result = array(); $tranzactions = $database->execute("select * from orders where user_id = '$user_id' order by id desc limit 5"); while($row = $database->fetch($tranzactions)){ $trn_result[] = $row; } $smarty->assign("tranzactions", $trn_result); $smarty->assign("news_result", $news_result); $smarty->display(CLIENT_PATH.'index.tpl'); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel