summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-13 09:41:30 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-13 09:41:30 +0000
commit48933ee8048f2c2c95147a836e5fe5d492f7b1e6 (patch)
tree1a7c9b1221a6e9d9eecabe5cd927a4b1e1fc8c0e /frontends/php/include
parentf8ec2508ed6a4c962bb6cc996881232ab4a2d3f0 (diff)
downloadzabbix-48933ee8048f2c2c95147a836e5fe5d492f7b1e6.tar.gz
zabbix-48933ee8048f2c2c95147a836e5fe5d492f7b1e6.tar.xz
zabbix-48933ee8048f2c2c95147a836e5fe5d492f7b1e6.zip
- [DEV-199] GUI improvements (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5903 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/forms.inc.php6
-rw-r--r--frontends/php/include/validate.inc.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 3698fd29..7e6b0c3d 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -4284,7 +4284,7 @@
$frmHost->AddRow(S_NAME,new CTextBox('host',$host,20));
- $grp_tb = new CTweenBox($frmHost,'groups',$groups,6);
+ $grp_tb = new CTweenBox($frmHost,'groups',$groups,10);
$db_groups=DBselect('SELECT DISTINCT groupid,name '.
' FROM groups '.
' WHERE groupid IN ('.get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST).') '.
@@ -4540,9 +4540,9 @@
$frmHostG->AddVar("groupid",$_REQUEST["groupid"]);
}
- $frmHostG->AddRow(S_GROUP_NAME,new CTextBox("gname",$name,30));
+ $frmHostG->AddRow(S_GROUP_NAME,new CTextBox("gname",$name,48));
- $cmbHosts = new CTweenBox($frmHostG,'hosts',$hosts);
+ $cmbHosts = new CTweenBox($frmHostG,'hosts',$hosts, 25);
$db_hosts=DBselect('SELECT DISTINCT hostid,host '.
' FROM hosts '.
' WHERE status in ('.HOST_STATUS_MONITORED.','.HOST_STATUS_NOT_MONITORED.','.HOST_STATUS_TEMPLATE.')'.
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index ea2d51c8..33e854e0 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -59,7 +59,7 @@
return "ereg(\"^[a-zA-Z0-9]{1,}$\",{".$var."})&&";
}
function KEY_PARAM($var=NULL){
- return 'ereg(\'^([0-9a-zA-Z\_\.[.'.ZBX_EREG_SPACE_SYMB.'.]\$ ]+)$\',{'.$var.'})&&';
+ return 'ereg(\'^([0-9a-zA-Z\_\.[.'.ZBX_EREG_MINUS_SYMB.'.]\$ ]+)$\',{'.$var.'})&&';
}
function validate_ipv4($str,&$arr){
if( !ereg('^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$', $str, $arr) ) return false;