????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.142.97.186 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/appsrv.astacus.se/scanreport/ |
Upload File : |
<?php $link = mysql_connect ("localhost", "root", "root123"); mysql_select_db ("vpa"); $sql = "SELECT * FROM Project where ProjectId =".$_GET['projectId']; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ $Name = $row['Name']; } $sql = "SELECT * FROM ProjectTime where ProjectId = ".$_GET['projectId']." and Username = '".$_GET['username']."'"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)){ $Username = $row['Username']; $TimeSpent += $row['TimeSpent']; $Waittime += $row['Waittime']; $Overtime += $row['Overtime']; $TimeSpentMIN += $row['TimeSpentMIN']; $WaittimeMIN += $row['WaittimeMIN']; $OvertimeMIN += $row['OvertimeMIN']; $Extra += $row['Extra']; $ExtraMIN += $row['ExtraMIN']; $Traktamente += $row['Traktamente']; $TraktamenteDAG += $row['TraktamenteDAG']; } if($TimeSpentMIN == ""){ $TimeSpentMIN = "00"; } if($WaittimeMIN == ""){ $WaittimeMIN = "00"; } if($OvertimeMIN == ""){ $OvertimeMIN = "00"; } if($ExtraMIN == ""){ $ExtraMIN = "00"; } $Name2 = $Name; if(strlen($Name) > 30){ $Name = substr($Name,0,30)."..."; } if($Name == ""){ header("location: index.html"); } ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="format-detection" content="telephone=no"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>Untitled Document</title> <style type="text/css"> .Rubrik { font-family: Arial, Helvetica, sans-serif; font-size: 42px; color:#FC0; } .Text { font-family: Arial, Helvetica, sans-serif; font-size: 18px; color:#FC0; } .Field { font-family: Arial, Helvetica, sans-serif; font-size: 28px; } </style> <script> function showAll(){ window.location="show.php"; } function goback(){ window.location="history.back(-1)"; } function show(str){ alert(str); } </script> </head> <body bgcolor="#000000" > <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="Rubrik"><span class="Text" onClick="show('<?php echo( $Name2);?>');"><?php echo($Name);?></span><br> <input name="timespent" type="tel" class="Field" id="timespent" placeholder="Admin" size="12" value="<?php echo($TimeSpent)?>"><input name="timespentmin" type="tel" class="Field" id="timespentmin" placeholder="00" size="2" value="<?php echo($TimeSpentMIN)?>"> <br> <input name="timespent" type="tel" class="Field" id="timespent" placeholder="Project" size="12" value="<?php echo($TimeSpent)?>"><input name="timespentmin" type="tel" class="Field" id="timespentmin" placeholder="00" size="2" value="<?php echo($TimeSpentMIN)?>"> <br> <input name="waittime2" type="tel" class="Field" id="waittime2" placeholder="Travel" size="12" value="<?php echo($Extra)?>"><input name="waittimemin" type="tel" class="Field" id="waittimemin2" placeholder="00" size="2" value="<?php echo($ExtraMIN)?>"> <br> <input name="waittime" type="tel" class="Field" id="waittime" placeholder="Wait" size="12" value="<?php echo($Waittime)?>"><input name="time3" type="tel" class="Field" id="waittimemin" placeholder="00" size="2" value="<?php echo($WaittimeMIN)?>"> <br> <input name="overtime" type="tel" class="Field" id="overtime" placeholder="Over" size="12" value="<?php echo($Overtime)?>"><input name="overtimemin" type="tel" class="Field" id="overtimemin" placeholder="00" size="2" value="<?php echo($OvertimeMIN)?>"> <br> <br> <input name="button2" type="submit" class="Field" id="button2" value="<< Back" onClick="javascript:history.back(-1);"> <br></td> </tr> </table> </body> </html> <script> function color(){ document.getElementById("timespent").style.backgroundColor = "#00ff00"; } <?php if($_GET['message'] != ""){ echo("color();"); } ?> </script>