summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-20 14:46:11 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-20 14:46:11 +0000
commit469d17e7d448ec1833abb72add88d1d1f61c4a06 (patch)
tree4a21e42405a82385c87981d5f2199e388a964272 /frontends/php/include/classes
parent155fa1457186f7ffa453ba7bf68ae0c22387746b (diff)
downloadzabbix-469d17e7d448ec1833abb72add88d1d1f61c4a06.tar.gz
zabbix-469d17e7d448ec1833abb72add88d1d1f61c4a06.tar.xz
zabbix-469d17e7d448ec1833abb72add88d1d1f61c4a06.zip
- [DEV-199] performance improvements of js scripts in hosts screen (Artem)HEADmaster
- [DEV-137] many small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5932 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/ccombobox.inc.php45
1 files changed, 21 insertions, 24 deletions
diff --git a/frontends/php/include/classes/ccombobox.inc.php b/frontends/php/include/classes/ccombobox.inc.php
index 99d4ef7f..af79fbc6 100644
--- a/frontends/php/include/classes/ccombobox.inc.php
+++ b/frontends/php/include/classes/ccombobox.inc.php
@@ -21,11 +21,9 @@
<?php
require_once("include/classes/ctag.inc.php");
- class CComboItem extends CTag
- {
+ class CComboItem extends CTag{
/* public */
- function CComboItem($value,$caption=NULL,$selected=NULL, $enabled=NULL)
- {
+ function CComboItem($value,$caption=NULL,$selected=NULL, $enabled=NULL){
parent::CTag('option','yes');
$this->tag_body_start = "";
$this->options['value'] = $value;
@@ -36,20 +34,20 @@
$this->SetEnabled($enabled);
}
- function SetValue($value)
- {
+
+ function SetValue($value){
return $this->options['value'] = $value;
}
- function GetValue()
- {
+
+ function GetValue(){
return $this->GetOption('value');
}
- function SetCaption($value=NULL)
- {
+
+ function SetCaption($value=NULL){
$this->AddItem(nbsp($value));
}
- function SetSelected($value='yes')
- {
+
+ function SetSelected($value='yes'){
if((is_string($value) && ($value == 'yes' || $value == 'selected' || $value=='on'))
|| (is_int($value) && $value<>0))
return $this->options['selected'] = 'selected';
@@ -58,14 +56,12 @@
}
}
- class CComboBox extends CTag
- {
+ class CComboBox extends CTag{
/* private */
//var $value;
/* public */
- function CComboBox($name='combobox',$value=NULL,$action=NULL)
- {
+ function CComboBox($name='combobox',$value=NULL,$action=NULL){
parent::CTag('select','yes');
$this->tag_end = '';
@@ -78,16 +74,16 @@
$this->value = $value;
$this->SetAction($action);
}
- function SetAction($value='submit()', $event='onchange')
- {
+
+ function SetAction($value='submit()', $event='onchange'){
$this->AddOption($event,$value);
}
- function SetValue($value=NULL)
- {
+
+ function SetValue($value=NULL){
$this->value = $value;
}
- function AddItem($value, $caption='', $selected=NULL, $enabled='yes')
- {
+
+ function AddItem($value, $caption='', $selected=NULL, $enabled='yes'){
// if($enabled=='no') return; /* disable item method 1 */
if(strtolower(get_class($value))=='ccomboitem'){
parent::AddItem($value);
@@ -118,8 +114,7 @@
$this->SetValue($value);
}
- function SetSize($value)
- {
+ function SetSize($value){
$this->options['size'] = $value;
}
}
@@ -157,6 +152,8 @@
class CTweenBox{
function ctweenbox(&$form,$name,$value=null,$size=10){
+ insert_javascript_for_twinbox();
+
$this->form = &$form;
$this->name = $name.'_tweenbox';
$this->varname = $name;