summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-03 09:14:49 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-03 09:14:49 +0000
commitbde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8 (patch)
tree692baf5e75aa1b9409470a5bdb443c68fb1812b4 /frontends/php/include
parent7a9fe385773913d7feeb9cd60a19467f4526345b (diff)
downloadzabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.tar.gz
zabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.tar.xz
zabbix-bde9b2e7b9eb5c5d18e89de32ae3033d2cc415d8.zip
- [DEV-52] changes in schema.sql (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5127 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/forms.inc.php20
-rw-r--r--frontends/php/include/maps.inc.php10
2 files changed, 15 insertions, 15 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 55cb5388..9d2e3574 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -4880,8 +4880,8 @@ include_once 'include/discovery.inc.php';
$selementid1 = $db_link["selementid1"];
$selementid2 = $db_link["selementid2"];
$triggers = array();
- $drawtype_off = $db_link["drawtype_off"];
- $color_off = $db_link["color_off"];
+ $drawtype = $db_link["drawtype"];
+ $color = $db_link["color"];
$res = DBselect('SELECT * FROM sysmaps_link_triggers WHERE linkid='.$_REQUEST["linkid"]);
while($rows=DBfetch($res)){
@@ -4893,8 +4893,8 @@ include_once 'include/discovery.inc.php';
$selementid1 = get_request("selementid1", 0);
$selementid2 = get_request("selementid2", 0);
$triggers = get_request("triggers", array());
- $drawtype_off = get_request("drawtype_off", 0);
- $color_off = get_request("color_off", 0);
+ $drawtype = get_request("drawtype", 0);
+ $color = get_request("color", 0);
}
/* START comboboxes preparations */
@@ -4931,18 +4931,18 @@ include_once 'include/discovery.inc.php';
$cmbElements2->AddItem($db_selement["selementid"],$label);
}
- $cmbType_off = new CComboBox("drawtype_off",$drawtype_off);
+ $cmbType = new CComboBox("drawtype",$drawtype);
foreach(map_link_drawtypes() as $i){
$value = map_link_drawtype2str($i);
- $cmbType_off->AddItem($i, $value);
+ $cmbType->AddItem($i, $value);
}
- $cmbColor_off = new CComboBox("color_off",$color_off);
+ $cmbColor = new CComboBox("color",$color);
foreach(array('Black','Blue','Cyan','Dark Blue','Dark Green',
'Dark Red','Dark Yellow','Green','Red','White','Yellow') as $value)
{
- $cmbColor_off->AddItem($value, $value);
+ $cmbColor->AddItem($value, $value);
}
/* END preparation */
@@ -5013,8 +5013,8 @@ include_once 'include/discovery.inc.php';
//----------
- $frmCnct->AddRow(S_TYPE.' ('.S_OFF.')',$cmbType_off);
- $frmCnct->AddRow(S_COLOR.' ('.S_OFF.')',$cmbColor_off);
+ $frmCnct->AddRow(S_TYPE.' ('.S_OFF.')',$cmbType);
+ $frmCnct->AddRow(S_COLOR.' ('.S_OFF.')',$cmbColor);
$frmCnct->AddItemToBottomRow(new CButton("save_link",S_SAVE));
if(isset($_REQUEST["linkid"]))
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php
index d380c9cf..d56250aa 100644
--- a/frontends/php/include/maps.inc.php
+++ b/frontends/php/include/maps.inc.php
@@ -203,7 +203,7 @@
return $sysmapid;
}
- function add_link($sysmapid,$selementid1,$selementid2,$triggers,$drawtype_off,$color_off){
+ function add_link($sysmapid,$selementid1,$selementid2,$triggers,$drawtype,$color){
$linkid=get_dbid("sysmaps_links","linkid");
$result=TRUE;
@@ -216,8 +216,8 @@
}
$result&=DBexecute("insert into sysmaps_links".
- " (linkid,sysmapid,selementid1,selementid2,drawtype_off,color_off)".
- " values ($linkid,$sysmapid,$selementid1,$selementid2,$drawtype_off,".zbx_dbstr($color_off).")");
+ " (linkid,sysmapid,selementid1,selementid2,drawtype,color)".
+ " values ($linkid,$sysmapid,$selementid1,$selementid2,$drawtype,".zbx_dbstr($color).")");
if(!$result)
return $result;
@@ -225,7 +225,7 @@
return $linkid;
}
- function update_link($linkid,$sysmapid,$selementid1,$selementid2,$triggers,$drawtype_off,$color_off){
+ function update_link($linkid,$sysmapid,$selementid1,$selementid2,$triggers,$drawtype,$color){
$result=TRUE;
foreach($triggers as $id => $trigger){
@@ -238,7 +238,7 @@
$result&=DBexecute('UPDATE sysmaps_links SET '.
" sysmapid=$sysmapid,selementid1=$selementid1,selementid2=$selementid2,".
- " drawtype_off=$drawtype_off,color_off=".zbx_dbstr($color_off).
+ " drawtype=$drawtype,color=".zbx_dbstr($color).
" WHERE linkid=$linkid");
return $result;
}