????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.217 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/timereport_india/ |
Upload File : |
<?php
session_start();
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("vpa");
$sql = "SELECT * FROM ProductionUser Where ProductionTriGeoID = '".$_GET["trigeoid"]."'";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$_SESSION['TIMEREPORT_Username_Team'] = $row['Team'];
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>ASTACUS TIDRAPPORT</title>
<style>
a:link, a:visited {
color: #000000;
text-decoration: none;
cursor: auto;
}
</style>
<script>
function update(selObj,trigeoid){
window.location = "update_team.php?trigeoid="+trigeoid+"&team="+selObj.options[selObj.selectedIndex].value;
}
</script>
</head>
<body bgcolor="#D5D5D5" onload="init();">
<center>
<table width="100%" border="15" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tbody>
<tr>
<td align="center"><p><a href="index.php"><img src="images/Astacus_Pos8x1.7.jpg" width="200" height="42" alt=""/></a><br><span id="username" style="font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; font-size: 14px;"></span> </p>
<table width="80%%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="37%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;">TriGeo ID</td>
<td width="36%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif">Name</td>
<td width="17%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif">Team</td>
<td width="10%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif">Action</td>
</tr>
</tbody>
</table>
<br>
<?php
$sql = "SELECT * FROM ProductionUser order by Team, ProductionTriGeoID asc";
$group = "AutoCAD";
$result = mysql_query($sql);
$color = "#FFFFFF";
$X = 0;
while ($row = mysql_fetch_assoc($result)){
if($X % 2 == 0){
$color = "#FFFFFF";
}else{
$color = "#EEEEEE";
}
if($group != $row['Team']){
echo("<br><br>");
$group = $row['Team'];
}
?>
<table width="80%%" border="0" cellspacing="0" cellpadding="0" bgcolor="<?php echo($color);?>">
<tbody>
<tr>
<td width="37%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;"><?php echo($row["ProductionTriGeoID"]);?></td>
<td width="36%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"><?php echo($row["Name"]);?></td>
<td width="17%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif">
<select name="team" id="team" onChange="update(this,'<?php echo($row["ProductionTriGeoID"]);?>');">
<option value="Revit" <?php if($row["Team"] == "Revit"){echo("selected");}?>>Revit</option>
<option value="AutoCAD" <?php if($row["Team"] == "AutoCAD"){echo("selected");}?>>AutoCAD</option>
<option value="Registration" <?php if($row["Team"] == "Registration"){echo("selected");}?>>Registration</option>
<option value="Software" <?php if($row["Team"] == "Software"){echo("selected");}?>>Software</option>
<option value="Other" <?php if($row["Team"] == "Other"){echo("selected");}?>>Other</option>
</select>
</td>
<td width="10%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif">
<?php if($row["Status"] == "0"){
echo("<a href='update_admin.php?trigeoid=".$row["ProductionTriGeoID"]."&action=1'>Activate</a>");
}else{
echo("<a href='update_admin.php?trigeoid=".$row["ProductionTriGeoID"]."&action=0'>Deactivate</a>");
}?></td>
</tr>
</tbody>
</table>
<?php
$X++;
}
?>
<br>
<br>
<form id="form1" name="form1" method="GET" action="admin_add.php">
<table width="80%%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="37%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;"><input type="text" name="trigeoid" id="trigeoid"></td>
<td width="36%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"><span style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;">
<input type="text" name="name" id="name">
</span></td>
<td width="19%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"><select name="team" id="team">
<option value="Revit">Revit</option>
<option value="AutoCAD">AutoCAD</option>
<option value="Registration">Registration</option>
<option value="Other">Other</option>
</select></td>
<td width="8%" style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif"><input type="submit" name="submit" id="submit" value="ADD"></td>
</tr>
</tbody>
</table>
</form></td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</center>
</body>
</html>