forked from codemaster05330/free-apps-store-system
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeveloperContent.php
94 lines (90 loc) · 2.83 KB
/
developerContent.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<div id="developerContent">
<?php
include_once('./includes/common.functions.php');
if(!isset($_GET['id']))
{
header("location:./index.php");
exit();
}
else
{
$devID=$_GET['id'];
$sql="SELECT * FROM developers WHERE developerID=$devID";
$result=$mysqli->query($sql)or die("query failed due to ".mysqli_error());
if($result->num_rows==0)
{
header("location:./index.php");
exit();
}
else
{
$developer=$result->fetch_assoc();
?>
<div class="row">
<div class="col col-md-2 col-md-offset-5">
<div class="row text-center">
<?php
if($developer['develperLogo']=="")
{
echo '<img src="images/placeholder.jpg" class="img-circle app-img-big">';
}
else
{
echo '<img src="data:image;base64,'.$developer['develperLogo'].'" class="img-circle app-img-big">';
}
?>
</div>
<div class="row text-center">
<h1><?php echo $developer['developerName'];?></h1>
</div>
</div>
</div>
<div class="row">
<div class="col col-md-8 col-md-offset-2">
<div class="panel panel-success">
<div class="panel-heading">
Information
</div>
<div class="panel-body">
<strong>Website :</strong>
<?php echo $developer['developerWebsite'];?>
<br>
<strong>Email :</strong>
<?php echo $developer['developerEmail'];?>
<br>
<strong>Address :</strong>
<?php echo $developer['Address1'].' '.$developer['Address2'];
echo '<br> ';
echo $developer['country'].' , '.$developer['city'].' , '.$developer['state'].' '.$developer['zipcode'] ;?>
<br>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col col-md-8 col-md-offset-2">
<div class="panel panel-success">
<div class="panel-heading">
Published Apps
</div>
<div class="panel-body">
<?php
$sql="SELECT appID,appName,appIcon,appShortDesc,appVersion FROM apps WHERE appState=1 AND developerID=$devID ORDER BY appReleaseDate DESC";
$result=$mysqli->query($sql)or die("query failed due to ".mysqli_error());
$count=1;
while($row=$result->fetch_assoc())
{
echo '<div class="row" id="smallApp">';
echo '<div class="col col-md-2 app-img" ><img id="mediumIcon" src="data:image;base64,'.$row['appIcon'].'" ></div>';
echo '<div class="col col-md-10"><a href="./app.php?appID='.$row['appID'].'"><h4>'.$row['appName'].' '.$row['appVersion'].'</h4></a>';
echo '<small>'.$row['appShortDesc'].'</small></div>';
echo '</div>';
}
}
}
?>
</div>
</div>
</div>
</div>
</div>