";
?>
No permissions !");
// show_footer();
// exit;
}
?>
";
echo "
Id | ";
echo "Name | ";
echo "Columns | ";
echo "Rows | ";
echo "Actions | ";
echo "";
$result=DBselect("select screenid,name,cols,rows from screens order by name");
$col=0;
while($row=DBfetch($result))
{
if(!check_right("Screen","R",$row["screenid"]))
{
continue;
}
if($col++%2==0) { echo ""; }
else { echo "
"; }
echo "| ".$row["screenid"]." | ";
echo "".$row["name"]." | ";
echo "".$row["cols"]." | ";
echo "".$row["rows"]." | ";
echo "Change | ";
echo "
";
}
if(DBnum_rows($result)==0)
{
echo "";
echo "| -No screens defined- | ";
echo "
";
}
echo "";
?>
";
if(isset($HTTP_GET_VARS["screenid"]))
{
$result=DBselect("select screenid,name,cols,rows from screens g where screenid=".$HTTP_GET_VARS["screenid"]);
$row=DBfetch($result);
$name=$row["name"];
$cols=$row["cols"];
$rows=$row["rows"];
}
else
{
$name="";
$cols=1;
$rows=1;
}
echo "
";
show_table2_header_begin();
echo "Screen";
show_table2_v_delimiter();
echo "