????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.120 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/labs.astacus.se/bravidaq/ |
Upload File : |
<?php
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("labs_web");
$sql ="SELECT * from bravidaq, bravidaq_categories where bravidaq_categories.category = bravidaq.category and bravidaq_categories.id = ".$_GET['cat']."";
$result = mysql_query($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Diagram</title>
<style type="text/css">
.tet {
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
color: #FFF;
}
.tetb {
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
color: #OOOOOO;
}
.rub {
font-family: Verdana, Geneva, sans-serif;
font-size: 24px;
color: #FFF;
}
a:link {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FFFFFF; text-decoration:none }
a:visited {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FFFFFF;text-decoration:none }
a:hover {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FFFFFF; text-decoration:none}
a:active {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FFFFFF; text-decoration:none}
a.small:link {font-family: Verdana, Geneva, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration:none }
a.small:visited {font-family:Verdana, Geneva, sans-serif, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF;text-decoration:none }
a.small:hover {font-family: Verdana, Geneva, sans-serif, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration:none}
a.small:active {font-family: Verdana, Geneva, sans-serif, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration:none}
</style>
</head>
<body bgcolor="#006287">
<p> </p>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="tetb">
<td width="149" valign="top"><img src="bravida.jpg" width="100" height="101" border="1" /><br /></td>
<td width="851" valign="middle"><p class="rub">Kategori:</p>
<p class="rub"><?php echo($_GET['category']);?><br />
<br />
</p></td>
</tr>
</table>
<br />
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="tetb">
<td width="149" valign="top"><p> </p>
<p><br />
</p></td>
<td width="851" valign="middle"><table width="851" height="21" border="0" cellpadding="0" cellspacing="0">
<tr class="tet">
<td width="158"><strong>Namn:</strong></td>
<td width="174"><strong>Företag:</strong></td>
<td width="118"><strong>E-mail:</strong></td>
<td width="114"> </td>
<td width="141"> </td>
<td width="146"> </td>
</tr>
</table>
<?php
while ($row = mysql_fetch_assoc($result)){
$category = $row['category'];
$name = $row['name'];
$company = $row['company'];
$email = $row['email'];
$c1 = $row['c1'];
$c2 = $row['c2'];
$c3 = $row['c3'];
$c4 = $row['c4'];
$c5= $row['c5'];
$c6= $row['c6'];
$c7 = $row['c7'];
$c8 = $row['c9'];
$a1 = $row['a1'];
$a2 = $row['a2'];
$a3 = $row['a3'];
$a4 = $row['a4'];
$a5 = $row['a5'];
$a6 = $row['a6'];
$a7 = $row['a7'];
$a8 = $row['a8'];
if($a1 == "1"){
$a1 = "-";
}else{
$a1 = "-";
}
if($a2 == "1"){
$a2 = "Falskt";
}else{
$a2 = "Sant";
}
if($a3 == "1"){
$a3 = "Falskt";
}else{
$a3 = "Sant";
}
if($a4 == "1"){
$a4 = "Falskt";
}else{
$a4 = "Sant";
}
if($a5 == "1"){
$a5 = "Falskt";
}else{
$a5 = "Sant";
}
if($a6 == "1"){
$a6 = "NEJ";
}else{
$a6 = "JA";
}
if($a7 == "1"){
$a7 = "NEJ";
}else{
$a7 = "JA";
}
if($a8 == "1"){
$a8 = "NEJ";
}else{
$a8 = "JA";
}
?>
<table width="851" height="21" border="0" cellpadding="0" cellspacing="0">
<tr class="tet">
<td width="158"><strong><?php echo($name);?></strong></td>
<td width="174"><strong><?php echo($company);?></strong></td>
<td width="118"><strong><?php echo($email);?></strong></td>
<td width="114"> </td>
<td width="141"> </td>
<td width="146"> </td>
</tr>
</table>
<table width="851" height="21" border="0" cellpadding="0" cellspacing="0">
<tr class="tet">
<td width="158" valign="top">Q1(<?php echo($a1);?>):<?php echo($c1);?></td>
<td width="30" valign="top"> </td>
<td width="159" valign="top">Q2(<?php echo($a2);?>):<?php echo($c2);?></td>
<td width="30" valign="top"> </td>
<td width="157" valign="top">Q3(<?php echo($a3);?>):<?php echo($c3);?></td>
<td width="30" valign="top"> </td>
<td width="287" valign="top">Q4(<?php echo($a4);?>):<?php echo($c4);?></td>
</tr>
</table>
<table width="851" height="21" border="0" cellpadding="0" cellspacing="0">
<tr class="tet">
<td width="158" valign="top">Q5(<?php echo($a5);?>):<?php echo($c5);?></td>
<td width="30" valign="top"> </td>
<td width="159" valign="top">Q6(<?php echo($a6);?>):<?php echo($c6);?></td>
<td width="30" valign="top"> </td>
<td width="157" valign="top">Q7(<?php echo($a7);?>):<?php echo($c7);?></td>
<td width="30" valign="top"> </td>
<td width="287" valign="top">Q8(<?php echo($a8);?>):<?php echo($c8);?></td>
</tr>
</table>
<hr />
<?php }?>
</td>
</tr>
</table>
</body>
</html>