-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.php
77 lines (69 loc) · 2.95 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include 'config.php';
session_start();
$appid = $_GET['id'];
$query = "SELECT * FROM apps a, developer d, catergory c where a.app_id=$appid and d.developer_id = a.developer_id and c.cat_id = a.cat_id";
$result = mysqli_query($conn,$query);
$row = mysqli_fetch_assoc($result);
?>
<!DOCTYPE html>
<html>
<head>
<title>Home | AppsyStore</title>
<link rel="stylesheet" href="styles/download.css">
<link rel="stylesheet" href="styles/dashstyle.css">
<script src="https://kit.fontawesome.com/24b485c31a.js" crossorigin="anonymous"></script>
<!--Google Fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@500;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="navcontainer">
<img src="images/logo.png" alt="logo" width="auto" height="50px">
<nav>
<ul>
<li><a href="dashboard.php"><i class="fa-solid fa-house"></i> Dashboard</a></li>
<li><a href="uploadapp.php">Upload App</a></li>
<li><a href="aboutusdev.php">About us</a></li>
<li>
<p>Hello,<?php
if(isset($_SESSION['company_name']))
echo $_SESSION['company_name']; ?>
</p>
</li>
<div class="login">
<?php
if(isset($_SESSION['company_name'])){
echo '<a href="logout.php" id="logout">Log out</a>';
}
?>
</div>
</ul>
</nav>
</div>
<br/>
<table class="downcontainer">
<tr>
<td rowspan="3" class="appimg"><img src="images/<?php echo $row['app_image'] ?>" alt="app image"></td>
<td><h2 class="title"><?php echo $row['app_name'] ?></h2></td>
</tr>
<tr>
<td class="h3"><h3>Company Name :<?php echo $row['company_name'] ?></h3></td>
</tr>
<tr>
<td class="h3"><h3>Category :<?php echo $row['cat_name'] ?></h3></td>
</tr>
<tr>
<td colspan="2"><a href="uploads/<?php echo $row['file_path']?>" class="downloadbtn">Download Now ↓</a></td>
</tr>
<tr>
<td colspan="2"><h4 class="desc"><?php echo $row['description']?></h4></td>
</tr>
</table>
<footer>
<h3>© MLB_07.01.06</h3>
<h4>All Right Reserved</h4>
</footer>
</body>
</html>