From daa5481f0be02ef2aafba98cb9b8cd80a3ec5387 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 23 Mar 2003 09:21:41 +0000 Subject: Support for screen builder. Thanks to Arturs Aboltins. (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@714 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/screenconf.php | 130 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 frontends/php/screenconf.php (limited to 'frontends/php/screenconf.php') diff --git a/frontends/php/screenconf.php b/frontends/php/screenconf.php new file mode 100644 index 00000000..0817181e --- /dev/null +++ b/frontends/php/screenconf.php @@ -0,0 +1,130 @@ + + +"; +?> + +No permissions !"); +// show_footer(); +// exit; + } +?> + + + +"; + echo "Id"; + echo "Name"; + echo "Columns"; + echo "Rows"; + echo "Actions"; + echo ""; + + $result=DBselect("select scid,name,cols,rows from screens order by name"); + $col=0; + while($row=DBfetch($result)) + { + if(!check_right("Screen","R",$row["scid"])) + { + continue; + } + if($col++%2==0) { echo ""; } + else { echo ""; } + + echo "".$row["scid"].""; + echo "".$row["name"].""; + echo "".$row["cols"].""; + echo "".$row["rows"].""; + echo "Change - "; + echo "Delete"; + echo ""; + } + echo ""; +?> + +"; + + if(isset($HTTP_GET_VARS["scid"])) + { + $result=DBselect("select scid,name,cols,rows from screens g where scid=".$HTTP_GET_VARS["scid"]); + $row=DBfetch($result); + $name=$row["name"]; + $cols=$row["cols"]; + $rows=$row["rows"]; + } + else + { + $name=""; + $cols=1; + $rows=1; + } + + echo "
"; + show_table2_header_begin(); + echo "New screen"; + + show_table2_v_delimiter(); + echo "
"; + if(isset($HTTP_GET_VARS["scid"])) + { + echo ""; + } + echo "Name"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter(); + echo "Columns"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter(); + echo "Rows"; + show_table2_h_delimiter(); + echo ""; + + show_table2_v_delimiter2(); + echo ""; + if(isset($HTTP_GET_VARS["scid"])) + { + echo ""; + } + + show_table2_header_end(); +?> + + -- cgit