????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.3 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/sales/ |
Upload File : |
<?php
session_start();
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("vpa");
?><!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>TIMRAPPORT</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">
<center>
<p>
<?php
$arr = array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
for ($x = 1; $x <= 12; $x++) {
if($x < 10){
$m = "0".$x;
}else{
$m = $x;
}
$start = date("Y")."-".$m."-01";
$end = date("Y")."-".$m."-31";
$sql = "SELECT Project.Name as Name, Project.CompanyId as CompanyId,Project.createDate as createDate,Project.jobTypeChangeDate as jobTypeChangeDate, Project.scheduledDeliveryToCustomer as scheduledDeliveryToCustomer, Project.scheduledDeliveryDate as scheduledDeliveryDate, Project.STATOrderValue as STATOrderValue, Project.ProjectId as ProjectId FROM Project, Company where Project.CompanyId = Company.CompanyId and jobTypeChangeDate >= '".$start." 00:00:00' and jobTypeChangeDate <= '".$end." 23:59:59' and JobTypeId = 1 and not STATOrderValue =0 order by createDate asc";
$result = mysql_query($sql);
$STATOrderValue = 0;
while ($row = mysql_fetch_assoc($result)){
$STATOrderValue += $row['STATOrderValue'];
}
$arr[$x] = $STATOrderValue;
}
?>
</p>
<table width="900" height="333" border="0" cellpadding="0" cellspacing="10">
<tr>
<th width="75" height="275" valign="bottom" bgcolor="#CCCCCC" scope="col">
<table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[1]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[1]/300000)*100))?>%</th>
</tr>
</table>
</th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[2]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[2]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[3]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[3]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[4]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[4]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[5]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[5]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[6]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[6]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[7]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[7]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[8]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[8]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[9]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[9]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[10]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[10]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[11]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[11]/300000)*100))?>%</th>
</tr>
</table></th>
<th width="75" valign="bottom" bgcolor="#CCCCCC" scope="col"> <table width="70" border="0" cellspacing="0" cellpadding="0" height="<?php echo(round(($arr[12]/300000)*100))?>%">
<tr>
<th bgcolor="#00CC00" scope="col"><?php echo(round(($arr[12]/300000)*100))?>%</th>
</tr>
</table></th>
</tr>
<tr>
<th align="center" valign="middle" scope="row">Jan</th>
<td align="center" valign="middle" >Feb</td>
<td align="center" valign="middle">Mars</td>
<td align="center" valign="middle">April</td>
<td align="center" valign="middle">Maj</td>
<td align="center" valign="middle">Juni</td>
<td align="center" valign="middle">Juli</td>
<td align="center" valign="middle">Aug</td>
<td align="center" valign="middle">Sep</td>
<td align="center" valign="middle">Okt</td>
<td align="center" valign="middle">Nov</td>
<td align="center" valign="middle">Dec</td>
</tr>
</table>
<p> </p>
</body>
</html>