summaryrefslogtreecommitdiffstats
path: root/frontends/php/screenedit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-31 16:59:55 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-31 16:59:55 +0000
commit3bcee84a57b7aaf3bce554bdc6269c0c03cdc9e7 (patch)
tree5cce6682cb55fd48eeee920918401a46b13aaa55 /frontends/php/screenedit.php
parentb29b6572e01261bf108f0897b1f61ced91e7096e (diff)
downloadzabbix-3bcee84a57b7aaf3bce554bdc6269c0c03cdc9e7.tar.gz
zabbix-3bcee84a57b7aaf3bce554bdc6269c0c03cdc9e7.tar.xz
zabbix-3bcee84a57b7aaf3bce554bdc6269c0c03cdc9e7.zip
- added column screens_items.rowspan (Alexei)
- support of rowspan in screens (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1800 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screenedit.php')
-rw-r--r--frontends/php/screenedit.php27
1 files changed, 19 insertions, 8 deletions
diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php
index f418deef..55318639 100644
--- a/frontends/php/screenedit.php
+++ b/frontends/php/screenedit.php
@@ -49,7 +49,7 @@
// delete_screen_item($_GET["screenitemid"]);
// unset($_GET["screenitemid"]);
// }
- $result=add_screen_item($_GET["resource"],$_GET["screenid"],$_GET["x"],$_GET["y"],$_GET["resourceid"],$_GET["width"],$_GET["height"],$_GET["colspan"]);
+ $result=add_screen_item($_GET["resource"],$_GET["screenid"],$_GET["x"],$_GET["y"],$_GET["resourceid"],$_GET["width"],$_GET["height"],$_GET["colspan"],$_GET["rowspan"]);
unset($_GET["x"]);
show_messages($result, S_ITEM_ADDED, S_CANNOT_ADD_ITEM);
}
@@ -61,7 +61,7 @@
}
if($_GET["register"]=="update")
{
- $result=update_screen_item($_GET["screenitemid"],$_GET["resource"],$_GET["resourceid"],$_GET["width"],$_GET["height"],$_GET["colspan"]);
+ $result=update_screen_item($_GET["screenitemid"],$_GET["resource"],$_GET["resourceid"],$_GET["width"],$_GET["height"],$_GET["colspan"],$_GET["rowspan"]);
show_messages($result, S_ITEM_UPDATED, S_CANNOT_UPDATE_ITEM);
unset($_GET["x"]);
}
@@ -91,6 +91,7 @@
$width=$irow["width"];
$height=$irow["height"];
$colspan=$irow["colspan"];
+ $rowspan=$irow["rowspan"];
}
else
{
@@ -100,16 +101,20 @@
$width=500;
$height=100;
$colspan=0;
+ $rowspan=0;
}
- if($colspan==0)
+ $tmp="";
+ if($colspan!=0)
{
- echo "<TD align=\"center\" valign=\"top\">\n";
+ $tmp=$tmp." colspan=\"$colspan\" ";
+ $c=$c+$colspan-1;
}
- else
+ if($rowspan!=0)
{
- echo "<TD align=\"center\" valign=\"top\" colspan=\"$colspan\">\n";
- $c=$c+$colspan-1;
+ $tmp=$tmp." rowspan=\"$rowspan\" ";
+# $r=$r+$rowspan-1;
}
+ echo "<TD align=\"center\" valign=\"top\" $tmp>\n";
echo "<a name=\"form\"></a>";
echo "<form method=\"get\" action=\"screenedit.php\">";
@@ -121,6 +126,7 @@
$width=@iif(isset($_GET["width"]),$_GET["width"],$width);
$height=@iif(isset($_GET["height"]),$_GET["height"],$height);
$colspan=@iif(isset($_GET["colspan"]),$_GET["colspan"],$colspan);
+ $rowspan=@iif(isset($_GET["rowspan"]),$_GET["rowspan"],$colspan);
show_form_begin("screenedit.cell");
echo S_SCREEN_CELL_CONFIGURATION;
@@ -235,10 +241,15 @@
}
show_table2_v_delimiter();
- echo S_COLSPAN;
+ echo S_COLUMN_SPAN;
show_table2_h_delimiter();
echo "<input class=\"biginput\" name=\"colspan\" size=2 value=\"$colspan\">";
+ show_table2_v_delimiter();
+ echo S_ROW_SPAN;
+ show_table2_h_delimiter();
+ echo "<input class=\"biginput\" name=\"rowspan\" size=2 value=\"$rowspan\">";
+
show_table2_v_delimiter2();
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">";
if($resourceid!=0)