-
Notifications
You must be signed in to change notification settings - Fork 0
/
Genesis.php
executable file
·85 lines (61 loc) · 1.6 KB
/
Genesis.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
<?php
echo "<div class=\"RowEvenC\">";
$Table = "images";
//$HeaderHeigth="100%";
$ImageSize="\"99%\"";
$PathImage = "400/";
$result = mysqli_query($con, "SELECT * FROM $Table where id = '9'");
$rownumber=0;
echo "<table>";
while($row = mysqli_fetch_array($result))
{
$rownumber++;
echo "<tr><td class='footerLogoH'><img src=\"" . $PathImage . $row['image'] . "\" width = " . $ImageSize . " alt = \"" . $row['caption'] . "\"> ";
echo $row['caption'] ;
echo "</td></tr>";
//echo "</div>";
}
//echo "</div>";
echo "</table>";
echo "</div>";
$Table = "data";
$sql = "select * from $Table where id = $refNo ";
$res = mysqli_query($con, $sql);
$rownumber=0;
echo "<table>";
while ( $row = mysqli_fetch_array($res))
{
if($rownumber%2==0) $layout="RowEvenC";
else
{
$layout="RowOddC";
}
$rownumber++;
$item[0] = "<tr><td>";
$item[0] .= " <div class= $layout > <div class='bgRed'>" . $row['title'] ;
$item[0] .= $row['sub_title'] . "</div></br>" . $row['text'];
$item[0] .= "</div></td></tr>";
// $item[0] .= " </div> ";
echo $item[0];
}
echo "</table>";
$Table = "images";
//$HeaderHeigth="100%";
$ImageSize="\"99%\"";
$PathImage = "400/";
$result = mysqli_query($con, "SELECT * FROM $Table where id = '8'");
$rownumber=0;
echo "<table>";
while($row = mysqli_fetch_array($result))
{
$rownumber++;
echo "<tr><td class='footerLogoH'><img src=\"" . $PathImage . $row['image'] . "\" width =" . $ImageSize . "alt = \"" . $row['caption'] . "\">" ;
echo $row['caption'];
echo "</td></tr>";
//echo "</div>";
}
//echo "</div>";
echo "</table>";
//echo "</div>";
//echo "<div>";
?>