Приложение Б (1203265), страница 4
Текст из файла (страница 4)
{
$row = mysql_fetch_array($result);
echo '<tr>';
$temp=$row['Id_request'];
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['Id_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['topic_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Cat_id[$row['Id_category']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Subcat_id[$row['Id_subcategory']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['status_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['technician_request'],'</a></td>';
echo '</tr>';
}
}
}
elseif($_GET['param']=='6')
{
$fio=$_SESSION['ID_U'];
$query="SELECT * FROM `request` where `status_request`='Открыта'";
$result=mysql_query($query);
$num_results=mysql_num_rows($result);
if($num_results>0)
{
for($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<tr>';
$temp=$row['Id_request'];
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['Id_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['topic_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Cat_id[$row['Id_category']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Subcat_id[$row['Id_subcategory']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['status_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['technician_request'],'</a></td>';
echo '</tr>';
}
}
}
elseif($_GET['param']=='7')
{
$fio=$_SESSION['ID_U'];
$query="SELECT * FROM `request` where `status_request`='Обработка'";
$result=mysql_query($query);
$num_results=mysql_num_rows($result);
if($num_results>0)
{
for($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<tr>';
$temp=$row['Id_request'];
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['Id_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['topic_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Cat_id[$row['Id_category']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Subcat_id[$row['Id_subcategory']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['status_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['technician_request'],'</a></td>';
echo '</tr>';
}
}
}
elseif($_GET['param']=='8')
{
$fio=$_SESSION['ID_U'];
$query="SELECT * FROM `request` where `status_request`='Пауза'";
$result=mysql_query($query);
$num_results=mysql_num_rows($result);
if($num_results>0)
{
for($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<tr>';
$temp=$row['Id_request'];
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['Id_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['topic_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Cat_id[$row['Id_category']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Subcat_id[$row['Id_subcategory']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['status_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['technician_request'],'</a></td>';
echo '</tr>';
}
}
}
elseif($_GET['param']=='9')
{
$fio=$_SESSION['ID_U'];
$query="SELECT * FROM `request` where `status_request`='Решено'";
$result=mysql_query($query);
$num_results=mysql_num_rows($result);
if($num_results>0)
{
for($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<tr>';
$temp=$row['Id_request'];
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['Id_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['topic_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Cat_id[$row['Id_category']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$Subcat_id[$row['Id_subcategory']],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['status_request'],'</a></td>';
echo "<td><a href='requestOpen.php?param=$temp&name=$sp_n' target='windowName' onclick=\"window.open(this.href,this.target,'width=1200,height=500');
return false;\">",$row['technician_request'],'</a></td>';
echo '</tr>';
}
}
}
?>
</table>
</td>
</tr>
</table>
<?php
require 'footer.php';
?>
<script>
$('#requests').show();
</script>
130














