Repository navigation
Expand file tree
/
Copy pathTradeFair.php
More file actions
executable file
·89 lines (79 loc) · 2.02 KB
/
Copy pathTradeFair.php
File metadata and controls
executable file
·89 lines (79 loc) · 2.02 KB
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
<?php
$Table = "data";
$sql = "select * from $Table where id = $refNo ";
$res = mysqli_query($con, $sql);
$rownumber=0;
while ( $row = mysqli_fetch_array($res))
{
if($rownumber%2==0) $layout="RowEvenC";
else
{
$layout="RowOddC";
}
$rownumber++;
$item[0] = "";
$item[0] .= " <div class= $layout > <div class='bgRed'>" . $row['title'] . "</div>" ;
if ($row['sub_title'] != "" )
{
$item[0] .= "<div class='bgGrey'>" . $row['sub_title'] . "</div>" ;
}
if($_GET['refNo'] != 27){
$item[0] .= "</br>" . $row['text'];
$item[0] .= "</div>";
}else
{
$sql_two = "select * from conf_name";
$res_two = mysqli_query($con, $sql_two);
$item[0] .= "<table>";
while($data = mysqli_fetch_array($res_two)){
$date = strtotime($data['date']);
$new_date = date('l, j F Y',$date);
$item[0] .= "<tr><td>".$data['conf']."</td><td><a href='index.php?refNo=".$data['id']."&fileRef=ConferenceDetail'>".$data['name']."</a></td><td>".$new_date."</td></tr>";
}
$item[0] .= "</table>";
$item[0] .= "</div>";
}
// $item[0] .= " </div> ";
echo $item[0];
$ImID = 0;
$change_label= explode(",", $row['ImageID']);
$PP1 = $change_label[0] . " A " . $change_label[1] . " B ";
$PP1 .= $change_label[2] . " C " . $change_label[3] . " D ";
//echo $PP1;
$PP = $ImID;
while($change_label[$ImID])
{
$PP .= " XX ImId " . $ImID . " | " . $change_label[$ImID] ;
$ImID++;
}
//echo $PP;
$ImID = 0;
$Table2 = "images";
//$HeaderHeigth="100%";
$ImageSize="\"99%\"";
$PathImage = "400/";
echo "<table>";
while($change_label[$ImID])
{
$sql2 = "SELECT * FROM $Table2 where id = $change_label[$ImID]";
//echo $sql2;
$result2 = mysqli_query($con, $sql2);
$ImID++;
$rownumber3=0;
//echo "<div class='footerLogoH'>";
//echo "<table>";
while($row3 = mysqli_fetch_array($result2))
{
$rownumber3++;
echo "<tr><td class='footerLogoH'><img src=\"" . $PathImage . $row3['image'] . "\"width = " . $ImageSize . " alt =\"image\" > ";
//echo "<tr><td>";
echo $row3['caption'];
echo"</td></tr>";
//echo"</div>";
}
//echo "</div>";
//echo "</table>";
}
echo "</table>";
}
?>