diff --git a/interface/ispconfig/interface/admin/firewall_del.php b/interface/ispconfig/interface/admin/firewall_del.php
deleted file mode 100644
index 5f4dc9172d649a144b62f0481c5ab71bc82166f0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/firewall_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/firewall_edit.php b/interface/ispconfig/interface/admin/firewall_edit.php
deleted file mode 100644
index 0401143dcff01bdbee227f393461a52864db33a2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/firewall_edit.php
+++ /dev/null
@@ -1,72 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
- function onBeforeUpdate() {
- global $app, $conf;
-
- //* Check if the server has been changed
- // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway
- if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
- $rec = $app->db->queryOneRecord("SELECT server_id from firewall WHERE firewall_id = ".$this->id);
- if($rec['server_id'] != $this->dataRecord["server_id"]) {
- //* Add a error message and switch back to old server
- $app->tform->errorMessage .= $app->lng('The Server can not be changed.');
- $this->dataRecord["server_id"] = $rec['server_id'];
- }
- unset($rec);
- }
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/firewall_list.php b/interface/ispconfig/interface/admin/firewall_list.php
deleted file mode 100644
index f95c570c20f82cc578723521467c8eafd134cc91..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/firewall_list.php
+++ /dev/null
@@ -1,52 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/dbsync.tform.php b/interface/ispconfig/interface/admin/form/dbsync.tform.php
deleted file mode 100644
index 363c916f20695e3dd481a6504fbe8203c0da9a6c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/dbsync.tform.php
+++ /dev/null
@@ -1,264 +0,0 @@
- 'DB sync',
- 'width' => 80,
- 'template' => 'templates/dbsync_edit.htm',
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'jobname' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,30}$/',
- 'errmsg' => 'jobname_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'sync_interval_minutes' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => array('mysql' => 'mysql'),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_host' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'db_tables' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => 'admin,forms',
- 'value' => $db_tables,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'empty_datalog' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => array(0 => 0,1 => 1),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'sync_datalog_external' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => array(0 => 0,1 => 1),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'active' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '1',
- 'value' => array(0 => 0,1 => 1),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/filesync.tform.php b/interface/ispconfig/interface/admin/form/filesync.tform.php
deleted file mode 100644
index c252b1a29510b1d1435bb5dd3cbe0e5403f8cc18..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/filesync.tform.php
+++ /dev/null
@@ -1,205 +0,0 @@
- "Datei sync",
- 'width' => 80,
- 'template' => "templates/filesync_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'jobname' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,30}$/',
- 'errmsg' => 'jobname_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'sync_interval_minutes' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ftp_host' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ftp_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ftp_username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ftp_password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'local_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'wput_options' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '--timestamping --dont-continue',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'active' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '1',
- 'value' => array(0 => 0,1 => 1),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/firewall.tform.php b/interface/ispconfig/interface/admin/form/firewall.tform.php
deleted file mode 100644
index edbe89ce4a0252db13472602bf8323955c99f994..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/firewall.tform.php
+++ /dev/null
@@ -1,112 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['firewall'] = array (
- 'title' => "Firewall",
- 'width' => 100,
- 'template' => "templates/firewall_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'firewall_error_unique'),
- ),
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'tcp_port' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\s0-9\,\:]{0,255}$/',
- 'errmsg'=> 'tcp_ports_error_regex'),
- ),
- 'default' => '20,21,22,25,53,80,110,143,443,3306,8080,10000',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'udp_port' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\s0-9\,\:]{0,255}$/',
- 'errmsg'=> 'tcp_ports_error_regex'),
- ),
- 'default' => '53,3306',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'y',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/groups.tform.php b/interface/ispconfig/interface/admin/form/groups.tform.php
deleted file mode 100644
index c27cfad6326dd5ce23801597c857578572334bb7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/groups.tform.php
+++ /dev/null
@@ -1,112 +0,0 @@
- "Groups",
- 'width' => 80,
- 'template' => "templates/groups_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,30}$/',
- 'errmsg' => 'name_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'description' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '5',
- 'cols' => '30'
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/remote_user.tform.php b/interface/ispconfig/interface/admin/form/remote_user.tform.php
deleted file mode 100644
index 2657656244595c07f7f12180ddc969093de527c5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/remote_user.tform.php
+++ /dev/null
@@ -1,160 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['remote_user'] = array (
- 'title' => "Remote User",
- 'width' => 100,
- 'template' => "templates/remote_user_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'remote_userid' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username',
- 'keyfield'=> 'remote_userid',
- 'valuefield'=> 'remote_username'
- ),
- 'value' => ''
- ),
-
- 'remote_username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'username_error_unique'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}$/',
- 'errmsg'=> 'username_error_regex'),
-2 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'username_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'remote_password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'PASSWORD',
- 'encryption' => 'MD5',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'remote_functions' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'CHECKBOXARRAY',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $function_list,
- 'separator' => ';',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '5',
- 'cols' => '30'
- )
-
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-
-
-?>
diff --git a/interface/ispconfig/interface/admin/form/server.tform.php b/interface/ispconfig/interface/admin/form/server.tform.php
deleted file mode 100644
index 9c0138bb792d120e568cca43c1e067a9732b34a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/server.tform.php
+++ /dev/null
@@ -1,157 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 1; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['services'] = array (
- 'title' => "Services",
- 'width' => 100,
- 'template' => "templates/server_edit_services.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'mail_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'web_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'dns_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'file_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'db_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'vserver_server' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'default' => '0',
- 'value' => array(0 => 0,1 => 1)
- ),
- 'mirror_server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => ''
- ),
- /*
- 'update' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'value' => array(0 => 'No', 1 => 'Yes')
- ),
- */
- 'active' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'value' => array(0 => 'No', 1 => 'Yes')
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-/*
-$form["tabs"]['config'] = array (
- 'title' => "Config",
- 'width' => 100,
- 'template' => "templates/server_edit_config.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'config' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'default' => '',
- 'value' => '',
- 'width' => '',
- 'cols' => '40',
- 'rows' => '20',
- 'maxlength' => ''
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-*/
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/server_config.tform.php b/interface/ispconfig/interface/admin/form/server_config.tform.php
deleted file mode 100644
index b16f9234f6016316a52bb5f5d5d32fdca1c0db5c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/server_config.tform.php
+++ /dev/null
@@ -1,750 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['server'] = array (
- 'title' => "Server",
- 'width' => 70,
- 'template' => "templates/server_config_server_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'auto_network_configuration' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'n',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- 'ip_address' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '192.168.0.105',
- 'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
- 'errmsg'=> 'ip_address_error_wrong'),
- ),
- 'value' => '',
- 'width' => '15',
- 'maxlength' => '255'
- ),
- 'netmask' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '255.255.255.0',
- 'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
- 'errmsg'=> 'netmask_error_wrong'),
- ),
- 'value' => '',
- 'width' => '15',
- 'maxlength' => '255'
- ),
- 'gateway' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '192.168.0.1',
- 'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
- 'errmsg'=> 'gateway_error_wrong'),
- ),
- 'value' => '',
- 'width' => '15',
- 'maxlength' => '255'
- ),
- 'hostname' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'server1.domain.tld',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'hostname_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'nameservers' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '192.168.0.1,192.168.0.2',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'nameservers_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'loglevel' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '2',
- 'value' => array('0' => 'Debug', '1' => 'Warnings', '2' => 'Errors'),
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['mail'] = array (
- 'title' => "Mail",
- 'width' => 60,
- 'template' => "templates/server_config_mail_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'module' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => array('postfix_mysql' => 'postfix_mysql')
- ),
- 'maildir_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '/home/vmail/[domain]/[localpart]/',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'maildir_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'homedir_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '/home/vmail/',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'homedir_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'pop3_imap_daemon' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '20',
- 'value' => array('courier' => 'Courier', 'dovecot' => 'Dovecot')
- ),
- 'mail_filter_syntax' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '20',
- 'value' => array('maildrop' => 'Maildrop', 'sieve' => 'Sieve')
- ),
- 'mailuser_uid' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '5000',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'mailuser_uid_error_empty'),
- ),
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '255'
- ),
- 'mailuser_gid' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '5000',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'mailuser_gid_error_empty'),
- ),
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '255'
- ),
- 'mailuser_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'vmail',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'mailuser_name_error_empty'),
- ),
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '255'
- ),
- 'mailuser_group' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'vmail',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'mailuser_group_error_empty'),
- ),
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '255'
- ),
- 'relayhost' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'relayhost_user' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'relayhost_password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'mailbox_size_limit' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '15'
- ),
- 'message_size_limit' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '15'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['getmail'] = array (
- 'title' => "Getmail",
- 'width' => 80,
- 'template' => "templates/server_config_getmail_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'getmail_config_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'getmail_config_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['web'] = array (
- 'title' => "Web",
- 'width' => 60,
- 'template' => "templates/server_config_web_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'website_basedir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'website_basedir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'website_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'website_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'website_symlinks' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'website_symlinks_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'vhost_conf_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'vhost_conf_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'vhost_conf_enabled_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'vhost_conf_enabled_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'security_level' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '20',
- 'value' => array('10' => 'Medium', '20' => 'High')
- ),
- 'user' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'apache_user_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'group' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'apache_group_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'php_open_basedir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'php_open_basedir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'htaccess_allow_override' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'htaccess_allow_override_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'apps_vhost_port' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '8081',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'apps_vhost_port_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'apps_vhost_ip' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '_default_',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'apps_vhost_ip_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'apps_vhost_servername' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS",
- 'width' => 60,
- 'template' => "templates/server_config_dns_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'bind_user' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'bind_user_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'bind_group' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'bind_group_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'bind_zonefiles_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'bind_zonefiles_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'named_conf_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'named_conf_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'named_conf_local_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'named_conf_local_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['fastcgi'] = array (
- 'title' => "FastCGI",
- 'width' => 80,
- 'template' => "templates/server_config_fastcgi_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'fastcgi_starter_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_starter_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_starter_script' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_starter_script_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_alias' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_alias_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_phpini_path' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_phpini_path_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_children' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_children_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_max_requests' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_max_requests_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fastcgi_bin' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'fastcgi_bin_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-$form["tabs"]['jailkit'] = array (
- 'title' => "Jailkit",
- 'width' => 80,
- 'template' => "templates/server_config_jailkit_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'jailkit_chroot_home' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'jailkit_chroot_home_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'jailkit_chroot_app_sections' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'jailkit_chroot_app_sections_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '1000'
- ),
- 'jailkit_chroot_app_programs' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'jailkit_chroot_app_programs_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '1000'
- ),
- 'jailkit_chroot_cron_programs' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'jailkit_chroot_cron_programs_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '1000'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-$form["tabs"]['vlogger'] = array (
- 'title' => "vlogger",
- 'width' => 80,
- 'template' => "templates/server_config_vlogger_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'config_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'vlogger_config_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-$form["tabs"]['cron'] = array (
- 'title' => "Cron",
- 'width' => 80,
- 'template' => "templates/server_config_cron_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'init_script' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'cron_init_script_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'crontab_dir' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'crontab_dir_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'wget' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'cron_wget_error_empty'),
- ),
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-
-
-
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/server_ip.tform.php b/interface/ispconfig/interface/admin/form/server_ip.tform.php
deleted file mode 100644
index d0f12dae8f0198cace5296f50f7e5198bed076f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/server_ip.tform.php
+++ /dev/null
@@ -1,125 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['server_ip'] = array (
- 'title' => "IP Address",
- 'width' => 80,
- 'template' => "templates/server_ip_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'ip_address' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
- 'errmsg'=> 'ip_error_wrong'),
- 1 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'ip_error_unique'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '15',
- 'rows' => '',
- 'cols' => ''
- ),
- 'virtualhost' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'y',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/software_repo.tform.php b/interface/ispconfig/interface/admin/form/software_repo.tform.php
deleted file mode 100644
index 361d93c7944b6db1f62d962005ee8d7b7e1aaaa9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/software_repo.tform.php
+++ /dev/null
@@ -1,153 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['software_repo'] = array (
- 'title' => "Repository",
- 'width' => 80,
- 'template' => "templates/software_repo_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'repo_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'repo_name_empty'),
- 1 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'repo_name_unique'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '40',
- 'maxlength' => '40',
- 'rows' => '',
- 'cols' => ''
- ),
- 'repo_url' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'repo_name_empty'),
- 1 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'repo_name_unique'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '40',
- 'maxlength' => '40',
- 'rows' => '',
- 'cols' => ''
- ),
- 'repo_username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '30',
- 'rows' => '',
- 'cols' => ''
- ),
- 'repo_password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'PASSWORD',
- 'encryption' => 'CLEARTEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '30',
- 'rows' => '',
- 'cols' => ''
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'y',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/system_config.tform.php b/interface/ispconfig/interface/admin/form/system_config.tform.php
deleted file mode 100644
index 2ce24c52f2214faad8f731f6ac7bf0e5ccca03ce..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/system_config.tform.php
+++ /dev/null
@@ -1,167 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['sites'] = array (
- 'title' => "Sites",
- 'width' => 70,
- 'template' => "templates/system_config_sites_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'dbname_prefix' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
- 'errmsg'=> 'dbname_prefix_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'dbuser_prefix' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
- 'errmsg'=> 'dbuser_prefix_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'ftpuser_prefix' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
- 'errmsg'=> 'ftpuser_prefix_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'shelluser_prefix' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
- 'errmsg'=> 'shelluser_prefix_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'dblist_phpmyadmin_link' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'n',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- 'phpmyadmin_url' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
- 'errmsg'=> 'phpmyadmin_url_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['mail'] = array (
- 'title' => "Mail",
- 'width' => 70,
- 'template' => "templates/system_config_mail_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'mailboxlist_webmail_link' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'n',
- 'value' => array(0 => 'n',1 => 'y')
- ),
- 'webmail_url' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
- 'errmsg'=> 'webmail_url_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/form/users.tform.php b/interface/ispconfig/interface/admin/form/users.tform.php
deleted file mode 100644
index 1edbb0cc432afbb6a0e7dd78dd54c095ed3d7624..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/form/users.tform.php
+++ /dev/null
@@ -1,456 +0,0 @@
- 0 id must match with id of current user
-$form['auth_preset']['userid'] = 0;
-//* 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form['auth_preset']['groupid'] = 0;
-
-//** Permissions are: r = read, i = insert, u = update, d = delete
-$form['auth_preset']['perm_user'] = 'riud';
-$form['auth_preset']['perm_group'] = 'riud';
-$form['auth_preset']['perm_other'] = '';
-
-//* Pick out modules
-$modules_list = array();
-$handle = @opendir(ISPC_WEB_PATH);
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH."/$file")) {
- if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login' && $file != 'designer') {
- $modules_list[$file] = $file;
- }
- }
- }
-}
-
-//* Load themes
-$themes_list = array();
-$handle = @opendir(ISPC_THEMES_PATH);
-while ($file = @readdir ($handle)) {
- if (substr($file, 0, 1) != '.') {
- if(@is_dir(ISPC_THEMES_PATH."/$file")) {
- $themes_list[$file] = $file;
- }
- }
-}
-
-//* Languages
-$language_list = array();
-$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') {
- $tmp = substr($file, 0, 2);
- $language_list[$tmp] = $tmp;
- }
- }
-}
-
-//* Pick out groups
-$groups_list = array();
-$tmp_records = $app->db->queryAllRecords('SELECT groupid, name FROM sys_group ORDER BY name');
-if(is_array($tmp_records)) {
- foreach($tmp_records as $tmp_rec) {
- $groups_list[$tmp_rec['groupid']] = $tmp_rec['name'];
- }
-}
-
-$form['tabs']['users'] = array (
- 'title' => 'Users',
- 'width' => 80,
- 'template' => 'templates/users_user_edit.htm',
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'username_empty'),
- 1 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'username_unique'),
- 2 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\_]{0,64}$/',
- 'errmsg'=> 'username_err'),
- ),
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '30',
- 'rows' => '',
- 'cols' => ''
- ),
- 'passwort' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'PASSWORD',
- 'encryption'=> 'CRYPT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '100',
- 'rows' => '',
- 'cols' => ''
- ),
- 'modules' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => 'admin,forms',
- 'value' => $modules_list,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'startmodule' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $modules_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'app_theme' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'RADIO',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => 'default',
- 'value' => $themes_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'typ' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'RADIO',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => 'user',
- 'value' => array ('user' => 'user', 'admin' => 'admin'),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'active' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => array(0 => 0,1 => 1),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'language' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $language_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '2',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-/*
-$form['tabs']['address'] = array (
- 'title' => 'Address',
- 'width' => 80,
- 'template' => 'templates/users_address_edit.htm',
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'vorname' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'unternehmen' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'strasse' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ort' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'plz' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'land' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'email' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'url' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'telefon' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'fax' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
-
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-*/
-
-$form['tabs']['groups'] = array (
- 'title' => 'Groups',
- 'width' => 80,
- 'template' => 'templates/users_groups_edit.htm',
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'default_group' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $groups_list,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'groups' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $groups_list,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
-
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/groups_del.php b/interface/ispconfig/interface/admin/groups_del.php
deleted file mode 100644
index a7a804db59c344aa6acc286ed5e884c1b8e89a9e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/groups_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/groups_edit.php b/interface/ispconfig/interface/admin/groups_edit.php
deleted file mode 100644
index bee5976db23e01ac2cd206e632dd6a1a16d63735..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/groups_edit.php
+++ /dev/null
@@ -1,53 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-
-// let tform_actions handle the page
-$app->tform_actions->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/groups_list.php b/interface/ispconfig/interface/admin/groups_list.php
deleted file mode 100644
index fee6a17bbc2f138adf202d2093c2a88ef9405615..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/groups_list.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/index.php b/interface/ispconfig/interface/admin/index.php
deleted file mode 100644
index 50afd7bca5c810acfcd7d7a658063c6527de4851..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/index.php
+++ /dev/null
@@ -1,78 +0,0 @@
-uses('tpl');
- $app->tpl->newTemplate("form.tpl.htm");
-
- $app->tpl->setVar('error',$error);
- $app->tpl->setInclude('content_tpl','admin/templates/index.htm');
- return $app->tpl->grab();
- /*
- $filename = 'test.txt';
-$somecontent = $app->tpl->grab();
-
-// Sichergehen, dass die Datei existiert und beschreibbar ist
-
-
- // Wir ffnen $filename im "Anhnge" - Modus.
- // Der Dateizeiger befindet sich am Ende der Datei, und
- // dort wird $somecontent spter mit fwrite() geschrieben.
- if (!$handle = fopen($filename, "w")) {
- print "Kann die Datei $filename nicht ffnen";
- exit;
- }
-
- // Schreibe $somecontent in die geffnete Datei.
- if (!fwrite($handle, $somecontent)) {
- print "Kann in die Datei $filename nicht schreiben";
- exit;
- }
-
-
- fclose($handle);
-
-
-
-
- return 'dd';
- */
- }
-}
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/language_add.php b/interface/ispconfig/interface/admin/language_add.php
deleted file mode 100644
index 9ab9adccc941c7f1a580d131ab5b6dc29ea1591c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_add.php
+++ /dev/null
@@ -1,104 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_add.htm');
-
-//* reading languages
-$language_option = '';
-$error = '';
-$msg = '';
-$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en';
-if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.');
-
-$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/');
-while ($file = readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- $tmp_lng = substr($file,0,-4);
- if($tmp_lng !='') {
- $selected = ($tmp_lng == $selected_language)?'SELECTED':'';
- $language_option .= "$tmp_lng ";
- if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.';
- }
- }
-}
-$app->tpl->setVar('language_option',$language_option);
-$app->tpl->setVar('error',$error);
-
-if(isset($_POST['lng_new']) && strlen($_POST['lng_new']) == 2 && $error == '') {
- $lng_new = $_POST['lng_new'];
- if(!preg_match("/^[a-z]{2}$/i", $lng_new)) die('unallowed characters in language name.');
-
- //* Copy the main language file
- copy(ISPC_LIB_PATH."/lang/$selected_language.lng",ISPC_LIB_PATH."/lang/$lng_new.lng");
-
- //* Make a copy of every language file
- $bgcolor = '#FFFFFF';
- $language_files_list = array();
- $handle = @opendir(ISPC_WEB_PATH);
- while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) {
- $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang');
- while ($lang_file = @readdir ($handle2)) {
- if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) {
- $new_lang_file = $lng_new.substr($lang_file,2);
- //echo ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file.' ## '.ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$new_lang_file;
- copy(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file,ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$new_lang_file);
- $msg = 'Added new language '.$lng_new;
- }
- }
- }
- }
- }
-}
-
-$app->tpl->setVar('msg',$msg);
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_add.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/language_complete.php b/interface/ispconfig/interface/admin/language_complete.php
deleted file mode 100644
index 0906a52b54d2beb91e8772e2bbad454e36ff5b69..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_complete.php
+++ /dev/null
@@ -1,167 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_complete.htm');
-
-//* reading languages
-$language_option = '';
-$error = '';
-$msg = '';
-$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en';
-if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.');
-
-$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/');
-while ($file = readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- $tmp_lng = substr($file,0,-4);
- if($tmp_lng !='' && $tmp_lng != 'en') {
- $selected = ($tmp_lng == $selected_language)?'SELECTED':'';
- $language_option .= "$tmp_lng ";
- //if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.';
- }
- }
-}
-$app->tpl->setVar('language_option',$language_option);
-$app->tpl->setVar('error',$error);
-
-// Export the language file
-if(isset($_POST['lng_select']) && $error == '') {
-
- // complete the global langauge file
- merge_langfile(ISPC_LIB_PATH."/lang/".$selected_language.".lng",ISPC_LIB_PATH."/lang/en.lng");
-
- // Go trough all language files
- $bgcolor = '#FFFFFF';
- $language_files_list = array();
- $handle = @opendir(ISPC_WEB_PATH);
- while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) {
- $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang');
- while ($lang_file = @readdir ($handle2)) {
- if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == 'en') {
- $target_lang_file = $selected_language.substr($lang_file,2);
- merge_langfile(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$target_lang_file,ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file);
- }
- }
- $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang');
- while ($lang_file = @readdir ($handle2)) {
- if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) {
- $master_lang_file=ISPC_WEB_PATH.'/'.$file.'/lib/lang/en'.substr($lang_file,2);
- $target_lang_file=ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file;
- if(!file_exists($master_lang_file)){
- unlink($target_lang_file);
- $msg.="File $target_lang_file removed because does not exist in master language ";
- }
- }
- }//Finish of remove the files how not exists in master language
- }
- }
- }
-if($msg=='')
-$msg="No files created, removed or modified ";
-}
-
-function merge_langfile($langfile,$masterfile) {
- global $msg;
-
- if(is_file($langfile)) {
-
- // Load the english language file
- include($masterfile);
- if(isset($wb) && is_array($wb)) {
- $wb_master = $wb;
- unset($wb);
- } else {
- $wb_master = array();
- }
-
- // Load the incomplete language file
- $wb = array();
- include($langfile);
-
- $n = 0;
- foreach($wb_master as $key => $val) {
- if(!isset($wb[$key])) {
- $wb[$key] = $val;
- $n++;
- }
- }
-
- $r = 0;
- foreach($wb as $key => $val) {
- if(!isset($wb_master[$key])) {
- unset($wb[$key]);
- $r++;
- }
- }
-
- $file_content = " $val) {
- $val = str_replace("'",'',$val);
- $val = str_replace('"','',$val);
- $file_content .= '$wb['."'$key'".'] = '."'$val';\n";
- }
- $file_content .= "?>\n";
-
- if($n!=0)
- $msg .= "Added $n lines to the file $langfile ";
- if($r!=0)
- $msg .= "Removed $r lines to the file $langfile ";
- file_put_contents($langfile ,$file_content);
- } else {
- $msg .= "File does not exist yet. Copied file $masterfile to $langfile ";
- copy($masterfile,$langfile);
- }
-}
-
-$app->tpl->setVar('msg',$msg);
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_complete.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/language_edit.php b/interface/ispconfig/interface/admin/language_edit.php
deleted file mode 100644
index d76dc62a8bc4028ccffa809ce7384f6c6743f429..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_edit.php
+++ /dev/null
@@ -1,104 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_edit.htm');
-
-$lang = $_REQUEST['lang'];
-$module = $_REQUEST['module'];
-$lang_file = $_REQUEST['lang_file'];
-
-if(!preg_match("/^[a-z]+$/i", $lang)) die('unallowed characters in language name.');
-if(!preg_match("/^[a-z_]+$/i", $module)) die('unallowed characters in module name.');
-if(!preg_match("/^[a-z\._]+$/i", $lang_file)) die('unallowed characters in language file name.');
-
-$msg = '';
-
-//* Save data
-if(isset($_POST['records']) && is_array($_POST['records'])) {
- $file_content = " $val) {
- $val = stripslashes($val);
- $val = str_replace('"','\"',$val);
- $val = str_replace('$','',$val);
- $file_content .= '$wb['."'$key'".'] = "'.$val.'";'."\n";
- $msg = 'File saved.';
- }
- $file_content .= "?>\n";
- if($module == 'global') {
- file_put_contents(ISPC_LIB_PATH."/lang/$lang_file" ,$file_content);
- } else {
- file_put_contents(ISPC_WEB_PATH."/$module/lib/lang/$lang_file" ,$file_content);
- }
-}
-
-
-$app->tpl->setVar(array('module' => $module,'lang_file' => $lang_file, 'lang' => $lang, 'msg' => $msg));
-
-if($module == 'global') {
- include(ISPC_LIB_PATH."/lang/$lang_file");
- $file_path = ISPC_LIB_PATH."/lang/$lang_file";
-} else {
- include(ISPC_WEB_PATH."/$module/lib/lang/$lang_file");
- $file_path = ISPC_WEB_PATH."/$module/lib/lang/$lang_file";
-}
-$app->tpl->setVar("file_path", $file_path);
-
-$keyword_list = array();
-if(isset($wb) && is_array($wb)) {
- foreach($wb as $key => $val) {
- $keyword_list[] = array('key' => $key, 'val' => $val);
- }
-
- $app->tpl->setLoop('records', $keyword_list);
- unset($wb);
-}
-
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_edit.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
diff --git a/interface/ispconfig/interface/admin/language_export.php b/interface/ispconfig/interface/admin/language_export.php
deleted file mode 100644
index eb5790bf19d1d3805baada7cc233ca9d1263b84d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_export.php
+++ /dev/null
@@ -1,120 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_export.htm');
-
-//* reading languages
-$language_option = '';
-$error = '';
-$msg = '';
-$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):'en';
-if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die('unallowed characters in selected language name.');
-
-$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/');
-while ($file = readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- $tmp_lng = substr($file,0,-4);
- if($tmp_lng !='') {
- $selected = ($tmp_lng == $selected_language)?'SELECTED':'';
- $language_option .= "$tmp_lng ";
- //if(isset($_POST['lng_new']) && $_POST['lng_new'] == $tmp_lng) $error = 'Language exists already.';
- }
- }
-}
-$app->tpl->setVar('language_option',$language_option);
-$app->tpl->setVar('error',$error);
-
-// Export the language file
-if(isset($_POST['lng_select']) && $error == '') {
- //$lng_select = $_POST['lng_select'];
- //if(!preg_match("/^[a-z]{2}$/i", $lng_select)) die('unallowed characters in language name.');
-
- // This variable contains the content of the language files
- $content = '';
- $content .= "---|ISPConfig Language File|".$conf["app_version"]."|".$selected_language."\n";
-
- //* get the global language file
- $content .= "--|global|".$selected_language."|".$selected_language.".lng\n";
- $content .= file_get_contents(ISPC_LIB_PATH."/lang/".$selected_language.".lng")."\n";
-
- //* Get the global file of the module
- //$content .= "---|$module|$selected_language|\n";
- //copy(ISPC_WEB_PATH."/$module/lib/lang/$selected_language.lng",ISPC_WEB_PATH."/$module/lib/lang/$lng_new.lng");
- $bgcolor = '#FFFFFF';
- $language_files_list = array();
- $handle = @opendir(ISPC_WEB_PATH);
- while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) {
- $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang');
- while ($lang_file = @readdir ($handle2)) {
- if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) {
- $content .= "--|".$file."|".$selected_language."|".$lang_file."\n";
- $content .= file_get_contents(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file)."\n";
- $msg .= 'Exported language file '.$lang_file.' ';
- }
- }
- }
- }
- }
-
- $content .= '---|EOF';
-
- // Write the language file
- file_put_contents(ISPC_WEB_TEMP_PATH.'/'.$selected_language.'.lng', $content);
-
- $msg = "Exported language file to: /temp/".$selected_language.'.lng ';
-
- //$msg = nl2br($content);
-}
-
-$app->tpl->setVar('msg',$msg);
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_export.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/language_import.php b/interface/ispconfig/interface/admin/language_import.php
deleted file mode 100644
index 12eb86d4abc19d12e659aafedb4edb6507099012..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_import.php
+++ /dev/null
@@ -1,105 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_import.htm');
-$msg = '';
-$error = '';
-
-// Export the language file
-if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'])) {
- $lines = file($_FILES['file']['tmp_name']);
- // initial check
- $parts = explode('|',$lines[0]);
- if($parts[0] == '---' && $parts[1] == 'ISPConfig Language File') {
- if($_POST['ignore_version'] != 1 && $parts[2] != $conf["app_version"]) {
- $error .= 'Application version does not match. Appversion: '.$conf["app_version"].' Lanfile version: '.$parts[2];
- } else {
- unset($lines[0]);
-
- $buffer = '';
- $langfile_path = '';
- // all other lines
- foreach($lines as $line) {
- $parts = explode('|',$line);
- if(is_array($parts) && count($parts) > 0 && $parts[0] == '--') {
- // Write language file, if its not the first file
- if($buffer != '' && $langfile_path != '') {
- if(@$_REQUEST['overwrite'] != 1 && @is_file($langfile_path)) {
- $error .= "File exists, not written: $langfile_path ";
- } else {
- $msg .= "File written: $langfile_path ";
- file_put_contents($langfile_path,$buffer);
- }
- }
- // empty buffer and set variables
- $buffer = '';
- $module_name = trim($parts[1]);
- $selected_language = trim($parts[2]);
- $file_name = trim($parts[3]);
- if(!preg_match("/^[a-z]{2}$/i", $selected_language)) die("unallowed characters in selected language name: $selected_language");
- if(!preg_match("/^[a-z_]+$/i", $module_name)) die('unallowed characters in module name.');
- if(!preg_match("/^[a-z\._]+$/i", $file_name) || stristr($file_name,'..')) die("unallowed characters in language file name: '$file_name'");
- if($module_name == 'global') {
- $langfile_path = trim(ISPC_LIB_PATH."/lang/".$selected_language.".lng");
- } else {
- $langfile_path = trim(ISPC_WEB_PATH.'/'.$module_name.'/lib/lang/'.$file_name);
- }
- } else {
- $buffer .= $line;
- }
- }
- }
- }
-}
-
-$app->tpl->setVar('msg',$msg);
-$app->tpl->setVar('error',$error);
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_import.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/language_list.php b/interface/ispconfig/interface/admin/language_list.php
deleted file mode 100644
index f423be4cc5b397a68ab9d51276bd57268dbef133..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/language_list.php
+++ /dev/null
@@ -1,108 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/language_list.htm');
-
-$language_files_list = array();
-$bgcolor = '#FFFFFF';
-
-//* reading languages
-$language_option = '';
-$selected_language = (isset($_REQUEST['lng_select']))?substr($_REQUEST['lng_select'],0,2):$_SESSION['s']['language'];
-$handle = opendir(ISPC_ROOT_PATH.'/lib/lang/');
-while ($file = readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- $tmp_lng = substr($file,0,-4);
- if($tmp_lng !='') {
- $selected = ($tmp_lng == $selected_language)?'SELECTED':'';
- $language_option .= "$tmp_lng ";
-
- //$bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF';
- if($file == $selected_language.'.lng') {
- $language_files_list[] = array( 'module' => 'global',
- 'lang_file' => $file,
- 'lang_file_date' => date("Y-m-d H:i:s", filectime(ISPC_ROOT_PATH.'/lib/lang/'.$file)),
- 'bgcolor' => $bgcolor,
- 'lang' => $selected_language);
- }
-
-
- }
- }
-}
-$app->tpl->setVar('language_option',$language_option);
-// $app->tpl->setLoop('records', $language_list);
-
-//* list all language files of the selected language
-$handle = @opendir(ISPC_WEB_PATH);
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH.'/'.$file.'/lib/lang')) {
- $handle2 = opendir(ISPC_WEB_PATH.'/'.$file.'/lib/lang');
- while ($lang_file = @readdir ($handle2)) {
- if ($lang_file != '.' && $lang_file != '..' && substr($lang_file,0,2) == $selected_language) {
- $bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF';
- $language_files_list[] = array( 'module' => $file,
- 'lang_file' => $lang_file,
- 'lang_file_date' => date("Y-m-d H:i:s", filectime(ISPC_WEB_PATH.'/'.$file.'/lib/lang/'.$lang_file)),
- 'bgcolor' => $bgcolor,
- 'lang' => $selected_language);
- }
- }
- }
- }
-}
-
-$app->tpl->setLoop('records', $language_files_list);
-
-
-
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_list.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg.lng b/interface/ispconfig/interface/admin/lib/lang/bg.lng
deleted file mode 100644
index 8a1c30b48ae427bf10f741eedc907227296272d2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng
deleted file mode 100644
index e626345d3c1ee3bbce74ffd70c36fcc7ff3297c2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng
deleted file mode 100644
index 24a34be1c121271493b5c469f3defce76a660523..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng b/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng
deleted file mode 100644
index b59c2102caf425f4ba535d6130ab49d14c11ce8f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng
deleted file mode 100644
index fcf73a118cef10ddaafcbc5c3a59bd7c9ac900f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng
deleted file mode 100644
index 2dd36894ed353b9f99da264b97d2dc954bcb9dc5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng
deleted file mode 100644
index 30c51c292a4479a563744d95c351ecd1dab83f74..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Към избрания език ще бъдат добавени файлове и отделни записи, които липсват в него, но съществуват в английския.';
-$wb['language_select_txt'] = 'Изберете език';
-$wb['btn_save_txt'] = 'Сливане';
-$wb['btn_cancel_txt'] = 'Отказ';
-$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. This adds missing strings from the english master language files to the selected language.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng
deleted file mode 100644
index ce30b66fc18d7fddf8f7786fe050700b3aa1275d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng
deleted file mode 100644
index d8e91de25ce9734417c57226939d5fb2452e1a11..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng
deleted file mode 100644
index 4d3922ed7e2fb8e9131374a091f61fac0b4ca030..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng
deleted file mode 100644
index 2a096aa61342345a794308c20b403245a7b60adf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server.lng
deleted file mode 100644
index 1b42f22c89bb1d1b31c43935eb77ab24fd28db77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng
deleted file mode 100644
index 16803a9f5cdd6bf7f712f631d086785bf7b369b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng
deleted file mode 100644
index 636c2e050a026856a624bbd1ef3613df64544ba7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng
deleted file mode 100644
index 6d451f5b20bcee9480a6d5fccbc9c38bb974b113..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng
deleted file mode 100644
index 81ae8f01d6e8c9e1fc8e0029ece7fc5462338006..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng
deleted file mode 100644
index 7b42c497e85f27a477d02c860a8c82e730682850..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng
deleted file mode 100644
index 03917cabce20eb163fd64a168a2c8bbaf58599e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng
deleted file mode 100644
index 574dd1162989badc8499f5af31451a43673bf4da..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng
deleted file mode 100644
index b7a219ffa8e2f6d389fabdc5386286a24fc2a11a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng
deleted file mode 100644
index ebf4e6fbc544390ef8ea9357a33d184062568e27..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng
deleted file mode 100644
index e7f5d9365e01f4adcfe52c7c7aba0075a096283d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_users.lng b/interface/ispconfig/interface/admin/lib/lang/bg_users.lng
deleted file mode 100644
index 8e70364aa7e32dfaa3066c953250a7af61b1bdfe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng
deleted file mode 100644
index 0de8cdc3ef4b9567e6413742c7dadf388fa82d83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/bg_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/br.lng b/interface/ispconfig/interface/admin/lib/lang/br.lng
deleted file mode 100644
index 9debee0b48583fbaaa498d8dbd28670f0b3b47f7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng
deleted file mode 100644
index 40a7496af0ab97f0730c20e63df8c6d9c727dc62..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng
deleted file mode 100644
index d2999571241ce1e766bc87e1a315476fa1521bb9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_groups.lng b/interface/ispconfig/interface/admin/lib/lang/br_groups.lng
deleted file mode 100644
index 41afadbfef2642b50f2dde7912caa81f15ae7c81..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng
deleted file mode 100644
index 73a6f438fff0cfca44d92842d951d96eb67256ab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-AVISO: Não modifique ou edite qualquer configuração de usuário aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar usuários e grupos aqui pode ocasionar perda de dados!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng
deleted file mode 100644
index 064b9eaf0a4a90a94945840c3937e890b22261ac..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng
deleted file mode 100644
index c4c0b1453e684e49fb4b7bc982f93c0f635084d7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Isto permite completar qualquer falha de tradução, com o arquivo principal original em inglês.';
-$wb['language_select_txt'] = 'Selecionar Idioma';
-$wb['btn_save_txt'] = 'Mesclar arquivos agora';
-$wb['btn_cancel_txt'] = 'Voltar';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng
deleted file mode 100644
index 2a3f572d19caa3883c54f76907e31bbdb3734c10..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng
deleted file mode 100644
index d4846613899570de4ac7fcb7dd1bb0c4c12710ac..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng
deleted file mode 100644
index 290335b6f0e6519a800064461e3a9f8bd947f452..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng
deleted file mode 100644
index 348b94aaf126579571317d392ee358f11fe44b7d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng
deleted file mode 100644
index c873979781206ec18ed485e2041e4ad389d2db65..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng
deleted file mode 100644
index d84321ddbdc067e3ee0e24a62a8d0bbc5a77dc47..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server.lng b/interface/ispconfig/interface/admin/lib/lang/br_server.lng
deleted file mode 100644
index 899104f61e6219205febffec45245a2348c4c7b4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng
deleted file mode 100644
index 6791ea1da696ff680f7e1645b6956b3a1d915cab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng
deleted file mode 100644
index 60047d5c183432eca141e1c11f0fe5150b301f01..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng
deleted file mode 100644
index b062dbbf169f9154d1d25c9855ebcdd75c10976e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng
deleted file mode 100644
index 864464e22f0f808a2e68b3cc892d3fbeeaba5707..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng
deleted file mode 100644
index 5a1266c6456d362367a4a8c1e8ef2681688d982e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng
deleted file mode 100644
index 893cc4cc373fb786317f3b477875c207ca182a85..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng
deleted file mode 100644
index 5b54c3080a049d334f22d959cbb248462779963c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng
deleted file mode 100644
index 6941c7f1470f06d93ed5c4b5a2436e8ec593356a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng
deleted file mode 100644
index e6af8ec634b3062f5fef25f2586833c3376a76f3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng
deleted file mode 100644
index 5fa32abd9ce3ca7e20c7aaf22a66ff11b4ec9383..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_users.lng b/interface/ispconfig/interface/admin/lib/lang/br_users.lng
deleted file mode 100644
index 28369f7a654a18102bc166498a6b77dc7584193d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng
deleted file mode 100644
index d21054a0844258574f307df2a72ef73140b78cfe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/br_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-AVISO: Não modifique ou edite qualquer configuração de usuário aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar usuários e grupos aqui pode ocasionar perda de dados!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/de.lng b/interface/ispconfig/interface/admin/lib/lang/de.lng
deleted file mode 100644
index c5fd284ee24591281987ba8755a0ff5ece6a6474..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng
deleted file mode 100644
index 0f58d7c3d7ec0d29e2a12812a61e4b6166e35878..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng
deleted file mode 100644
index aefad619ba3d876f33be29d81ee8560732477270..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_groups.lng b/interface/ispconfig/interface/admin/lib/lang/de_groups.lng
deleted file mode 100644
index 25f81b1f39c177e5450da0d23ba9d0f4294889ac..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng
deleted file mode 100644
index 244743177184de087808fba36d5f5bfc7c5f8080..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNUNG: Bitte hier keine Benutzereinstellungen verändern. Benutzen Sie die Kunden- und Resellereinstellungen im Kundenmodul. Modifizieren der Benutzer oder Gruppen hier könnte zum Datenverlust führen!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng
deleted file mode 100644
index 118bdee049d3c854e0088debf806c00216d9e075..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng
deleted file mode 100644
index 1376e0c8a258863d13d077abb8aa6f3389563755..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Dies fügt fehlende Sätze aus der englischen Master Sprachdatei in der gewählten Sprache ein.';
-$wb['language_select_txt'] = 'Sprache auswählen';
-$wb['btn_save_txt'] = 'Dateien jetzt zusammenführen';
-$wb['btn_cancel_txt'] = 'Zurück';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng
deleted file mode 100644
index 30ab21b28d0e65110f0f46e9401642bbadf7a2d7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng
deleted file mode 100644
index 70eb466d4ce79c8039ccf4afadd84959199d05ad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng
deleted file mode 100644
index 698213e4385c96bbd5cc661e806cb220df55f959..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng
deleted file mode 100644
index 074eab9e80ef66cfdbed295c3f30223874329a4b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng
deleted file mode 100644
index c6fddd9a666f88971277932fca5e4c4739cfe1f7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng
deleted file mode 100644
index 163b7e8473f2bcf9dd0c868fc8ea0d7fbaec919d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server.lng b/interface/ispconfig/interface/admin/lib/lang/de_server.lng
deleted file mode 100644
index f01116a58f4d57c5fdc6ca360d31437c581ed981..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng
deleted file mode 100644
index f0caa43f29b714580306ab30c9914accd75155a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng
deleted file mode 100644
index 191b2c8d32f65ec714a135fef04f123f0e4b9c3a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng
deleted file mode 100644
index 8210037c5ffab42e812fac2ebbcc869eeb83f047..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng
deleted file mode 100644
index 0d0727cd15a8315573e69198986f4d703306cd67..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng
deleted file mode 100644
index 332a603ccb596195bd4bfa4ec9614a88e21ad246..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng
deleted file mode 100644
index ca797d3cc7ef8da3d5c5b0e2f4b29dd89ced7f91..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng
deleted file mode 100644
index 6e54c4a6b30bc1a33267befe5a4f3760f03dd84e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng
deleted file mode 100644
index db6f49fd4edd70c55ebc84f05dc84fc704e861ce..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng
deleted file mode 100644
index 6f01c1f081fa5d195bd1837f2977c3ea9fa5f9eb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng
deleted file mode 100644
index 2c10f256779318d58c063f2ddabdeb3c77b7959e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_users.lng b/interface/ispconfig/interface/admin/lib/lang/de_users.lng
deleted file mode 100644
index 436cff547956a763c2ecb27c6d9d64d83bfe43be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng
deleted file mode 100644
index 73a61951794a3b6c2ebeb65921c54be5d8e3dd7f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/de_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNUNG: Bitte hier keine Benutzereinstellungen verändern. Benutzen Sie die Kunden- und Resellereinstellungen im Kundenmodul. Modifizieren der Benutzer oder Gruppen hier könnte zum Datenverlust führen!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/en.lng b/interface/ispconfig/interface/admin/lib/lang/en.lng
deleted file mode 100644
index 06a3b45bf0bbd98a5f66c872ad97d77dd6d76954..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng
deleted file mode 100644
index 025108bebefa2484e16f8a59b4cd7776d69ef61e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_firewall.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng
deleted file mode 100644
index d16e1c7dfcb8fac81462da0217b2a0355be8fdcc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_groups.lng b/interface/ispconfig/interface/admin/lib/lang/en_groups.lng
deleted file mode 100644
index a504f9913ef4fa30dd76004a1d3365622803d763..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng
deleted file mode 100644
index ba1831836ae442a56bceef72c91cb808814ec842..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng
deleted file mode 100644
index 2b5e5a40f89e8977436a8b3aa315504224297b8b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng
deleted file mode 100644
index 15438775fca485d0441d073001fe9970c7f6daa2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-This adds missing strings from the english master language files to the selected language.';
-$wb["language_select_txt"] = 'Select language';
-$wb['btn_save_txt'] = 'Merge files now';
-$wb['btn_cancel_txt'] = 'Back';
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng
deleted file mode 100644
index 4c50e883e6933c8a9449319b4524216e9adac9f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng
deleted file mode 100644
index 791fc894d31731be124b3cc083e4ace7661f9aa7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng
deleted file mode 100644
index a554c6c2200b493f8fc0ef60f744a01a1116c6c6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng
deleted file mode 100644
index e70f09f8eaf3c7df8c8e82d10c0d6c8a27f9883e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng
deleted file mode 100644
index 56c6fac4be29b7a8bbc856383c7044edd82214f4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_remote_user_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server.lng b/interface/ispconfig/interface/admin/lib/lang/en_server.lng
deleted file mode 100644
index dcd46c582ccce8c1eb025b0a73d59776e13c0575..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng
deleted file mode 100644
index 603245d7d40016568ef67ad33a98b3ede60d4979..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng
deleted file mode 100644
index 4d8a3f6a59645c3da2e611a07994613d263d87b1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng
deleted file mode 100644
index ae4717c5383e54fda6d958eddfb952b0c87ff4c5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng
deleted file mode 100644
index 008dfc4e0032a5d3e87f248353803cffb35277a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng
deleted file mode 100644
index d15701e807f3dfeced62a31265c274e7a864eac5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng
deleted file mode 100644
index 03917cabce20eb163fd64a168a2c8bbaf58599e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng
deleted file mode 100644
index 7968b000fddc0b703bdeb64d4faf940401899a33..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng
deleted file mode 100644
index f0a0b309205c4f6204a062a91707de60c49b2661..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng
deleted file mode 100644
index ec4af23a4bf359a8f669c4baf386b79da53dcd49..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng
deleted file mode 100644
index 450222722ab2777bf6ff0854f2327f213c03ba06..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_system_config.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_users.lng b/interface/ispconfig/interface/admin/lib/lang/en_users.lng
deleted file mode 100644
index 0f9a1c5b5629e7cb98931bda27f29bdc44de3873..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng
deleted file mode 100644
index 1042cd35b1dee40e9401292d33513c022594f39f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/en_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/lib/lang/es.lng b/interface/ispconfig/interface/admin/lib/lang/es.lng
deleted file mode 100644
index 3e3566f6e9cc1c1ed992966ce3a7beccb206b05e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng
deleted file mode 100644
index 2b31cf5aa54b79f4121b6f73a2f776c9bd7e5163..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng
deleted file mode 100644
index 8332c413a5d9bed64deea475ed6dea280fdc22fb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_groups.lng b/interface/ispconfig/interface/admin/lib/lang/es_groups.lng
deleted file mode 100644
index 37e6cd8eb86902d2b98e4e6b84b11c36c950e6cc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng
deleted file mode 100644
index f36c4d8587e28bc8da2a1cf8797ff03c6f0ddc8a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng
deleted file mode 100644
index d0f057aefc6bf3d7804b5f51753ebd84b3638f25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng
deleted file mode 100644
index 0e3e183f3bc8a729f92edbd1b968257574cecc97..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Esto añade las cadenas perdidas desde el fichero maestro en inglés.';
-$wb['language_select_txt'] = 'Elegir idioma';
-$wb['btn_save_txt'] = 'Mezclar los ficheros ahora';
-$wb['btn_cancel_txt'] = 'Atrás';
-$wb['list_desc_txt'] = 'Mezclar el fichero de idioma seleccionado con el fichero de idioma maestro en inglés. Esto añade cadenas perdidas desde el fichero de idioma maestro en inglés al idioma seleccionado.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng
deleted file mode 100644
index f471c4d40cf0b26a937123e8df63a779fb9d2048..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng
deleted file mode 100644
index 2883a7e202c00b86c6e1a5aa9816dd189ef6e048..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng
deleted file mode 100644
index 87b465e141393fb72deea5338d34d3d14150383e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng
deleted file mode 100644
index dfa2caeccc45c3410143e4d28d13f53e67d92c0b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng
deleted file mode 100644
index f3d3a9a12908cb714fc48da0dd5a388141abe750..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng
deleted file mode 100644
index e73f8002d9431f7e393deb52575da092e9afb419..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server.lng b/interface/ispconfig/interface/admin/lib/lang/es_server.lng
deleted file mode 100644
index e38ccfc92d21ab328881b0fc46ced73c73017630..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng
deleted file mode 100644
index a76a5cfe28aee6cce5355c0d355b941fa4dcef1a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng
deleted file mode 100644
index 6dd827ae027537fa47b6a54a7aaf6bdb6c577be7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng
deleted file mode 100644
index 6358c5d389d25e98d6e0834996a8f5f637c7805b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng
deleted file mode 100644
index 9ae98341570bf3dc066b629d7cf3d1599c65ba50..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng
deleted file mode 100644
index 11a8e6f10a0a50765ec1edede1986ffb9505f893..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng
deleted file mode 100644
index d4482d59ef3d7def989b77fbed5038160937f411..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng
deleted file mode 100644
index 3b9a89e88a233267935796debc6b78d7d55d9ea9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng
deleted file mode 100644
index 59f97903e7c1297cb0bbf46e121c010355a7fd7d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng
deleted file mode 100644
index adbe6d8c990298bea737b02cf6f52b1c7d5fb6b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng
deleted file mode 100644
index 7ce9dbebe9329f92f3f2d7636ea16b4254e11f8f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_users.lng b/interface/ispconfig/interface/admin/lib/lang/es_users.lng
deleted file mode 100644
index 1561060511aa130e815fc269a54dd30b4a01a9d3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng
deleted file mode 100644
index ec368916ffb03f2a28edcbffe10413dbcbd9c59e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/es_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi.lng b/interface/ispconfig/interface/admin/lib/lang/fi.lng
deleted file mode 100644
index 545a3bfa8c8b3e41bc1c90a6beefc3690f3cd93e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng
deleted file mode 100644
index 63cc2f7e716573fcc4f61f219bb7c907d3521d6a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng
deleted file mode 100644
index 96ff2dc63abeeff38ecbcf3d77e69a573b7f844f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng b/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng
deleted file mode 100644
index 141322bc008274184c4a4ff894720421bd73222f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng
deleted file mode 100644
index 71d9383996022cf9ba428afd138d40242ea31dcb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng
deleted file mode 100644
index 24efb7e4e09ebc32c7d53d529c477321c808fb94..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng
deleted file mode 100644
index b1776c9212b6e74c3074f9b33d5e07ac69c76324..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Tämä lisää puuttuvat käännöskohdat valittuun kielitiedostoon.';
-$wb['language_select_txt'] = 'Valitse täydennettävä kieli';
-$wb['btn_save_txt'] = 'Yhdistä kielitiedostot nyt';
-$wb['btn_cancel_txt'] = 'Keskeytä';
-$wb['list_desc_txt'] = 'Yhdistää valitun kielitiedoston englannin kielisen päätiedoston kanssa. Tämä lisää puuttuvat käännöstiedot valittuun kielitiedostoon.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng
deleted file mode 100644
index cdf73da643afb563ff1d2df34cd530399e75f285..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng
deleted file mode 100644
index b1ff06c4e8c96719efa699677a3a1747df7c5a3f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng
deleted file mode 100644
index ca60528e067a15633d006c5f0f18743ecec0fe11..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng
deleted file mode 100644
index 85e7b70e11c9313e5fbf5b6f0ac0e129955a22a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng
deleted file mode 100644
index 1876872ed36fa7ba7304c5a97837bc7190b19272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng
deleted file mode 100644
index 6aa4bd775377dbc211ddfc89b3eab05486152a28..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server.lng
deleted file mode 100644
index 10058aa7656021ac29e62464ba47f093edfadc66..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng
deleted file mode 100644
index 3ef8fd6910e3cf50c5baff28ae43395fb3a8c796..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng
deleted file mode 100644
index ed1cbed5b4656b7c01b16da5a778052d71c026c5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng
deleted file mode 100644
index 9c330fc45c66b69ab8fee2a5ae380aa51ef51c36..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng
deleted file mode 100644
index a297a62bf6c56094f43f4bf0a1c28ea4499fb1ab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng
deleted file mode 100644
index 30863bdf247d2e0ad51acdee2b6f4dd8cbada2f9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng
deleted file mode 100644
index a8957cc9f772dc4cf032283a37f7dca3c9e837a2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng
deleted file mode 100644
index c89969445fe5bfdddf0369b72c1934b578b0b7f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng
deleted file mode 100644
index bde844c99f8d8ea61c5e7b4b1dd98c831ae57a92..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng
deleted file mode 100644
index 9d9a2d2f7455c10fc2cfeab44b94b71aa4ef9695..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng
deleted file mode 100644
index 254801e737592a8650778d51c6e4fae64bca04d0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_users.lng b/interface/ispconfig/interface/admin/lib/lang/fi_users.lng
deleted file mode 100644
index 08bada0374e099ca3ce9d5b5a8e7728781ec0a5b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng
deleted file mode 100644
index fe58f3b3b6769338dca84c8e0e7df6bff6da830a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fi_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr.lng b/interface/ispconfig/interface/admin/lib/lang/fr.lng
deleted file mode 100644
index 929c46ef1500a469f0ab94630145da2d6d45c98b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng
deleted file mode 100644
index 128000a32791cee98fa48fb82f16ef37292ee037..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng
deleted file mode 100644
index 965eb0109ee6b191c6afb880610daa319e72f01f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng b/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng
deleted file mode 100644
index e0a92d7344a1ec1a2c46573e4c3d239ae0b4d349..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng
deleted file mode 100644
index 2ebbc365aca0d53316f457b8e4ce98ea3baca148..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng
deleted file mode 100644
index 7db36eb7c8651f107a0088b4b2df3756c4ac5ade..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng
deleted file mode 100644
index ede6ca5d09c6ea75738c3d66279e4ec1ac107252..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Ceci ajoute les élements manquant en anglais au fichier sélectionné.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng
deleted file mode 100644
index 021acb4408a896fda08929aa520e73bcafbcf6c9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng
deleted file mode 100644
index b8196967c8fa79224a2b245a210d93bb54f79141..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng
deleted file mode 100644
index 8f765458a7247eb9b5f696fbb3199f19a189c0de..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng
deleted file mode 100644
index 8e9f26a7b1534bcad19e4a639e1a3dd2976f617d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server.lng
deleted file mode 100644
index e8ab79753d8afad9208a2de1df4582bf53c32e0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng
deleted file mode 100644
index 0c228902f423392af9ccead05e4f0fdb65578c21..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng
deleted file mode 100644
index 850cdd12035255a20379510237d2c9a75c774be1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng
deleted file mode 100644
index 39ae21c601f19ead429195103f8c11409f7438e3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng
deleted file mode 100644
index 6bef5a3732987db888157b82985cf61967168742..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng
deleted file mode 100644
index 32637a3507690d2de18c53d0dab75436de56c580..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng
deleted file mode 100644
index f3d2c87b715a4055b8279143670b94840d41af28..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng
deleted file mode 100644
index 7b3ec481a2867b3d383dd73d2f04f76b4fd1a48f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng
deleted file mode 100644
index 56749896bb0bf5c6b876cc1646a07ee273380656..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng
deleted file mode 100644
index e630b6741b71c0d19715f3d15606465e5c93b17a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng
deleted file mode 100644
index 9c7f7d9079f0b0399614a685f99e6aa872938cfc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_users.lng b/interface/ispconfig/interface/admin/lib/lang/fr_users.lng
deleted file mode 100644
index 9bef687fb31a87bb708f26825618ffa21491a4be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng
deleted file mode 100644
index 6d70fd85c2cf4bd0f12462dac4631ae2fe9ece99..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/fr_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu.lng b/interface/ispconfig/interface/admin/lib/lang/hu.lng
deleted file mode 100644
index d9e925f8381b3c6416b5bacec740a9ab8851e5a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng
deleted file mode 100644
index e626345d3c1ee3bbce74ffd70c36fcc7ff3297c2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng
deleted file mode 100644
index 24a34be1c121271493b5c469f3defce76a660523..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng b/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng
deleted file mode 100644
index 61c3dc538d47a4daad960cc7be1d4fca220b5a06..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng
deleted file mode 100644
index f1d8e2c1a33b92ad997cc3373de412aacf5202dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng
deleted file mode 100644
index 8236c48512e03c091563d0b4862ef661a8c44c12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng
deleted file mode 100644
index b5200ff9df30536d461edf601236bc2e91112af7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-This adds missing strings from the english master language files to the selected language.';
-$wb['language_select_txt'] = 'Select language';
-$wb['btn_save_txt'] = 'Merge files now';
-$wb['btn_cancel_txt'] = 'Back';
-$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. This adds missing strings from the english master language files to the selected language.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng
deleted file mode 100644
index 06ec606b03bd9c1a891c0a88100e39de569945c4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng
deleted file mode 100644
index 64c537f60de125706b991d871b8728c51e28d1d4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng
deleted file mode 100644
index 811100182ed6b31ed2b243b730cab5416534597a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng
deleted file mode 100644
index 658bd41256703e1bca1aaa1b5438d7429930f3b7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server.lng
deleted file mode 100644
index 1d61a372be0dce56b743edcf98666a3ff63ffe42..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng
deleted file mode 100644
index 39f006e6ff400efb8724ff5eaea5e17617f36d85..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng
deleted file mode 100644
index ade34c78c9afae911aa7df55acdd892bee81992e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng
deleted file mode 100644
index 5ffcd04db5d2c3b7e7d62c54929255509d0cbb0a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng
deleted file mode 100644
index df533bca24f1a522556da9432874df964247104e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng
deleted file mode 100644
index e0e9d1384650b3e143c67d3d6a6ccd83b82ccca0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng
deleted file mode 100644
index 6f71f751556a159037c77361ccd1445b32ebb5b4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng
deleted file mode 100644
index 574dd1162989badc8499f5af31451a43673bf4da..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng
deleted file mode 100644
index 8d2d4300552494355144c928bd365ae3ecdf55a9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng
deleted file mode 100644
index db6ade2c406d602e70c9672804acfd65347f57cd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng
deleted file mode 100644
index e7f5d9365e01f4adcfe52c7c7aba0075a096283d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_users.lng b/interface/ispconfig/interface/admin/lib/lang/hu_users.lng
deleted file mode 100644
index f9b525e995caaf1b85e232cc6df74d8882314994..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng
deleted file mode 100644
index 1cfe243f781da461fff2dce95be87c8179a3a62c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/hu_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/it.lng b/interface/ispconfig/interface/admin/lib/lang/it.lng
deleted file mode 100644
index 1628a4ef76e574a710f475192da15fcc7b9773cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng
deleted file mode 100644
index c58341df892d70b42cf4ec15676075ad0d4b7e6e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng
deleted file mode 100644
index 24a34be1c121271493b5c469f3defce76a660523..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_groups.lng b/interface/ispconfig/interface/admin/lib/lang/it_groups.lng
deleted file mode 100644
index 61c3dc538d47a4daad960cc7be1d4fca220b5a06..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng
deleted file mode 100644
index f1d8e2c1a33b92ad997cc3373de412aacf5202dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng
deleted file mode 100644
index d157e08f6f7b7a2b9788f849efb1d7974edfa1e7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng
deleted file mode 100644
index b5200ff9df30536d461edf601236bc2e91112af7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-This adds missing strings from the english master language files to the selected language.';
-$wb['language_select_txt'] = 'Select language';
-$wb['btn_save_txt'] = 'Merge files now';
-$wb['btn_cancel_txt'] = 'Back';
-$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. This adds missing strings from the english master language files to the selected language.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng
deleted file mode 100644
index 4c50e883e6933c8a9449319b4524216e9adac9f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng
deleted file mode 100644
index f45d47b17c7e0e208e49a14fdabe76ed41f52367..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng
deleted file mode 100644
index 4c31ec3de3606dcb7aebf451f711ff2dd41a8981..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng
deleted file mode 100644
index c63fb0f57042f31f4e47803ce2c956e302d6ff97..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server.lng b/interface/ispconfig/interface/admin/lib/lang/it_server.lng
deleted file mode 100644
index 922eae179fe8c8744297391041e71f9d81ddb6a1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng
deleted file mode 100644
index dfe9ce657d6a43894fae7b36ddf1a75165091c5f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng
deleted file mode 100644
index 10a3e17316d3618a6f6350ec5010d94875dd2c07..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng
deleted file mode 100644
index 6d451f5b20bcee9480a6d5fccbc9c38bb974b113..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng
deleted file mode 100644
index c2c4ab9e0b06959528eeb959b4f06493ca3e3eca..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng
deleted file mode 100644
index 79ec28fbb19f4b74c0565cf230089f2ae5381387..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng
deleted file mode 100644
index 03917cabce20eb163fd64a168a2c8bbaf58599e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng
deleted file mode 100644
index 574dd1162989badc8499f5af31451a43673bf4da..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng
deleted file mode 100644
index 4db52118ec6bd564032ac437355c68aa5e17cf78..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng
deleted file mode 100644
index d45ee9ac47f6dc3a1b7da4c2afb11b24cc5b1709..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng
deleted file mode 100644
index e7f5d9365e01f4adcfe52c7c7aba0075a096283d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_users.lng b/interface/ispconfig/interface/admin/lib/lang/it_users.lng
deleted file mode 100644
index 8e70364aa7e32dfaa3066c953250a7af61b1bdfe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng
deleted file mode 100644
index 35598d33fff7ebc527da1b652f070ee1329b362a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/it_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja.lng b/interface/ispconfig/interface/admin/lib/lang/ja.lng
deleted file mode 100644
index 338f024045a52761a6a4560e183714c9be404d8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng
deleted file mode 100644
index 1f567b6b0493aa1b71d41efae4951e0bb4b69f3e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng
deleted file mode 100644
index 738c3e83f0f13654268c7a0eb3874cf9917bee43..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng
deleted file mode 100644
index 7fa2d9fa1a6fdf8f4abeb4c2c56e5e6dda074d22..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng
deleted file mode 100644
index ced6ab2c4141890b6c0d34da70fb91297a6feb17..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng
deleted file mode 100644
index c704242c92eaba0b83c224d9e677044e484cfaee..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng
deleted file mode 100644
index a5da8806fd6b946c98dba14d462e688c1bcedd50..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-選んだ言語ファイルに欠けている要素がある場合、英語版から抜き出して追加します。';
-$wb['language_select_txt'] = '言語を選んでください';
-$wb['btn_save_txt'] = 'ファイルをマージする';
-$wb['btn_cancel_txt'] = '戻る';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng
deleted file mode 100644
index f913997b9c0e96cada520125764e05d1b3f41355..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng
deleted file mode 100644
index fc5d3845bcc2fd486bf17456abf8a0cae75a3778..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng
deleted file mode 100644
index 4c55514953169243010e8dd4ab55519d3ed1d453..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng
deleted file mode 100644
index 7fe018edb586eb3165d8ecc13d9048a85c3ac7f4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng
deleted file mode 100644
index 4a01d4c56afec166a6f797f2b2b88d26a784b7bd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng
deleted file mode 100644
index 4631fbbdbaf37578fac6e9443685d4c34fecc47d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server.lng
deleted file mode 100644
index 8eb0ef74df7e9ea1f935c5440503792b9b94f86f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng
deleted file mode 100644
index 5ef759a3a34f6a802220ba2e64fbabf7293064fa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng
deleted file mode 100644
index c77cfc9bcce692de17f35f916a61d056f6b19feb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng
deleted file mode 100644
index db52f249dade73236ec79ad02841644214d3e323..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng
deleted file mode 100644
index 7879f512742ecd13bd1247926fa9b30ee1b87289..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng
deleted file mode 100644
index 1fa42e8efdb3c1aafc8630e8603ddf7f34bc71dd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng
deleted file mode 100644
index 5718b756e7559c2f46b9d572e9bb8b0d8fe85b2a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng
deleted file mode 100644
index fba63e9985d77f2df3ab21cc1724be59098165cc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng
deleted file mode 100644
index a7d06d8fdec5616b64fbd9e572d0d37b11b0a337..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng
deleted file mode 100644
index b37528035daea58454a04c155bb58999c5305fe0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng
deleted file mode 100644
index 673ef189d06ad56b12d819a17a33fb8fb724d0c1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_users.lng b/interface/ispconfig/interface/admin/lib/lang/ja_users.lng
deleted file mode 100644
index 040c2692ac774cd5ca9dd1fae2f5450aa9b5e7d1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng
deleted file mode 100644
index 2ab8d227fc040ab84a036bac440cf0b2c34a14e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ja_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl.lng b/interface/ispconfig/interface/admin/lib/lang/nl.lng
deleted file mode 100644
index 41071ac339fd9e8f66fac51d7846643500aaf88c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng
deleted file mode 100644
index 26001af2b82926bec187321da2884b93b88c0cc6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng
deleted file mode 100644
index 37f78048cc22d28bb482afaed1f04989c1851c07..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng b/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng
deleted file mode 100644
index 0454a672e3298ea5ece9962395c08dafc9f9bada..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng
deleted file mode 100644
index 43e2729a09668bf4ca3599e1d6be4ba81dbe2474..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-LET OP: Uitgevoerde wijzigingen in deze module kunnen gevolgen hebben voor gebruikers gekoppeld aan deze groepen!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng
deleted file mode 100644
index 8a5c5db5f456c6fd47f1dc7297671f725fe75a8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng
deleted file mode 100644
index 61163713120d1f7dc1b0ec3337d7b01fd066e4a5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng
deleted file mode 100644
index 9656b36a08739c4f6cfad3881034bd050c28ace3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng
deleted file mode 100644
index 2c1d78f7d7ce0b3fc066bfd0f805ac73b0d4fc95..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng
deleted file mode 100644
index f1d5fa51acbe22dc3363aa7260a9ab64716c047e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng
deleted file mode 100644
index dc5843af24e16fd71245bb36332ad7dfd0eec42e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng
deleted file mode 100644
index 4f9dc1de3580509c5c8a7fa2de85dcaebf9cc745..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng
deleted file mode 100644
index 664ea756ec78f50e5f993810496190f55a1df038..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server.lng
deleted file mode 100644
index f348c7962fc5db5389f5cd537cc374fa573e8de2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
- Wijzigen? Zie: Server configuratie';
-$wb['server_name_txt'] = 'Servernaam';
-$wb['mail_server_txt'] = 'Mailserver';
-$wb['web_server_txt'] = 'Webserver';
-$wb['dns_server_txt'] = 'DNS server';
-$wb['file_server_txt'] = 'Fileserver';
-$wb['db_server_txt'] = 'Database server';
-$wb['vserver_server_txt'] = 'VServer-server';
-$wb['active_txt'] = 'Actief?';
-$wb['mirror_server_id_txt'] = 'Deze server is mirror van server';
-$wb['- None -'] = '- niet van toepassing -';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng
deleted file mode 100644
index 8293bb8135de8836e489f0d01f3124da1b63fe42..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng
deleted file mode 100644
index 3d376e5f196f8129a7b8bd3bebd4354975997311..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng
deleted file mode 100644
index ef8079adaa24dfbbc9771d9cb536127a43a7da42..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng
deleted file mode 100644
index acbd83e294945a9cd7a38d3e8e82446f9e26a9c5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng
deleted file mode 100644
index 05e7aac6c2c9eb262d023f5afa0a377a022b6989..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng
deleted file mode 100644
index 177e1b82c47b19efe34928bfadb1c32d20199328..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng
deleted file mode 100644
index bd4c93119290603c313cf804cdf3290d7bce83e2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng
deleted file mode 100644
index 737e5cf4358548f6fea319c8b2d9e91cb1b50376..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng
deleted file mode 100644
index 7c8dc76232a412ea3206f13ca7f1bce0e8374fa0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng
deleted file mode 100644
index 6d6d4f9a16db83a6b1e0659dcefd27a15f5735d5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_users.lng b/interface/ispconfig/interface/admin/lib/lang/nl_users.lng
deleted file mode 100644
index 4ab27372c78100ce84bc0db8bb7b1fa5e6e465fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng
deleted file mode 100644
index 1435934003feff8c163b7ca5bc3ac64853ba746f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/nl_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-LET OP: Verander hier geen gegevens. Gebruik daarvoor de functie Wijzig klant/Wijzig reseller onder de Klanten-module van ISPConfig. Het veranderen van gebruikers in deze module kan dataverlies opleveren!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl.lng b/interface/ispconfig/interface/admin/lib/lang/pl.lng
deleted file mode 100644
index 939bffb3dd72888a1e797a14e938f387a6d1a66a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng
deleted file mode 100644
index a216af6b1c0839e45c8e97eb089d668fc8225203..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng
deleted file mode 100644
index f7e1640404ac610157313081934dc4286b4c9717..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng b/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng
deleted file mode 100644
index b3c8b9ca777f58387a7713ceb9e0170b03b39f77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng
deleted file mode 100644
index 14565b0c76f282ab531e730127f7066ed41c30c7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng
deleted file mode 100644
index 82e42ef720eea1c0c5e7387249693933b41b68bc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng
deleted file mode 100644
index 0096c69efabccd5775ca0bc4e739e21156cae4c4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Ta opcja dodaje do wybranego języka brakujące zmienne językowe z plików języka angielskiego.';
-$wb['language_select_txt'] = 'Wybierz język';
-$wb['btn_save_txt'] = 'Połącz pliki teraz';
-$wb['btn_cancel_txt'] = 'Wróć';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng
deleted file mode 100644
index 3a5e7069393b0af5a2da2b080b3b55d0673f62a9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng
deleted file mode 100644
index 82666fcb7802901bf00fb9dd1a94c233a7192ed7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng
deleted file mode 100644
index 83e988116581ad59fd7e55e00033a2ada7345481..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng
deleted file mode 100644
index 68f710be04737d4f2c44388b8a0ca08c6c55873d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server.lng
deleted file mode 100644
index c027c0b31fa7deeed75cd3c45367c07e9f93b6c3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng
deleted file mode 100644
index 76c3589c725673f47c0bf274d3c740b9f17ecf96..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng
deleted file mode 100644
index f9e8dcf1b559349ac491040e4920bec5fa38a7e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng
deleted file mode 100644
index 41e0b941625c1320d64818764e13227351804d8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng
deleted file mode 100644
index 6ab81c1e5b408915764d4c25f69d4f30d5029305..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng
deleted file mode 100644
index f61ba5fc8764d1e275290810d2a8907be7e93892..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng
deleted file mode 100644
index 9549333b1a352d8b50aa8b0de73bfe815ac97856..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng
deleted file mode 100644
index d11a1b3b330d331c507e129f195f3f6ada2874f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng
deleted file mode 100644
index 7ca6af9f9f43559891103a0c50ebd189da3f795b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng
deleted file mode 100644
index e38bdf8a317456ce5e84b4e8ff6f689094ae8161..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng
deleted file mode 100644
index adaffcaa666c4cab00f072bc3326de7020f9bce4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_users.lng b/interface/ispconfig/interface/admin/lib/lang/pl_users.lng
deleted file mode 100644
index 3b2472dfeb005bd15a2650b19eb788d999c8102a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng
deleted file mode 100644
index b628eae876f0c45379c0f99b1dc642c009f7ac31..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pl_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt.lng b/interface/ispconfig/interface/admin/lib/lang/pt.lng
deleted file mode 100644
index 81bcba098114e328c5f0792190da0f8ce183e047..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt.lng
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng
deleted file mode 100644
index 9c1fb784be1d34cb8d92b6d054fc515361e887e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_firewall.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng
deleted file mode 100644
index d1dd50b7194b65e88d747bc68ff202d5cf11ce43..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_firewall_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng b/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng
deleted file mode 100644
index ee7577627264b47328a7f93b8d91529be6f5a50d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_groups.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng
deleted file mode 100644
index 6e61aef914db0a9ca1752d7bee6b045023368251..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_groups_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-AVISO: Não modifique ou edite qualquer configuração de utilizador aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar utilizadors e grupos aqui pode ocasionar perda de dados!';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng
deleted file mode 100644
index fb1a41ad6d757838b7ee0d5cdc2c2ab74a5ae306..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_add.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng
deleted file mode 100644
index 54f44d0140f316be58636cb4eb706cd5c6c767c0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_complete.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-Isto permite completar qualquer falha de tradução, com o ficheiro principal original em inglês.';
-$wb['language_select_txt'] = 'Seleccionar Idioma';
-$wb['btn_save_txt'] = 'Mesclar ficheiros agora';
-$wb['btn_cancel_txt'] = 'Voltar';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng
deleted file mode 100644
index 0c6e29a3370203fb5f4e95580436bb6920ed5419..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_edit.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng
deleted file mode 100644
index b4630e5e48a5a647db19150f15bfe602300460a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_export.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng
deleted file mode 100644
index 0d0967b491b86f191ea8970fe369606c27a47215..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_import.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng
deleted file mode 100644
index 649cd9d2fa6dd3417af23331c2f6a0706ee9e48d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_language_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng
deleted file mode 100644
index 1db8400502eb68c8d342268fdc15dbcda669b00b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user.lng
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng
deleted file mode 100644
index 850b5ed2ebecee77e614bcfc9f5167e991b9244f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_remote_user_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server.lng
deleted file mode 100644
index a7cc7cbfab2f3419e5fe52a30447ce8789e3884b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng
deleted file mode 100644
index 8c281b919c38bd16c92348a2c0667eeb939c4bcd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server_config.lng
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng
deleted file mode 100644
index 551867db8ebf6a01058d2a5d53b9138ae1e96540..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server_config_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng
deleted file mode 100644
index 3fab2638633f3ae7ccbef8ff72c2ec168ce3eb12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng
deleted file mode 100644
index a9c4ffe2c05f1a8f6c6fb75b95f35a63ef12e2cd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server_ip_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng
deleted file mode 100644
index e3c3c8ad6f8bec624e4247ff3e645a411de5a920..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_server_list.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng
deleted file mode 100644
index cba1c698eb7b482c4f4acd39b6378f619c8ae5a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_software_package_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng
deleted file mode 100644
index 257e0b5b8167752acf9fddc13344c8db437a4eec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng
deleted file mode 100644
index 5b60ee24dd1cdb30072b6c8ce10bd6a023224ac8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_software_repo_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng
deleted file mode 100644
index 163731ba7ca1bb97da4a08021f2e8281e3a1f209..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_software_update_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng
deleted file mode 100644
index 9a662a9a28f1d0afebee1403bf6d40f5db32720e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_system_config.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_users.lng b/interface/ispconfig/interface/admin/lib/lang/pt_users.lng
deleted file mode 100644
index fdf07aa3e95a8e7534856c58a27ef1f09e27c0ef..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_users.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng
deleted file mode 100644
index 6ebec0a12a28ee66f619bc454f13a57eea7b5c0f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/pt_users_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-AVISO: Não modifique ou edite qualquer configuração de utilizador aqui. Use o módulo de cliente ou revendedor. Modificar ou alterar utilizadors e grupos aqui pode resultar na perda de dados!';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro.lng b/interface/ispconfig/interface/admin/lib/lang/ro.lng
deleted file mode 100644
index 77d07ab2dd60576785d32ee237b5990354bc2b56..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng
deleted file mode 100644
index e626345d3c1ee3bbce74ffd70c36fcc7ff3297c2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng
deleted file mode 100644
index 24a34be1c121271493b5c469f3defce76a660523..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng
deleted file mode 100644
index 61c3dc538d47a4daad960cc7be1d4fca220b5a06..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng
deleted file mode 100644
index f1d8e2c1a33b92ad997cc3373de412aacf5202dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng
deleted file mode 100644
index dc6b2d1b725f9fc83a09377176200713adf99cb0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng
deleted file mode 100644
index db7c05bb2d24bad9c50cce5c00f0eb8997cf2dd0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-This adds missing strings from the english master language files to the selected language.';
-$wb['language_select_txt'] = 'Select language';
-$wb['btn_save_txt'] = 'Merge files now';
-$wb['btn_cancel_txt'] = 'Back';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng
deleted file mode 100644
index 4c50e883e6933c8a9449319b4524216e9adac9f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng
deleted file mode 100644
index f45d47b17c7e0e208e49a14fdabe76ed41f52367..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng
deleted file mode 100644
index fefae80d037cac068fbada7947ee2a70c3eaf704..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng
deleted file mode 100644
index 1c784edf6d06b268c72b43ab0e4c14e8e325905a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng
deleted file mode 100644
index 56c6fac4be29b7a8bbc856383c7044edd82214f4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_remote_user_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server.lng
deleted file mode 100644
index 1b42f22c89bb1d1b31c43935eb77ab24fd28db77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng
deleted file mode 100644
index 36899fd02038e58efdba1bdc456fbf39f155b252..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng
deleted file mode 100644
index 636c2e050a026856a624bbd1ef3613df64544ba7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng
deleted file mode 100644
index 6d451f5b20bcee9480a6d5fccbc9c38bb974b113..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng
deleted file mode 100644
index 4e9831666375ce75e76a260a79c98a79594b6808..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng
deleted file mode 100644
index 5cea9d216aa508e608b8166f75ceca708c626519..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng
deleted file mode 100644
index 3bcf7bcea902d03c0d9cf211c15cb9c52a08993b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng
deleted file mode 100644
index 574dd1162989badc8499f5af31451a43673bf4da..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng
deleted file mode 100644
index b7a219ffa8e2f6d389fabdc5386286a24fc2a11a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng
deleted file mode 100644
index fc96ffa182e1f5fe86296ff3663a0360b01bbb4b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng
deleted file mode 100644
index e7f5d9365e01f4adcfe52c7c7aba0075a096283d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_users.lng b/interface/ispconfig/interface/admin/lib/lang/ro_users.lng
deleted file mode 100644
index 8e70364aa7e32dfaa3066c953250a7af61b1bdfe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng
deleted file mode 100644
index 16d8179fa43a405441017551a6c515c75a9caa39..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ro_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru.lng b/interface/ispconfig/interface/admin/lib/lang/ru.lng
deleted file mode 100644
index 19d632edf4908ce990bb093f5b3387605e61c5a6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru.lng
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng
deleted file mode 100644
index dfe0c10d10a7b8160a8721cb9f2f1cd34a3051b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_firewall.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng
deleted file mode 100644
index fc2fffad4d3cf429ca1e8b4f2d999cc137b27484..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_firewall_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng b/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng
deleted file mode 100644
index d377f5f88532ce2e1a5e0eefe9aea3ef4a4eab73..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_groups.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng
deleted file mode 100644
index 1495e6900b70b869aa22c51bf575f373e7f45e2c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_groups_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-ВНИМАНИЕ:Не удаляйте и не меняйте никаких настроек здесь. Используйте настройки клиента и реселлера в модуле КЛИЕНТ. Изменение пользователей или групп здесь может вызвать потерю данных!';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng
deleted file mode 100644
index 5d1d154c87865bb9fbf24ff12ef1cac2fc1c0101..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_add.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng
deleted file mode 100644
index c7ade3cd7fbf3e25b19980d4de68b546ccbcfa77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_complete.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-Это добавит пропущенные строки из мастер-языка.';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng
deleted file mode 100644
index b5cbb166940688981d87c88a0f7671e8dc06e539..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_edit.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng
deleted file mode 100644
index 9a4a929afaa05dcbef394c237154da2651acc94f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_export.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng
deleted file mode 100644
index f0b767e4da5760e4d0beadc448210dd09cbeb405..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_import.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng
deleted file mode 100644
index 72561a7aff2e2c93c1ba003e70a095ca4e4c62a6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_language_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng
deleted file mode 100644
index ceee7b9ee719516d698f9698572bafc3e6b648a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user.lng
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng
deleted file mode 100644
index f1bcdf968152da693c8cbeef33b53360fe1dd9d6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_remote_user_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server.lng
deleted file mode 100644
index 5575e658247d7007f950fd24b9320002311776a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng
deleted file mode 100644
index c0530b62c518d853786929e842055ea2ac892bd4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server_config.lng
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng
deleted file mode 100644
index 351caaf57fbfbbee559f35e11dabe0ddd7b52bd6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server_config_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng
deleted file mode 100644
index a835da047c9eca8fb083db090aa14292a76b234f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng
deleted file mode 100644
index 8e06c0a91d132ce9eb0f9b24cf6327411f9acf9e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server_ip_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng
deleted file mode 100644
index 4290a697923a53a84e050396c2f4f20e69848199..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_server_list.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng
deleted file mode 100644
index 7c4fbd8ba985d453281ead4b2cf0cb4280f0cbac..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_software_package_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng
deleted file mode 100644
index 7d5abbcf9dbb3c8a53c57f34938f0038c1be4dbb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng
deleted file mode 100644
index 7989ba49e044a9d703bb0aadfb32805ce6ee777a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_software_repo_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng
deleted file mode 100644
index 41fcbd4140e70c6239924b00a179c7e51de811de..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_software_update_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng
deleted file mode 100644
index 823cb744599908ff6a697f1d19dfec84c3c4e2b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_system_config.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_users.lng b/interface/ispconfig/interface/admin/lib/lang/ru_users.lng
deleted file mode 100644
index b29c02035d1a42fc2bdbac26e6cd6d5263c4effa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_users.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng
deleted file mode 100644
index 62f17c600366a1cb3662ba307d39785b9b870539..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/ru_users_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-ВНИМАНИЕ:Не удаляйте и не меняйте никаких настроек здесь. Используйте настройки клиента и реселлера в модуле КЛИЕНТ. Изменение пользователей или групп здесь может вызвать потерю данных!';
-?>
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se.lng b/interface/ispconfig/interface/admin/lib/lang/se.lng
deleted file mode 100644
index 4b86cbba61edca96dc677543c17731e2ed1f9044..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng
deleted file mode 100644
index e626345d3c1ee3bbce74ffd70c36fcc7ff3297c2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng
deleted file mode 100644
index 24a34be1c121271493b5c469f3defce76a660523..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_groups.lng b/interface/ispconfig/interface/admin/lib/lang/se_groups.lng
deleted file mode 100644
index cfe8565070b56de1f30a8450fc57a269c40d3bec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng
deleted file mode 100644
index 5b025e08a9898a815576d84f09d1ab6190dad6cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng
deleted file mode 100644
index 27bb0eeb6a5e1a92561746c147a911df34e35e6f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng
deleted file mode 100644
index b5200ff9df30536d461edf601236bc2e91112af7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-This adds missing strings from the english master language files to the selected language.';
-$wb['language_select_txt'] = 'Select language';
-$wb['btn_save_txt'] = 'Merge files now';
-$wb['btn_cancel_txt'] = 'Back';
-$wb['list_desc_txt'] = 'Merge the selected language file with the english master language file. This adds missing strings from the english master language files to the selected language.';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng
deleted file mode 100644
index 4c50e883e6933c8a9449319b4524216e9adac9f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng
deleted file mode 100644
index f45d47b17c7e0e208e49a14fdabe76ed41f52367..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng
deleted file mode 100644
index 4c31ec3de3606dcb7aebf451f711ff2dd41a8981..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng
deleted file mode 100644
index 1c784edf6d06b268c72b43ab0e4c14e8e325905a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng
deleted file mode 100644
index cc9335bc52638b05b2a4419cbb6415daebbca52e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng
deleted file mode 100644
index 152a75fba4c8917a1829b6960df7291e583d34a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server.lng b/interface/ispconfig/interface/admin/lib/lang/se_server.lng
deleted file mode 100644
index f1c044bb6cb64117a6a4ead564bfe36456b1c5ad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng
deleted file mode 100644
index 16803a9f5cdd6bf7f712f631d086785bf7b369b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng
deleted file mode 100644
index 636c2e050a026856a624bbd1ef3613df64544ba7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng
deleted file mode 100644
index 6d451f5b20bcee9480a6d5fccbc9c38bb974b113..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng
deleted file mode 100644
index 81ae8f01d6e8c9e1fc8e0029ece7fc5462338006..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng
deleted file mode 100644
index ff7bd6e9dd03349dccc629de0d853326bf440aad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng
deleted file mode 100644
index 03917cabce20eb163fd64a168a2c8bbaf58599e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng
deleted file mode 100644
index 574dd1162989badc8499f5af31451a43673bf4da..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng
deleted file mode 100644
index b7a219ffa8e2f6d389fabdc5386286a24fc2a11a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng
deleted file mode 100644
index ebf4e6fbc544390ef8ea9357a33d184062568e27..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng
deleted file mode 100644
index e7f5d9365e01f4adcfe52c7c7aba0075a096283d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_users.lng b/interface/ispconfig/interface/admin/lib/lang/se_users.lng
deleted file mode 100644
index 3708eff32380055a7d728dd8d054d8c4e4747ec2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng
deleted file mode 100644
index de5d63e2fd42777c08eae4e7a6b34d82382262ae..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/se_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk.lng b/interface/ispconfig/interface/admin/lib/lang/sk.lng
deleted file mode 100644
index a4eab14901213f8f428249c53d750178d5585aa3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng
deleted file mode 100644
index 581b4384ce03ff7cc3544d39856704d546ff08ad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng
deleted file mode 100644
index 657d6ca1456f00487aefdec52f36684c206bbc2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng b/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng
deleted file mode 100644
index f43077cea25407a98f854486dcd537d91764cfd2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng
deleted file mode 100644
index 1b067b7f83a820dc67665907ef67d500c227a02d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng
deleted file mode 100644
index 5b21d003d442aca419546e9fccda0cd003cb1f3e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng
deleted file mode 100644
index 4b076136cd66eb902aa6e2526c7252055651aaca..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
- dop??a chbajce re?azce z anglickho sboru jazyka do zvolenho jazyka.';
-$wb['language_select_txt'] = 'Vyber jazyk';
-$wb['btn_save_txt'] = 'Zl?i? sbory teraz';
-$wb['btn_cancel_txt'] = 'Sp?';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng
deleted file mode 100644
index 51c2c0a4048f5c50e8b2b91adc2b8ef69751fc2a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng
deleted file mode 100644
index 6bdfbc1948f318c0d6e7b692b61cee7f6308b3fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng
deleted file mode 100644
index 94c708af31a5669908c909b2fa0c397d42bdc43f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng
deleted file mode 100644
index 034b23aa8c09749e8bf94067f08376842a77293e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng
deleted file mode 100644
index fae2654b4c9da47722d0f8ecd88148401849673a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng
deleted file mode 100644
index 7e4661d7a2109e3e1bbf45639997d753ee74494a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server.lng
deleted file mode 100644
index 667996c8b5c217553da7d981826890a6b45b7da2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng
deleted file mode 100644
index 2fc861857d2bd45f2f4ed56e0dad376e0a8dcc25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng
deleted file mode 100644
index 73e7bac4e903727f5db2b497f98028007ea07e91..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng
deleted file mode 100644
index f6dfa75feae180a11cf3ba3e4d2a33eaebfc892e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng
deleted file mode 100644
index de065f7078fa7788bea721d75350cd1e6f1ed239..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng
deleted file mode 100644
index aff432880cbd720d6cf890f097e945dcf1135a53..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng
deleted file mode 100644
index bcb6acbac678e9af4c6d7893c096c12c38eb3a26..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng
deleted file mode 100644
index a3cb3feeb617961b353b7143353637f0cad0f04d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng
deleted file mode 100644
index 52d468a160950b61fbbcf1fb151b828241e6487f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng
deleted file mode 100644
index 01d07727fa17e0b0cec2e90cc81ee1c0895f8824..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng
deleted file mode 100644
index 90049de8e2d4172db2092a32b47ee2b591becfbf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_users.lng b/interface/ispconfig/interface/admin/lib/lang/sk_users.lng
deleted file mode 100644
index 4376aa19f8c3b3d51984665f2eacd3e25a01ca4a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng
deleted file mode 100644
index a04f716211c95f1449c566b42d2e3a0c06bcf0d6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/sk_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr.lng b/interface/ispconfig/interface/admin/lib/lang/tr.lng
deleted file mode 100644
index 7e47b6c69bf4e2f07e4ce3ea3290cff6decb58a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr.lng
+++ /dev/null
@@ -1,40 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng b/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng
deleted file mode 100644
index d379841b11e31fe3a82f6cd9632d74ea3f7613df..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_firewall.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng
deleted file mode 100644
index 5fcff63964605ccf654c8904c27fe5d231d32efd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_firewall_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng b/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng
deleted file mode 100644
index 5bad5a7e711e85d3ef35cb4a1c68508016f5e88c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_groups.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng
deleted file mode 100644
index 5e7f0ebc255240f0b29cab252cf50d07f010ccfb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_groups_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng
deleted file mode 100644
index fa712eba810fe1ee87e2dbe26b18d7038b64fad5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_add.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng
deleted file mode 100644
index 176d93b2371e3da34a7c7f39d9eb52eef50d2f25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_complete.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-Bu olay kayıp metinleri ingilizce dil dosyasından seçili dil dosyasına ekler';
-$wb['language_select_txt'] = 'Dil seç';
-$wb['btn_save_txt'] = 'Dosyaları şimdi birleştir';
-$wb['btn_cancel_txt'] = 'Geri';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng
deleted file mode 100644
index 412b1b495d7f28afd7fbcde8a0709ef008a9ca04..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng
deleted file mode 100644
index d0205cb948a37531af345df1fce09ba55860e800..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_export.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng
deleted file mode 100644
index 2caaa079860fe95ece2be4d87563e75d5d24e1d2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_import.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng
deleted file mode 100644
index 833ce5955d17f7748e2e841ed392188d6edacd1c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_language_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng
deleted file mode 100644
index 5d918effa8a526f47f790309f1e4c5fbc24f807f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user.lng
+++ /dev/null
@@ -1,42 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng
deleted file mode 100644
index eec9ef59e9370fdf6d00dce480d9e40da7b9c6a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_remote_user_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server.lng
deleted file mode 100644
index 73ae1df70ff178353b8a43c31369d7111325465a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng
deleted file mode 100644
index 40f08d527382bdd1b89a9a16c1e0f633e88b6814..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server_config.lng
+++ /dev/null
@@ -1,68 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng
deleted file mode 100644
index b3c74bd5f4f9d6378449d01188626fcb86663393..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server_config_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng
deleted file mode 100644
index 7112f4ef18692b0182a23834556220ec1c5e6f69..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng
deleted file mode 100644
index c931986bd02a5936a9cb34305f1043da6bb8f6e0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server_ip_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng
deleted file mode 100644
index 7d689ced9123fdf2bf83056f881212804bc1b68e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_server_list.lng
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng
deleted file mode 100644
index 46726f740405ec4405fd6fc2d6c711c85e8ccde9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_software_package_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng
deleted file mode 100644
index 67ce387eb3c3d73eb0a9aab7825d600bd6f36188..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng
deleted file mode 100644
index a37f2afe2d521d7e9f3005cd8a1c713b151cede1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_software_repo_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng
deleted file mode 100644
index 3f77e54864675078da8813f6a48e99264f445b5c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_software_update_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng b/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng
deleted file mode 100644
index 980811dfc504b5cd39670fa971101386ec434de2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_system_config.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_users.lng b/interface/ispconfig/interface/admin/lib/lang/tr_users.lng
deleted file mode 100644
index 3b8f059610eef50acf377bd703bdd873a7b32035..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_users.lng
+++ /dev/null
@@ -1,28 +0,0 @@
-
diff --git a/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng b/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng
deleted file mode 100644
index 8d1e03850e5158cd9a85f9bdc009991956203470..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/lang/tr_users_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-WARNING: Do not edit or modify any user settings here. Use the Client- and Reseller settings in the Client module instead. Modifying or changing Users or groups here may cause data loss!';
-?>
diff --git a/interface/ispconfig/interface/admin/lib/module.conf.php b/interface/ispconfig/interface/admin/lib/module.conf.php
deleted file mode 100644
index b6a6c57dd76b4bf516f7705c9740a20d5f93645a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/lib/module.conf.php
+++ /dev/null
@@ -1,174 +0,0 @@
- 'Add user',
- 'target' => 'content',
- 'link' => 'admin/users_edit.php');
-
-$items[] = array( 'title' => 'Edit user',
- 'target' => 'content',
- 'link' => 'admin/users_list.php');
-
-
-$module['nav'][] = array( 'title' => 'CP Users',
- 'open' => 1,
- 'items' => $items);
-
-
-// cleanup
-unset($items);
-/*
-$items[] = array( 'title' => 'Add group',
- 'target' => 'content',
- 'link' => 'admin/groups_edit.php');
-
-$items[] = array( 'title' => 'Edit group',
- 'target' => 'content',
- 'link' => 'admin/groups_list.php');
-
-
-$module['nav'][] = array( 'title' => 'Groups',
- 'open' => 1,
- 'items' => $items);
-
-
-// cleanup
-unset($items);
-*/
-/*
-$items[] = array( 'title' => 'Add server',
- 'target' => 'content',
- 'link' => 'admin/server_edit.php');
-*/
-$items[] = array( 'title' => 'Server Services',
- 'target' => 'content',
- 'link' => 'admin/server_list.php');
-
-$items[] = array( 'title' => 'Server Config',
- 'target' => 'content',
- 'link' => 'admin/server_config_list.php');
-
-/*
-$items[] = array( 'title' => 'Add Server IP',
- 'target' => 'content',
- 'link' => 'admin/server_ip_edit.php');
-*/
-$items[] = array( 'title' => 'Edit Server IP',
- 'target' => 'content',
- 'link' => 'admin/server_ip_list.php');
-
-
-$items[] = array( 'title' => 'Interface Config',
- 'target' => 'content',
- 'link' => 'admin/system_config_edit.php?id=1');
-
-$module['nav'][] = array( 'title' => 'System',
- 'open' => 1,
- 'items' => $items);
-// cleanup
-unset($items);
-
-
-$items[] = array( 'title' => 'Firewall',
- 'target' => 'content',
- 'link' => 'admin/firewall_list.php');
-
-
-$module['nav'][] = array( 'title' => 'Firewall',
- 'open' => 1,
- 'items' => $items);
-
-
-// cleanup
-unset($items);
-
-
-$items[] = array( 'title' => 'Repositories',
- 'target' => 'content',
- 'link' => 'admin/software_repo_list.php');
-
-$items[] = array( 'title' => 'Packages',
- 'target' => 'content',
- 'link' => 'admin/software_package_list.php');
-
-$items[] = array( 'title' => 'Updates',
- 'target' => 'content',
- 'link' => 'admin/software_update_list.php');
-
-$module['nav'][] = array( 'title' => 'Software',
- 'open' => 1,
- 'items' => $items);
-
-
-// cleanup
-unset($items);
-
-$items[] = array( 'title' => 'Languages',
- 'target' => 'content',
- 'link' => 'admin/language_list.php');
-
-$items[] = array( 'title' => 'New Language',
- 'target' => 'content',
- 'link' => 'admin/language_add.php');
-
-$items[] = array( 'title' => 'Merge',
- 'target' => 'content',
- 'link' => 'admin/language_complete.php');
-
-$items[] = array( 'title' => 'Export',
- 'target' => 'content',
- 'link' => 'admin/language_export.php');
-
-$items[] = array( 'title' => 'Import',
- 'target' => 'content',
- 'link' => 'admin/language_import.php');
-
-$module['nav'][] = array( 'title' => 'Language Editor',
- 'open' => 1,
- 'items' => $items);
-
-
-// cleanup
-unset($items);
-
-$items[] = array( 'title' => 'Add user',
- 'target' => 'content',
- 'link' => 'admin/remote_user_edit.php');
-
-$items[] = array( 'title' => 'Edit user',
- 'target' => 'content',
- 'link' => 'admin/remote_user_list.php');
-
-
-$module['nav'][] = array( 'title' => 'Remote Users',
- 'open' => 1,
- 'items' => $items);
-
-// cleanup
-unset($items);
-
-// Getting the admin options from other modules
-$modules = explode(',', $_SESSION['s']['user']['modules']);
-if(is_array($modules)) {
- foreach($modules as $mt) {
- if(is_file($mt.'/lib/admin.conf.php')) {
- $options = array();
- include_once(ISPC_WEB_PATH."/$mt/lib/admin.conf.php");
- if(is_array($options)) {
- foreach($options as $opt) {
- $module['nav'][] = $opt;
- }
- }
- }
- }
-}
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/firewall.list.php b/interface/ispconfig/interface/admin/list/firewall.list.php
deleted file mode 100644
index ba3fb0633e11928396122978869fcf2254ad5214..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/firewall.list.php
+++ /dev/null
@@ -1,93 +0,0 @@
- "active",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('y' => "
Yes
",'n' => "No
"));
-
-$liste["item"][] = array( 'field' => "server_id",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND db_server = 1 ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "tcp_port",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "udp_port",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/groups.list.php b/interface/ispconfig/interface/admin/list/groups.list.php
deleted file mode 100644
index c5e8c4d118d2aca482f46fa7ae5c9c3265ebbc5c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/groups.list.php
+++ /dev/null
@@ -1,61 +0,0 @@
- 'name',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-$liste['item'][] = array( 'field' => 'description',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/remote_user.list.php b/interface/ispconfig/interface/admin/list/remote_user.list.php
deleted file mode 100644
index 31ef652a9947fcc86bac6acc7330eb0a354e6039..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/remote_user.list.php
+++ /dev/null
@@ -1,65 +0,0 @@
- 'remote_userid',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'op' => '=',
- 'prefix' => '',
- 'suffix' => '',
- 'width' => '',
- 'datasource' => array(
- 'type' => 'SQL',
- 'querystring' => 'SELECT remote_userid,remote_username FROM remote_user WHERE {AUTHSQL} ORDER BY remote_username',
- 'keyfield' => 'remote_userid',
- 'valuefield' => 'remote_userid'
- ),
- 'value' => ''
- );
-
-$liste['item'][] = array(
- 'field' => 'remote_username',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => ''
- );
-
-?>
-
diff --git a/interface/ispconfig/interface/admin/list/server.list.php b/interface/ispconfig/interface/admin/list/server.list.php
deleted file mode 100644
index 90bccf1eccc658391f62dd49d8a03f748e0e4eae..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/server.list.php
+++ /dev/null
@@ -1,110 +0,0 @@
- 'server_name',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => '');
-
-$liste['item'][] = array( 'field' => 'mail_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-$liste['item'][] = array( 'field' => 'web_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-$liste['item'][] = array( 'field' => 'dns_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-$liste['item'][] = array( 'field' => 'file_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-$liste['item'][] = array( 'field' => 'db_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-$liste['item'][] = array( 'field' => 'vserver_server',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => array('1' => "Yes
",'0' => "No
"));
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/server_config.list.php b/interface/ispconfig/interface/admin/list/server_config.list.php
deleted file mode 100644
index c0c20e500cc9c1396b9755ac4d327e9c8d3d433a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/server_config.list.php
+++ /dev/null
@@ -1,60 +0,0 @@
- "server_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/server_ip.list.php b/interface/ispconfig/interface/admin/list/server_ip.list.php
deleted file mode 100644
index aacebc0b7fca325d08a607f9383a7f84c463ea30..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/server_ip.list.php
+++ /dev/null
@@ -1,68 +0,0 @@
- 'server_id',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'width' => '',
- 'value' => '');
-
-$liste['item'][] = array( 'field' => 'ip_address',
- 'datatype' => 'VARCHAR',
- 'op' => '=',
- 'prefix' => '',
- 'suffix' => '',
- 'width' => '');
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/software_repo.list.php b/interface/ispconfig/interface/admin/list/software_repo.list.php
deleted file mode 100644
index a9be62deb2c618410d89cfceb506ac6c8fceb788..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/software_repo.list.php
+++ /dev/null
@@ -1,78 +0,0 @@
- "active",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('y' => "Yes
",'n' => "No
"));
-
-$liste["item"][] = array( 'field' => "repo_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "repo_url",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/list/users.list.php b/interface/ispconfig/interface/admin/list/users.list.php
deleted file mode 100644
index f53e03be6a349a3bfe2c684d52be83e8f6fb34f7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/list/users.list.php
+++ /dev/null
@@ -1,75 +0,0 @@
- 'username',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-$liste['item'][] = array( 'field' => 'vorname',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-$liste['item'][] = array( 'field' => 'name',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-$liste['item'][] = array( 'field' => 'ort',
- 'datatype' => 'VARCHAR',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '');
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/login_as.php b/interface/ispconfig/interface/admin/login_as.php
deleted file mode 100644
index 0745c62cdc381cc1185cba3a42f86cfb956b7d5f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/login_as.php
+++ /dev/null
@@ -1,84 +0,0 @@
-auth->check_module_permissions('admin');
-
-/* for security reasons ONLY the admin can login as other user */
-if ($_SESSION["s"]["user"]["typ"] != 'admin') {
- die ("You don't have the right to login as other user!");
-}
-
-/* get the id of the user (must be int!) */
-if (!isset($_GET['id']) && !isset($_GET['cid'])){
- die ("No user selected!");
-}
-
-if(isset($_GET['id'])) {
- $userId = intval($_GET['id']);
- $backlink = 'admin/users_list.php';
-} else {
- $client_id = intval($_GET['cid']);
- $tmp_client = $app->db->queryOneRecord("SELECT username FROM client WHERE client_id = $client_id");
- $tmp_sys_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE username = '".$app->db->quote($tmp_client['username'])."'");
- $userId = $tmp_sys_user['userid'];
- unset($tmp_client);
- unset($tmp_sys_user);
- $backlink = 'client/client_list.php';
-}
-
-/*
- * Get the data to login as user x
- */
-$dbData = $app->db->queryOneRecord(
- "SELECT username, passwort FROM sys_user WHERE userid = " . $userId);
-
-/*
- * Now generate the login-Form
- */
-echo '
-
- Do you want to login as user ' . $dbData['username'] . '?
- If you do so, you can "go back" by clicking at logout.
-
-
-
-
-
-
-
- Yes, login as Client
- No, back to list
-
-';
-?>
diff --git a/interface/ispconfig/interface/admin/remote_user_del.php b/interface/ispconfig/interface/admin/remote_user_del.php
deleted file mode 100644
index 74352ca6cfbe3d2476d6310f557b12e22a8288a2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/remote_user_del.php
+++ /dev/null
@@ -1,62 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('tpl,tform');
-$app->load('tform_actions');
-
-// Create a class page_action that extends the tform_actions base class
-
-class page_action extends tform_actions {
-
-
- // Customisations for the page actions will be defined here
-
-}
-$page = new page_action;
-$page->onDelete();
-
-?>
diff --git a/interface/ispconfig/interface/admin/remote_user_edit.php b/interface/ispconfig/interface/admin/remote_user_edit.php
deleted file mode 100644
index 5a3fc70003f10c1b64e9153ab555d52134ff6830..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/remote_user_edit.php
+++ /dev/null
@@ -1,43 +0,0 @@
-uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-// Create a class page_action that extends the tform_actions base class
-class page_action extends tform_actions {
-
- //* Customisations for the page actions will be defined here
- function onShow() {
- global $app;
-
- // Translate the items, very bad trick... :( because the language file is not loaded yet when the form file gets parsed
- foreach($app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'] as $key => $val) {
- $app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'][$key] = $app->tform->lng($val).' ';
- }
-
- parent::onShow();
- }
-
-}
-
-// Create the new page object
-$page = new page_action();
-
-// Start the page rendering and action handling
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/admin/remote_user_list.php b/interface/ispconfig/interface/admin/remote_user_list.php
deleted file mode 100644
index 6976112af7d16a47919157ae7b59f716441a37f0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/remote_user_list.php
+++ /dev/null
@@ -1,24 +0,0 @@
-uses('listform_actions');
-
-// Optional limit
-// $app->listform_actions->SQLExtWhere = 'type = 'alias'';
-
-// Start the form rendering and action ahndling
-$app->listform_actions->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/admin/server_config_del.php b/interface/ispconfig/interface/admin/server_config_del.php
deleted file mode 100644
index 8c0d0ab7754fac80206d2e2dc56cd6628ab71c75..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_config_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_config_edit.php b/interface/ispconfig/interface/admin/server_config_edit.php
deleted file mode 100644
index bb853b5e8c176f30635d436bebc89a7646c74693..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_config_edit.php
+++ /dev/null
@@ -1,95 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowEdit() {
- global $app, $conf;
-
- if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
-
- if($app->tform->errorMessage == '') {
- $app->uses('ini_parser,getconf');
-
- $section = $this->active_tab;
- $server_id = $this->id;
-
- $this->dataRecord = $app->getconf->get_server_config($server_id,$section);
- }
-
- $record = $app->tform->getHTML($this->dataRecord, $this->active_tab,'EDIT');
-
- $record['id'] = $this->id;
- $app->tpl->setVar($record);
- }
-
- function onUpdateSave($sql) {
- global $app;
-
- if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
- $app->uses('ini_parser,getconf');
-
- $section = $app->tform->getCurrentTab();
- $server_id = $this->id;
-
- $server_config_array = $app->getconf->get_server_config($server_id);
- $server_config_array[$section] = $app->tform->encode($this->dataRecord,$section);
- $server_config_str = $app->ini_parser->get_ini_string($server_config_array);
-
- $app->db->datalogUpdate('server', "config = '".$app->db->quote($server_config_str)."'", 'server_id', $server_id);
- }
-
-}
-
-$app->tform_actions = new page_action;
-$app->tform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_config_list.php b/interface/ispconfig/interface/admin/server_config_list.php
deleted file mode 100644
index 5edfba4d432c5f4aebde173aa5e50a7981f9555c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_config_list.php
+++ /dev/null
@@ -1,53 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-//$app->listform_actions->SQLExtWhere = "wb = 'W'";
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_del.php b/interface/ispconfig/interface/admin/server_del.php
deleted file mode 100644
index 373bb7d408d88a6043156678f1080488c9106c80..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_edit.php b/interface/ispconfig/interface/admin/server_edit.php
deleted file mode 100644
index 376b0f026f4694f87727c19d07d304c2d9fc6977..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_edit.php
+++ /dev/null
@@ -1,86 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowEnd() {
- global $app, $conf;
-
- // Getting Servers
- $sql = "SELECT server_id,server_name FROM server WHERE 1 ORDER BY server_name";
- $mirror_servers = $app->db->queryAllRecords($sql);
- $mirror_server_select = ''.$app->tform->lng('- None -').' ';
- if(is_array($mirror_servers)) {
- foreach( $mirror_servers as $mirror_server) {
- $selected = ($mirror_server["server_id"] == $this->dataRecord['mirror_server_id'])?'SELECTED':'';
- $mirror_server_select .= "$mirror_server[server_name] \r\n";
- }
- }
- $app->tpl->setVar("mirror_server_id",$mirror_server_select);
-
- parent::onShowEnd();
- }
-
- function onSubmit() {
- global $app;
-
- //* We do not want to mirror the the server itself
- if($this->id == $this->dataRecord['mirror_server_id']) $this->dataRecord['mirror_server_id'] = 0;
-
- parent::onSubmit();
-
- }
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_ip_del.php b/interface/ispconfig/interface/admin/server_ip_del.php
deleted file mode 100644
index 38da1706caf02cc145b59f11f8b8983616cb5195..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_ip_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_ip_edit.php b/interface/ispconfig/interface/admin/server_ip_edit.php
deleted file mode 100644
index eee5b35a56051baaa455362ddbeac456e34f00cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_ip_edit.php
+++ /dev/null
@@ -1,73 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onBeforeUpdate() {
- global $app, $conf;
-
- //* Check if the server has been changed
- // We do this only for the admin or reseller users, as normal clients can not change the server ID anyway
- if($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
- $rec = $app->db->queryOneRecord("SELECT server_id from server_ip WHERE server_ip_id = ".$this->id);
- if($rec['server_id'] != $this->dataRecord["server_id"]) {
- //* Add a error message and switch back to old server
- $app->tform->errorMessage .= $app->lng('The Server can not be changed.');
- $this->dataRecord["server_id"] = $rec['server_id'];
- }
- unset($rec);
- }
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_ip_list.php b/interface/ispconfig/interface/admin/server_ip_list.php
deleted file mode 100644
index 28c3f85cbeab3a0e287792651ea145df757195f2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_ip_list.php
+++ /dev/null
@@ -1,54 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-
-$app->listform_actions->SQLOrderBy = "ORDER BY server_id, ip_address";
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/server_list.php b/interface/ispconfig/interface/admin/server_list.php
deleted file mode 100644
index 458aee0eadb924201ad4c9c41961ae78f062a416..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/server_list.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/software_package_list.php b/interface/ispconfig/interface/admin/software_package_list.php
deleted file mode 100644
index a44463dd07f4cc962e76bf0e24d247350c3c029d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/software_package_list.php
+++ /dev/null
@@ -1,169 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-//* Get the latest packages from the repositorys and insert them in the local database
-$packages_added = 0;
-$repos = $app->db->queryAllRecords("SELECT software_repo_id, repo_url, repo_username, repo_password FROM software_repo WHERE active = 'y'");
-if(is_array($repos)) {
- foreach($repos as $repo) {
- $client = new SoapClient(null, array('location' => $repo['repo_url'],
- 'uri' => $repo['repo_url']));
-
- $packages = $client->get_packages($repo['repo_username'], $repo['repo_password']);
- if(is_array($packages)) {
- foreach($packages as $p) {
- $package_name = $app->db->quote($p['name']);
- $tmp = $app->db->queryOneRecord("SELECT package_id FROM software_package WHERE package_name = '$package_name'");
- if(empty($tmp['package_id'])) {
-
- $package_title = $app->db->quote($p['title']);
- $package_description = $app->db->quote($p['description']);
- $software_repo_id = intval($repo['software_repo_id']);
- $package_type = $app->db->quote($p['type']);
-
- $sql = "INSERT INTO software_package (software_repo_id, package_name, package_title, package_description,package_type) VALUES ($software_repo_id, '$package_name', '$package_title', '$package_description','$package_type')";
- $app->db->query($sql);
- $packages_added++;
- }
- }
- }
-
- $packages = $app->db->queryAllRecords("SELECT software_package.package_name, v1, v2, v3, v4 FROM software_package LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) GROUP BY package_name ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC");
- if(is_array($packages)) {
- foreach($packages as $p) {
-
- $version = $p['v1'].'.'.$p['v2'].'.'.$p['v3'].'.'.$p['v4'];
- $updates = $client->get_updates($p['package_name'], $version,$repo['repo_username'], $repo['repo_password']);
-
- if(is_array($updates)) {
- foreach($updates as $u) {
-
- $version_array = explode('.',$u['version']);
- $v1 = intval($version_array[0]);
- $v2 = intval($version_array[1]);
- $v3 = intval($version_array[2]);
- $v4 = intval($version_array[3]);
-
- $package_name = $app->db->quote($u['package_name']);
- $software_repo_id = intval($repo['software_repo_id']);
- $update_url = $app->db->quote($u['url']);
- $update_md5 = $app->db->quote($u['md5']);
- $update_dependencies = (isset($u['dependencies']))?$app->db->quote($u['dependencies']):'';
- $update_title = $app->db->quote($u['title']);
- $type = $app->db->quote($u['type']);
-
- // Check that we do not have this update in the database yet
- $sql = "SELECT * FROM software_update WHERE package_name = '$package_name' and v1 = '$v1' and v2 = '$v2' and v3 = '$v3' and v4 = '$v4'";
- $tmp = $app->db->queryOneRecord($sql);
- if(!isset($tmp['software_update_id'])) {
- // Insert the update in the datbase
- $sql = "INSERT INTO software_update (software_repo_id, package_name, update_url, update_md5, update_dependencies, update_title, v1, v2, v3, v4, type)
- VALUES ($software_repo_id, '$package_name', '$update_url', '$update_md5', '$update_dependencies', '$update_title', '$v1', '$v2', '$v3', '$v4', '$type')";
- //die($sql);
- $app->db->query($sql);
- }
-
- }
- }
- }
- }
- }
-}
-
-//* Install packages, if GET Request
-if(isset($_GET['action']) && $_GET['action'] == 'install' && $_GET['package'] != '' && $_GET['server_id'] > 0) {
- $package_name = $app->db->quote($_GET['package']);
- $server_id = intval($_GET['server_id']);
- $sql = "SELECT software_update_id, package_name, update_title FROM software_update WHERE type = 'full' AND package_name = '$package_name' ORDER BY v1 DESC, v2 DESC, v3 DESC, v4 DESC LIMIT 0,1";
- $tmp = $app->db->queryOneRecord($sql);
- $software_update_id = $tmp['software_update_id'];
-
- $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installing')";
- // $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installed')";
- $app->db->datalogInsert('software_update_inst', $insert_data, 'software_update_inst_id');
-
-}
-
-
-
-// Show the list in the interface
-// Loading the template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/software_package_list.htm');
-
-
-$servers = $app->db->queryAllRecords('SELECT server_id, server_name FROM server ORDER BY server_name');
-$packages = $app->db->queryAllRecords('SELECT * FROM software_package');
-if(is_array($packages)) {
- foreach($packages as $key => $p) {
- $installed_txt = '';
- foreach($servers as $s) {
- $inst = $app->db->queryOneRecord("SELECT * FROM software_update, software_update_inst WHERE software_update_inst.software_update_id = software_update.software_update_id AND software_update_inst.package_name = '".addslashes($p["package_name"])."' AND server_id = '".$s["server_id"]."'");
- $version = $inst['v1'].'.'.$inst['v2'].'.'.$inst['v3'].'.'.$inst['v4'];
-
- if($inst['status'] == 'installed') {
- $installed_txt .= $s['server_name'].": Installed version $version ";
- } elseif ($inst['status'] == 'installing') {
- $installed_txt .= $s['server_name'].": Installation in progress ";
- } elseif ($inst['status'] == 'failed') {
- $installed_txt .= $s['server_name'].": Installation failed ";
- } elseif ($inst['status'] == 'deleting') {
- $installed_txt .= $s['server_name'].": Deletion in progress ";
- } else {
- $installed_txt .= $s['server_name'].": Install now ";
- }
- }
- $packages[$key]['installed'] = $installed_txt;
- }
-}
-
-
-
-$app->tpl->setLoop('records',$packages);
-
-include_once('lib/lang/en_software_package_list.lng');
-$app->tpl->setVar($wb);
-
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/software_repo_del.php b/interface/ispconfig/interface/admin/software_repo_del.php
deleted file mode 100644
index 6ee0e9d5007fbec2cae316d0e2ed89da8a2f3810..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/software_repo_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/software_repo_edit.php b/interface/ispconfig/interface/admin/software_repo_edit.php
deleted file mode 100644
index 4839812d81016a897146b7fdf1ef6c78e0c73352..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/software_repo_edit.php
+++ /dev/null
@@ -1,58 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/software_repo_list.php b/interface/ispconfig/interface/admin/software_repo_list.php
deleted file mode 100644
index 0f7bd8ac799a3da074017fd61e1895c159b870e8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/software_repo_list.php
+++ /dev/null
@@ -1,52 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/software_update_list.php b/interface/ispconfig/interface/admin/software_update_list.php
deleted file mode 100644
index 4c7da37e6265330052b6a1c011c9833fcfa03dbc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/software_update_list.php
+++ /dev/null
@@ -1,222 +0,0 @@
-auth->check_module_permissions('admin');
-
-//* This is only allowed for administrators
-if(!$app->auth->is_admin()) die('only allowed for administrators.');
-
-//* Get the latest updates from the repositorys and insert them in the local database
-$updates_added = 0;
-$repos = $app->db->queryAllRecords("SELECT software_repo_id, repo_url, repo_username, repo_password FROM software_repo WHERE active = 'y'");
-if(is_array($repos)) {
- foreach($repos as $repo) {
-
- /*
- SELECT software_package.package_name, v1, v2, v3, v4
- FROM software_package
- LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name )
- LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id )
- GROUP BY package_name
- ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC
- */
-
- $client = new SoapClient(null, array('location' => $repo['repo_url'],
- 'uri' => $repo['repo_url']));
-
- $packages = $app->db->queryAllRecords("SELECT software_package.package_name, v1, v2, v3, v4 FROM software_package LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name ) GROUP BY package_name ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC");
- if(is_array($packages)) {
- foreach($packages as $p) {
-
- $version = $p['v1'].'.'.$p['v2'].'.'.$p['v3'].'.'.$p['v4'];
- $updates = $client->get_updates($p['package_name'], $version,$repo['repo_username'], $repo['repo_password']);
-
- if(is_array($updates)) {
- foreach($updates as $u) {
-
- $version_array = explode('.',$u['version']);
- $v1 = intval($version_array[0]);
- $v2 = intval($version_array[1]);
- $v3 = intval($version_array[2]);
- $v4 = intval($version_array[3]);
-
- $package_name = $app->db->quote($u['package_name']);
- $software_repo_id = intval($repo['software_repo_id']);
- $update_url = $app->db->quote($u['url']);
- $update_md5 = $app->db->quote($u['md5']);
- $update_dependencies = (isset($u['dependencies']))?$app->db->quote($u['dependencies']):'';
- $update_title = $app->db->quote($u['title']);
- $type = $app->db->quote($u['type']);
-
- // Check that we do not have this update in the database yet
- $sql = "SELECT * FROM software_update WHERE package_name = '$package_name' and v1 = '$v1' and v2 = '$v2' and v3 = '$v3' and v4 = '$v4'";
- $tmp = $app->db->queryOneRecord($sql);
- if(!isset($tmp['software_update_id'])) {
- // Insert the update in the datbase
- $sql = "INSERT INTO software_update (software_repo_id, package_name, update_url, update_md5, update_dependencies, update_title, v1, v2, v3, v4, type)
- VALUES ($software_repo_id, '$package_name', '$update_url', '$update_md5', '$update_dependencies', '$update_title', '$v1', '$v2', '$v3', '$v4', '$type')";
- //die($sql);
- $app->db->query($sql);
- }
-
- }
- }
- }
- }
- }
-}
-
-
-//* Install packages, if GET Request
-if(isset($_GET['action']) && $_GET['action'] == 'install' && $_GET['package'] != '' && $_GET['server_id'] > 0) {
- $package_name = $app->db->quote($_GET['package']);
- $server_id = intval($_GET['server_id']);
- $software_update_id = intval($_GET['id']);
-
- $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installing')";
- // $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$server_id', '$software_update_id','installed')";
- $app->db->datalogInsert('software_update_inst', $insert_data, 'software_update_inst_id');
-
-}
-
-
-
-// Show the list in the interface
-// Loading the template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/software_update_list.htm');
-
-/*
-SELECT software_package.package_name, software_package.package_title, software_update.update_title, v1, v2, v3, v4, software_update_inst.status
- FROM software_package
- LEFT JOIN software_update ON ( software_package.package_name = software_update.package_name )
- LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id )
-GROUP BY software_update.software_update_id
- ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC
-*/
-
-
-
-if(isset($_POST["server_id"]) && $_POST["server_id"] > 0) {
- $server_id = intval($_POST["server_id"]);
-} else {
- $server_id = 1;
-}
-
-$servers = $app->db->queryAllRecords('SELECT server_id, server_name FROM server ORDER BY server_name');
-foreach($servers as $key => $server) {
- if($server['server_id'] == $server_id) {
- $servers[$key]['selected'] = 'selected';
- } else {
- $servers[$key]['selected'] = '';
- }
-}
-
-$app->tpl->setLoop('servers',$servers);
-
-$sql = "SELECT v1, v2, v3, v4, software_update.update_title, software_update.software_update_id, software_update.package_name, v1, v2, v3, v4, software_update_inst.status
- FROM software_update LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id )
- WHERE server_id = $server_id
- GROUP BY software_update.package_name
- ORDER BY software_update.package_name ASC, v1 DESC , v2 DESC , v3 DESC , v4 DESC";
-
-$installed_packages = $app->db->queryAllRecords($sql);
-
-
-$records_out = array();
-
-if(is_array($installed_packages)) {
- foreach($installed_packages as $ip) {
-
- // Get version number of the latest installed version
- $sql = "SELECT v1, v2, v3, v4 FROM software_update, software_update_inst WHERE software_update.software_update_id = software_update_inst.software_update_id AND server_id = 1 ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC LIMIT 0,1";
- $lu = $app->db->queryOneRecord($sql);
-
- // Get all installable updates
- $sql = "SELECT * FROM software_update WHERE v1 >= $lu[v1] AND v2 >= $lu[v2] AND v3 >= $lu[v3] AND v4 >= $lu[v4] AND package_name = '$ip[package_name]' ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC";
- $updates = $app->db->queryAllRecords($sql);
- //die($sql);
-
- if(is_array($updates)) {
- // Delete the last record as it is already installed
- unset($updates[count($updates)-1]);
-
- foreach($updates as $key => $u) {
- $version = $u['v1'].'.'.$u['v2'].'.'.$u['v3'].'.'.$u['v4'];
- $installed_txt = "Install Update ";
- $records_out[] = array('version' => $version, 'update_title' => $u["update_title"], 'installed' => $installed_txt);
-
- }
- }
- }
-}
-
-/*
-$updates = $app->db->queryAllRecords('SELECT software_update.update_title, software_update.software_update_id, software_update.package_name, v1, v2, v3, v4, software_update_inst.status
- FROM software_update LEFT JOIN software_update_inst ON ( software_update.software_update_id = software_update_inst.software_update_id )
- WHERE server_id = '.$server_id.'
- GROUP BY software_update.package_name
- ORDER BY software_update.package_name ASC, v1 DESC , v2 DESC , v3 DESC , v4 DESC');
-
-if(is_array($updates)) {
- foreach($updates as $key => $u) {
- $installed_txt = '';
-
- $version = $u['v1'].'.'.$u['v2'].'.'.$u['v3'].'.'.$u['v4'];
- $updates[$key]['version'] = $version;
- if($u['status'] == 'installed' || $u['status'] == 'installing' || $u['status'] == 'deleting') {
- $installed_txt .= "Installed version $version ";
- } else {
- $installed_txt .= "Install now ";
- }
- $updates[$key]['installed'] = $installed_txt;
-
- }
-}
-*/
-
-
-
-$app->tpl->setLoop('records',$records_out);
-
-include_once('lib/lang/en_software_update_list.lng');
-$app->tpl->setVar($wb);
-
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/system_config_edit.php b/interface/ispconfig/interface/admin/system_config_edit.php
deleted file mode 100644
index 14b7fcbc03b8facf57592eb231c1d41835cccc9c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/system_config_edit.php
+++ /dev/null
@@ -1,97 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowEdit() {
- global $app, $conf;
-
- if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
-
- if($app->tform->errorMessage == '') {
- $app->uses('ini_parser,getconf');
-
- $section = $this->active_tab;
- $server_id = $this->id;
-
- $this->dataRecord = $app->getconf->get_global_config($section);
-
- }
-
- $record = $app->tform->getHTML($this->dataRecord, $this->active_tab,'EDIT');
-
- $record['warning'] = $app->tform->lng('warning');
- $record['id'] = $this->id;
- $app->tpl->setVar($record);
- }
-
- function onUpdateSave($sql) {
- global $app;
-
- if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
- $app->uses('ini_parser,getconf');
-
- $section = $app->tform->getCurrentTab();
-
- $server_config_array = $app->getconf->get_global_config();
- $server_config_array[$section] = $app->tform->encode($this->dataRecord,$section);
- $server_config_str = $app->ini_parser->get_ini_string($server_config_array);
-
- $sql = "UPDATE sys_ini SET config = '".$app->db->quote($server_config_str)."' WHERE sysini_id = 1";
- $app->db->query($sql);
- }
-
-}
-
-$app->tform_actions = new page_action;
-$app->tform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/templates/firewall_edit.htm b/interface/ispconfig/interface/admin/templates/firewall_edit.htm
deleted file mode 100644
index 554f7d0a0c3fb862305357634e3c5fe07e8eb7de..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/firewall_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/firewall_list.htm b/interface/ispconfig/interface/admin/templates/firewall_list.htm
deleted file mode 100644
index 53228c8af5f92f50a59b565568df0e878cc49992..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/firewall_list.htm
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/groups_edit.htm b/interface/ispconfig/interface/admin/templates/groups_edit.htm
deleted file mode 100644
index 6a3434714fa7ffc38d4586f8d62f070a501aac98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/groups_edit.htm
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/groups_list.htm b/interface/ispconfig/interface/admin/templates/groups_list.htm
deleted file mode 100644
index 0ae6ccb75e5bfecfb9b90722206af6ab4def3206..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/groups_list.htm
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_add.htm b/interface/ispconfig/interface/admin/templates/language_add.htm
deleted file mode 100644
index d2254c2890b239fb6664fe7e8865b6dd5a7a239d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_add.htm
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_complete.htm b/interface/ispconfig/interface/admin/templates/language_complete.htm
deleted file mode 100644
index f3492bb6e88f9a47bdc83f4a46997ed8d1546031..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_complete.htm
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_edit.htm b/interface/ispconfig/interface/admin/templates/language_edit.htm
deleted file mode 100644
index a0ef32ec7f8ad3d4c70970f26651e6cdf291078f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_edit.htm
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_export.htm b/interface/ispconfig/interface/admin/templates/language_export.htm
deleted file mode 100644
index 95c05208eb84934a84f3f99b8e44e8dd1f3e8522..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_export.htm
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_import.htm b/interface/ispconfig/interface/admin/templates/language_import.htm
deleted file mode 100644
index 70f44ce2f8a776af5db4d6b3e8757c74fff87369..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_import.htm
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/language_list.htm b/interface/ispconfig/interface/admin/templates/language_list.htm
deleted file mode 100644
index 9568bef10eb60d84a16d161ffa58fdf608b35cc1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/language_list.htm
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/remote_user_edit.htm b/interface/ispconfig/interface/admin/templates/remote_user_edit.htm
deleted file mode 100644
index 5d2c4785cf25d3327ba8bf4490998cdd1e186acc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/remote_user_edit.htm
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/remote_user_list.htm b/interface/ispconfig/interface/admin/templates/remote_user_list.htm
deleted file mode 100644
index 972581f73cd143fa2ce9ee48c21718d3c79ec51f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/remote_user_list.htm
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm
deleted file mode 100644
index 066693ed83089e005f0ce1834c04af5f17ade95c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_cron_edit.htm
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm
deleted file mode 100644
index 63fae8a03b81b58fa4bfc7aef85d6d8b20b9d25d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_dns_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm
deleted file mode 100644
index 8551d87abb5530b7e6670f5479416a6e95d6924c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_fastcgi_edit.htm
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm
deleted file mode 100644
index fc86eb4cadc443a292910d4bf4f846c7c2b0225f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_getmail_edit.htm
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm
deleted file mode 100644
index 320fb875429a886a2522319e34fdc788ab3cd2e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_jailkit_edit.htm
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_list.htm b/interface/ispconfig/interface/admin/templates/server_config_list.htm
deleted file mode 100644
index 487a39708e0048e383dfccd8b572c18be8417784..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_list.htm
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm
deleted file mode 100644
index 4f35abcc9255ca772a7218fba9b49b7df63184c0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_mail_edit.htm
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm
deleted file mode 100644
index 361b2c7bdf8a7b0074e7443a6eb9d18a62f9efa1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_server_edit.htm
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm
deleted file mode 100644
index bf6a82ab31f92c3e3a53f348af2d93b468962b6f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_vlogger_edit.htm
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm b/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm
deleted file mode 100644
index 6ab287b9f37e0273c97d77bcdd19e13d9ebc98f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_config_web_edit.htm
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_edit_config.htm b/interface/ispconfig/interface/admin/templates/server_edit_config.htm
deleted file mode 100644
index 02f6ef34d35b0378a86611afd51166aa2a37c750..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_edit_config.htm
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_edit_services.htm b/interface/ispconfig/interface/admin/templates/server_edit_services.htm
deleted file mode 100644
index 470a10ef1486d2df58124250693e0b435ac3c4b8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_edit_services.htm
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_ip_edit.htm b/interface/ispconfig/interface/admin/templates/server_ip_edit.htm
deleted file mode 100644
index 1ebe8bd91a02df425f50f70b02be17d46bd50b46..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_ip_edit.htm
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_ip_list.htm b/interface/ispconfig/interface/admin/templates/server_ip_list.htm
deleted file mode 100644
index f35e84a06213c350a4ffcb7a76f6fc6c72f84320..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_ip_list.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/server_list.htm b/interface/ispconfig/interface/admin/templates/server_list.htm
deleted file mode 100644
index acfa541409f06b9cfd98dad475164d4972ecda5d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/server_list.htm
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/software_package_list.htm b/interface/ispconfig/interface/admin/templates/software_package_list.htm
deleted file mode 100644
index dd465ac6b28985a38582e1cbfb2ec65a2d7ceaa3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/software_package_list.htm
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {tmpl_var name="installed"}
- {tmpl_var name="package_title"}
- {tmpl_var name="package_description"}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/software_repo_edit.htm b/interface/ispconfig/interface/admin/templates/software_repo_edit.htm
deleted file mode 100644
index af335ecf5cf7df3cec20ff177e35c266ef3e47d6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/software_repo_edit.htm
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/software_repo_list.htm b/interface/ispconfig/interface/admin/templates/software_repo_list.htm
deleted file mode 100644
index 05adca9d9f4f1d9cb5223d59d9a9af1656884549..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/software_repo_list.htm
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/software_update_list.htm b/interface/ispconfig/interface/admin/templates/software_update_list.htm
deleted file mode 100644
index 10a0acf12b5e77c4e17d92b839449272e10b23f3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/software_update_list.htm
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {tmpl_var name="installed"}
- {tmpl_var name="update_title"}
- {tmpl_var name="version"}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm b/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm
deleted file mode 100644
index b905e2d089ab6b008ad048c68ef33732983c3f82..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/system_config_mail_edit.htm
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm b/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm
deleted file mode 100644
index c819776525a581ff0c5eb19d5d3edd7036226765..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/system_config_sites_edit.htm
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/users_groups_edit.htm b/interface/ispconfig/interface/admin/templates/users_groups_edit.htm
deleted file mode 100644
index 004c7dbd6ec5f97fe2d402d6de86cd07bb25b2ab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/users_groups_edit.htm
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/users_list.htm b/interface/ispconfig/interface/admin/templates/users_list.htm
deleted file mode 100644
index 6634201a7c8df44065188dc3d4de3464b15ab212..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/users_list.htm
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/templates/users_user_edit.htm b/interface/ispconfig/interface/admin/templates/users_user_edit.htm
deleted file mode 100644
index ce0017823f02b9e0507cc431b2088839c4d41e55..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/templates/users_user_edit.htm
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/admin/users_del.php b/interface/ispconfig/interface/admin/users_del.php
deleted file mode 100644
index 97c3154c88a796cd564ec71b461fea26c51e48d1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/users_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/users_edit.php b/interface/ispconfig/interface/admin/users_edit.php
deleted file mode 100644
index 4344e3c9554983b1a722d1ed101e0ae8a1f1e6e8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/users_edit.php
+++ /dev/null
@@ -1,74 +0,0 @@
-auth->check_module_permissions('admin');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onBeforeInsert() {
- global $app, $conf;
-
- if(!in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) {
- $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
- }
- }
-
- function onBeforeUpdate() {
- global $app, $conf;
-
- if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) {
- $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
- }
- }
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/admin/users_list.php b/interface/ispconfig/interface/admin/users_list.php
deleted file mode 100644
index d2e2c8675922a33bbd381c45aa8b29c23e3cc191..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/admin/users_list.php
+++ /dev/null
@@ -1,52 +0,0 @@
-auth->check_module_permissions('admin');
-
-$app->uses('listform_actions');
-$app->listform_actions->SQLOrderBy = 'ORDER BY username';
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/capp.php b/interface/ispconfig/interface/capp.php
deleted file mode 100644
index 354652ce37052055109fb5923641c52a9debcfe8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/capp.php
+++ /dev/null
@@ -1,56 +0,0 @@
-error($app->lng(301));
-
-// lade Moduldaten in Session
-if(is_file($mod."/lib/module.conf.php")) {
- include_once($mod."/lib/module.conf.php");
- $_SESSION["s"]["module"] = $module;
- echo "HEADER_REDIRECT:".$_SESSION["s"]["module"]["startpage"];
-} else {
- $app->error($app->lng(302));
-}
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/client_del.php b/interface/ispconfig/interface/client/client_del.php
deleted file mode 100644
index db1790c062a3ae71d1351a6f11ac8481349cf421..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_del.php
+++ /dev/null
@@ -1,166 +0,0 @@
-auth->check_module_permissions('client');
-
-$app->uses('tpl,tform');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onDelete() {
- global $app, $conf,$list_def_file,$tform_def_file;
-
- if($_POST["confirm"] == 'yes') {
- parent::onDelete();
- } else {
-
- $app->uses('tpl');
- $app->tpl->newTemplate("form.tpl.htm");
- $app->tpl->setInclude('content_tpl', 'templates/client_del.htm');
-
- include_once($list_def_file);
-
- // Loading tform framework
- if(!is_object($app->tform)) $app->uses('tform');
-
- // Load table definition from file
- $app->tform->loadFormDef($tform_def_file);
-
- $this->id = intval($_REQUEST["id"]);
-
- $this->dataRecord = $app->tform->getDataRecord($this->id);
- $client_id = intval($this->dataRecord['client_id']);
- //$parent_client_id = intval($this->dataRecord['parent_client_id']);
- //$parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id");
- $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id");
-
- // Get all records (sub-clients, mail, web, etc....) of this client.
- $tables = 'client,dns_rr,dns_soa,ftp_user,mail_access,mail_content_filter,mail_domain,mail_forwarding,mail_get,mail_user,mail_user_filter,shell_user,spamfilter_users,support_message,web_database,web_domain,web_traffic';
- $tables_array = explode(',',$tables);
- $client_group_id = intval($client_group['groupid']);
- $table_list = array();
- if($client_group_id > 1) {
- foreach($tables_array as $table) {
- if($table != '') {
- $records = $app->db->queryAllRecords("SELECT * FROM $table WHERE sys_groupid = ".$client_group_id);
- $number = count($records);
- if($number > 0) $table_list[] = array('table' => $table."(".$number.")");
- }
- }
- }
-
- $app->tpl->setVar('id',$this->id);
- $app->tpl->setLoop('records', $table_list);
-
- //* load language file
- $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_client_del.lng';
- include($lng_file);
- $app->tpl->setVar($wb);
-
- $app->tpl_defaults();
- $app->tpl->pparse();
- }
- }
-
-
-
-
- function onAfterDelete() {
- global $app, $conf;
-
- $client_id = intval($this->dataRecord['client_id']);
-
- if($client_id > 0) {
- // remove the group of the client from the resellers group
- $parent_client_id = intval($this->dataRecord['parent_client_id']);
- $parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id");
- $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id");
- $app->auth->remove_group_from_user($parent_user['userid'],$client_group['groupid']);
-
- // delete the group of the client
- $app->db->query("DELETE FROM sys_group WHERE client_id = $client_id");
-
- // delete the sys user(s) of the client
- $app->db->query("DELETE FROM sys_user WHERE client_id = $client_id");
-
- // Delete all records (sub-clients, mail, web, etc....) of this client.
- $tables = 'client,dns_rr,dns_soa,ftp_user,mail_access,mail_content_filter,mail_domain,mail_forwarding,mail_get,mail_user,mail_user_filter,shell_user,spamfilter_users,support_message,web_database,web_domain,web_traffic';
- $tables_array = explode(',',$tables);
- $client_group_id = intval($client_group['groupid']);
- if($client_group_id > 1) {
- foreach($tables_array as $table) {
- if($table != '') {
- $records = $app->db->queryAllRecords("SELECT * FROM $table WHERE sys_groupid = ".$client_group_id);
- // find the primary ID of the table
- $table_info = $app->db->tableInfo($table);
- $index_field = '';
- foreach($table_info as $tmp) {
- if($tmp['option'] == 'primary') $index_field = $tmp['name'];
- }
- // Delete the records
- if($index_field != '') {
- if(is_array($records)) {
- foreach($records as $rec) {
- $app->db->datalogDelete($table, $index_field, $rec[$index_field]);
- }
- }
- }
-
- }
- }
- }
-
-
-
- }
-
- }
-}
-
-$page = new page_action;
-$page->onDelete()
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/client_edit.php b/interface/ispconfig/interface/client/client_edit.php
deleted file mode 100644
index 9073ec9c2e82d84d1c3fe8bd962089ae8728aa44..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_edit.php
+++ /dev/null
@@ -1,228 +0,0 @@
-auth->check_module_permissions('client');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another website.
- if($client["limit_client"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_client"]) {
- $app->error($app->tform->wordbook["limit_client_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
-
- function onSubmit() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user' && $this->id == 0) {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another website.
- if($client["limit_client"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_client"]) {
- $app->error($app->tform->wordbook["limit_client_txt"]);
- }
- }
- }
-
- parent::onSubmit();
- }
-
-
- function onShowEnd() {
-
- global $app;
-
- $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'";
- $tpls = $app->db->queryAllRecords($sql);
- $option = '';
- $tpl = array();
- foreach($tpls as $item){
- $option .= '' . $item['template_name'] . ' ';
- $tpl[$item['template_id']] = $item['template_name'];
- }
- $app->tpl->setVar('tpl_add_select',$option);
-
- $sql = "SELECT template_additional FROM client WHERE client_id = " . $this->id;
- $result = $app->db->queryOneRecord($sql);
- $tplAdd = explode("/", $result['template_additional']);
- $text = '';
- foreach($tplAdd as $item){
- if (trim($item) != ''){
- if ($text != '') $text .= ' ';
- $text .= $tpl[$item];
- }
- }
-
- $app->tpl->setVar('template_additional_list', $text);
-
- parent::onShowEnd();
-
- }
-
- /*
- This function is called automatically right after
- the data was successful inserted in the database.
- */
- function onAfterInsert() {
- global $app;
- // Create the group for the client
- $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid');
- $groups = $groupid;
-
- $username = $app->db->quote($this->dataRecord["username"]);
- $password = $app->db->quote($this->dataRecord["password"]);
- $modules = ISPC_INTERFACE_MODULES_ENABLED;
- if($this->dataRecord["limit_client"] > 0) $modules .= ',client';
- $startmodule = 'mail';
- $usertheme = $app->db->quote($this->dataRecord["usertheme"]);
- $type = 'user';
- $active = 1;
- $language = $app->db->quote($this->dataRecord["language"]);
-
- // Create the controlpaneluser for the client
- $sql = "INSERT INTO sys_user (username,passwort,modules,startmodule,app_theme,typ,active,language,groups,default_group,client_id)
- VALUES ('$username',md5('$password'),'$modules','$startmodule','$usertheme','$type','$active','$language',$groups,$groupid,".$this->id.")";
- $app->db->query($sql);
-
- //* If the user who inserted the client is a reseller (not admin), we will have to add this new client group
- //* to his groups, so he can administrate the records of this client.
- if($_SESSION['s']['user']['typ'] == 'user') {
- $app->auth->add_group_to_user($_SESSION['s']['user']['userid'],$groupid);
- $app->db->query("UPDATE client SET parent_client_id = ".intval($_SESSION['s']['user']['client_id'])." WHERE client_id = ".$this->id);
- }
-
- $app->db->query("UPDATE client SET created_at = ".time()." WHERE client_id = ".$this->id);
-
- /* If there is a client-template, process it */
- applyClientTemplates($this->id);
-
- parent::onAfterInsert();
- }
-
-
- /*
- This function is called automatically right after
- the data was successful updated in the database.
- */
- function onAfterUpdate() {
- global $app;
-
- // username changed
- if(isset($this->dataRecord['username']) && $this->dataRecord['username'] != '' && $this->oldDataRecord['username'] != $this->dataRecord['username']) {
- $username = $app->db->quote($this->dataRecord["username"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id";
- $app->db->query($sql);
-
- $tmp = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE client_id = $client_id");
- $app->db->datalogUpdate("sys_group", "name = '$username'", 'groupid', $tmp['groupid']);
- unset($tmp);
- }
-
- // password changed
- if(isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') {
- $password = $app->db->quote($this->dataRecord["password"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id";
- $app->db->query($sql);
- }
-
- // language changed
- if(isset($this->dataRecord['language']) && $this->dataRecord['language'] != '' && $this->oldDataRecord['language'] != $this->dataRecord['language']) {
- $language = $app->db->quote($this->dataRecord["language"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET language = '$language' WHERE client_id = $client_id";
- $app->db->query($sql);
- }
-
- // reseller status changed
- if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) {
- $modules = ISPC_INTERFACE_MODULES_ENABLED;
- if($this->dataRecord["limit_client"] > 0) $modules .= ',client';
- $modules = $app->db->quote($modules);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id";
- $app->db->query($sql);
- }
- /*
- * If there is a client-template, process it */
- applyClientTemplates($this->id);
-
- parent::onAfterUpdate();
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/client_list.php b/interface/ispconfig/interface/client/client_list.php
deleted file mode 100644
index dd98e29a1e4994f7e94204d9605c2371cdf1b0ed..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_list.php
+++ /dev/null
@@ -1,25 +0,0 @@
-auth->check_module_permissions('client');
-
-$app->uses('listform_actions');
-
-$app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id';
-$app->listform_actions->SQLExtWhere = "limit_client = 0";
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/client_template_del.php b/interface/ispconfig/interface/client/client_template_del.php
deleted file mode 100644
index 6d8e8348f5be4461c3a1e4edcec37dfbde4c2599..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_template_del.php
+++ /dev/null
@@ -1,67 +0,0 @@
-auth->check_module_permissions('client');
-if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are for Admins only.');
-
-$app->uses('tpl,tform');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
- function onBeforeDelete() {
- global $app;
-
- $rec = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE template_master = ".$this->id." OR template_additional like '%/".$this->id."/%'");
- if($rec['number'] > 0) {
- $app->error($app->tform->lng('template_del_aborted_txt'));
- }
-
- }
-}
-
-$page = new page_action;
-$page->onDelete()
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/client_template_edit.php b/interface/ispconfig/interface/client/client_template_edit.php
deleted file mode 100644
index f032ded7c1854c85167e848bd3ba04e5a14d4fba..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_template_edit.php
+++ /dev/null
@@ -1,97 +0,0 @@
-auth->check_module_permissions('client');
-if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onBeforeUpdate() {
- global $app;
-
- if(isset($this->dataRecord['template_type'])) {
- //* Check if the template_type has been changed
- $rec = $app->db->queryOneRecord("SELECT template_type from client_template WHERE template_id = ".$this->id);
- if($rec['template_type'] != $this->dataRecord['template_type']) {
- //* Add a error message and switch back to old server
- $app->tform->errorMessage .= $app->lng('The template type can not be changed.');
- $this->dataRecord['template_type'] = $rec['template_type'];
- }
- unset($rec);
- }
- }
-
-
- /*
- This function is called automatically right after
- the data was successful updated in the database.
- */
- function onAfterUpdate() {
- global $app;
-
- /*
- * the template has changed. apply the new data to all clients
- */
- if ($this->dataRecord["template_type"] == 'm'){
- $sql = "SELECT client_id FROM client WHERE template_master = " . $this->id;
- } else {
- $sql = "SELECT client_id FROM client WHERE template_additional LIKE '%/" . $this->id . '/%"';
- }
- $clients = $app->db->queryAllRecords($sql);
- if (is_array($clients)){
- foreach ($clients as $client){
- applyClientTemplates($client['client_id']);
- }
- }
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-?>
diff --git a/interface/ispconfig/interface/client/client_template_list.php b/interface/ispconfig/interface/client/client_template_list.php
deleted file mode 100644
index d9a9163749ef83c76cc6ac86122c2e7ed85912d3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/client_template_list.php
+++ /dev/null
@@ -1,21 +0,0 @@
-auth->check_module_permissions('client');
-if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.');
-
-$app->uses('listform_actions');
-$app->listform_actions->onLoad();
-?>
diff --git a/interface/ispconfig/interface/client/form/client.tform.php b/interface/ispconfig/interface/client/form/client.tform.php
deleted file mode 100644
index 01f616e53fe5f0c8eab796334e6533752b51428e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/form/client.tform.php
+++ /dev/null
@@ -1,785 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-//* Languages
-$language_list = array();
-$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') {
- $tmp = substr($file, 0, 2);
- $language_list[$tmp] = $tmp;
- }
- }
-}
-
-//* Load themes
-$themes_list = array();
-$handle = @opendir(ISPC_THEMES_PATH);
-while ($file = @readdir ($handle)) {
- if (substr($file, 0, 1) != '.') {
- if(@is_dir(ISPC_THEMES_PATH."/$file")) {
- $themes_list[$file] = $file;
- }
- }
-}
-
-$form["tabs"]['address'] = array (
- 'title' => "Address",
- 'width' => 100,
- 'template' => "templates/client_edit_address.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'company_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'contact_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'contact_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'username_error_empty'),
- 1 => array ( 'type' => 'CUSTOM',
- 'class' => 'validate_client',
- 'function' => 'username_unique',
- 'errmsg'=> 'username_error_unique'),
- 2 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\_]{0,64}$/',
- 'errmsg'=> 'username_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'PASSWORD',
- 'encryption'=> 'CRYPT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'language' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => $conf["language"],
- 'value' => $language_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'usertheme' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => 'default',
- 'value' => $themes_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'street' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'zip' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'city' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'state' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'country' => array (
- 'datatype' => 'VARCHAR',
-
- 'formtype' => 'SELECT',
- 'default' => 'DE',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
- 'keyfield'=> 'iso',
- 'valuefield'=> 'printable_name'
- ),
- 'value' => ''
- ),
- 'telephone' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'mobile' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'fax' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'email' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'internet' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'http://',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'icq' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'notes' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '10',
- 'cols' => '30'
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['limits'] = array (
- 'title' => "Limits",
- 'width' => 80,
- 'template' => "templates/client_edit_limits.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'template_master' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'master_templates'
- ),
- 'value' => ''
- ),
- 'template_additional' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- ),
- 'default_mailserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'client_servers'
- ),
- 'value' => '',
- 'name' => 'default_mailserver'
- ),
- 'limit_maildomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_maildomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailbox' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailbox_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailalias' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailalias_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailaliasdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailaliasdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailforward' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailforward_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailcatchall' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailcatchall_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailrouting' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailrouting_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailfilter' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfilter_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_fetchmail' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfetchmail_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailquota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailquota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_wblist' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_policy' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_policy_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'default_webserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'client_servers'
- ),
- 'value' => '',
- 'name' => 'default_webserver'
- ),
- 'limit_web_domain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_domain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'web_php_options' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'separator' => ',',
- 'valuelimit' => 'client:web_php_options',
- 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP')
- ),
- 'limit_web_aliasdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_aliasdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_subdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_subdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_ftp_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_ftp_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_shell_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_shell_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ssh_chroot' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'separator' => ',',
- 'valuelimit' => 'client:ssh_chroot',
- 'value' => array('no' => 'None', 'jailkit' => 'Jailkit')
- ),
- 'default_dnsserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'client_servers'
- ),
- 'value' => '',
- 'name' => 'default_dnsserver'
- ),
- 'limit_dns_zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_zone_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_dns_record' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_record_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_client' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_client_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'default_dbserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'client_servers'
- ),
- 'value' => '',
- 'name' => 'default_dbserver'
- ),
- 'limit_database' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_database_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron')
- ),
- 'limit_cron_frequency' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_frequency'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_traffic_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_traffic_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-/*
-$form["tabs"]['ipaddress'] = array (
- 'title' => "IP Addresses",
- 'width' => 100,
- 'template' => "templates/client_edit_ipaddress.htm",
- 'fields' => array (
- ##################################
- # Beginn Datatable fields
- ##################################
- 'ip_address' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'value' => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'),
- 'separator' => ';'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-*/
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/form/client_template.tform.php b/interface/ispconfig/interface/client/form/client_template.tform.php
deleted file mode 100644
index d1db4bae01e60d51944db7f19c80aaef8035797c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/form/client_template.tform.php
+++ /dev/null
@@ -1,482 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-//* Languages
-$language_list = array();
-$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') {
- $tmp = substr($file, 0, 2);
- $language_list[$tmp] = $tmp;
- }
- }
-}
-
-$form["tabs"]['template'] = array (
- 'title' => "Template",
- 'width' => 80,
- 'template' => "templates/client_template_edit_template.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'template_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => 'm',
- 'value' => array('m' => "Main Template",'a' => "Additional Template"),
- ),
- 'template_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'error_template_name_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['limits'] = array (
- 'title' => "Limits",
- 'width' => 80,
- 'template' => "templates/client_template_edit_limits.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'limit_maildomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_maildomain_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailbox' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailbox_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailalias' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailalias_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailaliasdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailaliasdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailforward' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailforward_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailcatchall' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailcatchall_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailrouting' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailrouting_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailfilter' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfilter_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_fetchmail' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfetchmail_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailquota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailquota_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_wblist' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_user_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_policy' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_policy_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_domain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_domain_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_aliasdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_aliasdomain_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_subdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_subdomain_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_ftp_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_ftp_user_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_shell_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_shell_user_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_dns_zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_zone_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_dns_record' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_record_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- /*
- 'limit_client' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_client_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- */
- 'limit_database' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_database_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron')
- ),
- 'limit_cron_frequency' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_frequency'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_traffic_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_traffic_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-?>
diff --git a/interface/ispconfig/interface/client/form/reseller.tform.php b/interface/ispconfig/interface/client/form/reseller.tform.php
deleted file mode 100644
index a987a9f9824682e812f0814d68cc05f3b8ac2ac8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/form/reseller.tform.php
+++ /dev/null
@@ -1,761 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-//* Languages
-$language_list = array();
-$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_file(ISPC_ROOT_PATH.'/lib/lang/'.$file) and substr($file,-4,4) == '.lng') {
- $tmp = substr($file, 0, 2);
- $language_list[$tmp] = $tmp;
- }
- }
-}
-
-$form["tabs"]['address'] = array (
- 'title' => "Address",
- 'width' => 100,
- 'template' => "templates/reseller_edit_address.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'company_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'contact_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'contact_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'username' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'username_error_empty'),
- 1 => array ( 'type' => 'CUSTOM',
- 'class' => 'validate_client',
- 'function' => 'username_unique',
- 'errmsg'=> 'username_error_unique'),
- 2 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\_]{0,64}$/',
- 'errmsg'=> 'username_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'password' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'PASSWORD',
- 'encryption'=> 'CRYPT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'language' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => $conf["language"],
- 'value' => $language_list,
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'usertheme' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => 'default',
- 'value' => array('default' => 'default'),
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'street' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'zip' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'city' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'state' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'country' => array (
- 'datatype' => 'VARCHAR',
-
- 'formtype' => 'SELECT',
- 'default' => 'DE',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
- 'keyfield'=> 'iso',
- 'valuefield'=> 'printable_name'
- ),
- 'value' => ''
- ),
- 'telephone' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'mobile' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'fax' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'email' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'internet' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'http://',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'icq' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'notes' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '10',
- 'cols' => '30'
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['limits'] = array (
- 'title' => "Limits",
- 'width' => 80,
- 'template' => "templates/reseller_edit_limits.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'template_master' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'master_templates'
- ),
- 'value' => ''
- ),
- 'template_additional' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- ),
- 'default_mailserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE mail_server = 1 AND {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'limit_maildomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_maildomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailbox' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailbox_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailalias' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailalias_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailforward' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailforward_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailcatchall' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailcatchall_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailrouting' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailrouting_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailfilter' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfilter_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_fetchmail' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailfetchmail_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_mailquota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_mailquota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_wblist' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_wblist_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_spamfilter_policy' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_spamfilter_policy_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'default_webserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE web_server = 1 AND {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'limit_web_domain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_domain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'web_php_options' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'separator' => ',',
- 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP')
- ),
- 'limit_web_aliasdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_aliasdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_web_subdomain' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_web_subdomain_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_ftp_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_ftp_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_shell_user' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_shell_user_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'ssh_chroot' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'separator' => ',',
- 'value' => array('no' => 'None', 'jailkit' => 'Jailkit')
- ),
- 'default_dnsserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE dns_server = 1 AND {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'limit_dns_zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_zone_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_dns_record' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_dns_record_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_client' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_client_error_notint'),
- 1 => array ( 'type' => 'CUSTOM',
- 'class' => 'validate_reseller',
- 'function' => 'limit_client'),
- ),
- 'default' => '1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'default_dbserver' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '1',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE db_server = 1 AND {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'value' => ''
- ),
- 'limit_database' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_database_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_notint'),
- ),
- 'default' => '0',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_cron_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => array('full' => 'Full Cron','chrooted' => 'Chrooted Cron','url' => 'URL Cron')
- ),
- 'limit_cron_frequency' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_cron_error_frequency'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- 'limit_traffic_quota' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'limit_traffic_quota_error_notint'),
- ),
- 'default' => '-1',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '10',
- 'rows' => '',
- 'cols' => ''
- ),
- ##################################
- # END Datatable fields
- ##################################
- )
-);
-
-/*
-$form["tabs"]['ipaddress'] = array (
- 'title' => "IP Addresses",
- 'width' => 100,
- 'template' => "templates/client_edit_ipaddress.htm",
- 'fields' => array (
- ##################################
- # Beginn Datatable fields
- ##################################
- 'ip_address' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'value' => array('192.168.0.1' => '192.168.0.1', '192.168.0.2' => '192.168.0.2'),
- 'separator' => ';'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-*/
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/admin.conf.php b/interface/ispconfig/interface/client/lib/admin.conf.php
deleted file mode 100644
index a45d4403455c5c46f438046f088398e241cbc3d9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/admin.conf.php
+++ /dev/null
@@ -1,2 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/bg.lng b/interface/ispconfig/interface/client/lib/lang/bg.lng
deleted file mode 100644
index f835dfd5fc70cd787cbf9ef32ef0d5dd7bd82d56..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client.lng b/interface/ispconfig/interface/client/lib/lang/bg_client.lng
deleted file mode 100644
index 35b3519da0ebda64cb06e60419303d9a986635f2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng
deleted file mode 100644
index 2f6e9ba3031c85fe389da5958785f8408ba7cf51..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng
deleted file mode 100644
index b93a5f97bc98d1fa5883a22aa7909e442afa4410..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng
deleted file mode 100644
index f412b780273e1defe95f345385cf68acc2d068e8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng b/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng
deleted file mode 100644
index 34d0896699bf185e54fad7f98965c70f14804aa6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/bg_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br.lng b/interface/ispconfig/interface/client/lib/lang/br.lng
deleted file mode 100644
index 3dcb5e34344c20e0099317bd21f343dc0fbddd0c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_client.lng b/interface/ispconfig/interface/client/lib/lang/br_client.lng
deleted file mode 100644
index 6e2b67cfa3bbf86502efc4969a50f282c28798f1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_del.lng b/interface/ispconfig/interface/client/lib/lang/br_client_del.lng
deleted file mode 100644
index 57788b035608359ddc35635998dd4c5f89da5a79..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_template.lng b/interface/ispconfig/interface/client/lib/lang/br_client_template.lng
deleted file mode 100644
index b3b15e25060dfde5e7ef4d1068fc27edd1537207..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng
deleted file mode 100644
index 231f7fdea0ec51ca5cad4a6b7d6593c4f5901b1e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng
deleted file mode 100644
index a6d54ecc839984140dd9d311b98b979b77203f5d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/br_reseller.lng b/interface/ispconfig/interface/client/lib/lang/br_reseller.lng
deleted file mode 100644
index a9724bf4849917e45f5eebe1dd6602d6e6d77ae9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Cota Web';
-$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng
deleted file mode 100644
index 053d7229d402192e66aa2120728e68f6f7fdf340..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/br_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de.lng b/interface/ispconfig/interface/client/lib/lang/de.lng
deleted file mode 100644
index 2ab45de2f37e4f5c85cc3654edb48d17de5e750c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_client.lng b/interface/ispconfig/interface/client/lib/lang/de_client.lng
deleted file mode 100644
index 6237798fb449de6005d1e356a0db93fec5e19b06..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_del.lng b/interface/ispconfig/interface/client/lib/lang/de_client_del.lng
deleted file mode 100644
index 4fb2aacdbff02ce5c19c524b4e5dd645f2c06a57..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_template.lng b/interface/ispconfig/interface/client/lib/lang/de_client_template.lng
deleted file mode 100644
index 1fcce0050acdd355abf060712445e487dfd036b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng
deleted file mode 100644
index 98195fed1b50e85617a85be98336f6d440f1fa65..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng
deleted file mode 100644
index 515d7dbe0faf8c7b02cdffae2661ae2295ecaf1e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/de_reseller.lng b/interface/ispconfig/interface/client/lib/lang/de_reseller.lng
deleted file mode 100644
index f3a3ec87b87376519c9fe9cdab7a77a26c1ef1cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0 sein';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota muss eine Zahl sein.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng
deleted file mode 100644
index f6f736cf3ab3aea6dc6c283abe89f7aaa51830be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/de_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/en.lng b/interface/ispconfig/interface/client/lib/lang/en.lng
deleted file mode 100644
index 2c598f3e2da4a9d1f842d0fb52c8e5f335b6d519..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/en_client.lng b/interface/ispconfig/interface/client/lib/lang/en_client.lng
deleted file mode 100644
index e87ba45e073c66489d2e0bdcb5adf9e307bf44f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_client.lng
+++ /dev/null
@@ -1,97 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_del.lng b/interface/ispconfig/interface/client/lib/lang/en_client_del.lng
deleted file mode 100644
index 4d16af6afcad05244a1d2073b5db46ecf9420314..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_template.lng b/interface/ispconfig/interface/client/lib/lang/en_client_template.lng
deleted file mode 100644
index 39726634eec45ab87035b9ddf7a988a392bb18fd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_client_template.lng
+++ /dev/null
@@ -1,61 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng
deleted file mode 100644
index ac5218686174910f4725855b6c6959a3733513fa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng
deleted file mode 100644
index 86671aef4f9abe2544f57c17233a4b2286273b25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/en_reseller.lng b/interface/ispconfig/interface/client/lib/lang/en_reseller.lng
deleted file mode 100644
index 2b06c33d30a6d778219b54f0a0ccb8f6c043bfe5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_reseller.lng
+++ /dev/null
@@ -1,96 +0,0 @@
- 0';
-$wb["limit_web_quota_txt"] = 'Web Quota';
-$wb["limit_traffic_quota_txt"] = 'Traffic Quota';
-$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng
deleted file mode 100644
index 523a467c58c5578c65492edc1a313fc0aa612369..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/en_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/es.lng b/interface/ispconfig/interface/client/lib/lang/es.lng
deleted file mode 100644
index f1b1d758e3364c08e8961df721ed24e9d70e79fb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_client.lng b/interface/ispconfig/interface/client/lib/lang/es_client.lng
deleted file mode 100644
index e42a548181d98833f0015dc80e65e700183134cd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_del.lng b/interface/ispconfig/interface/client/lib/lang/es_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_template.lng b/interface/ispconfig/interface/client/lib/lang/es_client_template.lng
deleted file mode 100644
index 3e51956c89e458442c3dd7e0930586002a625571..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng
deleted file mode 100644
index 9bbe98d0f135069c762184845cec216a4af2b9b2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng
deleted file mode 100644
index 1b3999311ed38b3e25cd15ce6ee1f0391f04fb2c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/es_reseller.lng b/interface/ispconfig/interface/client/lib/lang/es_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng
deleted file mode 100644
index 797d9d07a2e533c5a1111554529ef83a1180c15b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/es_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi.lng b/interface/ispconfig/interface/client/lib/lang/fi.lng
deleted file mode 100644
index 9b7a982f9ac571068149bf97fa2d2e67c05ba965..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client.lng b/interface/ispconfig/interface/client/lib/lang/fi_client.lng
deleted file mode 100644
index 87842b1c3ba874b4ffcee09dfd8c8a34816af8c5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng
deleted file mode 100644
index e3b55ddaffd7af2b700ff32d8933538893101ab4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng
deleted file mode 100644
index 094c3c70c93600556fa834ac9744ca59cd82e7ed..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng
deleted file mode 100644
index 8b20cc4cca56052442ad62b665a86b77271ebdfe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng b/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng
deleted file mode 100644
index 34d0896699bf185e54fad7f98965c70f14804aa6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fi_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr.lng b/interface/ispconfig/interface/client/lib/lang/fr.lng
deleted file mode 100644
index b8f4d8f50d804e934464090c2912f5e53818c136..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client.lng b/interface/ispconfig/interface/client/lib/lang/fr_client.lng
deleted file mode 100644
index 7afb6e0cfb90d7c8c55b0ff5413134d0aafbb5f2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng
deleted file mode 100644
index d984acc1475894fde94db17a60f645aa750867e2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng
deleted file mode 100644
index 3405427d2090c175490ce98d5259c59793ee7fb3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng
deleted file mode 100644
index e5a0c1727f5c1940020dfd0984f7e8392c009e83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng b/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng
deleted file mode 100644
index 24926d45481076f0955df1d4175e8ed419886567..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng
deleted file mode 100644
index e5a0c1727f5c1940020dfd0984f7e8392c009e83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/fr_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu.lng b/interface/ispconfig/interface/client/lib/lang/hu.lng
deleted file mode 100644
index 74a7c722d3ddd676b45c109c485a75841cc49fe0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client.lng b/interface/ispconfig/interface/client/lib/lang/hu_client.lng
deleted file mode 100644
index 35be91f2c9395b21fd1bc6288552d71157708d70..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng
deleted file mode 100644
index 45930a08404fb70181afed0546e32903403a8083..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng
deleted file mode 100644
index b93a5f97bc98d1fa5883a22aa7909e442afa4410..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng
deleted file mode 100644
index 09105a01aeeae58ebc4f27c1638d58c570a25a90..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng b/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng
deleted file mode 100644
index 34d0896699bf185e54fad7f98965c70f14804aa6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/hu_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it.lng b/interface/ispconfig/interface/client/lib/lang/it.lng
deleted file mode 100644
index 17552563eb548238683022b30cb47423c0e2801a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_client.lng b/interface/ispconfig/interface/client/lib/lang/it_client.lng
deleted file mode 100644
index 7dbc06cd927ff511ed2978db94ee8a4e01d59bfb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_del.lng b/interface/ispconfig/interface/client/lib/lang/it_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_template.lng b/interface/ispconfig/interface/client/lib/lang/it_client_template.lng
deleted file mode 100644
index abc74f493e51fc5c3c7f92cff94469f71a7a7f41..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng
deleted file mode 100644
index 03aa10e5c912eb9da59a1cd1c65c937e7363f72c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng
deleted file mode 100644
index d3bd8cdb720d14ffee1dea91947723dd36deea2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/it_reseller.lng b/interface/ispconfig/interface/client/lib/lang/it_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng
deleted file mode 100644
index 34d0896699bf185e54fad7f98965c70f14804aa6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/it_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja.lng b/interface/ispconfig/interface/client/lib/lang/ja.lng
deleted file mode 100644
index a6edbc1687527bd8fb51eaec42464657db638ab2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client.lng b/interface/ispconfig/interface/client/lib/lang/ja_client.lng
deleted file mode 100644
index 2289f94ac1e2740b11f8faefc1e9d74d30d178fd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng
deleted file mode 100644
index 0291b2e4aa2282541b57ac867e9d81c618a2d27f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng
deleted file mode 100644
index 05d3358c4e4ec45c8dd7127ede4c1c2d95ee0385..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng
deleted file mode 100644
index f5b39e15046676af1473b1f86fb097d552ed293a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng
deleted file mode 100644
index fbb4380f895549fe6d8f845ef01695422e0c14ba..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng
deleted file mode 100644
index 2f6e6ec9453a24282774ac7a0f2931c36b555274..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ja_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl.lng b/interface/ispconfig/interface/client/lib/lang/nl.lng
deleted file mode 100644
index 0071fa28f75b5e2c324dc261c56c9cf19fb2b8dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client.lng b/interface/ispconfig/interface/client/lib/lang/nl_client.lng
deleted file mode 100644
index a50da4538139486ec979c4824fa53859434979df..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng
deleted file mode 100644
index a896cbd3cde99f261d9f9b970d69553e011b11ca..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng
deleted file mode 100644
index 2abcc0cf61f6e5c12291c4f8ddac56d7e52559e4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng
deleted file mode 100644
index 333aeb5bb5fec5a685d5c2b69d9378faa786bffc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng
deleted file mode 100644
index 0309a475ddbe2ea06b09c4f754e5ee9db606ac0a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng b/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng
deleted file mode 100644
index 4fa2bdcf6b13ae43aa57baa84f43021853325a0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng
deleted file mode 100644
index dd5fd53db06a1b7de19e75fa2d9de10c0f8d4065..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/nl_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl.lng b/interface/ispconfig/interface/client/lib/lang/pl.lng
deleted file mode 100644
index 771c3b2c20863a8a1ccc6c26015e59f929789b6a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client.lng b/interface/ispconfig/interface/client/lib/lang/pl_client.lng
deleted file mode 100644
index 42f73b83b79858962f592581a6ec33b4fe57e885..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng
deleted file mode 100644
index 5c7c0f8579b905b9ed5325e5e38d2221e0aab498..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng
deleted file mode 100644
index 06a39761f9af7d4a0191b4ed73b0b3a22b0d5541..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng
deleted file mode 100644
index 81f0bd8552b0cee801c453d67b0ead9ff15d49e1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng b/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng
deleted file mode 100644
index f08ca1c9efcf5c6f19348d4e1350a9a05daea133..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng
deleted file mode 100644
index 51abc411a5f00ee3d8ad1ebe98679235e1dfcd32..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pl_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt.lng b/interface/ispconfig/interface/client/lib/lang/pt.lng
deleted file mode 100644
index e8313728ebc238720b9e1a4b77d70a7dbc5017af..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client.lng b/interface/ispconfig/interface/client/lib/lang/pt_client.lng
deleted file mode 100644
index 0f7d32ab49a1a867213bfaa3ded35d904960d6be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_client.lng
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng
deleted file mode 100644
index 769975296615569129f0992dd565221e755a0034..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_client_del.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng
deleted file mode 100644
index 153cc5bd0d059dd3db42446ecd6754054811c292..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_client_template.lng
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng
deleted file mode 100644
index 0587b04f328e7ee189685ea9a32f0075f872549a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_client_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng
deleted file mode 100644
index 53ceab0536a2a1cf8ff538d9e65d02f013737e40..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_clients_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng b/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng
deleted file mode 100644
index 9aa64e0a7e51ee7893ddbe40979a8d200f1170ed..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_reseller.lng
+++ /dev/null
@@ -1,94 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Cota Web';
-$wb['limit_traffic_quota_txt'] = 'Cota de Tráfego';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
-
diff --git a/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng
deleted file mode 100644
index 8df917d4f242ab3d475339009e9fdaacab4ab7d5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/pt_resellers_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro.lng b/interface/ispconfig/interface/client/lib/lang/ro.lng
deleted file mode 100644
index 38bbbb50198d0b378cacc071c5820946c71a06f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client.lng b/interface/ispconfig/interface/client/lib/lang/ro_client.lng
deleted file mode 100644
index 6dbfadb43fd827847ab2fa2cec7355249d59df21..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng
deleted file mode 100644
index 4d16af6afcad05244a1d2073b5db46ecf9420314..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng
deleted file mode 100644
index 276e0817c76a6149f44fe655f422c99bf5ae7ded..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng
deleted file mode 100644
index b19f5d43cd3a16d9366b5be4a9c066738cfc9cd3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng
deleted file mode 100644
index 33bde68e1e995334a0e442cefaa9e375b00cd748..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng
deleted file mode 100644
index 2b06c33d30a6d778219b54f0a0ccb8f6c043bfe5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_reseller.lng
+++ /dev/null
@@ -1,96 +0,0 @@
- 0';
-$wb["limit_web_quota_txt"] = 'Web Quota';
-$wb["limit_traffic_quota_txt"] = 'Traffic Quota';
-$wb["limit_trafficquota_error_notint"] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng
deleted file mode 100644
index 523a467c58c5578c65492edc1a313fc0aa612369..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ro_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/lib/lang/ru.lng b/interface/ispconfig/interface/client/lib/lang/ru.lng
deleted file mode 100644
index a2679b2a6d7ca3db7dbd4e14339e65eeacccdced..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client.lng b/interface/ispconfig/interface/client/lib/lang/ru_client.lng
deleted file mode 100644
index e1a38d4e7b0ac49585bf82bd14a06e0d215897b7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_client.lng
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng
deleted file mode 100644
index d792617208994e0f2da7a541bb6762227bfa88f7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_client_del.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng
deleted file mode 100644
index d630f345799a44986361e2673ee30f485a5bff56..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_client_template.lng
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng
deleted file mode 100644
index 9aab2f589e2815402f056ece125f895a623b8264..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_client_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng
deleted file mode 100644
index 3621300ae19684eeb91148ed0dc0a6cb976b8d88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_clients_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng b/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng
deleted file mode 100644
index 0976344814a58af3fb92e94539fe1fd8bb071be2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_reseller.lng
+++ /dev/null
@@ -1,94 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Квота Web';
-$wb['limit_traffic_quota_txt'] = 'Квота трафика';
-$wb['limit_trafficquota_error_notint'] = 'Квота трафика должна быть числом.';
-?>
-
diff --git a/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng
deleted file mode 100644
index 3d8976721c254765015927211ee6d890cd05a144..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/ru_resellers_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se.lng b/interface/ispconfig/interface/client/lib/lang/se.lng
deleted file mode 100644
index 38bbbb50198d0b378cacc071c5820946c71a06f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_client.lng b/interface/ispconfig/interface/client/lib/lang/se_client.lng
deleted file mode 100644
index 2bcea5cc468fa4cd3a7b398f6938d28afc17856b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_del.lng b/interface/ispconfig/interface/client/lib/lang/se_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_template.lng b/interface/ispconfig/interface/client/lib/lang/se_client_template.lng
deleted file mode 100644
index 2f6e9ba3031c85fe389da5958785f8408ba7cf51..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng
deleted file mode 100644
index b93a5f97bc98d1fa5883a22aa7909e442afa4410..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng
deleted file mode 100644
index 81f0bd8552b0cee801c453d67b0ead9ff15d49e1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/se_reseller.lng b/interface/ispconfig/interface/client/lib/lang/se_reseller.lng
deleted file mode 100644
index f0dc7ca054e45e156343f46ef22c695cda68e467..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng
deleted file mode 100644
index 34d0896699bf185e54fad7f98965c70f14804aa6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/se_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk.lng b/interface/ispconfig/interface/client/lib/lang/sk.lng
deleted file mode 100644
index fea38589dce6f280a78fca64686e6cf61c12bf25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client.lng b/interface/ispconfig/interface/client/lib/lang/sk_client.lng
deleted file mode 100644
index 6daf5769afd4a48f98ea1cb87422d8888e7075d8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng
deleted file mode 100644
index 938c436465f45c2f6dc98cd8ed5468ee8c12278b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng
deleted file mode 100644
index 6160cc834b837476794a669200bf54eb900195a2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng
deleted file mode 100644
index 780be1c6e99cfebd9f12e880b48cf5aedb777075..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng b/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng
deleted file mode 100644
index 5b17a8067f51e62ee65cd822fbc307bec1a96809..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
- 0';
-$wb['limit_web_quota_txt'] = 'Web Quota';
-$wb['limit_traffic_quota_txt'] = 'Traffic Quota';
-$wb['limit_trafficquota_error_notint'] = 'Traffic Quota must be a number.';
-?>
diff --git a/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng
deleted file mode 100644
index 2fbaecd19cfbed46de499a729dbfcaec8e91e3f2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/sk_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr.lng b/interface/ispconfig/interface/client/lib/lang/tr.lng
deleted file mode 100644
index f8f1e5072e015ea27f47f2bdbbb315da73162e8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr.lng
+++ /dev/null
@@ -1,13 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client.lng b/interface/ispconfig/interface/client/lib/lang/tr_client.lng
deleted file mode 100644
index 35e6cd57dfd059140270983c7a50175aa9806794..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_client.lng
+++ /dev/null
@@ -1,94 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng
deleted file mode 100644
index a826d64e146cd9085debb382f71c3357966bb1f6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_client_del.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng
deleted file mode 100644
index 2d038e0bcfb0a3e4b8c961cdee780c6733a529d8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_client_template.lng
+++ /dev/null
@@ -1,57 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng
deleted file mode 100644
index af5c1c74e590497ac55b8e97510053658929fc09..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_client_template_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng
deleted file mode 100644
index 9c0215a248e7d7bdffa43f13b339c6dcf91ecdb4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_clients_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng b/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng
deleted file mode 100644
index 63077c02c2ce0d2054700f7d33e0dee4d40dc9ab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_reseller.lng
+++ /dev/null
@@ -1,93 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng b/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng
deleted file mode 100644
index ccb8fd154155cf9eaffc3752fd180cceea0b4594..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/lang/tr_resellers_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/client/lib/module.conf.php b/interface/ispconfig/interface/client/lib/module.conf.php
deleted file mode 100644
index 543fc892d70766ef891722e066c5d5059a08f275..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/lib/module.conf.php
+++ /dev/null
@@ -1,63 +0,0 @@
- "Add Client",
- 'target' => 'content',
- 'link' => 'client/client_edit.php');
-
-$items[] = array( 'title' => "Edit Client",
- 'target' => 'content',
- 'link' => 'client/client_list.php');
-
-if($_SESSION["s"]["user"]["typ"] == 'admin'){
- $items[] = array( 'title' => "Edit Client-Templates",
- 'target' => 'content',
- 'link' => 'client/client_template_list.php');
-}
-
-$module["nav"][] = array( 'title' => 'Clients',
- 'open' => 1,
- 'items' => $items);
-
-unset($items);
-
-
-if($_SESSION["s"]["user"]["typ"] == 'admin'){
-
-$items[] = array( 'title' => "Add Reseller",
- 'target' => 'content',
- 'link' => 'client/reseller_edit.php');
-
-$items[] = array( 'title' => "Edit Reseller",
- 'target' => 'content',
- 'link' => 'client/reseller_list.php');
-
-$module["nav"][] = array( 'title' => 'Resellers',
- 'open' => 1,
- 'items' => $items);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/list/client.list.php b/interface/ispconfig/interface/client/list/client.list.php
deleted file mode 100644
index 3ace4fb181d428dde996e860b01a166802d4dab9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/list/client.list.php
+++ /dev/null
@@ -1,87 +0,0 @@
- "company_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "contact_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "city",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "country",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/list/client_template.list.php b/interface/ispconfig/interface/client/list/client_template.list.php
deleted file mode 100644
index 679759e414ed560d90570d1c75735cc461503b57..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/list/client_template.list.php
+++ /dev/null
@@ -1,65 +0,0 @@
- "template_type",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('m' => "Main Template",'a' => "Additional Template"));
-
-$liste["item"][] = array( 'field' => "template_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-?>
diff --git a/interface/ispconfig/interface/client/list/reseller.list.php b/interface/ispconfig/interface/client/list/reseller.list.php
deleted file mode 100644
index 6d08cc8c807e079fe1b82c6d9cacb1cdb4a2071a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/list/reseller.list.php
+++ /dev/null
@@ -1,87 +0,0 @@
- "company_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "contact_name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "city",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "country",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/reseller_del.php b/interface/ispconfig/interface/client/reseller_del.php
deleted file mode 100644
index 855652a73bbde0e93467a9e7085f72908f5603fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/reseller_del.php
+++ /dev/null
@@ -1,92 +0,0 @@
-auth->check_module_permissions('client');
-
-if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.');
-
-$app->uses('tpl,tform');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onBeforeDelete() {
- global $app, $conf;
-
- $client_id = intval($this->dataRecord['client_id']);
-
- $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE parent_client_id = ".$client_id);
- if($tmp["number"] > 0) $app->error($app->lng('error_has_clients'));
-
- }
-
- function onAfterDelete() {
- global $app, $conf;
-
- $client_id = intval($this->dataRecord['client_id']);
-
- if($client_id > 0) {
- // TODO: Delete all records (sub-clients, mail, web, etc....) of this client.
-
- // remove the group of the client from the resellers group
- $parent_client_id = intval($this->dataRecord['parent_client_id']);
- $parent_user = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE client_id = $parent_client_id");
- $client_group = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = $client_id");
- $app->auth->remove_group_from_user($parent_user['userid'],$client_group['groupid']);
-
- // delete the group of the client
- $app->db->query("DELETE FROM sys_group WHERE client_id = $client_id");
-
- // delete the sys user(s) of the client
- $app->db->query("DELETE FROM sys_user WHERE client_id = $client_id");
- }
-
- }
-}
-
-$page = new page_action;
-$page->onDelete()
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/reseller_edit.php b/interface/ispconfig/interface/client/reseller_edit.php
deleted file mode 100644
index 949baae2959239a04eb8a788aabd55f27a0ddeb1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/reseller_edit.php
+++ /dev/null
@@ -1,222 +0,0 @@
-auth->check_module_permissions('client');
-
-if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another website.
- if($client["limit_client"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_client"]) {
- $app->error($app->tform->wordbook["limit_client_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
-
- function onSubmit() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user' && $this->id == 0) {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another website.
- if($client["limit_client"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_client"]) {
- $app->error($app->tform->wordbook["limit_client_txt"]);
- }
- }
- }
-
- parent::onSubmit();
- }
-
-
- function onShowEnd() {
-
- global $app;
-
- $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'";
- $tpls = $app->db->queryAllRecords($sql);
- $option = '';
- $tpl = array();
- foreach($tpls as $item){
- $option .= '' . $item['template_name'] . ' ';
- $tpl[$item['template_id']] = $item['template_name'];
- }
- $app->tpl->setVar('tpl_add_select',$option);
-
- $sql = "SELECT template_additional FROM client WHERE client_id = " . $this->id;
- $result = $app->db->queryOneRecord($sql);
- $tplAdd = explode("/", $result['template_additional']);
- $text = '';
- foreach($tplAdd as $item){
- if (trim($item) != ''){
- if ($text != '') $text .= ' ';
- $text .= $tpl[$item];
- }
- }
-
- $app->tpl->setVar('template_additional_list', $text);
-
- parent::onShowEnd();
-
- }
-
- /*
- This function is called automatically right after
- the data was successful inserted in the database.
- */
- function onAfterInsert() {
- global $app;
- // Create the group for the reseller
- $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid');
- $groups = $groupid;
-
- $username = $app->db->quote($this->dataRecord["username"]);
- $password = $app->db->quote($this->dataRecord["password"]);
- $modules = ISPC_INTERFACE_MODULES_ENABLED.',client';
- $startmodule = 'client';
- $usertheme = $app->db->quote($this->dataRecord["usertheme"]);
- $type = 'user';
- $active = 1;
- $language = $app->db->quote($this->dataRecord["language"]);
-
- // Create the controlpaneluser for the reseller
- $sql = "INSERT INTO sys_user (username,passwort,modules,startmodule,app_theme,typ,active,language,groups,default_group,client_id)
- VALUES ('$username',md5('$password'),'$modules','$startmodule','$usertheme','$type','$active','$language',$groups,$groupid,".$this->id.")";
- $app->db->query($sql);
-
- //* set the number of clients to 1
- $app->db->query("UPDATE client SET limit_client = 1 WHERE client_id = ".$this->id);
-
- /* If there is a client-template, process it */
- applyClientTemplates($this->id);
-
- parent::onAfterInsert();
- }
-
-
- /*
- This function is called automatically right after
- the data was successful updated in the database.
- */
- function onAfterUpdate() {
- global $app;
-
- // username changed
- if(isset($this->dataRecord['username']) && $this->dataRecord['username'] != '' && $this->oldDataRecord['username'] != $this->dataRecord['username']) {
- $username = $app->db->quote($this->dataRecord["username"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id";
- $app->db->query($sql);
-
- $tmp = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE client_id = $client_id");
- $app->db->datalogUpdate("sys_group", "name = '$username'", 'groupid', $tmp['groupid']);
- unset($tmp);
- }
-
- // password changed
- if(isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') {
- $password = $app->db->quote($this->dataRecord["password"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id";
- $app->db->query($sql);
- }
-
- // language changed
- if(isset($this->dataRecord['language']) && $this->dataRecord['language'] != '' && $this->oldDataRecord['language'] != $this->dataRecord['language']) {
- $language = $app->db->quote($this->dataRecord["language"]);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET language = '$language' WHERE client_id = $client_id";
- $app->db->query($sql);
- }
-
- // reseller status changed
- if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) {
- $modules = ISPC_INTERFACE_MODULES_ENABLED.',client';
- $modules = $app->db->quote($modules);
- $client_id = $this->id;
- $sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id";
- $app->db->query($sql);
- }
- /*
- * If there is a client-template, process it */
- applyClientTemplates($this->id);
-
- parent::onAfterUpdate();
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/reseller_list.php b/interface/ispconfig/interface/client/reseller_list.php
deleted file mode 100644
index 49a8c85166754f9517508add7896379e3245967d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/reseller_list.php
+++ /dev/null
@@ -1,55 +0,0 @@
-auth->check_module_permissions('client');
-
-if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access only for administrators.');
-
-$app->uses('listform_actions');
-
-$app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id';
-$app->listform_actions->SQLExtWhere = "(limit_client > 0 or limit_client = -1)";
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/templates/client_del.htm b/interface/ispconfig/interface/client/templates/client_del.htm
deleted file mode 100644
index 1167b30e3eff515f4b533b55f6fa3657dc3e7097..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_del.htm
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/client_edit_address.htm b/interface/ispconfig/interface/client/templates/client_edit_address.htm
deleted file mode 100644
index 6d2625028c6ab088819d3b96a3d4ad088aeebb26..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_edit_address.htm
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/client_edit_limits.htm b/interface/ispconfig/interface/client/templates/client_edit_limits.htm
deleted file mode 100644
index 200629eb35047c4f6bae5d7f1fa94369f82b256a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_edit_limits.htm
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm b/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm
deleted file mode 100644
index 390f1f5b02297bed68e8ac549cd6e5f5941cb0cc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_template_edit_limits.htm
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/client_template_edit_template.htm b/interface/ispconfig/interface/client/templates/client_template_edit_template.htm
deleted file mode 100644
index 6c9d905340c747b10454ae98010cc0f732e336eb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_template_edit_template.htm
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/client_template_list.htm b/interface/ispconfig/interface/client/templates/client_template_list.htm
deleted file mode 100644
index 5892a9614701c0e86ff3b7a7afd3e8b87faacc90..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/client_template_list.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/client/templates/clients_list.htm b/interface/ispconfig/interface/client/templates/clients_list.htm
deleted file mode 100644
index f8447712d4231b636f62e4882962fea1b80b96a9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/clients_list.htm
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/reseller_edit_address.htm b/interface/ispconfig/interface/client/templates/reseller_edit_address.htm
deleted file mode 100644
index 798fdf98ad7357f365099807fcf2f832897b1254..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/reseller_edit_address.htm
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm b/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm
deleted file mode 100644
index 8acaf4bd78e7c8a7cce00dbc27215e13fc18e7db..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/reseller_edit_limits.htm
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/templates/resellers_list.htm b/interface/ispconfig/interface/client/templates/resellers_list.htm
deleted file mode 100644
index fbe90a6f99ef79edd40febbb03b1f4e7f67f05db..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/templates/resellers_list.htm
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/client/tools.inc.php b/interface/ispconfig/interface/client/tools.inc.php
deleted file mode 100644
index c9bfdead3a1d4eb8aedc223f46b87034d2d46016..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/client/tools.inc.php
+++ /dev/null
@@ -1,88 +0,0 @@
-db->queryOneRecord($sql);
- $masterTemplateId = $record['template_master'];
- $additionalTemplateStr = $record['template_additional'];
-
- /*
- * if the master-Template is custom there is NO changing
- */
- if ($masterTemplateId > 0){
- $sql = "SELECT * FROM client_template WHERE template_id = " . intval($masterTemplateId);
- $limits = $app->db->queryOneRecord($sql);
- } else {
- $limits = $page->dataRecord;
- }
-
- /*
- * Process the additional tempaltes here (add them to the limits
- * if != -1)
- */
- $addTpl = explode('/', $additionalTemplateStr);
- foreach ($addTpl as $item){
- if (trim($item) != ''){
- $sql = "SELECT * FROM client_template WHERE template_id = " . intval($item);
- $addLimits = $app->db->queryOneRecord($sql);
- /* maybe the template is deleted in the meantime */
- if (is_array($addLimits)){
- foreach($addLimits as $k => $v){
- if ($limits[$k] > -1){
- if ($v == -1) {
- $limits[$k] = -1;
- }
- else {
- $limits[$k] += $v;
- }
- }
- }
- }
- }
- }
-
- /*
- * Write all back to the database
- */
- $update = '';
- foreach($limits as $k => $v){
- if (strpos($k, 'limit') !== false && !is_array($v)){
- if ($update != '') $update .= ', ';
- $update .= '`' . $k . "`='" . $v . "'";
- }
- }
- $sql = 'UPDATE client SET ' . $update . " WHERE client_id = " . intval($clientId);
- $app->db->query($sql);
-}
-?>
diff --git a/interface/ispconfig/interface/content.php b/interface/ispconfig/interface/content.php
deleted file mode 100644
index bcc4525ac96e84af151006f58c1a666a4e46c228..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/content.php
+++ /dev/null
@@ -1,83 +0,0 @@
-render();
- if($page->status == 'OK') {
- echo $content;
- } elseif($page->status == 'REDIRECT') {
- $target_parts = explode(':',$page->target);
- $module = $target_parts[0];
- $page = $target_parts[1];
- if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('target module name contains unallowed chars.');
- if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('target page name contains unallowed chars.');
-
- if(is_file(ISPC_WEB_PATH."/$module/$page.php")) {
- include_once(ISPC_WEB_PATH."/$module/$page.php");
-
- $classname = $module.'_'.$page;
- $page = new $classname();
-
- $content = $page->render();
- if($page->status == 'OK') {
- echo $content;
- }
- }
-
- }
-
-} elseif (is_array($_SESSION["s"]['user']) or is_array($_SESSION["s"]["module"])) {
- // If the user is logged in, we try to load the default page of the module
- die('- error -');
-} else {
- die('Page does not exist.');
-}
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/form_edit.php b/interface/ispconfig/interface/designer/form_edit.php
deleted file mode 100644
index ad89ae350cf0e1018b8397949810a42923322cd3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/form_edit.php
+++ /dev/null
@@ -1,152 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/form_edit.htm');
-
-// Importing variables
-$module_name = $_REQUEST["module_name"];
-$form_name = $_REQUEST["form_name"];
-
-// Checking imported variables
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$form_name)) die("form_name contains invalid chars.");
-
-$id = $form_name;
-
-if(count($_POST) > 1) {
- // Bestimme aktion
- if($id != '') {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
-
- if($error == '') {
-
- $filename = "../".$module_name."/form/".$form_name.".tform.php";
- $form_new = $_POST["form"];
-
- if(@is_file($filename)) {
- include_once($filename);
- $tabs = $form["tabs"];
- unset($form["tabs"]);
- $form_new["tabs"] = $tabs;
- }
-
- $file_content = "";
-
- die($file_content);
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
-
- if (!fwrite($handle, $file_content)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
- // zu Liste springen
- header("Location: form_list.php");
- exit;
-
- } else {
- $app->tpl->setVar("error","Fehler: ".$error);
- $app->tpl->setVar($_POST);
- }
-}
-
-if($id != '') {
-// Datensatz besteht bereits
- // bestehenden Datensatz anzeigen
- if($error == '') {
- // es liegt ein Fehler vor
- include_once("../".$module_name."/form/".$form_name.".tform.php");
- //$tabs = $form["tabs"];
- unset($form["tabs"]);
- $record = $form;
- $record["form_name"] = $form_name;
- $record["module_name"] = $module_name;
- $record["auth_preset_userid"] = $form["auth_preset"]["userid"];
- $record["auth_preset_groupid"] = $form["auth_preset"]["groupid"];
- $record["auth_preset_perm_user"] = $form["auth_preset"]["perm_user"];
- $record["auth_preset_perm_group"] = $form["auth_preset"]["perm_group"];
- $record["auth_preset_perm_other"] = $form["auth_preset"]["perm_other"];
- } else {
- // ein Fehler
- $record = $_POST;
- //$navi = $_POST["nav"];
- unset($_POST["tabs"]);
- }
- $record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
-} else {
-// neuer datensatz
- if($error == '') {
- // es liegt kein Fehler vor
- // Pewsets
- $record["template"] = "module.tpl.htm";
- } else {
- // ein Fehler
- $record = $_POST;
- unset($_POST["tabs"]);
-
- }
- $record["readonly"] = '';
-}
-
-$record["id"] = $form_name;
-
-$app->tpl->setVar($record);
-
-include_once("lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng");
-$app->tpl->setVar($wb);
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/form_list.php b/interface/ispconfig/interface/designer/form_list.php
deleted file mode 100644
index c0d0a3d311aca8a566eebed20cd1179daf58ec07..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/form_list.php
+++ /dev/null
@@ -1,89 +0,0 @@
-auth->check_module_permissions('designer');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/form_list.htm');
-
-function getinfo($file, $form_file, $bgcolor) {
- $module_name = $file;
- include(ISPC_WEB_PATH."/$file/form/$form_file");
- return array( 'name' => $form['name'],
- 'title' => $form['title'],
- 'description' => $form['description'],
- 'module_name' => $module_name,
- 'bgcolor' => $bgcolor
- );
-}
-
-// lese Module aus
-$bgcolor = '#FFFFFF';
-$modules_list = array();
-$handle = @opendir(ISPC_WEB_PATH);
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH."/$file")) {
- if(is_file(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') {
- if(@is_dir(ISPC_WEB_PATH."/$file/form")) {
- $handle2 = opendir(ISPC_WEB_PATH."/$file/form");
- while ($form_file = @readdir ($handle2)) {
- if (substr($form_file,0,1) != ".") {
- //echo ISPC_ROOT_PATH."/web/".$file."/form/$form_file ";
- //include_once(ISPC_ROOT_PATH."/web/".$file."/form/$form_file");
- // Farbwechsel
- $bgcolor = ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF';
- $modules_list[] = getinfo($file, $form_file, $bgcolor);
-
- }
- }
- }
- }
- }
- }
-}
-
-$app->tpl->setLoop('records', $modules_list);
-
-//* load language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_form_list.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/form_show.php b/interface/ispconfig/interface/designer/form_show.php
deleted file mode 100644
index c90178b4f564a73ae8c927abbdfe2d4555ee929c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/form_show.php
+++ /dev/null
@@ -1,119 +0,0 @@
-auth->check_module_permissions('designer');
-
-if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/form_show.htm');
-
-
-// TODO: Check ID for malicius chars
-$module_name = $_REQUEST["module_name"];
-$form_name = $_REQUEST["form_name"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$form_name)) die("form_name contains invalid chars.");
-
-include_once("../".$module_name."/form/".$form_name.".tform.php");
-$tabs = $form["tabs"];
-unset($form["tabs"]);
-$record = $form;
-$record["form_name"] = $form_name;
-$record["module_name"] = $module_name;
-
-// loading language file
-$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_form_show.lng";
-include($lng_file);
-$app->tpl->setVar($wb);
-
-// baue Tabs navi
-$content = "";
-$n1 = 0;
-$n2 = 0;
-if(is_array($tabs)) {
-foreach($tabs as $tab_id => $tab) {
- $content .= "
-
-
-
- ";
- $n1++;
-}
-}
-
-$record["nav"] = $content;
-
-
-$app->tpl->setVar($record);
-
-
-$app->tpl->setLoop('records',$modules_list);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/index.php b/interface/ispconfig/interface/designer/index.php
deleted file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000
diff --git a/interface/ispconfig/interface/designer/lib/admin.conf.php b/interface/ispconfig/interface/designer/lib/admin.conf.php
deleted file mode 100644
index 8dce5a57346d86280d73e7590a26388958388195..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/admin.conf.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg.lng b/interface/ispconfig/interface/designer/lib/lang/bg.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng
deleted file mode 100644
index 2138e041640dc2dca30f7f24d18b782349498756..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng
deleted file mode 100644
index 4a053a3c58fb4186b039aa8b0219b4a2061ec222..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng
deleted file mode 100644
index 78cf0edda16df8e16b0ae80eb399eddfd1426afb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng
deleted file mode 100644
index 50f0309f7017595c06a65df18d9fc4dbbdc8e5b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_module_edit.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-Description Modulename: Name of the module directory. Only numbers, chars and underscore allowed. Moduletitle: Will be shown in the (upper) main navigation. Template file: Template file of the module. Currently';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng
deleted file mode 100644
index 31209a0757cdbb09e8a213b71fbdbcab16dc3429..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng
deleted file mode 100644
index 7698aac73814678727fddac0e435001e8742b7f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng
deleted file mode 100644
index 9a928f5cb6dd41dbed0557a6a0073fcf21a8d0c6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng
deleted file mode 100644
index 3cbe96358f0947c9e8d6d13e19e78bbfabc8c2f9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/bg_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br.lng b/interface/ispconfig/interface/designer/lib/lang/br.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng
deleted file mode 100644
index 7d7534a4ee77f45f46e75296cee1e1fa55f9faa7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng
deleted file mode 100644
index b16ce554b0e6240d22d41c107cbd05f3e3fd47b3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng
deleted file mode 100644
index 5b68a316518de6c4000cfa6ca6d6ad0fdc83d588..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng
deleted file mode 100644
index 34471acd297184a4db31fb68e219adfda91a919e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Descrição
-
-Nome do Módulo: Nome do diretório do módulo. Somente números, letras e underscores são permitidos.
-Título do Módulo: Será exibido em caixa alta no menu de navegação.
-Arquivo de Gabarito: Arquivo de Gabarito do Módulo Disponível: modulo.tpl.htm e modulo_tree.tpl.htm. O padrão é modulo.tpl.htm.
-Frame de Navegação: Se modulo_tree.tpl.htm foi selecionado como arquivo de gabarito, insira aqui o caminho do script para o frame a esquerda.
-Página Padrão: Esta página será exibida quando o módulo for aberto.
-Tamanho da Aba: Tamanho das abas na navegação principal. Este campo fica em branco por padrão. Você pode informar valores absolutos em pixels (ex.: 20) ou valores relativos (ex.: 20%).
-Dica: Todos os caminhos são relativos ao diretório web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng
deleted file mode 100644
index 822263a4ad64f7cc82fee8ab785b132726a3045d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng
deleted file mode 100644
index c5e3266a7b91b685168d1c7593f56a33db9f4dad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng
deleted file mode 100644
index 5eafa775af58b0bce4215ef02c8a5e4e7ef8a076..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng
deleted file mode 100644
index 1fb18007143161558febd71f4e727bf99aa17f07..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/br_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de.lng b/interface/ispconfig/interface/designer/lib/lang/de.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng
deleted file mode 100644
index 74bf458d90993f4879d2fe10e8696e1d5d8adf5e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng
deleted file mode 100644
index 998a64f702453ede0420223dfbd5a47550b8025a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng
deleted file mode 100644
index b19fd34457ed9ca267e19a01ad9605368536d752..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng
deleted file mode 100644
index 6eacd64b1de87cab59ed74c470cc351f9f20e243..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_module_edit.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng
deleted file mode 100644
index 60406302030a4d1572afa43eae185ba4878643b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng
deleted file mode 100644
index d5142f03cb3f38a0864004394226834bb7f396c1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng
deleted file mode 100644
index 8c0c33c1a6d71681c20266f550f18a4eff17e86d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng
deleted file mode 100644
index f4b2ad11f8a610372f2c5f502abf2d1d41279150..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/de_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/en.lng b/interface/ispconfig/interface/designer/lib/lang/en.lng
deleted file mode 100644
index 15c5adc7fae9b7dab7ba2410a6cabc4361f76852..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en.lng
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng
deleted file mode 100644
index f55e0f4caf455adc002e966b538c23dd87779b90..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_form_edit.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng
deleted file mode 100644
index 21a76877d7af2bdfebce90c3a11edbd160c838e9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng
deleted file mode 100644
index 54b14f6e180ccc50c4a64ac91eddf4620a8f7f89..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng
deleted file mode 100644
index 285a363df3b47940024ed92de554dbda1edad777..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_module_edit.lng
+++ /dev/null
@@ -1,23 +0,0 @@
-Description
-
-Modulename: Name of the module directory. Only numbers, chars and underscore allowed.
-Moduletitle: Will be shown in the (upper) main navigation.
-Template file: Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.
-NaviFrame: If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.
-Default page: These page will be shown when the module is opened.
-Tab width: Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).
-Hint: All paths are relative to the directory "web".
-';
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng
deleted file mode 100644
index 45260fd9a84a91187ce8688af1a2c4ea6de6ca6a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng
deleted file mode 100644
index 3600238f74cfd416275c0647fbfe48b436d3feb8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng
deleted file mode 100644
index 56eee32deb6c5a708dc7e5961e6cb13c6d01839c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng
deleted file mode 100644
index e76f5f332af1ad2447b741ee96c3cd3f173f3ad7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/en_module_show.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/lib/lang/es.lng b/interface/ispconfig/interface/designer/lib/lang/es.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng
deleted file mode 100644
index c5312559bbf511191f1bbac03d6ac8a03d5df969..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng
deleted file mode 100644
index 3334d0b29448a633561a4dacac33ac7dc1432c85..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng
deleted file mode 100644
index 4cac14529bc76429b369fd4432915064162b0895..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng
deleted file mode 100644
index c126365a5457445f04ed17799675944926f71a12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_module_edit.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-DescripciónNombre del módulo: Nombre del directorio del módulo. Sólo se permiten números, carácteres y subrayados.Título del módulo: Se mostrará en la barra de navegación principal.Fichero de plantilla: Fichero de la plantilla del módulo. Disponibles actualmente: module.tpl.htm y module_tree.tpl.htm. Por defecto: module.tpl.htm.Marco de navegación: Si el fichero de plantilla module_tree.tpl.htm está seleccionado, introduzca aquí la ruta al fichero del script del marco de la izquierda.Página por defecto: Esta página se mostrará cuando el módulo se abra.Ancho de pestaña: Ancho de las pestañas en la barra de navegación. El campo está vacío por defecto. Puede introducir valores absolutos en píxeles (p.ej. 20) o relativos (p.ej. 20%).Pista: Todas las rutas son relativas al directorio.';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng
deleted file mode 100644
index 2805a07bc9c3b0c8897fe4f4708455f7f5f83f85..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng
deleted file mode 100644
index 22688b6e1783197683eedd97c9be333488b12c59..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng
deleted file mode 100644
index ec39e5f8994f04a5e862126ce8f4135f33f6138d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng
deleted file mode 100644
index 1f1199de532466f36f200fb917072aab4a394e28..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/es_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi.lng b/interface/ispconfig/interface/designer/lib/lang/fi.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng
deleted file mode 100644
index c9a13038a4823d3ab77e498fcd30b8b8c207a289..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng
deleted file mode 100644
index 9052c8f0c9df08704dbe523cb814417fde52e72f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng
deleted file mode 100644
index 247a95be59142ae9fb6b753a051489050dbe072e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng
deleted file mode 100644
index 8bb4a5c09e01eee3acf7929732d100d337b121d8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Kuvaus
-
-Modulename: Ohjelmaosion kansion nimi. Vain numerot,kirjaimet ja alaviiva on sallittu.
-Moduletitle: Tulee näkymään ylemmässä päävalikossa.
-Template file: Ohjelmaosion mallitiedosto. Käytettävissä tällä hetkellä: module.tpl.htm ja module_tree.tpl.htm. Oletus on module.tpl.htm.
-NaviFrame: Jos module_tree.tpl.htm valittiin mallitiedostoksi, kirjoita tähän vasemman kehyksen skriptitiedoston polku.
-Default page: Tämä sivu näytetetään kun ohjelmaosio avataan.
-Tab width: Päälikon painikkeiden leveys. Kenttä on oletuksenä tyhjä. Voit antaa arvon pikseleinää tai prosentteina. (esim. 20 tai 20%).
-Vihje: Kaikki polut ovat suhteellisia web-kansioon, eivät absoluuttisia.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng
deleted file mode 100644
index f07c9a377bd2fc6807478f1579497f43fdf6c789..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng
deleted file mode 100644
index b7c03eafb0c89d8e12b9a5cda7a611ec155c7c5d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng
deleted file mode 100644
index 5f32d5848145dbb98e8f4dbdf0e07d9cac896b37..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng
deleted file mode 100644
index 066d92f583925a1c0c59aea57ae91e1014b22992..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fi_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr.lng b/interface/ispconfig/interface/designer/lib/lang/fr.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng
deleted file mode 100644
index 4ef20b0b296449f1bdda8bd02e1f87804c378407..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng
deleted file mode 100644
index b20b8472799f446db3bb35e09a0fae0c9cea27ef..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng
deleted file mode 100644
index 9c9580ce16718645f51c44b40d6d411ff2804a9c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng
deleted file mode 100644
index c2eab9481b31d6f05126d90bcea77286fbe63276..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_module_edit.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-DescriptionNom du Module: Nom du rpertoire du module. Seulement nombres, lettres et underscore sont autoriss.Titre du Module: Seras affich dans le menu de navigation (suprieur).Fichier Template: Fichier Template du module. Disponible actuellement: module.tpl.htm et module_tree.tpl.htm. Par dfaut module.tpl.htm.Frame de Navigation: Si module_tree.tpl.htm est choisi comme fichier template, entrer ici le chemin vers le script de la frame de gauche.Page par Dfaut: Cette page seras affiche quand le module seras ouvert.Largeur tableau: Largeur des tableau dans la frame principale. Le champ est vide par defaut. Vous pouvez entrer une valeur absolue en pixel (e.g 20) ou relative (e.g 20%).Note: Tous les paths sont relatifs par rapport au dossier web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng
deleted file mode 100644
index 5389ac9453155705e8c72a8238ee19c8d2b0fede..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng
deleted file mode 100644
index 423588c935baf01c002281310d29b8e5d7cd6657..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng
deleted file mode 100644
index ada5f4ee8113811c4a6a469869de42e9790d4f00..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng
deleted file mode 100644
index da09511d759c1f4d4e922f0de764ff007e6b2153..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/fr_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu.lng b/interface/ispconfig/interface/designer/lib/lang/hu.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng
deleted file mode 100644
index 54fe173ecad0aa36c916cdf2c7c8c3611c43c45c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng
deleted file mode 100644
index 47432257fd972592d3b506b64e970910d9d0517b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng
deleted file mode 100644
index 12be609a1fb4de4e463b2bc5d8bc9be2b9c12267..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng
deleted file mode 100644
index 592ccd76bc803ce0a50ce438001b92ec68000a2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Description
-
-Modulename: Name of the module directory. Only numbers, chars and underscore allowed.
-Moduletitle: Will be shown in the (upper) main navigation.
-Template file: Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.
-NaviFrame: If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.
-Default page: These page will be shown when the module is opened.
-Tab width: Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).
-Hint: All paths are relative to the directory web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng
deleted file mode 100644
index bc9ebed5807f2dc7a411c9102c9c55dca2e4acec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng
deleted file mode 100644
index fa5f15aa9e6072a077de378f309bf9e44010ceaa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng
deleted file mode 100644
index 23f7d1592ab86b82a3d29ee7e895fca1f46b26b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng
deleted file mode 100644
index 357fca1498a00dfd67879c21985a49d08400fee6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/hu_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it.lng b/interface/ispconfig/interface/designer/lib/lang/it.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng
deleted file mode 100644
index 54fe173ecad0aa36c916cdf2c7c8c3611c43c45c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng
deleted file mode 100644
index 47432257fd972592d3b506b64e970910d9d0517b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng
deleted file mode 100644
index 12be609a1fb4de4e463b2bc5d8bc9be2b9c12267..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng
deleted file mode 100644
index 592ccd76bc803ce0a50ce438001b92ec68000a2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Description
-
-Modulename: Name of the module directory. Only numbers, chars and underscore allowed.
-Moduletitle: Will be shown in the (upper) main navigation.
-Template file: Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.
-NaviFrame: If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.
-Default page: These page will be shown when the module is opened.
-Tab width: Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).
-Hint: All paths are relative to the directory web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng
deleted file mode 100644
index bc9ebed5807f2dc7a411c9102c9c55dca2e4acec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng
deleted file mode 100644
index fa5f15aa9e6072a077de378f309bf9e44010ceaa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng
deleted file mode 100644
index 23f7d1592ab86b82a3d29ee7e895fca1f46b26b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng
deleted file mode 100644
index e295047b0e651aefabd81fa644d9467520b900fb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/it_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja.lng b/interface/ispconfig/interface/designer/lib/lang/ja.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng
deleted file mode 100644
index 130ca07889506eebba2a4a2d21aa405071b2b3fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng
deleted file mode 100644
index 47432257fd972592d3b506b64e970910d9d0517b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng
deleted file mode 100644
index 37017fa4a895bcf318bb11deaeb51473ebec49a0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng
deleted file mode 100644
index 592ccd76bc803ce0a50ce438001b92ec68000a2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Description
-
-Modulename: Name of the module directory. Only numbers, chars and underscore allowed.
-Moduletitle: Will be shown in the (upper) main navigation.
-Template file: Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm.
-NaviFrame: If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame.
-Default page: These page will be shown when the module is opened.
-Tab width: Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%).
-Hint: All paths are relative to the directory web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng
deleted file mode 100644
index bc9ebed5807f2dc7a411c9102c9c55dca2e4acec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng
deleted file mode 100644
index fa5f15aa9e6072a077de378f309bf9e44010ceaa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng
deleted file mode 100644
index 23f7d1592ab86b82a3d29ee7e895fca1f46b26b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng
deleted file mode 100644
index 6fe8d45bee9a92a0eca4ba03bcd353b60eec50dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ja_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl.lng b/interface/ispconfig/interface/designer/lib/lang/nl.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng
deleted file mode 100644
index bdc7642379edf376f4ccb94b7e687ee0ad3e0f68..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng
deleted file mode 100644
index 2da97250464f17f7f6a30d7942704569bd7b494c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng
deleted file mode 100644
index 1c82ea156116f2d479e4476e467a3d2b02bb820e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng
deleted file mode 100644
index f4234dc28b098c405053f8eb65a2aa67e89534c0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Description
-
-Modulename: Naam van de module directory. Alleen cijfers, letters en underscore zijn toegestaan.
-Moduletitle: Zal worden getoond in de hoofdnavigatie (bovenaan).
-Template file: Template bestand van de module. Momenteel beschikbaar: module.tpl.htm en module_tree.tpl.htm. Standaard is de module.tpl.htm.
-NaviFrame: Als de module_tree.tpl.htm geselecteerd is als template bestand, geef het pad op dat verwijst naar het scriptbestand voor het linker frame.
-Default page: Deze pagina wordt getoont wanneer de module is geopend.
-Tab width: Tabbreedte in de hoofdnavigatie. Het veld is standaard leeg. U kunt absolute waarden opgeven in pixels (bijv. 20) of relatieve (bijv. 20%).
-Hint: Alle paden zijn relatief aan de directorie web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng
deleted file mode 100644
index 19ea5e94412eda34aca475d8a7b2a88ab34e7c83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng
deleted file mode 100644
index 504b7f754b7cb0e436093c54c837174719c03f7b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng
deleted file mode 100644
index 4c2bddd617c493b2e8f118ad6d132a17903b58d8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng
deleted file mode 100644
index 8f605e40fd526a318dbddd4fd75f7d92b6524e02..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/nl_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl.lng b/interface/ispconfig/interface/designer/lib/lang/pl.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng
deleted file mode 100644
index ee4f4c4100e9e738dc9b2f5c7f5594484ee56437..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng
deleted file mode 100644
index ac8572277cb0fbbd23843e783026585f5e1f2007..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng
deleted file mode 100644
index db62af16b9cf666744f2013b0e99fb698e1f62d2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng
deleted file mode 100644
index 691e55052ff0394ab589f7f1ed28743d83deb1aa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Opis
-
-Nazwa modułu: Nazwa katalogu z modułem. Tylko liczby, litery (bez polskich) i podkreślenie są dozwolone.
-Tytuł modułu: Będzie wyświetlaby w głównym menu nawigacyjnym.
-Plik szablonu: Plik szablonu modułu. Aktualnie dostępne: module.tpl.htm oraz module_tree.tpl.htm. Domyślnie jest module.tpl.htm.
-Ramka nawigacyjna: Jeśli module_tree.tpl.htm wybrano jako plik szablonu, wpisz tutaj ścieżkę do pliku ze skryptem dla lewej ramki.
-Strona domyślna: Ta strona będzie otwierana na początku podczas otwarcia modułu.
-Szerokość zakładki: Szerokość zakładek w głownym menu nawigacyjnym. To pole jest domyślnie puste. Możesz podać wartość w pikselach (np.: 20) lub procentach (np.: 20%).
-Podpowiedź: Wszystkie ścieżki są względne według strony www..
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng
deleted file mode 100644
index 308d1c688bc14a1cf611cb4c876126a5c2e4a43c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng
deleted file mode 100644
index 5ace229a908caaabf6496cf3b0e31abf7e5a8a6d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng
deleted file mode 100644
index 779b3b4b3b418efa60072e2a7d9480b68a80606c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng
deleted file mode 100644
index 9b98c4948239a2b8d5717ade5e90a2d8e2ca10ec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pl_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt.lng b/interface/ispconfig/interface/designer/lib/lang/pt.lng
deleted file mode 100644
index 29f4a51efebb370aeb04c5144a604ca2c04e02be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt.lng
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng
deleted file mode 100644
index 75869ca5c525bd217640d67c0fc70ef1a68e442f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_form_edit.lng
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng
deleted file mode 100644
index 01d0f28e9b96c9b1adfe751eb4fb4ebf04584083..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_form_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng
deleted file mode 100644
index 76e7487900d8503763704af40e087b5d9defbdce..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_form_show.lng
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng
deleted file mode 100644
index b04975d26a12d1c86e7ac73a9f66483d5e288ebf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_module_edit.lng
+++ /dev/null
@@ -1,23 +0,0 @@
-Descrição
-
-Nome do Módulo: Nome da pasta do módulo. Apenas números, letras e underscores são permitidos.
-Título do Módulo: Será exibido em caixa alta no menu de navegação.
-Ficheiro de Template: Ficheiros de Template do Módulo Disponível: modulo.tpl.htm e modulo_tree.tpl.htm. O padrão é modulo.tpl.htm.
-Frame de Navegação: Se modulo_tree.tpl.htm foi seleccionado como ficheiro de template, insira aqui a pasta do script para o frame a esquerda.
-Página Padrão: Esta página será exibida quando o módulo for aberto.
-Tamanho da Aba: Tamanho das abas na navegação principal. Este campo fica em branco por padrão. Pode fornecer valores absolutos em pixels (ex.: 20) ou valores relativos (ex.: 20%).
-Dica: Todos as pastas são relativas à pasta web.
-';
-?>
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng
deleted file mode 100644
index 8b8f24775510746de6338d2a6587fa52eadde7a7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_module_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng
deleted file mode 100644
index 3a98235985cd8b28306582e23ddc4889fd2b1118..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_edit.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng
deleted file mode 100644
index 4cb7df1afc9e803fb0708dc3c61c7c2f04e7d155..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_module_nav_item_edit.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng
deleted file mode 100644
index 606181de601f0bf1950e00d96050d027654da8e0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/pt_module_show.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro.lng b/interface/ispconfig/interface/designer/lib/lang/ro.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng
deleted file mode 100644
index a99b975f03f43ad743b1e21c52e96884b22a30f3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng
deleted file mode 100644
index 49b9d5eaf0994ed10e6f4a1011ed462d9e8e4278..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng
deleted file mode 100644
index 9cc5e71d9239c5b13292f73b495d023f3aa85f7d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng
deleted file mode 100644
index 327550f2039adc3c2ad1c62aaa95c8d169a5f196..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_module_edit.lng
+++ /dev/null
@@ -1,12 +0,0 @@
-Description Modulename: Name of the module directory. Only numbers, chars and underscore allowed. Moduletitle: Will be shown in the (upper) main navigation. Template file: Template file of the module. Currently available: module.tpl.htm and module_tree.tpl.htm. Default is module.tpl.htm. NaviFrame: If module_tree.tpl.htm selected as template file, enter here the path to the script file for the left frame. Default page: These page will be shown when the module is opened. Tab width: Width of the Tabs in the main navigation. The field is empty by default. You can enter values absolute in pixel (e.g 20) or relative (e.g 20%). Hint: All paths are relative to the directory ';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng
deleted file mode 100644
index c53b556a4f0d9ad534fe6b1d5444a99ba3d72d1c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng
deleted file mode 100644
index ee6bf54268bca384e45cf593711745ec060a8504..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng
deleted file mode 100644
index 9b7d60df91b0c00ab79eb21a17c48a9230c7fb62..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng
deleted file mode 100644
index 2fb748c3d463c5bdf3a0d834f2634c32e1ec6004..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ro_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru.lng b/interface/ispconfig/interface/designer/lib/lang/ru.lng
deleted file mode 100644
index 29f4a51efebb370aeb04c5144a604ca2c04e02be..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru.lng
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng
deleted file mode 100644
index f1f67688b1f452169d65b80e8e31d71d8774a6fe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_form_edit.lng
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng
deleted file mode 100644
index d29fdbe86501d77253c826797e8a5e32c47f695f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_form_list.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng
deleted file mode 100644
index 204f86635c9ac2d313f723f0f163f5e27c562f92..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_form_show.lng
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng
deleted file mode 100644
index 0b6078410ce63edcf9551a6c0b4e2f25cdb6f569..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_module_edit.lng
+++ /dev/null
@@ -1,23 +0,0 @@
-Описание
-
-Имя модуля: Имя директории модуля. Допустимо использовать латинские символы, числа и подчеркивание.
-Заголовок модуля: Будет отображаться вверху радом с навигацией.
-Файл шаблона: Файл шаблона для модуля. Сейчас доступны: module.tpl.htm и module_tree.tpl.htm. По-умолчанию стоит module.tpl.htm.
-Навигационный фрейм: Если module_tree.tpl.htm выбран как шаблон, введите здесь путь до скрипта для левого фрейма.
-Страница по-умолчанию: Эта страница будет показана, когда открывается модуль.
-Ширина таба: Ширина таба в главной навигации. По-умолчанию поле пустое. Вы можете ввести значение в пикселях или в процентах.
-Подсказка: Все пути в директории web относительные.
-';
-?>
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng
deleted file mode 100644
index e305b40149302e013b433cf9c8facb9e38df12d2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_module_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng
deleted file mode 100644
index ad02af8e7f579f97a7f8022c27eaef3f0298ef2b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_edit.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng
deleted file mode 100644
index f42aafdb821ca16872961d387d1b90f5d426d43e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_module_nav_item_edit.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng
deleted file mode 100644
index ddb1a5f84508bcadf787c5817d575f6e85f5d0b7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/ru_module_show.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se.lng b/interface/ispconfig/interface/designer/lib/lang/se.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng
deleted file mode 100644
index d047ad393d50387a80f3e399229f5b83785d8b20..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng
deleted file mode 100644
index 8e9268e4af986c39f288c6fd3fbc4df7733f4e25..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng
deleted file mode 100644
index ebd3dd9cf6bd2121289ef35e2a1bfc572da68a1b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng
deleted file mode 100644
index ee8361d13bc77cc585108a81f0d39a1c817903ed..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Description
-
-Modulename: Namn p modul mappen. Endast siffror, bokstver och understreck r tilltna.
-Moduletitle: Kommer att visas i (vre) huvud navigerigsramen.
-Template file: Mall fil fr modulen. Just nu finns: module.tpl.htm och module_tree.tpl.htm. Standard r module.tpl.htm.
-NaviFrame: Om module module_tree.tpl.htm vljs som mall file, skriv hr skvgen till skriptfilen fr den vnstra ramen.
-Default page: Dessa sidor kommer att visas nr modulen ppnas.
-Tab width: Bredd p Flikarna i huvud navigerings ramen. Detta flt r tomt som standard. Du kan skriva in ett absolutvrde i pixlar (ex. 20) eller relativt vrde (ex. 20%).
-Hint: Alla skvgar r relativa till mappen web.
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng
deleted file mode 100644
index 0fe0187b76286b1a994374265a504f76b24388b8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng
deleted file mode 100644
index 17e1563ef931f553188f8d9c09c4e9170911488d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng
deleted file mode 100644
index 3bbbfbd1a82357404a709969632a61d828f5241c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng
deleted file mode 100644
index c58df7ac449c44ed5fd795ecf2c43570c7b2c325..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/se_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk.lng b/interface/ispconfig/interface/designer/lib/lang/sk.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng
deleted file mode 100644
index 3c72e8819b50c5cfec1331284884ed43bde20807..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng
deleted file mode 100644
index 0e0c2cb278b9e0d531b8ce4d4cbac63810b17a24..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng
deleted file mode 100644
index 042e106001a4088d51dd29e51b56912e51520102..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng
deleted file mode 100644
index 320bd142911be25dc031757d4aa0b5715140b909..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_module_edit.lng
+++ /dev/null
@@ -1,12 +0,0 @@
- Popis b> Modulename: b> Nzov modulu adresr. Len ?sla, znaky a podtrtko povolen. Moduletitle: b> sa objav v (hornej) navigciu. ablna sboru: b> ablna sboru modulu. V s?asnej dobe s k dispozcii';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng
deleted file mode 100644
index 4d9cd1e2ccfeb983a274d4cd4b55290fb89f4222..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng
deleted file mode 100644
index 69d4d161c18e09ef48ed0c85ff7a6fa8220ab1d9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng
deleted file mode 100644
index 23f7d1592ab86b82a3d29ee7e895fca1f46b26b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng
deleted file mode 100644
index 3d62509ea8355f5307ab8d3a0817ce2c196bb6e7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/sk_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr.lng b/interface/ispconfig/interface/designer/lib/lang/tr.lng
deleted file mode 100644
index acb6c3546c6150b4edbafb782d3ed85c499210b5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr.lng
+++ /dev/null
@@ -1,2 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng
deleted file mode 100644
index 8288ce84b895b6469fd87a121788a79ed0eab58b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_form_edit.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng
deleted file mode 100644
index 54aa1f45340982eec7bd51825236c02d72c19ffb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_form_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng b/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng
deleted file mode 100644
index 8efa1df5a5c60689daea01090b60683e92218217..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_form_show.lng
+++ /dev/null
@@ -1,18 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng
deleted file mode 100644
index 92bf93d2cac9f3cd7001e20f0a2e314a27c314b3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_module_edit.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-Açıklama
-
-Modül adı: Modül klasörünün adı. Sadece sayı, rakam ve alttan çizgi kullanabilirsiniz.
-Modül başlığı: Üst ana menüde gösterilecek olan isim.
-Şablon dosyası: Şablon dosyası veya modülü. Şu anda geçerli olan dosyalar: module.tpl.htm ve module_tree.tpl.htm. Varsayılan dosya: module.tpl.htm.
-NaviFrame: Eğer module_tree.tpl.htm dosyası şablon dosyası olarak seçilirse, buraya sol frame için betik dosyası yolu girebilirsiniz.
-Varsayılan sayfa: Modül açıldığı zaman görünecek sayfa.
-Sekme Genişliği: Temel navigasyonun genişliği. Bu alan varsayılan olarak boştur. Siz bir piksel değeri(20 gibi) veya bir oran(20%) değeri girebilirsiniz.
-İşaret: Tüm yollar web klasörüyle ilişkilidir..
-';
-?>
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng
deleted file mode 100644
index 08c57875fdb6001cf3385e084103accd923ab35c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_module_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng
deleted file mode 100644
index fd10993d6e03dc6afb36a6b944124dd307765303..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_edit.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng
deleted file mode 100644
index 06fe57e84fa3cdb90e5ed85c3fb2771a71eaa16b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_module_nav_item_edit.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng b/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng
deleted file mode 100644
index a40c0743b5e795f547afe64aff4e88092970767a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/lang/tr_module_show.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/designer/lib/module.conf.php b/interface/ispconfig/interface/designer/lib/module.conf.php
deleted file mode 100644
index 16e13c5e81266b36ff30bc2c2182d427237b9448..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/lib/module.conf.php
+++ /dev/null
@@ -1,95 +0,0 @@
- 'designer',
- 'title' => 'BE Designer',
- 'template' => 'module.tpl.htm',
- 'navframe_page' => '',
- 'startpage' => 'designer/module_list.php',
- 'tab_width' => '',
- 'nav' =>
- array (
- 0 =>
- array (
- 'title' => 'Modules',
- 'open' => '1',
- 'items' =>
- array (
- 0 =>
- array (
- 'title' => 'Add',
- 'target' => 'content',
- 'link' => 'designer/module_edit.php',
- ),
- 1 =>
- array (
- 'title' => 'Edit',
- 'target' => 'content',
- 'link' => 'designer/module_list.php',
- ),
- ),
- ),
- /*
- 1 =>
- array (
- 'title' => 'Formulare',
- 'open' => '1',
- 'items' =>
- array (
- 2 =>
- array (
- 'title' => 'Add',
- 'target' => 'content',
- 'link' => 'designer/form_edit.php',
- ),
- 3 =>
- array (
- 'title' => 'Edit',
- 'target' => 'content',
- 'link' => 'designer/form_list.php',
- ),
- ),
- ),
- 2 =>
- array (
- 'title' => 'Lists',
- 'open' => '1',
- 'items' =>
- array (
- 4 =>
- array (
- 'title' => 'Add',
- 'target' => 'content',
- 'link' => 'designer/list_edit.php',
- ),
- 5 =>
- array (
- 'title' => 'Edit',
- 'target' => 'content',
- 'link' => 'designer/list_list.php',
- ),
- ),
- ),
- 3 =>
- array (
- 'title' => 'Languages',
- 'open' => '1',
- 'items' =>
- array (
- 6 =>
- array (
- 'title' => 'Add',
- 'target' => 'content',
- 'link' => 'designer/lang_edit.php',
- ),
- 7 =>
- array (
- 'title' => 'Edit',
- 'target' => 'content',
- 'link' => 'designer/lang_list.php',
- ),
- ),
- ),
- */
- ),
-)
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_edit.php b/interface/ispconfig/interface/designer/module_edit.php
deleted file mode 100644
index 9d0a556f478da3872230f55c508c81bdeb64d2c9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_edit.php
+++ /dev/null
@@ -1,183 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_edit.htm');
-
-// ID importieren
-$id = $_REQUEST["id"];
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$id)) die("id contains invalid chars.");
-
-if(count($_POST) > 1) {
- // Bestimme aktion
- if($id != '') {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
-
- if($error == '') {
-
- $id = $_POST["module"]["name"];
- if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$id)) die("id contains invalid chars.");
-
- $filename = "../".$id."/lib/module.conf.php";
- $module_new = $_POST["module"];
-
- if(@is_file($filename)) {
- include_once($filename);
- $navi = $module["nav"];
- unset($module);
- $module_new["nav"] = $navi;
- }
-
- $m = "";
-
- // creating the module directories
- if(!@is_dir("../".$id)) mkdir("../".$id) or die("Cannot make directory: ../".$id);
- if(!@is_dir("../".$id."/lib")) mkdir("../".$id."/lib") or die("Cannot make directory: ../".$id."/lib");
- if(!@is_dir("../".$id."/lib/lang")) mkdir("../".$id."/lib/lang") or die("Cannot make directory: ../".$id."/lib/lang");
- if(!@is_dir("../".$id."/form")) mkdir("../".$id."/form") or die("Cannot make directory: ../".$id."/form");
- if(!@is_dir("../".$id."/list")) mkdir("../".$id."/list") or die("Cannot make directory: ../".$id."/list");
- if(!@is_dir("../".$id."/templates")) mkdir("../".$id."/templates") or die("Cannot make directory: ../".$id."/templates");
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
-
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
- // writing admin conf
- $admin_conf_filename = "../".$id."/lib/admin.conf.php";
- if(!is_file($admin_conf_filename)) {
- if (!$handle = fopen($admin_conf_filename, 'w')) {
- print "Cannot open file ($admin_conf_filename)";
- exit;
- }
-
- if (!fwrite($handle, "")) {
- print "Cannot write to file ($admin_conf_filename)";
- exit;
- }
-
- fclose($handle);
- }
-
- // zu Liste springen
- header("Location: module_list.php");
- exit;
-
- } else {
- $app->tpl->setVar("error","Fehler: ".$error);
- $app->tpl->setVar($_POST);
- }
-}
-
-if($id != '') {
-// Datensatz besteht bereits
- // bestehenden Datensatz anzeigen
- if($error == '') {
- // es liegt ein Fehler vor
- include_once("../".$id."/lib/module.conf.php");
- //$navi = $module["nav"];
- unset($module["nav"]);
- $record = $module;
- } else {
- // ein Fehler
- $record = $_POST;
- //$navi = $_POST["nav"];
- unset($_POST["nav"]);
- }
- $record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
-} else {
-// neuer datensatz
- if($error == '') {
- // es liegt ein Fehler vor
- $record["template"] = "module.tpl.htm";
- } else {
- // ein Fehler
- $record = $_POST;
- //$navi = $_POST["nav"];
- unset($_POST["nav"]);
-
- }
- $record["readonly"] = '';
-}
-
-$record["id"] = $id;
-
-/*
-// baue Modul navi
-$content = "";
-$n1 = 0;
-$n2 = 0;
-foreach($navi as $section) {
- $content .= "Bereich: \r\n";
- foreach($section["items"] as $item) {
- $content .= "Titel: \r\n";
- $content .= "Ziel: \r\n";
- $content .= "Link: \r\n";
- $n2++;
- }
- $n1++;
-}
-
-$record["nav"] = $content;
-*/
-
-$app->tpl->setVar($record);
-
-include_once("lib/lang/".$_SESSION["s"]["language"]."_module_edit.lng");
-$app->tpl->setVar($wb);
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_list.php b/interface/ispconfig/interface/designer/module_list.php
deleted file mode 100644
index 4806f079dcaa75d65a56570599d92b7a04c56514..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_list.php
+++ /dev/null
@@ -1,69 +0,0 @@
-auth->check_module_permissions('designer');
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl','templates/module_list.htm');
-
-//* Pick out modules
-$bgcolor = '#FFFFFF';
-$modules_list = array();
-$handle = @opendir(ISPC_WEB_PATH);
-while ($file = @readdir ($handle)) {
- if ($file != '.' && $file != '..') {
- if(@is_dir(ISPC_WEB_PATH."/$file")) {
- if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') {
- include_once(ISPC_WEB_PATH."/$file/lib/module.conf.php");
- $modules_list[] = array( 'module' => $module['name'],
- 'title' => $module['title'],
- 'bgcolor' => ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF'
- );
- }
- }
- }
-}
-
-$app->tpl->setLoop('records', $modules_list);
-
-//* loading language file
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_module_list.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_del.php b/interface/ispconfig/interface/designer/module_nav_del.php
deleted file mode 100644
index dfbe761bbac4bbdf14920d3e3105a4c678c2091f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_del.php
+++ /dev/null
@@ -1,80 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm');
-
-// ID importieren
-$module_name = $_REQUEST["module_name"];
-$nav_id = $_REQUEST["nav_id"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$nav_id)) die("nav_id contains invalid chars.");
-
-if(empty($module_name)) die("module is empty.");
-
-if($nav_id != '') {
-
- $filename = "../".$module_name."/lib/module.conf.php";
-
- if(!@is_file($filename)) die("File not found: $filename");
- include_once($filename);
-
- unset($module["nav"][$nav_id]);
-
- $m = "";
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
-
- // zu Liste springen
- header("Location: module_show.php?id=$module_name");
- exit;
-}
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_edit.php b/interface/ispconfig/interface/designer/module_nav_edit.php
deleted file mode 100644
index d97cd5e4bc1ac74ba5ca3646752f212d3f9a94a6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_edit.php
+++ /dev/null
@@ -1,146 +0,0 @@
-auth->check_module_permissions('designer');
-
-//* Load template
-$app->uses('tpl');
-$app->tpl->newTemplate('form.tpl.htm');
-$app->tpl->setInclude('content_tpl', 'templates/module_nav_edit.htm');
-
-// TODO: Check module and nav_id for malicius chars, nav_id can be empty or any number, even 0
-$module_name = $_REQUEST['module_name'];
-$nav_id = $_REQUEST['nav_id'];
-
-//** Sanity checks of module
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/', $module_name)){
- die('module_name contains invalid chars.');
-}
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/', $nav_id)){
- die('nav_id contains invalid chars.');
-}
-if(empty($module_name)){
- die('module is empty.');
-}
-
-if(count($_POST) > 0) {
- //* Determine Action
- $action = ($nav_id != '') ? 'UPDATE' : 'INSERT';
- $error = '';
-
- // TODO: Check variables
-
- if($error == '') {
-
- $filename = '../'.$module_name.'/lib/module.conf.php';
-
- if(!@is_file($filename)){
- die("File not found: $filename");
- }
- include_once($filename);
-
- $items = ($action == 'UPDATE') ? $module['nav'][$nav_id]['items'] : array();
-
- $tmp = array('title' => $_POST['nav']['title'],
- 'open' => 1,
- 'items' => $items);
-
- if($action == 'UPDATE') {
- $module['nav'][$nav_id] = $tmp;
- } else {
- $module['nav'][] = $tmp;
- }
-
- $m = "";
-
- //* writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- die("Cannot open file ($filename)");
- }
-
- if (!fwrite($handle, $m)) {
- die("Cannot write to file ($filename)");
- }
-
- fclose($handle);
-
-
- //* Jump to list
- header('Location: module_show.php?id='.urlencode($module_name));
- exit;
-
- } else {
- $app->tpl->setVar('error', 'Fehler: '.$error);
- $app->tpl->setVar($_POST);
- }
-}
-
-if($nav_id != '') {
- //* Data record exists
- if($error == '') {
- include_once('../'.$module_name.'/lib/module.conf.php');
- $record = $module['nav'][$nav_id];
- } else {
- //* error
- $record = $_POST;
- }
- //$record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
-} else {
- //* New data record
- if($error == '') {
- //* es liegt kein Fehler vor
- } else {
- //* error
- $record = $_POST;
-
- }
- //$record["readonly"] = '';
-}
-
-$record['nav_id'] = $nav_id;
-$record['module_name'] = $module_name;
-
-$app->tpl->setVar($record);
-
-include_once('lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng');
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_flip.php b/interface/ispconfig/interface/designer/module_nav_flip.php
deleted file mode 100644
index f20dd630671e7c564e4263c2c07cd7e045cb1608..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_flip.php
+++ /dev/null
@@ -1,91 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm');
-
-// ID importieren
-$module_name = $_REQUEST["module_name"];
-$nav_id = $_REQUEST["nav_id"];
-$dir = $_REQUEST["dir"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$nav_id)) die("nav_id contains invalid chars.");
-
-if(empty($module_name)) die("module is empty.");
-
-if($nav_id != '') {
-
- $filename = "../".$module_name."/lib/module.conf.php";
-
- if(!@is_file($filename)) die("File not found: $filename");
- include_once($filename);
-
- if($dir == 'up' and $nav_id > 0) {
- $tmp = $module["nav"][$nav_id - 1];
- $module["nav"][$nav_id - 1] = $module["nav"][$nav_id];
- $module["nav"][$nav_id] = $tmp;
- }
-
- if($dir == 'down' and $nav_id < count($module["nav"]) -1) {
- $tmp = $module["nav"][$nav_id + 1];
- $module["nav"][$nav_id + 1] = $module["nav"][$nav_id];
- $module["nav"][$nav_id] = $tmp;
- }
-
- $m = "";
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
-
- // zu Liste springen
- echo "HEADER_REDIRECT:designer/module_show.php?id=$module_name";
- exit;
-}
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_item_del.php b/interface/ispconfig/interface/designer/module_nav_item_del.php
deleted file mode 100644
index d941f5bb8ac3e1b9b3c5cd900fc2e523d570a602..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_item_del.php
+++ /dev/null
@@ -1,82 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm');
-
-// ID importieren
-$module_name = $_REQUEST["module_name"];
-$nav_id = $_REQUEST["nav_id"];
-$item_id = $_REQUEST["item_id"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars.");
-
-if(empty($module_name)) die("module is empty.");
-
-if($nav_id != '') {
-
- $filename = "../".$module_name."/lib/module.conf.php";
-
- if(!@is_file($filename)) die("File not found: $filename");
- include_once($filename);
-
- unset($module["nav"][$nav_id]["items"][$item_id]);
-
- $m = "";
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
-
- // zu Liste springen
- header("Location: module_show.php?id=$module_name");
- exit;
-}
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_item_edit.php b/interface/ispconfig/interface/designer/module_nav_item_edit.php
deleted file mode 100644
index d270d99b408d7325e86662a4db64eac64e668c07..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_item_edit.php
+++ /dev/null
@@ -1,150 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_nav_item_edit.htm');
-
-// ID importieren
-$module_name = $_REQUEST["module_name"];
-$nav_id = $_REQUEST["nav_id"];
-$item_id = $_REQUEST["item_id"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars.");
-
-if(empty($module_name)) die("module is empty.");
-
-if(count($_POST) > 0) {
- // Bestimme aktion
- if($item_id != '') {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
- $error = '';
-
- // TODO: Check variables
-
-
- if($error == '') {
-
- $filename = "../".$module_name."/lib/module.conf.php";
-
- if(!@is_file($filename)) die("File not found: $filename");
- include_once($filename);
-
- $tmp = array('title' =>$_POST["title"],
- 'target' => $_POST["target"],
- 'link' => $_POST["link"]);
-
- if($action == 'UPDATE') {
- $module["nav"][$nav_id]["items"][$item_id] = $tmp;
- } else {
- $module["nav"][$nav_id]["items"][] = $tmp;
- }
-
- $m = "";
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
-
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
-
- // zu Liste springen
- header("Location: module_show.php?id=$module_name");
- exit;
-
- } else {
- $app->tpl->setVar("error","Fehler: ".$error);
- $app->tpl->setVar($_POST);
- }
-}
-
-if($item_id != '') {
-// Datensatz besteht bereits
- // bestehenden Datensatz anzeigen
- if($error == '') {
- // es liegt ein Fehler vor
- include_once("../".$module_name."/lib/module.conf.php");
- $record = $module["nav"][$nav_id]["items"][$item_id];
- } else {
- // ein Fehler
- $record = $_POST;
- }
- //$record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
-} else {
-// neuer datensatz
- if($error == '') {
- // es liegt kein Fehler vor
- $record["target"] = "content";
- } else {
- // ein Fehler
- $record = $_POST;
-
- }
- //$record["readonly"] = '';
-}
-
-$record["item_id"] = $item_id;
-$record["nav_id"] = $nav_id;
-$record["module_name"] = $module_name;
-
-$app->tpl->setVar($record);
-
-include_once("lib/lang/".$_SESSION["s"]["language"]."_module_nav_item_edit.lng");
-$app->tpl->setVar($wb);
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_nav_item_flip.php b/interface/ispconfig/interface/designer/module_nav_item_flip.php
deleted file mode 100644
index 21bc68cee4fd913eb6738b423bdfb3c0c1f3780e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_nav_item_flip.php
+++ /dev/null
@@ -1,93 +0,0 @@
-auth->check_module_permissions('designer');
-
-// Lade Template
-$app->uses('tpl');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_nav_edit.htm');
-
-// ID importieren
-$module_name = $_REQUEST["module_name"];
-$nav_id = $_REQUEST["nav_id"];
-$item_id = $_REQUEST["item_id"];
-$dir = $_REQUEST["dir"];
-
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$nav_id)) die("nav_id contains invalid chars.");
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$item_id)) die("item_id contains invalid chars.");
-
-if(empty($module_name)) die("module is empty.");
-
-if($nav_id != '') {
-
- $filename = "../".$module_name."/lib/module.conf.php";
-
- if(!@is_file($filename)) die("File not found: $filename");
- include_once($filename);
-
- if($dir == 'up' and $item_id > 0) {
- $tmp = $module["nav"][$nav_id]["items"][$item_id - 1];
- $module["nav"][$nav_id]["items"][$item_id -1] = $module["nav"][$nav_id]["items"][$item_id];
- $module["nav"][$nav_id]["items"][$item_id] = $tmp;
- }
-
- if($dir == 'down' and $item_id < count($module["nav"][$nav_id]["items"]) -1) {
- $tmp = $module["nav"][$nav_id]["items"][$item_id + 1];
- $module["nav"][$nav_id]["items"][$item_id + 1] = $module["nav"][$nav_id]["items"][$item_id];
- $module["nav"][$nav_id]["items"][$item_id] = $tmp;
- }
-
- $m = "";
-
- // writing module.conf
- if (!$handle = fopen($filename, 'w')) {
- print "Cannot open file ($filename)";
- exit;
- }
- if (!fwrite($handle, $m)) {
- print "Cannot write to file ($filename)";
- exit;
- }
-
- fclose($handle);
-
-
- // zu Liste springen
- header("Location: module_show.php?id=$module_name");
- exit;
-}
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/module_show.php b/interface/ispconfig/interface/designer/module_show.php
deleted file mode 100644
index a8a3b3e651fdcc96fac5676ec7553e692eecc1d4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/module_show.php
+++ /dev/null
@@ -1,113 +0,0 @@
-auth->check_module_permissions('designer');
-
-if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
-
-$app->uses('tpl');
-
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/module_show.htm');
-
-
-$module_name = $_REQUEST["id"];
-if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$module_name)) die("id contains invalid chars.");
-
-include_once("../".$module_name."/lib/module.conf.php");
-$navi = $module["nav"];
-unset($module["nav"]);
-$record = $module;
-
-// loading language file
-$lng_file = "lib/lang/".$_SESSION["s"]["user"]["language"]."_module_show.lng";
-include($lng_file);
-$app->tpl->setVar($wb);
-
-// baue Modul navi
-$content = "";
-$n1 = 0;
-$n2 = 0;
-if(is_array($navi)) {
-foreach($navi as $nav_id => $section) {
- $content .= "
-
-
-
- ";
- $n1++;
-}
-}
-
-$record["nav"] = $content;
-
-
-$app->tpl->setVar($record);
-
-
-$app->tpl->setLoop('records',$modules_list);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/form_edit.htm b/interface/ispconfig/interface/designer/templates/form_edit.htm
deleted file mode 100644
index 4d1c991ab19f7a33b3a25d941f1af414a4c1017f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/form_edit.htm
+++ /dev/null
@@ -1,79 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/form_list.htm b/interface/ispconfig/interface/designer/templates/form_list.htm
deleted file mode 100644
index 57506e8d4613cc3e8f0d37f657f84d0040a0dedb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/form_list.htm
+++ /dev/null
@@ -1,24 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/form_show.htm b/interface/ispconfig/interface/designer/templates/form_show.htm
deleted file mode 100644
index b10407018c0f4d5d7d513116105a969871b5d42a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/form_show.htm
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/module_edit.htm b/interface/ispconfig/interface/designer/templates/module_edit.htm
deleted file mode 100644
index 2464f5f7e32aa198963b024cfa2985b2e00d7d18..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/module_edit.htm
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/module_list.htm b/interface/ispconfig/interface/designer/templates/module_list.htm
deleted file mode 100644
index 1198d1c8c5693f83674443673fc31eae47ba8f63..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/module_list.htm
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/module_nav_edit.htm b/interface/ispconfig/interface/designer/templates/module_nav_edit.htm
deleted file mode 100644
index 5c46350b317517d6ad13566c114c0ea47673e7b3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/module_nav_edit.htm
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm b/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm
deleted file mode 100644
index 7ddcd19c0fbe6710c2bc044b0e528263c5e47b3b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/module_nav_item_edit.htm
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/module_show.htm b/interface/ispconfig/interface/designer/templates/module_show.htm
deleted file mode 100644
index 8b261720feed3666c32b1d474007fc8973c89119..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/module_show.htm
+++ /dev/null
@@ -1,31 +0,0 @@
-
-{tmpl_var name='module_txt'}
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/designer/templates/paging.tpl.htm b/interface/ispconfig/interface/designer/templates/paging.tpl.htm
deleted file mode 100644
index cb8270404709c841e85e8ddbdf5dd725a98b4e08..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/designer/templates/paging.tpl.htm
+++ /dev/null
@@ -1,9 +0,0 @@
-[ |<< ]
-
- [<< Zurck ]
-
- Seite {tmpl_var name="next_page"} von {tmpl_var name="max_pages"}
-
- [Weiter >> ]
-
- [ >>| ]
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_a_edit.php b/interface/ispconfig/interface/dns/dns_a_edit.php
deleted file mode 100644
index 3bd8dec2043ecb58bbb96a31e20d57f7c4b4eeee..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_a_edit.php
+++ /dev/null
@@ -1,144 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
- //* Check for duplicates where IP and hostname are the same
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE type = 'A' AND name = '".$this->dataRecord["name"]."' AND zone = '".$this->dataRecord["zone"]."' and data = '".$this->dataRecord["data"]."' and id != ".$this->id);
- if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")." ";
- unset($tmp);
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_a_list.php b/interface/ispconfig/interface/dns/dns_a_list.php
deleted file mode 100644
index 681e1583955d5673b856489075c5d2ddb5db7e88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_a_list.php
+++ /dev/null
@@ -1,24 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses('listform_actions');
-$app->listform_actions->SQLExtWhere = "type = 'A'";
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_aaaa_edit.php b/interface/ispconfig/interface/dns/dns_aaaa_edit.php
deleted file mode 100644
index 97a3565ebbc7ea6f00b81a0b4374cdee9d746ec5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_aaaa_edit.php
+++ /dev/null
@@ -1,139 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_alias_edit.php b/interface/ispconfig/interface/dns/dns_alias_edit.php
deleted file mode 100644
index 676d439a6664ea88de2bae27b45bae953de3cdeb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_alias_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_cname_edit.php b/interface/ispconfig/interface/dns/dns_cname_edit.php
deleted file mode 100644
index 96e645348309e026b3ef30147f58d85259e4b855..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_cname_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_hinfo_edit.php b/interface/ispconfig/interface/dns/dns_hinfo_edit.php
deleted file mode 100644
index cafbedef918e2c3a3bd4ccb60945a783b101fa39..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_hinfo_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_mx_edit.php b/interface/ispconfig/interface/dns/dns_mx_edit.php
deleted file mode 100644
index 889d795e1b2225b17c8d5a72b865d77bb425b84c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_mx_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_ns_edit.php b/interface/ispconfig/interface/dns/dns_ns_edit.php
deleted file mode 100644
index 5fa65c9d00066cef40cae83363af7f7ca85bcbfc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_ns_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_ptr_edit.php b/interface/ispconfig/interface/dns/dns_ptr_edit.php
deleted file mode 100644
index 04f1b2ef4163e5f537ac8f9422c01ba82143f4dc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_ptr_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_rp_edit.php b/interface/ispconfig/interface/dns/dns_rp_edit.php
deleted file mode 100644
index 10c61122f45de4f08eff8aee5ec1a8cf08a9a493..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_rp_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_rr_del.php b/interface/ispconfig/interface/dns/dns_rr_del.php
deleted file mode 100644
index 7a0b92d14514d7b9ef1e158cf027da0b5e51eb48..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_rr_del.php
+++ /dev/null
@@ -1,51 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses("tform_actions");
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_soa_del.php b/interface/ispconfig/interface/dns/dns_soa_del.php
deleted file mode 100644
index 38e35bd67c2e2b91b07ac1d9dad9381947a5c63f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_soa_del.php
+++ /dev/null
@@ -1,69 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onBeforeDelete() {
- global $app; $conf;
-
- if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission'));
-
- // Delete all records that belog to this zone.
- $records = $app->db->queryAllRecords("SELECT id FROM dns_rr WHERE zone = '".intval($this->id)."'");
- foreach($records as $rec) {
- $app->db->datalogDelete('dns_rr','id',$rec['id']);
- }
- }
-}
-
-$page = new page_action;
-$page->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_soa_edit.php b/interface/ispconfig/interface/dns/dns_soa_edit.php
deleted file mode 100644
index 6bfad69124663f3b22b4c6edb4ce4587002adaf3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_soa_edit.php
+++ /dev/null
@@ -1,222 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
- if(!$app->tform->checkClientLimit('limit_dns_zone')) {
- $app->error($app->tform->wordbook["limit_dns_zone_txt"]);
- }
- if(!$app->tform->checkResellerLimit('limit_dns_zone')) {
- $app->error('Reseller: '.$app->tform->wordbook["limit_dns_zone_txt"]);
- }
- }
-
- parent::onShowNew();
- }
-
- function onShowEnd() {
- global $app, $conf;
-
- // If user is admin, we will allow him to select to whom this record belongs
- if($_SESSION["s"]["user"]["typ"] == 'admin') {
- // Getting Domains of the user
- $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER by name";
- $clients = $app->db->queryAllRecords($sql);
- $client_select = '';
- if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= " ";
- $tmp_data_record = $app->tform->getDataRecord($this->id);
- if(is_array($clients)) {
- foreach( $clients as $client) {
- $selected = ($client["groupid"] == @$tmp_data_record["sys_groupid"])?'SELECTED':'';
- $client_select .= "$client[name] \r\n";
- }
- }
- $app->tpl->setVar("client_group_id",$client_select);
- } else if($app->auth->has_clients($_SESSION['s']['user']['userid'])) {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT client.client_id, client.contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Fill the client select field
- $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
- $clients = $app->db->queryAllRecords($sql);
- $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']);
- $client_select = ''.$client['contact_name'].' ';
- $tmp_data_record = $app->tform->getDataRecord($this->id);
- if(is_array($clients)) {
- foreach( $clients as $client) {
- $selected = @($client["groupid"] == $tmp_data_record["sys_groupid"])?'SELECTED':'';
- $client_select .= "$client[name] \r\n";
- }
- }
- $app->tpl->setVar("client_group_id",$client_select);
-
- }
-
- parent::onShowEnd();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- if($_SESSION["s"]["user"]["typ"] != 'admin') {
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_zone, default_dnsserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // When the record is updated
- if($this->id > 0) {
- // restore the server ID if the user is not admin and record is edited
- $tmp = $app->db->queryOneRecord("SELECT server_id FROM dns_soa WHERE id = ".intval($this->id));
- $this->dataRecord["server_id"] = $tmp["server_id"];
- unset($tmp);
- // When the record is inserted
- } else {
- // set the server ID to the default dnsserver of the client
- $this->dataRecord["server_id"] = $client["default_dnsserver"];
-
- // Check if the user may add another maildomain.
- if($client["limit_dns_zone"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_soa WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_zone"]) {
- $app->error($app->tform->wordbook["limit_dns_zone_txt"]);
- }
- }
- }
- }
-
- /*
- // Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- */
-
-
- //* Check if soa, ns and mbox have a dot at the end
- if(strlen($this->dataRecord["origin"]) > 0 && substr($this->dataRecord["origin"],-1,1) != '.') $this->dataRecord["origin"] .= '.';
- if(strlen($this->dataRecord["ns"]) > 0 && substr($this->dataRecord["ns"],-1,1) != '.') $this->dataRecord["ns"] .= '.';
- if(strlen($this->dataRecord["mbox"]) > 0 && substr($this->dataRecord["mbox"],-1,1) != '.') $this->dataRecord["mbox"] .= '.';
-
- //* Replace @ in mbox
- if(stristr($this->dataRecord["mbox"],'@')) {
- $this->dataRecord["mbox"] = str_replace('@','.',$this->dataRecord["mbox"]);
- }
-
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- // make sure that the record belongs to the client group and not the admin group when a dmin inserts it
- if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
- $client_group_id = intval($this->dataRecord["client_group_id"]);
- $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id);
- // And we want to update all rr records too, that belong to this record
- $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id);
- }
- if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) {
- $client_group_id = intval($this->dataRecord["client_group_id"]);
- $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id);
- // And we want to update all rr records too, that belong to this record
- $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id);
- }
-
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- $tmp = $app->db->diffrec($this->oldDataRecord,$app->tform->getDataRecord($this->id));
- if($tmp['diff_num'] > 0) {
- // Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = ".$this->id);
- $app->db->query("UPDATE dns_soa SET serial = '".$app->validate_dns->increase_serial($soa["serial"])."' WHERE id = ".$this->id);
- }
-
- // make sure that the record belongs to the client group and not the admin group when a dmin inserts it
- if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
- $client_group_id = intval($this->dataRecord["client_group_id"]);
- $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id);
- // And we want to update all rr records too, that belong to this record
- $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id);
- }
- if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($this->dataRecord["client_group_id"])) {
- $client_group_id = intval($this->dataRecord["client_group_id"]);
- $app->db->query("UPDATE dns_soa SET sys_groupid = $client_group_id WHERE id = ".$this->id);
- // And we want to update all rr records too, that belong to this record
- $app->db->query("UPDATE dns_rr SET sys_groupid = $client_group_id WHERE zone = ".$this->id);
- }
-
- //** When the client group has changed, change also the owner of the record if the owner is not the admin user
- if($this->oldDataRecord["client_group_id"] != $this->dataRecord["client_group_id"] && $this->dataRecord["sys_userid"] != 1) {
- $client_group_id = intval($this->dataRecord["client_group_id"]);
- $tmp = $app->db->queryOneREcord("SELECT userid FROM sys_user WHERE default_group = ".$client_group_id);
- if($tmp["userid"] > 0) {
- $app->db->query("UPDATE dns_soa SET sys_userid = ".$tmp["userid"]." WHERE id = ".$this->id);
- $app->db->query("UPDATE dns_rr SET sys_userid = ".$tmp["userid"]." WHERE zone = ".$this->id);
- }
- }
-
- }
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_soa_list.php b/interface/ispconfig/interface/dns/dns_soa_list.php
deleted file mode 100644
index 7b2981a5b23f021a6a50f297078867e71ff02593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_soa_list.php
+++ /dev/null
@@ -1,25 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses('listform_actions');
-// $app->listform_actions->SQLExtWhere = "access = 'REJECT'";
-
-$app->listform_actions->SQLOrderBy = 'ORDER BY origin';
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_srv_edit.php b/interface/ispconfig/interface/dns/dns_srv_edit.php
deleted file mode 100644
index 15af1e207b73d000d7eec62bfc57cbaa0891b7d5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_srv_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_template_del.php b/interface/ispconfig/interface/dns/dns_template_del.php
deleted file mode 100644
index 5aa1ff748f9ad52f48e5017da17c1accd309920e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_template_del.php
+++ /dev/null
@@ -1,58 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
-}
-
-$page = new page_action;
-$page->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_template_edit.php b/interface/ispconfig/interface/dns/dns_template_edit.php
deleted file mode 100644
index 7d84d5ca8ea6736139e1b0ebf06eda97aed9bca6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_template_edit.php
+++ /dev/null
@@ -1,60 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-if($_SESSION["s"]["user"]["typ"] != 'admin') die('Access denied for non admin users.');
-
-class page_action extends tform_actions {
-
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_template_list.php b/interface/ispconfig/interface/dns/dns_template_list.php
deleted file mode 100644
index 4cde9a01330b2008f37c1b897f5ca05567ed02f2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_template_list.php
+++ /dev/null
@@ -1,24 +0,0 @@
-auth->check_module_permissions('dns');
-
-$app->uses('listform_actions');
-// $app->listform_actions->SQLExtWhere = "access = 'REJECT'";
-
-$app->listform_actions->onLoad();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/dns_txt_edit.php b/interface/ispconfig/interface/dns/dns_txt_edit.php
deleted file mode 100644
index 2d5cecdc98784173ee31a9ac5d0eabd267bc99eb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_txt_edit.php
+++ /dev/null
@@ -1,138 +0,0 @@
-auth->check_module_permissions('dns');
-
-// Loading classes
-$app->uses('tpl,tform,tform_actions,validate_dns');
-$app->load('tform_actions');
-
-class page_action extends tform_actions {
-
- function onShowNew() {
- global $app, $conf;
-
- // we will check only users, not admins
- if($_SESSION["s"]["user"]["typ"] == 'user') {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- }
-
- parent::onShowNew();
- }
-
- function onSubmit() {
- global $app, $conf;
-
- // Get the parent soa record of the domain
- $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r'));
-
- // Check if Domain belongs to user
- if($soa["id"] != $_POST["zone"]) $app->tform->errorMessage .= $app->tform->wordbook["no_zone_perm"];
-
- // Check the client limits, if user is not the admin
- if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT limit_dns_record FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
- // Check if the user may add another mailbox.
- if($this->id == 0 && $client["limit_dns_record"] >= 0) {
- $tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE sys_groupid = $client_group_id");
- if($tmp["number"] >= $client["limit_dns_record"]) {
- $app->error($app->tform->wordbook["limit_dns_record_txt"]);
- }
- }
- } // end if user is not admin
-
-
- // Set the server ID of the rr record to the same server ID as the parent record.
- $this->dataRecord["server_id"] = $soa["server_id"];
-
- // Update the serial number and timestamp of the RR record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ".$this->id);
- $this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
- $this->dataRecord["stamp"] = date('Y-m-d H:i:s');
-
- parent::onSubmit();
- }
-
- function onAfterInsert() {
- global $app, $conf;
-
- //* Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record
- $soa = $app->db->queryOneRecord("SELECT sys_groupid,serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $app->db->datalogUpdate('dns_rr', "sys_groupid = ".$soa['sys_groupid'], 'id', $this->id);
-
- //* Update the serial number of the SOA record
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-
- function onAfterUpdate() {
- global $app, $conf;
-
- //* Update the serial number of the SOA record
- $soa = $app->db->queryOneRecord("SELECT serial FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r'));
- $soa_id = intval($_POST["zone"]);
- $serial = $app->validate_dns->increase_serial($soa["serial"]);
- $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
- }
-}
-
-$page = new page_action;
-$page->onLoad();
-
-?>
diff --git a/interface/ispconfig/interface/dns/dns_wizard.php b/interface/ispconfig/interface/dns/dns_wizard.php
deleted file mode 100644
index 2c985eb94132f7d604ccd12ac94fe29f710fe42b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/dns_wizard.php
+++ /dev/null
@@ -1,274 +0,0 @@
-auth->check_module_permissions('dns');
-
-
-// Loading the template
-$app->uses('tpl,validate_dns');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/dns_wizard.htm');
-$app->load_language_file('/web/dns/lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng');
-
-// import variables
-$template_id = (isset($_POST['template_id']))?intval($_POST['template_id']):0;
-$sys_groupid = (isset($_POST['client_group_id']))?intval($_POST['client_group_id']):0;
-
-// get the correct server_id
-if($_SESSION['s']['user']['typ'] == 'admin') {
- $server_id = (isset($_POST['server_id']))?intval($_POST['server_id']):1;
-} else {
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT default_dnsserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
- $server_id = $client["default_dnsserver"];
-}
-
-
-// Load the templates
-$records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y'");
-$template_id_option = '';
-$n = 0;
-foreach($records as $rec){
- $checked = ($rec['template_id'] == $template_id)?' SELECTED':'';
- $template_id_option .= ''.$rec['name'].' ';
- if($n == 0 && $template_id == 0) $template_id = $rec['template_id'];
- $n++;
-}
-unset($n);
-$app->tpl->setVar("template_id_option",$template_id_option);
-
-// If the user is administrator
-if($_SESSION['s']['user']['typ'] == 'admin') {
-
- // Load the list of servers
- $records = $app->db->queryAllRecords("SELECT server_id, server_name FROM server WHERE dns_server = 1 ORDER BY server_name");
- $server_id_option = '';
- foreach($records as $rec){
- $checked = ($rec['server_id'] == $server_id)?' SELECTED':'';
- $server_id_option .= ''.$rec['server_name'].' ';
- }
- $app->tpl->setVar("server_id",$server_id_option);
-
- // load the list of clients
- $sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name";
- $clients = $app->db->queryAllRecords($sql);
- $client_select = '';
- if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= " ";
- if(is_array($clients)) {
- foreach( $clients as $client) {
- $selected = ($client["groupid"] == $sys_groupid)?'SELECTED':'';
- $client_select .= "$client[name] \r\n";
- }
- }
-
- $app->tpl->setVar("client_group_id",$client_select);
-}
-
-if ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
-
- // Get the limits of the client
- $client_group_id = $_SESSION["s"]["user"]["default_group"];
- $client = $app->db->queryOneRecord("SELECT client.client_id, contact_name FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
-
-
- // load the list of clients
- $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id'];
- $clients = $app->db->queryAllRecords($sql);
- $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']);
- $client_select = ''.$client['contact_name'].' ';
- if(is_array($clients)) {
- foreach( $clients as $client) {
- $selected = ($client["groupid"] == $sys_groupid)?'SELECTED':'';
- $client_select .= "$client[name] \r\n";
- }
- }
-
- $app->tpl->setVar("client_group_id",$client_select);
-}
-
-
-$template_record = $app->db->queryOneRecord("SELECT * FROM dns_template WHERE template_id = '$template_id'");
-$fields = explode(',',$template_record['fields']);
-if(is_array($fields)) {
- foreach($fields as $field) {
- $app->tpl->setVar($field."_VISIBLE",1);
- $field = strtolower($field);
- $app->tpl->setVar($field,$_POST[$field]);
- }
-}
-
-if($_POST['create'] == 1) {
-
- $error = '';
-
- if(isset($_POST['domain']) && $_POST['domain'] == '') $error .= $app->lng('error_domain_empty').' ';
- if(isset($_POST['ip']) && $_POST['ip'] == '') $error .= $app->lng('error_ip_empty').' ';
- if(isset($_POST['ns1']) && $_POST['ns1'] == '') $error .= $app->lng('error_ns1_empty').' ';
- if(isset($_POST['ns2']) && $_POST['ns2'] == '') $error .= $app->lng('error_ns2_empty').' ';
- if(isset($_POST['email']) && $_POST['email'] == '') $error .= $app->lng('error_email_empty').' ';
-
- if(isset($_POST['domain']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['domain'])) $error .= $app->lng('error_domain_regex').' ';
- if(isset($_POST['ns1']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns1'])) $error .= $app->lng('error_ns1_regex').' ';
- if(isset($_POST['ns2']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns2'])) $error .= $app->lng('error_ns2_regex').' ';
- if(isset($_POST['email']) && !preg_match('/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i',$_POST['email'])) $error .= $app->lng('error_email_regex').' ';
-
- // make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it
- if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($_POST['client_group_id'])) {
- $sys_groupid = intval($_POST['client_group_id']);
- } elseif($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($_POST['client_group_id'])) {
- $sys_groupid = intval($_POST['client_group_id']);
- } else {
- $sys_groupid = $_SESSION["s"]["user"]["default_group"];
- }
-
- $tform_def_file = "form/dns_soa.tform.php";
- $app->uses('tform');
- $app->tform->loadFormDef($tform_def_file);
-
- if($_SESSION['s']['user']['typ'] != 'admin') {
- if(!$app->tform->checkClientLimit('limit_dns_zone')) {
- $error .= $app->tform->wordbook["limit_dns_zone_txt"];
- }
- if(!$app->tform->checkResellerLimit('limit_dns_zone')) {
- $error .= $app->tform->wordbook["limit_dns_zone_txt"];
- }
- }
-
-
- // replace template placeholders
- $tpl_content = $template_record['template'];
- if($_POST['domain'] != '') $tpl_content = str_replace('{DOMAIN}',$_POST['domain'],$tpl_content);
- if($_POST['ip'] != '') $tpl_content = str_replace('{IP}',$_POST['ip'],$tpl_content);
- if($_POST['ns1'] != '') $tpl_content = str_replace('{NS1}',$_POST['ns1'],$tpl_content);
- if($_POST['ns2'] != '') $tpl_content = str_replace('{NS2}',$_POST['ns2'],$tpl_content);
- if($_POST['email'] != '') $tpl_content = str_replace('{EMAIL}',$_POST['email'],$tpl_content);
-
- // Parse the template
- $tpl_rows = explode("\n",$tpl_content);
- $section = '';
- $vars = array();
- $dns_rr = array();
- foreach($tpl_rows as $row) {
- $row = trim($row);
- if(substr($row,0,1) == '[') {
- if($row == '[ZONE]') {
- $section = 'zone';
- } elseif($row == '[DNS_RECORDS]') {
- $section = 'dns_records';
- } else {
- die('Unknown section type');
- }
- } else {
- if($row != '') {
- // Handle zone section
- if($section == 'zone') {
- $parts = explode('=',$row);
- $key = trim($parts[0]);
- $val = trim($parts[1]);
- if($key != '') $vars[$key] = $val;
- }
- // Handle DNS Record rows
- if($section == 'dns_records') {
- $parts = explode('|',$row);
- $dns_rr[] = array(
- 'name' => $app->db->quote($parts[1]),
- 'type' => $app->db->quote($parts[0]),
- 'data' => $app->db->quote($parts[2]),
- 'aux' => $app->db->quote($parts[3]),
- 'ttl' => $app->db->quote($parts[4])
- );
- }
- }
- }
-
- } // end foreach
-
- if($vars['origin'] == '') $error .= $app->lng('error_origin_empty').' ';
- if($vars['ns'] == '') $error .= $app->lng('error_ns_empty').' ';
- if($vars['mbox'] == '') $error .= $app->lng('error_mbox_empty').' ';
- if($vars['refresh'] == '') $error .= $app->lng('error_refresh_empty').' ';
- if($vars['retry'] == '') $error .= $app->lng('error_retry_empty').' ';
- if($vars['expire'] == '') $error .= $app->lng('error_expire_empty').' ';
- if($vars['minimum'] == '') $error .= $app->lng('error_minimum_empty').' ';
- if($vars['ttl'] == '') $error .= $app->lng('error_ttl_empty').' ';
-
- if($error == '') {
- // Insert the soa record
- $sys_userid = $_SESSION['s']['user']['userid'];
- $origin = $app->db->quote($vars['origin']);
- $ns = $app->db->quote($vars['ns']);
- $mbox = $app->db->quote(str_replace('@','.',$vars['mbox']));
- $refresh = $app->db->quote($vars['refresh']);
- $retry = $app->db->quote($vars['retry']);
- $expire = $app->db->quote($vars['expire']);
- $minimum = $app->db->quote($vars['minimum']);
- $ttl = $app->db->quote($vars['ttl']);
- $xfer = $app->db->quote($vars['xfer']);
- $serial = $app->validate_dns->increase_serial(0);
-
- $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`) VALUES
- ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '$serial', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer')";
- $dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id');
-
- // Insert the dns_rr records
- if(is_array($dns_rr) && $dns_soa_id > 0) {
- foreach($dns_rr as $rr) {
- $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `zone`, `name`, `type`, `data`, `aux`, `ttl`, `active`) VALUES
- ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$dns_soa_id', '$rr[name]', '$rr[type]', '$rr[data]', '$rr[aux]', '$rr[ttl]', 'Y')";
- $dns_rr_id = $app->db->datalogInsert('dns_rr', $insert_data, 'id');
- }
- }
-
- header("Location: dns_soa_list.php");
- exit;
-
- } else {
- $app->tpl->setVar("error",$error);
- }
-
-}
-
-
-
-$app->tpl->setVar("title",'DNS Wizard');
-
-$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng';
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_a.tform.php b/interface/ispconfig/interface/dns/form/dns_a.tform.php
deleted file mode 100644
index 5cb7475709e94177588d0cad5afcd58f2bfdd0fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_a.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS A",
- 'width' => 100,
- 'template' => "templates/dns_a_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\*]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'A',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^([1-9]{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php b/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php
deleted file mode 100644
index 0a9e02123a73612d14d867a011ed1a5c49994a13..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_aaaa.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS AAAA",
- 'width' => 100,
- 'template' => "templates/dns_aaaa_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\*]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'AAAA',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^\s*((([0-9A-Fa-f]{1,4}:){7}(([0-9A-Fa-f]{1,4})|:))|(([0-9A-Fa-f]{1,4}:){6}(:|((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})|(:[0-9A-Fa-f]{1,4})))|(([0-9A-Fa-f]{1,4}:){5}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){4}(:[0-9A-Fa-f]{1,4}){0,1}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){3}(:[0-9A-Fa-f]{1,4}){0,2}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:){2}(:[0-9A-Fa-f]{1,4}){0,3}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}:)(:[0-9A-Fa-f]{1,4}){0,4}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(:(:[0-9A-Fa-f]{1,4}){0,5}((:((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})?)|((:[0-9A-Fa-f]{1,4}){1,2})))|(((25[0-5]|2[0-4]\d|[01]?\d{1,2})(\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})){3})))(%.+)?\s*$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_alias.tform.php b/interface/ispconfig/interface/dns/form/dns_alias.tform.php
deleted file mode 100644
index 37ebc7793c52bd1ed5b2c8d944fafa89ee57e6cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_alias.tform.php
+++ /dev/null
@@ -1,161 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS ALIAS",
- 'width' => 100,
- 'template' => "templates/dns_alias_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'name_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'ALIAS',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_cname.tform.php b/interface/ispconfig/interface/dns/form/dns_cname.tform.php
deleted file mode 100644
index 6409b975070006a29c9a9f4b37eac3b77b7724aa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_cname.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS CNAME",
- 'width' => 100,
- 'template' => "templates/dns_cname_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\*]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'CNAME',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php b/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php
deleted file mode 100644
index fd8facf2c8ec2323c24d197f3c58d037bd3c3ebe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_hinfo.tform.php
+++ /dev/null
@@ -1,158 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS HINFO",
- 'width' => 100,
- 'template' => "templates/dns_hinfo_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'name_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'HINFO',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_mx.tform.php b/interface/ispconfig/interface/dns/form/dns_mx.tform.php
deleted file mode 100644
index 7a30d4e418543559c9b14af96f99fd96093a99fd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_mx.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS mx",
- 'width' => 100,
- 'template' => "templates/dns_mx_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,255}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'MX',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,255}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
-
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '10',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
-
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_ns.tform.php b/interface/ispconfig/interface/dns/form/dns_ns.tform.php
deleted file mode 100644
index 2229bac377a49a1b698dfad986fb4e1a1c2d7fc7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_ns.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS ns",
- 'width' => 100,
- 'template' => "templates/dns_ns_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'NS',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_ptr.tform.php b/interface/ispconfig/interface/dns/form/dns_ptr.tform.php
deleted file mode 100644
index c7521e7f841aaffb0d24f37f4c918594ac959d83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_ptr.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS ptr",
- 'width' => 100,
- 'template' => "templates/dns_ptr_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'PTR',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_rp.tform.php b/interface/ispconfig/interface/dns/form/dns_rp.tform.php
deleted file mode 100644
index 02a43196f8fd015a89099959a864a3d6c76dacf5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_rp.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS RP",
- 'width' => 100,
- 'template' => "templates/dns_rp_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'RP',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\s]{1,128}$/',
- 'errmsg'=> 'data_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_soa.tform.php b/interface/ispconfig/interface/dns/form/dns_soa.tform.php
deleted file mode 100644
index 605679f16054dcbafe700287062686759b305dc7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_soa.tform.php
+++ /dev/null
@@ -1,230 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns_soa'] = array (
- 'title' => "DNS Zone",
- 'width' => 100,
- 'template' => "templates/dns_soa_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE mirror_server_id = 0 AND dns_server = 1 AND {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'server_id_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'origin' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'origin_error_empty'),
- 1 => array ( 'type' => 'UNIQUE',
- 'errmsg'=> 'origin_error_unique'),
- 2 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-\/]{2,255}\.[a-zA-Z]{2,10}[\.]{0,1}$/',
- 'errmsg'=> 'origin_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'ns' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{1,64}$/',
- 'errmsg'=> 'ns_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'mbox' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'mbox_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[[a-zA-Z0-9\.\-]{0,64}\.$/',
- 'errmsg'=> 'mbox_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'refresh' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '28800',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'retry' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '7200',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'expire' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '604800',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'minimum' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'xfer' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'also_notify' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'update_acl' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-$form["tabs"]['dns_records'] = array (
- 'title' => "Records",
- 'width' => 100,
- 'template' => "templates/dns_records_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
-
- ##################################
- # ENDE Datatable fields
- ##################################
- ),
- 'plugins' => array (
- 'dns_records' => array (
- 'class' => 'plugin_listview',
- 'options' => array(
- 'listdef' => 'list/dns_a.list.php',
- 'sqlextwhere' => "zone = ".@intval(@$_REQUEST['id']),
- 'sql_order_by' => "ORDER BY type, name"
- )
- )
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_srv.tform.php b/interface/ispconfig/interface/dns/form/dns_srv.tform.php
deleted file mode 100644
index 4cc2f55c2a01559f53c3f18787a67c0ec8e3a9ab..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_srv.tform.php
+++ /dev/null
@@ -1,159 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS SRV",
- 'width' => 100,
- 'template' => "templates/dns_srv_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'SRV',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- 1 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}\s[\w\.\-]{0,64}\s[\w\.\-]{0,64}$/',
- 'errmsg'=> 'srv_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_template.tform.php b/interface/ispconfig/interface/dns/form/dns_template.tform.php
deleted file mode 100644
index a648fd43c705b5699f046d6baae1537abdb4ce77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_template.tform.php
+++ /dev/null
@@ -1,101 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['template'] = array (
- 'title' => "DNS Template",
- 'width' => 100,
- 'template' => "templates/dns_template_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'name_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '40',
- 'maxlength' => '255'
- ),
- 'fields' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOXARRAY',
- 'default' => '',
- 'separator' => ',',
- 'value' => array('DOMAIN' => 'Domain','IP' => 'IP Address','NS1' => 'NS 1','NS2' => 'NS 2','EMAIL' => 'Email')
- ),
- 'template' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'default' => '',
- 'value' => '',
- 'cols' => '40',
- 'rows' => '15'
- ),
- 'visible' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/form/dns_txt.tform.php b/interface/ispconfig/interface/dns/form/dns_txt.tform.php
deleted file mode 100644
index 153bcc8eaabc0a0e149ea3ea4a13482ff52ee19b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/form/dns_txt.tform.php
+++ /dev/null
@@ -1,156 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-$form["tabs"]['dns'] = array (
- 'title' => "DNS TXT",
- 'width' => 100,
- 'template' => "templates/dns_txt_edit.htm",
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'server_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'zone' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => @intval($_REQUEST["zone"]),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
- 'regex' => '/^[\w\.\-]{0,64}$/',
- 'errmsg'=> 'name_error_regex'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => 'TXT',
- 'value' => '',
- 'width' => '5',
- 'maxlength' => '5'
- ),
- 'data' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'data_error_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- /*
- 'aux' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '0',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- */
- 'ttl' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '86400',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- 'active' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'CHECKBOX',
- 'default' => 'Y',
- 'value' => array(0 => 'N',1 => 'Y')
- ),
- 'stamp' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'serial' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => '',
- 'value' => '',
- 'width' => '10',
- 'maxlength' => '10'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/admin.conf.php b/interface/ispconfig/interface/dns/lib/admin.conf.php
deleted file mode 100644
index a45d4403455c5c46f438046f088398e241cbc3d9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/admin.conf.php
+++ /dev/null
@@ -1,2 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg.lng b/interface/ispconfig/interface/dns/lib/lang/bg.lng
deleted file mode 100644
index 36def8e93d3ba7fdd8be805098f12a23eda90593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng
deleted file mode 100644
index 88021395116d1d0cf878a58514d3314492c9b9a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng
deleted file mode 100644
index 87c9cd8185000323da69e78800acdb0f8ac85413..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng
deleted file mode 100644
index 31ef0da1509439e879fecc0fb721370eab8e0d12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng
deleted file mode 100644
index 0d90bcf40b582b1a534b157d4108f9dfad48da8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng
deleted file mode 100644
index 648827f04e34cb5e980ef95e06fbc29c9c39593e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng
deleted file mode 100644
index 713ec28581af3acffceb7942d73834512d4e0d98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng
deleted file mode 100644
index c02638406828e181872e78791dba25ff7bed4dad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng
deleted file mode 100644
index d38efd1633fda6ca92aeb34765f765dba1e3f1fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng
deleted file mode 100644
index e63ffb70f668497a316be0e77dd408874502ca93..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb['active_txt'] = 'Active';
-$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.';
-$wb['server_id_error_empty'] = 'No server selected';
-$wb['origin_error_empty'] = 'Zone empty.';
-$wb['origin_error_unique'] = 'There is already a record for this zone.';
-$wb['origin_error_regex'] = 'Zone has a invalid format.';
-$wb['ns_error_regex'] = 'NS has a invalid format.';
-$wb['mbox_error_empty'] = 'Email is empty.';
-$wb['mbox_error_regex'] = 'Email format invalid.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng
deleted file mode 100644
index 42bb32920ccbd370c1ffb932dbd0178b84637d73..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng
deleted file mode 100644
index d4ea60be9760c7a5764ac69fef6cb9b51ff5d339..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng
deleted file mode 100644
index 3a09e3bb71b6fc2ba62aa40fce668fc2dd86ffe8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng
deleted file mode 100644
index 8d9d730e5031ef939eff8da85b9f426b82d13b88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng
deleted file mode 100644
index 8e6c417d0d8474bc698d2a0e920334732e979d0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng
deleted file mode 100644
index ffceabb53acd2e84b2339c325707ce5dbbd2022d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/bg_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br.lng b/interface/ispconfig/interface/dns/lib/lang/br.lng
deleted file mode 100644
index de70fdb275219ee4a5607617e23e45805b7cd22c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng
deleted file mode 100644
index 137af7c18757624a9cb18b379f753dd116e8688e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng
deleted file mode 100644
index b231c8342df6f00104dadaec3146cecef35f92fe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng
deleted file mode 100644
index 17e77b215a3e6d814c4ee934cd4a0b82aea11ace..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng
deleted file mode 100644
index d026ddfaa5e261ebb109cd0de9b46b91a5f675cc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng
deleted file mode 100644
index 881cb637614470cf087978914938fcbd2e17b35d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng
deleted file mode 100644
index ac6e13b0650499ca7762b5feb40303b99ea0bd11..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng
deleted file mode 100644
index 0dfd536a2781e485bc32d1e2e24f8bc6901d72bb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng
deleted file mode 100644
index ef9966fca174c1dfeef3477bfe43512ae48c78bd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng
deleted file mode 100644
index 728ea0731a63dfd6789806b184846c66c5352057..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng
deleted file mode 100644
index d1854700f5c522ac0c3b14f2120f848f1cb67679..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng
deleted file mode 100644
index 486d05afb32edc5bd50740952999799b53e84a79..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-estes IPs (lista separada por ponto e vírgula)';
-$wb['active_txt'] = 'Ativo';
-$wb['limit_dns_zone_txt'] = 'O número máximo de zonas DNS para sua conta foi atingido.';
-$wb['client_txt'] = 'Cliente';
-$wb['no_zone_perm'] = 'Você não tem permição para adcionar registros a está zona DNS.';
-$wb['server_id_error_empty'] = 'Servidor não selecionado';
-$wb['origin_error_empty'] = 'Zona vazia.';
-$wb['origin_error_unique'] = 'Este registro já existe nesta zona.';
-$wb['origin_error_regex'] = 'Formato de zona inválido.';
-$wb['ns_error_regex'] = 'NS tem um formato inválido.';
-$wb['mbox_error_empty'] = 'Correio está em branco.';
-$wb['mbox_error_regex'] = 'Correio com formato inválido.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Atualizar ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng
deleted file mode 100644
index ef0c93fa2f42652c625ff2243b0948613e728ad1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng
deleted file mode 100644
index 8a389f58d95e7430f857e1ffbb97196f8dbb203f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng
deleted file mode 100644
index 9d7331b79551cb30afbda2c99e1ae9bc49dec0b7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng
deleted file mode 100644
index a4602aec97ad3ed69a3731e5ae6e9650433bb4a2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng
deleted file mode 100644
index f73ada31df537a20663441a841661e76b3095012..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng
deleted file mode 100644
index 6a94ec29dbb194bac049071ec292478b63cca5cc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/br_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de.lng b/interface/ispconfig/interface/dns/lib/lang/de.lng
deleted file mode 100644
index 319b221fba94cb03abdb71153ef3e2bfb2e4f06b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng
deleted file mode 100644
index ea6d021781d13c1fa2a27606b0f2c2732451fa15..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng
deleted file mode 100644
index 0481c2b67a73d0c63d315ac96d502bb7a454ce52..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng
deleted file mode 100644
index 768e67056890533fbcfcdff59ee103a9eb7f2715..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng
deleted file mode 100644
index 9475644b21a5b18958b40ff1265e6b31277405f9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng
deleted file mode 100644
index 4c3d5a0a5c190b98b9894eac61bd827ec11ad27b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng
deleted file mode 100644
index 245480f3b7c2447868c3ff70169be0a1a180a08a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng
deleted file mode 100644
index ab21cc49874a707f46afc4b9d1ae1a98babe1112..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng
deleted file mode 100644
index 845da9dc1eb8747f55cd15b92cd7337b0b56b5cd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng
deleted file mode 100644
index aee4155968595be066ce9d726e3c6504e36d1e98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng
deleted file mode 100644
index 86f3fc02bf4ad796f21a66b94b5d5ee70479c90b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng
deleted file mode 100644
index d619a3ccedfa97969b2e71f0de9658027af6d1bb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng
deleted file mode 100644
index 92f098c844f1be78e9341e0ee81300edcd2bc34f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng
deleted file mode 100644
index 352e9598c48a12c723135348de8c421ef6d9e390..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng
deleted file mode 100644
index 33d1090cbaa7f556a9caf3f8e8225c9c6807a80c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng
deleted file mode 100644
index 45f0c5c5af3656864fb82c40de07cf1f682f19f4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng
deleted file mode 100644
index 182e9945ab0856cba07138558fd4b8e79d21a98c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng
deleted file mode 100644
index 6f1bfbe3a615a077fcf3fd5f189b5bc1ccac8336..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/de_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/en.lng b/interface/ispconfig/interface/dns/lib/lang/en.lng
deleted file mode 100644
index c4a5beaada1950d996766bda0196ed0e55f89bea..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en.lng
+++ /dev/null
@@ -1,22 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng
deleted file mode 100644
index 599de5cf9361157efaf7fec8e2b5268514e37bce..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng
deleted file mode 100644
index 88a2366a53d8b9f7e8f241d3c7d0d7b5d32a055c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng
deleted file mode 100644
index c56d55863bee2496b2fefa05a229e4893d732b39..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng
deleted file mode 100644
index 46f73a38784509f309184d8392ffc255b99468a1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng
deleted file mode 100644
index 46f73a38784509f309184d8392ffc255b99468a1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng
deleted file mode 100644
index 0fb7f4597ce132a1b20e6b759b06759171a15481..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng
deleted file mode 100644
index d0bee5eba35ea8ad8d90153ee0552d647ebeee43..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng
deleted file mode 100644
index 9e0e1e149efe6c2012d3dceb8709eda045dd5ac8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng
deleted file mode 100644
index 1219a96e1f57be52bff5cb5c6442e73cca6e2583..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng
deleted file mode 100644
index e705d9fff07b4f9ef5748d3cc324febba48cf4ba..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng
deleted file mode 100644
index 3c9a5b0a525441d5de91bc8820eecd0106ddd303..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb["active_txt"] = 'Active';
-$wb["limit_dns_zone_txt"] = 'The max. number of DNS zones for your account is reached.';
-$wb["client_txt"] = 'Client';
-$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.';
-$wb["server_id_error_empty"] = 'No server selected';
-$wb["origin_error_empty"] = 'Zone empty.';
-$wb["origin_error_unique"] = 'There is already a record for this zone.';
-$wb["origin_error_regex"] = 'Zone has a invalid format.';
-$wb["ns_error_regex"] = 'NS has a invalid format.';
-$wb["mbox_error_empty"] = 'Email is empty.';
-$wb["mbox_error_regex"] = 'Email format invalid.';
-$wb["also_notify_txt"] = 'Also Notify';
-$wb["update_acl_txt"] = 'Update ACL';
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng
deleted file mode 100644
index 6213bdb1dc5b7c77750682be0664245c216c0db0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng
deleted file mode 100644
index d0dcd1eb2636b365110f855be3c28ebaab2c2f2b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng
deleted file mode 100644
index 37643e11926ee198f77d9ab54f79468dcb72ec83..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng
deleted file mode 100644
index 33460a20ac5f93c02d6fc4baeb677f5c9c708809..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng
deleted file mode 100644
index af43605901f4851ea84455037cedcca175a3794b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng
deleted file mode 100644
index 2f9f91421f1ff171ad0050f41f9427e5305ec305..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/en_dns_wizard.lng
+++ /dev/null
@@ -1,30 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/es.lng b/interface/ispconfig/interface/dns/lib/lang/es.lng
deleted file mode 100644
index 4fd59f49dde8a5d4b4548b583385fc6181187b7f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng
deleted file mode 100644
index 36f318c8682b086535fc195e1a30bbb6eb206b9c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng
deleted file mode 100644
index 1cbe6d305a225d084f32bcd6d757dbc6d89eaa88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng
deleted file mode 100644
index 15ee1d2f352841c6cac74574ed4b06d993041488..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng
deleted file mode 100644
index 705b5cf0d90b2074a51de922b62fb44cea26d73b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng
deleted file mode 100644
index 7c3f7b7f12c12b555408f593f908395035897061..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng
deleted file mode 100644
index d5412cac47ecb1fdf9c46d2c6e52f6890fcd77c8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng
deleted file mode 100644
index e7c377d66591ab9d7cc4261f79a99dfcc8719a90..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng
deleted file mode 100644
index 568700987301aebe51c353e88a72d5d9a838b377..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng
deleted file mode 100644
index f8ef426e4a81b2772a005e3d67c260e526d0d561..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng
deleted file mode 100644
index fece32a2bad9d34c945d9747c5df4b120bbabc81..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng
deleted file mode 100644
index c4143bc6331148752b7e5998f7cd0a1284b20dcd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-estas IPs (lista separada por comas)';
-$wb['active_txt'] = 'Activar';
-$wb['limit_dns_zone_txt'] = 'Se ha alcanzado el número máximo de zonas DNS para esta cuenta.';
-$wb['client_txt'] = 'Cliente';
-$wb['no_zone_perm'] = 'No tiene permisos para añadir registros a esta zona DNS.';
-$wb['server_id_error_empty'] = 'No se ha seleccionado el servidor.';
-$wb['origin_error_empty'] = 'Zona vacía.';
-$wb['origin_error_unique'] = 'Ya hay un registro para esta zona.';
-$wb['origin_error_regex'] = 'Formato de zona no válido.';
-$wb['ns_error_regex'] = 'Formato de NS no válido.';
-$wb['mbox_error_empty'] = 'Correo vacío.';
-$wb['mbox_error_regex'] = 'Formato de correo no válido.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng
deleted file mode 100644
index ab942dd50fe1c9c6f1cdd75356bf4d1a8f6e2c70..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng
deleted file mode 100644
index 8e524ee4d689aa34a2d09a05c2587c097483a2c0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng
deleted file mode 100644
index 79ac234a0fa7a029ce6512be305ebfeef5f2e858..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng
deleted file mode 100644
index 388a4c156b8b839af2a17d07457e8a64c2730b5f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng
deleted file mode 100644
index 55bde142d09b2c2cfaec7204078819ca5f69cafb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng
deleted file mode 100644
index 0713bcc0a8c64f1fefe48c923a36917a708a913c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/es_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi.lng b/interface/ispconfig/interface/dns/lib/lang/fi.lng
deleted file mode 100644
index bdca8cd965ca51cf3c7cb2f25c9d7b5a3fc40494..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng
deleted file mode 100644
index 3a4af610e5c96fd09455aa8f1fcee2e919327848..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng
deleted file mode 100644
index 0cc82874bab543ed5fab1a4ad671561aad3d0874..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng
deleted file mode 100644
index b87d7ac296ec5fc9c5c5070115bae730f7df16db..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng
deleted file mode 100644
index 20da599c72e46cc81013cab4fa9f24611c7542b4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng
deleted file mode 100644
index a58f0d2f2cf1ef58839ec6dc57b83007f194f9c8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng
deleted file mode 100644
index ea2fb93a39c6aad638f6af52d593d32220d71f4e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng
deleted file mode 100644
index e4b4a60d56741f7b40c09f324705df47944cb1e8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng
deleted file mode 100644
index 8f97c53cb27dfcd9306e6b4b776b09dd57d82520..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng
deleted file mode 100644
index 9885c2be9d8619af40ed6c4bcd2844448f7f5f4e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng
deleted file mode 100644
index d47cdcfbdd063ea29c11a0ddd0fa76cf34f01c74..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng
deleted file mode 100644
index 7e70915d723d88aabcab0676f7535036971b9a94..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng
deleted file mode 100644
index 95d104443ad6411eef09abe2340ad9a1adf56d12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng
deleted file mode 100644
index 68f4c859eb84aee0f9d31f29970ad2ded2c72edf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng
deleted file mode 100644
index b34a92d6a9e45fc952fadedf5defae9602e60b1f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng
deleted file mode 100644
index 47c8924237e420d826acb1600abc66f2a68921c8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng
deleted file mode 100644
index d1235ba07a181fdc1617572b1616fdde9154a7a9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng
deleted file mode 100644
index dba630674f9e6184bf7e28a0b432662d1d6b8abc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fi_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr.lng b/interface/ispconfig/interface/dns/lib/lang/fr.lng
deleted file mode 100644
index fe6ece558f5387fe054cddbb2ec294be92c2264e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng
deleted file mode 100644
index 731c3e4fa8bfcef8b1ba977924d76f25011dac9b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng
deleted file mode 100644
index 0817826152d3fe599ee0002dbfc93f401d26bb01..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng
deleted file mode 100644
index 503795f0e414be4e09b700e1a0c65ea0c6b3fd18..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng
deleted file mode 100644
index 1ae97aecdf48494a5e01b4aab71ea11ab07aae3e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng
deleted file mode 100644
index 87fc49ea0e6f7fadba52233cf0f3c1c97f5c324b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng
deleted file mode 100644
index f26ed7dd5bda9db2a90ac3e07fb46c698cff16bb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng
deleted file mode 100644
index e3904207a9254ea2db6312f3d0a5b78ba6b60fdf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng
deleted file mode 100644
index a6edc6eaa56342357d7f727ead19130d2e42da76..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng
deleted file mode 100644
index 4318e000ebf4268f16ad2102aa232bbf52b64836..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng
deleted file mode 100644
index fe37f3e79db3cff21432bac4c303a8d2df4fea22..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng
deleted file mode 100644
index 28c81c41c8d4c565c5cb4e3a6f6c9eecb9545920..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-ces IP (liste séparée par des virgules)';
-$wb['active_txt'] = 'Actif';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'Vous navez pas la permissions dajouter un enregistrement dans cette zone DNS.';
-$wb['server_id_error_empty'] = 'Pas de serveur sélectionné';
-$wb['origin_error_empty'] = 'Zone vide.';
-$wb['origin_error_unique'] = 'Il y a déja un enregistrement pour cette zone.';
-$wb['origin_error_regex'] = 'La zone est dun format invalide.';
-$wb['ns_error_regex'] = 'Le serveur de nom est dun format invalide.';
-$wb['mbox_error_empty'] = 'Ladresse e-mail est vide.';
-$wb['mbox_error_regex'] = 'Ladresse e-mail est dun format invalide.';
-$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng
deleted file mode 100644
index a828044a045725068cdc164588c53c87763347f7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng
deleted file mode 100644
index de8776354d5e1647023e6d22a29e9ef5ba87e628..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng
deleted file mode 100644
index 1202cfd76840adc991a7ebd7148c396b30395c3a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng
deleted file mode 100644
index 52455b2ca428f449fdb9131dd724d376f1d89a34..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng
deleted file mode 100644
index 2126a3f247078899d01dab3138ca3a0de4f22e7e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng
deleted file mode 100644
index b828acd2cc6bae20fc653aedc06fcf75568eef32..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/fr_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu.lng b/interface/ispconfig/interface/dns/lib/lang/hu.lng
deleted file mode 100644
index 36def8e93d3ba7fdd8be805098f12a23eda90593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng
deleted file mode 100644
index 88021395116d1d0cf878a58514d3314492c9b9a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng
deleted file mode 100644
index acab15029778695ffc34a07e2a290080a0cb77cb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng
deleted file mode 100644
index 31ef0da1509439e879fecc0fb721370eab8e0d12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng
deleted file mode 100644
index 0d90bcf40b582b1a534b157d4108f9dfad48da8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng
deleted file mode 100644
index 648827f04e34cb5e980ef95e06fbc29c9c39593e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng
deleted file mode 100644
index 713ec28581af3acffceb7942d73834512d4e0d98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng
deleted file mode 100644
index c02638406828e181872e78791dba25ff7bed4dad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng
deleted file mode 100644
index d38efd1633fda6ca92aeb34765f765dba1e3f1fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng
deleted file mode 100644
index e63ffb70f668497a316be0e77dd408874502ca93..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb['active_txt'] = 'Active';
-$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.';
-$wb['server_id_error_empty'] = 'No server selected';
-$wb['origin_error_empty'] = 'Zone empty.';
-$wb['origin_error_unique'] = 'There is already a record for this zone.';
-$wb['origin_error_regex'] = 'Zone has a invalid format.';
-$wb['ns_error_regex'] = 'NS has a invalid format.';
-$wb['mbox_error_empty'] = 'Email is empty.';
-$wb['mbox_error_regex'] = 'Email format invalid.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng
deleted file mode 100644
index 42bb32920ccbd370c1ffb932dbd0178b84637d73..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng
deleted file mode 100644
index d4ea60be9760c7a5764ac69fef6cb9b51ff5d339..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng
deleted file mode 100644
index 3a09e3bb71b6fc2ba62aa40fce668fc2dd86ffe8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng
deleted file mode 100644
index 8d9d730e5031ef939eff8da85b9f426b82d13b88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng
deleted file mode 100644
index 8e6c417d0d8474bc698d2a0e920334732e979d0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng
deleted file mode 100644
index ffceabb53acd2e84b2339c325707ce5dbbd2022d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/hu_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it.lng b/interface/ispconfig/interface/dns/lib/lang/it.lng
deleted file mode 100644
index 36def8e93d3ba7fdd8be805098f12a23eda90593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng
deleted file mode 100644
index 88021395116d1d0cf878a58514d3314492c9b9a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng
deleted file mode 100644
index 87c9cd8185000323da69e78800acdb0f8ac85413..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng
deleted file mode 100644
index 31ef0da1509439e879fecc0fb721370eab8e0d12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng
deleted file mode 100644
index 0d90bcf40b582b1a534b157d4108f9dfad48da8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng
deleted file mode 100644
index 648827f04e34cb5e980ef95e06fbc29c9c39593e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng
deleted file mode 100644
index 713ec28581af3acffceb7942d73834512d4e0d98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng
deleted file mode 100644
index c02638406828e181872e78791dba25ff7bed4dad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng
deleted file mode 100644
index d38efd1633fda6ca92aeb34765f765dba1e3f1fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng
deleted file mode 100644
index e63ffb70f668497a316be0e77dd408874502ca93..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb['active_txt'] = 'Active';
-$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.';
-$wb['server_id_error_empty'] = 'No server selected';
-$wb['origin_error_empty'] = 'Zone empty.';
-$wb['origin_error_unique'] = 'There is already a record for this zone.';
-$wb['origin_error_regex'] = 'Zone has a invalid format.';
-$wb['ns_error_regex'] = 'NS has a invalid format.';
-$wb['mbox_error_empty'] = 'Email is empty.';
-$wb['mbox_error_regex'] = 'Email format invalid.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng
deleted file mode 100644
index 42bb32920ccbd370c1ffb932dbd0178b84637d73..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng
deleted file mode 100644
index d4ea60be9760c7a5764ac69fef6cb9b51ff5d339..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng
deleted file mode 100644
index 3a09e3bb71b6fc2ba62aa40fce668fc2dd86ffe8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng
deleted file mode 100644
index 8d9d730e5031ef939eff8da85b9f426b82d13b88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng
deleted file mode 100644
index 8e6c417d0d8474bc698d2a0e920334732e979d0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng
deleted file mode 100644
index ffceabb53acd2e84b2339c325707ce5dbbd2022d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/it_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja.lng b/interface/ispconfig/interface/dns/lib/lang/ja.lng
deleted file mode 100644
index f96696bc841a285acc3ef5aff56984c212418b52..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng
deleted file mode 100644
index 50f551627c7a0b15bb906d9c197e2e513de41633..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng
deleted file mode 100644
index e2297bbbb0eb61a44bc9c82369092102e849e52f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng
deleted file mode 100644
index 2ca0650fe5c0de84bce1154dcd324df7bca888b9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng
deleted file mode 100644
index 4e469a104fad52c53745dda25d38c9ffaf65270d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng
deleted file mode 100644
index 4e469a104fad52c53745dda25d38c9ffaf65270d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng
deleted file mode 100644
index a0df197ca301bfd4be00b059daafbfb99b261b46..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng
deleted file mode 100644
index 648827f04e34cb5e980ef95e06fbc29c9c39593e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng
deleted file mode 100644
index b9070d8318fe251ce288666632548f1d94e53c8d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng
deleted file mode 100644
index 8f5f3da20677d75e552da0308380a2888951bf62..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng
deleted file mode 100644
index c43a721e6062137bd2a2610bc2c25c05cf8a9bcd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng
deleted file mode 100644
index d00e8afb65129b07d7da35c29679c696b579abf7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-(, で区切ってください)';
-$wb['active_txt'] = '有効';
-$wb['limit_dns_zone_txt'] = 'DNSゾーンが最大数に達しました。';
-$wb['client_txt'] = 'クライアント';
-$wb['no_zone_perm'] = 'このDNSゾーンにレコードを追加する権限がありません。';
-$wb['server_id_error_empty'] = 'サーバーを選択してください。';
-$wb['origin_error_empty'] = 'Zone を指定してください。';
-$wb['origin_error_unique'] = '同名の Zone が既に存在します。';
-$wb['origin_error_regex'] = 'Zone名が不正な文字を含んでいます。';
-$wb['ns_error_regex'] = 'NS が不正な文字を含んでいます。';
-$wb['mbox_error_empty'] = 'メールアドレスを指定してください';
-$wb['mbox_error_regex'] = 'メールアドレスの形式が不正です。';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng
deleted file mode 100644
index d6660d9e00d6d1ff3e2cdc98774c31f5474144c7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng
deleted file mode 100644
index 94a7f37865ef223ae03237d220c84944182d0f1b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng
deleted file mode 100644
index 7c05ae1cc4fc62dac1fb6d48124a9690212854fb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng
deleted file mode 100644
index 2ed5746fa455600e6fb401aa14cf9a4bbb93e693..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng
deleted file mode 100644
index 3af17ab2553fd34f5db626f239dc1cfa60434ebc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng
deleted file mode 100644
index 508911da644035ad6f87d254c96fd4e6090524ea..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ja_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl.lng b/interface/ispconfig/interface/dns/lib/lang/nl.lng
deleted file mode 100644
index 56e5386c5347d7cb68b087aa59624513fb2be46d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng
deleted file mode 100644
index 32bab7464b27bd1c04e214eee07bededb7413b2d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng
deleted file mode 100644
index 9ffacd242cc258da36334e0c36e4bef2432d0348..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng
deleted file mode 100644
index c40ae84d93ff60bccdc74e24cf5e4be2d8bc1300..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng
deleted file mode 100644
index 2f9cccf72da697aadf0c4196edd657fc829a2574..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng
deleted file mode 100644
index c5891e427e108eb8dff1157ed70447e120f5c741..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng
deleted file mode 100644
index a7287c4236e0bb512076d2b50f946c80219feadb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng
deleted file mode 100644
index f93195c1b997f4bcc606008df44471675448270d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng
deleted file mode 100644
index 75a91b41d654faf3dc6231c6a185ae5d2323bb54..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng
deleted file mode 100644
index 4bd156388de5c0b04f47213646ee554d6cdcbef5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng
deleted file mode 100644
index 1195406a1e6eb6f38f1703b725e6a79f3204bd7d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng
deleted file mode 100644
index e1d149aec9985385fb3919fb02d789751bcd5813..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng
deleted file mode 100644
index e6474cb1b53caf3073b6201e4ac58c2fc07181ea..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng
deleted file mode 100644
index 202d62d4804dd8000173c33eddb9049457074c77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng
deleted file mode 100644
index a6f8e0e9b15450ff5ce9e789b995d8e52fd3680b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-Voorbeeld (in nieuw venster) ';
-$wb['visible_txt'] = 'Geactiveerd voor DNS wizard?';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng
deleted file mode 100644
index 6ca214c55dcf6a7fe59cd2ab1676de4df12ce735..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng
deleted file mode 100644
index 94dbb3f474a89000daa3ed1db183eede633ca004..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng
deleted file mode 100644
index e7093f01e9a6ae6bf8c2ffea458998cf95c8e41f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/nl_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl.lng b/interface/ispconfig/interface/dns/lib/lang/pl.lng
deleted file mode 100644
index 0a3f1a9fbe22fd7fc42ab2879016ebf2c2598e8f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng
deleted file mode 100644
index 4ad0a7c41a003c124a7db4c2bb7f45acc309a1e1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng
deleted file mode 100644
index 3d0db059b0f9945f7270daad3661ec34f0fce134..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng
deleted file mode 100644
index 983fae1a8c68172cd0126fad52d69ae066b0e1f3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng
deleted file mode 100644
index a950805e3b4378caa7b4d4162242f4580ace4909..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng
deleted file mode 100644
index 92cb4ac97dc20f604080d52cd632c8e7bf00b415..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng
deleted file mode 100644
index 53b6da2265ca00e50f987b646e556435b8de04a5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng
deleted file mode 100644
index 4a3936a1b4a03a728d9d5fa2a37ad49cea18ba80..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng
deleted file mode 100644
index 18d7efd6cd3d6310b129234e6e2152d24b540602..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng
deleted file mode 100644
index eae39817a0b36242ea5805da88414b963054eb7d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng
deleted file mode 100644
index ece9346e32e6d704726fc4c9d528a73cd40bee19..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng
deleted file mode 100644
index 868615e081ee625e332c7e7123ac2a371f0bc42b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-tych adresów IP (adresy rozdzielaj przecinkiem)';
-$wb['active_txt'] = 'Aktywny';
-$wb['limit_dns_zone_txt'] = 'Maksymalna ilość stref DNS dla Twojego konta została przekroczona.';
-$wb['client_txt'] = 'Klient';
-$wb['no_zone_perm'] = 'Nie masz uprawnień, aby dodać nowy wpis dla tej strefy DNS.';
-$wb['server_id_error_empty'] = 'Nie wybrano serwera';
-$wb['origin_error_empty'] = 'Strefa jest pusta.';
-$wb['origin_error_unique'] = 'Istnieje już wpis dla tej strefy.';
-$wb['origin_error_regex'] = 'Strefa ma niepoprawny format.';
-$wb['ns_error_regex'] = 'NS ma niepoprawny format.';
-$wb['mbox_error_empty'] = 'E-mail jest pusty.';
-$wb['mbox_error_regex'] = 'E-mail ma niepoprawny format.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng
deleted file mode 100644
index 126209edaeb45f3a59e8b0ef93af6900a6919ad4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng
deleted file mode 100644
index 633962132a342e27a8a467f614d0553f56735079..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng
deleted file mode 100644
index f3e756357728ab5538d7c01600bc25c23439c1bc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng
deleted file mode 100644
index 7deac3b2fa01cc7f62d7b9865abe0b969912a5d0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng
deleted file mode 100644
index 628d5c047edd2cf74335530a1704eeca49b3936f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng
deleted file mode 100644
index a5d6a90997b9b3b30433bff90dcbfc75e35fc056..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pl_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt.lng b/interface/ispconfig/interface/dns/lib/lang/pt.lng
deleted file mode 100644
index 9f1ccffb47923267eb1b3b9af44ac83bbfeb736f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt.lng
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng
deleted file mode 100644
index 3774b1a74291f2359a166cc26e073596f86ef609..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng
deleted file mode 100644
index d7d55f21a224b89f4b3ed68cc082e0b14e09d896..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_a_list.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng
deleted file mode 100644
index 4b4524b6055a785bc1a16484b63e65f43a860eea..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_aaaa.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng
deleted file mode 100644
index d7e91e6857a869c209f1b4528ebd666aed99cc58..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_alias.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng
deleted file mode 100644
index bb75bcc21d20c31da64add144dbbba7acbb5bf5a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_cname.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng
deleted file mode 100644
index 66829172781bd952145a0edffe2601e00c863451..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_hinfo.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng
deleted file mode 100644
index d8b59a7659cda9718f578e2f4de65af853fac1f0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_mx.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng
deleted file mode 100644
index 2e16d94de9de995bcd0c7e173fbd4c382fd29dec..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ns.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng
deleted file mode 100644
index 298872ad1f20c916ff739dd9b8cc9867ef0d21fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_ptr.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng
deleted file mode 100644
index ba45e858ce74c6a387b9d5527870815fb796822f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_rp.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng
deleted file mode 100644
index 5d10de28d60359a9be993c78830749a84e2f44fe..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa.lng
+++ /dev/null
@@ -1,27 +0,0 @@
-estes IPs (lista separada por ponto e vírgula)';
-$wb['active_txt'] = 'Activo';
-$wb['limit_dns_zone_txt'] = 'O número máximo de zonas DNS para a conta foi atingido.';
-$wb['client_txt'] = 'Cliente';
-$wb['no_zone_perm'] = 'Não tem permissão para adicionar registos a está zona DNS.';
-$wb['server_id_error_empty'] = 'Servidor não seleccionado';
-$wb['origin_error_empty'] = 'Zona vazia.';
-$wb['origin_error_unique'] = 'Este registo já existe nesta zona.';
-$wb['origin_error_regex'] = 'Formato de zona inválido.';
-$wb['ns_error_regex'] = 'NS tem um formato inválido.';
-$wb['mbox_error_empty'] = 'Correio está em branco.';
-$wb['mbox_error_regex'] = 'Correio com formato inválido.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Actualizar ACL';
-?>
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng
deleted file mode 100644
index 1345fafe3c724cdb52b2a2173c0a6934957cc0c4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_soa_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng
deleted file mode 100644
index 853bcf5aabf0a3bc26bdfb15d102b25b9d1b3518..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_srv.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng
deleted file mode 100644
index 9ee4e72228d1fd2572cb1947cb2a87297d8ce831..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng
deleted file mode 100644
index 1c89fd5156b89795c437d85cd76cd31b92cf6ea9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_template_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng
deleted file mode 100644
index 8e731078ac92bce2939eb048a3fb57a652e5a03e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_txt.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng
deleted file mode 100644
index 8e1663c1e2828c1801319c7f08e8d0c9a7f69fba..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/pt_dns_wizard.lng
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro.lng b/interface/ispconfig/interface/dns/lib/lang/ro.lng
deleted file mode 100644
index 908f2aa49873f71728520fc0773ac63d430728b6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng
deleted file mode 100644
index 617c9d6ba49ac511cf74deb9ff0c592be8c59e7f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng
deleted file mode 100644
index a17f698eaea4dccbb0a47f0c6a61d02fe645abe0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng
deleted file mode 100644
index c56d55863bee2496b2fefa05a229e4893d732b39..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng
deleted file mode 100644
index defa63ac0ad356f2cfe93ec34b90b6dae5d85009..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng
deleted file mode 100644
index 199d1f4310bc77eb919778399a538628027f26b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng
deleted file mode 100644
index 598f7ab1a0c7e2c184a13468ffb2d6e5b7b6f72c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng
deleted file mode 100644
index 3c5b54892718fb30487dd43410e1e2e7f10041c3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng
deleted file mode 100644
index 0bf8e7ed3f864c1b8e1920b39f23fef8c2ca049d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng
deleted file mode 100644
index cda046dd9d508c82adb30532e595ceadae39a7b4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng
deleted file mode 100644
index b77bab2e2f4111916b0df8fbbea434d501f0bfc3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng
deleted file mode 100644
index a70d730b32354d0fc13f6135cf608b9082195e00..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-aceste IP-uri (comma separated list)';
-$wb['active_txt'] = 'Active';
-$wb['limit_dns_zone_txt'] = 'numar max DNS zone pentru contul dumnevoastra a fost atins.';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'Nu aveti permisiunea de a adauga aceasta inregistrare in zona DNS .';
-$wb['server_id_error_empty'] = 'Nu a fost ales serverul';
-$wb['origin_error_empty'] = 'Zone goale';
-$wb['origin_error_unique'] = 'Exista deja o inregistrare pentru aceasta zona';
-$wb['origin_error_regex'] = 'Zona are un format invalid';
-$wb['ns_error_regex'] = 'NS are un format invalid';
-$wb['mbox_error_empty'] = 'Email-ul este gol';
-$wb['mbox_error_regex'] = 'Format email invalid.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng
deleted file mode 100644
index e17045622f7dec74a00de9137b58ff77603f5cd3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng
deleted file mode 100644
index a8b501156f3a72a3b30237affa80b4ab2e915932..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng
deleted file mode 100644
index f097bb3a0085359889aa24e5e5c23f996370e1d7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng
deleted file mode 100644
index 0a14156d2eadf800b3578da81baef21a67861101..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng
deleted file mode 100644
index b3f781da0823ad88484d5f90920f226d2047bad4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng
deleted file mode 100644
index 71d3497c6fd1078c0d6f8f69c7e13cb4082f0235..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ro_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru.lng b/interface/ispconfig/interface/dns/lib/lang/ru.lng
deleted file mode 100644
index b47936efb4a9a40845d1aaa1d30a395acc34582d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru.lng
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng
deleted file mode 100644
index 81647b9a1717495867a278410a7e69d173472d9e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng
deleted file mode 100644
index 803d4d685f804ac3352891b2e7934bf6643bdc29..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_a_list.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng
deleted file mode 100644
index 869206924cfb11b29dce6e96fb7518c45b3e13b8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_aaaa.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng
deleted file mode 100644
index 784f99ea3721d4124476c6abf139119f6f48a6b4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_alias.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng
deleted file mode 100644
index 6089373fe750d5d84483c98105200559541c502d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_cname.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng
deleted file mode 100644
index 986891e8097622c5e4e2d931f490aba0faa72a45..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_hinfo.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng
deleted file mode 100644
index d1bcbb2d13bf7a03e647a795a8c1712e10d52783..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_mx.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng
deleted file mode 100644
index 8e9f7d611a1a0beb3a61469b6ddfbf4ab4960270..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ns.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng
deleted file mode 100644
index 2e5e0007c953c13eeb18868cd78cf048fe006ab9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_ptr.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng
deleted file mode 100644
index 22015068f77117962b9863e659b998054535cb19..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_rp.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng
deleted file mode 100644
index 03dfdeb4c4fd5a4837f9af949b5e7ad45cad007b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa.lng
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng
deleted file mode 100644
index 250f49a9931c08aa053c20599327e09e3d2f6d5d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_soa_list.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng
deleted file mode 100644
index dece24af952917e7cfc16e03adf8ea034d27d316..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_srv.lng
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng
deleted file mode 100644
index 9b9b0c177905deb7111d37c2465ef8e41d73099b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng
deleted file mode 100644
index b9c4fc38e49b7b75899868917dfbb43005020362..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_template_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng
deleted file mode 100644
index 98e342f9a5f1d1c0777c0f3a550bfe551e18338d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_txt.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng
deleted file mode 100644
index 62f27590943ce6320da8802272e20b1e82e3f087..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/ru_dns_wizard.lng
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se.lng b/interface/ispconfig/interface/dns/lib/lang/se.lng
deleted file mode 100644
index 36def8e93d3ba7fdd8be805098f12a23eda90593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng
deleted file mode 100644
index 88021395116d1d0cf878a58514d3314492c9b9a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng
deleted file mode 100644
index 87c9cd8185000323da69e78800acdb0f8ac85413..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng
deleted file mode 100644
index 31ef0da1509439e879fecc0fb721370eab8e0d12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng
deleted file mode 100644
index 827e5a89e86e078da9cb97ecb2bc4f5f9fd05272..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng
deleted file mode 100644
index 0d90bcf40b582b1a534b157d4108f9dfad48da8e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng
deleted file mode 100644
index 648827f04e34cb5e980ef95e06fbc29c9c39593e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng
deleted file mode 100644
index 713ec28581af3acffceb7942d73834512d4e0d98..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng
deleted file mode 100644
index c02638406828e181872e78791dba25ff7bed4dad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng
deleted file mode 100644
index d38efd1633fda6ca92aeb34765f765dba1e3f1fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng
deleted file mode 100644
index e63ffb70f668497a316be0e77dd408874502ca93..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb['active_txt'] = 'Active';
-$wb['limit_dns_zone_txt'] = 'The max. number of DNS zones for your account is reached.';
-$wb['client_txt'] = 'Client';
-$wb['no_zone_perm'] = 'You do not have the permission to add a record to this DNS zone.';
-$wb['server_id_error_empty'] = 'No server selected';
-$wb['origin_error_empty'] = 'Zone empty.';
-$wb['origin_error_unique'] = 'There is already a record for this zone.';
-$wb['origin_error_regex'] = 'Zone has a invalid format.';
-$wb['ns_error_regex'] = 'NS has a invalid format.';
-$wb['mbox_error_empty'] = 'Email is empty.';
-$wb['mbox_error_regex'] = 'Email format invalid.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng
deleted file mode 100644
index 42bb32920ccbd370c1ffb932dbd0178b84637d73..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng
deleted file mode 100644
index d4ea60be9760c7a5764ac69fef6cb9b51ff5d339..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng
deleted file mode 100644
index 3a09e3bb71b6fc2ba62aa40fce668fc2dd86ffe8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng
deleted file mode 100644
index 8d9d730e5031ef939eff8da85b9f426b82d13b88..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng
deleted file mode 100644
index 8e6c417d0d8474bc698d2a0e920334732e979d0e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng
deleted file mode 100644
index ffceabb53acd2e84b2339c325707ce5dbbd2022d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/se_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk.lng b/interface/ispconfig/interface/dns/lib/lang/sk.lng
deleted file mode 100644
index a7f9836185dfde402d6f82105906d2d7bc41b3c1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng
deleted file mode 100644
index ce9974d2f9d4fdedc3dc64207d0d4426e1b8dbb9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng
deleted file mode 100644
index d1124a9531a3115bddc7c99beff5b10602049e97..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng
deleted file mode 100644
index 03dfe3fc66aed3090e06c629f5d25182be918e79..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng
deleted file mode 100644
index a7b4cb228fe1909b4a83cea8b64fa582d8497925..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng
deleted file mode 100644
index dc768706bff7d81789e38c1b7673a4efb06ca8e5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng
deleted file mode 100644
index 33b814fe2cb7c79e7f9c2baadb66b1bf20c3c8f9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng
deleted file mode 100644
index d179568ae191c134e1bd07095be1f1233448c0ed..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng
deleted file mode 100644
index 5df4592ebc417dc4310ac77f11631432bdc8000b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng
deleted file mode 100644
index cac489d0541f1b5e76233fd3cd2fd6dd068bdedf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng
deleted file mode 100644
index 582b61c124b7682405a541fb8ac12864d84d424a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng
deleted file mode 100644
index 98de52e15a5cf04ef97d01ee7a96a0547f2d2a50..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-tieto IP (comma separated list)';
-$wb['active_txt'] = 'Actvova?';
-$wb['limit_dns_zone_txt'] = 'Max. po?et zn DNS pre v ?et je dosiahnut.';
-$wb['client_txt'] = 'Klient';
-$wb['no_zone_perm'] = 'Nemte oprvnenie prida? zznam do tejto zny DNS.';
-$wb['server_id_error_empty'] = 'iaden vybran server';
-$wb['origin_error_empty'] = 'Prazdna zna.';
-$wb['origin_error_unique'] = 'V s?asnosti u existuje zznam pre tto znu.';
-$wb['origin_error_regex'] = 'Zna m neplatn formt.';
-$wb['ns_error_regex'] = 'NS m neplatn formt.';
-$wb['mbox_error_empty'] = 'Email je przdny.';
-$wb['mbox_error_regex'] = 'Email m neplatn formt.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng
deleted file mode 100644
index 91a9788029c4632bfd9f75537737d33bee76fc57..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng
deleted file mode 100644
index 7f867d3af6f5ede33ebfc31aca6154042b8abdb8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng
deleted file mode 100644
index 4dd637f582dcf7537574183f51c78dc0076daedc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng
deleted file mode 100644
index 0a7c5d7e9c18fc2cf6c024e20820d33d69cd86b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng
deleted file mode 100644
index e0137c0dca773e5ccd9b4dd70cc84b063341b92c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng
deleted file mode 100644
index 7c845c7e9da12c97ac889de0c8dfd50c3c2b64cf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/sk_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr.lng b/interface/ispconfig/interface/dns/lib/lang/tr.lng
deleted file mode 100644
index 36def8e93d3ba7fdd8be805098f12a23eda90593..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr.lng
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng
deleted file mode 100644
index 097833f028ac58776c3d4470675c9f9335df808d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng
deleted file mode 100644
index 77dcb83975f14a10fc5aae8ce3f9f508bed7c28f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_a_list.lng
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng
deleted file mode 100644
index 3bcf2506184bce80bc634f5374835fb01ed63c2c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_aaaa.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng
deleted file mode 100644
index da1e6e61678d84b64715a8faa55f5d1303402c91..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_alias.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng
deleted file mode 100644
index d74cfebc994400efcb84e1d6dd7860e68592f6b8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_cname.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng
deleted file mode 100644
index 7585d136530fd97318092c917c2724609c749254..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_hinfo.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng
deleted file mode 100644
index 201f686ec5df19b0f27e6e99204a580632ce2ed6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_mx.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng
deleted file mode 100644
index 0a5ef933831c1e1ca9022350f28bb251a39fd09f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ns.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng
deleted file mode 100644
index e34394522f3194b3228e7519c499457c9d2ed1d1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_ptr.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng
deleted file mode 100644
index f444fb0e17e15d8d262eb3751c4879b395499cf5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_rp.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng
deleted file mode 100644
index 756ea05d2a2a67147be971bac0cd82cc1be55a42..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa.lng
+++ /dev/null
@@ -1,26 +0,0 @@
-these IPs (comma separated list)';
-$wb['active_txt'] = 'Aktif';
-$wb['limit_dns_zone_txt'] = 'Hesabınızdaki max. DNS zone kaydına ulaşıldı.';
-$wb['client_txt'] = 'Müşteri';
-$wb['no_zone_perm'] = 'Bu DNS Zone kaydını eklemek için yetkiniz yok.';
-$wb['server_id_error_empty'] = 'Seçili sunucu yok';
-$wb['origin_error_empty'] = 'Zone boş.';
-$wb['origin_error_unique'] = 'Bu zone için bir kayıt zaten var.';
-$wb['origin_error_regex'] = 'Zone geçersiz formatta.';
-$wb['ns_error_regex'] = 'NS geçersiz formatta.';
-$wb['mbox_error_empty'] = 'Email boş.';
-$wb['mbox_error_regex'] = 'Email geçersiz formatta.';
-$wb['also_notify_txt'] = 'Also Notify';
-$wb['update_acl_txt'] = 'Update ACL';
-?>
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng
deleted file mode 100644
index 4670b20f56cdf267f128776fac4a969ca6a2ef12..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_soa_list.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng
deleted file mode 100644
index c56d06edaf3fe4882fff21f69947ea2a6d4c080c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_srv.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng
deleted file mode 100644
index 1c973fa6d6f9fe223828a3d0a5765251134df9a1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng
deleted file mode 100644
index 9bc064c76321cae9ed7ea9145501de0e27357f94..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_template_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng
deleted file mode 100644
index b2475219e92715d0fb9cb383b0f0b7e5683aa344..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_txt.lng
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng b/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng
deleted file mode 100644
index dbd4d5a882b8b29db5f27721d7589adf0e839edb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/lang/tr_dns_wizard.lng
+++ /dev/null
@@ -1,29 +0,0 @@
-
diff --git a/interface/ispconfig/interface/dns/lib/module.conf.php b/interface/ispconfig/interface/dns/lib/module.conf.php
deleted file mode 100644
index ae7e8c456c72320351ed89d1edfdc873bce8a2c8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/lib/module.conf.php
+++ /dev/null
@@ -1,57 +0,0 @@
- "Add DNS Zone",
- 'target' => 'content',
- 'link' => 'dns/dns_wizard.php');
-
-if($_SESSION["s"]["user"]["typ"] == 'admin') {
-
- $items[] = array( 'title' => "Templates",
- 'target' => 'content',
- 'link' => 'dns/dns_template_list.php');
-}
-
-
-$module["nav"][] = array( 'title' => 'DNS Wizard',
- 'open' => 1,
- 'items' => $items);
-
-
-unset($items);
-
-/*
- Email accounts menu
-*/
-
-
-$items[] = array( 'title' => "Zones",
- 'target' => 'content',
- 'link' => 'dns/dns_soa_list.php');
-/*
-$items[] = array( 'title' => "A-Records",
- 'target' => 'content',
- 'link' => 'dns/dns_a_list.php');
-*/
-
-
-$module["nav"][] = array( 'title' => 'DNS',
- 'open' => 1,
- 'items' => $items);
-
-unset($items);
-
-
-
-
-
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/list/dns_a.list.php b/interface/ispconfig/interface/dns/list/dns_a.list.php
deleted file mode 100644
index 54470cfc1221f9704be013fe6e39bd15814165bf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/list/dns_a.list.php
+++ /dev/null
@@ -1,127 +0,0 @@
- "active",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('y' => "Yes
",'n' => "No
"));
-
-
-$liste["item"][] = array( 'field' => "server_id",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name',
- 'keyfield'=> 'server_id',
- 'valuefield'=> 'server_name'
- ),
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "zone",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT id,origin FROM dns_soa WHERE {AUTHSQL} ORDER BY origin',
- 'keyfield'=> 'id',
- 'valuefield'=> 'origin'
- ),
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "data",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "aux",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "type",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "like",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('A'=>'A','AAAA' => 'AAAA','ALIAS'=>'ALIAS','CNAME'=>'CNAME','HINFO'=>'HINFO','MX'=>'MX','NS'=>'NS','PTR'=>'PTR','RP'=>'RP','SRV'=>'SRV','TXT'=>'TXT'));
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/list/dns_soa.list.php b/interface/ispconfig/interface/dns/list/dns_soa.list.php
deleted file mode 100644
index 3e5fae6a98436d9e2f1b0393e25718a9a41e734f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/list/dns_soa.list.php
+++ /dev/null
@@ -1,111 +0,0 @@
- "active",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('y' => "Yes
",'n' => "No
"));
-
-
-$liste["item"][] = array( 'field' => "server_id",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'datasource' => array ( 'type' => 'CUSTOM',
- 'class'=> 'custom_datasource',
- 'function'=> 'dns_servers'
- ),
- 'width' => "",
- 'value' => "");
-
-$liste["item"][] = array( 'field' => "origin",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "ns",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-$liste["item"][] = array( 'field' => "mbox",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-
-
-
-
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/list/dns_template.list.php b/interface/ispconfig/interface/dns/list/dns_template.list.php
deleted file mode 100644
index 11a1919b11a7f9489274241f94012e5909daef5c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/list/dns_template.list.php
+++ /dev/null
@@ -1,80 +0,0 @@
- "visible",
- 'datatype' => "VARCHAR",
- 'formtype' => "SELECT",
- 'op' => "=",
- 'prefix' => "",
- 'suffix' => "",
- 'width' => "",
- 'value' => array('Y' => "Yes
",'N' => "No
"));
-
-
-$liste["item"][] = array( 'field' => "name",
- 'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "",
- 'value' => "");
-
-
-
-
-
-
-
-
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/dns/templates/dns_a_edit.htm b/interface/ispconfig/interface/dns/templates/dns_a_edit.htm
deleted file mode 100644
index 4bf2bd259f775f711c421b0997f8fe570df8939d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_a_edit.htm
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_a_list.htm b/interface/ispconfig/interface/dns/templates/dns_a_list.htm
deleted file mode 100644
index 19d35c21b6c077337659c6b7749c9fbe20dde3c3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_a_list.htm
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm b/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm
deleted file mode 100644
index 85085327a2abaf82f672da377f838c940459f1b3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_aaaa_edit.htm
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm b/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm
deleted file mode 100644
index 4300af42c243beeb00328931f5f07a4753d4a514..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_alias_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm b/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm
deleted file mode 100644
index 103b743fc8a7f71a5945e5e32185b364aebb7fb4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_cname_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm b/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm
deleted file mode 100644
index 9029111193d9f7952d09f69f3e7a92daf4ca5b2e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_hinfo_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm b/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm
deleted file mode 100644
index f8547245d38a9348a04f749c82676bfb5f10bd6d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_mx_edit.htm
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm b/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm
deleted file mode 100644
index 9141b3b1e3ee4ab3c0dd46e2f86a8d098af2b4b2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_ns_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm b/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm
deleted file mode 100644
index 58901cdc951ef8086dab6386804ba358f7c6a6bf..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_ptr_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_records_edit.htm b/interface/ispconfig/interface/dns/templates/dns_records_edit.htm
deleted file mode 100644
index 1feb3f970cf9f3069aac00dc5f4d51c0e7001b9a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_records_edit.htm
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
- {tmpl_var name='dns_records'}
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm b/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm
deleted file mode 100644
index 93f1e89e9840167b17a6ed6917d3246e7d3aeffb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_rp_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm b/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm
deleted file mode 100644
index ef855a8364e4cf9ae4cc145324948ceac6152664..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_soa_edit.htm
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_soa_list.htm b/interface/ispconfig/interface/dns/templates/dns_soa_list.htm
deleted file mode 100644
index 46d0160ca01a6b5db6a3a66761685e0d100ebee5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_soa_list.htm
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm b/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm
deleted file mode 100644
index bfa35fd7f10f4e57a693105256cd5663c63ce028..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_srv_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_template_edit.htm b/interface/ispconfig/interface/dns/templates/dns_template_edit.htm
deleted file mode 100644
index 34cf3b1e09dc64ca163d36445a1e835b563e3ce5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_template_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_template_list.htm b/interface/ispconfig/interface/dns/templates/dns_template_list.htm
deleted file mode 100644
index a698a9738e6901f8fc79e8f0525bba5a4989ad31..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_template_list.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm b/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm
deleted file mode 100644
index d1408a9dc9f3e24fa1cb448b53c2ac5716f1bc13..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_txt_edit.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/dns/templates/dns_wizard.htm b/interface/ispconfig/interface/dns/templates/dns_wizard.htm
deleted file mode 100644
index f8cd6021f2f2219722501fd9eadfa63d01e5c517..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/dns/templates/dns_wizard.htm
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/help/form/support_message.tform.php b/interface/ispconfig/interface/help/form/support_message.tform.php
deleted file mode 100644
index b48dce242b9d59ee5869764815b206829632246d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/form/support_message.tform.php
+++ /dev/null
@@ -1,120 +0,0 @@
- 0 id must match with id of current user
-$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
-$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
-$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
-
-
-//* Begin of the form definition of the first tab. The name of the tab is called "message". We refer
-//* to this name in the $form["tab_default"] setting above.
-$form["tabs"]['message'] = array (
- 'title' => "Message", // Title of the Tab
- 'width' => 100, // Tab width
- 'template' => "templates/support_message_edit.htm", // Template file name
- 'fields' => array (
- ##################################
- # Begin Datatable fields
- ##################################
- 'recipient_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username',
- 'keyfield' => 'userid',
- 'valuefield' => 'username'
- ),
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'recipient_id_is_not_integer'),
- ),
- 'value' => ''
- ),
- 'sender_id' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username',
- 'keyfield' => 'userid',
- 'valuefield' => 'username'
- ),
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'recipient_id_is_not_integer'),
- ),
- 'value' => ''
- ),
- 'subject' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'subject_is_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- 'message' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXTAREA',
- 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'message_is_empty'),
- ),
- 'default' => '',
- 'value' => '',
- 'cols' => '30',
- 'rows' => '10',
- 'maxlength' => '255'
- ),
- 'tstamp' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'TEXT',
- 'default' => time(),
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '30'
- ),
- ##################################
- # ENDE Datatable fields
- ##################################
- )
-);
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/index.php b/interface/ispconfig/interface/help/index.php
deleted file mode 100644
index 36a23159b0b179cea28df72f1089692de984bb3f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/index.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-ISPConfig Help
-
-
-
-
-
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/lib/admin.conf.php b/interface/ispconfig/interface/help/lib/admin.conf.php
deleted file mode 100644
index 58a17b038a8aaf71b2c026aff55210dff4d872b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/admin.conf.php
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/lib/lang/bg.lng b/interface/ispconfig/interface/help/lib/lang/bg.lng
deleted file mode 100644
index b93106e6c9b4378fd007216a4ed7221e3e6250e3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/bg.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng b/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng
deleted file mode 100644
index b6d979ad0b7108340db1610e4b15b7016bd970a5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/bg_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng
deleted file mode 100644
index 1a5c21c50cc7b0c6720890b94cca4d4940447936..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/bg_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/br.lng b/interface/ispconfig/interface/help/lib/lang/br.lng
deleted file mode 100644
index 3f45599aae7b3471e15bb6fccc3ebe5ca7f6aad0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/br.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/br_support_message.lng b/interface/ispconfig/interface/help/lib/lang/br_support_message.lng
deleted file mode 100644
index 99dcf309fad2b123bd8a1d8c3ffb5e40ce40b789..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/br_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng
deleted file mode 100644
index d5ba958293d5dbfcc22e1600fcb5a8fb8b3e8ba4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/br_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/de.lng b/interface/ispconfig/interface/help/lib/lang/de.lng
deleted file mode 100644
index 2627e48e9baa925c4ac59e03f26d1883fd85332f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/de.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/de_support_message.lng b/interface/ispconfig/interface/help/lib/lang/de_support_message.lng
deleted file mode 100644
index b026b17a87ed87086f960e9964e63e8ae6b2a0d8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/de_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng
deleted file mode 100644
index 72734756a043e7c96fca57466297184af07dbc6d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/de_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/en.lng b/interface/ispconfig/interface/help/lib/lang/en.lng
deleted file mode 100644
index 369cbb9a8434cf3a28d993a5b7357fc6315a6647..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/en.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/en_support_message.lng b/interface/ispconfig/interface/help/lib/lang/en_support_message.lng
deleted file mode 100644
index 25e3221e7a70fe2cbc022291f7cff276bdde551d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/en_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng
deleted file mode 100644
index 9f2b3fd377c1f95af6eb7d5d5be3d5b8360abfeb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/en_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/lib/lang/es.lng b/interface/ispconfig/interface/help/lib/lang/es.lng
deleted file mode 100644
index dc4e98582cc0e935e8e019d311234ce4f979d36d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/es.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/es_support_message.lng b/interface/ispconfig/interface/help/lib/lang/es_support_message.lng
deleted file mode 100644
index 80a7d97cb542bdb1e9758a0d702e7892acf915fc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/es_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng
deleted file mode 100644
index 0ff8eb931ff8ca07cce4b34c9dfa269abfa6f8b0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/es_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fi.lng b/interface/ispconfig/interface/help/lib/lang/fi.lng
deleted file mode 100644
index cd13f9c03ac55b65a7fbc9996f4888bdb409b230..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fi.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng b/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng
deleted file mode 100644
index 1e693bc6ed1bda1a24ebe2e85e62b659eea16787..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fi_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng
deleted file mode 100644
index 4bbc1de7997da15cacbb0cf6aa0d108d0df5a39e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fi_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fr.lng b/interface/ispconfig/interface/help/lib/lang/fr.lng
deleted file mode 100644
index 1242806782f7c2ad39ddd5044cb8ef29afc36ca7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fr.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng b/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng
deleted file mode 100644
index 690a9125458e4c4d0763068b5dfe7d19d7fa6cc8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fr_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng
deleted file mode 100644
index ac63d3f6e2a919f8e5e8b44f41f6a9c65f9c36c6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/fr_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/hu.lng b/interface/ispconfig/interface/help/lib/lang/hu.lng
deleted file mode 100644
index 0dc1ac1a36d7be3b555555637db8fdbaf09b7962..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/hu.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng b/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng
deleted file mode 100644
index 65a327645e1d1a1210c83f21eb12cb3952f3c690..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/hu_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng
deleted file mode 100644
index 7e71ebc1e54a0efab8c24514e5480238912027ae..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/hu_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/it.lng b/interface/ispconfig/interface/help/lib/lang/it.lng
deleted file mode 100644
index a5da077c900bffff4e847c2929977b62475674a4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/it.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/it_support_message.lng b/interface/ispconfig/interface/help/lib/lang/it_support_message.lng
deleted file mode 100644
index 240e6f20df95eb2718ea8adbb5164ee0a372e289..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/it_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng
deleted file mode 100644
index 95f3558a2c469e7b978b8b776684aac1918b9652..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/it_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ja.lng b/interface/ispconfig/interface/help/lib/lang/ja.lng
deleted file mode 100644
index 57fa64e0f469b8335218f2da2de2179f76bc7f68..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ja.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng
deleted file mode 100644
index b4e6e02278295cfcc36406cc0eee507f98f37ad9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ja_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng
deleted file mode 100644
index 0a68de95be64d3a221842f5907735160db62940e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ja_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/nl.lng b/interface/ispconfig/interface/help/lib/lang/nl.lng
deleted file mode 100644
index 170c3d6ad361484d429941b8c9e0fc8d7f589242..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/nl.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng b/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng
deleted file mode 100644
index d2aed4cb6c636e44011295924b612b0d3be4c0cd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/nl_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng
deleted file mode 100644
index 0d7b2cb74bd9516378777100312970f2c209665c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/nl_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pl.lng b/interface/ispconfig/interface/help/lib/lang/pl.lng
deleted file mode 100644
index 51ca7ccc8c93d24d6cb5184335cf915cb4957037..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pl.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng b/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng
deleted file mode 100644
index b21539af2f907e15354f0344a9aa334ca7d5ac3c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pl_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng
deleted file mode 100644
index bc3285694b816cdfd17997548828a5f1c9225b8a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pl_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pt.lng b/interface/ispconfig/interface/help/lib/lang/pt.lng
deleted file mode 100644
index adace22c82874490a56500045f509dc5a0b8e8f5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pt.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng b/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng
deleted file mode 100644
index ce48ca9d28166d29c72d7c439732496dc1895424..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pt_support_message.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng
deleted file mode 100644
index ffd7d85cecb7edabbd5eb429f78888d5b0410cfc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/pt_support_message_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ro.lng b/interface/ispconfig/interface/help/lib/lang/ro.lng
deleted file mode 100644
index b97df1de6ab13e4caea4715747689038dbdcff95..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ro.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng
deleted file mode 100644
index 8769c852709ebcb539bc5ae974b8c5e805196e84..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ro_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng
deleted file mode 100644
index 34aebb87776dfd340d6f88e830f81c2e229baa44..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ro_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ru.lng b/interface/ispconfig/interface/help/lib/lang/ru.lng
deleted file mode 100644
index be5e01da81f314eee1fd61f05295f7f96b03bf78..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ru.lng
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng b/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng
deleted file mode 100644
index d59eb1f55e494b65f1ad4a77836e7e2a0701200d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ru_support_message.lng
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng
deleted file mode 100644
index 679d55c3401df7281fabca606db3749392809c9a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/ru_support_message_list.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/interface/ispconfig/interface/help/lib/lang/se.lng b/interface/ispconfig/interface/help/lib/lang/se.lng
deleted file mode 100644
index 16a245dc0552c11e1860cf0be3bdbd8c8de211ad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/se.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/se_support_message.lng b/interface/ispconfig/interface/help/lib/lang/se_support_message.lng
deleted file mode 100644
index 25e3221e7a70fe2cbc022291f7cff276bdde551d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/se_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng
deleted file mode 100644
index d6bc2aac339b1ece715b3343e209c2621de220aa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/se_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/sk.lng b/interface/ispconfig/interface/help/lib/lang/sk.lng
deleted file mode 100644
index f359d0c4af513fd7da5cb11725333103d54f457a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/sk.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng b/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng
deleted file mode 100644
index 08d0eae6cbeb9c18eb768dd46712ee592b384100..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/sk_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng
deleted file mode 100644
index 9d432bf89761ff8db635b47279fda36f1c01f5e3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/sk_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/tr.lng b/interface/ispconfig/interface/help/lib/lang/tr.lng
deleted file mode 100644
index b38ed5ff7da69ce2bd1495cd7c2710cd1490d7c0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/tr.lng
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng b/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng
deleted file mode 100644
index 25e3221e7a70fe2cbc022291f7cff276bdde551d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/tr_support_message.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng b/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng
deleted file mode 100644
index acdb363da6401561fa1e6f932379680d706f0b76..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/lang/tr_support_message_list.lng
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/interface/ispconfig/interface/help/lib/module.conf.php b/interface/ispconfig/interface/help/lib/module.conf.php
deleted file mode 100644
index 9211aed0665e5dfa5458f0758766b3c8d4c32891..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/lib/module.conf.php
+++ /dev/null
@@ -1,60 +0,0 @@
- 'Send message',
- 'target' => 'content',
- 'link' => 'help/support_message_edit.php');
-
-//* Add a menu item with the label 'View messages'
-$items[] = array( 'title' => 'View messages',
- 'target' => 'content',
- 'link' => 'help/support_message_list.php');
-
-
-//* Add the menu items defined above to a menu section labeled 'Support'
-$module['nav'][] = array( 'title' => 'Support',
- 'open' => 1,
- 'items' => $items);
-
-
-if($_SESSION['s']['user']['typ'] == 'admin') {
-//* make sure that the items array is empty
-$items = array();
-
-//* Add a menu item with the label 'View messages'
-$items[] = array( 'title' => 'Version',
- 'target' => 'content',
- 'link' => 'help/version.php');
-
-
-//* Add the menu items defined above to a menu section labeled 'Support'
-$module['nav'][] = array( 'title' => 'About ISPConfig',
- 'open' => 1,
- 'items' => $items);
-
-}
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/list/support_message.list.php b/interface/ispconfig/interface/help/list/support_message.list.php
deleted file mode 100644
index c6975d2cbf3b63ac71758a99665c79b91d177c96..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/list/support_message.list.php
+++ /dev/null
@@ -1,62 +0,0 @@
- 'sender_id',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'op' => '=',
- 'prefix' => '',
- 'suffix' => '',
- 'width' => '',
- 'datasource'=> array ( 'type' => 'SQL',
- 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username',
- 'keyfield' => 'userid',
- 'valuefield' => 'username'
- ),
- 'value' => '');
-
-$liste['item'][] = array( 'field' => 'subject',
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'op' => 'like',
- 'prefix' => '%',
- 'suffix' => '%',
- 'width' => '',
- 'value' => '');
-
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/support_message_del.php b/interface/ispconfig/interface/help/support_message_del.php
deleted file mode 100644
index 16db6040a0820cf401564b6cea17359c029ec5df..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/support_message_del.php
+++ /dev/null
@@ -1,48 +0,0 @@
-auth->check_module_permissions('help');
-
-//* Load the form
-$app->uses('tform_actions');
-$app->tform_actions->onDelete();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/support_message_edit.php b/interface/ispconfig/interface/help/support_message_edit.php
deleted file mode 100644
index 8223a00008dd417d38a890876a7d5b7d445e4c8b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/support_message_edit.php
+++ /dev/null
@@ -1,71 +0,0 @@
-auth->check_module_permissions('help');
-
-//* Loading the templating and form classes
-$app->uses('tpl,tform,tform_actions');
-$app->load('tform_actions');
-
-//* Creating a class page_action that extends the tform_actions base class
-class page_action extends tform_actions {
-
- //* Custom onSubmit Event handler
- function onSubmit()
- {
- global $app, $conf;
-
- //* If the current user is not the admin user
- if($_SESSION['s']['user']['typ'] != 'admin') {
- //* Set the admin as recipient
- $this->dataRecord['recipient_id'] = 1;
- }
-
- //* Set the sender_id field to the ID of the current user
- $this->dataRecord['sender_id'] = $_SESSION['s']['user']['userid'];
-
- //* call the onSubmit function of the parent class
- parent::onSubmit();
- }
-
- //* Custom onShow Event handler
- function onShow()
- {
- global $app, $conf;
-
- //* We do not want that messages get edited, so we switch to a
- //* read only template if a existing message is loaded
- if($this->id > 0) {
- $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm';
- }
-
- //* call the onShow function of the parent class
- parent::onShow();
- }
-
- function onAfterInsert()
- {
- global $app, $conf;
-
- if($_SESSION['s']['user']['typ'] == 'admin') {
- $app->db->query("UPDATE support_message SET sys_userid = ".$this->dataRecord['recipient_id']." WHERE support_message_id = ".$this->id);
- }
-
- }
-
-}
-
-//* Create the new page object
-$page = new page_action();
-
-//* Start the page rendering and action handling
-$page->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/support_message_list.php b/interface/ispconfig/interface/help/support_message_list.php
deleted file mode 100644
index c03bcde77a2a5f28cd61e503f367a83afed890a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/support_message_list.php
+++ /dev/null
@@ -1,20 +0,0 @@
-auth->check_module_permissions('help');
-
-//* Loading the class
-$app->uses('listform_actions');
-
-//* Optional limit
-$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid'];
-
-//* Start the form rendering and action ahndling
-$app->listform_actions->onLoad();
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/help/templates/support_message_edit.htm b/interface/ispconfig/interface/help/templates/support_message_edit.htm
deleted file mode 100644
index 305a47a2b980423687fea179e33003f08a86ea5c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/templates/support_message_edit.htm
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/help/templates/support_message_list.htm b/interface/ispconfig/interface/help/templates/support_message_list.htm
deleted file mode 100644
index 02662ad29aa6a6719f5796c9b0f232bedeeb28e2..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/templates/support_message_list.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/help/templates/support_message_view.htm b/interface/ispconfig/interface/help/templates/support_message_view.htm
deleted file mode 100644
index 37cb1e4b3fd9153a38319a9b7df0c036757d3dfb..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/templates/support_message_view.htm
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
diff --git a/interface/ispconfig/interface/help/version.php b/interface/ispconfig/interface/help/version.php
deleted file mode 100644
index 45120f80080ce61a9ad1a28335227d83e7c2ee72..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/help/version.php
+++ /dev/null
@@ -1,50 +0,0 @@
-auth->check_module_permissions('admin');
-
-echo '
'.$app->lng('ISPConfig Version:').' '.ISPC_APP_VERSION.'
';
-
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/index.htm b/interface/ispconfig/interface/index.htm
deleted file mode 100644
index 39606dbb3710e1939027c58888cc37edf4c8d956..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/index.htm
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/index.php b/interface/ispconfig/interface/index.php
deleted file mode 100644
index 9c312824e616462cfbbe5d53c314e9f04d470291..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/index.php
+++ /dev/null
@@ -1,41 +0,0 @@
-uses('tpl');
-$app->tpl->newTemplate('main.tpl.htm');
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-?>
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/scrigo.js.php b/interface/ispconfig/interface/js/scrigo.js.php
deleted file mode 100644
index 1d468de5d662642391fab798082b983d3396b874..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/scrigo.js.php
+++ /dev/null
@@ -1,503 +0,0 @@
-
-
-redirect = '';
-
-function loadContentfRefresh(pagename) {
- var pageContentCallbackRefresh = {
- success: function(o) {
- document.getElementById('pageContent').innerHTML = o.responseText;
- },
- failure: function(o) {
- alert('Ajax Request was not successful.'+pagename);
- }
- }
-
- if(document.getElementById('refreshinterval').value > 0) {
- var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename+"&refresh="+document.getElementById('refreshinterval').value, pageContentCallbackRefresh);
- setTimeout( "loadContentRefresh('"+pagename+"&refresh="+document.getElementById('refreshinterval').value+"')", document.getElementById('refreshinterval').value*1000 );
- }
-}
-
-function capp(module) {
- var cappCallback = {
- success: function(o) {
- if(o.responseText != '') {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- loadContent(parts[1]);
- } else {
- alert(o.responseText);
- }
- }
- loadMenus();
- },
- failure: function(o) {
- alert('Ajax Request was not successful.');
- }
- }
- var submitFormObj = YAHOO.util.Connect.asyncRequest('GET', 'capp.php?mod='+module, cappCallback);
-}
-
-function submitLoginForm(formname) {
-
- var submitFormCallback = {
- success: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- //alert(parts[1]);
- loadContent(parts[1]);
- //redirect = parts[1];
- //window.setTimeout('loadContent(redirect)', 1000);
- } else if (o.responseText.indexOf('LOGIN_REDIRECT:') > -1) {
- // Go to the login page
- document.location.href = 'index.php';
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
- loadMenus();
- },
- failure: function(o) {
- alert('Ajax Request was not successful.');
- }
- }
-
- //* Validate form. TODO: username and password with strip();
- var frm = document.getElementById(formname);
- var userNameObj = frm.username;
- if(userNameObj.value == ''){
- userNameObj.focus();
- return;
- }
- var passwordObj = frm.passwort;
- if(passwordObj.value == ''){
- passwordObj.focus();
- return;
- }
- YAHOO.util.Connect.setForm(formname);
- var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', 'content.php', submitFormCallback);
- /*
- if(redirect != '') {
- loadContent(redirect);
- redirect = '';
- }
- document.getElementById('footer').innerHTML = 'Powered by ISPConfig ';
- */
-
-}
-
-function submitForm(formname,target) {
-
- var submitFormCallback = {
- success: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- //alert(parts[1]);
- loadContent(parts[1]);
- //redirect = parts[1];
- //window.setTimeout('loadContent(redirect)', 1000);
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
- },
- failure: function(o) {
- var parts = o.responseText.split(':');
- alert('Ajax Request was not successful. '+parts[1]);
- }
- }
-
- YAHOO.util.Connect.setForm(formname);
- var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', target, submitFormCallback);
- /*
- if(redirect != '') {
- loadContent(redirect);
- redirect = '';
- }
- */
-}
-
-function submitUploadForm(formname,target) {
-
- var submitFormCallback = {
- success: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- //alert(parts[1]);
- loadContent(parts[1]);
- //redirect = parts[1];
- //window.setTimeout('loadContent(redirect)', 1000);
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
- },
- upload: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- //alert(parts[1]);
- loadContent(parts[1]);
- //redirect = parts[1];
- //window.setTimeout('loadContent(redirect)', 1000);
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
- },
- failure: function(o) {
- alert('Ajax Request was not successful. 1');
- }
- }
-
- YAHOO.util.Connect.setForm(formname,true);
- var submitFormObj = YAHOO.util.Connect.asyncRequest('POST', target, submitFormCallback);
- /*
- if(redirect != '') {
- loadContent(redirect);
- redirect = '';
- }
- */
-}
-
-function loadContent(pagename) {
- var pageContentCallback2 = {
- success: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(':');
- loadContent(parts[1]);
- } else if (o.responseText.indexOf('URL_REDIRECT:') > -1) {
- var newUrl= o.responseText.substr(o.responseText.indexOf('URL_REDIRECT:') + "URL_REDIRECT:".length);
- document.location.href = newUrl;
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
- },
- failure: function(o) {
- alert('Ajax Request was not successful.');
- }
- }
-
-
- var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, pageContentCallback2);
-}
-
-
-function loadInitContent() {
-
- var pageContentCallback = {
- success: function(o) {
- if(o.responseText.indexOf('HEADER_REDIRECT:') > -1) {
- var parts = o.responseText.split(":");
- loadContent(parts[1]);
- } else {
- document.getElementById('pageContent').innerHTML = o.responseText;
- }
-
- /*
- var items = document.getElementsByTagName('input');
- for(i=0;i";
-pass_message['color'] = "#d0d0d0";
-pass_messages[0] = pass_message;
-
-var pass_message = new Array();
-pass_message['text'] = "";
-pass_message['color'] = "red";
-pass_messages[1] = pass_message;
-
-var pass_message = new Array();
-pass_message['text'] = "";
-pass_message['color'] = "yellow";
-pass_messages[2] = pass_message;
-
-var pass_message = new Array();
-pass_message['text'] = "";
-pass_message['color'] = "#00ff00";
-pass_messages[3] = pass_message;
-
-var pass_message = new Array();
-pass_message['text'] = "";
-pass_message['color'] = "green";
-pass_messages[4] = pass_message;
-
-var pass_message = new Array();
-pass_message['text'] = "";
-pass_message['color'] = "green";
-pass_messages[5] = pass_message;
-
-function pass_check(password) {
- var length = password.length;
- var points = 0;
- if (length < pass_minimum_length) {
- pass_result(0);
- return;
- }
-
- if (length < 5) {
- pass_result(1);
- return;
- }
-
- if (pass_contains(password, "ABCDEFGHIJKLNMOPQRSTUVWXYZ")) {
- points += 1;
- }
-
- if (pass_contains(password, "0123456789")) {
- points += 1;
- }
-
- if (pass_contains(password, "`~!@#$%^&*()_+|\=-[]}{';:/?.>,<\" ")) {
- points += 1;
- }
-
- if (points == 0) {
- if (length >= 5 && length <=6) {
- pass_result(1);
- } else if (length >= 7 && length <=8) {
- pass_result(2);
- } else {
- pass_result(3);
- }
- } else if (points == 1) {
- if (length >= 5 && length <=6) {
- pass_result(2);
- } else if (length >= 7 && length <=10) {
- pass_result(3);
- } else {
- pass_result(4);
- }
- } else if (points == 2) {
- if (length >= 5 && length <=8) {
- pass_result(3);
- } else if (length >= 9 && length <=10) {
- pass_result(4);
- } else {
- pass_result(5);
- }
- } else if (points == 3) {
- if (length >= 5 && length <=6) {
- pass_result(3);
- } else if (length >= 7 && length <=8) {
- pass_result(4);
- } else {
- pass_result(5);
- }
- } else if (points >= 4) {
- if (length >= 5 && length <=6) {
- pass_result(4);
- } else {
- pass_result(5);
- }
- }
-}
-
-
-
-function pass_result(points, message) {
- if (points == 0) {
- width = 10;
- } else {
- width = points*20;
- }
- document.getElementById("passBar").innerHTML = '
';
- document.getElementById("passText").innerHTML = pass_messages[points]['text'];
-}
-function pass_contains(pass, check) {
- for (i = 0; i < pass.length; i++) {
- if (check.indexOf(pass.charAt(i)) > -1) {
- return true;
- }
- }
- return false;
-}
-
-function addAdditionalTemplate(){
- var tpl_add = document.getElementById('template_additional').value;
-
- var tpl_list = document.getElementById('template_additional_list').innerHTML;
- var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
- var addTplId = addTemplate[0];
- var addTplText = addTemplate[1];
- if(addTplId > 0) {
- var newVal = tpl_add + '/' + addTplId + '/';
- newVal = newVal.replace('//', '/');
- var newList = tpl_list + ' ' + addTplText;
- newList = newList.replace(' ', ' ');
- document.getElementById('template_additional').value = newVal;
- document.getElementById('template_additional_list').innerHTML = newList;
- alert('additional template ' + addTplText + ' added to customer');
- } else {
- alert('no additional template selcted');
- }
-}
-
-function delAdditionalTemplate(){
- var tpl_add = document.getElementById('template_additional').value;
- if(tpl_add != '') {
- var tpl_list = document.getElementById('template_additional_list').innerHTML;
- var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
- var addTplId = addTemplate[0];
- var addTplText = addTemplate[1];
- var newVal = tpl_add;
- newVal = newVal.replace(addTplId, '');
- newVal = newVal.replace('//', '/');
- var newList = tpl_list.replace(addTplText, '');
- newList = newList.replace(' ', ' ');
- document.getElementById('template_additional').value = newVal;
- document.getElementById('template_additional_list').innerHTML = newList;
- alert('additional template ' + addTplText + ' deleted from customer');
- } else {
- alert('no additional template selcted');
- }
-
-}
diff --git a/interface/ispconfig/interface/js/uni-form/jquery.js b/interface/ispconfig/interface/js/uni-form/jquery.js
deleted file mode 100644
index 7090c1c53dcdab74f9ce3eca5b3e8fa3402d26c3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/uni-form/jquery.js
+++ /dev/null
@@ -1 +0,0 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7(1C 1w.6=="T"){1w.T=1w.T;B 6=u(a,c){7(1w==q)v 1p 6(a,c);a=a||17;7(6.1t(a))v 1p 6(17)[6.E.27?"27":"2O"](a);7(1C a=="23"){B m=/^[^<]*(<(.|\\s)+>)[^>]*$/.2Q(a);7(m)a=6.3k([m[1]]);J v 1p 6(c).2o(a)}v q.6r(a.1l==2y&&a||(a.3Y||a.I&&a!=1w&&!a.24&&a[0]!=T&&a[0].24)&&6.3M(a)||[a])};7(1C $!="T")6.2S$=$;B $=6;6.E=6.8p={3Y:"1.1.2",8q:u(){v q.I},I:0,2b:u(1T){v 1T==T?6.3M(q):q[1T]},2r:u(a){B L=6(a);L.6p=q;v L},6r:u(a){q.I=0;[].1g.14(q,a);v q},K:u(E,1E){v 6.K(q,E,1E)},2h:u(1c){B 4c=-1;q.K(u(i){7(q==1c)4c=i});v 4c},1I:u(1Y,O,C){B 1c=1Y;7(1Y.1l==3t)7(O==T)v q.I&&6[C||"1I"](q[0],1Y)||T;J{1c={};1c[1Y]=O}v q.K(u(2h){P(B H 1x 1c)6.1I(C?q.1q:q,H,6.H(q,1c[H],C,2h,H))})},1m:u(1Y,O){v q.1I(1Y,O,"30")},2L:u(e){7(1C e=="23")v q.3u().3r(17.8t(e));B t="";6.K(e||q,u(){6.K(q.2I,u(){7(q.24!=8)t+=q.24!=1?q.60:6.E.2L([q])})});v t},2K:u(){B a=6.3k(1A);v q.K(u(){B b=a[0].3l(U);q.11.2X(b,q);22(b.1b)b=b.1b;b.4C(q)})},3r:u(){v q.3j(1A,U,1,u(a){q.4C(a)})},5i:u(){v q.3j(1A,U,-1,u(a){q.2X(a,q.1b)})},5j:u(){v q.3j(1A,12,1,u(a){q.11.2X(a,q)})},5t:u(){v q.3j(1A,12,-1,u(a){q.11.2X(a,q.2e)})},4g:u(){v q.6p||6([])},2o:u(t){v q.2r(6.31(q,u(a){v 6.2o(t,a)}),t)},4Y:u(4N){v q.2r(6.31(q,u(a){B a=a.3l(4N!=T?4N:U);a.$1H=16;v a}))},1D:u(t){v q.2r(6.1t(t)&&6.2q(q,u(2z,2h){v t.14(2z,[2h])})||6.3z(t,q))},2g:u(t){v q.2r(t.1l==3t&&6.3z(t,q,U)||6.2q(q,u(a){v(t.1l==2y||t.3Y)?6.3y(a,t)<0:a!=t}))},1M:u(t){v q.2r(6.2k(q.2b(),t.1l==3t?6(t).2b():t.I!=T&&(!t.1f||t.1f=="8v")?t:[t]))},4l:u(1s){v 1s?6.1D(1s,q).r.I>0:12},1a:u(1a){v 1a==T?(q.I?q[0].O:16):q.1I("O",1a)},4U:u(1a){v 1a==T?(q.I?q[0].2t:16):q.3u().3r(1a)},3j:u(1E,1P,3Z,E){B 4Y=q.I>1;B a=6.3k(1E);7(3Z<0)a.8w();v q.K(u(){B 1c=q;7(1P&&6.1f(q,"1P")&&6.1f(a[0],"3m"))1c=q.5J("20")[0]||q.4C(17.6n("20"));6.K(a,u(){E.14(1c,[4Y?q.3l(U):q])})})}};6.1z=6.E.1z=u(){B 1O=1A[0],a=1;7(1A.I==1){1O=q;a=0}B H;22(H=1A[a++])P(B i 1x H)1O[i]=H[i];v 1O};6.1z({8x:u(){7(6.2S$)$=6.2S$;v 6},1t:u(E){v!!E&&1C E!="23"&&!E.1f&&1C E[0]=="T"&&/u/i.1n(E+"")},4B:u(D){v D.66&&D.5I&&!D.5I.64},1f:u(D,Y){v D.1f&&D.1f.3K()==Y.3K()},K:u(1c,E,1E){7(1c.I==T)P(B i 1x 1c)E.14(1c[i],1E||[i,1c[i]]);J P(B i=0,6q=1c.I;i<6q;i++)7(E.14(1c[i],1E||[i,1c[i]])===12)3O;v 1c},H:u(D,O,C,2h,H){7(6.1t(O))O=O.3n(D,[2h]);B 6s=/z-?2h|7P-?8A|1d|58|8B-?28/i;v O&&O.1l==3Q&&C=="30"&&!6s.1n(H)?O+"4S":O},19:{1M:u(D,c){6.K(c.3o(/\\s+/),u(i,Q){7(!6.19.2V(D.19,Q))D.19+=(D.19?" ":"")+Q})},2f:u(D,c){D.19=c?6.2q(D.19.3o(/\\s+/),u(Q){v!6.19.2V(c,Q)}).6t(" "):""},2V:u(t,c){t=t.19||t;c=c.1R(/([\\.\\\\\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:])/g,"\\\\$1");v t&&1p 4v("(^|\\\\s)"+c+"(\\\\s|$)").1n(t)}},4d:u(e,o,f){P(B i 1x o){e.1q["1N"+i]=e.1q[i];e.1q[i]=o[i]}f.14(e,[]);P(B i 1x o)e.1q[i]=e.1q["1N"+i]},1m:u(e,p){7(p=="28"||p=="3V"){B 1N={},46,3P,d=["7d","8C","8D","8E"];6.K(d,u(){1N["8F"+q]=0;1N["8G"+q+"8H"]=0});6.4d(e,1N,u(){7(6.1m(e,"1h")!="1Z"){46=e.8I;3P=e.8J}J{e=6(e.3l(U)).2o(":4j").5l("2Z").4g().1m({4n:"1G",45:"8K",1h:"2D",7I:"0",8M:"0"}).5z(e.11)[0];B 3d=6.1m(e.11,"45");7(3d==""||3d=="4b")e.11.1q.45="6x";46=e.6y;3P=e.6z;7(3d==""||3d=="4b")e.11.1q.45="4b";e.11.33(e)}});v p=="28"?46:3P}v 6.30(e,p)},30:u(D,H,53){B L;7(H=="1d"&&6.W.1j)v 6.1I(D.1q,"1d");7(H=="4h"||H=="2v")H=6.W.1j?"3T":"2v";7(!53&&D.1q[H])L=D.1q[H];J 7(17.44&&17.44.4W){7(H=="2v"||H=="3T")H="4h";H=H.1R(/([A-Z])/g,"-$1").4m();B Q=17.44.4W(D,16);7(Q)L=Q.55(H);J 7(H=="1h")L="1Z";J 6.4d(D,{1h:"2D"},u(){B c=17.44.4W(q,"");L=c&&c.55(H)||""})}J 7(D.51){B 56=H.1R(/\\-(\\w)/g,u(m,c){v c.3K()});L=D.51[H]||D.51[56]}v L},3k:u(a){B r=[];6.K(a,u(i,1r){7(!1r)v;7(1r.1l==3Q)1r=1r.6C();7(1C 1r=="23"){B s=6.35(1r),1V=17.6n("1V"),2i=[];B 2K=!s.18("<1u")&&[1,"<42>","42>"]||(!s.18("<6D")||!s.18("<20")||!s.18("<6E"))&&[1,"<1P>","1P>"]||!s.18("<3m")&&[2,"<1P><20>","20>1P>"]||(!s.18("<6F")||!s.18("<6G"))&&[3,"<1P><20><3m>","3m>20>1P>"]||[0,"",""];1V.2t=2K[1]+s+2K[2];22(2K[0]--)1V=1V.1b;7(6.W.1j){7(!s.18("<1P")&&s.18("<20")<0)2i=1V.1b&&1V.1b.2I;J 7(2K[1]=="<1P>"&&s.18("<20")<0)2i=1V.2I;P(B n=2i.I-1;n>=0;--n)7(6.1f(2i[n],"20")&&!2i[n].2I.I)2i[n].11.33(2i[n])}1r=[];P(B i=0,l=1V.2I.I;im[3]-0",2a:"m[3]-0==i",5q:"m[3]-0==i",2u:"i==0",2T:"i==r.I-1",5R:"i%2==0",5S:"i%2","2a-3s":"6.2a(a.11.1b,m[3],\'2e\',a)==a","2u-3s":"6.2a(a.11.1b,1,\'2e\')==a","2T-3s":"6.2a(a.11.7n,1,\'5s\')==a","7p-3s":"6.2B(a.11.1b).I==1",5u:"a.1b",3u:"!a.1b",5v:"6.E.2L.14([a]).18(m[3])>=0",3i:\'a.C!="1G"&&6.1m(a,"1h")!="1Z"&&6.1m(a,"4n")!="1G"\',1G:\'a.C=="1G"||6.1m(a,"1h")=="1Z"||6.1m(a,"4n")=="1G"\',7v:"!a.2W",2W:"a.2W",2Z:"a.2Z",2Y:"a.2Y||6.1I(a,\'2Y\')",2L:"a.C==\'2L\'",4j:"a.C==\'4j\'",5x:"a.C==\'5x\'",4G:"a.C==\'4G\'",5y:"a.C==\'5y\'",4R:"a.C==\'4R\'",5A:"a.C==\'5A\'",5B:"a.C==\'5B\'",3x:\'a.C=="3x"||6.1f(a,"3x")\',5C:"/5C|42|7A|3x/i.1n(a.1f)"},".":"6.19.2V(a,m[2])","@":{"=":"z==m[4]","!=":"z!=m[4]","^=":"z&&!z.18(m[4])","$=":"z&&z.2U(z.I - m[4].I,m[4].I)==m[4]","*=":"z&&z.18(m[4])>=0","":"z",4u:u(m){v["",m[1],m[3],m[2],m[5]]},5P:"z=a[m[3]];7(!z||/5E|3e/.1n(m[3]))z=6.1I(a,m[3]);"},"[":"6.2o(m[2],a).I"},5M:[/^\\[ *(@)([a-2m-3C-]*) *([!*$^=]*) *(\'?"?)(.*?)\\4 *\\]/i,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([a-2m-3C-]*)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/i,/^([:.#]*)([a-2m-3C*-]*)/i],1Q:[/^(\\/?\\.\\.)/,"a.11",/^(>|\\/)/,"6.2B(a.1b)",/^(\\+)/,"6.2a(a,2,\'2e\')",/^(~)/,u(a){B s=6.2B(a.11.1b);v s.3N(6.3y(a,s)+1)}],3z:u(1s,1U,2g){B 1N,Q=[];22(1s&&1s!=1N){1N=1s;B f=6.1D(1s,1U,2g);1s=f.t.1R(/^\\s*,\\s*/,"");Q=2g?1U=f.r:6.2k(Q,f.r)}v Q},2o:u(t,1B){7(1C t!="23")v[t];7(1B&&!1B.24)1B=16;1B=1B||17;7(!t.18("//")){1B=1B.4H;t=t.2U(2,t.I)}J 7(!t.18("/")){1B=1B.4H;t=t.2U(1,t.I);7(t.18("/")>=1)t=t.2U(t.18("/"),t.I)}B L=[1B],2c=[],2T=16;22(t&&2T!=t){B r=[];2T=t;t=6.35(t).1R(/^\\/\\//i,"");B 3B=12;B 1J=/^[\\/>]\\s*([a-2m-9*-]+)/i;B m=1J.2Q(t);7(m){6.K(L,u(){P(B c=q.1b;c;c=c.2e)7(c.24==1&&(6.1f(c,m[1])||m[1]=="*"))r.1g(c)});L=r;t=t.1R(1J,"");7(t.18(" ")==0)5F;3B=U}J{P(B i=0;i<6.1Q.I;i+=2){B 1J=6.1Q[i];B m=1J.2Q(t);7(m){r=L=6.31(L,6.1t(6.1Q[i+1])?6.1Q[i+1]:u(a){v 40(6.1Q[i+1])});t=6.35(t.1R(1J,""));3B=U;3O}}}7(t&&!3B){7(!t.18(",")){7(L[0]==1B)L.4L();6.2k(2c,L);r=L=[1B];t=" "+t.2U(1,t.I)}J{B 34=/^([a-2m-3C-]+)(#)([a-2m-9\\\\*2S-]*)/i;B m=34.2Q(t);7(m){m=[0,m[2],m[3],m[1]]}J{34=/^([#.]?)([a-2m-9\\\\*2S-]*)/i;m=34.2Q(t)}7(m[1]=="#"&&L[L.I-1].4X){B 2l=L[L.I-1].4X(m[2]);7(6.W.1j&&2l&&2l.2J!=m[2])2l=6(\'[@2J="\'+m[2]+\'"]\',L[L.I-1])[0];L=r=2l&&(!m[3]||6.1f(2l,m[3]))?[2l]:[]}J{7(m[1]==".")B 4r=1p 4v("(^|\\\\s)"+m[2]+"(\\\\s|$)");6.K(L,u(){B 3E=m[1]!=""||m[0]==""?"*":m[2];7(6.1f(q,"7J")&&3E=="*")3E="3g";6.2k(r,m[1]!=""&&L.I!=1?6.4x(q,[],m[1],m[2],4r):q.5J(3E))});7(m[1]=="."&&L.I==1)r=6.2q(r,u(e){v 4r.1n(e.19)});7(m[1]=="#"&&L.I==1){B 5K=r;r=[];6.K(5K,u(){7(q.36("2J")==m[2]){r=[q];v 12}})}L=r}t=t.1R(34,"")}}7(t){B 1a=6.1D(t,r);L=r=1a.r;t=6.35(1a.t)}}7(L&&L[0]==1B)L.4L();6.2k(2c,L);v 2c},1D:u(t,r,2g){22(t&&/^[a-z[({<*:.#]/i.1n(t)){B p=6.5M,m;6.K(p,u(i,1J){m=1J.2Q(t);7(m){t=t.7M(m[0].I);7(6.1s[m[1]].4u)m=6.1s[m[1]].4u(m);v 12}});7(m[1]==":"&&m[2]=="2g")r=6.1D(m[3],r,U).r;J 7(m[1]=="."){B 1J=1p 4v("(^|\\\\s)"+m[2]+"(\\\\s|$)");r=6.2q(r,u(e){v 1J.1n(e.19||"")},2g)}J{B f=6.1s[m[1]];7(1C f!="23")f=6.1s[m[1]][m[2]];40("f = u(a,i){"+(6.1s[m[1]].5P||"")+"v "+f+"}");r=6.2q(r,f,2g)}}v{r:r,t:t}},4x:u(o,r,1Q,Y,1J){P(B s=o.1b;s;s=s.2e)7(s.24==1){B 1M=U;7(1Q==".")1M=s.19&&1J.1n(s.19);J 7(1Q=="#")1M=s.36("2J")==Y;7(1M)r.1g(s);7(1Q=="#"&&r.I)3O;7(s.1b)6.4x(s,r,1Q,Y,1J)}v r},4z:u(D){B 4A=[];B Q=D.11;22(Q&&Q!=17){4A.1g(Q);Q=Q.11}v 4A},2a:u(Q,1i,3Z,D){1i=1i||1;B 1T=0;P(;Q;Q=Q[3Z]){7(Q.24==1)1T++;7(1T==1i||1i=="5R"&&1T%2==0&&1T>1&&Q==D||1i=="5S"&&1T%2==1&&Q==D)v Q}},2B:u(n,D){B r=[];P(;n;n=n.2e){7(n.24==1&&(!D||n!=D))r.1g(n)}v r}});6.G={1M:u(S,C,1o,F){7(6.W.1j&&S.3L!=T)S=1w;7(F)1o.F=F;7(!1o.2A)1o.2A=q.2A++;7(!S.$1H)S.$1H={};B 38=S.$1H[C];7(!38){38=S.$1H[C]={};7(S["39"+C])38[0]=S["39"+C]}38[1o.2A]=1o;S["39"+C]=q.5Y;7(!q.1k[C])q.1k[C]=[];q.1k[C].1g(S)},2A:1,1k:{},2f:u(S,C,1o){7(S.$1H){B i,j,k;7(C&&C.C){1o=C.1o;C=C.C}7(C&&S.$1H[C])7(1o)5U S.$1H[C][1o.2A];J P(i 1x S.$1H[C])5U S.$1H[C][i];J P(j 1x S.$1H)q.2f(S,j);P(k 1x S.$1H[C])7(k){k=U;3O}7(!k)S["39"+C]=16}},1S:u(C,F,S){F=6.3M(F||[]);7(!S)6.K(q.1k[C]||[],u(){6.G.1S(C,F,q)});J{B 1o=S["39"+C],1a,E=6.1t(S[C]);7(1o){F.61(q.2j({C:C,1O:S}));7((1a=1o.14(S,F))!==12)q.4F=U}7(E&&1a!==12)S[C]();q.4F=12}},5Y:u(G){7(1C 6=="T"||6.G.4F)v;G=6.G.2j(G||1w.G||{});B 3R;B c=q.$1H[G.C];B 1E=[].3N.3n(1A,1);1E.61(G);P(B j 1x c){1E[0].1o=c[j];1E[0].F=c[j].F;7(c[j].14(q,1E)===12){G.2n();G.2H();3R=12}}7(6.W.1j)G.1O=G.2n=G.2H=G.1o=G.F=16;v 3R},2j:u(G){7(!G.1O&&G.63)G.1O=G.63;7(G.65==T&&G.67!=T){B e=17.4H,b=17.64;G.65=G.67+(e.68||b.68);G.7Y=G.7Z+(e.6c||b.6c)}7(6.W.2N&&G.1O.24==3){B 3a=G;G=6.1z({},3a);G.1O=3a.1O.11;G.2n=u(){v 3a.2n()};G.2H=u(){v 3a.2H()}}7(!G.2n)G.2n=u(){q.3R=12};7(!G.2H)G.2H=u(){q.82=U};v G}};6.E.1z({3U:u(C,F,E){v q.K(u(){6.G.1M(q,C,E||F,F)})},6u:u(C,F,E){v q.K(u(){6.G.1M(q,C,u(G){6(q).6f(G);v(E||F).14(q,1A)},F)})},6f:u(C,E){v q.K(u(){6.G.2f(q,C,E)})},1S:u(C,F){v q.K(u(){6.G.1S(C,F,q)})},3X:u(){B a=1A;v q.6j(u(e){q.4M=q.4M==0?1:0;e.2n();v a[q.4M].14(q,[e])||12})},83:u(f,g){u 4O(e){B p=(e.C=="41"?e.84:e.85)||e.86;22(p&&p!=q)2G{p=p.11}2w(e){p=q};7(p==q)v 12;v(e.C=="41"?f:g).14(q,[e])}v q.41(4O).6k(4O)},27:u(f){7(6.3W)f.14(17,[6]);J{6.3c.1g(u(){v f.14(q,[6])})}v q}});6.1z({3W:12,3c:[],27:u(){7(!6.3W){6.3W=U;7(6.3c){6.K(6.3c,u(){q.14(17)});6.3c=16}7(6.W.3h||6.W.3f)17.87("6o",6.27,12)}}});1p u(){6.K(("88,8a,2O,8b,8d,52,6j,8e,"+"8f,8g,8h,41,6k,8j,42,"+"4R,8k,8l,8m,2C").3o(","),u(i,o){6.E[o]=u(f){v f?q.3U(o,f):q.1S(o)}});7(6.W.3h||6.W.3f)17.8n("6o",6.27,12);J 7(6.W.1j){17.8o("<8r"+"8s 2J=62 8u=U "+"3e=//:><\\/2d>");B 2d=17.4X("62");7(2d)2d.37=u(){7(q.3D!="1X")v;q.11.33(q);6.27()};2d=16}J 7(6.W.2N)6.50=3L(u(){7(17.3D=="8y"||17.3D=="1X"){4p(6.50);6.50=16;6.27()}},10);6.G.1M(1w,"2O",6.27)};7(6.W.1j)6(1w).6u("52",u(){B 1k=6.G.1k;P(B C 1x 1k){B 4Z=1k[C],i=4Z.I;7(i&&C!=\'52\')6w 6.G.2f(4Z[i-1],C);22(--i)}});6.E.1z({6A:u(V,21,M){q.2O(V,21,M,1)},2O:u(V,21,M,1W){7(6.1t(V))v q.3U("2O",V);M=M||u(){};B C="5d";7(21)7(6.1t(21)){M=21;21=16}J{21=6.3g(21);C="5V"}B 4e=q;6.3v({V:V,C:C,F:21,1W:1W,1X:u(2P,15){7(15=="2M"||!1W&&15=="5L")4e.1I("2t",2P.3G).4V().K(M,[2P.3G,15,2P]);J M.14(4e,[2P.3G,15,2P])}});v q},6B:u(){v 6.3g(q)},4V:u(){v q.2o("2d").K(u(){7(q.3e)6.59(q.3e);J 6.4a(q.2L||q.6H||q.2t||"")}).4g()}});7(!1w.3p)3p=u(){v 1p 6I("6K.6M")};6.K("5m,5Q,5O,5W,5N,5H".3o(","),u(i,o){6.E[o]=u(f){v q.3U(o,f)}});6.1z({2b:u(V,F,M,C,1W){7(6.1t(F)){M=F;F=16}v 6.3v({V:V,F:F,2M:M,4t:C,1W:1W})},6Q:u(V,F,M,C){v 6.2b(V,F,M,C,1)},59:u(V,M){v 6.2b(V,16,M,"2d")},6S:u(V,F,M){v 6.2b(V,F,M,"6m")},6U:u(V,F,M,C){7(6.1t(F)){M=F;F={}}v 6.3v({C:"5V",V:V,F:F,2M:M,4t:C})},6X:u(29){6.3q.29=29},6Y:u(5c){6.1z(6.3q,5c)},3q:{1k:U,C:"5d",29:0,5r:"70/x-73-3w-77",5h:U,48:U,F:16},3S:{},3v:u(s){s=6.1z({},6.3q,s);7(s.F){7(s.5h&&1C s.F!="23")s.F=6.3g(s.F);7(s.C.4m()=="2b"){s.V+=((s.V.18("?")>-1)?"&":"?")+s.F;s.F=16}}7(s.1k&&!6.4E++)6.G.1S("5m");B 4y=12;B N=1p 3p();N.7j(s.C,s.V,s.48);7(s.F)N.3A("7l-7m",s.5r);7(s.1W)N.3A("7o-4K-7q",6.3S[s.V]||"7s, 7t 7w 7x 4o:4o:4o 7z");N.3A("X-7B-7C","3p");7(N.7E)N.3A("7F","7G");7(s.5G)s.5G(N);7(s.1k)6.G.1S("5H",[N,s]);B 37=u(4s){7(N&&(N.3D==4||4s=="29")){4y=U;7(3I){4p(3I);3I=16}B 15;2G{15=6.5Z(N)&&4s!="29"?s.1W&&6.69(N,s.V)?"5L":"2M":"2C";7(15!="2C"){B 3F;2G{3F=N.4P("6b-4K")}2w(e){}7(s.1W&&3F)6.3S[s.V]=3F;B F=6.6i(N,s.4t);7(s.2M)s.2M(F,15);7(s.1k)6.G.1S("5N",[N,s])}J 6.3J(s,N,15)}2w(e){15="2C";6.3J(s,N,15,e)}7(s.1k)6.G.1S("5O",[N,s]);7(s.1k&&!--6.4E)6.G.1S("5Q");7(s.1X)s.1X(N,15);7(s.48)N=16}};B 3I=3L(37,13);7(s.29>0)57(u(){7(N){N.7N();7(!4y)37("29")}},s.29);2G{N.7Q(s.F)}2w(e){6.3J(s,N,16,e)}7(!s.48)37();v N},3J:u(s,N,15,e){7(s.2C)s.2C(N,15,e);7(s.1k)6.G.1S("5W",[N,s,e])},4E:0,5Z:u(r){2G{v!r.15&&7V.7W=="4G:"||(r.15>=5X&&r.15<7X)||r.15==6d||6.W.2N&&r.15==T}2w(e){}v 12},69:u(N,V){2G{B 6e=N.4P("6b-4K");v N.15==6d||6e==6.3S[V]||6.W.2N&&N.15==T}2w(e){}v 12},6i:u(r,C){B 4Q=r.4P("8c-C");B F=!C&&4Q&&4Q.18("N")>=0;F=C=="N"||F?r.8i:r.3G;7(C=="2d")6.4a(F);7(C=="6m")40("F = "+F);7(C=="4U")6("<1V>").4U(F).4V();v F},3g:u(a){B s=[];7(a.1l==2y||a.3Y)6.K(a,u(){s.1g(2x(q.Y)+"="+2x(q.O))});J P(B j 1x a)7(a[j]&&a[j].1l==2y)6.K(a[j],u(){s.1g(2x(j)+"="+2x(q))});J s.1g(2x(j)+"="+2x(a[j]));v s.6t("&")},4a:u(F){7(1w.54)1w.54(F);J 7(6.W.2N)1w.57(F,0);J 40.3n(1w,F)}});6.E.1z({1L:u(R,M){B 1G=q.1D(":1G");R?1G.26({28:"1L",3V:"1L",1d:"1L"},R,M):1G.K(u(){q.1q.1h=q.2E?q.2E:"";7(6.1m(q,"1h")=="1Z")q.1q.1h="2D"});v q},1K:u(R,M){B 3i=q.1D(":3i");R?3i.26({28:"1K",3V:"1K",1d:"1K"},R,M):3i.K(u(){q.2E=q.2E||6.1m(q,"1h");7(q.2E=="1Z")q.2E="2D";q.1q.1h="1Z"});v q},5g:6.E.3X,3X:u(E,4I){B 1E=1A;v 6.1t(E)&&6.1t(4I)?q.5g(E,4I):q.K(u(){6(q)[6(q).4l(":1G")?"1L":"1K"].14(6(q),1E)})},7a:u(R,M){v q.26({28:"1L"},R,M)},7c:u(R,M){v q.26({28:"1K"},R,M)},7f:u(R,M){v q.K(u(){B 5k=6(q).4l(":1G")?"1L":"1K";6(q).26({28:5k},R,M)})},7r:u(R,M){v q.26({1d:"1L"},R,M)},7u:u(R,M){v q.26({1d:"1K"},R,M)},7y:u(R,43,M){v q.26({1d:43},R,M)},26:u(H,R,1v,M){v q.1F(u(){q.2F=6.1z({},H);B 1u=6.R(R,1v,M);P(B p 1x H){B e=1p 6.3b(q,1u,p);7(H[p].1l==3Q)e.2s(e.Q(),H[p]);J e[H[p]](H)}})},1F:u(C,E){7(!E){E=C;C="3b"}v q.K(u(){7(!q.1F)q.1F={};7(!q.1F[C])q.1F[C]=[];q.1F[C].1g(E);7(q.1F[C].I==1)E.14(q)})}});6.1z({R:u(R,1v,E){B 1u=R&&R.1l==7K?R:{1X:E||!E&&1v||6.1t(R)&&R,25:R,1v:E&&1v||1v&&1v.1l!=4w&&1v};1u.25=(1u.25&&1u.25.1l==3Q?1u.25:{7R:7S,7T:5X}[1u.25])||7U;1u.1N=1u.1X;1u.1X=u(){6.6a(q,"3b");7(6.1t(1u.1N))1u.1N.14(q)};v 1u},1v:{},1F:{},6a:u(D,C){C=C||"3b";7(D.1F&&D.1F[C]){D.1F[C].4L();B f=D.1F[C][0];7(f)f.14(D)}},3b:u(D,1e,H){B z=q;B y=D.1q;B 4D=6.1m(D,"1h");y.5T="1G";z.a=u(){7(1e.49)1e.49.14(D,[z.2p]);7(H=="1d")6.1I(y,"1d",z.2p);J 7(6l(z.2p))y[H]=6l(z.2p)+"4S";y.1h="2D"};z.6v=u(){v 4T(6.1m(D,H))};z.Q=u(){B r=4T(6.30(D,H));v r&&r>-8z?r:z.6v()};z.2s=u(4f,43){z.4J=(1p 5o()).5w();z.2p=4f;z.a();z.4q=3L(u(){z.49(4f,43)},13)};z.1L=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();1e.1L=U;z.2s(0,D.1y[H]);7(H!="1d")y[H]="5a"};z.1K=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();1e.1K=U;z.2s(D.1y[H],0)};z.3X=u(){7(!D.1y)D.1y={};D.1y[H]=q.Q();7(4D=="1Z"){1e.1L=U;7(H!="1d")y[H]="5a";z.2s(0,D.1y[H])}J{1e.1K=U;z.2s(D.1y[H],0)}};z.49=u(32,47){B t=(1p 5o()).5w();7(t>1e.25+z.4J){4p(z.4q);z.4q=16;z.2p=47;z.a();7(D.2F)D.2F[H]=U;B 2c=U;P(B i 1x D.2F)7(D.2F[i]!==U)2c=12;7(2c){y.5T="";y.1h=4D;7(6.1m(D,"1h")=="1Z")y.1h="2D";7(1e.1K)y.1h="1Z";7(1e.1K||1e.1L)P(B p 1x D.2F)7(p=="1d")6.1I(y,p,D.1y[p]);J y[p]=""}7(2c&&6.1t(1e.1X))1e.1X.14(D)}J{B n=t-q.4J;B p=n/1e.25;z.2p=1e.1v&&6.1v[1e.1v]?6.1v[1e.1v](p,n,32,(47-32),1e.25):((-6h.7O(p*6h.8L)/2)+0.5)*(47-32)+32;z.a()}}}})}',62,545,'||||||jQuery|if|||||||||||||||||||this||||function|return||||||var|type|elem|fn|data|event|prop|length|else|each|ret|callback|xml|value|for|cur|speed|element|undefined|true|url|browser||name|||parentNode|false||apply|status|null|document|indexOf|className|val|firstChild|obj|opacity|options|nodeName|push|display|result|msie|global|constructor|css|test|handler|new|style|arg|expr|isFunction|opt|easing|window|in|orig|extend|arguments|context|typeof|filter|args|queue|hidden|events|attr|re|hide|show|add|old|target|table|token|replace|trigger|num|elems|div|ifModified|complete|key|none|tbody|params|while|string|nodeType|duration|animate|ready|height|timeout|nth|get|done|script|nextSibling|remove|not|index|tb|fix|merge|oid|z0|preventDefault|find|now|grep|pushStack|custom|innerHTML|first|cssFloat|catch|encodeURIComponent|Array|el|guid|sibling|error|block|oldblock|curAnim|try|stopPropagation|childNodes|id|wrap|text|success|safari|load|res|exec|al|_|last|substr|has|disabled|insertBefore|selected|checked|curCSS|map|firstNum|removeChild|re2|trim|getAttribute|onreadystatechange|handlers|on|originalEvent|fx|readyList|parPos|src|opera|param|mozilla|visible|domManip|clean|cloneNode|tr|call|split|XMLHttpRequest|ajaxSettings|append|child|String|empty|ajax|form|button|inArray|multiFilter|setRequestHeader|foundToken|9_|readyState|tag|modRes|responseText|second|ival|handleError|toUpperCase|setInterval|makeArray|slice|break|oWidth|Number|returnValue|lastModified|styleFloat|bind|width|isReady|toggle|jquery|dir|eval|mouseover|select|to|defaultView|position|oHeight|lastNum|async|step|globalEval|static|pos|swap|self|from|end|float|alpha|radio|inv|is|toLowerCase|visibility|00|clearInterval|timer|rec|isTimeout|dataType|_resort|RegExp|Function|getAll|requestDone|parents|matched|isXMLDoc|appendChild|oldDisplay|active|triggered|file|documentElement|fn2|startTime|Modified|shift|lastToggle|deep|handleHover|getResponseHeader|ct|submit|px|parseFloat|html|evalScripts|getComputedStyle|getElementById|clone|els|safariTimer|currentStyle|unload|force|execScript|getPropertyValue|newProp|setTimeout|zoom|getScript|1px|sl|settings|GET|rl|check|_toggle|processData|prepend|before|state|removeAttr|ajaxStart|lt|Date|gt|eq|contentType|previousSibling|after|parent|contains|getTime|checkbox|password|appendTo|image|reset|input|webkit|href|continue|beforeSend|ajaxSend|ownerDocument|getElementsByTagName|tmp|notmodified|parse|ajaxSuccess|ajaxComplete|_prefix|ajaxStop|even|odd|overflow|delete|POST|ajaxError|200|handle|httpSuccess|nodeValue|unshift|__ie_init|srcElement|body|pageX|tagName|clientX|scrollLeft|httpNotModified|dequeue|Last|scrollTop|304|xmlRes|unbind|100|Math|httpData|click|mouseout|parseInt|json|createElement|DOMContentLoaded|prevObject|ol|setArray|exclude|join|one|max|do|relative|clientHeight|clientWidth|loadIfModified|serialize|toString|thead|tfoot|td|th|textContent|ActiveXObject|htmlFor|Microsoft|class|XMLHTTP|readOnly|gi|match|getIfModified|9999|getJSON|getAttributeNode|post|setAttribute|ig|ajaxTimeout|ajaxSetup|concat|application|userAgent|compatible|www|compatMode|CSS1Compat|next|urlencoded|siblings|children|slideDown|prependTo|slideUp|Top|insertAfter|slideToggle|removeAttribute|addClass|removeClass|open|toggleClass|Content|Type|lastChild|If|only|Since|fadeIn|Thu|01|fadeOut|enabled|Jan|1970|fadeTo|GMT|textarea|Requested|With|prev|overrideMimeType|Connection|close|boxModel|right|object|Object|navigator|substring|abort|cos|font|send|slow|600|fast|400|location|protocol|300|pageY|clientY|method|action|cancelBubble|hover|fromElement|toElement|relatedTarget|removeEventListener|blur|readonly|focus|resize|content|scroll|dblclick|mousedown|mouseup|mousemove|responseXML|change|keydown|keypress|keyup|addEventListener|write|prototype|size|scr|ipt|createTextNode|defer|FORM|reverse|noConflict|loaded|10000|weight|line|Bottom|Right|Left|padding|border|Width|offsetHeight|offsetWidth|absolute|PI|left'.split('|'),0,{}))
diff --git a/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js b/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js
deleted file mode 100644
index e09e63a4f58aef4ac04fa7b956d6480f20c3196e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/uni-form/uni-form.jquery.js
+++ /dev/null
@@ -1,106 +0,0 @@
-jQuery.fn.uniform = function(settings) {
- settings = jQuery.extend({
- valid_class : 'valid',
- invalid_class : 'invalid',
- focused_class : 'focused',
- holder_class : 'ctrlHolder',
- field_selector : 'input, select, textarea'
- }, settings);
-
- return this.each(function() {
- var form = jQuery(this);
-
- // Focus specific control holder
- var focusControlHolder = function(element) {
- var parent = element.parent();
-
- while(typeof(parent) == 'object') {
- if(parent) {
- if(parent[0] && (parent[0].className.indexOf(settings.holder_class) >= 0)) {
- parent.addClass(settings.focused_class);
- return;
- } // if
- } // if
- parent = jQuery(parent.parent());
- } // while
- };
-
- // Select form fields and attach them higlighter functionality
- form.find(settings.field_selector).focus(function() {
- form.find('.' + settings.focused_class).removeClass(settings.focused_class);
- focusControlHolder(jQuery(this));
- }).blur(function() {
- form.find('.' + settings.focused_class).removeClass(settings.focused_class);
- });
- });
-};
-
-// Auto set on page load...
-$(document).ready(function() {
- jQuery('form.uniForm').uniform();
-});
-
-function AR_ResetDates()
-{
- if ($("#autoresponder:checked").val() == null) {
- $("form.uniForm select").each(
- function(){
- $(this).val( $("#" + $(this).attr("id") + " option:first").val() );
- }
- );
- }
-}
-
-function AR_SetNow()
-{
- DateTime_SetValues('autoresponder_start_date');
-
- now = new Date();
- end_date = new Date(now.getFullYear(), now.getMonth(), now.getDate()+2, 0, 0);
-
- DateTime_SetValues('autoresponder_end_date', end_date);
-}
-
-function DateTime_SetValues(datetime_id, date_obj)
-{
- var selects = ['day', 'month', 'year', 'hour', 'minute', 'second'];
-
- if ( (typeof(date_obj) == 'object') && (typeof(date_obj.getDate()) == 'number') ) {
- var now = date_obj;
- } else {
- var now = new Date();
- }
-
- jQuery.each(selects, function() {
- var unit_name = this.toString();
- var unit_value = '';
-
- switch(unit_name)
- {
- case 'day':
- unit_value = now.getDate();
- break;
- case 'month':
- unit_value = now.getMonth() + 1;
- if(unit_value < 10) unit_value = '0'+unit_value;
- break;
- case 'year':
- unit_value = now.getFullYear();
- break;
- case 'hour':
- unit_value = now.getHours();
- break;
- case 'minute':
- unit_value = Math.round(parseInt(now.getMinutes())/5)*5;
- break;
- case 'second':
- unit_value = now.getSeconds();
- break;
- }
-
- unit_obj = $("#"+ datetime_id + "_" + unit_name);
- if (unit_obj.val() !== null) {
- unit_obj.val(unit_value);
- }
- });
-}
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/animation/README b/interface/ispconfig/interface/js/yui/animation/README
deleted file mode 100644
index a3160f62d8a1e53b2ccd5dd5bdd182d5b1c6bedc..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/animation/README
+++ /dev/null
@@ -1,45 +0,0 @@
-Animation Release Notes
-
-*** version 2.2.0 **
-
-* Fixed AnimMgr.stop() when called without tween
-
-*** version 0.12.2 ***
-
-* raised AnimMgr.fps to 1000
-
-*** version 0.12.1 ***
-* minified version no longer strips line breaks
-
-*** version 0.12.0 ***
-
-* added boolean finish argument to Anim.stop()
-
-*** version 0.11.3 ***
-
-* no changes
-
-*** version 0.11.1 ***
-
-* changed "prototype" shorthand to "proto" (workaround firefox < 1.5 scoping
-bug)
-
-*** version 0.11.0 ***
-
-* ColorAnim subclass added
-* Motion and Scroll now inherit from ColorAnim
-* getDefaultUnit method added
-* defaultUnit and defaultUnits deprecated
-* getDefault and setDefault methods deprecated
-
-*** version 0.10.0 ***
-
-* Scroll now handles relative ("by") animation correctly
-
-* Now converts "auto" values of "from" to appropriate initial values
-
-*** version 0.9.0 ***
-
-* Initial release
-
-
diff --git a/interface/ispconfig/interface/js/yui/animation/animation-debug.js b/interface/ispconfig/interface/js/yui/animation/animation-debug.js
deleted file mode 100644
index 43061953e3b7ff90ee184b85e392dfdee39ac773..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/animation/animation-debug.js
+++ /dev/null
@@ -1,1361 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/*
-Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-*/
-
-/**
- * The animation module provides allows effects to be added to HTMLElements.
- * @module animation
- * @requires yahoo, event, dom
- */
-
-/**
- *
- * Base animation class that provides the interface for building animated effects.
- * Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);
- * @class Anim
- * @namespace YAHOO.util
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @constructor
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
-
-YAHOO.util.Anim = function(el, attributes, duration, method) {
- if (el) {
- this.init(el, attributes, duration, method);
- }
-};
-
-YAHOO.util.Anim.prototype = {
- /**
- * Provides a readable name for the Anim instance.
- * @method toString
- * @return {String}
- */
- toString: function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Anim " + id);
- },
-
- patterns: { // cached for performance
- noNegatives: /width|height|opacity|padding/i, // keep at zero or above
- offsetAttribute: /^((width|height)|(top|left))$/, // use offsetValue as default
- defaultUnit: /width|height|top$|bottom$|left$|right$/i, // use 'px' by default
- offsetUnit: /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset
- },
-
- /**
- * Returns the value computed by the animation's "method".
- * @method doMethod
- * @param {String} attr The name of the attribute.
- * @param {Number} start The value this attribute should start from for this animation.
- * @param {Number} end The value this attribute should end at for this animation.
- * @return {Number} The Value to be applied to the attribute.
- */
- doMethod: function(attr, start, end) {
- return this.method(this.currentFrame, start, end - start, this.totalFrames);
- },
-
- /**
- * Applies a value to an attribute.
- * @method setAttribute
- * @param {String} attr The name of the attribute.
- * @param {Number} val The value to be applied to the attribute.
- * @param {String} unit The unit ('px', '%', etc.) of the value.
- */
- setAttribute: function(attr, val, unit) {
- if ( this.patterns.noNegatives.test(attr) ) {
- val = (val > 0) ? val : 0;
- }
-
- YAHOO.util.Dom.setStyle(this.getEl(), attr, val + unit);
- },
-
- /**
- * Returns current value of the attribute.
- * @method getAttribute
- * @param {String} attr The name of the attribute.
- * @return {Number} val The current value of the attribute.
- */
- getAttribute: function(attr) {
- var el = this.getEl();
- var val = YAHOO.util.Dom.getStyle(el, attr);
-
- if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
- return parseFloat(val);
- }
-
- var a = this.patterns.offsetAttribute.exec(attr) || [];
- var pos = !!( a[3] ); // top or left
- var box = !!( a[2] ); // width or height
-
- // use offsets for width/height and abs pos top/left
- if ( box || (YAHOO.util.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
- val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
- } else { // default to zero for other 'auto'
- val = 0;
- }
-
- return val;
- },
-
- /**
- * Returns the unit to use when none is supplied.
- * @method getDefaultUnit
- * @param {attr} attr The name of the attribute.
- * @return {String} The default unit to be used.
- */
- getDefaultUnit: function(attr) {
- if ( this.patterns.defaultUnit.test(attr) ) {
- return 'px';
- }
-
- return '';
- },
-
- /**
- * Sets the actual values to be used during the animation. Should only be needed for subclass use.
- * @method setRuntimeAttribute
- * @param {Object} attr The attribute object
- * @private
- */
- setRuntimeAttribute: function(attr) {
- var start;
- var end;
- var attributes = this.attributes;
-
- this.runtimeAttributes[attr] = {};
-
- var isset = function(prop) {
- return (typeof prop !== 'undefined');
- };
-
- if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) {
- return false; // note return; nothing to animate to
- }
-
- start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr);
-
- // To beats by, per SMIL 2.1 spec
- if ( isset(attributes[attr]['to']) ) {
- end = attributes[attr]['to'];
- } else if ( isset(attributes[attr]['by']) ) {
- if (start.constructor == Array) {
- end = [];
- for (var i = 0, len = start.length; i < len; ++i) {
- end[i] = start[i] + attributes[attr]['by'][i];
- }
- } else {
- end = start + attributes[attr]['by'];
- }
- }
-
- this.runtimeAttributes[attr].start = start;
- this.runtimeAttributes[attr].end = end;
-
- // set units if needed
- this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ? attributes[attr]['unit'] : this.getDefaultUnit(attr);
- },
-
- /**
- * Constructor for Anim instance.
- * @method init
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- init: function(el, attributes, duration, method) {
- /**
- * Whether or not the animation is running.
- * @property isAnimated
- * @private
- * @type Boolean
- */
- var isAnimated = false;
-
- /**
- * A Date object that is created when the animation begins.
- * @property startTime
- * @private
- * @type Date
- */
- var startTime = null;
-
- /**
- * The number of frames this animation was able to execute.
- * @property actualFrames
- * @private
- * @type Int
- */
- var actualFrames = 0;
-
- /**
- * The element to be animated.
- * @property el
- * @private
- * @type HTMLElement
- */
- el = YAHOO.util.Dom.get(el);
-
- /**
- * The collection of attributes to be animated.
- * Each attribute must have at least a "to" or "by" defined in order to animate.
- * If "to" is supplied, the animation will end with the attribute at that value.
- * If "by" is supplied, the animation will end at that value plus its starting value.
- * If both are supplied, "to" is used, and "by" is ignored.
- * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values).
- * @property attributes
- * @type Object
- */
- this.attributes = attributes || {};
-
- /**
- * The length of the animation. Defaults to "1" (second).
- * @property duration
- * @type Number
- */
- this.duration = duration || 1;
-
- /**
- * The method that will provide values to the attribute(s) during the animation.
- * Defaults to "YAHOO.util.Easing.easeNone".
- * @property method
- * @type Function
- */
- this.method = method || YAHOO.util.Easing.easeNone;
-
- /**
- * Whether or not the duration should be treated as seconds.
- * Defaults to true.
- * @property useSeconds
- * @type Boolean
- */
- this.useSeconds = true; // default to seconds
-
- /**
- * The location of the current animation on the timeline.
- * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
- * @property currentFrame
- * @type Int
- */
- this.currentFrame = 0;
-
- /**
- * The total number of frames to be executed.
- * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
- * @property totalFrames
- * @type Int
- */
- this.totalFrames = YAHOO.util.AnimMgr.fps;
-
-
- /**
- * Returns a reference to the animated element.
- * @method getEl
- * @return {HTMLElement}
- */
- this.getEl = function() { return el; };
-
- /**
- * Checks whether the element is currently animated.
- * @method isAnimated
- * @return {Boolean} current value of isAnimated.
- */
- this.isAnimated = function() {
- return isAnimated;
- };
-
- /**
- * Returns the animation start time.
- * @method getStartTime
- * @return {Date} current value of startTime.
- */
- this.getStartTime = function() {
- return startTime;
- };
-
- this.runtimeAttributes = {};
-
- var logger = {};
- logger.log = function() {YAHOO.log.apply(window, arguments)};
-
- logger.log('creating new instance of ' + this);
-
- /**
- * Starts the animation by registering it with the animation manager.
- * @method animate
- */
- this.animate = function() {
- if ( this.isAnimated() ) {
- return false;
- }
-
- this.currentFrame = 0;
-
- this.totalFrames = ( this.useSeconds ) ? Math.ceil(YAHOO.util.AnimMgr.fps * this.duration) : this.duration;
-
- YAHOO.util.AnimMgr.registerElement(this);
- };
-
- /**
- * Stops the animation. Normally called by AnimMgr when animation completes.
- * @method stop
- * @param {Boolean} finish (optional) If true, animation will jump to final frame.
- */
- this.stop = function(finish) {
- if (finish) {
- this.currentFrame = this.totalFrames;
- this._onTween.fire();
- }
- YAHOO.util.AnimMgr.stop(this);
- };
-
- var onStart = function() {
- this.onStart.fire();
-
- this.runtimeAttributes = {};
- for (var attr in this.attributes) {
- this.setRuntimeAttribute(attr);
- }
-
- isAnimated = true;
- actualFrames = 0;
- startTime = new Date();
- };
-
- /**
- * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s).
- * @private
- */
-
- var onTween = function() {
- var data = {
- duration: new Date() - this.getStartTime(),
- currentFrame: this.currentFrame
- };
-
- data.toString = function() {
- return (
- 'duration: ' + data.duration +
- ', currentFrame: ' + data.currentFrame
- );
- };
-
- this.onTween.fire(data);
-
- var runtimeAttributes = this.runtimeAttributes;
-
- for (var attr in runtimeAttributes) {
- this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit);
- }
-
- actualFrames += 1;
- };
-
- var onComplete = function() {
- var actual_duration = (new Date() - startTime) / 1000 ;
-
- var data = {
- duration: actual_duration,
- frames: actualFrames,
- fps: actualFrames / actual_duration
- };
-
- data.toString = function() {
- return (
- 'duration: ' + data.duration +
- ', frames: ' + data.frames +
- ', fps: ' + data.fps
- );
- };
-
- isAnimated = false;
- actualFrames = 0;
- this.onComplete.fire(data);
- };
-
- /**
- * Custom event that fires after onStart, useful in subclassing
- * @private
- */
- this._onStart = new YAHOO.util.CustomEvent('_start', this, true);
-
- /**
- * Custom event that fires when animation begins
- * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction)
- * @event onStart
- */
- this.onStart = new YAHOO.util.CustomEvent('start', this);
-
- /**
- * Custom event that fires between each frame
- * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction)
- * @event onTween
- */
- this.onTween = new YAHOO.util.CustomEvent('tween', this);
-
- /**
- * Custom event that fires after onTween
- * @private
- */
- this._onTween = new YAHOO.util.CustomEvent('_tween', this, true);
-
- /**
- * Custom event that fires when animation ends
- * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction)
- * @event onComplete
- */
- this.onComplete = new YAHOO.util.CustomEvent('complete', this);
- /**
- * Custom event that fires after onComplete
- * @private
- */
- this._onComplete = new YAHOO.util.CustomEvent('_complete', this, true);
-
- this._onStart.subscribe(onStart);
- this._onTween.subscribe(onTween);
- this._onComplete.subscribe(onComplete);
- }
-};
-
-/**
- * Handles animation queueing and threading.
- * Used by Anim and subclasses.
- * @class AnimMgr
- * @namespace YAHOO.util
- */
-YAHOO.util.AnimMgr = new function() {
- /**
- * Reference to the animation Interval.
- * @property thread
- * @private
- * @type Int
- */
- var thread = null;
-
- /**
- * The current queue of registered animation objects.
- * @property queue
- * @private
- * @type Array
- */
- var queue = [];
-
- /**
- * The number of active animations.
- * @property tweenCount
- * @private
- * @type Int
- */
- var tweenCount = 0;
-
- /**
- * Base frame rate (frames per second).
- * Arbitrarily high for better x-browser calibration (slower browsers drop more frames).
- * @property fps
- * @type Int
- *
- */
- this.fps = 1000;
-
- /**
- * Interval delay in milliseconds, defaults to fastest possible.
- * @property delay
- * @type Int
- *
- */
- this.delay = 1;
-
- /**
- * Adds an animation instance to the animation queue.
- * All animation instances must be registered in order to animate.
- * @method registerElement
- * @param {object} tween The Anim instance to be be registered
- */
- this.registerElement = function(tween) {
- queue[queue.length] = tween;
- tweenCount += 1;
- tween._onStart.fire();
- this.start();
- };
-
- /**
- * removes an animation instance from the animation queue.
- * All animation instances must be registered in order to animate.
- * @method unRegister
- * @param {object} tween The Anim instance to be be registered
- * @param {Int} index The index of the Anim instance
- * @private
- */
- this.unRegister = function(tween, index) {
- tween._onComplete.fire();
- index = index || getIndex(tween);
- if (index != -1) {
- queue.splice(index, 1);
- }
-
- tweenCount -= 1;
- if (tweenCount <= 0) {
- this.stop();
- }
- };
-
- /**
- * Starts the animation thread.
- * Only one thread can run at a time.
- * @method start
- */
- this.start = function() {
- if (thread === null) {
- thread = setInterval(this.run, this.delay);
- }
- };
-
- /**
- * Stops the animation thread or a specific animation instance.
- * @method stop
- * @param {object} tween A specific Anim instance to stop (optional)
- * If no instance given, Manager stops thread and all animations.
- */
- this.stop = function(tween) {
- if (!tween) {
- clearInterval(thread);
-
- for (var i = 0, len = queue.length; i < len; ++i) {
- if ( queue[0].isAnimated() ) {
- this.unRegister(queue[0], 0);
- }
- }
-
- queue = [];
- thread = null;
- tweenCount = 0;
- }
- else {
- this.unRegister(tween);
- }
- };
-
- /**
- * Called per Interval to handle each animation frame.
- * @method run
- */
- this.run = function() {
- for (var i = 0, len = queue.length; i < len; ++i) {
- var tween = queue[i];
- if ( !tween || !tween.isAnimated() ) { continue; }
-
- if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null)
- {
- tween.currentFrame += 1;
-
- if (tween.useSeconds) {
- correctFrame(tween);
- }
- tween._onTween.fire();
- }
- else { YAHOO.util.AnimMgr.stop(tween, i); }
- }
- };
-
- var getIndex = function(anim) {
- for (var i = 0, len = queue.length; i < len; ++i) {
- if (queue[i] == anim) {
- return i; // note return;
- }
- }
- return -1;
- };
-
- /**
- * On the fly frame correction to keep animation on time.
- * @method correctFrame
- * @private
- * @param {Object} tween The Anim instance being corrected.
- */
- var correctFrame = function(tween) {
- var frames = tween.totalFrames;
- var frame = tween.currentFrame;
- var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
- var elapsed = (new Date() - tween.getStartTime());
- var tweak = 0;
-
- if (elapsed < tween.duration * 1000) { // check if falling behind
- tweak = Math.round((elapsed / expected - 1) * tween.currentFrame);
- } else { // went over duration, so jump to end
- tweak = frames - (frame + 1);
- }
- if (tweak > 0 && isFinite(tweak)) { // adjust if needed
- if (tween.currentFrame + tweak >= frames) {// dont go past last frame
- tweak = frames - (frame + 1);
- }
-
- tween.currentFrame += tweak;
- }
- };
-};
-/**
- * Used to calculate Bezier splines for any number of control points.
- * @class Bezier
- * @namespace YAHOO.util
- *
- */
-YAHOO.util.Bezier = new function() {
- /**
- * Get the current position of the animated element based on t.
- * Each point is an array of "x" and "y" values (0 = x, 1 = y)
- * At least 2 points are required (start and end).
- * First point is start. Last point is end.
- * Additional control points are optional.
- * @method getPosition
- * @param {Array} points An array containing Bezier points
- * @param {Number} t A number between 0 and 1 which is the basis for determining current position
- * @return {Array} An array containing int x and y member data
- */
- this.getPosition = function(points, t) {
- var n = points.length;
- var tmp = [];
-
- for (var i = 0; i < n; ++i){
- tmp[i] = [points[i][0], points[i][1]]; // save input
- }
-
- for (var j = 1; j < n; ++j) {
- for (i = 0; i < n - j; ++i) {
- tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
- tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
- }
- }
-
- return [ tmp[0][0], tmp[0][1] ];
-
- };
-};
-(function() {
-/**
- * Anim subclass for color transitions.
- * Usage: var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);
Color values can be specified with either 112233, #112233,
- * [255,255,255], or rgb(255,255,255)
- * @class ColorAnim
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @constructor
- * @extends YAHOO.util.Anim
- * @param {HTMLElement | String} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.ColorAnim = function(el, attributes, duration, method) {
- YAHOO.util.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
- };
-
- YAHOO.extend(YAHOO.util.ColorAnim, YAHOO.util.Anim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.ColorAnim.superclass;
- var proto = Y.ColorAnim.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("ColorAnim " + id);
- };
-
- proto.patterns.color = /color$/i;
- proto.patterns.rgb = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
- proto.patterns.hex = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;
- proto.patterns.hex3 = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;
- proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari
-
- /**
- * Attempts to parse the given string and return a 3-tuple.
- * @method parseColor
- * @param {String} s The string to parse.
- * @return {Array} The 3-tuple of rgb values.
- */
- proto.parseColor = function(s) {
- if (s.length == 3) { return s; }
-
- var c = this.patterns.hex.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ];
- }
-
- c = this.patterns.rgb.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ];
- }
-
- c = this.patterns.hex3.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ];
- }
-
- return null;
- };
-
- proto.getAttribute = function(attr) {
- var el = this.getEl();
- if ( this.patterns.color.test(attr) ) {
- var val = YAHOO.util.Dom.getStyle(el, attr);
-
- if (this.patterns.transparent.test(val)) { // bgcolor default
- var parent = el.parentNode; // try and get from an ancestor
- val = Y.Dom.getStyle(parent, attr);
-
- while (parent && this.patterns.transparent.test(val)) {
- parent = parent.parentNode;
- val = Y.Dom.getStyle(parent, attr);
- if (parent.tagName.toUpperCase() == 'HTML') {
- val = '#fff';
- }
- }
- }
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.doMethod = function(attr, start, end) {
- var val;
-
- if ( this.patterns.color.test(attr) ) {
- val = [];
- for (var i = 0, len = start.length; i < len; ++i) {
- val[i] = superclass.doMethod.call(this, attr, start[i], end[i]);
- }
-
- val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';
- }
- else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
-
- return val;
- };
-
- proto.setRuntimeAttribute = function(attr) {
- superclass.setRuntimeAttribute.call(this, attr);
-
- if ( this.patterns.color.test(attr) ) {
- var attributes = this.attributes;
- var start = this.parseColor(this.runtimeAttributes[attr].start);
- var end = this.parseColor(this.runtimeAttributes[attr].end);
- // fix colors if going "by"
- if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) {
- end = this.parseColor(attributes[attr].by);
-
- for (var i = 0, len = start.length; i < len; ++i) {
- end[i] = start[i] + end[i];
- }
- }
-
- this.runtimeAttributes[attr].start = start;
- this.runtimeAttributes[attr].end = end;
- }
- };
-})();
-/*
-TERMS OF USE - EASING EQUATIONS
-Open source under the BSD License.
-Copyright 2001 Robert Penner All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
- * Singleton that determines how an animation proceeds from start to end.
- * @class Easing
- * @namespace YAHOO.util
-*/
-
-YAHOO.util.Easing = {
-
- /**
- * Uniform speed between points.
- * @method easeNone
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeNone: function (t, b, c, d) {
- return c*t/d + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quadratic)
- * @method easeIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeIn: function (t, b, c, d) {
- return c*(t/=d)*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quadratic)
- * @method easeOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOut: function (t, b, c, d) {
- return -c *(t/=d)*(t-2) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quadratic)
- * @method easeBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBoth: function (t, b, c, d) {
- if ((t/=d/2) < 1) {
- return c/2*t*t + b;
- }
-
- return -c/2 * ((--t)*(t-2) - 1) + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quartic)
- * @method easeInStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeInStrong: function (t, b, c, d) {
- return c*(t/=d)*t*t*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quartic)
- * @method easeOutStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOutStrong: function (t, b, c, d) {
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quartic)
- * @method easeBothStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBothStrong: function (t, b, c, d) {
- if ((t/=d/2) < 1) {
- return c/2*t*t*t*t + b;
- }
-
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
- },
-
- /**
- * Snap in elastic effect.
- * @method elasticIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
-
- elasticIn: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
- if ( (t /= d) == 1 ) {
- return b+c;
- }
- if (!p) {
- p=d*.3;
- }
-
- if (!a || a < Math.abs(c)) {
- a = c;
- var s = p/4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- },
-
- /**
- * Snap out elastic effect.
- * @method elasticOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticOut: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
- if ( (t /= d) == 1 ) {
- return b+c;
- }
- if (!p) {
- p=d*.3;
- }
-
- if (!a || a < Math.abs(c)) {
- a = c;
- var s = p / 4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
- },
-
- /**
- * Snap both elastic effect.
- * @method elasticBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticBoth: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
-
- if ( (t /= d/2) == 2 ) {
- return b+c;
- }
-
- if (!p) {
- p = d*(.3*1.5);
- }
-
- if ( !a || a < Math.abs(c) ) {
- a = c;
- var s = p/4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- if (t < 1) {
- return -.5*(a*Math.pow(2,10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- }
- return a*Math.pow(2,-10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
- },
-
-
- /**
- * Backtracks slightly, then reverses direction and moves to end.
- * @method backIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backIn: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
- return c*(t/=d)*t*((s+1)*t - s) + b;
- },
-
- /**
- * Overshoots end, then reverses and comes back to end.
- * @method backOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backOut: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
- },
-
- /**
- * Backtracks slightly, then reverses direction, overshoots end,
- * then reverses and comes back to end.
- * @method backBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backBoth: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
-
- if ((t /= d/2 ) < 1) {
- return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
- }
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
- },
-
- /**
- * Bounce off of start.
- * @method bounceIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceIn: function (t, b, c, d) {
- return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
- },
-
- /**
- * Bounces off end.
- * @method bounceOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceOut: function (t, b, c, d) {
- if ((t/=d) < (1/2.75)) {
- return c*(7.5625*t*t) + b;
- } else if (t < (2/2.75)) {
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
- } else if (t < (2.5/2.75)) {
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
- }
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
- },
-
- /**
- * Bounces off start and end.
- * @method bounceBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceBoth: function (t, b, c, d) {
- if (t < d/2) {
- return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
- }
- return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
- }
-};
-
-(function() {
-/**
- * Anim subclass for moving elements along a path defined by the "points"
- * member of "attributes". All "points" are arrays with x, y coordinates.
- * Usage: var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);
- * @class Motion
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @constructor
- * @extends YAHOO.util.Anim
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.Motion = function(el, attributes, duration, method) {
- if (el) { // dont break existing subclasses not using YAHOO.extend
- YAHOO.util.Motion.superclass.constructor.call(this, el, attributes, duration, method);
- }
- };
-
- YAHOO.extend(YAHOO.util.Motion, YAHOO.util.ColorAnim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.Motion.superclass;
- var proto = Y.Motion.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Motion " + id);
- };
-
- proto.patterns.points = /^points$/i;
-
- proto.setAttribute = function(attr, val, unit) {
- if ( this.patterns.points.test(attr) ) {
- unit = unit || 'px';
- superclass.setAttribute.call(this, 'left', val[0], unit);
- superclass.setAttribute.call(this, 'top', val[1], unit);
- } else {
- superclass.setAttribute.call(this, attr, val, unit);
- }
- };
-
- proto.getAttribute = function(attr) {
- if ( this.patterns.points.test(attr) ) {
- var val = [
- superclass.getAttribute.call(this, 'left'),
- superclass.getAttribute.call(this, 'top')
- ];
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.doMethod = function(attr, start, end) {
- var val = null;
-
- if ( this.patterns.points.test(attr) ) {
- var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100;
- val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t);
- } else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
- return val;
- };
-
- proto.setRuntimeAttribute = function(attr) {
- if ( this.patterns.points.test(attr) ) {
- var el = this.getEl();
- var attributes = this.attributes;
- var start;
- var control = attributes['points']['control'] || [];
- var end;
- var i, len;
-
- if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points
- control = [control];
- } else { // break reference to attributes.points.control
- var tmp = [];
- for (i = 0, len = control.length; i< len; ++i) {
- tmp[i] = control[i];
- }
- control = tmp;
- }
-
- if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative
- Y.Dom.setStyle(el, 'position', 'relative');
- }
-
- if ( isset(attributes['points']['from']) ) {
- Y.Dom.setXY(el, attributes['points']['from']); // set position to from point
- }
- else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position
-
- start = this.getAttribute('points'); // get actual top & left
-
- // TO beats BY, per SMIL 2.1 spec
- if ( isset(attributes['points']['to']) ) {
- end = translateValues.call(this, attributes['points']['to'], start);
-
- var pageXY = Y.Dom.getXY(this.getEl());
- for (i = 0, len = control.length; i < len; ++i) {
- control[i] = translateValues.call(this, control[i], start);
- }
-
-
- } else if ( isset(attributes['points']['by']) ) {
- end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ];
-
- for (i = 0, len = control.length; i < len; ++i) {
- control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
- }
- }
-
- this.runtimeAttributes[attr] = [start];
-
- if (control.length > 0) {
- this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control);
- }
-
- this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end;
- }
- else {
- superclass.setRuntimeAttribute.call(this, attr);
- }
- };
-
- var translateValues = function(val, start) {
- var pageXY = Y.Dom.getXY(this.getEl());
- val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ];
-
- return val;
- };
-
- var isset = function(prop) {
- return (typeof prop !== 'undefined');
- };
-})();
-(function() {
-/**
- * Anim subclass for scrolling elements to a position defined by the "scroll"
- * member of "attributes". All "scroll" members are arrays with x, y scroll positions.
- * Usage: var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);
- * @class Scroll
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @extends YAHOO.util.Anim
- * @constructor
- * @param {String or HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.Scroll = function(el, attributes, duration, method) {
- if (el) { // dont break existing subclasses not using YAHOO.extend
- YAHOO.util.Scroll.superclass.constructor.call(this, el, attributes, duration, method);
- }
- };
-
- YAHOO.extend(YAHOO.util.Scroll, YAHOO.util.ColorAnim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.Scroll.superclass;
- var proto = Y.Scroll.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Scroll " + id);
- };
-
- proto.doMethod = function(attr, start, end) {
- var val = null;
-
- if (attr == 'scroll') {
- val = [
- this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames),
- this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames)
- ];
-
- } else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
- return val;
- };
-
- proto.getAttribute = function(attr) {
- var val = null;
- var el = this.getEl();
-
- if (attr == 'scroll') {
- val = [ el.scrollLeft, el.scrollTop ];
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.setAttribute = function(attr, val, unit) {
- var el = this.getEl();
-
- if (attr == 'scroll') {
- el.scrollLeft = val[0];
- el.scrollTop = val[1];
- } else {
- superclass.setAttribute.call(this, attr, val, unit);
- }
- };
-})();
-YAHOO.register("animation", YAHOO.util.Anim, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/animation/animation-min.js b/interface/ispconfig/interface/js/yui/animation/animation-min.js
deleted file mode 100644
index ba5a9b15de452698a7c71d4935ea9872c41d171b..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/animation/animation-min.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.util.Anim=function(el,attributes,duration,method){if(el){this.init(el,attributes,duration,method);}};YAHOO.util.Anim.prototype={toString:function(){var el=this.getEl();var id=el.id||el.tagName;return("Anim "+id);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(attr,start,end){return this.method(this.currentFrame,start,end-start,this.totalFrames);},setAttribute:function(attr,val,unit){if(this.patterns.noNegatives.test(attr)){val=(val>0)?val:0;}
-YAHOO.util.Dom.setStyle(this.getEl(),attr,val+unit);},getAttribute:function(attr){var el=this.getEl();var val=YAHOO.util.Dom.getStyle(el,attr);if(val!=='auto'&&!this.patterns.offsetUnit.test(val)){return parseFloat(val);}
-var a=this.patterns.offsetAttribute.exec(attr)||[];var pos=!!(a[3]);var box=!!(a[2]);if(box||(YAHOO.util.Dom.getStyle(el,'position')=='absolute'&&pos)){val=el['offset'+a[0].charAt(0).toUpperCase()+a[0].substr(1)];}else{val=0;}
-return val;},getDefaultUnit:function(attr){if(this.patterns.defaultUnit.test(attr)){return'px';}
-return'';},setRuntimeAttribute:function(attr){var start;var end;var attributes=this.attributes;this.runtimeAttributes[attr]={};var isset=function(prop){return(typeof prop!=='undefined');};if(!isset(attributes[attr]['to'])&&!isset(attributes[attr]['by'])){return false;}
-start=(isset(attributes[attr]['from']))?attributes[attr]['from']:this.getAttribute(attr);if(isset(attributes[attr]['to'])){end=attributes[attr]['to'];}else if(isset(attributes[attr]['by'])){if(start.constructor==Array){end=[];for(var i=0,len=start.length;i0&&isFinite(tweak)){if(tween.currentFrame+tweak>=frames){tweak=frames-(frame+1);}
-tween.currentFrame+=tweak;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(points,t){var n=points.length;var tmp=[];for(var i=0;i0&&!(control[0]instanceof Array)){control=[control];}else{var tmp=[];for(i=0,len=control.length;i0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(control);}
-this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;}
-else{superclass.setRuntimeAttribute.call(this,attr);}};var translateValues=function(val,start){var pageXY=Y.Dom.getXY(this.getEl());val=[val[0]-pageXY[0]+start[0],val[1]-pageXY[1]+start[1]];return val;};var isset=function(prop){return(typeof prop!=='undefined');};})();(function(){YAHOO.util.Scroll=function(el,attributes,duration,method){if(el){YAHOO.util.Scroll.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Scroll,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Scroll.superclass;var proto=Y.Scroll.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};proto.doMethod=function(attr,start,end){var val=null;if(attr=='scroll'){val=[this.method(this.currentFrame,start[0],end[0]-start[0],this.totalFrames),this.method(this.currentFrame,start[1],end[1]-start[1],this.totalFrames)];}else{val=superclass.doMethod.call(this,attr,start,end);}
-return val;};proto.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=='scroll'){val=[el.scrollLeft,el.scrollTop];}else{val=superclass.getAttribute.call(this,attr);}
-return val;};proto.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=='scroll'){el.scrollLeft=val[0];el.scrollTop=val[1];}else{superclass.setAttribute.call(this,attr,val,unit);}};})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/animation/animation.js b/interface/ispconfig/interface/js/yui/animation/animation.js
deleted file mode 100644
index a70b84183c5208fa59f1a8c8a59dcd03e852e65a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/animation/animation.js
+++ /dev/null
@@ -1,1358 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/*
-Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-*/
-
-/**
- * The animation module provides allows effects to be added to HTMLElements.
- * @module animation
- * @requires yahoo, event, dom
- */
-
-/**
- *
- * Base animation class that provides the interface for building animated effects.
- * Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);
- * @class Anim
- * @namespace YAHOO.util
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @constructor
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
-
-YAHOO.util.Anim = function(el, attributes, duration, method) {
- if (el) {
- this.init(el, attributes, duration, method);
- }
-};
-
-YAHOO.util.Anim.prototype = {
- /**
- * Provides a readable name for the Anim instance.
- * @method toString
- * @return {String}
- */
- toString: function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Anim " + id);
- },
-
- patterns: { // cached for performance
- noNegatives: /width|height|opacity|padding/i, // keep at zero or above
- offsetAttribute: /^((width|height)|(top|left))$/, // use offsetValue as default
- defaultUnit: /width|height|top$|bottom$|left$|right$/i, // use 'px' by default
- offsetUnit: /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset
- },
-
- /**
- * Returns the value computed by the animation's "method".
- * @method doMethod
- * @param {String} attr The name of the attribute.
- * @param {Number} start The value this attribute should start from for this animation.
- * @param {Number} end The value this attribute should end at for this animation.
- * @return {Number} The Value to be applied to the attribute.
- */
- doMethod: function(attr, start, end) {
- return this.method(this.currentFrame, start, end - start, this.totalFrames);
- },
-
- /**
- * Applies a value to an attribute.
- * @method setAttribute
- * @param {String} attr The name of the attribute.
- * @param {Number} val The value to be applied to the attribute.
- * @param {String} unit The unit ('px', '%', etc.) of the value.
- */
- setAttribute: function(attr, val, unit) {
- if ( this.patterns.noNegatives.test(attr) ) {
- val = (val > 0) ? val : 0;
- }
-
- YAHOO.util.Dom.setStyle(this.getEl(), attr, val + unit);
- },
-
- /**
- * Returns current value of the attribute.
- * @method getAttribute
- * @param {String} attr The name of the attribute.
- * @return {Number} val The current value of the attribute.
- */
- getAttribute: function(attr) {
- var el = this.getEl();
- var val = YAHOO.util.Dom.getStyle(el, attr);
-
- if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
- return parseFloat(val);
- }
-
- var a = this.patterns.offsetAttribute.exec(attr) || [];
- var pos = !!( a[3] ); // top or left
- var box = !!( a[2] ); // width or height
-
- // use offsets for width/height and abs pos top/left
- if ( box || (YAHOO.util.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
- val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
- } else { // default to zero for other 'auto'
- val = 0;
- }
-
- return val;
- },
-
- /**
- * Returns the unit to use when none is supplied.
- * @method getDefaultUnit
- * @param {attr} attr The name of the attribute.
- * @return {String} The default unit to be used.
- */
- getDefaultUnit: function(attr) {
- if ( this.patterns.defaultUnit.test(attr) ) {
- return 'px';
- }
-
- return '';
- },
-
- /**
- * Sets the actual values to be used during the animation. Should only be needed for subclass use.
- * @method setRuntimeAttribute
- * @param {Object} attr The attribute object
- * @private
- */
- setRuntimeAttribute: function(attr) {
- var start;
- var end;
- var attributes = this.attributes;
-
- this.runtimeAttributes[attr] = {};
-
- var isset = function(prop) {
- return (typeof prop !== 'undefined');
- };
-
- if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) {
- return false; // note return; nothing to animate to
- }
-
- start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr);
-
- // To beats by, per SMIL 2.1 spec
- if ( isset(attributes[attr]['to']) ) {
- end = attributes[attr]['to'];
- } else if ( isset(attributes[attr]['by']) ) {
- if (start.constructor == Array) {
- end = [];
- for (var i = 0, len = start.length; i < len; ++i) {
- end[i] = start[i] + attributes[attr]['by'][i];
- }
- } else {
- end = start + attributes[attr]['by'];
- }
- }
-
- this.runtimeAttributes[attr].start = start;
- this.runtimeAttributes[attr].end = end;
-
- // set units if needed
- this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ? attributes[attr]['unit'] : this.getDefaultUnit(attr);
- },
-
- /**
- * Constructor for Anim instance.
- * @method init
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- init: function(el, attributes, duration, method) {
- /**
- * Whether or not the animation is running.
- * @property isAnimated
- * @private
- * @type Boolean
- */
- var isAnimated = false;
-
- /**
- * A Date object that is created when the animation begins.
- * @property startTime
- * @private
- * @type Date
- */
- var startTime = null;
-
- /**
- * The number of frames this animation was able to execute.
- * @property actualFrames
- * @private
- * @type Int
- */
- var actualFrames = 0;
-
- /**
- * The element to be animated.
- * @property el
- * @private
- * @type HTMLElement
- */
- el = YAHOO.util.Dom.get(el);
-
- /**
- * The collection of attributes to be animated.
- * Each attribute must have at least a "to" or "by" defined in order to animate.
- * If "to" is supplied, the animation will end with the attribute at that value.
- * If "by" is supplied, the animation will end at that value plus its starting value.
- * If both are supplied, "to" is used, and "by" is ignored.
- * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values).
- * @property attributes
- * @type Object
- */
- this.attributes = attributes || {};
-
- /**
- * The length of the animation. Defaults to "1" (second).
- * @property duration
- * @type Number
- */
- this.duration = duration || 1;
-
- /**
- * The method that will provide values to the attribute(s) during the animation.
- * Defaults to "YAHOO.util.Easing.easeNone".
- * @property method
- * @type Function
- */
- this.method = method || YAHOO.util.Easing.easeNone;
-
- /**
- * Whether or not the duration should be treated as seconds.
- * Defaults to true.
- * @property useSeconds
- * @type Boolean
- */
- this.useSeconds = true; // default to seconds
-
- /**
- * The location of the current animation on the timeline.
- * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
- * @property currentFrame
- * @type Int
- */
- this.currentFrame = 0;
-
- /**
- * The total number of frames to be executed.
- * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
- * @property totalFrames
- * @type Int
- */
- this.totalFrames = YAHOO.util.AnimMgr.fps;
-
-
- /**
- * Returns a reference to the animated element.
- * @method getEl
- * @return {HTMLElement}
- */
- this.getEl = function() { return el; };
-
- /**
- * Checks whether the element is currently animated.
- * @method isAnimated
- * @return {Boolean} current value of isAnimated.
- */
- this.isAnimated = function() {
- return isAnimated;
- };
-
- /**
- * Returns the animation start time.
- * @method getStartTime
- * @return {Date} current value of startTime.
- */
- this.getStartTime = function() {
- return startTime;
- };
-
- this.runtimeAttributes = {};
-
-
-
- /**
- * Starts the animation by registering it with the animation manager.
- * @method animate
- */
- this.animate = function() {
- if ( this.isAnimated() ) {
- return false;
- }
-
- this.currentFrame = 0;
-
- this.totalFrames = ( this.useSeconds ) ? Math.ceil(YAHOO.util.AnimMgr.fps * this.duration) : this.duration;
-
- YAHOO.util.AnimMgr.registerElement(this);
- };
-
- /**
- * Stops the animation. Normally called by AnimMgr when animation completes.
- * @method stop
- * @param {Boolean} finish (optional) If true, animation will jump to final frame.
- */
- this.stop = function(finish) {
- if (finish) {
- this.currentFrame = this.totalFrames;
- this._onTween.fire();
- }
- YAHOO.util.AnimMgr.stop(this);
- };
-
- var onStart = function() {
- this.onStart.fire();
-
- this.runtimeAttributes = {};
- for (var attr in this.attributes) {
- this.setRuntimeAttribute(attr);
- }
-
- isAnimated = true;
- actualFrames = 0;
- startTime = new Date();
- };
-
- /**
- * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s).
- * @private
- */
-
- var onTween = function() {
- var data = {
- duration: new Date() - this.getStartTime(),
- currentFrame: this.currentFrame
- };
-
- data.toString = function() {
- return (
- 'duration: ' + data.duration +
- ', currentFrame: ' + data.currentFrame
- );
- };
-
- this.onTween.fire(data);
-
- var runtimeAttributes = this.runtimeAttributes;
-
- for (var attr in runtimeAttributes) {
- this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit);
- }
-
- actualFrames += 1;
- };
-
- var onComplete = function() {
- var actual_duration = (new Date() - startTime) / 1000 ;
-
- var data = {
- duration: actual_duration,
- frames: actualFrames,
- fps: actualFrames / actual_duration
- };
-
- data.toString = function() {
- return (
- 'duration: ' + data.duration +
- ', frames: ' + data.frames +
- ', fps: ' + data.fps
- );
- };
-
- isAnimated = false;
- actualFrames = 0;
- this.onComplete.fire(data);
- };
-
- /**
- * Custom event that fires after onStart, useful in subclassing
- * @private
- */
- this._onStart = new YAHOO.util.CustomEvent('_start', this, true);
-
- /**
- * Custom event that fires when animation begins
- * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction)
- * @event onStart
- */
- this.onStart = new YAHOO.util.CustomEvent('start', this);
-
- /**
- * Custom event that fires between each frame
- * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction)
- * @event onTween
- */
- this.onTween = new YAHOO.util.CustomEvent('tween', this);
-
- /**
- * Custom event that fires after onTween
- * @private
- */
- this._onTween = new YAHOO.util.CustomEvent('_tween', this, true);
-
- /**
- * Custom event that fires when animation ends
- * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction)
- * @event onComplete
- */
- this.onComplete = new YAHOO.util.CustomEvent('complete', this);
- /**
- * Custom event that fires after onComplete
- * @private
- */
- this._onComplete = new YAHOO.util.CustomEvent('_complete', this, true);
-
- this._onStart.subscribe(onStart);
- this._onTween.subscribe(onTween);
- this._onComplete.subscribe(onComplete);
- }
-};
-
-/**
- * Handles animation queueing and threading.
- * Used by Anim and subclasses.
- * @class AnimMgr
- * @namespace YAHOO.util
- */
-YAHOO.util.AnimMgr = new function() {
- /**
- * Reference to the animation Interval.
- * @property thread
- * @private
- * @type Int
- */
- var thread = null;
-
- /**
- * The current queue of registered animation objects.
- * @property queue
- * @private
- * @type Array
- */
- var queue = [];
-
- /**
- * The number of active animations.
- * @property tweenCount
- * @private
- * @type Int
- */
- var tweenCount = 0;
-
- /**
- * Base frame rate (frames per second).
- * Arbitrarily high for better x-browser calibration (slower browsers drop more frames).
- * @property fps
- * @type Int
- *
- */
- this.fps = 1000;
-
- /**
- * Interval delay in milliseconds, defaults to fastest possible.
- * @property delay
- * @type Int
- *
- */
- this.delay = 1;
-
- /**
- * Adds an animation instance to the animation queue.
- * All animation instances must be registered in order to animate.
- * @method registerElement
- * @param {object} tween The Anim instance to be be registered
- */
- this.registerElement = function(tween) {
- queue[queue.length] = tween;
- tweenCount += 1;
- tween._onStart.fire();
- this.start();
- };
-
- /**
- * removes an animation instance from the animation queue.
- * All animation instances must be registered in order to animate.
- * @method unRegister
- * @param {object} tween The Anim instance to be be registered
- * @param {Int} index The index of the Anim instance
- * @private
- */
- this.unRegister = function(tween, index) {
- tween._onComplete.fire();
- index = index || getIndex(tween);
- if (index != -1) {
- queue.splice(index, 1);
- }
-
- tweenCount -= 1;
- if (tweenCount <= 0) {
- this.stop();
- }
- };
-
- /**
- * Starts the animation thread.
- * Only one thread can run at a time.
- * @method start
- */
- this.start = function() {
- if (thread === null) {
- thread = setInterval(this.run, this.delay);
- }
- };
-
- /**
- * Stops the animation thread or a specific animation instance.
- * @method stop
- * @param {object} tween A specific Anim instance to stop (optional)
- * If no instance given, Manager stops thread and all animations.
- */
- this.stop = function(tween) {
- if (!tween) {
- clearInterval(thread);
-
- for (var i = 0, len = queue.length; i < len; ++i) {
- if ( queue[0].isAnimated() ) {
- this.unRegister(queue[0], 0);
- }
- }
-
- queue = [];
- thread = null;
- tweenCount = 0;
- }
- else {
- this.unRegister(tween);
- }
- };
-
- /**
- * Called per Interval to handle each animation frame.
- * @method run
- */
- this.run = function() {
- for (var i = 0, len = queue.length; i < len; ++i) {
- var tween = queue[i];
- if ( !tween || !tween.isAnimated() ) { continue; }
-
- if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null)
- {
- tween.currentFrame += 1;
-
- if (tween.useSeconds) {
- correctFrame(tween);
- }
- tween._onTween.fire();
- }
- else { YAHOO.util.AnimMgr.stop(tween, i); }
- }
- };
-
- var getIndex = function(anim) {
- for (var i = 0, len = queue.length; i < len; ++i) {
- if (queue[i] == anim) {
- return i; // note return;
- }
- }
- return -1;
- };
-
- /**
- * On the fly frame correction to keep animation on time.
- * @method correctFrame
- * @private
- * @param {Object} tween The Anim instance being corrected.
- */
- var correctFrame = function(tween) {
- var frames = tween.totalFrames;
- var frame = tween.currentFrame;
- var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
- var elapsed = (new Date() - tween.getStartTime());
- var tweak = 0;
-
- if (elapsed < tween.duration * 1000) { // check if falling behind
- tweak = Math.round((elapsed / expected - 1) * tween.currentFrame);
- } else { // went over duration, so jump to end
- tweak = frames - (frame + 1);
- }
- if (tweak > 0 && isFinite(tweak)) { // adjust if needed
- if (tween.currentFrame + tweak >= frames) {// dont go past last frame
- tweak = frames - (frame + 1);
- }
-
- tween.currentFrame += tweak;
- }
- };
-};
-/**
- * Used to calculate Bezier splines for any number of control points.
- * @class Bezier
- * @namespace YAHOO.util
- *
- */
-YAHOO.util.Bezier = new function() {
- /**
- * Get the current position of the animated element based on t.
- * Each point is an array of "x" and "y" values (0 = x, 1 = y)
- * At least 2 points are required (start and end).
- * First point is start. Last point is end.
- * Additional control points are optional.
- * @method getPosition
- * @param {Array} points An array containing Bezier points
- * @param {Number} t A number between 0 and 1 which is the basis for determining current position
- * @return {Array} An array containing int x and y member data
- */
- this.getPosition = function(points, t) {
- var n = points.length;
- var tmp = [];
-
- for (var i = 0; i < n; ++i){
- tmp[i] = [points[i][0], points[i][1]]; // save input
- }
-
- for (var j = 1; j < n; ++j) {
- for (i = 0; i < n - j; ++i) {
- tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
- tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1];
- }
- }
-
- return [ tmp[0][0], tmp[0][1] ];
-
- };
-};
-(function() {
-/**
- * Anim subclass for color transitions.
- * Usage: var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);
Color values can be specified with either 112233, #112233,
- * [255,255,255], or rgb(255,255,255)
- * @class ColorAnim
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @constructor
- * @extends YAHOO.util.Anim
- * @param {HTMLElement | String} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.ColorAnim = function(el, attributes, duration, method) {
- YAHOO.util.ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
- };
-
- YAHOO.extend(YAHOO.util.ColorAnim, YAHOO.util.Anim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.ColorAnim.superclass;
- var proto = Y.ColorAnim.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("ColorAnim " + id);
- };
-
- proto.patterns.color = /color$/i;
- proto.patterns.rgb = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
- proto.patterns.hex = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;
- proto.patterns.hex3 = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;
- proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari
-
- /**
- * Attempts to parse the given string and return a 3-tuple.
- * @method parseColor
- * @param {String} s The string to parse.
- * @return {Array} The 3-tuple of rgb values.
- */
- proto.parseColor = function(s) {
- if (s.length == 3) { return s; }
-
- var c = this.patterns.hex.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ];
- }
-
- c = this.patterns.rgb.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ];
- }
-
- c = this.patterns.hex3.exec(s);
- if (c && c.length == 4) {
- return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ];
- }
-
- return null;
- };
-
- proto.getAttribute = function(attr) {
- var el = this.getEl();
- if ( this.patterns.color.test(attr) ) {
- var val = YAHOO.util.Dom.getStyle(el, attr);
-
- if (this.patterns.transparent.test(val)) { // bgcolor default
- var parent = el.parentNode; // try and get from an ancestor
- val = Y.Dom.getStyle(parent, attr);
-
- while (parent && this.patterns.transparent.test(val)) {
- parent = parent.parentNode;
- val = Y.Dom.getStyle(parent, attr);
- if (parent.tagName.toUpperCase() == 'HTML') {
- val = '#fff';
- }
- }
- }
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.doMethod = function(attr, start, end) {
- var val;
-
- if ( this.patterns.color.test(attr) ) {
- val = [];
- for (var i = 0, len = start.length; i < len; ++i) {
- val[i] = superclass.doMethod.call(this, attr, start[i], end[i]);
- }
-
- val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';
- }
- else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
-
- return val;
- };
-
- proto.setRuntimeAttribute = function(attr) {
- superclass.setRuntimeAttribute.call(this, attr);
-
- if ( this.patterns.color.test(attr) ) {
- var attributes = this.attributes;
- var start = this.parseColor(this.runtimeAttributes[attr].start);
- var end = this.parseColor(this.runtimeAttributes[attr].end);
- // fix colors if going "by"
- if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) {
- end = this.parseColor(attributes[attr].by);
-
- for (var i = 0, len = start.length; i < len; ++i) {
- end[i] = start[i] + end[i];
- }
- }
-
- this.runtimeAttributes[attr].start = start;
- this.runtimeAttributes[attr].end = end;
- }
- };
-})();
-/*
-TERMS OF USE - EASING EQUATIONS
-Open source under the BSD License.
-Copyright 2001 Robert Penner All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
- * Singleton that determines how an animation proceeds from start to end.
- * @class Easing
- * @namespace YAHOO.util
-*/
-
-YAHOO.util.Easing = {
-
- /**
- * Uniform speed between points.
- * @method easeNone
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeNone: function (t, b, c, d) {
- return c*t/d + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quadratic)
- * @method easeIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeIn: function (t, b, c, d) {
- return c*(t/=d)*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quadratic)
- * @method easeOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOut: function (t, b, c, d) {
- return -c *(t/=d)*(t-2) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quadratic)
- * @method easeBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBoth: function (t, b, c, d) {
- if ((t/=d/2) < 1) {
- return c/2*t*t + b;
- }
-
- return -c/2 * ((--t)*(t-2) - 1) + b;
- },
-
- /**
- * Begins slowly and accelerates towards end. (quartic)
- * @method easeInStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeInStrong: function (t, b, c, d) {
- return c*(t/=d)*t*t*t + b;
- },
-
- /**
- * Begins quickly and decelerates towards end. (quartic)
- * @method easeOutStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeOutStrong: function (t, b, c, d) {
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
- },
-
- /**
- * Begins slowly and decelerates towards end. (quartic)
- * @method easeBothStrong
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- easeBothStrong: function (t, b, c, d) {
- if ((t/=d/2) < 1) {
- return c/2*t*t*t*t + b;
- }
-
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
- },
-
- /**
- * Snap in elastic effect.
- * @method elasticIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
-
- elasticIn: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
- if ( (t /= d) == 1 ) {
- return b+c;
- }
- if (!p) {
- p=d*.3;
- }
-
- if (!a || a < Math.abs(c)) {
- a = c;
- var s = p/4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- },
-
- /**
- * Snap out elastic effect.
- * @method elasticOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticOut: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
- if ( (t /= d) == 1 ) {
- return b+c;
- }
- if (!p) {
- p=d*.3;
- }
-
- if (!a || a < Math.abs(c)) {
- a = c;
- var s = p / 4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
- },
-
- /**
- * Snap both elastic effect.
- * @method elasticBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} a Amplitude (optional)
- * @param {Number} p Period (optional)
- * @return {Number} The computed value for the current animation frame
- */
- elasticBoth: function (t, b, c, d, a, p) {
- if (t == 0) {
- return b;
- }
-
- if ( (t /= d/2) == 2 ) {
- return b+c;
- }
-
- if (!p) {
- p = d*(.3*1.5);
- }
-
- if ( !a || a < Math.abs(c) ) {
- a = c;
- var s = p/4;
- }
- else {
- var s = p/(2*Math.PI) * Math.asin (c/a);
- }
-
- if (t < 1) {
- return -.5*(a*Math.pow(2,10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- }
- return a*Math.pow(2,-10*(t-=1)) *
- Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
- },
-
-
- /**
- * Backtracks slightly, then reverses direction and moves to end.
- * @method backIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backIn: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
- return c*(t/=d)*t*((s+1)*t - s) + b;
- },
-
- /**
- * Overshoots end, then reverses and comes back to end.
- * @method backOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backOut: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
- },
-
- /**
- * Backtracks slightly, then reverses direction, overshoots end,
- * then reverses and comes back to end.
- * @method backBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @param {Number} s Overshoot (optional)
- * @return {Number} The computed value for the current animation frame
- */
- backBoth: function (t, b, c, d, s) {
- if (typeof s == 'undefined') {
- s = 1.70158;
- }
-
- if ((t /= d/2 ) < 1) {
- return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
- }
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
- },
-
- /**
- * Bounce off of start.
- * @method bounceIn
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceIn: function (t, b, c, d) {
- return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
- },
-
- /**
- * Bounces off end.
- * @method bounceOut
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceOut: function (t, b, c, d) {
- if ((t/=d) < (1/2.75)) {
- return c*(7.5625*t*t) + b;
- } else if (t < (2/2.75)) {
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
- } else if (t < (2.5/2.75)) {
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
- }
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
- },
-
- /**
- * Bounces off start and end.
- * @method bounceBoth
- * @param {Number} t Time value used to compute current value
- * @param {Number} b Starting value
- * @param {Number} c Delta between start and end values
- * @param {Number} d Total length of animation
- * @return {Number} The computed value for the current animation frame
- */
- bounceBoth: function (t, b, c, d) {
- if (t < d/2) {
- return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
- }
- return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
- }
-};
-
-(function() {
-/**
- * Anim subclass for moving elements along a path defined by the "points"
- * member of "attributes". All "points" are arrays with x, y coordinates.
- * Usage: var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);
- * @class Motion
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @constructor
- * @extends YAHOO.util.Anim
- * @param {String | HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.Motion = function(el, attributes, duration, method) {
- if (el) { // dont break existing subclasses not using YAHOO.extend
- YAHOO.util.Motion.superclass.constructor.call(this, el, attributes, duration, method);
- }
- };
-
- YAHOO.extend(YAHOO.util.Motion, YAHOO.util.ColorAnim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.Motion.superclass;
- var proto = Y.Motion.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Motion " + id);
- };
-
- proto.patterns.points = /^points$/i;
-
- proto.setAttribute = function(attr, val, unit) {
- if ( this.patterns.points.test(attr) ) {
- unit = unit || 'px';
- superclass.setAttribute.call(this, 'left', val[0], unit);
- superclass.setAttribute.call(this, 'top', val[1], unit);
- } else {
- superclass.setAttribute.call(this, attr, val, unit);
- }
- };
-
- proto.getAttribute = function(attr) {
- if ( this.patterns.points.test(attr) ) {
- var val = [
- superclass.getAttribute.call(this, 'left'),
- superclass.getAttribute.call(this, 'top')
- ];
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.doMethod = function(attr, start, end) {
- var val = null;
-
- if ( this.patterns.points.test(attr) ) {
- var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100;
- val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t);
- } else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
- return val;
- };
-
- proto.setRuntimeAttribute = function(attr) {
- if ( this.patterns.points.test(attr) ) {
- var el = this.getEl();
- var attributes = this.attributes;
- var start;
- var control = attributes['points']['control'] || [];
- var end;
- var i, len;
-
- if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points
- control = [control];
- } else { // break reference to attributes.points.control
- var tmp = [];
- for (i = 0, len = control.length; i< len; ++i) {
- tmp[i] = control[i];
- }
- control = tmp;
- }
-
- if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative
- Y.Dom.setStyle(el, 'position', 'relative');
- }
-
- if ( isset(attributes['points']['from']) ) {
- Y.Dom.setXY(el, attributes['points']['from']); // set position to from point
- }
- else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position
-
- start = this.getAttribute('points'); // get actual top & left
-
- // TO beats BY, per SMIL 2.1 spec
- if ( isset(attributes['points']['to']) ) {
- end = translateValues.call(this, attributes['points']['to'], start);
-
- var pageXY = Y.Dom.getXY(this.getEl());
- for (i = 0, len = control.length; i < len; ++i) {
- control[i] = translateValues.call(this, control[i], start);
- }
-
-
- } else if ( isset(attributes['points']['by']) ) {
- end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ];
-
- for (i = 0, len = control.length; i < len; ++i) {
- control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
- }
- }
-
- this.runtimeAttributes[attr] = [start];
-
- if (control.length > 0) {
- this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control);
- }
-
- this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end;
- }
- else {
- superclass.setRuntimeAttribute.call(this, attr);
- }
- };
-
- var translateValues = function(val, start) {
- var pageXY = Y.Dom.getXY(this.getEl());
- val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ];
-
- return val;
- };
-
- var isset = function(prop) {
- return (typeof prop !== 'undefined');
- };
-})();
-(function() {
-/**
- * Anim subclass for scrolling elements to a position defined by the "scroll"
- * member of "attributes". All "scroll" members are arrays with x, y scroll positions.
- * Usage: var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);
- * @class Scroll
- * @namespace YAHOO.util
- * @requires YAHOO.util.Anim
- * @requires YAHOO.util.AnimMgr
- * @requires YAHOO.util.Easing
- * @requires YAHOO.util.Bezier
- * @requires YAHOO.util.Dom
- * @requires YAHOO.util.Event
- * @requires YAHOO.util.CustomEvent
- * @extends YAHOO.util.Anim
- * @constructor
- * @param {String or HTMLElement} el Reference to the element that will be animated
- * @param {Object} attributes The attribute(s) to be animated.
- * Each attribute is an object with at minimum a "to" or "by" member defined.
- * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
- * All attribute names use camelCase.
- * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
- * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
- */
- YAHOO.util.Scroll = function(el, attributes, duration, method) {
- if (el) { // dont break existing subclasses not using YAHOO.extend
- YAHOO.util.Scroll.superclass.constructor.call(this, el, attributes, duration, method);
- }
- };
-
- YAHOO.extend(YAHOO.util.Scroll, YAHOO.util.ColorAnim);
-
- // shorthand
- var Y = YAHOO.util;
- var superclass = Y.Scroll.superclass;
- var proto = Y.Scroll.prototype;
-
- proto.toString = function() {
- var el = this.getEl();
- var id = el.id || el.tagName;
- return ("Scroll " + id);
- };
-
- proto.doMethod = function(attr, start, end) {
- var val = null;
-
- if (attr == 'scroll') {
- val = [
- this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames),
- this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames)
- ];
-
- } else {
- val = superclass.doMethod.call(this, attr, start, end);
- }
- return val;
- };
-
- proto.getAttribute = function(attr) {
- var val = null;
- var el = this.getEl();
-
- if (attr == 'scroll') {
- val = [ el.scrollLeft, el.scrollTop ];
- } else {
- val = superclass.getAttribute.call(this, attr);
- }
-
- return val;
- };
-
- proto.setAttribute = function(attr, val, unit) {
- var el = this.getEl();
-
- if (attr == 'scroll') {
- el.scrollLeft = val[0];
- el.scrollTop = val[1];
- } else {
- superclass.setAttribute.call(this, attr, val, unit);
- }
- };
-})();
-YAHOO.register("animation", YAHOO.util.Anim, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/autocomplete/README b/interface/ispconfig/interface/js/yui/autocomplete/README
deleted file mode 100644
index 6ab63439b62ba56f55e4b5f8699f34e876234380..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/autocomplete/README
+++ /dev/null
@@ -1,77 +0,0 @@
-AutoComplete Release Notes
-
-*** version 2.2.0 ***
-
-* No changes.
-
-
-
-*** version 0.12.2 ***
-
-* No changes.
-
-
-
-*** version 0.12.1 ***
-
-* No longer trigger typeAhead feature when user is backspacing on input text.
-
-
-
-*** version 0.12.0 ***
-
-* The following constants must be defined as static class properties and are no longer
-available as instance properties:
-
-YAHOO.widget.DataSource.ERROR_DATANULL
-YAHOO.widget.DataSource.ERROR_DATAPARSE
-YAHOO.widget.DS_XHR.TYPE_JSON
-YAHOO.widget.DS_XHR.TYPE_XML
-YAHOO.widget.DS_XHR.TYPE_FLAT
-YAHOO.widget.DS_XHR.ERROR_DATAXHR
-
-* The property minQueryLength now supports zero and negative number values for
-DS_JSFunction and DS_XHR objects, to enable null or empty string queries and to disable
-AutoComplete functionality altogether, respectively.
-
-* Enabling the alwaysShowContainer feature will no longer send containerExpandEvent or
-containerCollapseEvent.
-
-
-
-**** version 0.11.3 ***
-
-* The iFrameSrc property has been deprecated. Implementers no longer need to
-specify an https URL to avoid IE security warnings when working with sites over
-SSL.
-
-
-
-*** version 0.11.0 ***
-
-* The method getListIds() has been deprecated for getListItems(), which returns
-an array of DOM references.
-
-* All classnames have been prefixed with "yui-ac-".
-
-* Container elements should no longer have CSS property "display" set to "none".
-
-* The useIFrame property can now be set after instantiation.
-
-* On some browsers, the unmatchedItemSelectEvent may not be fired properly when
-delimiter characters are defined.
-
-* On some browsers, defining delimiter characters while enabling forceSelection
-may result in unexpected behavior.
-
-
-
-*** version 0.10.0 ***
-
-* Initial release
-
-* In order to enable the useIFrame property, it should be set in the
-constructor.
-
-* On some browsers, defining delimiter characters while enabling forceSelection
-may result in unexpected behavior.
diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js
deleted file mode 100644
index 70c0b94eab3d8780df58a641a897fa7d51b990d4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-debug.js
+++ /dev/null
@@ -1,3100 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
- /**
- * The AutoComplete control provides the front-end logic for text-entry suggestion and
- * completion functionality.
- *
- * @module autocomplete
- * @requires yahoo, dom, event, datasource
- * @optional animation, connection
- * @namespace YAHOO.widget
- * @title AutoComplete Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML
- * auto completion widget. Some key features:
- *
- * Navigate with up/down arrow keys and/or mouse to pick a selection
- * The drop down container can "roll down" or "fly out" via configurable
- * animation
- * UI look-and-feel customizable through CSS, including container
- * attributes, borders, position, fonts, etc
- *
- *
- * @class AutoComplete
- * @constructor
- * @param elInput {HTMLElement} DOM element reference of an input field.
- * @param elInput {String} String ID of an input field.
- * @param elContainer {HTMLElement} DOM element reference of an existing DIV.
- * @param elContainer {String} String ID of an existing DIV.
- * @param oDataSource {YAHOO.widget.DataSource} DataSource instance.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) {
- if(elInput && elContainer && oDataSource) {
- // Validate DataSource
- if (oDataSource && (oDataSource instanceof YAHOO.widget.DataSource)) {
- this.dataSource = oDataSource;
- }
- else {
- YAHOO.log("Could not instantiate AutoComplete due to an invalid DataSource", "error", this.toString());
- return;
- }
-
- // Validate input element
- if(YAHOO.util.Dom.inDocument(elInput)) {
- if(typeof elInput == "string") {
- this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput;
- this._oTextbox = document.getElementById(elInput);
- }
- else {
- this._sName = (elInput.id) ?
- "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id:
- "instance" + YAHOO.widget.AutoComplete._nIndex;
- this._oTextbox = elInput;
- }
- }
- else {
- YAHOO.log("Could not instantiate AutoComplete due to an invalid input element", "error", this.toString());
- return;
- }
-
- // Validate container element
- if(YAHOO.util.Dom.inDocument(elContainer)) {
- if(typeof elContainer == "string") {
- this._oContainer = document.getElementById(elContainer);
- }
- else {
- this._oContainer = elContainer;
- }
- if(this._oContainer.style.display == "none") {
- YAHOO.log("The container may not display properly if display is set to \"none\" in CSS", "warn", this.toString());
- }
- }
- else {
- YAHOO.log("Could not instantiate AutoComplete due to an invalid container element", "error", this.toString());
- return;
- }
-
- // Set any config params passed in to override defaults
- if (typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- if (sConfig) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
- }
-
- // Initialization sequence
- this._initContainer();
- this._initProps();
- this._initList();
- this._initContainerHelpers();
-
- // Set up events
- var oSelf = this;
- var oTextbox = this._oTextbox;
- // Events are actually for the content module within the container
- var oContent = this._oContainer._oContent;
-
- // Dom events
- YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf);
- YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf);
- YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf);
- YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf);
- YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf);
- if(oTextbox.form) {
- YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf);
- }
- YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);
-
- // Custom events
- this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this);
- this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this);
- this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this);
- this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this);
- this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
- this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this);
- this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this);
- this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this);
- this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this);
- this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this);
- this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this);
- this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this);
- this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this);
- this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this);
- this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this);
- this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this);
-
- // Finish up
- oTextbox.setAttribute("autocomplete","off");
- YAHOO.widget.AutoComplete._nIndex++;
- YAHOO.log("AutoComplete initialized","info",this.toString());
- }
- // Required arguments were not found
- else {
- YAHOO.log("Could not instantiate AutoComplete due invalid arguments", "error", this.toString());
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DataSource object that encapsulates the data used for auto completion.
- * This object should be an inherited object from YAHOO.widget.DataSource.
- *
- * @property dataSource
- * @type YAHOO.widget.DataSource
- */
-YAHOO.widget.AutoComplete.prototype.dataSource = null;
-
-/**
- * Number of characters that must be entered before querying for results. A negative value
- * effectively turns off the widget. A value of 0 allows queries of null or empty string
- * values.
- *
- * @property minQueryLength
- * @type Number
- * @default 1
- */
-YAHOO.widget.AutoComplete.prototype.minQueryLength = 1;
-
-/**
- * Maximum number of results to display in results container.
- *
- * @property maxResultsDisplayed
- * @type Number
- * @default 10
- */
-YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10;
-
-/**
- * Number of seconds to delay before submitting a query request. If a query
- * request is received before a previous one has completed its delay, the
- * previous request is cancelled and the new request is set to the delay.
- *
- * @property queryDelay
- * @type Number
- * @default 0.5
- */
-YAHOO.widget.AutoComplete.prototype.queryDelay = 0.5;
-
-/**
- * Class name of a highlighted item within results container.
- *
- * @property highlightClassName
- * @type String
- * @default "yui-ac-highlight"
- */
-YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight";
-
-/**
- * Class name of a pre-highlighted item within results container.
- *
- * @property prehighlightClassName
- * @type String
- */
-YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null;
-
-/**
- * Query delimiter. A single character separator for multiple delimited
- * selections. Multiple delimiter characteres may be defined as an array of
- * strings. A null value or empty string indicates that query results cannot
- * be delimited. This feature is not recommended if you need forceSelection to
- * be true.
- *
- * @property delimChar
- * @type String | String[]
- */
-YAHOO.widget.AutoComplete.prototype.delimChar = null;
-
-/**
- * Whether or not the first item in results container should be automatically highlighted
- * on expand.
- *
- * @property autoHighlight
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.autoHighlight = true;
-
-/**
- * Whether or not the input field should be automatically updated
- * with the first query result as the user types, auto-selecting the substring
- * that the user has not typed.
- *
- * @property typeAhead
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.typeAhead = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * horizontal direction.
- *
- * @property animHoriz
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.animHoriz = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * vertical direction.
- *
- * @property animVert
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.animVert = true;
-
-/**
- * Speed of container expand/collapse animation, in seconds..
- *
- * @property animSpeed
- * @type Number
- * @default 0.3
- */
-YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3;
-
-/**
- * Whether or not to force the user's selection to match one of the query
- * results. Enabling this feature essentially transforms the input field into a
- * <select> field. This feature is not recommended with delimiter character(s)
- * defined.
- *
- * @property forceSelection
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.forceSelection = false;
-
-/**
- * Whether or not to allow browsers to cache user-typed input in the input
- * field. Disabling this feature will prevent the widget from setting the
- * autocomplete="off" on the input field. When autocomplete="off"
- * and users click the back button after form submission, user-typed input can
- * be prefilled by the browser from its cache. This caching of user input may
- * not be desired for sensitive data, such as credit card numbers, in which
- * case, implementers should consider setting allowBrowserAutocomplete to false.
- *
- * @property allowBrowserAutocomplete
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true;
-
-/**
- * Whether or not the results container should always be displayed.
- * Enabling this feature displays the container when the widget is instantiated
- * and prevents the toggling of the container to a collapsed state.
- *
- * @property alwaysShowContainer
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false;
-
-/**
- * Whether or not to use an iFrame to layer over Windows form elements in
- * IE. Set to true only when the results container will be on top of a
- * <select> field in IE and thus exposed to the IE z-index bug (i.e.,
- * 5.5 < IE < 7).
- *
- * @property useIFrame
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useIFrame = false;
-
-/**
- * Whether or not the results container should have a shadow.
- *
- * @property useShadow
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useShadow = false;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the AutoComplete instance.
- *
- * @method toString
- * @return {String} Unique name of the AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.toString = function() {
- return "AutoComplete " + this._sName;
-};
-
- /**
- * Returns true if container is in an expanded state, false otherwise.
- *
- * @method isContainerOpen
- * @return {Boolean} Returns true if container is in an expanded state, false otherwise.
- */
-YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() {
- return this._bContainerOpen;
-};
-
-/**
- * Public accessor to the internal array of DOM <li> elements that
- * display query results within the results container.
- *
- * @method getListItems
- * @return {HTMLElement[]} Array of <li> elements within the results container.
- */
-YAHOO.widget.AutoComplete.prototype.getListItems = function() {
- return this._aListItems;
-};
-
-/**
- * Public accessor to the data held in an <li> element of the
- * results container.
- *
- * @method getListItemData
- * @return {Object | Object[]} Object or array of result data or null
- */
-YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) {
- if(oListItem._oResultData) {
- return oListItem._oResultData;
- }
- else {
- return false;
- }
-};
-
-/**
- * Sets HTML markup for the results container header. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-hd".
- *
- * @method setHeader
- * @param sHeader {String} HTML markup for results container header.
- */
-YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) {
- if(sHeader) {
- if(this._oContainer._oContent._oHeader) {
- this._oContainer._oContent._oHeader.innerHTML = sHeader;
- this._oContainer._oContent._oHeader.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oHeader.innerHTML = "";
- this._oContainer._oContent._oHeader.style.display = "none";
- }
-};
-
-/**
- * Sets HTML markup for the results container footer. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-ft".
- *
- * @method setFooter
- * @param sFooter {String} HTML markup for results container footer.
- */
-YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) {
- if(sFooter) {
- if(this._oContainer._oContent._oFooter) {
- this._oContainer._oContent._oFooter.innerHTML = sFooter;
- this._oContainer._oContent._oFooter.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oFooter.innerHTML = "";
- this._oContainer._oContent._oFooter.style.display = "none";
- }
-};
-
-/**
- * Sets HTML markup for the results container body. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-bd".
- *
- * @method setBody
- * @param sBody {String} HTML markup for results container body.
- */
-YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
- if(sBody) {
- if(this._oContainer._oContent._oBody) {
- this._oContainer._oContent._oBody.innerHTML = sBody;
- this._oContainer._oContent._oBody.style.display = "block";
- this._oContainer._oContent.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oBody.innerHTML = "";
- this._oContainer._oContent.style.display = "none";
- }
- this._maxResultsDisplayed = 0;
-};
-
-/**
- * Overridable method that converts a result item object into HTML markup
- * for display. Return data values are accessible via the oResultItem object,
- * and the key return value will always be oResultItem[0]. Markup will be
- * displayed within <li> element tags in the container.
- *
- * @method formatResult
- * @param oResultItem {Object} Result item representing one query result. Data is held in an array.
- * @param sQuery {String} The current query string.
- * @return {String} HTML markup of formatted result data.
- */
-YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) {
- var sResult = oResultItem[0];
- if(sResult) {
- return sResult;
- }
- else {
- return "";
- }
-};
-
-/**
- * Overridable method called before container expands allows implementers to access data
- * and DOM elements.
- *
- * @method doBeforeExpandContainer
- * @return {Boolean} Return true to continue expanding container, false to cancel the expand.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(oResultItem, sQuery) {
- return true;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method sendQuery
- * @param sQuery {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
- this._sendQuery(sQuery);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when the input field receives focus.
- *
- * @event textboxFocusEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null;
-
-/**
- * Fired when the input field receives key input.
- *
- * @event textboxKeyEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param nKeycode {Number} The keycode number.
- */
-YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null;
-
-/**
- * Fired when the AutoComplete instance makes a query to the DataSource.
- *
- * @event dataRequestEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null;
-
-/**
- * Fired when the AutoComplete instance receives query results from the data
- * source.
- *
- * @event dataReturnEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Results array.
- */
-YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null;
-
-/**
- * Fired when the AutoComplete instance does not receive query results from the
- * DataSource due to an error.
- *
- * @event dataErrorEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the results container is expanded.
- *
- * @event containerExpandEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
-
-/**
- * Fired when the input field has been prefilled by the type-ahead
- * feature.
- *
- * @event typeAheadEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param sPrefill {String} The prefill string.
- */
-YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null;
-
-/**
- * Fired when result item has been moused over.
- *
- * @event itemMouseOverEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item moused to.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null;
-
-/**
- * Fired when result item has been moused out.
- *
- * @event itemMouseOutEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item moused from.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null;
-
-/**
- * Fired when result item has been arrowed to.
- *
- * @event itemArrowToEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item arrowed to.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null;
-
-/**
- * Fired when result item has been arrowed away from.
- *
- * @event itemArrowFromEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item arrowed from.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null;
-
-/**
- * Fired when an item is selected via mouse click, ENTER key, or TAB key.
- *
- * @event itemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The selected <li> element item.
- * @param oData {Object} The data returned for the item, either as an object,
- * or mapped from the schema into an array.
- */
-YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null;
-
-/**
- * Fired when a user selection does not match any of the displayed result items.
- * Note that this event may not behave as expected when delimiter characters
- * have been defined.
- *
- * @event unmatchedItemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The user-typed query string.
- */
-YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
-
-/**
- * Fired if forceSelection is enabled and the user's input has been cleared
- * because it did not match one of the returned query results.
- *
- * @event selectionEnforceEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
-
-/**
- * Fired when the results container is collapsed.
- *
- * @event containerCollapseEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null;
-
-/**
- * Fired when the input field loses focus.
- *
- * @event textboxBlurEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple AutoComplete instances.
- *
- * @property _nIndex
- * @type Number
- * @default 0
- * @private
- */
-YAHOO.widget.AutoComplete._nIndex = 0;
-
-/**
- * Name of AutoComplete instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sName = null;
-
-/**
- * Text input field DOM element.
- *
- * @property _oTextbox
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oTextbox = null;
-
-/**
- * Whether or not the input field is currently in focus. If query results come back
- * but the user has already moved on, do not proceed with auto complete behavior.
- *
- * @property _bFocused
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bFocused = true;
-
-/**
- * Animation instance for container expand/collapse.
- *
- * @property _oAnim
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oAnim = null;
-
-/**
- * Container DOM element.
- *
- * @property _oContainer
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oContainer = null;
-
-/**
- * Whether or not the results container is currently open.
- *
- * @property _bContainerOpen
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bContainerOpen = false;
-
-/**
- * Whether or not the mouse is currently over the results
- * container. This is necessary in order to prevent clicks on container items
- * from being text input field blur events.
- *
- * @property _bOverContainer
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bOverContainer = false;
-
-/**
- * Array of <li> elements references that contain query results within the
- * results container.
- *
- * @property _aListItems
- * @type HTMLElement[]
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._aListItems = null;
-
-/**
- * Number of <li> elements currently displayed in results container.
- *
- * @property _nDisplayedItems
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0;
-
-/**
- * Internal count of <li> elements displayed and hidden in results container.
- *
- * @property _maxResultsDisplayed
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0;
-
-/**
- * Current query string
- *
- * @property _sCurQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sCurQuery = null;
-
-/**
- * Past queries this session (for saving delimited queries).
- *
- * @property _sSavedQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sSavedQuery = null;
-
-/**
- * Pointer to the currently highlighted <li> element in the container.
- *
- * @property _oCurItem
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oCurItem = null;
-
-/**
- * Whether or not an item has been selected since the container was populated
- * with results. Reset to false by _populateList, and set to true when item is
- * selected.
- *
- * @property _bItemSelected
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bItemSelected = false;
-
-/**
- * Key code of the last key pressed in textbox.
- *
- * @property _nKeyCode
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nKeyCode = null;
-
-/**
- * Delay timeout ID.
- *
- * @property _nDelayID
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDelayID = -1;
-
-/**
- * Src to iFrame used when useIFrame = true. Supports implementations over SSL
- * as well.
- *
- * @property _iFrameSrc
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;";
-
-/**
- * For users typing via certain IMEs, queries must be triggered by intervals,
- * since key events yet supported across all browsers for all IMEs.
- *
- * @property _queryInterval
- * @type Object
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._queryInterval = null;
-
-/**
- * Internal tracker to last known textbox value, used to determine whether or not
- * to trigger a query via interval for certain IME users.
- *
- * @event _sLastTextboxValue
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Updates and validates latest public config properties.
- *
- * @method __initProps
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initProps = function() {
- // Correct any invalid values
- var minQueryLength = this.minQueryLength;
- if(isNaN(minQueryLength) || (minQueryLength < 1)) {
- minQueryLength = 1;
- }
- var maxResultsDisplayed = this.maxResultsDisplayed;
- if(isNaN(this.maxResultsDisplayed) || (this.maxResultsDisplayed < 1)) {
- this.maxResultsDisplayed = 10;
- }
- var queryDelay = this.queryDelay;
- if(isNaN(this.queryDelay) || (this.queryDelay < 0)) {
- this.queryDelay = 0.5;
- }
- var aDelimChar = (this.delimChar) ? this.delimChar : null;
- if(aDelimChar) {
- if(typeof aDelimChar == "string") {
- this.delimChar = [aDelimChar];
- }
- else if(aDelimChar.constructor != Array) {
- this.delimChar = null;
- }
- }
- var animSpeed = this.animSpeed;
- if((this.animHoriz || this.animVert) && YAHOO.util.Anim) {
- if(isNaN(animSpeed) || (animSpeed < 0)) {
- animSpeed = 0.3;
- }
- if(!this._oAnim ) {
- oAnim = new YAHOO.util.Anim(this._oContainer._oContent, {}, this.animSpeed);
- this._oAnim = oAnim;
- }
- else {
- this._oAnim.duration = animSpeed;
- }
- }
- if(this.forceSelection && this.delimChar) {
- YAHOO.log("The forceSelection feature has been enabled with delimChar defined.","warn", this.toString());
- }
-};
-
-/**
- * Initializes the results container helpers if they are enabled and do
- * not exist
- *
- * @method _initContainerHelpers
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() {
- if(this.useShadow && !this._oContainer._oShadow) {
- var oShadow = document.createElement("div");
- oShadow.className = "yui-ac-shadow";
- this._oContainer._oShadow = this._oContainer.appendChild(oShadow);
- }
- if(this.useIFrame && !this._oContainer._oIFrame) {
- var oIFrame = document.createElement("iframe");
- oIFrame.src = this._iFrameSrc;
- oIFrame.frameBorder = 0;
- oIFrame.scrolling = "no";
- oIFrame.style.position = "absolute";
- oIFrame.style.width = "100%";
- oIFrame.style.height = "100%";
- oIFrame.tabIndex = -1;
- this._oContainer._oIFrame = this._oContainer.appendChild(oIFrame);
- }
-};
-
-/**
- * Initializes the results container once at object creation
- *
- * @method _initContainer
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainer = function() {
- if(!this._oContainer._oContent) {
- // The oContent div helps size the iframe and shadow properly
- var oContent = document.createElement("div");
- oContent.className = "yui-ac-content";
- oContent.style.display = "none";
- this._oContainer._oContent = this._oContainer.appendChild(oContent);
-
- var oHeader = document.createElement("div");
- oHeader.className = "yui-ac-hd";
- oHeader.style.display = "none";
- this._oContainer._oContent._oHeader = this._oContainer._oContent.appendChild(oHeader);
-
- var oBody = document.createElement("div");
- oBody.className = "yui-ac-bd";
- this._oContainer._oContent._oBody = this._oContainer._oContent.appendChild(oBody);
-
- var oFooter = document.createElement("div");
- oFooter.className = "yui-ac-ft";
- oFooter.style.display = "none";
- this._oContainer._oContent._oFooter = this._oContainer._oContent.appendChild(oFooter);
- }
- else {
- YAHOO.log("Could not initialize the container","warn",this.toString());
- }
-};
-
-/**
- * Clears out contents of container body and creates up to
- * YAHOO.widget.AutoComplete#maxResultsDisplayed <li> elements in an
- * <ul> element.
- *
- * @method _initList
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initList = function() {
- this._aListItems = [];
- while(this._oContainer._oContent._oBody.hasChildNodes()) {
- var oldListItems = this.getListItems();
- if(oldListItems) {
- for(var oldi = oldListItems.length-1; oldi >= 0; i--) {
- oldListItems[oldi] = null;
- }
- }
- this._oContainer._oContent._oBody.innerHTML = "";
- }
-
- var oList = document.createElement("ul");
- oList = this._oContainer._oContent._oBody.appendChild(oList);
- for(var i=0; i= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock
- (nKeyCode == 27) || // esc
- (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end
- (nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up
- (nKeyCode == 40) || // down
- (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert
- return true;
- }
- return false;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method _sendQuery
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
- // Widget has been effectively turned off
- if(this.minQueryLength == -1) {
- this._toggleContainer(false);
- return;
- }
- // Delimiter has been enabled
- var aDelimChar = (this.delimChar) ? this.delimChar : null;
- if(aDelimChar) {
- // Loop through all possible delimiters and find the latest one
- // A " " may be a false positive if they are defined as delimiters AND
- // are used to separate delimited queries
- var nDelimIndex = -1;
- for(var i = aDelimChar.length-1; i >= 0; i--) {
- var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
- if(nNewIndex > nDelimIndex) {
- nDelimIndex = nNewIndex;
- }
- }
- // If we think the last delimiter is a space (" "), make sure it is NOT
- // a false positive by also checking the char directly before it
- if(aDelimChar[i] == " ") {
- for (var j = aDelimChar.length-1; j >= 0; j--) {
- if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
- nDelimIndex--;
- break;
- }
- }
- }
- // A delimiter has been found so extract the latest query
- if (nDelimIndex > -1) {
- var nQueryStart = nDelimIndex + 1;
- // Trim any white space from the beginning...
- while(sQuery.charAt(nQueryStart) == " ") {
- nQueryStart += 1;
- }
- // ...and save the rest of the string for later
- this._sSavedQuery = sQuery.substring(0,nQueryStart);
- // Here is the query itself
- sQuery = sQuery.substr(nQueryStart);
- }
- else if(sQuery.indexOf(this._sSavedQuery) < 0){
- this._sSavedQuery = null;
- }
- }
-
- // Don't search queries that are too short
- if (sQuery && (sQuery.length < this.minQueryLength) || (!sQuery && this.minQueryLength > 0)) {
- if (this._nDelayID != -1) {
- clearTimeout(this._nDelayID);
- }
- this._toggleContainer(false);
- return;
- }
-
- sQuery = encodeURIComponent(sQuery);
- this._nDelayID = -1; // Reset timeout ID because request has been made
- this.dataRequestEvent.fire(this, sQuery);
- this.dataSource.getResults(this._populateList, sQuery, this);
-};
-
-/**
- * Populates the array of <li> elements in the container with query
- * results. This method is passed to YAHOO.widget.DataSource#getResults as a
- * callback function so results from the DataSource instance are returned to the
- * AutoComplete instance.
- *
- * @method _populateList
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} An array of query result objects from the DataSource.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) {
- if(aResults === null) {
- oSelf.dataErrorEvent.fire(oSelf, sQuery);
- }
- if (!oSelf._bFocused || !aResults) {
- return;
- }
-
- var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
- var contentStyle = oSelf._oContainer._oContent.style;
- contentStyle.width = (!isOpera) ? null : "";
- contentStyle.height = (!isOpera) ? null : "";
-
- var sCurQuery = decodeURIComponent(sQuery);
- oSelf._sCurQuery = sCurQuery;
- oSelf._bItemSelected = false;
-
- if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) {
- oSelf._initList();
- }
-
- var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed);
- oSelf._nDisplayedItems = nItems;
- if (nItems > 0) {
- oSelf._initContainerHelpers();
- var aItems = oSelf._aListItems;
-
- // Fill items with data
- for(var i = nItems-1; i >= 0; i--) {
- var oItemi = aItems[i];
- var oResultItemi = aResults[i];
- oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery);
- oItemi.style.display = "list-item";
- oItemi._sResultKey = oResultItemi[0];
- oItemi._oResultData = oResultItemi;
-
- }
-
- // Empty out remaining items if any
- for(var j = aItems.length-1; j >= nItems ; j--) {
- var oItemj = aItems[j];
- oItemj.innerHTML = null;
- oItemj.style.display = "none";
- oItemj._sResultKey = null;
- oItemj._oResultData = null;
- }
-
- if(oSelf.autoHighlight) {
- // Go to the first item
- var oFirstItem = aItems[0];
- oSelf._toggleHighlight(oFirstItem,"to");
- oSelf.itemArrowToEvent.fire(oSelf, oFirstItem);
- oSelf._typeAhead(oFirstItem,sQuery);
- }
- else {
- oSelf._oCurItem = null;
- }
-
- // Expand the container
- var ok = oSelf.doBeforeExpandContainer(oSelf._oTextbox, oSelf._oContainer, sQuery, aResults);
- oSelf._toggleContainer(ok);
- }
- else {
- oSelf._toggleContainer(false);
- }
- oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults);
-};
-
-/**
- * When forceSelection is true and the user attempts
- * leave the text input box without selecting an item from the query results,
- * the user selection is cleared.
- *
- * @method _clearSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
- var sValue = this._oTextbox.value;
- var sChar = (this.delimChar) ? this.delimChar[0] : null;
- var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
- if(nIndex > -1) {
- this._oTextbox.value = sValue.substring(0,nIndex);
- }
- else {
- this._oTextbox.value = "";
- }
- this._sSavedQuery = this._oTextbox.value;
-
- // Fire custom event
- this.selectionEnforceEvent.fire(this);
-};
-
-/**
- * Whether or not user-typed value in the text input box matches any of the
- * query results.
- *
- * @method _textMatchesOption
- * @return {Boolean} True if user-input text matches a result, false otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
- var foundMatch = false;
-
- for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
- var oItem = this._aListItems[i];
- var sMatch = oItem._sResultKey.toLowerCase();
- if (sMatch == this._sCurQuery.toLowerCase()) {
- foundMatch = true;
- break;
- }
- }
- return(foundMatch);
-};
-
-/**
- * Updates in the text input box with the first query result as the user types,
- * selecting the substring that the user has not typed.
- *
- * @method _typeAhead
- * @param oItem {HTMLElement} The <li> element item whose data populates the input field.
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) {
- // Don't update if turned off
- if (!this.typeAhead || (this._nKeyCode == 8)) {
- return;
- }
-
- var oTextbox = this._oTextbox;
- var sValue = this._oTextbox.value; // any saved queries plus what user has typed
-
- // Don't update with type-ahead if text selection is not supported
- if(!oTextbox.setSelectionRange && !oTextbox.createTextRange) {
- return;
- }
-
- // Select the portion of text that the user has not typed
- var nStart = sValue.length;
- this._updateValue(oItem);
- var nEnd = oTextbox.value.length;
- this._selectText(oTextbox,nStart,nEnd);
- var sPrefill = oTextbox.value.substr(nStart,nEnd);
- this.typeAheadEvent.fire(this,sQuery,sPrefill);
-};
-
-/**
- * Selects text in the input field.
- *
- * @method _selectText
- * @param oTextbox {HTMLElement} Text input box element in which to select text.
- * @param nStart {Number} Starting index of text string to select.
- * @param nEnd {Number} Ending index of text selection.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectText = function(oTextbox, nStart, nEnd) {
- if (oTextbox.setSelectionRange) { // For Mozilla
- oTextbox.setSelectionRange(nStart,nEnd);
- }
- else if (oTextbox.createTextRange) { // For IE
- var oTextRange = oTextbox.createTextRange();
- oTextRange.moveStart("character", nStart);
- oTextRange.moveEnd("character", nEnd-oTextbox.value.length);
- oTextRange.select();
- }
- else {
- oTextbox.select();
- }
-};
-
-/**
- * Syncs results container with its helpers.
- *
- * @method _toggleContainerHelpers
- * @param bShow {Boolean} True if container is expanded, false if collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
- var bFireEvent = false;
- var width = this._oContainer._oContent.offsetWidth + "px";
- var height = this._oContainer._oContent.offsetHeight + "px";
-
- if(this.useIFrame && this._oContainer._oIFrame) {
- bFireEvent = true;
- if(bShow) {
- this._oContainer._oIFrame.style.width = width;
- this._oContainer._oIFrame.style.height = height;
- }
- else {
- this._oContainer._oIFrame.style.width = 0;
- this._oContainer._oIFrame.style.height = 0;
- }
- }
- if(this.useShadow && this._oContainer._oShadow) {
- bFireEvent = true;
- if(bShow) {
- this._oContainer._oShadow.style.width = width;
- this._oContainer._oShadow.style.height = height;
- }
- else {
- this._oContainer._oShadow.style.width = 0;
- this._oContainer._oShadow.style.height = 0;
- }
- }
-};
-
-/**
- * Animates expansion or collapse of the container.
- *
- * @method _toggleContainer
- * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
- var oContainer = this._oContainer;
-
- // Implementer has container always open so don't mess with it
- if(this.alwaysShowContainer && this._bContainerOpen) {
- return;
- }
-
- // Clear contents of container
- if(!bShow) {
- this._oContainer._oContent.scrollTop = 0;
- var aItems = this._aListItems;
-
- if(aItems && (aItems.length > 0)) {
- for(var i = aItems.length-1; i >= 0 ; i--) {
- aItems[i].style.display = "none";
- }
- }
-
- if (this._oCurItem) {
- this._toggleHighlight(this._oCurItem,"from");
- }
-
- this._oCurItem = null;
- this._nDisplayedItems = 0;
- this._sCurQuery = null;
- }
-
- // Container is already closed
- if (!bShow && !this._bContainerOpen) {
- oContainer._oContent.style.display = "none";
- return;
- }
-
- // If animation is enabled...
- var oAnim = this._oAnim;
- if (oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
- // If helpers need to be collapsed, do it right away...
- // but if helpers need to be expanded, wait until after the container expands
- if(!bShow) {
- this._toggleContainerHelpers(bShow);
- }
-
- if(oAnim.isAnimated()) {
- oAnim.stop();
- }
-
- // Clone container to grab current size offscreen
- var oClone = oContainer._oContent.cloneNode(true);
- oContainer.appendChild(oClone);
- oClone.style.top = "-9000px";
- oClone.style.display = "block";
-
- // Current size of the container is the EXPANDED size
- var wExp = oClone.offsetWidth;
- var hExp = oClone.offsetHeight;
-
- // Calculate COLLAPSED sizes based on horiz and vert anim
- var wColl = (this.animHoriz) ? 0 : wExp;
- var hColl = (this.animVert) ? 0 : hExp;
-
- // Set animation sizes
- oAnim.attributes = (bShow) ?
- {width: { to: wExp }, height: { to: hExp }} :
- {width: { to: wColl}, height: { to: hColl }};
-
- // If opening anew, set to a collapsed size...
- if(bShow && !this._bContainerOpen) {
- oContainer._oContent.style.width = wColl+"px";
- oContainer._oContent.style.height = hColl+"px";
- }
- // Else, set it to its last known size.
- else {
- oContainer._oContent.style.width = wExp+"px";
- oContainer._oContent.style.height = hExp+"px";
- }
-
- oContainer.removeChild(oClone);
- oClone = null;
-
- var oSelf = this;
- var onAnimComplete = function() {
- // Finish the collapse
- oAnim.onComplete.unsubscribeAll();
-
- if(bShow) {
- oSelf.containerExpandEvent.fire(oSelf);
- }
- else {
- oContainer._oContent.style.display = "none";
- oSelf.containerCollapseEvent.fire(oSelf);
- }
- oSelf._toggleContainerHelpers(bShow);
- };
-
- // Display container and animate it
- oContainer._oContent.style.display = "block";
- oAnim.onComplete.subscribe(onAnimComplete);
- oAnim.animate();
- this._bContainerOpen = bShow;
- }
- // Else don't animate, just show or hide
- else {
- if(bShow) {
- oContainer._oContent.style.display = "block";
- this.containerExpandEvent.fire(this);
- }
- else {
- oContainer._oContent.style.display = "none";
- this.containerCollapseEvent.fire(this);
- }
- this._toggleContainerHelpers(bShow);
- this._bContainerOpen = bShow;
- }
-
-};
-
-/**
- * Toggles the highlight on or off for an item in the container, and also cleans
- * up highlighting of any previous item.
- *
- * @method _toggleHighlight
- * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) {
- var sHighlight = this.highlightClassName;
- if(this._oCurItem) {
- // Remove highlight from old item
- YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight);
- }
-
- if((sType == "to") && sHighlight) {
- // Apply highlight to new item
- YAHOO.util.Dom.addClass(oNewItem, sHighlight);
- this._oCurItem = oNewItem;
- }
-};
-
-/**
- * Toggles the pre-highlight on or off for an item in the container.
- *
- * @method _togglePrehighlight
- * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) {
- if(oNewItem == this._oCurItem) {
- return;
- }
-
- var sPrehighlight = this.prehighlightClassName;
- if((sType == "mouseover") && sPrehighlight) {
- // Apply prehighlight to new item
- YAHOO.util.Dom.addClass(oNewItem, sPrehighlight);
- }
- else {
- // Remove prehighlight from old item
- YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight);
- }
-};
-
-/**
- * Updates the text input box value with selected query result. If a delimiter
- * has been defined, then the value gets appended with the delimiter.
- *
- * @method _updateValue
- * @param oItem {HTMLElement} The <li> element item with which to update the value.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) {
- var oTextbox = this._oTextbox;
- var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
- var sSavedQuery = this._sSavedQuery;
- var sResultKey = oItem._sResultKey;
- oTextbox.focus();
-
- // First clear text field
- oTextbox.value = "";
- // Grab data to put into text field
- if(sDelimChar) {
- if(sSavedQuery) {
- oTextbox.value = sSavedQuery;
- }
- oTextbox.value += sResultKey + sDelimChar;
- if(sDelimChar != " ") {
- oTextbox.value += " ";
- }
- }
- else { oTextbox.value = sResultKey; }
-
- // scroll to bottom of textarea if necessary
- if(oTextbox.type == "textarea") {
- oTextbox.scrollTop = oTextbox.scrollHeight;
- }
-
- // move cursor to end
- var end = oTextbox.value.length;
- this._selectText(oTextbox,end,end);
-
- this._oCurItem = oItem;
-};
-
-/**
- * Selects a result item from the container
- *
- * @method _selectItem
- * @param oItem {HTMLElement} The selected <li> element item.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) {
- this._bItemSelected = true;
- this._updateValue(oItem);
- this._cancelIntervalDetection(this);
- this.itemSelectEvent.fire(this, oItem, oItem._oResultData);
- this._toggleContainer(false);
-};
-
-/**
- * For values updated by type-ahead, the right arrow key jumps to the end
- * of the textbox, otherwise the container is closed.
- *
- * @method _jumpSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
- if(!this.typeAhead) {
- return;
- }
- else {
- this._toggleContainer(false);
- }
-};
-
-/**
- * Triggered by up and down arrow keys, changes the current highlighted
- * <li> element item. Scrolls container if necessary.
- *
- * @method _moveSelection
- * @param nKeyCode {Number} Code of key pressed.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
- if(this._bContainerOpen) {
- // Determine current item's id number
- var oCurItem = this._oCurItem;
- var nCurItemIndex = -1;
-
- if (oCurItem) {
- nCurItemIndex = oCurItem._nItemIndex;
- }
-
- var nNewItemIndex = (nKeyCode == 40) ?
- (nCurItemIndex + 1) : (nCurItemIndex - 1);
-
- // Out of bounds
- if (nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
- return;
- }
-
- if (oCurItem) {
- // Unhighlight current item
- this._toggleHighlight(oCurItem, "from");
- this.itemArrowFromEvent.fire(this, oCurItem);
- }
- if (nNewItemIndex == -1) {
- // Go back to query (remove type-ahead string)
- if(this.delimChar && this._sSavedQuery) {
- if (!this._textMatchesOption()) {
- this._oTextbox.value = this._sSavedQuery;
- }
- else {
- this._oTextbox.value = this._sSavedQuery + this._sCurQuery;
- }
- }
- else {
- this._oTextbox.value = this._sCurQuery;
- }
- this._oCurItem = null;
- return;
- }
- if (nNewItemIndex == -2) {
- // Close container
- this._toggleContainer(false);
- return;
- }
-
- var oNewItem = this._aListItems[nNewItemIndex];
-
- // Scroll the container if necessary
- var oContent = this._oContainer._oContent;
- var scrollOn = ((YAHOO.util.Dom.getStyle(oContent,"overflow") == "auto") ||
- (YAHOO.util.Dom.getStyle(oContent,"overflowY") == "auto"));
- if(scrollOn && (nNewItemIndex > -1) &&
- (nNewItemIndex < this._nDisplayedItems)) {
- // User is keying down
- if(nKeyCode == 40) {
- // Bottom of selected item is below scroll area...
- if((oNewItem.offsetTop+oNewItem.offsetHeight) > (oContent.scrollTop + oContent.offsetHeight)) {
- // Set bottom of scroll area to bottom of selected item
- oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight;
- }
- // Bottom of selected item is above scroll area...
- else if((oNewItem.offsetTop+oNewItem.offsetHeight) < oContent.scrollTop) {
- // Set top of selected item to top of scroll area
- oContent.scrollTop = oNewItem.offsetTop;
-
- }
- }
- // User is keying up
- else {
- // Top of selected item is above scroll area
- if(oNewItem.offsetTop < oContent.scrollTop) {
- // Set top of scroll area to top of selected item
- this._oContainer._oContent.scrollTop = oNewItem.offsetTop;
- }
- // Top of selected item is below scroll area
- else if(oNewItem.offsetTop > (oContent.scrollTop + oContent.offsetHeight)) {
- // Set bottom of selected item to bottom of scroll area
- this._oContainer._oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight;
- }
- }
- }
-
- this._toggleHighlight(oNewItem, "to");
- this.itemArrowToEvent.fire(this, oNewItem);
- if(this.typeAhead) {
- this._updateValue(oNewItem);
- }
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles <li> element mouseover events in the container.
- *
- * @method _onItemMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
- if(oSelf.prehighlightClassName) {
- oSelf._togglePrehighlight(this,"mouseover");
- }
- else {
- oSelf._toggleHighlight(this,"to");
- }
-
- oSelf.itemMouseOverEvent.fire(oSelf, this);
-};
-
-/**
- * Handles <li> element mouseout events in the container.
- *
- * @method _onItemMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
- if(oSelf.prehighlightClassName) {
- oSelf._togglePrehighlight(this,"mouseout");
- }
- else {
- oSelf._toggleHighlight(this,"from");
- }
-
- oSelf.itemMouseOutEvent.fire(oSelf, this);
-};
-
-/**
- * Handles <li> element click events in the container.
- *
- * @method _onItemMouseclick
- * @param v {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
- // In case item has not been moused over
- oSelf._toggleHighlight(this,"to");
- oSelf._selectItem(this);
-};
-
-/**
- * Handles container mouseover events.
- *
- * @method _onContainerMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) {
- oSelf._bOverContainer = true;
-};
-
-/**
- * Handles container mouseout events.
- *
- * @method _onContainerMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) {
- oSelf._bOverContainer = false;
- // If container is still active
- if(oSelf._oCurItem) {
- oSelf._toggleHighlight(oSelf._oCurItem,"to");
- }
-};
-
-/**
- * Handles container scroll events.
- *
- * @method _onContainerScroll
- * @param v {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
- oSelf._oTextbox.focus();
-};
-
-/**
- * Handles container resize events.
- *
- * @method _onContainerResize
- * @param v {HTMLEvent} The resize event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) {
- oSelf._toggleContainerHelpers(oSelf._bContainerOpen);
-};
-
-
-/**
- * Handles textbox keydown events of functional keys, mainly for UI behavior.
- *
- * @method _onTextboxKeyDown
- * @param v {HTMLEvent} The keydown event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) {
- var nKeyCode = v.keyCode;
-
- switch (nKeyCode) {
- case 9: // tab
- if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- // select an item or clear out
- if(oSelf._oCurItem) {
- oSelf._selectItem(oSelf._oCurItem);
- }
- else {
- oSelf._toggleContainer(false);
- }
- break;
- case 13: // enter
- if(oSelf._nKeyCode != nKeyCode) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- if(oSelf._oCurItem) {
- oSelf._selectItem(oSelf._oCurItem);
- }
- else {
- oSelf._toggleContainer(false);
- }
- break;
- case 27: // esc
- oSelf._toggleContainer(false);
- return;
- case 39: // right
- oSelf._jumpSelection();
- break;
- case 38: // up
- YAHOO.util.Event.stopEvent(v);
- oSelf._moveSelection(nKeyCode);
- break;
- case 40: // down
- YAHOO.util.Event.stopEvent(v);
- oSelf._moveSelection(nKeyCode);
- break;
- default:
- break;
- }
-};
-
-/**
- * Handles textbox keypress events.
- * @method _onTextboxKeyPress
- * @param v {HTMLEvent} The keypress event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) {
- var nKeyCode = v.keyCode;
-
- //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337)
- var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1);
- if(isMac) {
- switch (nKeyCode) {
- case 9: // tab
- if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- break;
- case 13: // enter
- if(oSelf._nKeyCode != nKeyCode) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- break;
- case 38: // up
- case 40: // down
- YAHOO.util.Event.stopEvent(v);
- break;
- default:
- break;
- }
- }
-
- //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948)
- // Korean IME detected
- else if(nKeyCode == 229) {
- oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500);
- }
-};
-
-/**
- * Handles textbox keyup events that trigger queries.
- *
- * @method _onTextboxKeyUp
- * @param v {HTMLEvent} The keyup event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) {
- // Check to see if any of the public properties have been updated
- oSelf._initProps();
-
- var nKeyCode = v.keyCode;
- oSelf._nKeyCode = nKeyCode;
- var sText = this.value; //string in textbox
-
- // Filter out chars that don't trigger queries
- if (oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) {
- return;
- }
- else {
- oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
- }
-
- // Set timeout on the request
- if (oSelf.queryDelay > 0) {
- var nDelayID =
- setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000));
-
- if (oSelf._nDelayID != -1) {
- clearTimeout(oSelf._nDelayID);
- }
-
- oSelf._nDelayID = nDelayID;
- }
- else {
- // No delay so send request immediately
- oSelf._sendQuery(sText);
- }
-};
-
-/**
- * Handles text input box receiving focus.
- *
- * @method _onTextboxFocus
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
- oSelf._oTextbox.setAttribute("autocomplete","off");
- oSelf._bFocused = true;
- oSelf.textboxFocusEvent.fire(oSelf);
-};
-
-/**
- * Handles text input box losing focus.
- *
- * @method _onTextboxBlur
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
- // Don't treat as a blur if it was a selection via mouse click
- if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
- // Current query needs to be validated
- if(!oSelf._bItemSelected) {
- if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && !oSelf._textMatchesOption())) {
- if(oSelf.forceSelection) {
- oSelf._clearSelection();
- }
- else {
- oSelf.unmatchedItemSelectEvent.fire(oSelf, oSelf._sCurQuery);
- }
- }
- }
-
- if(oSelf._bContainerOpen) {
- oSelf._toggleContainer(false);
- }
- oSelf._cancelIntervalDetection(oSelf);
- oSelf._bFocused = false;
- oSelf.textboxBlurEvent.fire(oSelf);
- }
-};
-
-/**
- * Handles form submission event.
- *
- * @method _onFormSubmit
- * @param v {HTMLEvent} The submit event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onFormSubmit = function(v,oSelf) {
- if(oSelf.allowBrowserAutocomplete) {
- oSelf._oTextbox.setAttribute("autocomplete","on");
- }
- else {
- oSelf._oTextbox.setAttribute("autocomplete","off");
- }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The DataSource classes manages sending a request and returning response from a live
- * database. Supported data include local JavaScript arrays and objects and databases
- * accessible via XHR connections. Supported response formats include JavaScript arrays,
- * JSON, XML, and flat-file textual data.
- *
- * @class DataSource
- * @constructor
- */
-YAHOO.widget.DataSource = function() {
- /* abstract class */
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null";
-
-/**
- * Error message for data responses with parsing errors.
- *
- * @property ERROR_DATAPARSE
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed";
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache. Set to 0 to turn off caching. Caching is
- * useful to reduce the number of server connections. Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 15
- */
-YAHOO.widget.DataSource.prototype.maxCacheEntries = 15;
-
-/**
- * Use this to equate cache matching with the type of matching done by your live
- * data source. If caching is on and queryMatchContains is true, the cache
- * returns results that "contain" the query string. By default,
- * queryMatchContains is set to false, meaning the cache only returns results
- * that "start with" the query string.
- *
- * @property queryMatchContains
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchContains = false;
-
-/**
- * Enables query subset matching. If caching is on and queryMatchSubset is
- * true, substrings of queries will return matching cached results. For
- * instance, if the first query is for "abc" susequent queries that start with
- * "abc", like "abcd", will be queried against the cache, and not the live data
- * source. Recommended only for DataSources that return comprehensive results
- * for queries with very few characters.
- *
- * @property queryMatchSubset
- * @type Boolean
- * @default false
- *
- */
-YAHOO.widget.DataSource.prototype.queryMatchSubset = false;
-
-/**
- * Enables query case-sensitivity matching. If caching is on and
- * queryMatchCase is true, queries will only return results for case-sensitive
- * matches.
- *
- * @property queryMatchCase
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchCase = false;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance
- */
-YAHOO.widget.DataSource.prototype.toString = function() {
- return "DataSource " + this._sName;
-};
-
-/**
- * Retrieves query results, first checking the local cache, then making the
- * query request to the live data source as defined by the function doQuery.
- *
- * @method getResults
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) {
-
- // First look in cache
- var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent);
-
- // Not in cache, so get results from server
- if(aResults.length === 0) {
- this.queryEvent.fire(this, oParent, sQuery);
- this.doQuery(oCallbackFn, sQuery, oParent);
- }
-};
-
-/**
- * Abstract method implemented by subclasses to make a query to the live data
- * source. Must call the callback function with the response returned from the
- * query. Populates cache (if enabled).
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- /* override this */
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.widget.DataSource.prototype.flushCache = function() {
- if(this._aCache) {
- this._aCache = [];
- }
- if(this._aCacheHelper) {
- this._aCacheHelper = [];
- }
- this.cacheFlushEvent.fire(this);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a query is made to the live data source.
- *
- * @event queryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.queryEvent = null;
-
-/**
- * Fired when a query is made to the local cache.
- *
- * @event cacheQueryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.cacheQueryEvent = null;
-
-/**
- * Fired when data is retrieved from the live data source.
- *
- * @event getResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getResultsEvent = null;
-
-/**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null;
-
-/**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param sMsg {String} Error message string
- */
-YAHOO.widget.DataSource.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- * @param oSelf {Object} The DataSource instance
- */
-YAHOO.widget.DataSource.prototype.cacheFlushEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.widget.DataSource.prototype._aCache = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initializes DataSource instance.
- *
- * @method _init
- * @private
- */
-YAHOO.widget.DataSource.prototype._init = function() {
- // Validate and initialize public configs
- var maxCacheEntries = this.maxCacheEntries;
- if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) {
- maxCacheEntries = 0;
- }
- // Initialize local cache
- if(maxCacheEntries > 0 && !this._aCache) {
- this._aCache = [];
- }
-
- this._sName = "instance" + YAHOO.widget.DataSource._nIndex;
- YAHOO.widget.DataSource._nIndex++;
-
- this.queryEvent = new YAHOO.util.CustomEvent("query", this);
- this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this);
- this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this);
- this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this);
- this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
- this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this);
-};
-
-/**
- * Adds a result object to the local cache, evicting the oldest element if the
- * cache is full. Newer items will have higher indexes, the oldest item will have
- * index of 0.
- *
- * @method _addCacheElem
- * @param oResult {Object} Data result object, including array of results.
- * @private
- */
-YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) {
- var aCache = this._aCache;
- // Don't add if anything important is missing.
- if(!aCache || !oResult || !oResult.query || !oResult.results) {
- return;
- }
-
- // If the cache is full, make room by removing from index=0
- if(aCache.length >= this.maxCacheEntries) {
- aCache.shift();
- }
-
- // Add to cache, at the end of the array
- aCache.push(oResult);
-};
-
-/**
- * Queries the local cache for results. If query has been cached, the callback
- * function is called with the results, and the cached is refreshed so that it
- * is now the newest element.
- *
- * @method _doQueryCache
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- * @return aResults {Object[]} Array of results from local cache if found, otherwise null.
- * @private
- */
-YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) {
- var aResults = [];
- var bMatchFound = false;
- var aCache = this._aCache;
- var nCacheLength = (aCache) ? aCache.length : 0;
- var bMatchContains = this.queryMatchContains;
-
- // If cache is enabled...
- if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
- this.cacheQueryEvent.fire(this, oParent, sQuery);
- // If case is unimportant, normalize query now instead of in loops
- if(!this.queryMatchCase) {
- var sOrigQuery = sQuery;
- sQuery = sQuery.toLowerCase();
- }
-
- // Loop through each cached element's query property...
- for(var i = nCacheLength-1; i >= 0; i--) {
- var resultObj = aCache[i];
- var aAllResultItems = resultObj.results;
- // If case is unimportant, normalize match key for comparison
- var matchKey = (!this.queryMatchCase) ?
- encodeURIComponent(resultObj.query).toLowerCase():
- encodeURIComponent(resultObj.query);
-
- // If a cached match key exactly matches the query...
- if(matchKey == sQuery) {
- // Stash all result objects into aResult[] and stop looping through the cache.
- bMatchFound = true;
- aResults = aAllResultItems;
-
- // The matching cache element was not the most recent,
- // so now we need to refresh the cache.
- if(i != nCacheLength-1) {
- // Remove element from its original location
- aCache.splice(i,1);
- // Add element as newest
- this._addCacheElem(resultObj);
- }
- break;
- }
- // Else if this query is not an exact match and subset matching is enabled...
- else if(this.queryMatchSubset) {
- // Loop through substrings of each cached element's query property...
- for(var j = sQuery.length-1; j >= 0 ; j--) {
- var subQuery = sQuery.substr(0,j);
-
- // If a substring of a cached sQuery exactly matches the query...
- if(matchKey == subQuery) {
- bMatchFound = true;
-
- // Go through each cached result object to match against the query...
- for(var k = aAllResultItems.length-1; k >= 0; k--) {
- var aRecord = aAllResultItems[k];
- var sKeyIndex = (this.queryMatchCase) ?
- encodeURIComponent(aRecord[0]).indexOf(sQuery):
- encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);
-
- // A STARTSWITH match is when the query is found at the beginning of the key string...
- if((!bMatchContains && (sKeyIndex === 0)) ||
- // A CONTAINS match is when the query is found anywhere within the key string...
- (bMatchContains && (sKeyIndex > -1))) {
- // Stash a match into aResults[].
- aResults.unshift(aRecord);
- }
- }
-
- // Add the subset match result set object as the newest element to cache,
- // and stop looping through the cache.
- resultObj = {};
- resultObj.query = sQuery;
- resultObj.results = aResults;
- this._addCacheElem(resultObj);
- break;
- }
- }
- if(bMatchFound) {
- break;
- }
- }
- }
-
- // If there was a match, send along the results.
- if(bMatchFound) {
- this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults);
- oCallbackFn(sOrigQuery, aResults, oParent);
- }
- }
- return aResults;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return
- * query results.
- *
- * @class DS_XHR
- * @extends YAHOO.widget.DataSource
- * @requires connection
- * @constructor
- * @param sScriptURI {String} Absolute or relative URI to script that returns query
- * results as JSON, XML, or delimited flat-file data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!aSchema || (aSchema.constructor != Array)) {
- YAHOO.log("Could not instantiate XHR DataSource due to invalid arguments", "error", this.toString());
- return;
- }
- else {
- this.schema = aSchema;
- }
- this.scriptURI = sScriptURI;
- this._init();
- YAHOO.log("XHR DataSource initialized","info",this.toString());
-};
-
-YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * JSON data type.
- *
- * @property TYPE_JSON
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_JSON = 0;
-
-/**
- * XML data type.
- *
- * @property TYPE_XML
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_XML = 1;
-
-/**
- * Flat-file data type.
- *
- * @property TYPE_FLAT
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_FLAT = 2;
-
-/**
- * Error message for XHR failure.
- *
- * @property ERROR_DATAXHR
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Connection Manager. Allows implementers to specify their own
- * subclasses of the YUI Connection Manager utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect;
-
-/**
- * Number of milliseconds the XHR connection will wait for a server response. A
- * a value of zero indicates the XHR connection will wait forever. Any value
- * greater than zero will use the Connection utility's Auto-Abort feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.widget.DS_XHR.prototype.connTimeout = 0;
-
-/**
- * Absolute or relative URI to script that returns query results. For instance,
- * queries will be sent to <scriptURI>?<scriptQueryParam>=userinput
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_XHR.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, queries will be
- * sent to <scriptURI>?<scriptQueryParam>=userinput
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query";
-
-/**
- * String of key/value pairs to append to requests made to scriptURI. Define
- * this string when you want to send additional query parameters to your script.
- * When defined, queries will be sent to
- * <scriptURI>?<scriptQueryParam>=userinput&<scriptQueryAppend>
- *
- * @property scriptQueryAppend
- * @type String
- * @default ""
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = "";
-
-/**
- * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML
- * and YAHOO.widget.DS_XHR.TYPE_FLAT.
- *
- * @property responseType
- * @type String
- * @default YAHOO.widget.DS_XHR.TYPE_JSON
- */
-YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON;
-
-/**
- * String after which to strip results. If the results from the XHR are sent
- * back as HTML, the gzip HTML comment appears at the end of the data and should
- * be ignored.
- *
- * @property responseStripAfter
- * @type String
- * @default "\n<!-"
- */
-YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n 0) {
- sUri += "&" + this.scriptQueryAppend;
- }
- YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString());
- var oResponse = null;
-
- var oSelf = this;
- /*
- * Sets up ajax request callback
- *
- * @param {object} oReq HTTPXMLRequest object
- * @private
- */
- var responseSuccess = function(oResp) {
- // Response ID does not match last made request ID.
- if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", this.toString());
- return;
- }
-//DEBUG
-/*YAHOO.log(oResp.responseXML.getElementsByTagName("Result"),'warn');
-for(var foo in oResp) {
- YAHOO.log(foo + ": "+oResp[foo],'warn');
-}
-YAHOO.log('responseXML.xml: '+oResp.responseXML.xml,'warn');*/
- if(!isXML) {
- oResp = oResp.responseText;
- }
- else {
- oResp = oResp.responseXML;
- }
- if(oResp === null) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", oSelf.toString());
- return;
- }
-
- var aResults = oSelf.parseResponse(sQuery, oResp, oParent);
- var resultObj = {};
- resultObj.query = decodeURIComponent(sQuery);
- resultObj.results = aResults;
- if(aResults === null) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
- YAHOO.log(YAHOO.widget.DataSource.ERROR_DATAPARSE, "error", oSelf.toString());
- aResults = [];
- }
- else {
- oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults);
- oSelf._addCacheElem(resultObj);
- }
- oCallbackFn(sQuery, aResults, oParent);
- };
-
- var responseFailure = function(oResp) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR);
- YAHOO.log(YAHOO.widget.DS_XHR.ERROR_DATAXHR + ": " + oResp.statusText, "error", oSelf.toString());
- return;
- };
-
- var oCallback = {
- success:responseSuccess,
- failure:responseFailure
- };
-
- if(!isNaN(this.connTimeout) && this.connTimeout > 0) {
- oCallback.timeout = this.connTimeout;
- }
-
- if(this._oConn) {
- this.connMgr.abort(this._oConn);
- }
-
- oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null);
-};
-
-/**
- * Parses raw response data into an array of result objects. The result data key
- * is always stashed in the [0] element of each result object.
- *
- * @method parseResponse
- * @param sQuery {String} Query string.
- * @param oResponse {Object} The raw response data to parse.
- * @param oParent {Object} The object instance that has requested data.
- * @returns {Object[]} Array of result objects.
- */
-YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) {
- var aSchema = this.schema;
- var aResults = [];
- var bError = false;
-
- // Strip out comment at the end of results
- var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ?
- oResponse.indexOf(this.responseStripAfter) : -1;
- if(nEnd != -1) {
- oResponse = oResponse.substring(0,nEnd);
- }
-
- switch (this.responseType) {
- case YAHOO.widget.DS_XHR.TYPE_JSON:
- var jsonList;
- // Divert KHTML clients from JSON lib
- if(window.JSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the JSON utility if available
- var jsonObjParsed = JSON.parse(oResponse);
- if(!jsonObjParsed) {
- bError = true;
- break;
- }
- else {
- try {
- // eval is necessary here since aSchema[0] is of unknown depth
- jsonList = eval("jsonObjParsed." + aSchema[0]);
- }
- catch(e) {
- bError = true;
- break;
- }
- }
- }
- else {
- // Parse the JSON response as a string
- try {
- // Trim leading spaces
- while (oResponse.substring(0,1) == " ") {
- oResponse = oResponse.substring(1, oResponse.length);
- }
-
- // Invalid JSON response
- if(oResponse.indexOf("{") < 0) {
- bError = true;
- break;
- }
-
- // Empty (but not invalid) JSON response
- if(oResponse.indexOf("{}") === 0) {
- break;
- }
-
- // Turn the string into an object literal...
- // ...eval is necessary here
- var jsonObjRaw = eval("(" + oResponse + ")");
- if(!jsonObjRaw) {
- bError = true;
- break;
- }
-
- // Grab the object member that contains an array of all reponses...
- // ...eval is necessary here since aSchema[0] is of unknown depth
- jsonList = eval("(jsonObjRaw." + aSchema[0]+")");
- }
- catch(e) {
- bError = true;
- break;
- }
- }
-
- if(!jsonList) {
- bError = true;
- break;
- }
-
- if(jsonList.constructor != Array) {
- jsonList = [jsonList];
- }
-
- // Loop through the array of all responses...
- for(var i = jsonList.length-1; i >= 0 ; i--) {
- var aResultItem = [];
- var jsonResult = jsonList[i];
- // ...and loop through each data field value of each response
- for(var j = aSchema.length-1; j >= 1 ; j--) {
- // ...and capture data into an array mapped according to the schema...
- var dataFieldValue = jsonResult[aSchema[j]];
- if(!dataFieldValue) {
- dataFieldValue = "";
- }
- //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString());
- aResultItem.unshift(dataFieldValue);
- }
- // If schema isn't well defined, pass along the entire result object
- if(aResultItem.length == 1) {
- aResultItem.push(jsonResult);
- }
- // Capture the array of data field values in an array of results
- aResults.unshift(aResultItem);
- }
- break;
- case YAHOO.widget.DS_XHR.TYPE_XML:
- // Get the collection of results
- var xmlList = oResponse.getElementsByTagName(aSchema[0]);
- if(!xmlList) {
- bError = true;
- break;
- }
- // Loop through each result
- for(var k = xmlList.length-1; k >= 0 ; k--) {
- var result = xmlList.item(k);
- //YAHOO.log("Result"+k+" is "+result.attributes.item(0).firstChild.nodeValue,"debug",this.toString());
- var aFieldSet = [];
- // Loop through each data field in each result using the schema
- for(var m = aSchema.length-1; m >= 1 ; m--) {
- //YAHOO.log(aSchema[m]+" is "+result.attributes.getNamedItem(aSchema[m]).firstChild.nodeValue);
- var sValue = null;
- // Values may be held in an attribute...
- var xmlAttr = result.attributes.getNamedItem(aSchema[m]);
- if(xmlAttr) {
- sValue = xmlAttr.value;
- //YAHOO.log("Attr value is "+sValue,"debug",this.toString());
- }
- // ...or in a node
- else{
- var xmlNode = result.getElementsByTagName(aSchema[m]);
- if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
- sValue = xmlNode.item(0).firstChild.nodeValue;
- //YAHOO.log("Node value is "+sValue,"debug",this.toString());
- }
- else {
- sValue = "";
- //YAHOO.log("Value not found","debug",this.toString());
- }
- }
- // Capture the schema-mapped data field values into an array
- aFieldSet.unshift(sValue);
- }
- // Capture each array of values into an array of results
- aResults.unshift(aFieldSet);
- }
- break;
- case YAHOO.widget.DS_XHR.TYPE_FLAT:
- if(oResponse.length > 0) {
- // Delete the last line delimiter at the end of the data if it exists
- var newLength = oResponse.length-aSchema[0].length;
- if(oResponse.substr(newLength) == aSchema[0]) {
- oResponse = oResponse.substr(0, newLength);
- }
- var aRecords = oResponse.split(aSchema[0]);
- for(var n = aRecords.length-1; n >= 0; n--) {
- aResults[n] = aRecords[n].split(aSchema[1]);
- }
- }
- break;
- default:
- break;
- }
- sQuery = null;
- oResponse = null;
- oParent = null;
- if(bError) {
- return null;
- }
- else {
- return aResults;
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * XHR connection object.
- *
- * @property _oConn
- * @type Object
- * @private
- */
-YAHOO.widget.DS_XHR.prototype._oConn = null;
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript function as
- * its live data source.
- *
- * @class DS_JSFunction
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!oFunction || (oFunction.constructor != Function)) {
- YAHOO.log("Could not instantiate JSFunction DataSource due to invalid arguments", "error", this.toString());
- return;
- }
- else {
- this.dataFunction = oFunction;
- this._init();
- YAHOO.log("JS Function DataSource initialized","info",this.toString());
- }
-};
-
-YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript function that returns query results.
- *
- * @property dataFunction
- * @type HTMLFunction
- */
-YAHOO.widget.DS_JSFunction.prototype.dataFunction = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by function for results. Results are
- * passed back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- var oFunction = this.dataFunction;
- var aResults = [];
-
- aResults = oFunction(sQuery);
- if(aResults === null) {
- this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", this.toString());
- return;
- }
-
- var resultObj = {};
- resultObj.query = decodeURIComponent(sQuery);
- resultObj.results = aResults;
- this._addCacheElem(resultObj);
-
- this.getResultsEvent.fire(this, oParent, sQuery, aResults);
- oCallbackFn(sQuery, aResults, oParent);
- return;
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript array as
- * its live data source.
- *
- * @class DS_JSArray
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param aData {String[]} In-memory Javascript array of simple string data.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSArray = function(aData, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!aData || (aData.constructor != Array)) {
- YAHOO.log("Could not instantiate JSArray DataSource due to invalid arguments", "error", this.toString());
- return;
- }
- else {
- this.data = aData;
- this._init();
- YAHOO.log("JS Array DataSource initialized","info",this.toString());
- }
-};
-
-YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript array of strings.
- *
- * @property data
- * @type Array
- */
-YAHOO.widget.DS_JSArray.prototype.data = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by data for results. Results are passed
- * back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- var aData = this.data; // the array
- var aResults = []; // container for results
- var bMatchFound = false;
- var bMatchContains = this.queryMatchContains;
- if(sQuery) {
- if(!this.queryMatchCase) {
- sQuery = sQuery.toLowerCase();
- }
-
- // Loop through each element of the array...
- // which can be a string or an array of strings
- for(var i = aData.length-1; i >= 0; i--) {
- var aDataset = [];
-
- if(aData[i]) {
- if(aData[i].constructor == String) {
- aDataset[0] = aData[i];
- }
- else if(aData[i].constructor == Array) {
- aDataset = aData[i];
- }
- }
-
- if(aDataset[0] && (aDataset[0].constructor == String)) {
- var sKeyIndex = (this.queryMatchCase) ?
- encodeURIComponent(aDataset[0]).indexOf(sQuery):
- encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);
-
- // A STARTSWITH match is when the query is found at the beginning of the key string...
- if((!bMatchContains && (sKeyIndex === 0)) ||
- // A CONTAINS match is when the query is found anywhere within the key string...
- (bMatchContains && (sKeyIndex > -1))) {
- // Stash a match into aResults[].
- aResults.unshift(aDataset);
- }
- }
- }
- }
-
- this.getResultsEvent.fire(this, oParent, sQuery, aResults);
- oCallbackFn(sQuery, aResults, oParent);
-};
-
-YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js
deleted file mode 100644
index f15e718970360f8b3fbcfbab81c6052062aed6c6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete-min.js
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.widget.AutoComplete=function(elInput,elContainer,oDataSource,oConfigs){if(elInput&&elContainer&&oDataSource){if(oDataSource&&(oDataSource instanceof YAHOO.widget.DataSource)){this.dataSource=oDataSource;}
-else{return;}
-if(YAHOO.util.Dom.inDocument(elInput)){if(typeof elInput=="string"){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+elInput;this._oTextbox=document.getElementById(elInput);}
-else{this._sName=(elInput.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+elInput.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._oTextbox=elInput;}}
-else{return;}
-if(YAHOO.util.Dom.inDocument(elContainer)){if(typeof elContainer=="string"){this._oContainer=document.getElementById(elContainer);}
-else{this._oContainer=elContainer;}
-if(this._oContainer.style.display=="none"){}}
-else{return;}
-if(typeof oConfigs=="object"){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}}
-this._initContainer();this._initProps();this._initList();this._initContainerHelpers();var oSelf=this;var oTextbox=this._oTextbox;var oContent=this._oContainer._oContent;YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf);YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf);YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf);YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf);YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf);YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf);if(oTextbox.form){YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf);}
-YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);oTextbox.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;}
-else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.5;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListItems=function(){return this._aListItems;};YAHOO.widget.AutoComplete.prototype.getListItemData=function(oListItem){if(oListItem._oResultData){return oListItem._oResultData;}
-else{return false;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(sHeader){if(sHeader){if(this._oContainer._oContent._oHeader){this._oContainer._oContent._oHeader.innerHTML=sHeader;this._oContainer._oContent._oHeader.style.display="block";}}
-else{this._oContainer._oContent._oHeader.innerHTML="";this._oContainer._oContent._oHeader.style.display="none";}};YAHOO.widget.AutoComplete.prototype.setFooter=function(sFooter){if(sFooter){if(this._oContainer._oContent._oFooter){this._oContainer._oContent._oFooter.innerHTML=sFooter;this._oContainer._oContent._oFooter.style.display="block";}}
-else{this._oContainer._oContent._oFooter.innerHTML="";this._oContainer._oContent._oFooter.style.display="none";}};YAHOO.widget.AutoComplete.prototype.setBody=function(sBody){if(sBody){if(this._oContainer._oContent._oBody){this._oContainer._oContent._oBody.innerHTML=sBody;this._oContainer._oContent._oBody.style.display="block";this._oContainer._oContent.style.display="block";}}
-else{this._oContainer._oContent._oBody.innerHTML="";this._oContainer._oContent.style.display="none";}
-this._maxResultsDisplayed=0;};YAHOO.widget.AutoComplete.prototype.formatResult=function(oResultItem,sQuery){var sResult=oResultItem[0];if(sResult){return sResult;}
-else{return"";}};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(oResultItem,sQuery){return true;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(sQuery){this._sendQuery(sQuery);};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._oTextbox=null;YAHOO.widget.AutoComplete.prototype._bFocused=true;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._oContainer=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._aListItems=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sSavedQuery=null;YAHOO.widget.AutoComplete.prototype._oCurItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var minQueryLength=this.minQueryLength;if(isNaN(minQueryLength)||(minQueryLength<1)){minQueryLength=1;}
-var maxResultsDisplayed=this.maxResultsDisplayed;if(isNaN(this.maxResultsDisplayed)||(this.maxResultsDisplayed<1)){this.maxResultsDisplayed=10;}
-var queryDelay=this.queryDelay;if(isNaN(this.queryDelay)||(this.queryDelay<0)){this.queryDelay=0.5;}
-var aDelimChar=(this.delimChar)?this.delimChar:null;if(aDelimChar){if(typeof aDelimChar=="string"){this.delimChar=[aDelimChar];}
-else if(aDelimChar.constructor!=Array){this.delimChar=null;}}
-var animSpeed=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(isNaN(animSpeed)||(animSpeed<0)){animSpeed=0.3;}
-if(!this._oAnim){oAnim=new YAHOO.util.Anim(this._oContainer._oContent,{},this.animSpeed);this._oAnim=oAnim;}
-else{this._oAnim.duration=animSpeed;}}
-if(this.forceSelection&&this.delimChar){}};YAHOO.widget.AutoComplete.prototype._initContainerHelpers=function(){if(this.useShadow&&!this._oContainer._oShadow){var oShadow=document.createElement("div");oShadow.className="yui-ac-shadow";this._oContainer._oShadow=this._oContainer.appendChild(oShadow);}
-if(this.useIFrame&&!this._oContainer._oIFrame){var oIFrame=document.createElement("iframe");oIFrame.src=this._iFrameSrc;oIFrame.frameBorder=0;oIFrame.scrolling="no";oIFrame.style.position="absolute";oIFrame.style.width="100%";oIFrame.style.height="100%";oIFrame.tabIndex=-1;this._oContainer._oIFrame=this._oContainer.appendChild(oIFrame);}};YAHOO.widget.AutoComplete.prototype._initContainer=function(){if(!this._oContainer._oContent){var oContent=document.createElement("div");oContent.className="yui-ac-content";oContent.style.display="none";this._oContainer._oContent=this._oContainer.appendChild(oContent);var oHeader=document.createElement("div");oHeader.className="yui-ac-hd";oHeader.style.display="none";this._oContainer._oContent._oHeader=this._oContainer._oContent.appendChild(oHeader);var oBody=document.createElement("div");oBody.className="yui-ac-bd";this._oContainer._oContent._oBody=this._oContainer._oContent.appendChild(oBody);var oFooter=document.createElement("div");oFooter.className="yui-ac-ft";oFooter.style.display="none";this._oContainer._oContent._oFooter=this._oContainer._oContent.appendChild(oFooter);}
-else{}};YAHOO.widget.AutoComplete.prototype._initList=function(){this._aListItems=[];while(this._oContainer._oContent._oBody.hasChildNodes()){var oldListItems=this.getListItems();if(oldListItems){for(var oldi=oldListItems.length-1;oldi>=0;i--){oldListItems[oldi]=null;}}
-this._oContainer._oContent._oBody.innerHTML="";}
-var oList=document.createElement("ul");oList=this._oContainer._oContent._oBody.appendChild(oList);for(var i=0;i=18&&nKeyCode<=20)||(nKeyCode==27)||(nKeyCode>=33&&nKeyCode<=35)||(nKeyCode>=36&&nKeyCode<=38)||(nKeyCode==40)||(nKeyCode>=44&&nKeyCode<=45)){return true;}
-return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(sQuery){if(this.minQueryLength==-1){this._toggleContainer(false);return;}
-var aDelimChar=(this.delimChar)?this.delimChar:null;if(aDelimChar){var nDelimIndex=-1;for(var i=aDelimChar.length-1;i>=0;i--){var nNewIndex=sQuery.lastIndexOf(aDelimChar[i]);if(nNewIndex>nDelimIndex){nDelimIndex=nNewIndex;}}
-if(aDelimChar[i]==" "){for(var j=aDelimChar.length-1;j>=0;j--){if(sQuery[nDelimIndex-1]==aDelimChar[j]){nDelimIndex--;break;}}}
-if(nDelimIndex>-1){var nQueryStart=nDelimIndex+1;while(sQuery.charAt(nQueryStart)==" "){nQueryStart+=1;}
-this._sSavedQuery=sQuery.substring(0,nQueryStart);sQuery=sQuery.substr(nQueryStart);}
-else if(sQuery.indexOf(this._sSavedQuery)<0){this._sSavedQuery=null;}}
-if(sQuery&&(sQuery.length0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID);}
-this._toggleContainer(false);return;}
-sQuery=encodeURIComponent(sQuery);this._nDelayID=-1;this.dataRequestEvent.fire(this,sQuery);this.dataSource.getResults(this._populateList,sQuery,this);};YAHOO.widget.AutoComplete.prototype._populateList=function(sQuery,aResults,oSelf){if(aResults===null){oSelf.dataErrorEvent.fire(oSelf,sQuery);}
-if(!oSelf._bFocused||!aResults){return;}
-var isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);var contentStyle=oSelf._oContainer._oContent.style;contentStyle.width=(!isOpera)?null:"";contentStyle.height=(!isOpera)?null:"";var sCurQuery=decodeURIComponent(sQuery);oSelf._sCurQuery=sCurQuery;oSelf._bItemSelected=false;if(oSelf._maxResultsDisplayed!=oSelf.maxResultsDisplayed){oSelf._initList();}
-var nItems=Math.min(aResults.length,oSelf.maxResultsDisplayed);oSelf._nDisplayedItems=nItems;if(nItems>0){oSelf._initContainerHelpers();var aItems=oSelf._aListItems;for(var i=nItems-1;i>=0;i--){var oItemi=aItems[i];var oResultItemi=aResults[i];oItemi.innerHTML=oSelf.formatResult(oResultItemi,sCurQuery);oItemi.style.display="list-item";oItemi._sResultKey=oResultItemi[0];oItemi._oResultData=oResultItemi;}
-for(var j=aItems.length-1;j>=nItems;j--){var oItemj=aItems[j];oItemj.innerHTML=null;oItemj.style.display="none";oItemj._sResultKey=null;oItemj._oResultData=null;}
-if(oSelf.autoHighlight){var oFirstItem=aItems[0];oSelf._toggleHighlight(oFirstItem,"to");oSelf.itemArrowToEvent.fire(oSelf,oFirstItem);oSelf._typeAhead(oFirstItem,sQuery);}
-else{oSelf._oCurItem=null;}
-var ok=oSelf.doBeforeExpandContainer(oSelf._oTextbox,oSelf._oContainer,sQuery,aResults);oSelf._toggleContainer(ok);}
-else{oSelf._toggleContainer(false);}
-oSelf.dataReturnEvent.fire(oSelf,sQuery,aResults);};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var sValue=this._oTextbox.value;var sChar=(this.delimChar)?this.delimChar[0]:null;var nIndex=(sChar)?sValue.lastIndexOf(sChar,sValue.length-2):-1;if(nIndex>-1){this._oTextbox.value=sValue.substring(0,nIndex);}
-else{this._oTextbox.value="";}
-this._sSavedQuery=this._oTextbox.value;this.selectionEnforceEvent.fire(this);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var foundMatch=false;for(var i=this._nDisplayedItems-1;i>=0;i--){var oItem=this._aListItems[i];var sMatch=oItem._sResultKey.toLowerCase();if(sMatch==this._sCurQuery.toLowerCase()){foundMatch=true;break;}}
-return(foundMatch);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(oItem,sQuery){if(!this.typeAhead||(this._nKeyCode==8)){return;}
-var oTextbox=this._oTextbox;var sValue=this._oTextbox.value;if(!oTextbox.setSelectionRange&&!oTextbox.createTextRange){return;}
-var nStart=sValue.length;this._updateValue(oItem);var nEnd=oTextbox.value.length;this._selectText(oTextbox,nStart,nEnd);var sPrefill=oTextbox.value.substr(nStart,nEnd);this.typeAheadEvent.fire(this,sQuery,sPrefill);};YAHOO.widget.AutoComplete.prototype._selectText=function(oTextbox,nStart,nEnd){if(oTextbox.setSelectionRange){oTextbox.setSelectionRange(nStart,nEnd);}
-else if(oTextbox.createTextRange){var oTextRange=oTextbox.createTextRange();oTextRange.moveStart("character",nStart);oTextRange.moveEnd("character",nEnd-oTextbox.value.length);oTextRange.select();}
-else{oTextbox.select();}};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(bShow){var bFireEvent=false;var width=this._oContainer._oContent.offsetWidth+"px";var height=this._oContainer._oContent.offsetHeight+"px";if(this.useIFrame&&this._oContainer._oIFrame){bFireEvent=true;if(bShow){this._oContainer._oIFrame.style.width=width;this._oContainer._oIFrame.style.height=height;}
-else{this._oContainer._oIFrame.style.width=0;this._oContainer._oIFrame.style.height=0;}}
-if(this.useShadow&&this._oContainer._oShadow){bFireEvent=true;if(bShow){this._oContainer._oShadow.style.width=width;this._oContainer._oShadow.style.height=height;}
-else{this._oContainer._oShadow.style.width=0;this._oContainer._oShadow.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(bShow){var oContainer=this._oContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return;}
-if(!bShow){this._oContainer._oContent.scrollTop=0;var aItems=this._aListItems;if(aItems&&(aItems.length>0)){for(var i=aItems.length-1;i>=0;i--){aItems[i].style.display="none";}}
-if(this._oCurItem){this._toggleHighlight(this._oCurItem,"from");}
-this._oCurItem=null;this._nDisplayedItems=0;this._sCurQuery=null;}
-if(!bShow&&!this._bContainerOpen){oContainer._oContent.style.display="none";return;}
-var oAnim=this._oAnim;if(oAnim&&oAnim.getEl()&&(this.animHoriz||this.animVert)){if(!bShow){this._toggleContainerHelpers(bShow);}
-if(oAnim.isAnimated()){oAnim.stop();}
-var oClone=oContainer._oContent.cloneNode(true);oContainer.appendChild(oClone);oClone.style.top="-9000px";oClone.style.display="block";var wExp=oClone.offsetWidth;var hExp=oClone.offsetHeight;var wColl=(this.animHoriz)?0:wExp;var hColl=(this.animVert)?0:hExp;oAnim.attributes=(bShow)?{width:{to:wExp},height:{to:hExp}}:{width:{to:wColl},height:{to:hColl}};if(bShow&&!this._bContainerOpen){oContainer._oContent.style.width=wColl+"px";oContainer._oContent.style.height=hColl+"px";}
-else{oContainer._oContent.style.width=wExp+"px";oContainer._oContent.style.height=hExp+"px";}
-oContainer.removeChild(oClone);oClone=null;var oSelf=this;var onAnimComplete=function(){oAnim.onComplete.unsubscribeAll();if(bShow){oSelf.containerExpandEvent.fire(oSelf);}
-else{oContainer._oContent.style.display="none";oSelf.containerCollapseEvent.fire(oSelf);}
-oSelf._toggleContainerHelpers(bShow);};oContainer._oContent.style.display="block";oAnim.onComplete.subscribe(onAnimComplete);oAnim.animate();this._bContainerOpen=bShow;}
-else{if(bShow){oContainer._oContent.style.display="block";this.containerExpandEvent.fire(this);}
-else{oContainer._oContent.style.display="none";this.containerCollapseEvent.fire(this);}
-this._toggleContainerHelpers(bShow);this._bContainerOpen=bShow;}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(oNewItem,sType){var sHighlight=this.highlightClassName;if(this._oCurItem){YAHOO.util.Dom.removeClass(this._oCurItem,sHighlight);}
-if((sType=="to")&&sHighlight){YAHOO.util.Dom.addClass(oNewItem,sHighlight);this._oCurItem=oNewItem;}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(oNewItem,sType){if(oNewItem==this._oCurItem){return;}
-var sPrehighlight=this.prehighlightClassName;if((sType=="mouseover")&&sPrehighlight){YAHOO.util.Dom.addClass(oNewItem,sPrehighlight);}
-else{YAHOO.util.Dom.removeClass(oNewItem,sPrehighlight);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(oItem){var oTextbox=this._oTextbox;var sDelimChar=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var sSavedQuery=this._sSavedQuery;var sResultKey=oItem._sResultKey;oTextbox.focus();oTextbox.value="";if(sDelimChar){if(sSavedQuery){oTextbox.value=sSavedQuery;}
-oTextbox.value+=sResultKey+sDelimChar;if(sDelimChar!=" "){oTextbox.value+=" ";}}
-else{oTextbox.value=sResultKey;}
-if(oTextbox.type=="textarea"){oTextbox.scrollTop=oTextbox.scrollHeight;}
-var end=oTextbox.value.length;this._selectText(oTextbox,end,end);this._oCurItem=oItem;};YAHOO.widget.AutoComplete.prototype._selectItem=function(oItem){this._bItemSelected=true;this._updateValue(oItem);this._cancelIntervalDetection(this);this.itemSelectEvent.fire(this,oItem,oItem._oResultData);this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(!this.typeAhead){return;}
-else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(nKeyCode){if(this._bContainerOpen){var oCurItem=this._oCurItem;var nCurItemIndex=-1;if(oCurItem){nCurItemIndex=oCurItem._nItemIndex;}
-var nNewItemIndex=(nKeyCode==40)?(nCurItemIndex+1):(nCurItemIndex-1);if(nNewItemIndex<-2||nNewItemIndex>=this._nDisplayedItems){return;}
-if(oCurItem){this._toggleHighlight(oCurItem,"from");this.itemArrowFromEvent.fire(this,oCurItem);}
-if(nNewItemIndex==-1){if(this.delimChar&&this._sSavedQuery){if(!this._textMatchesOption()){this._oTextbox.value=this._sSavedQuery;}
-else{this._oTextbox.value=this._sSavedQuery+this._sCurQuery;}}
-else{this._oTextbox.value=this._sCurQuery;}
-this._oCurItem=null;return;}
-if(nNewItemIndex==-2){this._toggleContainer(false);return;}
-var oNewItem=this._aListItems[nNewItemIndex];var oContent=this._oContainer._oContent;var scrollOn=((YAHOO.util.Dom.getStyle(oContent,"overflow")=="auto")||(YAHOO.util.Dom.getStyle(oContent,"overflowY")=="auto"));if(scrollOn&&(nNewItemIndex>-1)&&(nNewItemIndex(oContent.scrollTop+oContent.offsetHeight)){oContent.scrollTop=(oNewItem.offsetTop+oNewItem.offsetHeight)-oContent.offsetHeight;}
-else if((oNewItem.offsetTop+oNewItem.offsetHeight)(oContent.scrollTop+oContent.offsetHeight)){this._oContainer._oContent.scrollTop=(oNewItem.offsetTop+oNewItem.offsetHeight)-oContent.offsetHeight;}}}
-this._toggleHighlight(oNewItem,"to");this.itemArrowToEvent.fire(this,oNewItem);if(this.typeAhead){this._updateValue(oNewItem);}}};YAHOO.widget.AutoComplete.prototype._onItemMouseover=function(v,oSelf){if(oSelf.prehighlightClassName){oSelf._togglePrehighlight(this,"mouseover");}
-else{oSelf._toggleHighlight(this,"to");}
-oSelf.itemMouseOverEvent.fire(oSelf,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseout=function(v,oSelf){if(oSelf.prehighlightClassName){oSelf._togglePrehighlight(this,"mouseout");}
-else{oSelf._toggleHighlight(this,"from");}
-oSelf.itemMouseOutEvent.fire(oSelf,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseclick=function(v,oSelf){oSelf._toggleHighlight(this,"to");oSelf._selectItem(this);};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(v,oSelf){oSelf._bOverContainer=true;};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(v,oSelf){oSelf._bOverContainer=false;if(oSelf._oCurItem){oSelf._toggleHighlight(oSelf._oCurItem,"to");}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(v,oSelf){oSelf._oTextbox.focus();};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(v,oSelf){oSelf._toggleContainerHelpers(oSelf._bContainerOpen);};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(v,oSelf){var nKeyCode=v.keyCode;switch(nKeyCode){case 9:if(oSelf.delimChar&&(oSelf._nKeyCode!=nKeyCode)){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}}
-if(oSelf._oCurItem){oSelf._selectItem(oSelf._oCurItem);}
-else{oSelf._toggleContainer(false);}
-break;case 13:if(oSelf._nKeyCode!=nKeyCode){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}}
-if(oSelf._oCurItem){oSelf._selectItem(oSelf._oCurItem);}
-else{oSelf._toggleContainer(false);}
-break;case 27:oSelf._toggleContainer(false);return;case 39:oSelf._jumpSelection();break;case 38:YAHOO.util.Event.stopEvent(v);oSelf._moveSelection(nKeyCode);break;case 40:YAHOO.util.Event.stopEvent(v);oSelf._moveSelection(nKeyCode);break;default:break;}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(v,oSelf){var nKeyCode=v.keyCode;var isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);if(isMac){switch(nKeyCode){case 9:if(oSelf.delimChar&&(oSelf._nKeyCode!=nKeyCode)){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}}
-break;case 13:if(oSelf._nKeyCode!=nKeyCode){if(oSelf._bContainerOpen){YAHOO.util.Event.stopEvent(v);}}
-break;case 38:case 40:YAHOO.util.Event.stopEvent(v);break;default:break;}}
-else if(nKeyCode==229){oSelf._queryInterval=setInterval(function(){oSelf._onIMEDetected(oSelf);},500);}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(v,oSelf){oSelf._initProps();var nKeyCode=v.keyCode;oSelf._nKeyCode=nKeyCode;var sText=this.value;if(oSelf._isIgnoreKey(nKeyCode)||(sText.toLowerCase()==oSelf._sCurQuery)){return;}
-else{oSelf.textboxKeyEvent.fire(oSelf,nKeyCode);}
-if(oSelf.queryDelay>0){var nDelayID=setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay*1000));if(oSelf._nDelayID!=-1){clearTimeout(oSelf._nDelayID);}
-oSelf._nDelayID=nDelayID;}
-else{oSelf._sendQuery(sText);}};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(v,oSelf){oSelf._oTextbox.setAttribute("autocomplete","off");oSelf._bFocused=true;oSelf.textboxFocusEvent.fire(oSelf);};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(v,oSelf){if(!oSelf._bOverContainer||(oSelf._nKeyCode==9)){if(!oSelf._bItemSelected){if(!oSelf._bContainerOpen||(oSelf._bContainerOpen&&!oSelf._textMatchesOption())){if(oSelf.forceSelection){oSelf._clearSelection();}
-else{oSelf.unmatchedItemSelectEvent.fire(oSelf,oSelf._sCurQuery);}}}
-if(oSelf._bContainerOpen){oSelf._toggleContainer(false);}
-oSelf._cancelIntervalDetection(oSelf);oSelf._bFocused=false;oSelf.textboxBlurEvent.fire(oSelf);}};YAHOO.widget.AutoComplete.prototype._onFormSubmit=function(v,oSelf){if(oSelf.allowBrowserAutocomplete){oSelf._oTextbox.setAttribute("autocomplete","on");}
-else{oSelf._oTextbox.setAttribute("autocomplete","off");}};YAHOO.widget.DataSource=function(){};YAHOO.widget.DataSource.ERROR_DATANULL="Response data was null";YAHOO.widget.DataSource.ERROR_DATAPARSE="Response data could not be parsed";YAHOO.widget.DataSource.prototype.maxCacheEntries=15;YAHOO.widget.DataSource.prototype.queryMatchContains=false;YAHOO.widget.DataSource.prototype.queryMatchSubset=false;YAHOO.widget.DataSource.prototype.queryMatchCase=false;YAHOO.widget.DataSource.prototype.toString=function(){return"DataSource "+this._sName;};YAHOO.widget.DataSource.prototype.getResults=function(oCallbackFn,sQuery,oParent){var aResults=this._doQueryCache(oCallbackFn,sQuery,oParent);if(aResults.length===0){this.queryEvent.fire(this,oParent,sQuery);this.doQuery(oCallbackFn,sQuery,oParent);}};YAHOO.widget.DataSource.prototype.doQuery=function(oCallbackFn,sQuery,oParent){};YAHOO.widget.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[];}
-if(this._aCacheHelper){this._aCacheHelper=[];}
-this.cacheFlushEvent.fire(this);};YAHOO.widget.DataSource.prototype.queryEvent=null;YAHOO.widget.DataSource.prototype.cacheQueryEvent=null;YAHOO.widget.DataSource.prototype.getResultsEvent=null;YAHOO.widget.DataSource.prototype.getCachedResultsEvent=null;YAHOO.widget.DataSource.prototype.dataErrorEvent=null;YAHOO.widget.DataSource.prototype.cacheFlushEvent=null;YAHOO.widget.DataSource._nIndex=0;YAHOO.widget.DataSource.prototype._sName=null;YAHOO.widget.DataSource.prototype._aCache=null;YAHOO.widget.DataSource.prototype._init=function(){var maxCacheEntries=this.maxCacheEntries;if(isNaN(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;}
-if(maxCacheEntries>0&&!this._aCache){this._aCache=[];}
-this._sName="instance"+YAHOO.widget.DataSource._nIndex;YAHOO.widget.DataSource._nIndex++;this.queryEvent=new YAHOO.util.CustomEvent("query",this);this.cacheQueryEvent=new YAHOO.util.CustomEvent("cacheQuery",this);this.getResultsEvent=new YAHOO.util.CustomEvent("getResults",this);this.getCachedResultsEvent=new YAHOO.util.CustomEvent("getCachedResults",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.cacheFlushEvent=new YAHOO.util.CustomEvent("cacheFlush",this);};YAHOO.widget.DataSource.prototype._addCacheElem=function(oResult){var aCache=this._aCache;if(!aCache||!oResult||!oResult.query||!oResult.results){return;}
-if(aCache.length>=this.maxCacheEntries){aCache.shift();}
-aCache.push(oResult);};YAHOO.widget.DataSource.prototype._doQueryCache=function(oCallbackFn,sQuery,oParent){var aResults=[];var bMatchFound=false;var aCache=this._aCache;var nCacheLength=(aCache)?aCache.length:0;var bMatchContains=this.queryMatchContains;if((this.maxCacheEntries>0)&&aCache&&(nCacheLength>0)){this.cacheQueryEvent.fire(this,oParent,sQuery);if(!this.queryMatchCase){var sOrigQuery=sQuery;sQuery=sQuery.toLowerCase();}
-for(var i=nCacheLength-1;i>=0;i--){var resultObj=aCache[i];var aAllResultItems=resultObj.results;var matchKey=(!this.queryMatchCase)?encodeURIComponent(resultObj.query).toLowerCase():encodeURIComponent(resultObj.query);if(matchKey==sQuery){bMatchFound=true;aResults=aAllResultItems;if(i!=nCacheLength-1){aCache.splice(i,1);this._addCacheElem(resultObj);}
-break;}
-else if(this.queryMatchSubset){for(var j=sQuery.length-1;j>=0;j--){var subQuery=sQuery.substr(0,j);if(matchKey==subQuery){bMatchFound=true;for(var k=aAllResultItems.length-1;k>=0;k--){var aRecord=aAllResultItems[k];var sKeyIndex=(this.queryMatchCase)?encodeURIComponent(aRecord[0]).indexOf(sQuery):encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);if((!bMatchContains&&(sKeyIndex===0))||(bMatchContains&&(sKeyIndex>-1))){aResults.unshift(aRecord);}}
-resultObj={};resultObj.query=sQuery;resultObj.results=aResults;this._addCacheElem(resultObj);break;}}
-if(bMatchFound){break;}}}
-if(bMatchFound){this.getCachedResultsEvent.fire(this,oParent,sOrigQuery,aResults);oCallbackFn(sOrigQuery,aResults,oParent);}}
-return aResults;};YAHOO.widget.DS_XHR=function(sScriptURI,aSchema,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}}
-if(!aSchema||(aSchema.constructor!=Array)){return;}
-else{this.schema=aSchema;}
-this.scriptURI=sScriptURI;this._init();};YAHOO.widget.DS_XHR.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_XHR.TYPE_JSON=0;YAHOO.widget.DS_XHR.TYPE_XML=1;YAHOO.widget.DS_XHR.TYPE_FLAT=2;YAHOO.widget.DS_XHR.ERROR_DATAXHR="XHR response failed";YAHOO.widget.DS_XHR.prototype.connMgr=YAHOO.util.Connect;YAHOO.widget.DS_XHR.prototype.connTimeout=0;YAHOO.widget.DS_XHR.prototype.scriptURI=null;YAHOO.widget.DS_XHR.prototype.scriptQueryParam="query";YAHOO.widget.DS_XHR.prototype.scriptQueryAppend="";YAHOO.widget.DS_XHR.prototype.responseType=YAHOO.widget.DS_XHR.TYPE_JSON;YAHOO.widget.DS_XHR.prototype.responseStripAfter="\n0){sUri+="&"+this.scriptQueryAppend;}
-var oResponse=null;var oSelf=this;var responseSuccess=function(oResp){if(!oSelf._oConn||(oResp.tId!=oSelf._oConn.tId)){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;}
-for(var foo in oResp){}
-if(!isXML){oResp=oResp.responseText;}
-else{oResp=oResp.responseXML;}
-if(oResp===null){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;}
-var aResults=oSelf.parseResponse(sQuery,oResp,oParent);var resultObj={};resultObj.query=decodeURIComponent(sQuery);resultObj.results=aResults;if(aResults===null){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATAPARSE);aResults=[];}
-else{oSelf.getResultsEvent.fire(oSelf,oParent,sQuery,aResults);oSelf._addCacheElem(resultObj);}
-oCallbackFn(sQuery,aResults,oParent);};var responseFailure=function(oResp){oSelf.dataErrorEvent.fire(oSelf,oParent,sQuery,YAHOO.widget.DS_XHR.ERROR_DATAXHR);return;};var oCallback={success:responseSuccess,failure:responseFailure};if(!isNaN(this.connTimeout)&&this.connTimeout>0){oCallback.timeout=this.connTimeout;}
-if(this._oConn){this.connMgr.abort(this._oConn);}
-oSelf._oConn=this.connMgr.asyncRequest("GET",sUri,oCallback,null);};YAHOO.widget.DS_XHR.prototype.parseResponse=function(sQuery,oResponse,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var nEnd=((this.responseStripAfter!=="")&&(oResponse.indexOf))?oResponse.indexOf(this.responseStripAfter):-1;if(nEnd!=-1){oResponse=oResponse.substring(0,nEnd);}
-switch(this.responseType){case YAHOO.widget.DS_XHR.TYPE_JSON:var jsonList;if(window.JSON&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){var jsonObjParsed=JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break;}
-else{try{jsonList=eval("jsonObjParsed."+aSchema[0]);}
-catch(e){bError=true;break;}}}
-else{try{while(oResponse.substring(0,1)==" "){oResponse=oResponse.substring(1,oResponse.length);}
-if(oResponse.indexOf("{")<0){bError=true;break;}
-if(oResponse.indexOf("{}")===0){break;}
-var jsonObjRaw=eval("("+oResponse+")");if(!jsonObjRaw){bError=true;break;}
-jsonList=eval("(jsonObjRaw."+aSchema[0]+")");}
-catch(e){bError=true;break;}}
-if(!jsonList){bError=true;break;}
-if(jsonList.constructor!=Array){jsonList=[jsonList];}
-for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";}
-aResultItem.unshift(dataFieldValue);}
-if(aResultItem.length==1){aResultItem.push(jsonResult);}
-aResults.unshift(aResultItem);}
-break;case YAHOO.widget.DS_XHR.TYPE_XML:var xmlList=oResponse.getElementsByTagName(aSchema[0]);if(!xmlList){bError=true;break;}
-for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var aFieldSet=[];for(var m=aSchema.length-1;m>=1;m--){var sValue=null;var xmlAttr=result.attributes.getNamedItem(aSchema[m]);if(xmlAttr){sValue=xmlAttr.value;}
-else{var xmlNode=result.getElementsByTagName(aSchema[m]);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue;}
-else{sValue="";}}
-aFieldSet.unshift(sValue);}
-aResults.unshift(aFieldSet);}
-break;case YAHOO.widget.DS_XHR.TYPE_FLAT:if(oResponse.length>0){var newLength=oResponse.length-aSchema[0].length;if(oResponse.substr(newLength)==aSchema[0]){oResponse=oResponse.substr(0,newLength);}
-var aRecords=oResponse.split(aSchema[0]);for(var n=aRecords.length-1;n>=0;n--){aResults[n]=aRecords[n].split(aSchema[1]);}}
-break;default:break;}
-sQuery=null;oResponse=null;oParent=null;if(bError){return null;}
-else{return aResults;}};YAHOO.widget.DS_XHR.prototype._oConn=null;YAHOO.widget.DS_JSFunction=function(oFunction,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}}
-if(!oFunction||(oFunction.constructor!=Function)){return;}
-else{this.dataFunction=oFunction;this._init();}};YAHOO.widget.DS_JSFunction.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSFunction.prototype.dataFunction=null;YAHOO.widget.DS_JSFunction.prototype.doQuery=function(oCallbackFn,sQuery,oParent){var oFunction=this.dataFunction;var aResults=[];aResults=oFunction(sQuery);if(aResults===null){this.dataErrorEvent.fire(this,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATANULL);return;}
-var resultObj={};resultObj.query=decodeURIComponent(sQuery);resultObj.results=aResults;this._addCacheElem(resultObj);this.getResultsEvent.fire(this,oParent,sQuery,aResults);oCallbackFn(sQuery,aResults,oParent);return;};YAHOO.widget.DS_JSArray=function(aData,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}}
-if(!aData||(aData.constructor!=Array)){return;}
-else{this.data=aData;this._init();}};YAHOO.widget.DS_JSArray.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSArray.prototype.data=null;YAHOO.widget.DS_JSArray.prototype.doQuery=function(oCallbackFn,sQuery,oParent){var aData=this.data;var aResults=[];var bMatchFound=false;var bMatchContains=this.queryMatchContains;if(sQuery){if(!this.queryMatchCase){sQuery=sQuery.toLowerCase();}
-for(var i=aData.length-1;i>=0;i--){var aDataset=[];if(aData[i]){if(aData[i].constructor==String){aDataset[0]=aData[i];}
-else if(aData[i].constructor==Array){aDataset=aData[i];}}
-if(aDataset[0]&&(aDataset[0].constructor==String)){var sKeyIndex=(this.queryMatchCase)?encodeURIComponent(aDataset[0]).indexOf(sQuery):encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);if((!bMatchContains&&(sKeyIndex===0))||(bMatchContains&&(sKeyIndex>-1))){aResults.unshift(aDataset);}}}}
-this.getResultsEvent.fire(this,oParent,sQuery,aResults);oCallbackFn(sQuery,aResults,oParent);};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js b/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js
deleted file mode 100644
index ce4e0581ecbff83df04ab81b534e814d586d72a8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/autocomplete/autocomplete.js
+++ /dev/null
@@ -1,3071 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
- /**
- * The AutoComplete control provides the front-end logic for text-entry suggestion and
- * completion functionality.
- *
- * @module autocomplete
- * @requires yahoo, dom, event, datasource
- * @optional animation, connection
- * @namespace YAHOO.widget
- * @title AutoComplete Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML
- * auto completion widget. Some key features:
- *
- * Navigate with up/down arrow keys and/or mouse to pick a selection
- * The drop down container can "roll down" or "fly out" via configurable
- * animation
- * UI look-and-feel customizable through CSS, including container
- * attributes, borders, position, fonts, etc
- *
- *
- * @class AutoComplete
- * @constructor
- * @param elInput {HTMLElement} DOM element reference of an input field.
- * @param elInput {String} String ID of an input field.
- * @param elContainer {HTMLElement} DOM element reference of an existing DIV.
- * @param elContainer {String} String ID of an existing DIV.
- * @param oDataSource {YAHOO.widget.DataSource} DataSource instance.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) {
- if(elInput && elContainer && oDataSource) {
- // Validate DataSource
- if (oDataSource && (oDataSource instanceof YAHOO.widget.DataSource)) {
- this.dataSource = oDataSource;
- }
- else {
- return;
- }
-
- // Validate input element
- if(YAHOO.util.Dom.inDocument(elInput)) {
- if(typeof elInput == "string") {
- this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput;
- this._oTextbox = document.getElementById(elInput);
- }
- else {
- this._sName = (elInput.id) ?
- "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id:
- "instance" + YAHOO.widget.AutoComplete._nIndex;
- this._oTextbox = elInput;
- }
- }
- else {
- return;
- }
-
- // Validate container element
- if(YAHOO.util.Dom.inDocument(elContainer)) {
- if(typeof elContainer == "string") {
- this._oContainer = document.getElementById(elContainer);
- }
- else {
- this._oContainer = elContainer;
- }
- if(this._oContainer.style.display == "none") {
- }
- }
- else {
- return;
- }
-
- // Set any config params passed in to override defaults
- if (typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- if (sConfig) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
- }
-
- // Initialization sequence
- this._initContainer();
- this._initProps();
- this._initList();
- this._initContainerHelpers();
-
- // Set up events
- var oSelf = this;
- var oTextbox = this._oTextbox;
- // Events are actually for the content module within the container
- var oContent = this._oContainer._oContent;
-
- // Dom events
- YAHOO.util.Event.addListener(oTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"focus",oSelf._onTextboxFocus,oSelf);
- YAHOO.util.Event.addListener(oTextbox,"blur",oSelf._onTextboxBlur,oSelf);
- YAHOO.util.Event.addListener(oContent,"mouseover",oSelf._onContainerMouseover,oSelf);
- YAHOO.util.Event.addListener(oContent,"mouseout",oSelf._onContainerMouseout,oSelf);
- YAHOO.util.Event.addListener(oContent,"scroll",oSelf._onContainerScroll,oSelf);
- YAHOO.util.Event.addListener(oContent,"resize",oSelf._onContainerResize,oSelf);
- if(oTextbox.form) {
- YAHOO.util.Event.addListener(oTextbox.form,"submit",oSelf._onFormSubmit,oSelf);
- }
- YAHOO.util.Event.addListener(oTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);
-
- // Custom events
- this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this);
- this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this);
- this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this);
- this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this);
- this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
- this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this);
- this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this);
- this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this);
- this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this);
- this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this);
- this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this);
- this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this);
- this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this);
- this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this);
- this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this);
- this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this);
-
- // Finish up
- oTextbox.setAttribute("autocomplete","off");
- YAHOO.widget.AutoComplete._nIndex++;
- }
- // Required arguments were not found
- else {
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DataSource object that encapsulates the data used for auto completion.
- * This object should be an inherited object from YAHOO.widget.DataSource.
- *
- * @property dataSource
- * @type YAHOO.widget.DataSource
- */
-YAHOO.widget.AutoComplete.prototype.dataSource = null;
-
-/**
- * Number of characters that must be entered before querying for results. A negative value
- * effectively turns off the widget. A value of 0 allows queries of null or empty string
- * values.
- *
- * @property minQueryLength
- * @type Number
- * @default 1
- */
-YAHOO.widget.AutoComplete.prototype.minQueryLength = 1;
-
-/**
- * Maximum number of results to display in results container.
- *
- * @property maxResultsDisplayed
- * @type Number
- * @default 10
- */
-YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10;
-
-/**
- * Number of seconds to delay before submitting a query request. If a query
- * request is received before a previous one has completed its delay, the
- * previous request is cancelled and the new request is set to the delay.
- *
- * @property queryDelay
- * @type Number
- * @default 0.5
- */
-YAHOO.widget.AutoComplete.prototype.queryDelay = 0.5;
-
-/**
- * Class name of a highlighted item within results container.
- *
- * @property highlightClassName
- * @type String
- * @default "yui-ac-highlight"
- */
-YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight";
-
-/**
- * Class name of a pre-highlighted item within results container.
- *
- * @property prehighlightClassName
- * @type String
- */
-YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null;
-
-/**
- * Query delimiter. A single character separator for multiple delimited
- * selections. Multiple delimiter characteres may be defined as an array of
- * strings. A null value or empty string indicates that query results cannot
- * be delimited. This feature is not recommended if you need forceSelection to
- * be true.
- *
- * @property delimChar
- * @type String | String[]
- */
-YAHOO.widget.AutoComplete.prototype.delimChar = null;
-
-/**
- * Whether or not the first item in results container should be automatically highlighted
- * on expand.
- *
- * @property autoHighlight
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.autoHighlight = true;
-
-/**
- * Whether or not the input field should be automatically updated
- * with the first query result as the user types, auto-selecting the substring
- * that the user has not typed.
- *
- * @property typeAhead
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.typeAhead = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * horizontal direction.
- *
- * @property animHoriz
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.animHoriz = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * vertical direction.
- *
- * @property animVert
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.animVert = true;
-
-/**
- * Speed of container expand/collapse animation, in seconds..
- *
- * @property animSpeed
- * @type Number
- * @default 0.3
- */
-YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3;
-
-/**
- * Whether or not to force the user's selection to match one of the query
- * results. Enabling this feature essentially transforms the input field into a
- * <select> field. This feature is not recommended with delimiter character(s)
- * defined.
- *
- * @property forceSelection
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.forceSelection = false;
-
-/**
- * Whether or not to allow browsers to cache user-typed input in the input
- * field. Disabling this feature will prevent the widget from setting the
- * autocomplete="off" on the input field. When autocomplete="off"
- * and users click the back button after form submission, user-typed input can
- * be prefilled by the browser from its cache. This caching of user input may
- * not be desired for sensitive data, such as credit card numbers, in which
- * case, implementers should consider setting allowBrowserAutocomplete to false.
- *
- * @property allowBrowserAutocomplete
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true;
-
-/**
- * Whether or not the results container should always be displayed.
- * Enabling this feature displays the container when the widget is instantiated
- * and prevents the toggling of the container to a collapsed state.
- *
- * @property alwaysShowContainer
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false;
-
-/**
- * Whether or not to use an iFrame to layer over Windows form elements in
- * IE. Set to true only when the results container will be on top of a
- * <select> field in IE and thus exposed to the IE z-index bug (i.e.,
- * 5.5 < IE < 7).
- *
- * @property useIFrame
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useIFrame = false;
-
-/**
- * Whether or not the results container should have a shadow.
- *
- * @property useShadow
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useShadow = false;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the AutoComplete instance.
- *
- * @method toString
- * @return {String} Unique name of the AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.toString = function() {
- return "AutoComplete " + this._sName;
-};
-
- /**
- * Returns true if container is in an expanded state, false otherwise.
- *
- * @method isContainerOpen
- * @return {Boolean} Returns true if container is in an expanded state, false otherwise.
- */
-YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() {
- return this._bContainerOpen;
-};
-
-/**
- * Public accessor to the internal array of DOM <li> elements that
- * display query results within the results container.
- *
- * @method getListItems
- * @return {HTMLElement[]} Array of <li> elements within the results container.
- */
-YAHOO.widget.AutoComplete.prototype.getListItems = function() {
- return this._aListItems;
-};
-
-/**
- * Public accessor to the data held in an <li> element of the
- * results container.
- *
- * @method getListItemData
- * @return {Object | Object[]} Object or array of result data or null
- */
-YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) {
- if(oListItem._oResultData) {
- return oListItem._oResultData;
- }
- else {
- return false;
- }
-};
-
-/**
- * Sets HTML markup for the results container header. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-hd".
- *
- * @method setHeader
- * @param sHeader {String} HTML markup for results container header.
- */
-YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) {
- if(sHeader) {
- if(this._oContainer._oContent._oHeader) {
- this._oContainer._oContent._oHeader.innerHTML = sHeader;
- this._oContainer._oContent._oHeader.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oHeader.innerHTML = "";
- this._oContainer._oContent._oHeader.style.display = "none";
- }
-};
-
-/**
- * Sets HTML markup for the results container footer. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-ft".
- *
- * @method setFooter
- * @param sFooter {String} HTML markup for results container footer.
- */
-YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) {
- if(sFooter) {
- if(this._oContainer._oContent._oFooter) {
- this._oContainer._oContent._oFooter.innerHTML = sFooter;
- this._oContainer._oContent._oFooter.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oFooter.innerHTML = "";
- this._oContainer._oContent._oFooter.style.display = "none";
- }
-};
-
-/**
- * Sets HTML markup for the results container body. This markup will be
- * inserted within a <div> tag with a class of "yui-ac-bd".
- *
- * @method setBody
- * @param sBody {String} HTML markup for results container body.
- */
-YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
- if(sBody) {
- if(this._oContainer._oContent._oBody) {
- this._oContainer._oContent._oBody.innerHTML = sBody;
- this._oContainer._oContent._oBody.style.display = "block";
- this._oContainer._oContent.style.display = "block";
- }
- }
- else {
- this._oContainer._oContent._oBody.innerHTML = "";
- this._oContainer._oContent.style.display = "none";
- }
- this._maxResultsDisplayed = 0;
-};
-
-/**
- * Overridable method that converts a result item object into HTML markup
- * for display. Return data values are accessible via the oResultItem object,
- * and the key return value will always be oResultItem[0]. Markup will be
- * displayed within <li> element tags in the container.
- *
- * @method formatResult
- * @param oResultItem {Object} Result item representing one query result. Data is held in an array.
- * @param sQuery {String} The current query string.
- * @return {String} HTML markup of formatted result data.
- */
-YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) {
- var sResult = oResultItem[0];
- if(sResult) {
- return sResult;
- }
- else {
- return "";
- }
-};
-
-/**
- * Overridable method called before container expands allows implementers to access data
- * and DOM elements.
- *
- * @method doBeforeExpandContainer
- * @return {Boolean} Return true to continue expanding container, false to cancel the expand.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(oResultItem, sQuery) {
- return true;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method sendQuery
- * @param sQuery {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
- this._sendQuery(sQuery);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when the input field receives focus.
- *
- * @event textboxFocusEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null;
-
-/**
- * Fired when the input field receives key input.
- *
- * @event textboxKeyEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param nKeycode {Number} The keycode number.
- */
-YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null;
-
-/**
- * Fired when the AutoComplete instance makes a query to the DataSource.
- *
- * @event dataRequestEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null;
-
-/**
- * Fired when the AutoComplete instance receives query results from the data
- * source.
- *
- * @event dataReturnEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Results array.
- */
-YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null;
-
-/**
- * Fired when the AutoComplete instance does not receive query results from the
- * DataSource due to an error.
- *
- * @event dataErrorEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the results container is expanded.
- *
- * @event containerExpandEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
-
-/**
- * Fired when the input field has been prefilled by the type-ahead
- * feature.
- *
- * @event typeAheadEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param sPrefill {String} The prefill string.
- */
-YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null;
-
-/**
- * Fired when result item has been moused over.
- *
- * @event itemMouseOverEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item moused to.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null;
-
-/**
- * Fired when result item has been moused out.
- *
- * @event itemMouseOutEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item moused from.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null;
-
-/**
- * Fired when result item has been arrowed to.
- *
- * @event itemArrowToEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item arrowed to.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null;
-
-/**
- * Fired when result item has been arrowed away from.
- *
- * @event itemArrowFromEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The <li> element item arrowed from.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null;
-
-/**
- * Fired when an item is selected via mouse click, ENTER key, or TAB key.
- *
- * @event itemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The selected <li> element item.
- * @param oData {Object} The data returned for the item, either as an object,
- * or mapped from the schema into an array.
- */
-YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null;
-
-/**
- * Fired when a user selection does not match any of the displayed result items.
- * Note that this event may not behave as expected when delimiter characters
- * have been defined.
- *
- * @event unmatchedItemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The user-typed query string.
- */
-YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
-
-/**
- * Fired if forceSelection is enabled and the user's input has been cleared
- * because it did not match one of the returned query results.
- *
- * @event selectionEnforceEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
-
-/**
- * Fired when the results container is collapsed.
- *
- * @event containerCollapseEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null;
-
-/**
- * Fired when the input field loses focus.
- *
- * @event textboxBlurEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple AutoComplete instances.
- *
- * @property _nIndex
- * @type Number
- * @default 0
- * @private
- */
-YAHOO.widget.AutoComplete._nIndex = 0;
-
-/**
- * Name of AutoComplete instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sName = null;
-
-/**
- * Text input field DOM element.
- *
- * @property _oTextbox
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oTextbox = null;
-
-/**
- * Whether or not the input field is currently in focus. If query results come back
- * but the user has already moved on, do not proceed with auto complete behavior.
- *
- * @property _bFocused
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bFocused = true;
-
-/**
- * Animation instance for container expand/collapse.
- *
- * @property _oAnim
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oAnim = null;
-
-/**
- * Container DOM element.
- *
- * @property _oContainer
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oContainer = null;
-
-/**
- * Whether or not the results container is currently open.
- *
- * @property _bContainerOpen
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bContainerOpen = false;
-
-/**
- * Whether or not the mouse is currently over the results
- * container. This is necessary in order to prevent clicks on container items
- * from being text input field blur events.
- *
- * @property _bOverContainer
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bOverContainer = false;
-
-/**
- * Array of <li> elements references that contain query results within the
- * results container.
- *
- * @property _aListItems
- * @type HTMLElement[]
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._aListItems = null;
-
-/**
- * Number of <li> elements currently displayed in results container.
- *
- * @property _nDisplayedItems
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0;
-
-/**
- * Internal count of <li> elements displayed and hidden in results container.
- *
- * @property _maxResultsDisplayed
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0;
-
-/**
- * Current query string
- *
- * @property _sCurQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sCurQuery = null;
-
-/**
- * Past queries this session (for saving delimited queries).
- *
- * @property _sSavedQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sSavedQuery = null;
-
-/**
- * Pointer to the currently highlighted <li> element in the container.
- *
- * @property _oCurItem
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oCurItem = null;
-
-/**
- * Whether or not an item has been selected since the container was populated
- * with results. Reset to false by _populateList, and set to true when item is
- * selected.
- *
- * @property _bItemSelected
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bItemSelected = false;
-
-/**
- * Key code of the last key pressed in textbox.
- *
- * @property _nKeyCode
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nKeyCode = null;
-
-/**
- * Delay timeout ID.
- *
- * @property _nDelayID
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDelayID = -1;
-
-/**
- * Src to iFrame used when useIFrame = true. Supports implementations over SSL
- * as well.
- *
- * @property _iFrameSrc
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;";
-
-/**
- * For users typing via certain IMEs, queries must be triggered by intervals,
- * since key events yet supported across all browsers for all IMEs.
- *
- * @property _queryInterval
- * @type Object
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._queryInterval = null;
-
-/**
- * Internal tracker to last known textbox value, used to determine whether or not
- * to trigger a query via interval for certain IME users.
- *
- * @event _sLastTextboxValue
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Updates and validates latest public config properties.
- *
- * @method __initProps
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initProps = function() {
- // Correct any invalid values
- var minQueryLength = this.minQueryLength;
- if(isNaN(minQueryLength) || (minQueryLength < 1)) {
- minQueryLength = 1;
- }
- var maxResultsDisplayed = this.maxResultsDisplayed;
- if(isNaN(this.maxResultsDisplayed) || (this.maxResultsDisplayed < 1)) {
- this.maxResultsDisplayed = 10;
- }
- var queryDelay = this.queryDelay;
- if(isNaN(this.queryDelay) || (this.queryDelay < 0)) {
- this.queryDelay = 0.5;
- }
- var aDelimChar = (this.delimChar) ? this.delimChar : null;
- if(aDelimChar) {
- if(typeof aDelimChar == "string") {
- this.delimChar = [aDelimChar];
- }
- else if(aDelimChar.constructor != Array) {
- this.delimChar = null;
- }
- }
- var animSpeed = this.animSpeed;
- if((this.animHoriz || this.animVert) && YAHOO.util.Anim) {
- if(isNaN(animSpeed) || (animSpeed < 0)) {
- animSpeed = 0.3;
- }
- if(!this._oAnim ) {
- oAnim = new YAHOO.util.Anim(this._oContainer._oContent, {}, this.animSpeed);
- this._oAnim = oAnim;
- }
- else {
- this._oAnim.duration = animSpeed;
- }
- }
- if(this.forceSelection && this.delimChar) {
- }
-};
-
-/**
- * Initializes the results container helpers if they are enabled and do
- * not exist
- *
- * @method _initContainerHelpers
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() {
- if(this.useShadow && !this._oContainer._oShadow) {
- var oShadow = document.createElement("div");
- oShadow.className = "yui-ac-shadow";
- this._oContainer._oShadow = this._oContainer.appendChild(oShadow);
- }
- if(this.useIFrame && !this._oContainer._oIFrame) {
- var oIFrame = document.createElement("iframe");
- oIFrame.src = this._iFrameSrc;
- oIFrame.frameBorder = 0;
- oIFrame.scrolling = "no";
- oIFrame.style.position = "absolute";
- oIFrame.style.width = "100%";
- oIFrame.style.height = "100%";
- oIFrame.tabIndex = -1;
- this._oContainer._oIFrame = this._oContainer.appendChild(oIFrame);
- }
-};
-
-/**
- * Initializes the results container once at object creation
- *
- * @method _initContainer
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainer = function() {
- if(!this._oContainer._oContent) {
- // The oContent div helps size the iframe and shadow properly
- var oContent = document.createElement("div");
- oContent.className = "yui-ac-content";
- oContent.style.display = "none";
- this._oContainer._oContent = this._oContainer.appendChild(oContent);
-
- var oHeader = document.createElement("div");
- oHeader.className = "yui-ac-hd";
- oHeader.style.display = "none";
- this._oContainer._oContent._oHeader = this._oContainer._oContent.appendChild(oHeader);
-
- var oBody = document.createElement("div");
- oBody.className = "yui-ac-bd";
- this._oContainer._oContent._oBody = this._oContainer._oContent.appendChild(oBody);
-
- var oFooter = document.createElement("div");
- oFooter.className = "yui-ac-ft";
- oFooter.style.display = "none";
- this._oContainer._oContent._oFooter = this._oContainer._oContent.appendChild(oFooter);
- }
- else {
- }
-};
-
-/**
- * Clears out contents of container body and creates up to
- * YAHOO.widget.AutoComplete#maxResultsDisplayed <li> elements in an
- * <ul> element.
- *
- * @method _initList
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initList = function() {
- this._aListItems = [];
- while(this._oContainer._oContent._oBody.hasChildNodes()) {
- var oldListItems = this.getListItems();
- if(oldListItems) {
- for(var oldi = oldListItems.length-1; oldi >= 0; i--) {
- oldListItems[oldi] = null;
- }
- }
- this._oContainer._oContent._oBody.innerHTML = "";
- }
-
- var oList = document.createElement("ul");
- oList = this._oContainer._oContent._oBody.appendChild(oList);
- for(var i=0; i= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock
- (nKeyCode == 27) || // esc
- (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end
- (nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up
- (nKeyCode == 40) || // down
- (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert
- return true;
- }
- return false;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method _sendQuery
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
- // Widget has been effectively turned off
- if(this.minQueryLength == -1) {
- this._toggleContainer(false);
- return;
- }
- // Delimiter has been enabled
- var aDelimChar = (this.delimChar) ? this.delimChar : null;
- if(aDelimChar) {
- // Loop through all possible delimiters and find the latest one
- // A " " may be a false positive if they are defined as delimiters AND
- // are used to separate delimited queries
- var nDelimIndex = -1;
- for(var i = aDelimChar.length-1; i >= 0; i--) {
- var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
- if(nNewIndex > nDelimIndex) {
- nDelimIndex = nNewIndex;
- }
- }
- // If we think the last delimiter is a space (" "), make sure it is NOT
- // a false positive by also checking the char directly before it
- if(aDelimChar[i] == " ") {
- for (var j = aDelimChar.length-1; j >= 0; j--) {
- if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
- nDelimIndex--;
- break;
- }
- }
- }
- // A delimiter has been found so extract the latest query
- if (nDelimIndex > -1) {
- var nQueryStart = nDelimIndex + 1;
- // Trim any white space from the beginning...
- while(sQuery.charAt(nQueryStart) == " ") {
- nQueryStart += 1;
- }
- // ...and save the rest of the string for later
- this._sSavedQuery = sQuery.substring(0,nQueryStart);
- // Here is the query itself
- sQuery = sQuery.substr(nQueryStart);
- }
- else if(sQuery.indexOf(this._sSavedQuery) < 0){
- this._sSavedQuery = null;
- }
- }
-
- // Don't search queries that are too short
- if (sQuery && (sQuery.length < this.minQueryLength) || (!sQuery && this.minQueryLength > 0)) {
- if (this._nDelayID != -1) {
- clearTimeout(this._nDelayID);
- }
- this._toggleContainer(false);
- return;
- }
-
- sQuery = encodeURIComponent(sQuery);
- this._nDelayID = -1; // Reset timeout ID because request has been made
- this.dataRequestEvent.fire(this, sQuery);
- this.dataSource.getResults(this._populateList, sQuery, this);
-};
-
-/**
- * Populates the array of <li> elements in the container with query
- * results. This method is passed to YAHOO.widget.DataSource#getResults as a
- * callback function so results from the DataSource instance are returned to the
- * AutoComplete instance.
- *
- * @method _populateList
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} An array of query result objects from the DataSource.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) {
- if(aResults === null) {
- oSelf.dataErrorEvent.fire(oSelf, sQuery);
- }
- if (!oSelf._bFocused || !aResults) {
- return;
- }
-
- var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
- var contentStyle = oSelf._oContainer._oContent.style;
- contentStyle.width = (!isOpera) ? null : "";
- contentStyle.height = (!isOpera) ? null : "";
-
- var sCurQuery = decodeURIComponent(sQuery);
- oSelf._sCurQuery = sCurQuery;
- oSelf._bItemSelected = false;
-
- if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) {
- oSelf._initList();
- }
-
- var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed);
- oSelf._nDisplayedItems = nItems;
- if (nItems > 0) {
- oSelf._initContainerHelpers();
- var aItems = oSelf._aListItems;
-
- // Fill items with data
- for(var i = nItems-1; i >= 0; i--) {
- var oItemi = aItems[i];
- var oResultItemi = aResults[i];
- oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery);
- oItemi.style.display = "list-item";
- oItemi._sResultKey = oResultItemi[0];
- oItemi._oResultData = oResultItemi;
-
- }
-
- // Empty out remaining items if any
- for(var j = aItems.length-1; j >= nItems ; j--) {
- var oItemj = aItems[j];
- oItemj.innerHTML = null;
- oItemj.style.display = "none";
- oItemj._sResultKey = null;
- oItemj._oResultData = null;
- }
-
- if(oSelf.autoHighlight) {
- // Go to the first item
- var oFirstItem = aItems[0];
- oSelf._toggleHighlight(oFirstItem,"to");
- oSelf.itemArrowToEvent.fire(oSelf, oFirstItem);
- oSelf._typeAhead(oFirstItem,sQuery);
- }
- else {
- oSelf._oCurItem = null;
- }
-
- // Expand the container
- var ok = oSelf.doBeforeExpandContainer(oSelf._oTextbox, oSelf._oContainer, sQuery, aResults);
- oSelf._toggleContainer(ok);
- }
- else {
- oSelf._toggleContainer(false);
- }
- oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults);
-};
-
-/**
- * When forceSelection is true and the user attempts
- * leave the text input box without selecting an item from the query results,
- * the user selection is cleared.
- *
- * @method _clearSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
- var sValue = this._oTextbox.value;
- var sChar = (this.delimChar) ? this.delimChar[0] : null;
- var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
- if(nIndex > -1) {
- this._oTextbox.value = sValue.substring(0,nIndex);
- }
- else {
- this._oTextbox.value = "";
- }
- this._sSavedQuery = this._oTextbox.value;
-
- // Fire custom event
- this.selectionEnforceEvent.fire(this);
-};
-
-/**
- * Whether or not user-typed value in the text input box matches any of the
- * query results.
- *
- * @method _textMatchesOption
- * @return {Boolean} True if user-input text matches a result, false otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
- var foundMatch = false;
-
- for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
- var oItem = this._aListItems[i];
- var sMatch = oItem._sResultKey.toLowerCase();
- if (sMatch == this._sCurQuery.toLowerCase()) {
- foundMatch = true;
- break;
- }
- }
- return(foundMatch);
-};
-
-/**
- * Updates in the text input box with the first query result as the user types,
- * selecting the substring that the user has not typed.
- *
- * @method _typeAhead
- * @param oItem {HTMLElement} The <li> element item whose data populates the input field.
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) {
- // Don't update if turned off
- if (!this.typeAhead || (this._nKeyCode == 8)) {
- return;
- }
-
- var oTextbox = this._oTextbox;
- var sValue = this._oTextbox.value; // any saved queries plus what user has typed
-
- // Don't update with type-ahead if text selection is not supported
- if(!oTextbox.setSelectionRange && !oTextbox.createTextRange) {
- return;
- }
-
- // Select the portion of text that the user has not typed
- var nStart = sValue.length;
- this._updateValue(oItem);
- var nEnd = oTextbox.value.length;
- this._selectText(oTextbox,nStart,nEnd);
- var sPrefill = oTextbox.value.substr(nStart,nEnd);
- this.typeAheadEvent.fire(this,sQuery,sPrefill);
-};
-
-/**
- * Selects text in the input field.
- *
- * @method _selectText
- * @param oTextbox {HTMLElement} Text input box element in which to select text.
- * @param nStart {Number} Starting index of text string to select.
- * @param nEnd {Number} Ending index of text selection.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectText = function(oTextbox, nStart, nEnd) {
- if (oTextbox.setSelectionRange) { // For Mozilla
- oTextbox.setSelectionRange(nStart,nEnd);
- }
- else if (oTextbox.createTextRange) { // For IE
- var oTextRange = oTextbox.createTextRange();
- oTextRange.moveStart("character", nStart);
- oTextRange.moveEnd("character", nEnd-oTextbox.value.length);
- oTextRange.select();
- }
- else {
- oTextbox.select();
- }
-};
-
-/**
- * Syncs results container with its helpers.
- *
- * @method _toggleContainerHelpers
- * @param bShow {Boolean} True if container is expanded, false if collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
- var bFireEvent = false;
- var width = this._oContainer._oContent.offsetWidth + "px";
- var height = this._oContainer._oContent.offsetHeight + "px";
-
- if(this.useIFrame && this._oContainer._oIFrame) {
- bFireEvent = true;
- if(bShow) {
- this._oContainer._oIFrame.style.width = width;
- this._oContainer._oIFrame.style.height = height;
- }
- else {
- this._oContainer._oIFrame.style.width = 0;
- this._oContainer._oIFrame.style.height = 0;
- }
- }
- if(this.useShadow && this._oContainer._oShadow) {
- bFireEvent = true;
- if(bShow) {
- this._oContainer._oShadow.style.width = width;
- this._oContainer._oShadow.style.height = height;
- }
- else {
- this._oContainer._oShadow.style.width = 0;
- this._oContainer._oShadow.style.height = 0;
- }
- }
-};
-
-/**
- * Animates expansion or collapse of the container.
- *
- * @method _toggleContainer
- * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
- var oContainer = this._oContainer;
-
- // Implementer has container always open so don't mess with it
- if(this.alwaysShowContainer && this._bContainerOpen) {
- return;
- }
-
- // Clear contents of container
- if(!bShow) {
- this._oContainer._oContent.scrollTop = 0;
- var aItems = this._aListItems;
-
- if(aItems && (aItems.length > 0)) {
- for(var i = aItems.length-1; i >= 0 ; i--) {
- aItems[i].style.display = "none";
- }
- }
-
- if (this._oCurItem) {
- this._toggleHighlight(this._oCurItem,"from");
- }
-
- this._oCurItem = null;
- this._nDisplayedItems = 0;
- this._sCurQuery = null;
- }
-
- // Container is already closed
- if (!bShow && !this._bContainerOpen) {
- oContainer._oContent.style.display = "none";
- return;
- }
-
- // If animation is enabled...
- var oAnim = this._oAnim;
- if (oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
- // If helpers need to be collapsed, do it right away...
- // but if helpers need to be expanded, wait until after the container expands
- if(!bShow) {
- this._toggleContainerHelpers(bShow);
- }
-
- if(oAnim.isAnimated()) {
- oAnim.stop();
- }
-
- // Clone container to grab current size offscreen
- var oClone = oContainer._oContent.cloneNode(true);
- oContainer.appendChild(oClone);
- oClone.style.top = "-9000px";
- oClone.style.display = "block";
-
- // Current size of the container is the EXPANDED size
- var wExp = oClone.offsetWidth;
- var hExp = oClone.offsetHeight;
-
- // Calculate COLLAPSED sizes based on horiz and vert anim
- var wColl = (this.animHoriz) ? 0 : wExp;
- var hColl = (this.animVert) ? 0 : hExp;
-
- // Set animation sizes
- oAnim.attributes = (bShow) ?
- {width: { to: wExp }, height: { to: hExp }} :
- {width: { to: wColl}, height: { to: hColl }};
-
- // If opening anew, set to a collapsed size...
- if(bShow && !this._bContainerOpen) {
- oContainer._oContent.style.width = wColl+"px";
- oContainer._oContent.style.height = hColl+"px";
- }
- // Else, set it to its last known size.
- else {
- oContainer._oContent.style.width = wExp+"px";
- oContainer._oContent.style.height = hExp+"px";
- }
-
- oContainer.removeChild(oClone);
- oClone = null;
-
- var oSelf = this;
- var onAnimComplete = function() {
- // Finish the collapse
- oAnim.onComplete.unsubscribeAll();
-
- if(bShow) {
- oSelf.containerExpandEvent.fire(oSelf);
- }
- else {
- oContainer._oContent.style.display = "none";
- oSelf.containerCollapseEvent.fire(oSelf);
- }
- oSelf._toggleContainerHelpers(bShow);
- };
-
- // Display container and animate it
- oContainer._oContent.style.display = "block";
- oAnim.onComplete.subscribe(onAnimComplete);
- oAnim.animate();
- this._bContainerOpen = bShow;
- }
- // Else don't animate, just show or hide
- else {
- if(bShow) {
- oContainer._oContent.style.display = "block";
- this.containerExpandEvent.fire(this);
- }
- else {
- oContainer._oContent.style.display = "none";
- this.containerCollapseEvent.fire(this);
- }
- this._toggleContainerHelpers(bShow);
- this._bContainerOpen = bShow;
- }
-
-};
-
-/**
- * Toggles the highlight on or off for an item in the container, and also cleans
- * up highlighting of any previous item.
- *
- * @method _toggleHighlight
- * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) {
- var sHighlight = this.highlightClassName;
- if(this._oCurItem) {
- // Remove highlight from old item
- YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight);
- }
-
- if((sType == "to") && sHighlight) {
- // Apply highlight to new item
- YAHOO.util.Dom.addClass(oNewItem, sHighlight);
- this._oCurItem = oNewItem;
- }
-};
-
-/**
- * Toggles the pre-highlight on or off for an item in the container.
- *
- * @method _togglePrehighlight
- * @param oNewItem {HTMLElement} The <li> element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) {
- if(oNewItem == this._oCurItem) {
- return;
- }
-
- var sPrehighlight = this.prehighlightClassName;
- if((sType == "mouseover") && sPrehighlight) {
- // Apply prehighlight to new item
- YAHOO.util.Dom.addClass(oNewItem, sPrehighlight);
- }
- else {
- // Remove prehighlight from old item
- YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight);
- }
-};
-
-/**
- * Updates the text input box value with selected query result. If a delimiter
- * has been defined, then the value gets appended with the delimiter.
- *
- * @method _updateValue
- * @param oItem {HTMLElement} The <li> element item with which to update the value.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) {
- var oTextbox = this._oTextbox;
- var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
- var sSavedQuery = this._sSavedQuery;
- var sResultKey = oItem._sResultKey;
- oTextbox.focus();
-
- // First clear text field
- oTextbox.value = "";
- // Grab data to put into text field
- if(sDelimChar) {
- if(sSavedQuery) {
- oTextbox.value = sSavedQuery;
- }
- oTextbox.value += sResultKey + sDelimChar;
- if(sDelimChar != " ") {
- oTextbox.value += " ";
- }
- }
- else { oTextbox.value = sResultKey; }
-
- // scroll to bottom of textarea if necessary
- if(oTextbox.type == "textarea") {
- oTextbox.scrollTop = oTextbox.scrollHeight;
- }
-
- // move cursor to end
- var end = oTextbox.value.length;
- this._selectText(oTextbox,end,end);
-
- this._oCurItem = oItem;
-};
-
-/**
- * Selects a result item from the container
- *
- * @method _selectItem
- * @param oItem {HTMLElement} The selected <li> element item.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) {
- this._bItemSelected = true;
- this._updateValue(oItem);
- this._cancelIntervalDetection(this);
- this.itemSelectEvent.fire(this, oItem, oItem._oResultData);
- this._toggleContainer(false);
-};
-
-/**
- * For values updated by type-ahead, the right arrow key jumps to the end
- * of the textbox, otherwise the container is closed.
- *
- * @method _jumpSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
- if(!this.typeAhead) {
- return;
- }
- else {
- this._toggleContainer(false);
- }
-};
-
-/**
- * Triggered by up and down arrow keys, changes the current highlighted
- * <li> element item. Scrolls container if necessary.
- *
- * @method _moveSelection
- * @param nKeyCode {Number} Code of key pressed.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
- if(this._bContainerOpen) {
- // Determine current item's id number
- var oCurItem = this._oCurItem;
- var nCurItemIndex = -1;
-
- if (oCurItem) {
- nCurItemIndex = oCurItem._nItemIndex;
- }
-
- var nNewItemIndex = (nKeyCode == 40) ?
- (nCurItemIndex + 1) : (nCurItemIndex - 1);
-
- // Out of bounds
- if (nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
- return;
- }
-
- if (oCurItem) {
- // Unhighlight current item
- this._toggleHighlight(oCurItem, "from");
- this.itemArrowFromEvent.fire(this, oCurItem);
- }
- if (nNewItemIndex == -1) {
- // Go back to query (remove type-ahead string)
- if(this.delimChar && this._sSavedQuery) {
- if (!this._textMatchesOption()) {
- this._oTextbox.value = this._sSavedQuery;
- }
- else {
- this._oTextbox.value = this._sSavedQuery + this._sCurQuery;
- }
- }
- else {
- this._oTextbox.value = this._sCurQuery;
- }
- this._oCurItem = null;
- return;
- }
- if (nNewItemIndex == -2) {
- // Close container
- this._toggleContainer(false);
- return;
- }
-
- var oNewItem = this._aListItems[nNewItemIndex];
-
- // Scroll the container if necessary
- var oContent = this._oContainer._oContent;
- var scrollOn = ((YAHOO.util.Dom.getStyle(oContent,"overflow") == "auto") ||
- (YAHOO.util.Dom.getStyle(oContent,"overflowY") == "auto"));
- if(scrollOn && (nNewItemIndex > -1) &&
- (nNewItemIndex < this._nDisplayedItems)) {
- // User is keying down
- if(nKeyCode == 40) {
- // Bottom of selected item is below scroll area...
- if((oNewItem.offsetTop+oNewItem.offsetHeight) > (oContent.scrollTop + oContent.offsetHeight)) {
- // Set bottom of scroll area to bottom of selected item
- oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight;
- }
- // Bottom of selected item is above scroll area...
- else if((oNewItem.offsetTop+oNewItem.offsetHeight) < oContent.scrollTop) {
- // Set top of selected item to top of scroll area
- oContent.scrollTop = oNewItem.offsetTop;
-
- }
- }
- // User is keying up
- else {
- // Top of selected item is above scroll area
- if(oNewItem.offsetTop < oContent.scrollTop) {
- // Set top of scroll area to top of selected item
- this._oContainer._oContent.scrollTop = oNewItem.offsetTop;
- }
- // Top of selected item is below scroll area
- else if(oNewItem.offsetTop > (oContent.scrollTop + oContent.offsetHeight)) {
- // Set bottom of selected item to bottom of scroll area
- this._oContainer._oContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - oContent.offsetHeight;
- }
- }
- }
-
- this._toggleHighlight(oNewItem, "to");
- this.itemArrowToEvent.fire(this, oNewItem);
- if(this.typeAhead) {
- this._updateValue(oNewItem);
- }
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles <li> element mouseover events in the container.
- *
- * @method _onItemMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
- if(oSelf.prehighlightClassName) {
- oSelf._togglePrehighlight(this,"mouseover");
- }
- else {
- oSelf._toggleHighlight(this,"to");
- }
-
- oSelf.itemMouseOverEvent.fire(oSelf, this);
-};
-
-/**
- * Handles <li> element mouseout events in the container.
- *
- * @method _onItemMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
- if(oSelf.prehighlightClassName) {
- oSelf._togglePrehighlight(this,"mouseout");
- }
- else {
- oSelf._toggleHighlight(this,"from");
- }
-
- oSelf.itemMouseOutEvent.fire(oSelf, this);
-};
-
-/**
- * Handles <li> element click events in the container.
- *
- * @method _onItemMouseclick
- * @param v {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
- // In case item has not been moused over
- oSelf._toggleHighlight(this,"to");
- oSelf._selectItem(this);
-};
-
-/**
- * Handles container mouseover events.
- *
- * @method _onContainerMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) {
- oSelf._bOverContainer = true;
-};
-
-/**
- * Handles container mouseout events.
- *
- * @method _onContainerMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) {
- oSelf._bOverContainer = false;
- // If container is still active
- if(oSelf._oCurItem) {
- oSelf._toggleHighlight(oSelf._oCurItem,"to");
- }
-};
-
-/**
- * Handles container scroll events.
- *
- * @method _onContainerScroll
- * @param v {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
- oSelf._oTextbox.focus();
-};
-
-/**
- * Handles container resize events.
- *
- * @method _onContainerResize
- * @param v {HTMLEvent} The resize event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) {
- oSelf._toggleContainerHelpers(oSelf._bContainerOpen);
-};
-
-
-/**
- * Handles textbox keydown events of functional keys, mainly for UI behavior.
- *
- * @method _onTextboxKeyDown
- * @param v {HTMLEvent} The keydown event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) {
- var nKeyCode = v.keyCode;
-
- switch (nKeyCode) {
- case 9: // tab
- if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- // select an item or clear out
- if(oSelf._oCurItem) {
- oSelf._selectItem(oSelf._oCurItem);
- }
- else {
- oSelf._toggleContainer(false);
- }
- break;
- case 13: // enter
- if(oSelf._nKeyCode != nKeyCode) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- if(oSelf._oCurItem) {
- oSelf._selectItem(oSelf._oCurItem);
- }
- else {
- oSelf._toggleContainer(false);
- }
- break;
- case 27: // esc
- oSelf._toggleContainer(false);
- return;
- case 39: // right
- oSelf._jumpSelection();
- break;
- case 38: // up
- YAHOO.util.Event.stopEvent(v);
- oSelf._moveSelection(nKeyCode);
- break;
- case 40: // down
- YAHOO.util.Event.stopEvent(v);
- oSelf._moveSelection(nKeyCode);
- break;
- default:
- break;
- }
-};
-
-/**
- * Handles textbox keypress events.
- * @method _onTextboxKeyPress
- * @param v {HTMLEvent} The keypress event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) {
- var nKeyCode = v.keyCode;
-
- //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337)
- var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1);
- if(isMac) {
- switch (nKeyCode) {
- case 9: // tab
- if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- break;
- case 13: // enter
- if(oSelf._nKeyCode != nKeyCode) {
- if(oSelf._bContainerOpen) {
- YAHOO.util.Event.stopEvent(v);
- }
- }
- break;
- case 38: // up
- case 40: // down
- YAHOO.util.Event.stopEvent(v);
- break;
- default:
- break;
- }
- }
-
- //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948)
- // Korean IME detected
- else if(nKeyCode == 229) {
- oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500);
- }
-};
-
-/**
- * Handles textbox keyup events that trigger queries.
- *
- * @method _onTextboxKeyUp
- * @param v {HTMLEvent} The keyup event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) {
- // Check to see if any of the public properties have been updated
- oSelf._initProps();
-
- var nKeyCode = v.keyCode;
- oSelf._nKeyCode = nKeyCode;
- var sText = this.value; //string in textbox
-
- // Filter out chars that don't trigger queries
- if (oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) {
- return;
- }
- else {
- oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
- }
-
- // Set timeout on the request
- if (oSelf.queryDelay > 0) {
- var nDelayID =
- setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000));
-
- if (oSelf._nDelayID != -1) {
- clearTimeout(oSelf._nDelayID);
- }
-
- oSelf._nDelayID = nDelayID;
- }
- else {
- // No delay so send request immediately
- oSelf._sendQuery(sText);
- }
-};
-
-/**
- * Handles text input box receiving focus.
- *
- * @method _onTextboxFocus
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
- oSelf._oTextbox.setAttribute("autocomplete","off");
- oSelf._bFocused = true;
- oSelf.textboxFocusEvent.fire(oSelf);
-};
-
-/**
- * Handles text input box losing focus.
- *
- * @method _onTextboxBlur
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
- // Don't treat as a blur if it was a selection via mouse click
- if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
- // Current query needs to be validated
- if(!oSelf._bItemSelected) {
- if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && !oSelf._textMatchesOption())) {
- if(oSelf.forceSelection) {
- oSelf._clearSelection();
- }
- else {
- oSelf.unmatchedItemSelectEvent.fire(oSelf, oSelf._sCurQuery);
- }
- }
- }
-
- if(oSelf._bContainerOpen) {
- oSelf._toggleContainer(false);
- }
- oSelf._cancelIntervalDetection(oSelf);
- oSelf._bFocused = false;
- oSelf.textboxBlurEvent.fire(oSelf);
- }
-};
-
-/**
- * Handles form submission event.
- *
- * @method _onFormSubmit
- * @param v {HTMLEvent} The submit event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onFormSubmit = function(v,oSelf) {
- if(oSelf.allowBrowserAutocomplete) {
- oSelf._oTextbox.setAttribute("autocomplete","on");
- }
- else {
- oSelf._oTextbox.setAttribute("autocomplete","off");
- }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The DataSource classes manages sending a request and returning response from a live
- * database. Supported data include local JavaScript arrays and objects and databases
- * accessible via XHR connections. Supported response formats include JavaScript arrays,
- * JSON, XML, and flat-file textual data.
- *
- * @class DataSource
- * @constructor
- */
-YAHOO.widget.DataSource = function() {
- /* abstract class */
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null";
-
-/**
- * Error message for data responses with parsing errors.
- *
- * @property ERROR_DATAPARSE
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed";
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache. Set to 0 to turn off caching. Caching is
- * useful to reduce the number of server connections. Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 15
- */
-YAHOO.widget.DataSource.prototype.maxCacheEntries = 15;
-
-/**
- * Use this to equate cache matching with the type of matching done by your live
- * data source. If caching is on and queryMatchContains is true, the cache
- * returns results that "contain" the query string. By default,
- * queryMatchContains is set to false, meaning the cache only returns results
- * that "start with" the query string.
- *
- * @property queryMatchContains
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchContains = false;
-
-/**
- * Enables query subset matching. If caching is on and queryMatchSubset is
- * true, substrings of queries will return matching cached results. For
- * instance, if the first query is for "abc" susequent queries that start with
- * "abc", like "abcd", will be queried against the cache, and not the live data
- * source. Recommended only for DataSources that return comprehensive results
- * for queries with very few characters.
- *
- * @property queryMatchSubset
- * @type Boolean
- * @default false
- *
- */
-YAHOO.widget.DataSource.prototype.queryMatchSubset = false;
-
-/**
- * Enables query case-sensitivity matching. If caching is on and
- * queryMatchCase is true, queries will only return results for case-sensitive
- * matches.
- *
- * @property queryMatchCase
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchCase = false;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance
- */
-YAHOO.widget.DataSource.prototype.toString = function() {
- return "DataSource " + this._sName;
-};
-
-/**
- * Retrieves query results, first checking the local cache, then making the
- * query request to the live data source as defined by the function doQuery.
- *
- * @method getResults
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) {
-
- // First look in cache
- var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent);
-
- // Not in cache, so get results from server
- if(aResults.length === 0) {
- this.queryEvent.fire(this, oParent, sQuery);
- this.doQuery(oCallbackFn, sQuery, oParent);
- }
-};
-
-/**
- * Abstract method implemented by subclasses to make a query to the live data
- * source. Must call the callback function with the response returned from the
- * query. Populates cache (if enabled).
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- /* override this */
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.widget.DataSource.prototype.flushCache = function() {
- if(this._aCache) {
- this._aCache = [];
- }
- if(this._aCacheHelper) {
- this._aCacheHelper = [];
- }
- this.cacheFlushEvent.fire(this);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a query is made to the live data source.
- *
- * @event queryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.queryEvent = null;
-
-/**
- * Fired when a query is made to the local cache.
- *
- * @event cacheQueryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.cacheQueryEvent = null;
-
-/**
- * Fired when data is retrieved from the live data source.
- *
- * @event getResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getResultsEvent = null;
-
-/**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null;
-
-/**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param sMsg {String} Error message string
- */
-YAHOO.widget.DataSource.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- * @param oSelf {Object} The DataSource instance
- */
-YAHOO.widget.DataSource.prototype.cacheFlushEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.widget.DataSource.prototype._aCache = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initializes DataSource instance.
- *
- * @method _init
- * @private
- */
-YAHOO.widget.DataSource.prototype._init = function() {
- // Validate and initialize public configs
- var maxCacheEntries = this.maxCacheEntries;
- if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) {
- maxCacheEntries = 0;
- }
- // Initialize local cache
- if(maxCacheEntries > 0 && !this._aCache) {
- this._aCache = [];
- }
-
- this._sName = "instance" + YAHOO.widget.DataSource._nIndex;
- YAHOO.widget.DataSource._nIndex++;
-
- this.queryEvent = new YAHOO.util.CustomEvent("query", this);
- this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this);
- this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this);
- this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this);
- this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
- this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this);
-};
-
-/**
- * Adds a result object to the local cache, evicting the oldest element if the
- * cache is full. Newer items will have higher indexes, the oldest item will have
- * index of 0.
- *
- * @method _addCacheElem
- * @param oResult {Object} Data result object, including array of results.
- * @private
- */
-YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) {
- var aCache = this._aCache;
- // Don't add if anything important is missing.
- if(!aCache || !oResult || !oResult.query || !oResult.results) {
- return;
- }
-
- // If the cache is full, make room by removing from index=0
- if(aCache.length >= this.maxCacheEntries) {
- aCache.shift();
- }
-
- // Add to cache, at the end of the array
- aCache.push(oResult);
-};
-
-/**
- * Queries the local cache for results. If query has been cached, the callback
- * function is called with the results, and the cached is refreshed so that it
- * is now the newest element.
- *
- * @method _doQueryCache
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- * @return aResults {Object[]} Array of results from local cache if found, otherwise null.
- * @private
- */
-YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) {
- var aResults = [];
- var bMatchFound = false;
- var aCache = this._aCache;
- var nCacheLength = (aCache) ? aCache.length : 0;
- var bMatchContains = this.queryMatchContains;
-
- // If cache is enabled...
- if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
- this.cacheQueryEvent.fire(this, oParent, sQuery);
- // If case is unimportant, normalize query now instead of in loops
- if(!this.queryMatchCase) {
- var sOrigQuery = sQuery;
- sQuery = sQuery.toLowerCase();
- }
-
- // Loop through each cached element's query property...
- for(var i = nCacheLength-1; i >= 0; i--) {
- var resultObj = aCache[i];
- var aAllResultItems = resultObj.results;
- // If case is unimportant, normalize match key for comparison
- var matchKey = (!this.queryMatchCase) ?
- encodeURIComponent(resultObj.query).toLowerCase():
- encodeURIComponent(resultObj.query);
-
- // If a cached match key exactly matches the query...
- if(matchKey == sQuery) {
- // Stash all result objects into aResult[] and stop looping through the cache.
- bMatchFound = true;
- aResults = aAllResultItems;
-
- // The matching cache element was not the most recent,
- // so now we need to refresh the cache.
- if(i != nCacheLength-1) {
- // Remove element from its original location
- aCache.splice(i,1);
- // Add element as newest
- this._addCacheElem(resultObj);
- }
- break;
- }
- // Else if this query is not an exact match and subset matching is enabled...
- else if(this.queryMatchSubset) {
- // Loop through substrings of each cached element's query property...
- for(var j = sQuery.length-1; j >= 0 ; j--) {
- var subQuery = sQuery.substr(0,j);
-
- // If a substring of a cached sQuery exactly matches the query...
- if(matchKey == subQuery) {
- bMatchFound = true;
-
- // Go through each cached result object to match against the query...
- for(var k = aAllResultItems.length-1; k >= 0; k--) {
- var aRecord = aAllResultItems[k];
- var sKeyIndex = (this.queryMatchCase) ?
- encodeURIComponent(aRecord[0]).indexOf(sQuery):
- encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);
-
- // A STARTSWITH match is when the query is found at the beginning of the key string...
- if((!bMatchContains && (sKeyIndex === 0)) ||
- // A CONTAINS match is when the query is found anywhere within the key string...
- (bMatchContains && (sKeyIndex > -1))) {
- // Stash a match into aResults[].
- aResults.unshift(aRecord);
- }
- }
-
- // Add the subset match result set object as the newest element to cache,
- // and stop looping through the cache.
- resultObj = {};
- resultObj.query = sQuery;
- resultObj.results = aResults;
- this._addCacheElem(resultObj);
- break;
- }
- }
- if(bMatchFound) {
- break;
- }
- }
- }
-
- // If there was a match, send along the results.
- if(bMatchFound) {
- this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults);
- oCallbackFn(sOrigQuery, aResults, oParent);
- }
- }
- return aResults;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return
- * query results.
- *
- * @class DS_XHR
- * @extends YAHOO.widget.DataSource
- * @requires connection
- * @constructor
- * @param sScriptURI {String} Absolute or relative URI to script that returns query
- * results as JSON, XML, or delimited flat-file data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!aSchema || (aSchema.constructor != Array)) {
- return;
- }
- else {
- this.schema = aSchema;
- }
- this.scriptURI = sScriptURI;
- this._init();
-};
-
-YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * JSON data type.
- *
- * @property TYPE_JSON
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_JSON = 0;
-
-/**
- * XML data type.
- *
- * @property TYPE_XML
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_XML = 1;
-
-/**
- * Flat-file data type.
- *
- * @property TYPE_FLAT
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_FLAT = 2;
-
-/**
- * Error message for XHR failure.
- *
- * @property ERROR_DATAXHR
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Connection Manager. Allows implementers to specify their own
- * subclasses of the YUI Connection Manager utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect;
-
-/**
- * Number of milliseconds the XHR connection will wait for a server response. A
- * a value of zero indicates the XHR connection will wait forever. Any value
- * greater than zero will use the Connection utility's Auto-Abort feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.widget.DS_XHR.prototype.connTimeout = 0;
-
-/**
- * Absolute or relative URI to script that returns query results. For instance,
- * queries will be sent to <scriptURI>?<scriptQueryParam>=userinput
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_XHR.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, queries will be
- * sent to <scriptURI>?<scriptQueryParam>=userinput
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query";
-
-/**
- * String of key/value pairs to append to requests made to scriptURI. Define
- * this string when you want to send additional query parameters to your script.
- * When defined, queries will be sent to
- * <scriptURI>?<scriptQueryParam>=userinput&<scriptQueryAppend>
- *
- * @property scriptQueryAppend
- * @type String
- * @default ""
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = "";
-
-/**
- * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML
- * and YAHOO.widget.DS_XHR.TYPE_FLAT.
- *
- * @property responseType
- * @type String
- * @default YAHOO.widget.DS_XHR.TYPE_JSON
- */
-YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON;
-
-/**
- * String after which to strip results. If the results from the XHR are sent
- * back as HTML, the gzip HTML comment appears at the end of the data and should
- * be ignored.
- *
- * @property responseStripAfter
- * @type String
- * @default "\n<!-"
- */
-YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n 0) {
- sUri += "&" + this.scriptQueryAppend;
- }
- var oResponse = null;
-
- var oSelf = this;
- /*
- * Sets up ajax request callback
- *
- * @param {object} oReq HTTPXMLRequest object
- * @private
- */
- var responseSuccess = function(oResp) {
- // Response ID does not match last made request ID.
- if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- return;
- }
-//DEBUG
-for(var foo in oResp) {
-}
- if(!isXML) {
- oResp = oResp.responseText;
- }
- else {
- oResp = oResp.responseXML;
- }
- if(oResp === null) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- return;
- }
-
- var aResults = oSelf.parseResponse(sQuery, oResp, oParent);
- var resultObj = {};
- resultObj.query = decodeURIComponent(sQuery);
- resultObj.results = aResults;
- if(aResults === null) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
- aResults = [];
- }
- else {
- oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults);
- oSelf._addCacheElem(resultObj);
- }
- oCallbackFn(sQuery, aResults, oParent);
- };
-
- var responseFailure = function(oResp) {
- oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR);
- return;
- };
-
- var oCallback = {
- success:responseSuccess,
- failure:responseFailure
- };
-
- if(!isNaN(this.connTimeout) && this.connTimeout > 0) {
- oCallback.timeout = this.connTimeout;
- }
-
- if(this._oConn) {
- this.connMgr.abort(this._oConn);
- }
-
- oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null);
-};
-
-/**
- * Parses raw response data into an array of result objects. The result data key
- * is always stashed in the [0] element of each result object.
- *
- * @method parseResponse
- * @param sQuery {String} Query string.
- * @param oResponse {Object} The raw response data to parse.
- * @param oParent {Object} The object instance that has requested data.
- * @returns {Object[]} Array of result objects.
- */
-YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) {
- var aSchema = this.schema;
- var aResults = [];
- var bError = false;
-
- // Strip out comment at the end of results
- var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ?
- oResponse.indexOf(this.responseStripAfter) : -1;
- if(nEnd != -1) {
- oResponse = oResponse.substring(0,nEnd);
- }
-
- switch (this.responseType) {
- case YAHOO.widget.DS_XHR.TYPE_JSON:
- var jsonList;
- // Divert KHTML clients from JSON lib
- if(window.JSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the JSON utility if available
- var jsonObjParsed = JSON.parse(oResponse);
- if(!jsonObjParsed) {
- bError = true;
- break;
- }
- else {
- try {
- // eval is necessary here since aSchema[0] is of unknown depth
- jsonList = eval("jsonObjParsed." + aSchema[0]);
- }
- catch(e) {
- bError = true;
- break;
- }
- }
- }
- else {
- // Parse the JSON response as a string
- try {
- // Trim leading spaces
- while (oResponse.substring(0,1) == " ") {
- oResponse = oResponse.substring(1, oResponse.length);
- }
-
- // Invalid JSON response
- if(oResponse.indexOf("{") < 0) {
- bError = true;
- break;
- }
-
- // Empty (but not invalid) JSON response
- if(oResponse.indexOf("{}") === 0) {
- break;
- }
-
- // Turn the string into an object literal...
- // ...eval is necessary here
- var jsonObjRaw = eval("(" + oResponse + ")");
- if(!jsonObjRaw) {
- bError = true;
- break;
- }
-
- // Grab the object member that contains an array of all reponses...
- // ...eval is necessary here since aSchema[0] is of unknown depth
- jsonList = eval("(jsonObjRaw." + aSchema[0]+")");
- }
- catch(e) {
- bError = true;
- break;
- }
- }
-
- if(!jsonList) {
- bError = true;
- break;
- }
-
- if(jsonList.constructor != Array) {
- jsonList = [jsonList];
- }
-
- // Loop through the array of all responses...
- for(var i = jsonList.length-1; i >= 0 ; i--) {
- var aResultItem = [];
- var jsonResult = jsonList[i];
- // ...and loop through each data field value of each response
- for(var j = aSchema.length-1; j >= 1 ; j--) {
- // ...and capture data into an array mapped according to the schema...
- var dataFieldValue = jsonResult[aSchema[j]];
- if(!dataFieldValue) {
- dataFieldValue = "";
- }
- aResultItem.unshift(dataFieldValue);
- }
- // If schema isn't well defined, pass along the entire result object
- if(aResultItem.length == 1) {
- aResultItem.push(jsonResult);
- }
- // Capture the array of data field values in an array of results
- aResults.unshift(aResultItem);
- }
- break;
- case YAHOO.widget.DS_XHR.TYPE_XML:
- // Get the collection of results
- var xmlList = oResponse.getElementsByTagName(aSchema[0]);
- if(!xmlList) {
- bError = true;
- break;
- }
- // Loop through each result
- for(var k = xmlList.length-1; k >= 0 ; k--) {
- var result = xmlList.item(k);
- var aFieldSet = [];
- // Loop through each data field in each result using the schema
- for(var m = aSchema.length-1; m >= 1 ; m--) {
- var sValue = null;
- // Values may be held in an attribute...
- var xmlAttr = result.attributes.getNamedItem(aSchema[m]);
- if(xmlAttr) {
- sValue = xmlAttr.value;
- }
- // ...or in a node
- else{
- var xmlNode = result.getElementsByTagName(aSchema[m]);
- if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
- sValue = xmlNode.item(0).firstChild.nodeValue;
- }
- else {
- sValue = "";
- }
- }
- // Capture the schema-mapped data field values into an array
- aFieldSet.unshift(sValue);
- }
- // Capture each array of values into an array of results
- aResults.unshift(aFieldSet);
- }
- break;
- case YAHOO.widget.DS_XHR.TYPE_FLAT:
- if(oResponse.length > 0) {
- // Delete the last line delimiter at the end of the data if it exists
- var newLength = oResponse.length-aSchema[0].length;
- if(oResponse.substr(newLength) == aSchema[0]) {
- oResponse = oResponse.substr(0, newLength);
- }
- var aRecords = oResponse.split(aSchema[0]);
- for(var n = aRecords.length-1; n >= 0; n--) {
- aResults[n] = aRecords[n].split(aSchema[1]);
- }
- }
- break;
- default:
- break;
- }
- sQuery = null;
- oResponse = null;
- oParent = null;
- if(bError) {
- return null;
- }
- else {
- return aResults;
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * XHR connection object.
- *
- * @property _oConn
- * @type Object
- * @private
- */
-YAHOO.widget.DS_XHR.prototype._oConn = null;
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript function as
- * its live data source.
- *
- * @class DS_JSFunction
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!oFunction || (oFunction.constructor != Function)) {
- return;
- }
- else {
- this.dataFunction = oFunction;
- this._init();
- }
-};
-
-YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript function that returns query results.
- *
- * @property dataFunction
- * @type HTMLFunction
- */
-YAHOO.widget.DS_JSFunction.prototype.dataFunction = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by function for results. Results are
- * passed back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- var oFunction = this.dataFunction;
- var aResults = [];
-
- aResults = oFunction(sQuery);
- if(aResults === null) {
- this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
- return;
- }
-
- var resultObj = {};
- resultObj.query = decodeURIComponent(sQuery);
- resultObj.results = aResults;
- this._addCacheElem(resultObj);
-
- this.getResultsEvent.fire(this, oParent, sQuery, aResults);
- oCallbackFn(sQuery, aResults, oParent);
- return;
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript array as
- * its live data source.
- *
- * @class DS_JSArray
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param aData {String[]} In-memory Javascript array of simple string data.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSArray = function(aData, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Initialization sequence
- if(!aData || (aData.constructor != Array)) {
- return;
- }
- else {
- this.data = aData;
- this._init();
- }
-};
-
-YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript array of strings.
- *
- * @property data
- * @type Array
- */
-YAHOO.widget.DS_JSArray.prototype.data = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by data for results. Results are passed
- * back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
- var aData = this.data; // the array
- var aResults = []; // container for results
- var bMatchFound = false;
- var bMatchContains = this.queryMatchContains;
- if(sQuery) {
- if(!this.queryMatchCase) {
- sQuery = sQuery.toLowerCase();
- }
-
- // Loop through each element of the array...
- // which can be a string or an array of strings
- for(var i = aData.length-1; i >= 0; i--) {
- var aDataset = [];
-
- if(aData[i]) {
- if(aData[i].constructor == String) {
- aDataset[0] = aData[i];
- }
- else if(aData[i].constructor == Array) {
- aDataset = aData[i];
- }
- }
-
- if(aDataset[0] && (aDataset[0].constructor == String)) {
- var sKeyIndex = (this.queryMatchCase) ?
- encodeURIComponent(aDataset[0]).indexOf(sQuery):
- encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);
-
- // A STARTSWITH match is when the query is found at the beginning of the key string...
- if((!bMatchContains && (sKeyIndex === 0)) ||
- // A CONTAINS match is when the query is found anywhere within the key string...
- (bMatchContains && (sKeyIndex > -1))) {
- // Stash a match into aResults[].
- aResults.unshift(aDataset);
- }
- }
- }
- }
-
- this.getResultsEvent.fire(this, oParent, sQuery, aResults);
- oCallbackFn(sQuery, aResults, oParent);
-};
-
-YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/button/README b/interface/ispconfig/interface/js/yui/button/README
deleted file mode 100644
index 036e33d9c947f2417b1625ab8657e8dd17a5f9e6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/button/README
+++ /dev/null
@@ -1,3 +0,0 @@
-*** Version 2.2.0 ***
-
-* Button Control introduced
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/button/assets/background.png b/interface/ispconfig/interface/js/yui/button/assets/background.png
deleted file mode 100644
index 87c85b5e539b5c514df107bbb4e298948a016e3d..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/button/assets/background.png and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/button/assets/button.css b/interface/ispconfig/interface/js/yui/button/assets/button.css
deleted file mode 100644
index ff90c8ec844778e084026a23c0552bfb33cec1a3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/button/assets/button.css
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-.yuibutton {
-
- display:-moz-inline-stack; /* Gecko */
- display:inline-block; /* IE, Opera and Safari */
-
- border-width:1px 0;
- border-style:solid;
- border-color:#999;
-
- background:#ecece3 url(background.png) left center;
-
- /* Give the transparent background image to IE 6 */
- _background-image:none;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/button/assets/background.png', sizingMethod = 'scale');
-
- margin:auto .25em;
-
-}
-
-.yuibutton .first-child {
-
- display:block; /* Gecko, Opera and Safari */
- *display:inline-block; /* IE */
-
- border-width:0 1px;
- border-style:solid;
- border-color:#999;
-
- margin:0 -1px;
- *position:relative;
- *left:-1px;
-
-}
-
-.yuibutton button,
-.yuibutton a {
-
- display:block; /* Opera and Safari */
- display:-moz-inline-block; /* Gecko */
- *display:inline-block; /* IE */
- padding:.25em .5em;
- border:1px solid #ccc;
-
-}
-
-.yuibutton button {
-
- overflow:visible; /* Remove superfluous padding for IE */
- font-size:100%; /* Makes form controls resizable in IE */
- background-color:transparent;
- cursor:pointer;
- cursor:hand;
-
-}
-
-.yuibutton a {
-
- text-decoration:none;
- color:#000;
-
-}
-
-.yuibutton.splitbutton button,
-.yuibutton.menubutton button {
-
- padding-right:20px;
- background-position:right center;
- background-repeat:no-repeat;
-
-}
-
-.yuibutton.menubutton button {
-
- background-image:url(menuarrow.gif);
-
-}
-
-.yuibutton.splitbutton button {
-
- background-image:url(splitarrow.gif);
-
-}
-
-
-/* Focus state */
-
-.yuibutton.focus {
-
- border-color:#5e5c95;
-
-}
-
-.yuibutton.focus .first-child {
-
- border-color:#5e5c95;
-
-}
-
-.yuibutton.focus button,
-.yuibutton.focus a {
-
- border-color:#cec1fc;
-
-}
-
-
-/* Hover state */
-
-.yuibutton.hover {
-
- border-color:#406fac;
- background-color:#98d5fc;
-
-}
-
-.yuibutton.hover .first-child {
-
- border-color:#406fac;
-
-}
-
-.yuibutton.hover button,
-.yuibutton.hover a {
-
- border-color:#7099ce;
-
-}
-
-
-/* Active state */
-
-.yuibutton.active {
-
- border-color:#7a8180;
- background-color:#333;
-
-}
-
-.yuibutton.active .first-child {
-
- border-color:#7a8180;
-
-}
-
-.yuibutton.active button,
-.yuibutton.active a {
-
- border-color:#98a09f;
-
-}
-
-.yuibutton.splitbutton.activeoption button {
-
- background-color:transparent;
- background-image:url(splitarrow_active.gif);
-
-}
-
-
-
-/* Checked state */
-
-.yuibutton.radio.checked,
-.yuibutton.checkbox.checked {
-
- border-color:#7a8180;
- background-color:#333;
-
-}
-
-.yuibutton.radio.checked .first-child,
-.yuibutton.checkbox.checked .first-child {
-
- border-color:#7a8180;
-
-}
-
-.yuibutton.radio.checked button,
-.yuibutton.checkbox.checked button {
-
- border-color:#98a09f;
-
-}
-
-
-
-/* Disabled state */
-
-.yuibutton.disabled {
-
- border-color:#cbcdc5;
- background:#ecece3;
-
- _filter:none;
-
-}
-
-.yuibutton.disabled .first-child {
-
- border-color:#cbcdc5;
-
-}
-
-.yuibutton.disabled button,
-.yuibutton.disabled a {
-
- border-color:transparent;
- color:#b9b9b9;
- cursor:default;
-
-}
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif b/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif
deleted file mode 100644
index ffa2ba9d25d7ec10438cc1c8ac043c99d4cd7d55..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/button/assets/menuarrow.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif b/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif
deleted file mode 100644
index 6d1ce65940cde97983279c08a144b48d9e8e4b89..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/button/assets/splitarrow.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif b/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif
deleted file mode 100644
index 25c0884e06acfc235acccf87d3ae141edfe8dbdf..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/button/assets/splitarrow_active.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/button/button-beta-debug.js b/interface/ispconfig/interface/js/yui/button/button-beta-debug.js
deleted file mode 100644
index e9403670babad2acddd7bdacb57c1f556cb7c584..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/button/button-beta-debug.js
+++ /dev/null
@@ -1,4061 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* @module button
-* @description The Button Control enables the creation of rich, graphical
-* buttons that function like traditional HTML form buttons. Unlike
-* tradition HTML form buttons, buttons created with the Button Control can have
-* a label that is different from its value. With the inclusion of the optional
-* Menu Control , the Button Control can also be
-* used to create menu buttons and split buttons, controls that are not
-* available natively in HTML. The Button Control can also be thought of as a
-* way to create more visually engaging implementations of the browser's
-* default radio-button and check-box controls.
-* The Button Control supports the following types:
-*
-* button
-* Basic push button that can execute a user-specified command when
-* pressed.
-* link
-* Navigates to a specified url when pressed.
-* submit
-* Submits the parent form when pressed.
-* reset
-* Resets the parent form when pressed.
-* checkbox
-* Maintains a "checked" state that can be toggled on and off.
-* radio
-* Maintains a "checked" state that can be toggled on and off. Use with
-* the ButtonGroup class to create a set of controls that are mutually
-* exclusive; checking one button in the set will uncheck all others in
-* the group.
-* menubutton
-* When pressed will show/hide a menu.
-* splitbutton
-* Can execute a user-specified command or display a menu when pressed.
-*
-* @title Button
-* @namespace YAHOO.widget
-* @requires yahoo, dom, element, event
-* @optional container, menu
-* @beta
-*/
-
-
-(function() {
-
-// Shorthard for utilities
-
-var Dom = YAHOO.util.Dom,
- Event = YAHOO.util.Event,
- Lang = YAHOO.lang,
-
-
- // Private member variables
-
- m_oButtons = {},
- m_oFocusedButton = null;
-
-
-
-// Constructor
-
-
-/**
-* The Button class creates a rich, graphical button.
-* @param {String} p_oElement String specifying the id attribute of the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {HTMLInputElement |HTMLElement } p_oElement Object reference for the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button.
-* @namespace YAHOO.widget
-* @class Button
-* @constructor
-* @extends YAHOO.util.Element
-*/
-YAHOO.widget.Button = function(p_oElement, p_oAttributes) {
-
- var fnSuperClass = YAHOO.widget.Button.superclass.constructor;
-
- if(
- arguments.length == 1 &&
- !Lang.isString(p_oElement) &&
- !p_oElement.nodeName
- ) {
-
- if(!p_oElement.id) {
-
- p_oElement.id = Dom.generateId();
-
- YAHOO.log(
- "No value specified for the button's \"id\" attribute. " +
- "Setting button id to \"" + p_oElement.id + "\".",
- "warn"
- );
-
- }
-
- this.logger = new YAHOO.widget.LogWriter("Button " + p_oElement.id);
-
- this.logger.log(
- "No source HTML element. " +
- "Building the button using the set of configuration attributes."
- );
-
- fnSuperClass.call(
- this,
- (this._createButtonElement(p_oElement.type)),
- p_oElement
- );
-
- }
- else {
-
- var oConfig = {
-
- element: null,
- attributes: (p_oAttributes || {})
-
- };
-
-
- if(Lang.isString(p_oElement)) {
-
- var me = this;
-
- Event.onAvailable(p_oElement, function() {
-
- var sTagName = this.tagName.toUpperCase();
-
- if(sTagName == me.TAG_NAME) {
-
- oConfig.attributes.id = this.id;
-
- }
- else if(sTagName == "INPUT" && !oConfig.attributes.id) {
-
- oConfig.attributes.id = Dom.generateId();
-
- YAHOO.log(
- "No value specified for the button's \"id\" " +
- "attribute. Setting button id to \"" +
- oConfig.attributes.id + "\".",
- "warn"
- );
-
- }
-
- me.logger = new YAHOO.widget.LogWriter(
- "Button " + oConfig.attributes.id
- );
-
- me.logger.log(
- "Building the button using an existing HTML " +
- "element as a source element."
- );
-
-
- oConfig.attributes.srcelement = this;
-
- initConfig.call(me, oConfig);
-
-
- if(!oConfig.element) {
-
- me.logger.log(
- "Source element could not be used as is. " +
- "Creating a new HTML element for the button."
- );
-
- oConfig.element =
- me._createButtonElement(oConfig.attributes.type);
-
- }
-
- fnSuperClass.call(me, oConfig.element, oConfig.attributes);
-
- });
-
- }
- else {
-
- var sTagName = p_oElement.tagName.toUpperCase();
-
- if(sTagName == this.TAG_NAME) {
-
- if(p_oElement.id) {
-
- oConfig.attributes.id = p_oElement.id;
-
- }
- else {
-
- oConfig.attributes.id = Dom.generateId();
-
- YAHOO.log(
- "No value specified for the button's \"id\" " +
- "attribute. Setting button id to \"" +
- oConfig.attributes.id + "\".",
- "warn"
- );
-
- }
-
-
- }
- else if(sTagName == "INPUT" && !oConfig.attributes.id) {
-
- oConfig.attributes.id = Dom.generateId();
-
- YAHOO.log(
- "No value specified for the button's \"id\" " +
- "attribute. Setting button id to \"" +
- oConfig.attributes.id + "\".",
- "warn"
- );
-
- }
-
- this.logger =
- new YAHOO.widget.LogWriter("Button " + oConfig.attributes.id);
-
- this.logger.log(
- "Building the button using an existing HTML element as " +
- "a source element."
- );
-
-
- oConfig.attributes.srcelement = p_oElement;
-
- initConfig.call(this, oConfig);
-
-
- if(!oConfig.element) {
-
- this.logger.log(
- "Source element could not be used as is. " +
- "Creating a new HTML element for the button."
- );
-
- oConfig.element =
- this._createButtonElement(oConfig.attributes.type);
-
- }
-
- fnSuperClass.call(this, oConfig.element, oConfig.attributes);
-
- }
-
- }
-
-};
-
-
-
-// Private methods
-
-
-/**
-* @method getFirstElement
-* @description Returns an HTML element's first HTML element node.
-* @private
-* @param {HTMLElement } p_oElement Object
-* reference specifying the element to be evaluated.
-* @return {HTMLElement }
-*/
-function getFirstElement(p_oElement) {
-
- var oFirstChild = p_oElement.firstChild;
-
- if(oFirstChild) {
-
- if(oFirstChild.nodeType == 1) {
-
- return oFirstChild;
-
- }
- else {
-
- var oNextSibling = oFirstChild.nextSibling;
-
- if(oNextSibling && oNextSibling.nodeType == 1) {
-
- return oNextSibling;
-
- }
-
- }
-
- }
-
-}
-
-
-/**
-* @method createInputElement
-* @description Creates an <input>
element of the
-* specified type.
-* @private
-* @param {String} p_sType String specifying the type of
-* <input>
element to create.
-* @param {String} p_sName String specifying the name of
-* <input>
element to create.
-* @param {String} p_sValue String specifying the value of
-* <input>
element to create.
-* @param {String} p_bChecked Boolean specifying if the
-* <input>
element is to be checked.
-* @return {HTMLInputElement }
-*/
-function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) {
-
- var oInput;
-
- if(navigator.userAgent.indexOf("MSIE") != -1) {
-
- /*
- For IE it is necessary to create the element with the
- "type," "name," "value," and "checked" properties set all at once.
- */
-
- var sInput = " ";
-
- oInput = document.createElement(sInput);
-
- }
- else {
-
- oInput = document.createElement("input");
- oInput.name = p_sName;
- oInput.type = p_sType;
-
- if(p_bChecked) {
-
- oInput.checked = true;
-
- }
-
- }
-
- oInput.value = p_sValue;
-
- return oInput;
-
-}
-
-
-/**
-* @method setAttributesFromSrcElement
-* @description Gets the values for all the attributes of the source element
-* (either <input>
or <a>
) that map to
-* Button configuration attributes and sets them into a collection that is
-* passed to the Button constructor.
-* @private
-* @param {HTMLInputElement |HTMLAnchorElement } p_oElement Object reference to the HTML
-* element (either <input>
or <span>
)
-* used to create the button.
-* @param {Object} p_oAttributes Object reference for the collection of
-* configuration attributes used to create the button.
-*/
-function setAttributesFromSrcElement(p_oElement, p_oAttributes) {
-
- var me = this;
-
- /**
- * @method setAttributeFromDOMAttribute
- * @description Gets the value of the specified DOM attribute and sets it
- * into the collection of configuration attributes used to configure
- * the button.
- * @private
- * @param {String} p_sAttribute String representing the name of the
- * attribute to retrieve from the DOM element.
- */
- function setAttributeFromDOMAttribute(p_sAttribute) {
-
- if( !(p_sAttribute in p_oAttributes) ) {
-
- /*
- Need to use "getAttributeNode" instead of "getAttribute"
- because using "getAttribute," IE will return the innerText of
- a <button>
for the value attribute rather
- than the value of the "value" attribute.
- */
-
- var oAttribute = p_oElement.getAttributeNode(p_sAttribute);
-
-
- if(oAttribute && ("value" in oAttribute)) {
-
- me.logger.log(
- "Setting attribute \"" + p_sAttribute + "\" using " +
- "source element's attribute value of \"" +
- oAttribute.value + "\""
- );
-
- p_oAttributes[p_sAttribute] = oAttribute.value;
-
- }
-
- }
-
- }
-
-
- /**
- * @method setFormElementProperties
- * @description Gets the value of the attributes from the form element and
- * sets them into the collection of configuration attributes used to
- * configure the button.
- * @private
- */
- function setFormElementProperties() {
-
- setAttributeFromDOMAttribute("type");
-
- if( !("disabled" in p_oAttributes) ) {
-
- p_oAttributes.disabled = p_oElement.disabled;
-
- }
-
- setAttributeFromDOMAttribute("name");
- setAttributeFromDOMAttribute("value");
- setAttributeFromDOMAttribute("title");
-
- }
-
-
- var sSrcElementTagName = p_oElement.tagName.toUpperCase();
-
-
- if( !("label" in p_oAttributes) ) {
-
- // Set the "label" property
-
- var sText = sSrcElementTagName == "INPUT" ?
- p_oElement.value : p_oElement.innerHTML;
-
-
- if(sText && sText.length > 0) {
-
- p_oAttributes.label = sText;
-
- }
-
- }
-
-
- setAttributeFromDOMAttribute("tabindex");
- setAttributeFromDOMAttribute("accesskey");
-
-
- switch(sSrcElementTagName) {
-
- case "A":
-
- p_oAttributes.type = "link";
-
- setAttributeFromDOMAttribute("href");
- setAttributeFromDOMAttribute("target");
-
- break;
-
- case "INPUT":
-
- setFormElementProperties();
-
- if( !("checked" in p_oAttributes) ) {
-
- p_oAttributes.checked = p_oElement.checked;
-
- }
-
- break;
-
- case "BUTTON":
-
- setFormElementProperties();
-
- var oRootNode = p_oElement.parentNode.parentNode;
-
- if(Dom.hasClass(oRootNode, "checked")) {
-
- p_oAttributes.checked = true;
-
- }
-
- if(Dom.hasClass(oRootNode, "disabled")) {
-
- p_oAttributes.disabled = true;
-
- }
-
- p_oElement.removeAttribute("name");
- p_oElement.removeAttribute("value");
-
- p_oElement.setAttribute("type", "button");
-
- break;
-
- }
-
-}
-
-
-/**
-* @method initConfig
-* @description Initializes the set of configuration attributes that are used to
-* instantiate the button.
-* @private
-* @param {Object} Object representing the button's set of
-* configuration attributes.
-*/
-function initConfig(p_oConfig) {
-
- var oAttributes = p_oConfig.attributes,
- oSrcElement = oAttributes.srcelement,
- sSrcElementTagName = oSrcElement.tagName.toUpperCase();
-
-
- if(sSrcElementTagName == this.TAG_NAME) {
-
- p_oConfig.element = oSrcElement;
-
- var oFirstChild = getFirstElement(p_oConfig.element);
-
- Dom.addClass(oFirstChild, "first-child");
-
- if(oFirstChild) {
-
- var oButton = getFirstElement(oFirstChild);
-
-
- if(oButton) {
-
- var sButtonTagName = oButton.tagName.toUpperCase();
-
-
- if(sButtonTagName == "A" || sButtonTagName == "BUTTON") {
-
- setAttributesFromSrcElement.call(
- this,
- oButton,
- oAttributes
- );
-
- }
-
- }
-
- }
-
- }
- else if(sSrcElementTagName == "INPUT") {
-
- setAttributesFromSrcElement.call(this, oSrcElement, oAttributes);
-
- }
-
-}
-
-
-YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, {
-
-
-// Protected properties
-
-
-/**
-* @property _button
-* @description Object reference to the button's internal
-* <a>
or <button>
element.
-* @default null
-* @protected
-* @type HTMLAnchorElement |HTMLButtonElement
-*/
-_button: null,
-
-
-/**
-* @property _menu
-* @description Object reference to the button's menu.
-* @default null
-* @protected
-* @type YAHOO.widget.Menu
-*/
-_menu: null,
-
-
-/**
-* @property _onclickAttributeValue
-* @description Object reference to the button's current value for the "onclick"
-* configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_onclickAttributeValue: null,
-
-
-/**
-* @property _oninitAttributeValue
-* @description Object reference to the button's current value for the "oninit"
-* configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_oninitAttributeValue: null,
-
-
-/**
-* @property _activationKeyPressed
-* @description Boolean indicating if the key(s) that toggle the button's
-* "active" state have been pressed.
-* @default false
-* @protected
-* @type Boolean
-*/
-_activationKeyPressed: false,
-
-
-/**
-* @property _activationButtonPressed
-* @description Boolean indicating if the mouse button that toggles the button's
-* "active" state has been pressed.
-* @default false
-* @protected
-* @type Boolean
-*/
-_activationButtonPressed: false,
-
-
-/**
-* @property _hasKeyEventHandlers
-* @description Boolean indicating if the button's "blur", "keydown" and
-* "keyup" event handlers are assigned
-* @default false
-* @protected
-* @type Boolean
-*/
-_hasKeyEventHandlers: false,
-
-
-/**
-* @property _hasMouseEventHandlers
-* @description Boolean indicating if the button's "mouseout" and "mousedown"
-* and "mouseup" event handlers are assigned
-* @default false
-* @protected
-* @type Boolean
-*/
-_hasMouseEventHandlers: false,
-
-
-
-// Constants
-
-
-/**
-* @property TAG_NAME
-* @description The name of the tag to be used for the button's root element.
-* @default "SPAN"
-* @final
-* @type String
-*/
-TAG_NAME: "SPAN",
-
-
-/**
-* @property CHECK_ACTIVATION_KEYS
-* @description Array of numbers representing keys that (when pressed) toggle
-* the button's "checked" attribute.
-* @default [32]
-* @final
-* @type Array
-*/
-CHECK_ACTIVATION_KEYS: [32],
-
-
-/**
-* @property ACTIVATION_KEYS
-* @description Array of numbers representing keys that (when presed) toggle
-* the button's "active" state.
-* @default [13, 32]
-* @final
-* @type Array
-*/
-ACTIVATION_KEYS: [13, 32],
-
-
-/**
-* @property OPTION_AREA_WIDTH
-* @description Width (in pixels) of the area of a split button that when
-* pressed will display a menu.
-* @default 20
-* @final
-* @type Number
-*/
-OPTION_AREA_WIDTH: 20,
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the
-* button's root element.
-* @default "yuibutton"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuibutton",
-
-
-/**
-* @property RADIO_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "radio."
-* @default "Unchecked. Click to check."
-* @final
-* @type String
-*/
-RADIO_DEFAULT_TITLE: "Unchecked. Click to check.",
-
-
-/**
-* @property RADIO_CHECKED_TITLE
-* @description String representing the title applied to buttons of type "radio"
-* when checked.
-* @default "Checked. Click to uncheck."
-* @final
-* @type String
-*/
-RADIO_CHECKED_TITLE: "Checked. Click to uncheck.",
-
-
-/**
-* @property CHECKBOX_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "checkbox."
-* @default "Unchecked. Click to check."
-* @final
-* @type String
-*/
-CHECKBOX_DEFAULT_TITLE: "Unchecked. Click to check.",
-
-
-/**
-* @property CHECKBOX_CHECKED_TITLE
-* @description String representing the title applied to buttons of type
-* "checkbox" when checked.
-* @default "Checked. Click to uncheck."
-* @final
-* @type String
-*/
-CHECKBOX_CHECKED_TITLE: "Checked. Click to uncheck.",
-
-
-/**
-* @property MENUBUTTON_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "menubutton."
-* @default "Menu collapsed. Click to expand."
-* @final
-* @type String
-*/
-MENUBUTTON_DEFAULT_TITLE: "Menu collapsed. Click to expand.",
-
-
-/**
-* @property MENUBUTTON_MENU_VISIBLE_TITLE
-* @description String representing the title applied to buttons of type
-* "menubutton" when the button's menu is visible.
-* @default "Menu expanded. Click or press Esc to collapse."
-* @final
-* @type String
-*/
-MENUBUTTON_MENU_VISIBLE_TITLE:
- "Menu expanded. Click or press Esc to collapse.",
-
-
-/**
-* @property SPLITBUTTON_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "splitebutton."
-* @default "Menu collapsed. Click inside option region or press
-* Ctrl + Shift + M to show the menu."
-* @final
-* @type String
-*/
-SPLITBUTTON_DEFAULT_TITLE:
- "Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.",
-
-
-/**
-* @property SPLITBUTTON_OPTION_VISIBLE_TITLE
-* @description String representing the title applied to buttons of type
-* "splitbutton" when the button's menu is visible.
-* @default "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu."
-* @final
-* @type String
-*/
-SPLITBUTTON_OPTION_VISIBLE_TITLE:
- "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.",
-
-
-/**
-* @property SUBMIT_TITLE
-* @description String representing the title applied to buttons of
-* type "submit."
-* @default "Click to submit form."
-* @final
-* @type String
-*/
-SUBMIT_TITLE: "Click to submit form.",
-
-
-
-// Protected attribute setter methods
-
-
-/**
-* @method _setType
-* @description Sets the value of the button's "type" attribute.
-* @protected
-* @param {String} p_sType String indicating the value for the button's
-* "type" attribute.
-*/
-_setType: function(p_sType) {
-
- if(p_sType == "splitbutton") {
-
- this.on("option", this._onOption);
-
- }
-
-},
-
-
-/**
-* @method _setLabel
-* @description Sets the value of the button's "label" attribute.
-* @protected
-* @param {String} p_sLabel String indicating the value for the button's
-* "label" attribute.
-*/
-_setLabel: function(p_sLabel) {
-
- this._button.innerHTML = p_sLabel;
-
-},
-
-
-/**
-* @method _setTabIndex
-* @description Sets the value of the button's "tabindex" attribute.
-* @protected
-* @param {Number} p_nTabIndex Number indicating the value for the button's
-* "tabindex" attribute.
-*/
-_setTabIndex: function(p_nTabIndex) {
-
- this._button.tabIndex = p_nTabIndex;
-
-},
-
-
-/**
-* @method _setTitle
-* @description Sets the value of the button's "title" attribute.
-* @protected
-* @param {String} p_nTabIndex Number indicating the value for the button's
-* "title" attribute.
-*/
-_setTitle: function(p_sTitle) {
-
- if(this.get("type") != "link") {
-
- var sTitle = p_sTitle;
-
- if(!sTitle) {
-
-
- var sType = this.get("type");
-
- switch(sType) {
-
- case "radio":
-
- sTitle = this.RADIO_DEFAULT_TITLE;
-
- break;
-
- case "checkbox":
-
- sTitle = this.CHECKBOX_DEFAULT_TITLE;
-
- break;
-
- case "menubutton":
-
- sTitle = this.MENUBUTTON_DEFAULT_TITLE;
-
- break;
-
- case "splitbutton":
-
- sTitle = this.SPLITBUTTON_DEFAULT_TITLE;
-
- break;
-
- case "submit":
-
- sTitle = this.SUBMIT_TITLE;
-
- break;
-
- }
-
- }
-
- this._button.title = sTitle;
-
- }
-
-},
-
-
-/**
-* @method _setDisabled
-* @description Sets the value of the button's "disabled" attribute.
-* @protected
-* @param {Boolean} p_bDisabled Boolean indicating the value for the button's
-* "disabled" attribute.
-*/
-_setDisabled: function(p_bDisabled) {
-
- if(this.get("type") != "link") {
-
- if(p_bDisabled) {
-
- if(this.hasFocus()) {
-
- this.blur();
-
- }
-
- this._button.setAttribute("disabled", "disabled");
-
- this.addClass("disabled");
-
- }
- else {
-
- this._button.removeAttribute("disabled");
-
- this.removeClass("disabled");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _setAccessKey
-* @description Sets the value of the button's "accesskey" attribute.
-* @protected
-* @param {String} p_sAccessKey String indicating the value for the button's
-* "accesskey" attribute.
-*/
-_setAccessKey: function(p_sAccessKey) {
-
- this._button.accessKey = p_sAccessKey;
-
-},
-
-
-/**
-* @method _setHref
-* @description Sets the value of the button's "href" attribute.
-* @protected
-* @param {String} p_sHref String indicating the value for the button's
-* "href" attribute.
-*/
-_setHref: function(p_sHref) {
-
- if(this.get("type") == "link") {
-
- this._button.href = p_sHref;
-
- }
-
-},
-
-
-/**
-* @method _setTarget
-* @description Sets the value of the button's "target" attribute.
-* @protected
-* @param {String} p_sTarget String indicating the value for the button's
-* "target" attribute.
-*/
-_setTarget: function(p_sTarget) {
-
- if(this.get("type") == "link") {
-
- this._button.setAttribute("target", p_sTarget);
-
- }
-
-},
-
-
-/**
-* @method _setChecked
-* @description Sets the value of the button's "target" attribute.
-* @protected
-* @param {Boolean} p_bChecked Boolean indicating the value for the button's
-* "checked" attribute.
-*/
-_setChecked: function(p_bChecked) {
-
- var sType = this.get("type"),
- sTitle;
-
- if(sType == "checkbox" || sType == "radio") {
-
- if(p_bChecked) {
-
- this.addClass("checked");
-
- sTitle = (sType == "radio") ?
- this.RADIO_CHECKED_TITLE :
- this.CHECKBOX_CHECKED_TITLE;
-
- }
- else {
-
- this.removeClass("checked");
-
- sTitle = (sType == "radio") ?
- this.RADIO_DEFAULT_TITLE :
- this.CHECKBOX_DEFAULT_TITLE;
-
- }
-
- this.set("title", sTitle);
-
- }
-
-},
-
-
-/**
-* @method _setMenu
-* @description Sets the value of the button's "menu" attribute.
-* @protected
-* @param {Object} p_oMenu Object indicating the value for the button's
-* "menu" attribute.
-*/
-_setMenu: function(p_oMenu) {
-
- var Menu = YAHOO.widget.Menu,
- oMenu,
- me = this;
-
- if(!Menu) {
-
- this.logger.log("YAHOO.widget.Menu dependency not met.", "error");
-
- return false;
-
- }
-
-
- function initMenu() {
-
- if(oMenu) {
-
- oMenu.showEvent.subscribe(this._onMenuShow, this, true);
- oMenu.hideEvent.subscribe(this._onMenuHide, this, true);
- oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
- oMenu.renderEvent.subscribe(this._onMenuRender, this, true);
- oMenu.clickEvent.subscribe(this._onMenuClick, this, true);
- oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true);
-
- var oSrcElement = oMenu.srcElement;
-
- if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") {
-
- oSrcElement.style.display = "none";
- oSrcElement.parentNode.removeChild(oSrcElement);
-
- }
-
- this._menu = oMenu;
-
- }
- else {
-
- this._menu.destroy();
- this._menu = null;
-
- }
-
- }
-
-
- if(p_oMenu instanceof Menu) {
-
- oMenu = p_oMenu;
-
- var aItems = oMenu.getItems(),
- nItems = aItems.length,
- oItem;
-
- if(nItems > 0) {
-
- var i = nItems - 1;
-
- do {
-
- oItem = aItems[i];
-
- if(oItem) {
-
- oItem.cfg.subscribeToConfigEvent(
- "selected",
- this._onMenuItemSelected,
- oItem,
- this
- );
-
- }
-
- }
- while(i--);
-
- }
-
- initMenu.call(this);
-
- }
- else if(Lang.isArray(p_oMenu)) {
-
- this.on("appendTo", function() {
-
- oMenu = new Menu(
- Dom.generateId(),
- { lazyload: true, itemdata: p_oMenu }
- );
-
- initMenu.call(me);
-
- });
-
- }
- else if(Lang.isString(p_oMenu)) {
-
- Event.onContentReady(p_oMenu, function() {
-
- oMenu = new Menu(this, { lazyload: true });
-
- initMenu.call(me);
-
- });
-
- }
- else if(p_oMenu && p_oMenu.nodeName) {
-
- oMenu = new Menu(p_oMenu, { lazyload: true });
-
- initMenu.call(this);
-
- }
-
-},
-
-
-/**
-* @method _setOnClick
-* @description Sets the value of the button's "onclick" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "onclick" attribute.
-*/
-_setOnClick: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "click" event handler has already
- been specified.
- */
-
- if(
- this._onclickAttributeValue &&
- (this._onclickAttributeValue != p_oObject)
- ) {
-
- this.removeListener("click", this._onclickAttributeValue.fn);
-
- this._onclickAttributeValue = null;
-
- }
-
-
- if(
- !this._onclickAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._onclickAttributeValue = p_oObject;
-
- }
-
-},
-
-/**
-* @method _setOnInit
-* @description Sets the value of the button's "init" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "oninit" attribute.
-*/
-_setOnInit: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "init" event handler has already
- been specified.
- */
-
- if(
- this._oninitAttributeValue &&
- (this._oninitAttributeValue != p_oObject)
- ) {
-
- this.removeListener("init", this._oninitAttributeValue.fn);
-
- this._oninitAttributeValue = null;
-
- }
-
-
- if(
- !this._oninitAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._oninitAttributeValue = p_oObject;
-
- }
-
-},
-
-
-
-// Protected methods
-
-
-/**
-* @method _createButtonElement
-* @description Creates the button's element.
-* @protected
-* @param {String} p_sType String indicating the type of element to create.
-* @return {HTMLElement }
-*/
-_createButtonElement: function(p_sType) {
-
- var sTagName = this.TAG_NAME,
- oElement = document.createElement(sTagName);
-
- oElement.innerHTML =
-
- "<" + sTagName + " class=\"first-child\">" +
- (p_sType == "link" ? " " : " ") +
- "" + sTagName + ">";
-
- return oElement;
-
-},
-
-
-/**
-* @method _isActivationKey
-* @description Determines if the specified keycode is one that toggles the
-* button's "active" state.
-* @protected
-* @param {Number} p_nKeyCode Number representing the keycode to be evaluated.
-* @return {Boolean}
-*/
-_isActivationKey: function(p_nKeyCode) {
-
- var sType = this.get("type"),
- aKeyCodes = (sType == "checkbox" || sType == "radio") ?
- this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS,
-
- nKeyCodes = aKeyCodes.length;
-
- if(nKeyCodes > 0) {
-
- var i = nKeyCodes - 1;
-
- do {
-
- if(p_nKeyCode == aKeyCodes[i]) {
-
- return true;
-
- }
-
- }
- while(i--);
-
- }
-
-},
-
-
-/**
-* @method _isSplitButtonOptionKey
-* @description Determines if the specified keycode is one that toggles the
-* display of the split button's menu.
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @return {Boolean}
-*/
-_isSplitButtonOptionKey: function(p_oEvent) {
-
- return (
- p_oEvent.ctrlKey &&
- p_oEvent.shiftKey &&
- Event.getCharCode(p_oEvent) == 77
- );
-
-},
-
-
-_originalMaxHeight: -1,
-
-
-/**
-* @method _showMenu
-* @description Shows the button's menu.
-* @protected
-*/
-_showMenu: function() {
-
- var oMenu = this._menu;
-
- if(oMenu) {
-
- YAHOO.widget.MenuManager.hideVisible();
-
- oMenu.cfg.applyConfig({
- context:[this.get("id"), "tl", "bl"],
- clicktohide: false,
- constraintoviewport: false,
- visible: true
- });
-
- oMenu.cfg.fireQueue();
-
- var nViewportHeight = Dom.getViewportHeight(),
- nMenuHeight = oMenu.element.offsetHeight;
-
-
- if((oMenu.cfg.getProperty("y") + nMenuHeight) > nViewportHeight) {
-
- this.logger.log("Current menu position will place a portion, or " +
- "the entire menu outside the boundary of the viewport. " +
- "Repositioning the menu to stay inside the viewport.");
-
- oMenu.align("bl", "tl");
-
- var nY = oMenu.cfg.getProperty("y"),
-
- nScrollTop = (
- document.documentElement.scrollTop ||
- document.body.scrollTop
- );
-
-
- if(nScrollTop >= nY) {
-
- if(this._originalMaxHeight == -1) {
-
- this._originalMaxHeight =
- oMenu.cfg.getProperty("maxheight");
-
- }
-
- oMenu.cfg.setProperty(
- "maxheight",
- (nMenuHeight - ((nScrollTop - nY) + 20))
- );
-
- oMenu.align("bl", "tl");
-
- }
-
- }
-
- oMenu.cfg.setProperty("constraintoviewport", true);
-
- }
-
-},
-
-
-/**
-* @method _hideMenu
-* @description Hides the button's menu.
-* @protected
-*/
-_hideMenu: function() {
-
- var oMenu = this._menu;
-
- if(oMenu && oMenu.cfg.getProperty("visible")) {
-
- oMenu.hide();
-
- }
-
-},
-
-
-/**
-* @method _submitForm
-* @description Submits the form to which the button belongs.
-* @protected
-*/
-_submitForm: function() {
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- YAHOO.widget.Button.addHiddenFieldsToForm(oForm);
-
- this.createHiddenField();
-
- oForm.submit();
-
- }
-
-},
-
-
-
-// Protected event handlers
-
-
-/**
-* @method _onMouseOver
-* @description "mouseover" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseOver: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- if(!this._hasMouseEventHandlers) {
-
- this.on("mouseout", this._onMouseOut);
- this.on("mousedown", this._onMouseDown);
- this.on("mouseup", this._onMouseUp);
-
- this._hasMouseEventHandlers = true;
-
- }
-
- this.addClass("hover");
-
- if(this._activationButtonPressed) {
-
- this.addClass("active");
-
- }
-
-
- if(this._bOptionPressed) {
-
- this.addClass("activeoption");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMouseOut
-* @description "mouseout" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseOut: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- this.removeClass("hover");
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- if(this._activationButtonPressed || this._bOptionPressed) {
-
- Event.on(document, "mouseup", this._onDocumentMouseUp, this, true);
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onDocumentMouseUp
-* @description "mouseup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentMouseUp: function(p_oEvent, p_oButton) {
-
- this._activationButtonPressed = false;
- this._bOptionPressed = false;
-
- var sType = this.get("type");
-
- if(sType == "menubutton" || sType == "splitbutton") {
-
- this.removeClass((sType == "menubutton" ? "active" : "activeoption"));
-
- this._hideMenu();
-
- }
-
- Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
-
-},
-
-
-/**
-* @method _onMouseDown
-* @description "mousedown" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseDown: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- if((p_oEvent.which || p_oEvent.button) == 1) {
-
- if(!this.hasFocus()) {
-
- this.focus();
-
- }
-
-
- var sType = this.get("type");
-
-
- if(sType == "splitbutton") {
-
- var oElement = this.get("element"),
- nX = Event.getPageX(p_oEvent) - Dom.getX(oElement);
-
- if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) {
-
- this.fireEvent("option", p_oEvent);
-
- }
- else {
-
- this.addClass("active");
-
- this._activationButtonPressed = true;
-
- }
-
- }
- else if(sType == "menubutton") {
-
- if(this.hasClass("active")) {
-
- this._hideMenu();
-
- this._activationButtonPressed = false;
-
- }
- else {
-
- this._showMenu();
-
- this._activationButtonPressed = true;
-
- }
-
- }
- else {
-
- this.addClass("active");
-
- this._activationButtonPressed = true;
-
- }
-
-
-
- if(sType == "splitbutton" || sType == "menubutton") {
-
- var me = this;
-
-
- function onMouseUp() {
-
- me._hideMenu();
- me.removeListener("mouseup", onMouseUp);
-
- }
-
-
- this._hideMenuTimerId = window.setTimeout(function() {
-
- me.on("mouseup", onMouseUp);
-
- }, 250);
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMouseUp
-* @description "mouseup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseUp: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
-
- if(this._hideMenuTimerId) {
-
- window.clearTimeout(this._hideMenuTimerId);
-
- }
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.set("checked", !(this.get("checked")));
-
- }
-
-
- this._activationButtonPressed = false;
-
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onFocus
-* @description "focus" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button that
-* fired the event.
-*/
-_onFocus: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- this.addClass("focus");
-
- if(this._activationKeyPressed) {
-
- this.addClass("active");
-
- }
-
- m_oFocusedButton = this;
-
-
- if(!this._hasKeyEventHandlers) {
-
- var oElement = this._button;
-
- Event.on(oElement, "blur", this._onBlur, this, true);
- Event.on(oElement, "keydown", this._onKeyDown, this, true);
- Event.on(oElement, "keyup", this._onKeyUp, this, true);
-
- this._hasKeyEventHandlers = true;
-
- }
-
-
- this.fireEvent("focus", p_oEvent);
-
- }
-
-},
-
-
-/**
-* @method _onBlur
-* @description "blur" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onBlur: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- this.removeClass("focus");
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- if(this._activationKeyPressed) {
-
- Event.on(document, "keyup", this._onDocumentKeyUp, this, true);
-
- }
-
-
- m_oFocusedButton = null;
-
- this.fireEvent("blur", p_oEvent);
-
- }
-
-},
-
-
-/**
-* @method _onDocumentKeyUp
-* @description "keyup" event handler for the document.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentKeyUp: function(p_oEvent, p_oButton) {
-
- if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- this._activationKeyPressed = false;
-
- Event.removeListener(document, "keyup", this._onDocumentKeyUp);
-
- }
-
-},
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onKeyDown: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- if(
- this.get("type") == "splitbutton" &&
- this._isSplitButtonOptionKey(p_oEvent)
- ) {
-
- this.fireEvent("option", p_oEvent);
-
- }
- else if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- if(this.get("type") == "menubutton") {
-
- this._showMenu();
-
- }
- else {
-
- this._activationKeyPressed = true;
-
- this.addClass("active");
-
- }
-
- }
-
-
- var oMenu = this._menu;
-
- if(
- oMenu && oMenu.cfg.getProperty("visible") &&
- Event.getCharCode(p_oEvent) == 27
- ) {
-
- oMenu.hide();
- this.focus();
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onKeyUp
-* @description "keyup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onKeyUp: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.set("checked", !(this.get("checked")));
-
- }
-
- this._activationKeyPressed = false;
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onClick: function(p_oEvent) {
-
- var sType = this.get("type"),
- sTitle;
-
- switch(sType) {
-
- case "radio":
- case "checkbox":
-
- if(this.get("checked")) {
-
- sTitle = (sType == "radio") ?
- this.RADIO_CHECKED_TITLE :
- this.CHECKBOX_CHECKED_TITLE;
-
- }
- else {
-
- sTitle = (sType == "radio") ?
- this.RADIO_DEFAULT_TITLE :
- this.CHECKBOX_DEFAULT_TITLE;
-
- }
-
- this.set("title", sTitle);
-
- break;
-
- case "submit":
-
- this._submitForm();
-
- break;
-
- case "reset":
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- oForm.reset();
-
- }
-
- break;
-
- case "menubutton":
-
- sTitle = this._menu.cfg.getProperty("visible") ?
- this.MENUBUTTON_MENU_VISIBLE_TITLE :
- this.MENUBUTTON_DEFAULT_TITLE;
-
- this.set("title", sTitle);
-
- break;
-
- case "splitbutton":
-
- var oElement = this.get("element"),
- nX = Event.getPageX(p_oEvent) - Dom.getX(oElement);
-
- if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) {
-
- return false;
-
- }
- else {
-
- this._hideMenu();
-
- var oSrcElement = this.get("srcelement");
-
- if(oSrcElement && oSrcElement.type == "submit") {
-
- this._submitForm();
-
- }
-
- }
-
- sTitle = this._menu.cfg.getProperty("visible") ?
- this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
- this.SPLITBUTTON_DEFAULT_TITLE;
-
- this.set("title", sTitle);
-
- break;
-
- }
-
-},
-
-
-/**
-* @method _onAppendTo
-* @description "appendTo" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onAppendTo: function(p_oEvent) {
-
- /*
- It is necessary to call "getForm" using "setTimeout" to make sure that
- the button's "form" property returns a node reference. Sometimes, if
- you try to get the reference immediately after appending the field, it
- is null.
- */
-
- var me = this;
-
- window.setTimeout(function() {
-
- var oForm = me.getForm();
-
- if(oForm) {
-
- Event.on(oForm, "reset", me._onFormReset, me, true);
- Event.on(oForm, "submit", me._onFormSubmit, me, true);
-
- }
-
- }, 0);
-
-},
-
-
-/**
-* @method _onFormSubmit
-* @description "submit" event handler for the button's form.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onFormSubmit: function(p_oEvent, p_oButton) {
-
- var sType = this.get("type"),
- oMenuItem = this.get("selectedMenuItem"),
- oForm = this.getForm();
-
-
- if(sType == "radio" || sType == "checkbox") {
-
- YAHOO.log("Creating hidden field for button: " + this);
-
- this.createHiddenField();
-
- }
- else if(oMenuItem) {
-
- var oSrcElement = this._menu.srcElement;
-
- if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") {
-
- oForm.appendChild(oSrcElement);
- oSrcElement.selectedIndex = oMenuItem.index;
-
- }
- else {
-
- var oValue = (oMenuItem.value === null || oMenuItem.value === "") ?
- oMenuItem.cfg.getProperty("text") :
- oMenuItem.value;
-
-
- if(oValue) {
-
- var oField = createInputElement(
- "hidden",
- (this.get("name") + "_options"),
- oValue
- );
-
- oForm.appendChild(oField);
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onFormReset
-* @description "reset" event handler for the button's form.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onFormReset: function(p_oEvent, p_oButton) {
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.resetValue("checked");
-
- }
-
- if(this._menu) {
-
- this.resetValue("selectedMenuItem");
-
- }
-
-},
-
-
-/**
-* @method _onDocumentMouseDown
-* @description "mousedown" event handler for the document.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentMouseDown: function(p_oEvent, p_oButton) {
-
- var oTarget = Event.getTarget(p_oEvent),
- oButtonElement = this.get("element"),
- oMenuElement = this._menu.element;
-
- if(
- oTarget != oButtonElement &&
- !Dom.isAncestor(oButtonElement, oTarget) &&
- oTarget != oMenuElement &&
- !Dom.isAncestor(oMenuElement, oTarget)
- ) {
-
- this._hideMenu();
-
- Event.removeListener(
- document,
- "mousedown",
- this._onDocumentMouseDown
- );
-
- }
-
-},
-
-
-/**
-* @method _onOption
-* @description "option" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onOption: function(p_oEvent) {
-
- if(this.hasClass("activeoption")) {
-
- this._hideMenu();
-
- this._bOptionPressed = false;
-
- }
- else {
-
- this._showMenu();
-
- this._bOptionPressed = true;
-
- }
-
-},
-
-
-/**
-* @method _onMenuShow
-* @description "show" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuShow: function(p_sType, p_aArgs, p_oButton) {
-
- Event.on(document, "mousedown", this._onDocumentMouseDown, this, true);
-
- var sTitle,
- sClass;
-
- if(this.get("type") == "splitbutton") {
-
- sTitle = this.SPLITBUTTON_OPTION_VISIBLE_TITLE;
- sClass = "activeoption";
-
- }
- else {
-
- sTitle = this.MENUBUTTON_MENU_VISIBLE_TITLE;
- sClass = "active";
-
- }
-
- this.addClass(sClass);
- this.set("title", sTitle);
-
-},
-
-
-/**
-* @method _onMenuHide
-* @description "hide" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuHide: function(p_sType, p_aArgs, p_oButton) {
-
- if(this._originalMaxHeight != -1) {
-
- this._menu.cfg.setProperty("maxheight", this._originalMaxHeight);
-
- }
-
-
- var sTitle,
- sClass;
-
- if(this.get("type") == "splitbutton") {
-
- sTitle = this.SPLITBUTTON_DEFAULT_TITLE;
- sClass = "activeoption";
-
- }
- else {
-
- sTitle = this.MENUBUTTON_DEFAULT_TITLE;
- sClass = "active";
- }
-
-
- this.removeClass(sClass);
- this.set("title", sTitle);
-
-},
-
-
-/**
-* @method _onMenuKeyDown
-* @description "keydown" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuKeyDown: function(p_sType, p_aArgs, p_oButton) {
-
- var oEvent = p_aArgs[0];
-
- if(Event.getCharCode(oEvent) == 27) {
-
- this.focus();
-
- if(this.get("type") == "splitbutton") {
-
- this._bOptionPressed = false;
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMenuRender
-* @description "render" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuRender: function(p_sType, p_aArgs, p_oButton) {
-
- this.get("element").parentNode.appendChild(this._menu.element);
-
-},
-
-
-/**
-* @method _onMenuItemSelected
-* @description "selectedchange" event handler for each item in the
-* button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem }
-* p_oItem Object representing the menu item that subscribed to the event.
-*/
-_onMenuItemSelected: function(p_sType, p_aArgs, p_oItem) {
-
- this.set("selectedMenuItem", p_oItem);
-
-},
-
-
-/**
-* @method _onMenuItemAdded
-* @description "itemadded" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem }
-* p_oItem Object representing the menu item that subscribed to the event.
-*/
-_onMenuItemAdded: function(p_sType, p_aArgs, p_oItem) {
-
- var oItem = p_aArgs[0];
-
- oItem.cfg.subscribeToConfigEvent(
- "selected",
- this._onMenuItemSelected,
- oItem,
- this
- );
-
-},
-
-
-/**
-* @method _onMenuClick
-* @description "click" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the menu's button.
-*/
-_onMenuClick: function(p_sType, p_aArgs, p_oButton) {
-
- var oItem = p_aArgs[0];
-
- if(oItem) {
-
- var oSrcElement = this.get("srcelement");
-
- if(oSrcElement && oSrcElement.type == "submit") {
-
- this._submitForm();
-
- }
-
- this._hideMenu();
-
- }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method createHiddenField
-* @description Creates the button's hidden form field and appends it to its
-* parent form.
-* @return {HTMLInputElement }
-*/
-createHiddenField: function () {
-
- if(!this.get("disabled")) {
-
- var sType = this.get("type"),
-
- bCheckable = (sType == "checkbox" || sType == "radio"),
-
- oField = createInputElement(
- (bCheckable ? this.get("type") : "hidden"),
- this.get("name"),
- this.get("value"),
- this.get("checked")
- ),
-
- oForm = this.getForm();
-
-
- if(oField && bCheckable) {
-
- oField.style.display = "none";
-
- }
-
-
- if(oForm) {
-
- oForm.appendChild(oField);
-
- }
-
-
- return oField;
-
- }
-
-},
-
-
-/**
-* @method init
-* @description The Button class's initialization method.
-* @param {String} p_oElement String specifying the id attribute of the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {HTMLInputElement |HTMLElement } p_oElement Object reference for the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button.
-*/
-init: function(p_oElement, p_oAttributes) {
-
- var sTagName = p_oAttributes.type == "link" ? "A" : "BUTTON",
- oSrcElement = p_oAttributes.srcelement;
-
-
- this._button = p_oElement.getElementsByTagName(sTagName)[0];
-
-
- YAHOO.widget.Button.superclass.init.call(
- this, p_oElement,
- p_oAttributes
- );
-
-
- m_oButtons[this.get("id")] = this;
-
-
- this.addClass(this.CSS_CLASS_NAME);
- this.addClass(this.get("type"));
-
- Event.on(this._button, "focus", this._onFocus, this, true);
- this.on("mouseover", this._onMouseOver);
- this.on("click", this._onClick);
- this.on("appendTo", this._onAppendTo);
-
- var oContainer = this.get("container"),
- oElement = this.get("element");
-
-
- if(oContainer) {
-
- if(Lang.isString(oContainer)) {
-
- var me = this;
-
- Event.onContentReady(oContainer, function() {
-
- me.appendTo(this);
-
- });
-
- }
- else {
-
- this.appendTo(oContainer);
-
- }
-
- }
- else if(
- !Dom.inDocument(oElement) &&
- oSrcElement &&
- oSrcElement.tagName.toUpperCase() == "INPUT"
- ) {
-
- var oParentNode = oSrcElement.parentNode;
-
- if(oParentNode) {
-
- this.fireEvent("beforeAppendTo", {
- type: "beforeAppendTo",
- target: oParentNode
- });
-
- oParentNode.replaceChild(oElement, oSrcElement);
-
- this.fireEvent("appendTo", {
- type: "appendTo",
- target: oParentNode
- });
-
- }
-
- }
- else if(
- Dom.inDocument(oElement) &&
- oSrcElement.tagName.toUpperCase() == "SPAN"
- ) {
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- Event.on(oForm, "reset", this._onFormReset, this, true);
- Event.on(oForm, "submit", this._onFormSubmit, this, true);
-
- }
-
- }
-
- this.fireEvent("init");
-
- this.logger.log("Initialization completed.");
-
-},
-
-
-/**
-* @method initAttributes
-* @description Initializes all of the configuration attributes used to create
-* the button.
-* @param {Object} p_oAttributes Object literal specifying a set of
-* configuration attributes used to create the button.
-*/
-initAttributes: function(p_oAttributes) {
-
- var oAttributes = p_oAttributes || {};
-
- YAHOO.widget.Button.superclass.initAttributes.call(this, oAttributes);
-
-
- /**
- * @config type
- * @description String specifying the button's type. Possible values are:
- * "button," "link," "submit," "reset," "checkbox," "radio," "menubutton,"
- * and "splitbutton."
- * @default "button"
- * @type String
- */
- this.setAttributeConfig("type", {
-
- value: (oAttributes.type || "button"),
- validator: Lang.isString,
- writeOnce: true,
- method: this._setType
-
- });
-
-
- /**
- * @config label
- * @description String specifying the button's text label or innerHTML.
- * @default null
- * @type String
- */
- this.setAttributeConfig("label", {
-
- value: oAttributes.label,
- validator: Lang.isString,
- method: this._setLabel
-
- });
-
-
- /**
- * @config value
- * @description Object specifying the value for the button.
- * @default null
- * @type Object
- */
- this.setAttributeConfig("value", {
-
- value: oAttributes.value
-
- });
-
-
- /**
- * @config name
- * @description String specifying the name for the button.
- * @default null
- * @type String
- */
- this.setAttributeConfig("name", {
-
- value: oAttributes.name,
- validator: Lang.isString
-
- });
-
-
- /**
- * @config tabindex
- * @description Number specifying the tabindex for the button.
- * @default null
- * @type Number
- */
- this.setAttributeConfig("tabindex", {
-
- value: oAttributes.tabindex,
- validator: Lang.isNumber,
- method: this._setTabIndex
-
- });
-
-
- /**
- * @config title
- * @description String specifying the title for the button.
- * @default null
- * @type String
- */
- this.configureAttribute("title", {
-
- value: oAttributes.title,
- validator: Lang.isString,
- method: this._setTitle
-
- });
-
-
- /**
- * @config disabled
- * @description Boolean indicating if the button should be disabled.
- * (Disabled buttons are dimmed and will not respond to user input
- * or fire events.)
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("disabled", {
-
- value: (oAttributes.disabled || false),
- validator: Lang.isBoolean,
- method: this._setDisabled
-
- });
-
-
- /**
- * @config href
- * @description String specifying the href for the button. Applies only to
- * buttons of type "link."
- * @type String
- */
- this.setAttributeConfig("href", {
-
- value: oAttributes.href,
- validator: Lang.isString,
- method: this._setHref
-
- });
-
-
- /**
- * @config target
- * @description String specifying the target for the button. Applies only
- * to buttons of type "link."
- * @type String
- */
- this.setAttributeConfig("target", {
-
- value: oAttributes.target,
- validator: Lang.isString,
- method: this._setTarget
-
- });
-
-
- /**
- * @config checked
- * @description Boolean indicating if the button is checked. Applies only
- * to buttons of type "radio" and "checkbox."
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("checked", {
-
- value: (oAttributes.checked || false),
- validator: Lang.isBoolean,
- method: this._setChecked
-
- });
-
-
- /**
- * @config container
- * @description HTML element reference or string specifying the id
- * attribute of the HTML element that the button's markup should be
- * rendered into.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("container", {
-
- value: oAttributes.container
-
- });
-
-
- /**
- * @config srcelement
- * @description Object reference to the HTML element (either
- * <input>
or <span>
) used to
- * create the button.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("srcelement", {
-
- value: oAttributes.srcelement,
- writeOnce: true
-
- });
-
-
- /**
- * @config menu
- * @description Object specifying the menu for the button. The value can be
- * one of the following:
- *
- * Object specifying a
- * YAHOO.widget.Menu instance.
- * String specifying the id attribute of the <div>
- * element used to create the menu.
- * String specifying the id attribute of the
- * <select>
element used to create the menu.
- * Object specifying the <div>
element used to
- * create the menu.
- * Object specifying the <select>
element used to
- * create the menu.
- * Array of object literals, each representing a set of
- * YAHOO.widget.MenuItem
- * configuration attributes.
- * Array of strings representing the text labels for each menu item in
- * the menu.
- *
- * @type HTMLElement |String|Array
- * @default null
- */
- this.setAttributeConfig("menu", {
-
- value: null,
- method: this._setMenu
-
- });
-
-
- /**
- * @config selectedMenuItem
- * @description Reference to the item in the button's menu that is
- * currently selected.
- * @type YAHOO.widget.MenuItem
- * @default null
- */
- this.setAttributeConfig("selectedMenuItem", {
-
- value: null
-
- });
-
-
- /**
- * @config onclick
- * @description Object literal representing the code to be executed when
- * the button is clicked. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("onclick", {
-
- value: oAttributes.onclick,
- method: this._setOnClick
-
- });
-
-
- /**
- * @config oninit
- * @description Object literal representing the code to be executed when
- * the button is initialized. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("oninit", {
-
- value: oAttributes.oninit,
- method: this._setOnInit
-
- });
-
-},
-
-
-/**
-* @method focus
-* @description Causes the button to receive the focus and fires the button's
-* "focus" event.
-*/
-focus: function() {
-
- if(!this.get("disabled")) {
-
- this._button.focus();
-
- }
-
-},
-
-
-/**
-* @method blur
-* @description Causes the button to lose focus and fires the button's
-* "blur" event.
-*/
-blur: function() {
-
- if(!this.get("disabled")) {
-
- this._button.blur();
-
- }
-
-},
-
-
-/**
-* @method hasFocus
-* @description Returns a boolean indicating whether or not the button has focus.
-* @return {Boolean}
-*/
-hasFocus: function() {
-
- return (m_oFocusedButton == this);
-
-},
-
-
-/**
-* @method isActive
-* @description Returns a boolean indicating whether or not the button is active.
-* @return {Boolean}
-*/
-isActive: function() {
-
- return this.hasClass("active");
-
-},
-
-
-/**
-* @method getMenu
-* @description Returns a reference to the button's menu.
-* @return {YAHOO.widget.Menu }
-*/
-getMenu: function() {
-
- return this._menu;
-
-},
-
-
-/**
-* @method getForm
-* @description Returns a reference to the button's menu.
-* @return {HTMLFormElement }
-*/
-getForm: function() {
-
- return this._button.form;
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the button's element from its parent element and
-* removes all event handlers.
-*/
-destroy: function() {
-
- this.logger.log("Destroying ...");
-
- var oElement = this.get("element"),
- oParentNode = oElement.parentNode,
- oMenu = this._menu;
-
- if(oMenu) {
-
- this.logger.log("Destroying menu.");
-
- oMenu.destroy();
-
- }
-
- this.logger.log("Removing DOM event handlers.");
-
- Event.purgeElement(oElement);
- Event.purgeElement(this._button);
- Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
- Event.removeListener(document, "keyup", this._onDocumentKeyUp);
- Event.removeListener(document, "mousedown", this._onDocumentMouseDown);
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- Event.removeListener(oForm, "reset", this._onFormReset);
-
- }
-
-
- oParentNode.removeChild(oElement);
-
- this.logger.log("Removing from document.");
-
- delete m_oButtons[this.get("id")];
-
- this.logger.log("Destroyed.");
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the button.
-* @return {String}
-*/
-toString: function() {
-
- return ("Button " + this.get("id"));
-
-}
-
-});
-
-
-/**
-* @method addHiddenFieldsToForm
-* @description Searches the specified form and adds hidden fields for instances
-* of YAHOO.widget.Button that are of type "radio," "checkbox," "menubutton,"
-* and "splitbutton."
-* @param {HTMLFormElement } p_oForm Object reference
-* for the form to search.
-*/
-YAHOO.widget.Button.addHiddenFieldsToForm = function(p_oForm) {
-
- var aButtons = Dom.getElementsByClassName("yuibutton", "*", p_oForm),
- nButtons = aButtons.length;
-
-
- if(nButtons > 0) {
-
- YAHOO.log("Form contains " + nButtons + " YUI buttons.");
-
- var oButton = null,
- sType = null,
- oMenuItem = null,
- oMenu = null;
-
- for(var i=0; iElement.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event blur
-* @description Fires when the menu item loses the input focus. Passes back a
-* single object representing the original DOM event object passed back by the
-* event utility (YAHOO.util.Event) when the event was fired. See Element.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event option
-* @description Fires when the user invokes the button's option. Passes back a
-* single object representing the original DOM event (either "mousedown" or
-* "keydown") that caused the "option" event to fire. See Element.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event init
-* @description Fires when the Button is initialized. Subscribe to this event
-* by specifying a value for the "oninit" configuration attribute. Format:
-* { fn: Function, // The handler to call
-* when the event fires. obj: Object, // An object
-* to pass back to the handler. scope: Object //
-* The object to use for the scope of the handler. }
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-(function() {
-
-// Shorthard for utilities
-
-var Dom = YAHOO.util.Dom,
- Event = YAHOO.util.Event,
- Lang = YAHOO.lang,
- Button = YAHOO.widget.Button;
-
- // Private collection of radio buttons
-
- m_oButtons = {};
-
-
-
-/**
-* The ButtonGroup class creates a set of buttons that are mutually exclusive;
-* checking one button in the set will uncheck all others in the button group.
-* @param {String} p_oElement String specifying the id attribute of the
-* <div>
element of the button group.
-* @param {HTMLDivElement } p_oElement Object
-* specifying the <div>
element of the button group.
-* @param {Object} p_oElement Object literal specifying a set of
-* configuration attributes used to create the button group.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button group.
-* @namespace YAHOO.widget
-* @class ButtonGroup
-* @constructor
-* @extends YAHOO.util.Element
-*/
-YAHOO.widget.ButtonGroup = function(p_oElement, p_oAttributes) {
-
- var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor;
-
- if(
- arguments.length == 1 &&
- !Lang.isString(p_oElement) &&
- !p_oElement.nodeName
- ) {
-
- if(!p_oElement.id) {
-
- var sId = Dom.generateId();
-
- p_oElement.id = sId;
-
- YAHOO.log(
- "No value specified for the button group's \"id\" attribute. " +
- "Setting button group id to \"" + sId + "\".",
- "warn"
- );
-
- }
-
- this.logger = new YAHOO.widget.LogWriter("ButtonGroup " + sId);
-
- this.logger.log(
- "No source HTML element. " +
- "Building the button group using the set of " +
- "configuration attributes."
- );
-
- fnSuperClass.call(this, (this._createGroupElement()), p_oElement);
-
- }
- else if(Lang.isString(p_oElement)) {
-
- var me = this;
-
- Event.onContentReady(p_oElement, function() {
-
- if(this.nodeName.toUpperCase() == me.TAG_NAME) {
-
- me.logger =
- new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement);
-
- fnSuperClass.call(me, this, p_oAttributes);
-
- }
-
- });
-
- }
- else {
-
- var sNodeName = p_oElement.nodeName;
-
- if(sNodeName && sNodeName == this.TAG_NAME) {
-
- if(!p_oElement.id) {
-
- p_oElement.id = Dom.generateId();
-
- YAHOO.log(
- "No value specified for the button group's \"id\" " +
- "attribute. Setting button group id " +
- "to \"" + p_oElement.id + "\".",
- "warn"
- );
-
- }
-
- this.logger =
- new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement.id);
-
- fnSuperClass.call(this, p_oElement, p_oAttributes);
-
- }
-
- }
-
-};
-
-
-YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, {
-
-
-// Protected properties
-
-
-/**
-* @property _buttons
-* @description Array of buttons in the button group.
-* @default null
-* @protected
-* @type Array
-*/
-_buttons: null,
-
-
-/**
-* @property _oninitAttributeValue
-* @description Object reference to the button group's current value for the
-* "oninit" configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_oninitAttributeValue: null,
-
-
-
-// Constants
-
-
-/**
-* @property TAG_NAME
-* @description The name of the tag to be used for the button group's element.
-* @default "DIV"
-* @final
-* @type String
-*/
-TAG_NAME: "DIV",
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the
-* button group's element.
-* @default "yuibuttongroup"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuibuttongroup",
-
-
-
-// Protected methods
-
-
-/**
-* @method _createGroupElement
-* @description Creates the button group's element.
-* @protected
-* @return {HTMLDivElement }
-*/
-_createGroupElement: function() {
-
- var oElement = document.createElement(this.TAG_NAME);
-
- oElement.className = this.CSS_CLASS_NAME;
-
- return oElement;
-
-},
-
-
-
-// Protected attribute setter methods
-
-
-/**
-* @method _setDisabled
-* @description Sets the value of the button groups's "disabled" attribute.
-* @protected
-* @param {Boolean} p_bDisabled Boolean indicating the value for the button
-* group's "disabled" attribute.
-*/
-_setDisabled: function(p_bDisabled) {
-
- var nButtons = this.getCount();
-
- if(nButtons > 0) {
-
- var i = nButtons - 1;
-
- do {
-
- this._buttons[i].set("disabled", p_bDisabled);
-
- }
- while(i--);
-
- }
-
-},
-
-
-/**
-* @method _setOnInit
-* @description Sets the value of the button group's "init" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "oninit" attribute.
-*/
-_setOnInit: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "init" event handler has already
- been specified.
- */
-
- if(
- this._oninitAttributeValue &&
- (this._oninitAttributeValue != p_oObject)
- ) {
-
- this.removeListener("init", this._oninitAttributeValue.fn);
-
- this._oninitAttributeValue = null;
-
- }
-
-
- if(
- !this._oninitAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._oninitAttributeValue = p_oObject;
-
- }
-
-},
-
-
-// Protected event handlers
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the button group.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onKeyDown: function(p_oEvent) {
-
- var oTarget = Event.getTarget(p_oEvent),
- nCharCode = Event.getCharCode(p_oEvent),
- sId = oTarget.parentNode.parentNode.id,
- oButton = m_oButtons[sId],
- nIndex = -1;
-
-
- if(nCharCode == 37 || nCharCode == 38) {
-
- nIndex = (oButton.index === 0) ?
- (this._buttons.length -1) : (oButton.index - 1);
-
- }
- else if(nCharCode == 39 || nCharCode == 40) {
-
- nIndex = (oButton.index === (this._buttons.length - 1)) ?
- 0 : (oButton.index + 1);
-
- }
-
-
- if(nIndex > -1) {
-
- this.check(nIndex);
- this.getButton(nIndex).focus();
-
- }
-
-},
-
-
-/**
-* @method _onAppendTo
-* @description "appendTo" event handler for the button group.
-* @protected
-* @param {Event} p_oEvent Object representing the event that was fired.
-*/
-_onAppendTo: function(p_oEvent) {
-
- var aButtons = this._buttons,
- nButtons = aButtons.length;
-
- for(var i=0; iYAHOO.widget.Button} p_oButton
-* Object representing the button that
-* fired the event.
-*/
-_onButtonCheckedChange: function(p_oEvent, p_oButton) {
-
- var bChecked = p_oEvent.newValue,
- oCheckedButton = this.get("checkedButton");
-
- if(bChecked && oCheckedButton != p_oButton) {
-
- if(oCheckedButton) {
-
- oCheckedButton.set("checked", false, true);
-
- }
-
- this.set("checkedButton", p_oButton);
- this.set("value", p_oButton.get("value"));
-
- }
- else if(oCheckedButton && !oCheckedButton.set("checked")) {
-
- oCheckedButton.set("checked", true, true);
-
- }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method init
-* @description The ButtonGroup class's initialization method.
-* @param {String} p_oElement String specifying the id attribute of the
-* <div>
element of the button group.
-* @param {HTMLDivElement } p_oElement Object
-* specifying the <div>
element of the button group.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button group.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button group.
-*/
-init: function(p_oElement, p_oAttributes) {
-
- this._buttons = [];
-
- YAHOO.widget.ButtonGroup.superclass.init.call(
- this, p_oElement,
- p_oAttributes
- );
-
-
- this.logger.log(
- "Searching for child nodes with the class name " +
- "\"yuibutton\" to add to the button group."
- );
-
- var aButtons = this.getElementsByClassName("yuibutton");
-
-
- if(aButtons.length > 0) {
-
- this.logger.log(
- "Found " + aButtons.length + " child nodes with the class " +
- "name \"yuibutton.\" Attempting to add to button group."
- );
-
- this.addButtons(aButtons);
-
- }
-
-
- this.logger.log(
- "Searching for child nodes with the type of \"radio\" to add to the " +
- " button group."
- );
-
- function isRadioButton(p_oElement) {
-
- return (p_oElement.type == "radio");
-
- }
-
- aButtons = Dom.getElementsBy(isRadioButton, "input", this.get("element"));
-
-
- if(aButtons.length > 0) {
-
- this.logger.log(
- "Found " + aButtons.length + " child nodes with the type of " +
- "\"radio.\" Attempting to add to button group."
- );
-
- this.addButtons(aButtons);
-
- }
-
- this.on("keydown", this._onKeyDown);
- this.on("appendTo", this._onAppendTo);
-
- var oContainer = this.get("container");
-
- if(oContainer) {
-
- if(Lang.isString(oContainer)) {
-
- var me = this;
-
- Event.onContentReady(oContainer, function() {
-
- me.appendTo(this);
-
- });
-
- }
- else {
-
- this.appendTo(oContainer);
-
- }
-
- }
-
-
- this.fireEvent("init");
-
- this.logger.log("Initialization completed.");
-
-},
-
-
-/**
-* @method initAttributes
-* @description Initializes all of the configuration attributes used to create
-* the button group.
-* @param {Object} p_oAttributes Object literal specifying a set of
-* configuration attributes used to create the button group.
-*/
-initAttributes: function(p_oAttributes) {
-
- var oAttributes = p_oAttributes || {};
-
- YAHOO.widget.ButtonGroup.superclass.initAttributes.call(
- this,
- oAttributes
- );
-
-
- /**
- * @config name
- * @description String specifying the name for the button group. This
- * name will be applied to each button in the button group.
- * @default null
- * @type String
- */
- this.setAttributeConfig("name", {
-
- value: oAttributes.name,
- validator: Lang.isString
-
- });
-
-
- /**
- * @config disabled
- * @description Boolean indicating if the button group should be disabled.
- * Disabling the button group will disable each button in the button group.
- * Disabled buttons are dimmed and will not respond to user input
- * or fire events.
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("disabled", {
-
- value: (oAttributes.disabled || false),
- validator: Lang.isBoolean,
- method: this._setDisabled
-
- });
-
-
- /**
- * @config value
- * @description Object specifying the value for the button group.
- * @default null
- * @type Object
- */
- this.setAttributeConfig("value", {
-
- value: oAttributes.value
-
- });
-
-
- /**
- * @config container
- * @description HTML element reference or string specifying the id
- * attribute of the HTML element that the button group's markup should be
- * rendered into.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("container", {
-
- value: oAttributes.container
-
- });
-
-
- /**
- * @config checkedButton
- * @description Reference for the button in the button group that
- * is checked.
- * @type {YAHOO.widget.Button }
- * @default null
- */
- this.setAttributeConfig("checkedButton", {
-
- value: null
-
- });
-
-
- /**
- * @config oninit
- * @description Object literal representing the code to be executed when
- * the button group is initialized. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("oninit", {
-
- value: oAttributes.oninit,
- method: this._setOnInit
-
- });
-
-},
-
-
-/**
-* @method addButton
-* @description Adds the button to the button group.
-* @param {YAHOO.widget.Button } p_oButton
-* Object reference for the
-* YAHOO.widget.Button instance to be added to the button group.
-* @param {String} p_oButton String specifying the id attribute of the
-* <input>
or <span>
element to be
-* used to create the button to be added to the button group.
-* @param {HTMLInputElement |HTMLElement } p_oButton Object reference for the
-* <input>
or <span>
element to be
-* used to create the button to be added to the button group.
-* @param {Object} p_oButton Object literal specifying a set of
-* YAHOO.widget.Button configuration
-* attributes used to configure the button to be added to the button group.
-* @return {YAHOO.widget.Button }
-*/
-addButton: function(p_oButton) {
-
- var oButton;
-
-
- if(p_oButton instanceof Button && p_oButton.get("type") == "radio") {
-
- oButton = p_oButton;
-
- }
- else if(!Lang.isString(p_oButton) && !p_oButton.nodeName) {
-
- p_oButton.type = "radio";
-
- oButton = new Button(p_oButton);
-
- }
- else {
-
- oButton = new Button(p_oButton, { type: "radio" });
-
- }
-
-
- if(oButton) {
-
- var nIndex = this._buttons.length,
- sButtonName = oButton.get("name"),
- sGroupName = this.get("name");
-
- oButton.index = nIndex;
-
- this._buttons[nIndex] = oButton;
- m_oButtons[oButton.get("id")] = oButton;
-
-
- if(sButtonName != sGroupName) {
-
- oButton.set("name", sGroupName);
-
- }
-
-
- if(this.get("disabled")) {
-
- oButton.set("disabled", true);
-
- }
-
-
- if(oButton.get("checked")) {
-
- this.set("checkedButton", oButton);
-
- }
-
-
- oButton.on("checkedChange", this._onButtonCheckedChange, oButton, this);
-
- this.logger.log("Button " + oButton.get("id") + " added.");
-
- return oButton;
-
- }
-
-},
-
-
-/**
-* @method addButtons
-* @description Adds the array of buttons to the button group.
-* @param {Array} p_aButtons Array of
-* YAHOO.widget.Button instances to be added
-* to the button group.
-* @param {Array} p_aButtons Array of strings specifying the id attribute of
-* the <input>
or <span>
elements to
-* be used to create the buttons to be added to the button group.
-* @param {Array} p_aButtons Array of object references for the
-* <input>
or <span>
elements to be
-* used to create the buttons to be added to the button group.
-* @param {Array} p_aButtons Array of object literals, each containing a set of
-* YAHOO.widget.Button configuration
-* attributes used to configure each button to be added to the button group.
-* @return {Array}
-*/
-addButtons: function(p_aButtons) {
-
- if(Lang.isArray(p_aButtons)) {
-
- var nButtons = p_aButtons.length,
- oButton,
- aButtons = [];
-
- if(nButtons > 0) {
-
- for(var i=0; i 0) {
-
- this.logger.log(aButtons.length + " buttons added.");
-
- return aButtons;
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method removeButton
-* @description Removes the button at the specified index from the button group.
-* @param {Number} p_nIndex Number specifying the index of the button to be
-* removed from the button group.
-*/
-removeButton: function(p_nIndex) {
-
- var oButton = this.getButton(p_nIndex);
-
- if(oButton) {
-
- this.logger.log("Removing button " + oButton.get("id") + ".");
-
- this._buttons.splice(p_nIndex, 1);
- delete m_oButtons[oButton.get("id")];
-
- oButton.removeListener("checkedChange", this._onButtonCheckedChange);
- oButton.destroy();
-
-
- var nButtons = this._buttons.length;
-
- if(nButtons > 0) {
-
- var i = this._buttons.length - 1;
-
- do {
-
- this._buttons[i].index = i;
-
- }
- while(i--);
-
- }
-
- this.logger.log("Button " + oButton.get("id") + " removed.");
-
- }
-
-},
-
-
-/**
-* @method getButton
-* @description Returns the button at the specified index.
-* @param {Number} p_nIndex The index of the button to retrieve from the
-* button group.
-* @return {YAHOO.widget.Button }
-*/
-getButton: function(p_nIndex) {
-
- if(Lang.isNumber(p_nIndex)) {
-
- return this._buttons[p_nIndex];
-
- }
-
-},
-
-
-/**
-* @method getButtons
-* @description Returns an array of the buttons in the button group.
-* @return {Array}
-*/
-getButtons: function() {
-
- return this._buttons;
-
-},
-
-
-/**
-* @method getCount
-* @description Returns the number of buttons in the button group.
-* @return {Number}
-*/
-getCount: function() {
-
- return this._buttons.length;
-
-},
-
-
-/**
-* @method focus
-* @description Sets focus to the button at the specified index.
-* @param {Number} p_nIndex Number indicating the index of the button to focus.
-*/
-focus: function(p_nIndex) {
-
- var oButton;
-
- if(Lang.isNumber(p_nIndex)) {
-
- oButton = this._buttons[p_nIndex];
-
- if(oButton) {
-
- oButton.focus();
-
- }
-
- }
- else {
-
- var nButtons = this.getCount();
-
- for(var i=0; i 0) {
-
- var i = this._buttons.length - 1;
-
- do {
-
- this._buttons[i].destroy();
-
- }
- while(i--);
-
- }
-
- this.logger.log("Removing DOM event handlers.");
-
- Event.purgeElement(oElement);
-
- this.logger.log("Removing from document.");
-
- oParentNode.removeChild(oElement);
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the button group.
-* @return {String}
-*/
-toString: function() {
-
- return ("ButtonGroup " + this.get("id"));
-
-}
-
-});
-
-
-
-// Events
-
-
-/**
-* @event init
-* @description Fires when the button group is initialized. Subscribe to this
-* event by specifying a value for the "oninit" configuration attribute.
-* Format: { fn: Function, // The
-* handler to call when the event fires. obj: Object,
-* // An object to pass back to the handler. scope:
-* Object // The object to use for the scope of the handler.
-* }
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-YAHOO.register("button", YAHOO.widget.Button, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/button/button-beta-min.js b/interface/ispconfig/interface/js/yui/button/button-beta-min.js
deleted file mode 100644
index 617ec785dd26d3b1e09c5420fc4303fd72f31539..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/button/button-beta-min.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-(function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event,Lang=YAHOO.lang,m_oButtons={},m_oFocusedButton=null;YAHOO.widget.Button=function(p_oElement,p_oAttributes){var fnSuperClass=YAHOO.widget.Button.superclass.constructor;if(arguments.length==1&&!Lang.isString(p_oElement)&&!p_oElement.nodeName){if(!p_oElement.id){p_oElement.id=Dom.generateId();}
-fnSuperClass.call(this,(this._createButtonElement(p_oElement.type)),p_oElement);}
-else{var oConfig={element:null,attributes:(p_oAttributes||{})};if(Lang.isString(p_oElement)){var me=this;Event.onAvailable(p_oElement,function(){var sTagName=this.tagName.toUpperCase();if(sTagName==me.TAG_NAME){oConfig.attributes.id=this.id;}
-else if(sTagName=="INPUT"&&!oConfig.attributes.id){oConfig.attributes.id=Dom.generateId();}
-oConfig.attributes.srcelement=this;initConfig.call(me,oConfig);if(!oConfig.element){oConfig.element=me._createButtonElement(oConfig.attributes.type);}
-fnSuperClass.call(me,oConfig.element,oConfig.attributes);});}
-else{var sTagName=p_oElement.tagName.toUpperCase();if(sTagName==this.TAG_NAME){if(p_oElement.id){oConfig.attributes.id=p_oElement.id;}
-else{oConfig.attributes.id=Dom.generateId();}}
-else if(sTagName=="INPUT"&&!oConfig.attributes.id){oConfig.attributes.id=Dom.generateId();}
-oConfig.attributes.srcelement=p_oElement;initConfig.call(this,oConfig);if(!oConfig.element){oConfig.element=this._createButtonElement(oConfig.attributes.type);}
-fnSuperClass.call(this,oConfig.element,oConfig.attributes);}}};function getFirstElement(p_oElement){var oFirstChild=p_oElement.firstChild;if(oFirstChild){if(oFirstChild.nodeType==1){return oFirstChild;}
-else{var oNextSibling=oFirstChild.nextSibling;if(oNextSibling&&oNextSibling.nodeType==1){return oNextSibling;}}}}
-function createInputElement(p_sType,p_sName,p_sValue,p_bChecked){var oInput;if(navigator.userAgent.indexOf("MSIE")!=-1){var sInput=" ";oInput=document.createElement(sInput);}
-else{oInput=document.createElement("input");oInput.name=p_sName;oInput.type=p_sType;if(p_bChecked){oInput.checked=true;}}
-oInput.value=p_sValue;return oInput;}
-function setAttributesFromSrcElement(p_oElement,p_oAttributes){var me=this;function setAttributeFromDOMAttribute(p_sAttribute){if(!(p_sAttribute in p_oAttributes)){var oAttribute=p_oElement.getAttributeNode(p_sAttribute);if(oAttribute&&("value"in oAttribute)){p_oAttributes[p_sAttribute]=oAttribute.value;}}}
-function setFormElementProperties(){setAttributeFromDOMAttribute("type");if(!("disabled"in p_oAttributes)){p_oAttributes.disabled=p_oElement.disabled;}
-setAttributeFromDOMAttribute("name");setAttributeFromDOMAttribute("value");setAttributeFromDOMAttribute("title");}
-var sSrcElementTagName=p_oElement.tagName.toUpperCase();if(!("label"in p_oAttributes)){var sText=sSrcElementTagName=="INPUT"?p_oElement.value:p_oElement.innerHTML;if(sText&&sText.length>0){p_oAttributes.label=sText;}}
-setAttributeFromDOMAttribute("tabindex");setAttributeFromDOMAttribute("accesskey");switch(sSrcElementTagName){case"A":p_oAttributes.type="link";setAttributeFromDOMAttribute("href");setAttributeFromDOMAttribute("target");break;case"INPUT":setFormElementProperties();if(!("checked"in p_oAttributes)){p_oAttributes.checked=p_oElement.checked;}
-break;case"BUTTON":setFormElementProperties();var oRootNode=p_oElement.parentNode.parentNode;if(Dom.hasClass(oRootNode,"checked")){p_oAttributes.checked=true;}
-if(Dom.hasClass(oRootNode,"disabled")){p_oAttributes.disabled=true;}
-p_oElement.removeAttribute("name");p_oElement.removeAttribute("value");p_oElement.setAttribute("type","button");break;}}
-function initConfig(p_oConfig){var oAttributes=p_oConfig.attributes,oSrcElement=oAttributes.srcelement,sSrcElementTagName=oSrcElement.tagName.toUpperCase();if(sSrcElementTagName==this.TAG_NAME){p_oConfig.element=oSrcElement;var oFirstChild=getFirstElement(p_oConfig.element);Dom.addClass(oFirstChild,"first-child");if(oFirstChild){var oButton=getFirstElement(oFirstChild);if(oButton){var sButtonTagName=oButton.tagName.toUpperCase();if(sButtonTagName=="A"||sButtonTagName=="BUTTON"){setAttributesFromSrcElement.call(this,oButton,oAttributes);}}}}
-else if(sSrcElementTagName=="INPUT"){setAttributesFromSrcElement.call(this,oSrcElement,oAttributes);}}
-YAHOO.extend(YAHOO.widget.Button,YAHOO.util.Element,{_button:null,_menu:null,_onclickAttributeValue:null,_oninitAttributeValue:null,_activationKeyPressed:false,_activationButtonPressed:false,_hasKeyEventHandlers:false,_hasMouseEventHandlers:false,TAG_NAME:"SPAN",CHECK_ACTIVATION_KEYS:[32],ACTIVATION_KEYS:[13,32],OPTION_AREA_WIDTH:20,CSS_CLASS_NAME:"yuibutton",RADIO_DEFAULT_TITLE:"Unchecked. Click to check.",RADIO_CHECKED_TITLE:"Checked. Click to uncheck.",CHECKBOX_DEFAULT_TITLE:"Unchecked. Click to check.",CHECKBOX_CHECKED_TITLE:"Checked. Click to uncheck.",MENUBUTTON_DEFAULT_TITLE:"Menu collapsed. Click to expand.",MENUBUTTON_MENU_VISIBLE_TITLE:"Menu expanded. Click or press Esc to collapse.",SPLITBUTTON_DEFAULT_TITLE:"Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.",SPLITBUTTON_OPTION_VISIBLE_TITLE:"Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.",SUBMIT_TITLE:"Click to submit form.",_setType:function(p_sType){if(p_sType=="splitbutton"){this.on("option",this._onOption);}},_setLabel:function(p_sLabel){this._button.innerHTML=p_sLabel;},_setTabIndex:function(p_nTabIndex){this._button.tabIndex=p_nTabIndex;},_setTitle:function(p_sTitle){if(this.get("type")!="link"){var sTitle=p_sTitle;if(!sTitle){var sType=this.get("type");switch(sType){case"radio":sTitle=this.RADIO_DEFAULT_TITLE;break;case"checkbox":sTitle=this.CHECKBOX_DEFAULT_TITLE;break;case"menubutton":sTitle=this.MENUBUTTON_DEFAULT_TITLE;break;case"splitbutton":sTitle=this.SPLITBUTTON_DEFAULT_TITLE;break;case"submit":sTitle=this.SUBMIT_TITLE;break;}}
-this._button.title=sTitle;}},_setDisabled:function(p_bDisabled){if(this.get("type")!="link"){if(p_bDisabled){if(this.hasFocus()){this.blur();}
-this._button.setAttribute("disabled","disabled");this.addClass("disabled");}
-else{this._button.removeAttribute("disabled");this.removeClass("disabled");}}},_setAccessKey:function(p_sAccessKey){this._button.accessKey=p_sAccessKey;},_setHref:function(p_sHref){if(this.get("type")=="link"){this._button.href=p_sHref;}},_setTarget:function(p_sTarget){if(this.get("type")=="link"){this._button.setAttribute("target",p_sTarget);}},_setChecked:function(p_bChecked){var sType=this.get("type"),sTitle;if(sType=="checkbox"||sType=="radio"){if(p_bChecked){this.addClass("checked");sTitle=(sType=="radio")?this.RADIO_CHECKED_TITLE:this.CHECKBOX_CHECKED_TITLE;}
-else{this.removeClass("checked");sTitle=(sType=="radio")?this.RADIO_DEFAULT_TITLE:this.CHECKBOX_DEFAULT_TITLE;}
-this.set("title",sTitle);}},_setMenu:function(p_oMenu){var Menu=YAHOO.widget.Menu,oMenu,me=this;if(!Menu){return false;}
-function initMenu(){if(oMenu){oMenu.showEvent.subscribe(this._onMenuShow,this,true);oMenu.hideEvent.subscribe(this._onMenuHide,this,true);oMenu.keyDownEvent.subscribe(this._onMenuKeyDown,this,true);oMenu.renderEvent.subscribe(this._onMenuRender,this,true);oMenu.clickEvent.subscribe(this._onMenuClick,this,true);oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded,this,true);var oSrcElement=oMenu.srcElement;if(oSrcElement&&oSrcElement.tagName.toUpperCase()=="SELECT"){oSrcElement.style.display="none";oSrcElement.parentNode.removeChild(oSrcElement);}
-this._menu=oMenu;}
-else{this._menu.destroy();this._menu=null;}}
-if(p_oMenu instanceof Menu){oMenu=p_oMenu;var aItems=oMenu.getItems(),nItems=aItems.length,oItem;if(nItems>0){var i=nItems-1;do{oItem=aItems[i];if(oItem){oItem.cfg.subscribeToConfigEvent("selected",this._onMenuItemSelected,oItem,this);}}
-while(i--);}
-initMenu.call(this);}
-else if(Lang.isArray(p_oMenu)){this.on("appendTo",function(){oMenu=new Menu(Dom.generateId(),{lazyload:true,itemdata:p_oMenu});initMenu.call(me);});}
-else if(Lang.isString(p_oMenu)){Event.onContentReady(p_oMenu,function(){oMenu=new Menu(this,{lazyload:true});initMenu.call(me);});}
-else if(p_oMenu&&p_oMenu.nodeName){oMenu=new Menu(p_oMenu,{lazyload:true});initMenu.call(this);}},_setOnClick:function(p_oObject){if(this._onclickAttributeValue&&(this._onclickAttributeValue!=p_oObject)){this.removeListener("click",this._onclickAttributeValue.fn);this._onclickAttributeValue=null;}
-if(!this._onclickAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("click",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._onclickAttributeValue=p_oObject;}},_setOnInit:function(p_oObject){if(this._oninitAttributeValue&&(this._oninitAttributeValue!=p_oObject)){this.removeListener("init",this._oninitAttributeValue.fn);this._oninitAttributeValue=null;}
-if(!this._oninitAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("init",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._oninitAttributeValue=p_oObject;}},_createButtonElement:function(p_sType){var sTagName=this.TAG_NAME,oElement=document.createElement(sTagName);oElement.innerHTML="<"+sTagName+" class=\"first-child\">"+
-(p_sType=="link"?" ":" ")+""+sTagName+">";return oElement;},_isActivationKey:function(p_nKeyCode){var sType=this.get("type"),aKeyCodes=(sType=="checkbox"||sType=="radio")?this.CHECK_ACTIVATION_KEYS:this.ACTIVATION_KEYS,nKeyCodes=aKeyCodes.length;if(nKeyCodes>0){var i=nKeyCodes-1;do{if(p_nKeyCode==aKeyCodes[i]){return true;}}
-while(i--);}},_isSplitButtonOptionKey:function(p_oEvent){return(p_oEvent.ctrlKey&&p_oEvent.shiftKey&&Event.getCharCode(p_oEvent)==77);},_originalMaxHeight:-1,_showMenu:function(){var oMenu=this._menu;if(oMenu){YAHOO.widget.MenuManager.hideVisible();oMenu.cfg.applyConfig({context:[this.get("id"),"tl","bl"],clicktohide:false,constraintoviewport:false,visible:true});oMenu.cfg.fireQueue();var nViewportHeight=Dom.getViewportHeight(),nMenuHeight=oMenu.element.offsetHeight;if((oMenu.cfg.getProperty("y")+nMenuHeight)>nViewportHeight){oMenu.align("bl","tl");var nY=oMenu.cfg.getProperty("y"),nScrollTop=(document.documentElement.scrollTop||document.body.scrollTop);if(nScrollTop>=nY){if(this._originalMaxHeight==-1){this._originalMaxHeight=oMenu.cfg.getProperty("maxheight");}
-oMenu.cfg.setProperty("maxheight",(nMenuHeight-((nScrollTop-nY)+20)));oMenu.align("bl","tl");}}
-oMenu.cfg.setProperty("constraintoviewport",true);}},_hideMenu:function(){var oMenu=this._menu;if(oMenu&&oMenu.cfg.getProperty("visible")){oMenu.hide();}},_submitForm:function(){var oForm=this.getForm();if(oForm){YAHOO.widget.Button.addHiddenFieldsToForm(oForm);this.createHiddenField();oForm.submit();}},_onMouseOver:function(p_oEvent){if(!this.get("disabled")){if(!this._hasMouseEventHandlers){this.on("mouseout",this._onMouseOut);this.on("mousedown",this._onMouseDown);this.on("mouseup",this._onMouseUp);this._hasMouseEventHandlers=true;}
-this.addClass("hover");if(this._activationButtonPressed){this.addClass("active");}
-if(this._bOptionPressed){this.addClass("activeoption");}}},_onMouseOut:function(p_oEvent){if(!this.get("disabled")){this.removeClass("hover");if(this.get("type")!="menubutton"){this.removeClass("active");}
-if(this._activationButtonPressed||this._bOptionPressed){Event.on(document,"mouseup",this._onDocumentMouseUp,this,true);}}},_onDocumentMouseUp:function(p_oEvent,p_oButton){this._activationButtonPressed=false;this._bOptionPressed=false;var sType=this.get("type");if(sType=="menubutton"||sType=="splitbutton"){this.removeClass((sType=="menubutton"?"active":"activeoption"));this._hideMenu();}
-Event.removeListener(document,"mouseup",this._onDocumentMouseUp);},_onMouseDown:function(p_oEvent){if(!this.get("disabled")){if((p_oEvent.which||p_oEvent.button)==1){if(!this.hasFocus()){this.focus();}
-var sType=this.get("type");if(sType=="splitbutton"){var oElement=this.get("element"),nX=Event.getPageX(p_oEvent)-Dom.getX(oElement);if((oElement.offsetWidth-this.OPTION_AREA_WIDTH)0){var oButton=null,sType=null,oMenuItem=null,oMenu=null;for(var i=0;i0){var i=nButtons-1;do{this._buttons[i].set("disabled",p_bDisabled);}
-while(i--);}},_setOnInit:function(p_oObject){if(this._oninitAttributeValue&&(this._oninitAttributeValue!=p_oObject)){this.removeListener("init",this._oninitAttributeValue.fn);this._oninitAttributeValue=null;}
-if(!this._oninitAttributeValue&&Lang.isObject(p_oObject)&&Lang.isFunction(p_oObject.fn)){this.on("init",p_oObject.fn,p_oObject.obj,p_oObject.scope);this._oninitAttributeValue=p_oObject;}},_onKeyDown:function(p_oEvent){var oTarget=Event.getTarget(p_oEvent),nCharCode=Event.getCharCode(p_oEvent),sId=oTarget.parentNode.parentNode.id,oButton=m_oButtons[sId],nIndex=-1;if(nCharCode==37||nCharCode==38){nIndex=(oButton.index===0)?(this._buttons.length-1):(oButton.index-1);}
-else if(nCharCode==39||nCharCode==40){nIndex=(oButton.index===(this._buttons.length-1))?0:(oButton.index+1);}
-if(nIndex>-1){this.check(nIndex);this.getButton(nIndex).focus();}},_onAppendTo:function(p_oEvent){var aButtons=this._buttons,nButtons=aButtons.length;for(var i=0;i0){this.addButtons(aButtons);}
-function isRadioButton(p_oElement){return(p_oElement.type=="radio");}
-aButtons=Dom.getElementsBy(isRadioButton,"input",this.get("element"));if(aButtons.length>0){this.addButtons(aButtons);}
-this.on("keydown",this._onKeyDown);this.on("appendTo",this._onAppendTo);var oContainer=this.get("container");if(oContainer){if(Lang.isString(oContainer)){var me=this;Event.onContentReady(oContainer,function(){me.appendTo(this);});}
-else{this.appendTo(oContainer);}}
-this.fireEvent("init");},initAttributes:function(p_oAttributes){var oAttributes=p_oAttributes||{};YAHOO.widget.ButtonGroup.superclass.initAttributes.call(this,oAttributes);this.setAttributeConfig("name",{value:oAttributes.name,validator:Lang.isString});this.setAttributeConfig("disabled",{value:(oAttributes.disabled||false),validator:Lang.isBoolean,method:this._setDisabled});this.setAttributeConfig("value",{value:oAttributes.value});this.setAttributeConfig("container",{value:oAttributes.container});this.setAttributeConfig("checkedButton",{value:null});this.setAttributeConfig("oninit",{value:oAttributes.oninit,method:this._setOnInit});},addButton:function(p_oButton){var oButton;if(p_oButton instanceof Button&&p_oButton.get("type")=="radio"){oButton=p_oButton;}
-else if(!Lang.isString(p_oButton)&&!p_oButton.nodeName){p_oButton.type="radio";oButton=new Button(p_oButton);}
-else{oButton=new Button(p_oButton,{type:"radio"});}
-if(oButton){var nIndex=this._buttons.length,sButtonName=oButton.get("name"),sGroupName=this.get("name");oButton.index=nIndex;this._buttons[nIndex]=oButton;m_oButtons[oButton.get("id")]=oButton;if(sButtonName!=sGroupName){oButton.set("name",sGroupName);}
-if(this.get("disabled")){oButton.set("disabled",true);}
-if(oButton.get("checked")){this.set("checkedButton",oButton);}
-oButton.on("checkedChange",this._onButtonCheckedChange,oButton,this);return oButton;}},addButtons:function(p_aButtons){if(Lang.isArray(p_aButtons)){var nButtons=p_aButtons.length,oButton,aButtons=[];if(nButtons>0){for(var i=0;i0){return aButtons;}}}},removeButton:function(p_nIndex){var oButton=this.getButton(p_nIndex);if(oButton){this._buttons.splice(p_nIndex,1);delete m_oButtons[oButton.get("id")];oButton.removeListener("checkedChange",this._onButtonCheckedChange);oButton.destroy();var nButtons=this._buttons.length;if(nButtons>0){var i=this._buttons.length-1;do{this._buttons[i].index=i;}
-while(i--);}}},getButton:function(p_nIndex){if(Lang.isNumber(p_nIndex)){return this._buttons[p_nIndex];}},getButtons:function(){return this._buttons;},getCount:function(){return this._buttons.length;},focus:function(p_nIndex){var oButton;if(Lang.isNumber(p_nIndex)){oButton=this._buttons[p_nIndex];if(oButton){oButton.focus();}}
-else{var nButtons=this.getCount();for(var i=0;i0){var i=this._buttons.length-1;do{this._buttons[i].destroy();}
-while(i--);}
-Event.purgeElement(oElement);oParentNode.removeChild(oElement);},toString:function(){return("ButtonGroup "+this.get("id"));}});})();YAHOO.register("button",YAHOO.widget.Button,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/button/button-beta.js b/interface/ispconfig/interface/js/yui/button/button-beta.js
deleted file mode 100644
index a102330d470cb2749f18bfc3e0a8de3eac06b3d1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/button/button-beta.js
+++ /dev/null
@@ -1,3949 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* @module button
-* @description The Button Control enables the creation of rich, graphical
-* buttons that function like traditional HTML form buttons. Unlike
-* tradition HTML form buttons, buttons created with the Button Control can have
-* a label that is different from its value. With the inclusion of the optional
-* Menu Control , the Button Control can also be
-* used to create menu buttons and split buttons, controls that are not
-* available natively in HTML. The Button Control can also be thought of as a
-* way to create more visually engaging implementations of the browser's
-* default radio-button and check-box controls.
-* The Button Control supports the following types:
-*
-* button
-* Basic push button that can execute a user-specified command when
-* pressed.
-* link
-* Navigates to a specified url when pressed.
-* submit
-* Submits the parent form when pressed.
-* reset
-* Resets the parent form when pressed.
-* checkbox
-* Maintains a "checked" state that can be toggled on and off.
-* radio
-* Maintains a "checked" state that can be toggled on and off. Use with
-* the ButtonGroup class to create a set of controls that are mutually
-* exclusive; checking one button in the set will uncheck all others in
-* the group.
-* menubutton
-* When pressed will show/hide a menu.
-* splitbutton
-* Can execute a user-specified command or display a menu when pressed.
-*
-* @title Button
-* @namespace YAHOO.widget
-* @requires yahoo, dom, element, event
-* @optional container, menu
-* @beta
-*/
-
-
-(function() {
-
-// Shorthard for utilities
-
-var Dom = YAHOO.util.Dom,
- Event = YAHOO.util.Event,
- Lang = YAHOO.lang,
-
-
- // Private member variables
-
- m_oButtons = {},
- m_oFocusedButton = null;
-
-
-
-// Constructor
-
-
-/**
-* The Button class creates a rich, graphical button.
-* @param {String} p_oElement String specifying the id attribute of the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {HTMLInputElement |HTMLElement } p_oElement Object reference for the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button.
-* @namespace YAHOO.widget
-* @class Button
-* @constructor
-* @extends YAHOO.util.Element
-*/
-YAHOO.widget.Button = function(p_oElement, p_oAttributes) {
-
- var fnSuperClass = YAHOO.widget.Button.superclass.constructor;
-
- if(
- arguments.length == 1 &&
- !Lang.isString(p_oElement) &&
- !p_oElement.nodeName
- ) {
-
- if(!p_oElement.id) {
-
- p_oElement.id = Dom.generateId();
-
-
- }
-
-
-
- fnSuperClass.call(
- this,
- (this._createButtonElement(p_oElement.type)),
- p_oElement
- );
-
- }
- else {
-
- var oConfig = {
-
- element: null,
- attributes: (p_oAttributes || {})
-
- };
-
-
- if(Lang.isString(p_oElement)) {
-
- var me = this;
-
- Event.onAvailable(p_oElement, function() {
-
- var sTagName = this.tagName.toUpperCase();
-
- if(sTagName == me.TAG_NAME) {
-
- oConfig.attributes.id = this.id;
-
- }
- else if(sTagName == "INPUT" && !oConfig.attributes.id) {
-
- oConfig.attributes.id = Dom.generateId();
-
-
- }
-
-
-
-
- oConfig.attributes.srcelement = this;
-
- initConfig.call(me, oConfig);
-
-
- if(!oConfig.element) {
-
-
- oConfig.element =
- me._createButtonElement(oConfig.attributes.type);
-
- }
-
- fnSuperClass.call(me, oConfig.element, oConfig.attributes);
-
- });
-
- }
- else {
-
- var sTagName = p_oElement.tagName.toUpperCase();
-
- if(sTagName == this.TAG_NAME) {
-
- if(p_oElement.id) {
-
- oConfig.attributes.id = p_oElement.id;
-
- }
- else {
-
- oConfig.attributes.id = Dom.generateId();
-
-
- }
-
-
- }
- else if(sTagName == "INPUT" && !oConfig.attributes.id) {
-
- oConfig.attributes.id = Dom.generateId();
-
-
- }
-
-
-
-
- oConfig.attributes.srcelement = p_oElement;
-
- initConfig.call(this, oConfig);
-
-
- if(!oConfig.element) {
-
-
- oConfig.element =
- this._createButtonElement(oConfig.attributes.type);
-
- }
-
- fnSuperClass.call(this, oConfig.element, oConfig.attributes);
-
- }
-
- }
-
-};
-
-
-
-// Private methods
-
-
-/**
-* @method getFirstElement
-* @description Returns an HTML element's first HTML element node.
-* @private
-* @param {HTMLElement } p_oElement Object
-* reference specifying the element to be evaluated.
-* @return {HTMLElement }
-*/
-function getFirstElement(p_oElement) {
-
- var oFirstChild = p_oElement.firstChild;
-
- if(oFirstChild) {
-
- if(oFirstChild.nodeType == 1) {
-
- return oFirstChild;
-
- }
- else {
-
- var oNextSibling = oFirstChild.nextSibling;
-
- if(oNextSibling && oNextSibling.nodeType == 1) {
-
- return oNextSibling;
-
- }
-
- }
-
- }
-
-}
-
-
-/**
-* @method createInputElement
-* @description Creates an <input>
element of the
-* specified type.
-* @private
-* @param {String} p_sType String specifying the type of
-* <input>
element to create.
-* @param {String} p_sName String specifying the name of
-* <input>
element to create.
-* @param {String} p_sValue String specifying the value of
-* <input>
element to create.
-* @param {String} p_bChecked Boolean specifying if the
-* <input>
element is to be checked.
-* @return {HTMLInputElement }
-*/
-function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) {
-
- var oInput;
-
- if(navigator.userAgent.indexOf("MSIE") != -1) {
-
- /*
- For IE it is necessary to create the element with the
- "type," "name," "value," and "checked" properties set all at once.
- */
-
- var sInput = " ";
-
- oInput = document.createElement(sInput);
-
- }
- else {
-
- oInput = document.createElement("input");
- oInput.name = p_sName;
- oInput.type = p_sType;
-
- if(p_bChecked) {
-
- oInput.checked = true;
-
- }
-
- }
-
- oInput.value = p_sValue;
-
- return oInput;
-
-}
-
-
-/**
-* @method setAttributesFromSrcElement
-* @description Gets the values for all the attributes of the source element
-* (either <input>
or <a>
) that map to
-* Button configuration attributes and sets them into a collection that is
-* passed to the Button constructor.
-* @private
-* @param {HTMLInputElement |HTMLAnchorElement } p_oElement Object reference to the HTML
-* element (either <input>
or <span>
)
-* used to create the button.
-* @param {Object} p_oAttributes Object reference for the collection of
-* configuration attributes used to create the button.
-*/
-function setAttributesFromSrcElement(p_oElement, p_oAttributes) {
-
- var me = this;
-
- /**
- * @method setAttributeFromDOMAttribute
- * @description Gets the value of the specified DOM attribute and sets it
- * into the collection of configuration attributes used to configure
- * the button.
- * @private
- * @param {String} p_sAttribute String representing the name of the
- * attribute to retrieve from the DOM element.
- */
- function setAttributeFromDOMAttribute(p_sAttribute) {
-
- if( !(p_sAttribute in p_oAttributes) ) {
-
- /*
- Need to use "getAttributeNode" instead of "getAttribute"
- because using "getAttribute," IE will return the innerText of
- a <button>
for the value attribute rather
- than the value of the "value" attribute.
- */
-
- var oAttribute = p_oElement.getAttributeNode(p_sAttribute);
-
-
- if(oAttribute && ("value" in oAttribute)) {
-
-
- p_oAttributes[p_sAttribute] = oAttribute.value;
-
- }
-
- }
-
- }
-
-
- /**
- * @method setFormElementProperties
- * @description Gets the value of the attributes from the form element and
- * sets them into the collection of configuration attributes used to
- * configure the button.
- * @private
- */
- function setFormElementProperties() {
-
- setAttributeFromDOMAttribute("type");
-
- if( !("disabled" in p_oAttributes) ) {
-
- p_oAttributes.disabled = p_oElement.disabled;
-
- }
-
- setAttributeFromDOMAttribute("name");
- setAttributeFromDOMAttribute("value");
- setAttributeFromDOMAttribute("title");
-
- }
-
-
- var sSrcElementTagName = p_oElement.tagName.toUpperCase();
-
-
- if( !("label" in p_oAttributes) ) {
-
- // Set the "label" property
-
- var sText = sSrcElementTagName == "INPUT" ?
- p_oElement.value : p_oElement.innerHTML;
-
-
- if(sText && sText.length > 0) {
-
- p_oAttributes.label = sText;
-
- }
-
- }
-
-
- setAttributeFromDOMAttribute("tabindex");
- setAttributeFromDOMAttribute("accesskey");
-
-
- switch(sSrcElementTagName) {
-
- case "A":
-
- p_oAttributes.type = "link";
-
- setAttributeFromDOMAttribute("href");
- setAttributeFromDOMAttribute("target");
-
- break;
-
- case "INPUT":
-
- setFormElementProperties();
-
- if( !("checked" in p_oAttributes) ) {
-
- p_oAttributes.checked = p_oElement.checked;
-
- }
-
- break;
-
- case "BUTTON":
-
- setFormElementProperties();
-
- var oRootNode = p_oElement.parentNode.parentNode;
-
- if(Dom.hasClass(oRootNode, "checked")) {
-
- p_oAttributes.checked = true;
-
- }
-
- if(Dom.hasClass(oRootNode, "disabled")) {
-
- p_oAttributes.disabled = true;
-
- }
-
- p_oElement.removeAttribute("name");
- p_oElement.removeAttribute("value");
-
- p_oElement.setAttribute("type", "button");
-
- break;
-
- }
-
-}
-
-
-/**
-* @method initConfig
-* @description Initializes the set of configuration attributes that are used to
-* instantiate the button.
-* @private
-* @param {Object} Object representing the button's set of
-* configuration attributes.
-*/
-function initConfig(p_oConfig) {
-
- var oAttributes = p_oConfig.attributes,
- oSrcElement = oAttributes.srcelement,
- sSrcElementTagName = oSrcElement.tagName.toUpperCase();
-
-
- if(sSrcElementTagName == this.TAG_NAME) {
-
- p_oConfig.element = oSrcElement;
-
- var oFirstChild = getFirstElement(p_oConfig.element);
-
- Dom.addClass(oFirstChild, "first-child");
-
- if(oFirstChild) {
-
- var oButton = getFirstElement(oFirstChild);
-
-
- if(oButton) {
-
- var sButtonTagName = oButton.tagName.toUpperCase();
-
-
- if(sButtonTagName == "A" || sButtonTagName == "BUTTON") {
-
- setAttributesFromSrcElement.call(
- this,
- oButton,
- oAttributes
- );
-
- }
-
- }
-
- }
-
- }
- else if(sSrcElementTagName == "INPUT") {
-
- setAttributesFromSrcElement.call(this, oSrcElement, oAttributes);
-
- }
-
-}
-
-
-YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, {
-
-
-// Protected properties
-
-
-/**
-* @property _button
-* @description Object reference to the button's internal
-* <a>
or <button>
element.
-* @default null
-* @protected
-* @type HTMLAnchorElement |HTMLButtonElement
-*/
-_button: null,
-
-
-/**
-* @property _menu
-* @description Object reference to the button's menu.
-* @default null
-* @protected
-* @type YAHOO.widget.Menu
-*/
-_menu: null,
-
-
-/**
-* @property _onclickAttributeValue
-* @description Object reference to the button's current value for the "onclick"
-* configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_onclickAttributeValue: null,
-
-
-/**
-* @property _oninitAttributeValue
-* @description Object reference to the button's current value for the "oninit"
-* configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_oninitAttributeValue: null,
-
-
-/**
-* @property _activationKeyPressed
-* @description Boolean indicating if the key(s) that toggle the button's
-* "active" state have been pressed.
-* @default false
-* @protected
-* @type Boolean
-*/
-_activationKeyPressed: false,
-
-
-/**
-* @property _activationButtonPressed
-* @description Boolean indicating if the mouse button that toggles the button's
-* "active" state has been pressed.
-* @default false
-* @protected
-* @type Boolean
-*/
-_activationButtonPressed: false,
-
-
-/**
-* @property _hasKeyEventHandlers
-* @description Boolean indicating if the button's "blur", "keydown" and
-* "keyup" event handlers are assigned
-* @default false
-* @protected
-* @type Boolean
-*/
-_hasKeyEventHandlers: false,
-
-
-/**
-* @property _hasMouseEventHandlers
-* @description Boolean indicating if the button's "mouseout" and "mousedown"
-* and "mouseup" event handlers are assigned
-* @default false
-* @protected
-* @type Boolean
-*/
-_hasMouseEventHandlers: false,
-
-
-
-// Constants
-
-
-/**
-* @property TAG_NAME
-* @description The name of the tag to be used for the button's root element.
-* @default "SPAN"
-* @final
-* @type String
-*/
-TAG_NAME: "SPAN",
-
-
-/**
-* @property CHECK_ACTIVATION_KEYS
-* @description Array of numbers representing keys that (when pressed) toggle
-* the button's "checked" attribute.
-* @default [32]
-* @final
-* @type Array
-*/
-CHECK_ACTIVATION_KEYS: [32],
-
-
-/**
-* @property ACTIVATION_KEYS
-* @description Array of numbers representing keys that (when presed) toggle
-* the button's "active" state.
-* @default [13, 32]
-* @final
-* @type Array
-*/
-ACTIVATION_KEYS: [13, 32],
-
-
-/**
-* @property OPTION_AREA_WIDTH
-* @description Width (in pixels) of the area of a split button that when
-* pressed will display a menu.
-* @default 20
-* @final
-* @type Number
-*/
-OPTION_AREA_WIDTH: 20,
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the
-* button's root element.
-* @default "yuibutton"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuibutton",
-
-
-/**
-* @property RADIO_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "radio."
-* @default "Unchecked. Click to check."
-* @final
-* @type String
-*/
-RADIO_DEFAULT_TITLE: "Unchecked. Click to check.",
-
-
-/**
-* @property RADIO_CHECKED_TITLE
-* @description String representing the title applied to buttons of type "radio"
-* when checked.
-* @default "Checked. Click to uncheck."
-* @final
-* @type String
-*/
-RADIO_CHECKED_TITLE: "Checked. Click to uncheck.",
-
-
-/**
-* @property CHECKBOX_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "checkbox."
-* @default "Unchecked. Click to check."
-* @final
-* @type String
-*/
-CHECKBOX_DEFAULT_TITLE: "Unchecked. Click to check.",
-
-
-/**
-* @property CHECKBOX_CHECKED_TITLE
-* @description String representing the title applied to buttons of type
-* "checkbox" when checked.
-* @default "Checked. Click to uncheck."
-* @final
-* @type String
-*/
-CHECKBOX_CHECKED_TITLE: "Checked. Click to uncheck.",
-
-
-/**
-* @property MENUBUTTON_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "menubutton."
-* @default "Menu collapsed. Click to expand."
-* @final
-* @type String
-*/
-MENUBUTTON_DEFAULT_TITLE: "Menu collapsed. Click to expand.",
-
-
-/**
-* @property MENUBUTTON_MENU_VISIBLE_TITLE
-* @description String representing the title applied to buttons of type
-* "menubutton" when the button's menu is visible.
-* @default "Menu expanded. Click or press Esc to collapse."
-* @final
-* @type String
-*/
-MENUBUTTON_MENU_VISIBLE_TITLE:
- "Menu expanded. Click or press Esc to collapse.",
-
-
-/**
-* @property SPLITBUTTON_DEFAULT_TITLE
-* @description String representing the default title applied to buttons of
-* type "splitebutton."
-* @default "Menu collapsed. Click inside option region or press
-* Ctrl + Shift + M to show the menu."
-* @final
-* @type String
-*/
-SPLITBUTTON_DEFAULT_TITLE:
- "Menu collapsed. Click inside option region or press Ctrl + Shift + M to show the menu.",
-
-
-/**
-* @property SPLITBUTTON_OPTION_VISIBLE_TITLE
-* @description String representing the title applied to buttons of type
-* "splitbutton" when the button's menu is visible.
-* @default "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu."
-* @final
-* @type String
-*/
-SPLITBUTTON_OPTION_VISIBLE_TITLE:
- "Menu expanded. Press Esc or Ctrl + Shift + M to hide the menu.",
-
-
-/**
-* @property SUBMIT_TITLE
-* @description String representing the title applied to buttons of
-* type "submit."
-* @default "Click to submit form."
-* @final
-* @type String
-*/
-SUBMIT_TITLE: "Click to submit form.",
-
-
-
-// Protected attribute setter methods
-
-
-/**
-* @method _setType
-* @description Sets the value of the button's "type" attribute.
-* @protected
-* @param {String} p_sType String indicating the value for the button's
-* "type" attribute.
-*/
-_setType: function(p_sType) {
-
- if(p_sType == "splitbutton") {
-
- this.on("option", this._onOption);
-
- }
-
-},
-
-
-/**
-* @method _setLabel
-* @description Sets the value of the button's "label" attribute.
-* @protected
-* @param {String} p_sLabel String indicating the value for the button's
-* "label" attribute.
-*/
-_setLabel: function(p_sLabel) {
-
- this._button.innerHTML = p_sLabel;
-
-},
-
-
-/**
-* @method _setTabIndex
-* @description Sets the value of the button's "tabindex" attribute.
-* @protected
-* @param {Number} p_nTabIndex Number indicating the value for the button's
-* "tabindex" attribute.
-*/
-_setTabIndex: function(p_nTabIndex) {
-
- this._button.tabIndex = p_nTabIndex;
-
-},
-
-
-/**
-* @method _setTitle
-* @description Sets the value of the button's "title" attribute.
-* @protected
-* @param {String} p_nTabIndex Number indicating the value for the button's
-* "title" attribute.
-*/
-_setTitle: function(p_sTitle) {
-
- if(this.get("type") != "link") {
-
- var sTitle = p_sTitle;
-
- if(!sTitle) {
-
-
- var sType = this.get("type");
-
- switch(sType) {
-
- case "radio":
-
- sTitle = this.RADIO_DEFAULT_TITLE;
-
- break;
-
- case "checkbox":
-
- sTitle = this.CHECKBOX_DEFAULT_TITLE;
-
- break;
-
- case "menubutton":
-
- sTitle = this.MENUBUTTON_DEFAULT_TITLE;
-
- break;
-
- case "splitbutton":
-
- sTitle = this.SPLITBUTTON_DEFAULT_TITLE;
-
- break;
-
- case "submit":
-
- sTitle = this.SUBMIT_TITLE;
-
- break;
-
- }
-
- }
-
- this._button.title = sTitle;
-
- }
-
-},
-
-
-/**
-* @method _setDisabled
-* @description Sets the value of the button's "disabled" attribute.
-* @protected
-* @param {Boolean} p_bDisabled Boolean indicating the value for the button's
-* "disabled" attribute.
-*/
-_setDisabled: function(p_bDisabled) {
-
- if(this.get("type") != "link") {
-
- if(p_bDisabled) {
-
- if(this.hasFocus()) {
-
- this.blur();
-
- }
-
- this._button.setAttribute("disabled", "disabled");
-
- this.addClass("disabled");
-
- }
- else {
-
- this._button.removeAttribute("disabled");
-
- this.removeClass("disabled");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _setAccessKey
-* @description Sets the value of the button's "accesskey" attribute.
-* @protected
-* @param {String} p_sAccessKey String indicating the value for the button's
-* "accesskey" attribute.
-*/
-_setAccessKey: function(p_sAccessKey) {
-
- this._button.accessKey = p_sAccessKey;
-
-},
-
-
-/**
-* @method _setHref
-* @description Sets the value of the button's "href" attribute.
-* @protected
-* @param {String} p_sHref String indicating the value for the button's
-* "href" attribute.
-*/
-_setHref: function(p_sHref) {
-
- if(this.get("type") == "link") {
-
- this._button.href = p_sHref;
-
- }
-
-},
-
-
-/**
-* @method _setTarget
-* @description Sets the value of the button's "target" attribute.
-* @protected
-* @param {String} p_sTarget String indicating the value for the button's
-* "target" attribute.
-*/
-_setTarget: function(p_sTarget) {
-
- if(this.get("type") == "link") {
-
- this._button.setAttribute("target", p_sTarget);
-
- }
-
-},
-
-
-/**
-* @method _setChecked
-* @description Sets the value of the button's "target" attribute.
-* @protected
-* @param {Boolean} p_bChecked Boolean indicating the value for the button's
-* "checked" attribute.
-*/
-_setChecked: function(p_bChecked) {
-
- var sType = this.get("type"),
- sTitle;
-
- if(sType == "checkbox" || sType == "radio") {
-
- if(p_bChecked) {
-
- this.addClass("checked");
-
- sTitle = (sType == "radio") ?
- this.RADIO_CHECKED_TITLE :
- this.CHECKBOX_CHECKED_TITLE;
-
- }
- else {
-
- this.removeClass("checked");
-
- sTitle = (sType == "radio") ?
- this.RADIO_DEFAULT_TITLE :
- this.CHECKBOX_DEFAULT_TITLE;
-
- }
-
- this.set("title", sTitle);
-
- }
-
-},
-
-
-/**
-* @method _setMenu
-* @description Sets the value of the button's "menu" attribute.
-* @protected
-* @param {Object} p_oMenu Object indicating the value for the button's
-* "menu" attribute.
-*/
-_setMenu: function(p_oMenu) {
-
- var Menu = YAHOO.widget.Menu,
- oMenu,
- me = this;
-
- if(!Menu) {
-
-
- return false;
-
- }
-
-
- function initMenu() {
-
- if(oMenu) {
-
- oMenu.showEvent.subscribe(this._onMenuShow, this, true);
- oMenu.hideEvent.subscribe(this._onMenuHide, this, true);
- oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
- oMenu.renderEvent.subscribe(this._onMenuRender, this, true);
- oMenu.clickEvent.subscribe(this._onMenuClick, this, true);
- oMenu.itemAddedEvent.subscribe(this._onMenuItemAdded, this, true);
-
- var oSrcElement = oMenu.srcElement;
-
- if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") {
-
- oSrcElement.style.display = "none";
- oSrcElement.parentNode.removeChild(oSrcElement);
-
- }
-
- this._menu = oMenu;
-
- }
- else {
-
- this._menu.destroy();
- this._menu = null;
-
- }
-
- }
-
-
- if(p_oMenu instanceof Menu) {
-
- oMenu = p_oMenu;
-
- var aItems = oMenu.getItems(),
- nItems = aItems.length,
- oItem;
-
- if(nItems > 0) {
-
- var i = nItems - 1;
-
- do {
-
- oItem = aItems[i];
-
- if(oItem) {
-
- oItem.cfg.subscribeToConfigEvent(
- "selected",
- this._onMenuItemSelected,
- oItem,
- this
- );
-
- }
-
- }
- while(i--);
-
- }
-
- initMenu.call(this);
-
- }
- else if(Lang.isArray(p_oMenu)) {
-
- this.on("appendTo", function() {
-
- oMenu = new Menu(
- Dom.generateId(),
- { lazyload: true, itemdata: p_oMenu }
- );
-
- initMenu.call(me);
-
- });
-
- }
- else if(Lang.isString(p_oMenu)) {
-
- Event.onContentReady(p_oMenu, function() {
-
- oMenu = new Menu(this, { lazyload: true });
-
- initMenu.call(me);
-
- });
-
- }
- else if(p_oMenu && p_oMenu.nodeName) {
-
- oMenu = new Menu(p_oMenu, { lazyload: true });
-
- initMenu.call(this);
-
- }
-
-},
-
-
-/**
-* @method _setOnClick
-* @description Sets the value of the button's "onclick" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "onclick" attribute.
-*/
-_setOnClick: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "click" event handler has already
- been specified.
- */
-
- if(
- this._onclickAttributeValue &&
- (this._onclickAttributeValue != p_oObject)
- ) {
-
- this.removeListener("click", this._onclickAttributeValue.fn);
-
- this._onclickAttributeValue = null;
-
- }
-
-
- if(
- !this._onclickAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._onclickAttributeValue = p_oObject;
-
- }
-
-},
-
-/**
-* @method _setOnInit
-* @description Sets the value of the button's "init" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "oninit" attribute.
-*/
-_setOnInit: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "init" event handler has already
- been specified.
- */
-
- if(
- this._oninitAttributeValue &&
- (this._oninitAttributeValue != p_oObject)
- ) {
-
- this.removeListener("init", this._oninitAttributeValue.fn);
-
- this._oninitAttributeValue = null;
-
- }
-
-
- if(
- !this._oninitAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._oninitAttributeValue = p_oObject;
-
- }
-
-},
-
-
-
-// Protected methods
-
-
-/**
-* @method _createButtonElement
-* @description Creates the button's element.
-* @protected
-* @param {String} p_sType String indicating the type of element to create.
-* @return {HTMLElement }
-*/
-_createButtonElement: function(p_sType) {
-
- var sTagName = this.TAG_NAME,
- oElement = document.createElement(sTagName);
-
- oElement.innerHTML =
-
- "<" + sTagName + " class=\"first-child\">" +
- (p_sType == "link" ? " " : " ") +
- "" + sTagName + ">";
-
- return oElement;
-
-},
-
-
-/**
-* @method _isActivationKey
-* @description Determines if the specified keycode is one that toggles the
-* button's "active" state.
-* @protected
-* @param {Number} p_nKeyCode Number representing the keycode to be evaluated.
-* @return {Boolean}
-*/
-_isActivationKey: function(p_nKeyCode) {
-
- var sType = this.get("type"),
- aKeyCodes = (sType == "checkbox" || sType == "radio") ?
- this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS,
-
- nKeyCodes = aKeyCodes.length;
-
- if(nKeyCodes > 0) {
-
- var i = nKeyCodes - 1;
-
- do {
-
- if(p_nKeyCode == aKeyCodes[i]) {
-
- return true;
-
- }
-
- }
- while(i--);
-
- }
-
-},
-
-
-/**
-* @method _isSplitButtonOptionKey
-* @description Determines if the specified keycode is one that toggles the
-* display of the split button's menu.
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @return {Boolean}
-*/
-_isSplitButtonOptionKey: function(p_oEvent) {
-
- return (
- p_oEvent.ctrlKey &&
- p_oEvent.shiftKey &&
- Event.getCharCode(p_oEvent) == 77
- );
-
-},
-
-
-_originalMaxHeight: -1,
-
-
-/**
-* @method _showMenu
-* @description Shows the button's menu.
-* @protected
-*/
-_showMenu: function() {
-
- var oMenu = this._menu;
-
- if(oMenu) {
-
- YAHOO.widget.MenuManager.hideVisible();
-
- oMenu.cfg.applyConfig({
- context:[this.get("id"), "tl", "bl"],
- clicktohide: false,
- constraintoviewport: false,
- visible: true
- });
-
- oMenu.cfg.fireQueue();
-
- var nViewportHeight = Dom.getViewportHeight(),
- nMenuHeight = oMenu.element.offsetHeight;
-
-
- if((oMenu.cfg.getProperty("y") + nMenuHeight) > nViewportHeight) {
-
-
- oMenu.align("bl", "tl");
-
- var nY = oMenu.cfg.getProperty("y"),
-
- nScrollTop = (
- document.documentElement.scrollTop ||
- document.body.scrollTop
- );
-
-
- if(nScrollTop >= nY) {
-
- if(this._originalMaxHeight == -1) {
-
- this._originalMaxHeight =
- oMenu.cfg.getProperty("maxheight");
-
- }
-
- oMenu.cfg.setProperty(
- "maxheight",
- (nMenuHeight - ((nScrollTop - nY) + 20))
- );
-
- oMenu.align("bl", "tl");
-
- }
-
- }
-
- oMenu.cfg.setProperty("constraintoviewport", true);
-
- }
-
-},
-
-
-/**
-* @method _hideMenu
-* @description Hides the button's menu.
-* @protected
-*/
-_hideMenu: function() {
-
- var oMenu = this._menu;
-
- if(oMenu && oMenu.cfg.getProperty("visible")) {
-
- oMenu.hide();
-
- }
-
-},
-
-
-/**
-* @method _submitForm
-* @description Submits the form to which the button belongs.
-* @protected
-*/
-_submitForm: function() {
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- YAHOO.widget.Button.addHiddenFieldsToForm(oForm);
-
- this.createHiddenField();
-
- oForm.submit();
-
- }
-
-},
-
-
-
-// Protected event handlers
-
-
-/**
-* @method _onMouseOver
-* @description "mouseover" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseOver: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- if(!this._hasMouseEventHandlers) {
-
- this.on("mouseout", this._onMouseOut);
- this.on("mousedown", this._onMouseDown);
- this.on("mouseup", this._onMouseUp);
-
- this._hasMouseEventHandlers = true;
-
- }
-
- this.addClass("hover");
-
- if(this._activationButtonPressed) {
-
- this.addClass("active");
-
- }
-
-
- if(this._bOptionPressed) {
-
- this.addClass("activeoption");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMouseOut
-* @description "mouseout" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseOut: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- this.removeClass("hover");
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- if(this._activationButtonPressed || this._bOptionPressed) {
-
- Event.on(document, "mouseup", this._onDocumentMouseUp, this, true);
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onDocumentMouseUp
-* @description "mouseup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentMouseUp: function(p_oEvent, p_oButton) {
-
- this._activationButtonPressed = false;
- this._bOptionPressed = false;
-
- var sType = this.get("type");
-
- if(sType == "menubutton" || sType == "splitbutton") {
-
- this.removeClass((sType == "menubutton" ? "active" : "activeoption"));
-
- this._hideMenu();
-
- }
-
- Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
-
-},
-
-
-/**
-* @method _onMouseDown
-* @description "mousedown" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseDown: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
- if((p_oEvent.which || p_oEvent.button) == 1) {
-
- if(!this.hasFocus()) {
-
- this.focus();
-
- }
-
-
- var sType = this.get("type");
-
-
- if(sType == "splitbutton") {
-
- var oElement = this.get("element"),
- nX = Event.getPageX(p_oEvent) - Dom.getX(oElement);
-
- if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) {
-
- this.fireEvent("option", p_oEvent);
-
- }
- else {
-
- this.addClass("active");
-
- this._activationButtonPressed = true;
-
- }
-
- }
- else if(sType == "menubutton") {
-
- if(this.hasClass("active")) {
-
- this._hideMenu();
-
- this._activationButtonPressed = false;
-
- }
- else {
-
- this._showMenu();
-
- this._activationButtonPressed = true;
-
- }
-
- }
- else {
-
- this.addClass("active");
-
- this._activationButtonPressed = true;
-
- }
-
-
-
- if(sType == "splitbutton" || sType == "menubutton") {
-
- var me = this;
-
-
- function onMouseUp() {
-
- me._hideMenu();
- me.removeListener("mouseup", onMouseUp);
-
- }
-
-
- this._hideMenuTimerId = window.setTimeout(function() {
-
- me.on("mouseup", onMouseUp);
-
- }, 250);
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMouseUp
-* @description "mouseup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onMouseUp: function(p_oEvent) {
-
- if(!this.get("disabled")) {
-
-
- if(this._hideMenuTimerId) {
-
- window.clearTimeout(this._hideMenuTimerId);
-
- }
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.set("checked", !(this.get("checked")));
-
- }
-
-
- this._activationButtonPressed = false;
-
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onFocus
-* @description "focus" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button that
-* fired the event.
-*/
-_onFocus: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- this.addClass("focus");
-
- if(this._activationKeyPressed) {
-
- this.addClass("active");
-
- }
-
- m_oFocusedButton = this;
-
-
- if(!this._hasKeyEventHandlers) {
-
- var oElement = this._button;
-
- Event.on(oElement, "blur", this._onBlur, this, true);
- Event.on(oElement, "keydown", this._onKeyDown, this, true);
- Event.on(oElement, "keyup", this._onKeyUp, this, true);
-
- this._hasKeyEventHandlers = true;
-
- }
-
-
- this.fireEvent("focus", p_oEvent);
-
- }
-
-},
-
-
-/**
-* @method _onBlur
-* @description "blur" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onBlur: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- this.removeClass("focus");
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- if(this._activationKeyPressed) {
-
- Event.on(document, "keyup", this._onDocumentKeyUp, this, true);
-
- }
-
-
- m_oFocusedButton = null;
-
- this.fireEvent("blur", p_oEvent);
-
- }
-
-},
-
-
-/**
-* @method _onDocumentKeyUp
-* @description "keyup" event handler for the document.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentKeyUp: function(p_oEvent, p_oButton) {
-
- if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- this._activationKeyPressed = false;
-
- Event.removeListener(document, "keyup", this._onDocumentKeyUp);
-
- }
-
-},
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onKeyDown: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- if(
- this.get("type") == "splitbutton" &&
- this._isSplitButtonOptionKey(p_oEvent)
- ) {
-
- this.fireEvent("option", p_oEvent);
-
- }
- else if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- if(this.get("type") == "menubutton") {
-
- this._showMenu();
-
- }
- else {
-
- this._activationKeyPressed = true;
-
- this.addClass("active");
-
- }
-
- }
-
-
- var oMenu = this._menu;
-
- if(
- oMenu && oMenu.cfg.getProperty("visible") &&
- Event.getCharCode(p_oEvent) == 27
- ) {
-
- oMenu.hide();
- this.focus();
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onKeyUp
-* @description "keyup" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onKeyUp: function(p_oEvent, p_oButton) {
-
- if(!this.get("disabled")) {
-
- if(this._isActivationKey(Event.getCharCode(p_oEvent))) {
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.set("checked", !(this.get("checked")));
-
- }
-
- this._activationKeyPressed = false;
-
- if(this.get("type") != "menubutton") {
-
- this.removeClass("active");
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onClick: function(p_oEvent) {
-
- var sType = this.get("type"),
- sTitle;
-
- switch(sType) {
-
- case "radio":
- case "checkbox":
-
- if(this.get("checked")) {
-
- sTitle = (sType == "radio") ?
- this.RADIO_CHECKED_TITLE :
- this.CHECKBOX_CHECKED_TITLE;
-
- }
- else {
-
- sTitle = (sType == "radio") ?
- this.RADIO_DEFAULT_TITLE :
- this.CHECKBOX_DEFAULT_TITLE;
-
- }
-
- this.set("title", sTitle);
-
- break;
-
- case "submit":
-
- this._submitForm();
-
- break;
-
- case "reset":
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- oForm.reset();
-
- }
-
- break;
-
- case "menubutton":
-
- sTitle = this._menu.cfg.getProperty("visible") ?
- this.MENUBUTTON_MENU_VISIBLE_TITLE :
- this.MENUBUTTON_DEFAULT_TITLE;
-
- this.set("title", sTitle);
-
- break;
-
- case "splitbutton":
-
- var oElement = this.get("element"),
- nX = Event.getPageX(p_oEvent) - Dom.getX(oElement);
-
- if((oElement.offsetWidth - this.OPTION_AREA_WIDTH) < nX) {
-
- return false;
-
- }
- else {
-
- this._hideMenu();
-
- var oSrcElement = this.get("srcelement");
-
- if(oSrcElement && oSrcElement.type == "submit") {
-
- this._submitForm();
-
- }
-
- }
-
- sTitle = this._menu.cfg.getProperty("visible") ?
- this.SPLITBUTTON_OPTION_VISIBLE_TITLE :
- this.SPLITBUTTON_DEFAULT_TITLE;
-
- this.set("title", sTitle);
-
- break;
-
- }
-
-},
-
-
-/**
-* @method _onAppendTo
-* @description "appendTo" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onAppendTo: function(p_oEvent) {
-
- /*
- It is necessary to call "getForm" using "setTimeout" to make sure that
- the button's "form" property returns a node reference. Sometimes, if
- you try to get the reference immediately after appending the field, it
- is null.
- */
-
- var me = this;
-
- window.setTimeout(function() {
-
- var oForm = me.getForm();
-
- if(oForm) {
-
- Event.on(oForm, "reset", me._onFormReset, me, true);
- Event.on(oForm, "submit", me._onFormSubmit, me, true);
-
- }
-
- }, 0);
-
-},
-
-
-/**
-* @method _onFormSubmit
-* @description "submit" event handler for the button's form.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onFormSubmit: function(p_oEvent, p_oButton) {
-
- var sType = this.get("type"),
- oMenuItem = this.get("selectedMenuItem"),
- oForm = this.getForm();
-
-
- if(sType == "radio" || sType == "checkbox") {
-
-
- this.createHiddenField();
-
- }
- else if(oMenuItem) {
-
- var oSrcElement = this._menu.srcElement;
-
- if(oSrcElement && oSrcElement.tagName.toUpperCase() == "SELECT") {
-
- oForm.appendChild(oSrcElement);
- oSrcElement.selectedIndex = oMenuItem.index;
-
- }
- else {
-
- var oValue = (oMenuItem.value === null || oMenuItem.value === "") ?
- oMenuItem.cfg.getProperty("text") :
- oMenuItem.value;
-
-
- if(oValue) {
-
- var oField = createInputElement(
- "hidden",
- (this.get("name") + "_options"),
- oValue
- );
-
- oForm.appendChild(oField);
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onFormReset
-* @description "reset" event handler for the button's form.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onFormReset: function(p_oEvent, p_oButton) {
-
- var sType = this.get("type");
-
- if(sType == "checkbox" || sType == "radio") {
-
- this.resetValue("checked");
-
- }
-
- if(this._menu) {
-
- this.resetValue("selectedMenuItem");
-
- }
-
-},
-
-
-/**
-* @method _onDocumentMouseDown
-* @description "mousedown" event handler for the document.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onDocumentMouseDown: function(p_oEvent, p_oButton) {
-
- var oTarget = Event.getTarget(p_oEvent),
- oButtonElement = this.get("element"),
- oMenuElement = this._menu.element;
-
- if(
- oTarget != oButtonElement &&
- !Dom.isAncestor(oButtonElement, oTarget) &&
- oTarget != oMenuElement &&
- !Dom.isAncestor(oMenuElement, oTarget)
- ) {
-
- this._hideMenu();
-
- Event.removeListener(
- document,
- "mousedown",
- this._onDocumentMouseDown
- );
-
- }
-
-},
-
-
-/**
-* @method _onOption
-* @description "option" event handler for the button.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onOption: function(p_oEvent) {
-
- if(this.hasClass("activeoption")) {
-
- this._hideMenu();
-
- this._bOptionPressed = false;
-
- }
- else {
-
- this._showMenu();
-
- this._bOptionPressed = true;
-
- }
-
-},
-
-
-/**
-* @method _onMenuShow
-* @description "show" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuShow: function(p_sType, p_aArgs, p_oButton) {
-
- Event.on(document, "mousedown", this._onDocumentMouseDown, this, true);
-
- var sTitle,
- sClass;
-
- if(this.get("type") == "splitbutton") {
-
- sTitle = this.SPLITBUTTON_OPTION_VISIBLE_TITLE;
- sClass = "activeoption";
-
- }
- else {
-
- sTitle = this.MENUBUTTON_MENU_VISIBLE_TITLE;
- sClass = "active";
-
- }
-
- this.addClass(sClass);
- this.set("title", sTitle);
-
-},
-
-
-/**
-* @method _onMenuHide
-* @description "hide" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuHide: function(p_sType, p_aArgs, p_oButton) {
-
- if(this._originalMaxHeight != -1) {
-
- this._menu.cfg.setProperty("maxheight", this._originalMaxHeight);
-
- }
-
-
- var sTitle,
- sClass;
-
- if(this.get("type") == "splitbutton") {
-
- sTitle = this.SPLITBUTTON_DEFAULT_TITLE;
- sClass = "activeoption";
-
- }
- else {
-
- sTitle = this.MENUBUTTON_DEFAULT_TITLE;
- sClass = "active";
- }
-
-
- this.removeClass(sClass);
- this.set("title", sTitle);
-
-},
-
-
-/**
-* @method _onMenuKeyDown
-* @description "keydown" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuKeyDown: function(p_sType, p_aArgs, p_oButton) {
-
- var oEvent = p_aArgs[0];
-
- if(Event.getCharCode(oEvent) == 27) {
-
- this.focus();
-
- if(this.get("type") == "splitbutton") {
-
- this._bOptionPressed = false;
-
- }
-
- }
-
-},
-
-
-/**
-* @method _onMenuRender
-* @description "render" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the button.
-*/
-_onMenuRender: function(p_sType, p_aArgs, p_oButton) {
-
- this.get("element").parentNode.appendChild(this._menu.element);
-
-},
-
-
-/**
-* @method _onMenuItemSelected
-* @description "selectedchange" event handler for each item in the
-* button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem }
-* p_oItem Object representing the menu item that subscribed to the event.
-*/
-_onMenuItemSelected: function(p_sType, p_aArgs, p_oItem) {
-
- this.set("selectedMenuItem", p_oItem);
-
-},
-
-
-/**
-* @method _onMenuItemAdded
-* @description "itemadded" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem }
-* p_oItem Object representing the menu item that subscribed to the event.
-*/
-_onMenuItemAdded: function(p_sType, p_aArgs, p_oItem) {
-
- var oItem = p_aArgs[0];
-
- oItem.cfg.subscribeToConfigEvent(
- "selected",
- this._onMenuItemSelected,
- oItem,
- this
- );
-
-},
-
-
-/**
-* @method _onMenuClick
-* @description "click" event handler for the button's menu.
-* @private
-* @param {String} p_sType String representing the name of the event that
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Button} p_oButton Object representing the menu's button.
-*/
-_onMenuClick: function(p_sType, p_aArgs, p_oButton) {
-
- var oItem = p_aArgs[0];
-
- if(oItem) {
-
- var oSrcElement = this.get("srcelement");
-
- if(oSrcElement && oSrcElement.type == "submit") {
-
- this._submitForm();
-
- }
-
- this._hideMenu();
-
- }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method createHiddenField
-* @description Creates the button's hidden form field and appends it to its
-* parent form.
-* @return {HTMLInputElement }
-*/
-createHiddenField: function () {
-
- if(!this.get("disabled")) {
-
- var sType = this.get("type"),
-
- bCheckable = (sType == "checkbox" || sType == "radio"),
-
- oField = createInputElement(
- (bCheckable ? this.get("type") : "hidden"),
- this.get("name"),
- this.get("value"),
- this.get("checked")
- ),
-
- oForm = this.getForm();
-
-
- if(oField && bCheckable) {
-
- oField.style.display = "none";
-
- }
-
-
- if(oForm) {
-
- oForm.appendChild(oField);
-
- }
-
-
- return oField;
-
- }
-
-},
-
-
-/**
-* @method init
-* @description The Button class's initialization method.
-* @param {String} p_oElement String specifying the id attribute of the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {HTMLInputElement |HTMLElement } p_oElement Object reference for the
-* <input>
, <a>
or
-* <span>
element to be used to create the button.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button.
-*/
-init: function(p_oElement, p_oAttributes) {
-
- var sTagName = p_oAttributes.type == "link" ? "A" : "BUTTON",
- oSrcElement = p_oAttributes.srcelement;
-
-
- this._button = p_oElement.getElementsByTagName(sTagName)[0];
-
-
- YAHOO.widget.Button.superclass.init.call(
- this, p_oElement,
- p_oAttributes
- );
-
-
- m_oButtons[this.get("id")] = this;
-
-
- this.addClass(this.CSS_CLASS_NAME);
- this.addClass(this.get("type"));
-
- Event.on(this._button, "focus", this._onFocus, this, true);
- this.on("mouseover", this._onMouseOver);
- this.on("click", this._onClick);
- this.on("appendTo", this._onAppendTo);
-
- var oContainer = this.get("container"),
- oElement = this.get("element");
-
-
- if(oContainer) {
-
- if(Lang.isString(oContainer)) {
-
- var me = this;
-
- Event.onContentReady(oContainer, function() {
-
- me.appendTo(this);
-
- });
-
- }
- else {
-
- this.appendTo(oContainer);
-
- }
-
- }
- else if(
- !Dom.inDocument(oElement) &&
- oSrcElement &&
- oSrcElement.tagName.toUpperCase() == "INPUT"
- ) {
-
- var oParentNode = oSrcElement.parentNode;
-
- if(oParentNode) {
-
- this.fireEvent("beforeAppendTo", {
- type: "beforeAppendTo",
- target: oParentNode
- });
-
- oParentNode.replaceChild(oElement, oSrcElement);
-
- this.fireEvent("appendTo", {
- type: "appendTo",
- target: oParentNode
- });
-
- }
-
- }
- else if(
- Dom.inDocument(oElement) &&
- oSrcElement.tagName.toUpperCase() == "SPAN"
- ) {
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- Event.on(oForm, "reset", this._onFormReset, this, true);
- Event.on(oForm, "submit", this._onFormSubmit, this, true);
-
- }
-
- }
-
- this.fireEvent("init");
-
-
-},
-
-
-/**
-* @method initAttributes
-* @description Initializes all of the configuration attributes used to create
-* the button.
-* @param {Object} p_oAttributes Object literal specifying a set of
-* configuration attributes used to create the button.
-*/
-initAttributes: function(p_oAttributes) {
-
- var oAttributes = p_oAttributes || {};
-
- YAHOO.widget.Button.superclass.initAttributes.call(this, oAttributes);
-
-
- /**
- * @config type
- * @description String specifying the button's type. Possible values are:
- * "button," "link," "submit," "reset," "checkbox," "radio," "menubutton,"
- * and "splitbutton."
- * @default "button"
- * @type String
- */
- this.setAttributeConfig("type", {
-
- value: (oAttributes.type || "button"),
- validator: Lang.isString,
- writeOnce: true,
- method: this._setType
-
- });
-
-
- /**
- * @config label
- * @description String specifying the button's text label or innerHTML.
- * @default null
- * @type String
- */
- this.setAttributeConfig("label", {
-
- value: oAttributes.label,
- validator: Lang.isString,
- method: this._setLabel
-
- });
-
-
- /**
- * @config value
- * @description Object specifying the value for the button.
- * @default null
- * @type Object
- */
- this.setAttributeConfig("value", {
-
- value: oAttributes.value
-
- });
-
-
- /**
- * @config name
- * @description String specifying the name for the button.
- * @default null
- * @type String
- */
- this.setAttributeConfig("name", {
-
- value: oAttributes.name,
- validator: Lang.isString
-
- });
-
-
- /**
- * @config tabindex
- * @description Number specifying the tabindex for the button.
- * @default null
- * @type Number
- */
- this.setAttributeConfig("tabindex", {
-
- value: oAttributes.tabindex,
- validator: Lang.isNumber,
- method: this._setTabIndex
-
- });
-
-
- /**
- * @config title
- * @description String specifying the title for the button.
- * @default null
- * @type String
- */
- this.configureAttribute("title", {
-
- value: oAttributes.title,
- validator: Lang.isString,
- method: this._setTitle
-
- });
-
-
- /**
- * @config disabled
- * @description Boolean indicating if the button should be disabled.
- * (Disabled buttons are dimmed and will not respond to user input
- * or fire events.)
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("disabled", {
-
- value: (oAttributes.disabled || false),
- validator: Lang.isBoolean,
- method: this._setDisabled
-
- });
-
-
- /**
- * @config href
- * @description String specifying the href for the button. Applies only to
- * buttons of type "link."
- * @type String
- */
- this.setAttributeConfig("href", {
-
- value: oAttributes.href,
- validator: Lang.isString,
- method: this._setHref
-
- });
-
-
- /**
- * @config target
- * @description String specifying the target for the button. Applies only
- * to buttons of type "link."
- * @type String
- */
- this.setAttributeConfig("target", {
-
- value: oAttributes.target,
- validator: Lang.isString,
- method: this._setTarget
-
- });
-
-
- /**
- * @config checked
- * @description Boolean indicating if the button is checked. Applies only
- * to buttons of type "radio" and "checkbox."
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("checked", {
-
- value: (oAttributes.checked || false),
- validator: Lang.isBoolean,
- method: this._setChecked
-
- });
-
-
- /**
- * @config container
- * @description HTML element reference or string specifying the id
- * attribute of the HTML element that the button's markup should be
- * rendered into.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("container", {
-
- value: oAttributes.container
-
- });
-
-
- /**
- * @config srcelement
- * @description Object reference to the HTML element (either
- * <input>
or <span>
) used to
- * create the button.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("srcelement", {
-
- value: oAttributes.srcelement,
- writeOnce: true
-
- });
-
-
- /**
- * @config menu
- * @description Object specifying the menu for the button. The value can be
- * one of the following:
- *
- * Object specifying a
- * YAHOO.widget.Menu instance.
- * String specifying the id attribute of the <div>
- * element used to create the menu.
- * String specifying the id attribute of the
- * <select>
element used to create the menu.
- * Object specifying the <div>
element used to
- * create the menu.
- * Object specifying the <select>
element used to
- * create the menu.
- * Array of object literals, each representing a set of
- * YAHOO.widget.MenuItem
- * configuration attributes.
- * Array of strings representing the text labels for each menu item in
- * the menu.
- *
- * @type HTMLElement |String|Array
- * @default null
- */
- this.setAttributeConfig("menu", {
-
- value: null,
- method: this._setMenu
-
- });
-
-
- /**
- * @config selectedMenuItem
- * @description Reference to the item in the button's menu that is
- * currently selected.
- * @type YAHOO.widget.MenuItem
- * @default null
- */
- this.setAttributeConfig("selectedMenuItem", {
-
- value: null
-
- });
-
-
- /**
- * @config onclick
- * @description Object literal representing the code to be executed when
- * the button is clicked. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("onclick", {
-
- value: oAttributes.onclick,
- method: this._setOnClick
-
- });
-
-
- /**
- * @config oninit
- * @description Object literal representing the code to be executed when
- * the button is initialized. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("oninit", {
-
- value: oAttributes.oninit,
- method: this._setOnInit
-
- });
-
-},
-
-
-/**
-* @method focus
-* @description Causes the button to receive the focus and fires the button's
-* "focus" event.
-*/
-focus: function() {
-
- if(!this.get("disabled")) {
-
- this._button.focus();
-
- }
-
-},
-
-
-/**
-* @method blur
-* @description Causes the button to lose focus and fires the button's
-* "blur" event.
-*/
-blur: function() {
-
- if(!this.get("disabled")) {
-
- this._button.blur();
-
- }
-
-},
-
-
-/**
-* @method hasFocus
-* @description Returns a boolean indicating whether or not the button has focus.
-* @return {Boolean}
-*/
-hasFocus: function() {
-
- return (m_oFocusedButton == this);
-
-},
-
-
-/**
-* @method isActive
-* @description Returns a boolean indicating whether or not the button is active.
-* @return {Boolean}
-*/
-isActive: function() {
-
- return this.hasClass("active");
-
-},
-
-
-/**
-* @method getMenu
-* @description Returns a reference to the button's menu.
-* @return {YAHOO.widget.Menu }
-*/
-getMenu: function() {
-
- return this._menu;
-
-},
-
-
-/**
-* @method getForm
-* @description Returns a reference to the button's menu.
-* @return {HTMLFormElement }
-*/
-getForm: function() {
-
- return this._button.form;
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the button's element from its parent element and
-* removes all event handlers.
-*/
-destroy: function() {
-
-
- var oElement = this.get("element"),
- oParentNode = oElement.parentNode,
- oMenu = this._menu;
-
- if(oMenu) {
-
-
- oMenu.destroy();
-
- }
-
-
- Event.purgeElement(oElement);
- Event.purgeElement(this._button);
- Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
- Event.removeListener(document, "keyup", this._onDocumentKeyUp);
- Event.removeListener(document, "mousedown", this._onDocumentMouseDown);
-
- var oForm = this.getForm();
-
- if(oForm) {
-
- Event.removeListener(oForm, "reset", this._onFormReset);
-
- }
-
-
- oParentNode.removeChild(oElement);
-
-
- delete m_oButtons[this.get("id")];
-
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the button.
-* @return {String}
-*/
-toString: function() {
-
- return ("Button " + this.get("id"));
-
-}
-
-});
-
-
-/**
-* @method addHiddenFieldsToForm
-* @description Searches the specified form and adds hidden fields for instances
-* of YAHOO.widget.Button that are of type "radio," "checkbox," "menubutton,"
-* and "splitbutton."
-* @param {HTMLFormElement } p_oForm Object reference
-* for the form to search.
-*/
-YAHOO.widget.Button.addHiddenFieldsToForm = function(p_oForm) {
-
- var aButtons = Dom.getElementsByClassName("yuibutton", "*", p_oForm),
- nButtons = aButtons.length;
-
-
- if(nButtons > 0) {
-
-
- var oButton = null,
- sType = null,
- oMenuItem = null,
- oMenu = null;
-
- for(var i=0; iElement.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event blur
-* @description Fires when the menu item loses the input focus. Passes back a
-* single object representing the original DOM event object passed back by the
-* event utility (YAHOO.util.Event) when the event was fired. See Element.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event option
-* @description Fires when the user invokes the button's option. Passes back a
-* single object representing the original DOM event (either "mousedown" or
-* "keydown") that caused the "option" event to fire. See Element.addListener for more
-* information on listening for this event.
-* @type YAHOO.util.CustomEvent
-*/
-
-
-/**
-* @event init
-* @description Fires when the Button is initialized. Subscribe to this event
-* by specifying a value for the "oninit" configuration attribute. Format:
-* { fn: Function, // The handler to call
-* when the event fires. obj: Object, // An object
-* to pass back to the handler. scope: Object //
-* The object to use for the scope of the handler. }
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-(function() {
-
-// Shorthard for utilities
-
-var Dom = YAHOO.util.Dom,
- Event = YAHOO.util.Event,
- Lang = YAHOO.lang,
- Button = YAHOO.widget.Button;
-
- // Private collection of radio buttons
-
- m_oButtons = {};
-
-
-
-/**
-* The ButtonGroup class creates a set of buttons that are mutually exclusive;
-* checking one button in the set will uncheck all others in the button group.
-* @param {String} p_oElement String specifying the id attribute of the
-* <div>
element of the button group.
-* @param {HTMLDivElement } p_oElement Object
-* specifying the <div>
element of the button group.
-* @param {Object} p_oElement Object literal specifying a set of
-* configuration attributes used to create the button group.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button group.
-* @namespace YAHOO.widget
-* @class ButtonGroup
-* @constructor
-* @extends YAHOO.util.Element
-*/
-YAHOO.widget.ButtonGroup = function(p_oElement, p_oAttributes) {
-
- var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor;
-
- if(
- arguments.length == 1 &&
- !Lang.isString(p_oElement) &&
- !p_oElement.nodeName
- ) {
-
- if(!p_oElement.id) {
-
- var sId = Dom.generateId();
-
- p_oElement.id = sId;
-
-
- }
-
-
-
- fnSuperClass.call(this, (this._createGroupElement()), p_oElement);
-
- }
- else if(Lang.isString(p_oElement)) {
-
- var me = this;
-
- Event.onContentReady(p_oElement, function() {
-
- if(this.nodeName.toUpperCase() == me.TAG_NAME) {
-
-
- fnSuperClass.call(me, this, p_oAttributes);
-
- }
-
- });
-
- }
- else {
-
- var sNodeName = p_oElement.nodeName;
-
- if(sNodeName && sNodeName == this.TAG_NAME) {
-
- if(!p_oElement.id) {
-
- p_oElement.id = Dom.generateId();
-
-
- }
-
-
- fnSuperClass.call(this, p_oElement, p_oAttributes);
-
- }
-
- }
-
-};
-
-
-YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, {
-
-
-// Protected properties
-
-
-/**
-* @property _buttons
-* @description Array of buttons in the button group.
-* @default null
-* @protected
-* @type Array
-*/
-_buttons: null,
-
-
-/**
-* @property _oninitAttributeValue
-* @description Object reference to the button group's current value for the
-* "oninit" configuration attribute.
-* @default null
-* @protected
-* @type Object
-*/
-_oninitAttributeValue: null,
-
-
-
-// Constants
-
-
-/**
-* @property TAG_NAME
-* @description The name of the tag to be used for the button group's element.
-* @default "DIV"
-* @final
-* @type String
-*/
-TAG_NAME: "DIV",
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the
-* button group's element.
-* @default "yuibuttongroup"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuibuttongroup",
-
-
-
-// Protected methods
-
-
-/**
-* @method _createGroupElement
-* @description Creates the button group's element.
-* @protected
-* @return {HTMLDivElement }
-*/
-_createGroupElement: function() {
-
- var oElement = document.createElement(this.TAG_NAME);
-
- oElement.className = this.CSS_CLASS_NAME;
-
- return oElement;
-
-},
-
-
-
-// Protected attribute setter methods
-
-
-/**
-* @method _setDisabled
-* @description Sets the value of the button groups's "disabled" attribute.
-* @protected
-* @param {Boolean} p_bDisabled Boolean indicating the value for the button
-* group's "disabled" attribute.
-*/
-_setDisabled: function(p_bDisabled) {
-
- var nButtons = this.getCount();
-
- if(nButtons > 0) {
-
- var i = nButtons - 1;
-
- do {
-
- this._buttons[i].set("disabled", p_bDisabled);
-
- }
- while(i--);
-
- }
-
-},
-
-
-/**
-* @method _setOnInit
-* @description Sets the value of the button group's "init" attribute.
-* @protected
-* @param {Object} p_oObject Object indicating the value for the button's
-* "oninit" attribute.
-*/
-_setOnInit: function(p_oObject) {
-
- /*
- Remove any existing listeners if a "init" event handler has already
- been specified.
- */
-
- if(
- this._oninitAttributeValue &&
- (this._oninitAttributeValue != p_oObject)
- ) {
-
- this.removeListener("init", this._oninitAttributeValue.fn);
-
- this._oninitAttributeValue = null;
-
- }
-
-
- if(
- !this._oninitAttributeValue &&
- Lang.isObject(p_oObject) &&
- Lang.isFunction(p_oObject.fn)
- ) {
-
- this.on("init", p_oObject.fn, p_oObject.obj, p_oObject.scope);
-
- this._oninitAttributeValue = p_oObject;
-
- }
-
-},
-
-
-// Protected event handlers
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the button group.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed
-* back by the event utility (YAHOO.util.Event).
-*/
-_onKeyDown: function(p_oEvent) {
-
- var oTarget = Event.getTarget(p_oEvent),
- nCharCode = Event.getCharCode(p_oEvent),
- sId = oTarget.parentNode.parentNode.id,
- oButton = m_oButtons[sId],
- nIndex = -1;
-
-
- if(nCharCode == 37 || nCharCode == 38) {
-
- nIndex = (oButton.index === 0) ?
- (this._buttons.length -1) : (oButton.index - 1);
-
- }
- else if(nCharCode == 39 || nCharCode == 40) {
-
- nIndex = (oButton.index === (this._buttons.length - 1)) ?
- 0 : (oButton.index + 1);
-
- }
-
-
- if(nIndex > -1) {
-
- this.check(nIndex);
- this.getButton(nIndex).focus();
-
- }
-
-},
-
-
-/**
-* @method _onAppendTo
-* @description "appendTo" event handler for the button group.
-* @protected
-* @param {Event} p_oEvent Object representing the event that was fired.
-*/
-_onAppendTo: function(p_oEvent) {
-
- var aButtons = this._buttons,
- nButtons = aButtons.length;
-
- for(var i=0; iYAHOO.widget.Button} p_oButton
-* Object representing the button that
-* fired the event.
-*/
-_onButtonCheckedChange: function(p_oEvent, p_oButton) {
-
- var bChecked = p_oEvent.newValue,
- oCheckedButton = this.get("checkedButton");
-
- if(bChecked && oCheckedButton != p_oButton) {
-
- if(oCheckedButton) {
-
- oCheckedButton.set("checked", false, true);
-
- }
-
- this.set("checkedButton", p_oButton);
- this.set("value", p_oButton.get("value"));
-
- }
- else if(oCheckedButton && !oCheckedButton.set("checked")) {
-
- oCheckedButton.set("checked", true, true);
-
- }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method init
-* @description The ButtonGroup class's initialization method.
-* @param {String} p_oElement String specifying the id attribute of the
-* <div>
element of the button group.
-* @param {HTMLDivElement } p_oElement Object
-* specifying the <div>
element of the button group.
-* @param {Object} p_oElement Object literal specifying a set of configuration
-* attributes used to create the button group.
-* @param {Object} p_oAttributes Optional. Object literal specifying a set of
-* configuration attributes used to create the button group.
-*/
-init: function(p_oElement, p_oAttributes) {
-
- this._buttons = [];
-
- YAHOO.widget.ButtonGroup.superclass.init.call(
- this, p_oElement,
- p_oAttributes
- );
-
-
-
- var aButtons = this.getElementsByClassName("yuibutton");
-
-
- if(aButtons.length > 0) {
-
-
- this.addButtons(aButtons);
-
- }
-
-
-
- function isRadioButton(p_oElement) {
-
- return (p_oElement.type == "radio");
-
- }
-
- aButtons = Dom.getElementsBy(isRadioButton, "input", this.get("element"));
-
-
- if(aButtons.length > 0) {
-
-
- this.addButtons(aButtons);
-
- }
-
- this.on("keydown", this._onKeyDown);
- this.on("appendTo", this._onAppendTo);
-
- var oContainer = this.get("container");
-
- if(oContainer) {
-
- if(Lang.isString(oContainer)) {
-
- var me = this;
-
- Event.onContentReady(oContainer, function() {
-
- me.appendTo(this);
-
- });
-
- }
- else {
-
- this.appendTo(oContainer);
-
- }
-
- }
-
-
- this.fireEvent("init");
-
-
-},
-
-
-/**
-* @method initAttributes
-* @description Initializes all of the configuration attributes used to create
-* the button group.
-* @param {Object} p_oAttributes Object literal specifying a set of
-* configuration attributes used to create the button group.
-*/
-initAttributes: function(p_oAttributes) {
-
- var oAttributes = p_oAttributes || {};
-
- YAHOO.widget.ButtonGroup.superclass.initAttributes.call(
- this,
- oAttributes
- );
-
-
- /**
- * @config name
- * @description String specifying the name for the button group. This
- * name will be applied to each button in the button group.
- * @default null
- * @type String
- */
- this.setAttributeConfig("name", {
-
- value: oAttributes.name,
- validator: Lang.isString
-
- });
-
-
- /**
- * @config disabled
- * @description Boolean indicating if the button group should be disabled.
- * Disabling the button group will disable each button in the button group.
- * Disabled buttons are dimmed and will not respond to user input
- * or fire events.
- * @default false
- * @type Boolean
- */
- this.setAttributeConfig("disabled", {
-
- value: (oAttributes.disabled || false),
- validator: Lang.isBoolean,
- method: this._setDisabled
-
- });
-
-
- /**
- * @config value
- * @description Object specifying the value for the button group.
- * @default null
- * @type Object
- */
- this.setAttributeConfig("value", {
-
- value: oAttributes.value
-
- });
-
-
- /**
- * @config container
- * @description HTML element reference or string specifying the id
- * attribute of the HTML element that the button group's markup should be
- * rendered into.
- * @type HTMLElement |String
- * @default null
- */
- this.setAttributeConfig("container", {
-
- value: oAttributes.container
-
- });
-
-
- /**
- * @config checkedButton
- * @description Reference for the button in the button group that
- * is checked.
- * @type {YAHOO.widget.Button }
- * @default null
- */
- this.setAttributeConfig("checkedButton", {
-
- value: null
-
- });
-
-
- /**
- * @config oninit
- * @description Object literal representing the code to be executed when
- * the button group is initialized. Format: {
- * fn: Function, // The handler to call when the
- * event fires. obj: Object, // An object to
- * pass back to the handler. scope: Object //
- * The object to use for the scope of the handler. }
- * @type Object
- * @default null
- */
- this.setAttributeConfig("oninit", {
-
- value: oAttributes.oninit,
- method: this._setOnInit
-
- });
-
-},
-
-
-/**
-* @method addButton
-* @description Adds the button to the button group.
-* @param {YAHOO.widget.Button } p_oButton
-* Object reference for the
-* YAHOO.widget.Button instance to be added to the button group.
-* @param {String} p_oButton String specifying the id attribute of the
-* <input>
or <span>
element to be
-* used to create the button to be added to the button group.
-* @param {HTMLInputElement |HTMLElement } p_oButton Object reference for the
-* <input>
or <span>
element to be
-* used to create the button to be added to the button group.
-* @param {Object} p_oButton Object literal specifying a set of
-* YAHOO.widget.Button configuration
-* attributes used to configure the button to be added to the button group.
-* @return {YAHOO.widget.Button }
-*/
-addButton: function(p_oButton) {
-
- var oButton;
-
-
- if(p_oButton instanceof Button && p_oButton.get("type") == "radio") {
-
- oButton = p_oButton;
-
- }
- else if(!Lang.isString(p_oButton) && !p_oButton.nodeName) {
-
- p_oButton.type = "radio";
-
- oButton = new Button(p_oButton);
-
- }
- else {
-
- oButton = new Button(p_oButton, { type: "radio" });
-
- }
-
-
- if(oButton) {
-
- var nIndex = this._buttons.length,
- sButtonName = oButton.get("name"),
- sGroupName = this.get("name");
-
- oButton.index = nIndex;
-
- this._buttons[nIndex] = oButton;
- m_oButtons[oButton.get("id")] = oButton;
-
-
- if(sButtonName != sGroupName) {
-
- oButton.set("name", sGroupName);
-
- }
-
-
- if(this.get("disabled")) {
-
- oButton.set("disabled", true);
-
- }
-
-
- if(oButton.get("checked")) {
-
- this.set("checkedButton", oButton);
-
- }
-
-
- oButton.on("checkedChange", this._onButtonCheckedChange, oButton, this);
-
-
- return oButton;
-
- }
-
-},
-
-
-/**
-* @method addButtons
-* @description Adds the array of buttons to the button group.
-* @param {Array} p_aButtons Array of
-* YAHOO.widget.Button instances to be added
-* to the button group.
-* @param {Array} p_aButtons Array of strings specifying the id attribute of
-* the <input>
or <span>
elements to
-* be used to create the buttons to be added to the button group.
-* @param {Array} p_aButtons Array of object references for the
-* <input>
or <span>
elements to be
-* used to create the buttons to be added to the button group.
-* @param {Array} p_aButtons Array of object literals, each containing a set of
-* YAHOO.widget.Button configuration
-* attributes used to configure each button to be added to the button group.
-* @return {Array}
-*/
-addButtons: function(p_aButtons) {
-
- if(Lang.isArray(p_aButtons)) {
-
- var nButtons = p_aButtons.length,
- oButton,
- aButtons = [];
-
- if(nButtons > 0) {
-
- for(var i=0; i 0) {
-
-
- return aButtons;
-
- }
-
- }
-
- }
-
-},
-
-
-/**
-* @method removeButton
-* @description Removes the button at the specified index from the button group.
-* @param {Number} p_nIndex Number specifying the index of the button to be
-* removed from the button group.
-*/
-removeButton: function(p_nIndex) {
-
- var oButton = this.getButton(p_nIndex);
-
- if(oButton) {
-
-
- this._buttons.splice(p_nIndex, 1);
- delete m_oButtons[oButton.get("id")];
-
- oButton.removeListener("checkedChange", this._onButtonCheckedChange);
- oButton.destroy();
-
-
- var nButtons = this._buttons.length;
-
- if(nButtons > 0) {
-
- var i = this._buttons.length - 1;
-
- do {
-
- this._buttons[i].index = i;
-
- }
- while(i--);
-
- }
-
-
- }
-
-},
-
-
-/**
-* @method getButton
-* @description Returns the button at the specified index.
-* @param {Number} p_nIndex The index of the button to retrieve from the
-* button group.
-* @return {YAHOO.widget.Button }
-*/
-getButton: function(p_nIndex) {
-
- if(Lang.isNumber(p_nIndex)) {
-
- return this._buttons[p_nIndex];
-
- }
-
-},
-
-
-/**
-* @method getButtons
-* @description Returns an array of the buttons in the button group.
-* @return {Array}
-*/
-getButtons: function() {
-
- return this._buttons;
-
-},
-
-
-/**
-* @method getCount
-* @description Returns the number of buttons in the button group.
-* @return {Number}
-*/
-getCount: function() {
-
- return this._buttons.length;
-
-},
-
-
-/**
-* @method focus
-* @description Sets focus to the button at the specified index.
-* @param {Number} p_nIndex Number indicating the index of the button to focus.
-*/
-focus: function(p_nIndex) {
-
- var oButton;
-
- if(Lang.isNumber(p_nIndex)) {
-
- oButton = this._buttons[p_nIndex];
-
- if(oButton) {
-
- oButton.focus();
-
- }
-
- }
- else {
-
- var nButtons = this.getCount();
-
- for(var i=0; i 0) {
-
- var i = this._buttons.length - 1;
-
- do {
-
- this._buttons[i].destroy();
-
- }
- while(i--);
-
- }
-
-
- Event.purgeElement(oElement);
-
-
- oParentNode.removeChild(oElement);
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the button group.
-* @return {String}
-*/
-toString: function() {
-
- return ("ButtonGroup " + this.get("id"));
-
-}
-
-});
-
-
-
-// Events
-
-
-/**
-* @event init
-* @description Fires when the button group is initialized. Subscribe to this
-* event by specifying a value for the "oninit" configuration attribute.
-* Format: { fn: Function, // The
-* handler to call when the event fires. obj: Object,
-* // An object to pass back to the handler. scope:
-* Object // The object to use for the scope of the handler.
-* }
-* @type YAHOO.util.CustomEvent
-*/
-
-})();
-YAHOO.register("button", YAHOO.widget.Button, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/calendar/README b/interface/ispconfig/interface/js/yui/calendar/README
deleted file mode 100644
index f0ddd1214bd0ecdd5d13e73f0d3c1f19a08195b3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/calendar/README
+++ /dev/null
@@ -1,88 +0,0 @@
-Calendar Release Notes
-
-*** version 2.2.0 ***
-
- - Image customization can now be done through CSS. Images for Close, Left and Right Arrows are now pulled in using CSS defined in calendar.css and by default use relative paths to the images in the same directory as calendar.css.
- - Deprecated Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties. Customizations based on older releases which set these properties will still function as expected.
- - Deprecated CalendarGroup.CSS_2UPCLOSE. Calendar's Style.CSS_CLOSE property now represents the new default CSS class (calclose) for the close button. CSS_2UPCLOSE is still applied along with CSS_CLOSE to the new markup for the close button to support existing customizations of the CSS_2UPCLOSE CSS class (close-icon)
- - Fixed problem with Safari setting Calendar pages to incorrect dates if the pages spanned a year boundary in CalendarGroups with 3 or more pages, due to a bug in Safari's implementation of Date setMonth
- - Fixed problem with CalendarGroup setMonth rendering Calendar pages with incorrect dates in all browsers if current pages spanned year boundary
- - Fixed incorrect CalendarGroup logging statement in calendar-debug.js
- - Fixed domEventMap support for Safari versions prior to 2.0.2, caused by hasOwnProperty not being supported
- - Removed unused private property : _pageDate from Calendar class
-
-*** version 0.12.2 ***
-
- - Corrected documentation for clearTime function to reflect the change from midnight to noon
-
-*** version 0.12.1 ***
-
- - Calendar and CalendarGroup now automatically parse the argument passed to setMonth and setYear into an integer, eliminating potential concatenation bugs.
-
-*** version 0.12 ***
-
- - New documentation format implemented
- - Calendar2up and Calendar_Core are now deprecated. Now, Calendar alone represents the single Calendar instance, and CalendarGroup represents an n-up instance, defaulting to 2up
- - Added semantic style classes to Calendar elements to allow for custom styling solely using CSS.
- - Remapped all configuration properties to use the Config object (familiar to those who use the Container collection of controls). Property names are the same as their previous counterparts, but wrapped into Calendar.cfg, allowing for runtime reconfiguration of most properties
- - Added "title" property for setting the Calendar title
- - Added "close" property for enabling and disabling the close icon
- - Added "iframe" property for enabling an iframe shim in Internet Explorer 6 and below to fix the select bleed-through bug
- - pageDate moved to property: "pagedate"
- - selectedDates moved to property: "selected"
- - minDate moved to property : "mindate", which accepts a JavaScript Date object like its predecessor, but also supports string dates
- - maxDate moved to property : "maxdate", which accepts a JavaScript Date object like its predecessor, but also supports string dates
- - Moved style declarations to initStyles function
- - Optimized event handling in doSelectCell/doCellMouseOver/doCellMouseOut by only attaching the listener to the outer Calendar container, and only reacting to events on cells with the "selectable" CSS class.
- - Added domEventMap field for applying DOM event listeners to cells containing specific class and tag combinations.
- - Moved all cell DOM event attachment to applyListeners function
- - Added getDateByCellId / getDateFieldsByCellId helper functions
- - Corrected DateMath.getWeekNumber to comply with ISO week number handling
- - Separated renderCellDefault style portions into styleCellDefault function for easy extension
- - Deprecated onBeforeSelect. Created beforeSelectEvent which automatically subscribes to its deprecated predecessor.
- - Deprecated onSelect. Created selectEvent, which automatically subscribes to its deprecated predecessor.
- - Deprecated onBeforeDeselect. Created beforeSelectEvent which automatically subscribes to its deprecated predecessor.
- - Deprecated onDeselect. Created beforeDeselectEvent, which automatically subscribes to its deprecated predecessor.
- - Deprecated onChangePage. Created changePageEvent, which automatically subscribes to its deprecated predecessor.
- - Deprecated onRender. Created renderEvent, which automatically subscribes to its deprecated predecessor.
- - Deprecated onReset. Created resetEvent, which automatically subscribes to its deprecated predecessor.
- - Deprecated onClear. Created clearEvent, which automatically subscribes to its deprecated predecessor.
- - Corrected setMonth documentation to refer to 0-11 indexed months.
- - Added show and hide methods to Calendar for setting the Calendar's display property.
- - Optimized internal render classes to use innerHTML and string buffers
- - Removed wireCustomEvents function
- - Removed wireDefaultEvents function
- - Removed doNextMonth / doPreviousMonth
- - Removed all buildShell (header, body, footer) functions, since the Calendar shell is now built dynamically on each render
- - Wired all CalendarGroup events and configuration properties to be properly delegated to Calendar
- - Augmented CalendarGroup with all built-in renderers, label functions, hide, show, and initStyles, creating API transparency between Calendar and CalendarGroup.
- - Made all tagName, createElement, and entity references XHTML compliant
- - Fixed Daylight Saving Time bug for Brazilian time zone
-
-*** version 0.11.3 ***
-
- - Calendar_Core: Added arguments for selected/deselected dates to onSelect/onDeselect
- - CalendarGroup: Fixed bug where selected dates passed to constructor were not represented in selectedDates
- - Calendar2up: Now displays correctly in Opera 9
-
-*** version 0.11.0 ***
-
- - DateMath: DateMath.add now properly adds weeks
- - DateMath: between() function added
- - DateMath: getWeekNumber() fixed to take starting day of week into account
- - All references to Calendar's built in CSS class handlers are removed, replaced with calls to Dom utility (addClass, removeClass)
- - Several CSS class constants now have clearer names
- - All CSS classes are now properly namespaced to avoid CSS conflicts
- - Fixed table:hover bug in CSS
- - Calendar no longer requires the container ID and variable name to match in order for month navigation to function properly
- - Calendar month navigation arrows are now represented as background images
-
-*** version 0.10.0 ***
-
- - Major performance improvements from attaching DOM events to associated table cells only once, when the Calendar shell is built
- - DOM events for mouseover/mouseout are now fired for all browsers (not just Internet Explorer)
- - Reset functionality bug fixed for 2-up Calendar view
-
-*** version 0.9.0 ***
-
-* Initial release
diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css b/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css
deleted file mode 100644
index 8a91844c59b1186dbc03398bb4276bdadece066c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/calendar/assets/calendar.css
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-.yui-calcontainer {
- position:relative;
- padding:5px;
- background-color:#F7F9FB;
- border:1px solid #7B9EBD;
- float:left;
- overflow:hidden;
-}
-
-.yui-calcontainer iframe {
- position:absolute;
- border:none;
- margin:0;padding:0;
- left:-1px;
- top:-1px;
- z-index:0;
- width:50em;
- height:50em;
-}
-
-.yui-calcontainer.multi {
- padding:0;
-}
-
-.yui-calcontainer.multi .groupcal {
- padding:5px;
- background-color:transparent;
- z-index:1;
- float:left;
- position:relative;
- border:none;
-}
-
-.yui-calcontainer .title {
- font:100% sans-serif;
- color:#000;
- font-weight:bold;
- margin-bottom:5px;
- height:25px;
- position:absolute;
- top:3px;left:5px;
- z-index:1;
-}
-
-.yui-calcontainer .close-icon {
- position:absolute;
- right:3px;
- top:3px;
- border:none;
- z-index:1;
-}
-
-.yui-calcontainer .calclose {
- background: url("calx.gif") no-repeat;
- width:17px;
- height:13px;
- cursor:pointer;
-}
-
-/* Calendar element styles */
-
-.yui-calendar {
- font:100% sans-serif;
- text-align:center;
- border-spacing:0;
- border-collapse:separate;
- position:relative;
-}
-
-.yui-calcontainer.withtitle {
- padding-top:1.5em;
-}
-
-.yui-calendar .calnavleft {
- position:absolute;
- cursor:pointer;
- top:2px;
- bottom:0;
- width:9px;
- height:12px;
- left:2px;
- z-index:1;
- background: url("callt.gif") no-repeat;
-}
-
-.yui-calendar .calnavright {
- position:absolute;
- cursor:pointer;
- top:2px;
- bottom:0;
- width:9px;
- height:12px;
- right:2px;
- z-index:1;
- background: url("calrt.gif") no-repeat;
-}
-
-.yui-calendar td.calcell {
- padding:.1em .2em;
- border:1px solid #E0E0E0;
- text-align:center;
-}
-
-.yui-calendar td.calcell a {
- color:#003DB8;
- text-decoration:none;
-}
-
-.yui-calendar td.calcell.today {
- border:1px solid #000;
-}
-
-.yui-calendar td.calcell.oom {
- cursor:default;
- color:#999;
- background-color:#EEE;
- border:1px solid #E0E0E0;
-}
-
-.yui-calendar td.calcell.selected {
- color:#003DB8;
- background-color:#FFF19F;
- border:1px solid #FF9900;
-}
-
-.yui-calendar td.calcell.calcellhover {
- cursor:pointer;
- color:#FFF;
- background-color:#FF9900;
- border:1px solid #FF9900;
-}
-
-.yui-calendar td.calcell.calcellhover a {
- color:#FFF;
-}
-
-.yui-calendar td.calcell.restricted {
- text-decoration:line-through;
-}
-
-.yui-calendar td.calcell.previous {
- color:#CCC;
-}
-
-.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; }
-.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; }
-.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; }
-.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; }
-
-.yui-calendar .calhead {
- border:1px solid #E0E0E0;
- vertical-align:middle;
- background-color:#FFF;
-}
-
-.yui-calendar .calheader {
- position:relative;
- width:100%;
- text-align:center;
-}
-
-.yui-calendar .calheader img {
- border:none;
-}
-
-.yui-calendar .calweekdaycell {
- color:#666;
- font-weight:normal;
- text-align:center;
- width:1.5em;
-}
-
-.yui-calendar .calfoot {
- background-color:#EEE;
-}
-
-.yui-calendar .calrowhead, .yui-calendar .calrowfoot {
- color:#666;
- font-size:9px;
- font-style:italic;
- font-weight:normal;
- width:15px;
-}
-
-.yui-calendar .calrowhead {
- border-right-width:2px;
-}
-
-/* Specific changes for calendar running under fonts/reset */
-.yui-calendar .calbody a:hover {background:inherit;}
-p#clear {clear:left; padding-top:10px;}
diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif b/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif
deleted file mode 100644
index a6cc8da5b221d372ea075b3a4a10211d3a23cb51..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/calendar/assets/callt.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif b/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif
deleted file mode 100644
index ee137b2ff769d99132234b67f1e528daf65cb397..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/calendar/assets/calrt.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif b/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif
deleted file mode 100644
index 27e7bc36e4524623db3c43f4d86717a703f37406..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/calendar/assets/calx.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js b/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js
deleted file mode 100644
index 9e60a1c96dafdbc0115d2b7d8eb08cca042d57a5..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/calendar/calendar-debug.js
+++ /dev/null
@@ -1,4331 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state.
-* @namespace YAHOO.util
-* @class Config
-* @constructor
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config = function(owner) {
- if (owner) {
- this.init(owner);
- }
- if (!owner) { YAHOO.log("No owner specified for Config object", "error"); }
-};
-
-YAHOO.util.Config.prototype = {
-
- /**
- * Object reference to the owner of this Config Object
- * @property owner
- * @type Object
- */
- owner : null,
-
- /**
- * Boolean flag that specifies whether a queue is currently being executed
- * @property queueInProgress
- * @type Boolean
- */
- queueInProgress : false,
-
-
- /**
- * Validates that the value passed in is a Boolean.
- * @method checkBoolean
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkBoolean: function(val) {
- if (typeof val == 'boolean') {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Validates that the value passed in is a number.
- * @method checkNumber
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkNumber: function(val) {
- if (isNaN(val)) {
- return false;
- } else {
- return true;
- }
- }
-};
-
-
-/**
-* Initializes the configuration Object and all of its local members.
-* @method init
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config.prototype.init = function(owner) {
-
- this.owner = owner;
-
- /**
- * Object reference to the owner of this Config Object
- * @event configChangedEvent
- */
- this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged");
- this.queueInProgress = false;
-
- /* Private Members */
-
- /**
- * Maintains the local collection of configuration property objects and their specified values
- * @property config
- * @private
- * @type Object
- */
- var config = {};
-
- /**
- * Maintains the local collection of configuration property objects as they were initially applied.
- * This object is used when resetting a property.
- * @property initialConfig
- * @private
- * @type Object
- */
- var initialConfig = {};
-
- /**
- * Maintains the local, normalized CustomEvent queue
- * @property eventQueue
- * @private
- * @type Object
- */
- var eventQueue = [];
-
- /**
- * Fires a configuration property event using the specified value.
- * @method fireEvent
- * @private
- * @param {String} key The configuration property's name
- * @param {value} Object The value of the correct type for the property
- */
- var fireEvent = function( key, value ) {
- YAHOO.log("Firing Config event: " + key + "=" + value, "info");
- key = key.toLowerCase();
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- property.event.fire(value);
- }
- };
- /* End Private Members */
-
- /**
- * Adds a property to the Config Object's private config hash.
- * @method addProperty
- * @param {String} key The configuration property's name
- * @param {Object} propertyObject The Object containing all of this property's arguments
- */
- this.addProperty = function( key, propertyObject ) {
- key = key.toLowerCase();
- YAHOO.log("Added property: " + key, "info");
-
- config[key] = propertyObject;
-
- propertyObject.event = new YAHOO.util.CustomEvent(key);
- propertyObject.key = key;
-
- if (propertyObject.handler) {
- propertyObject.event.subscribe(propertyObject.handler, this.owner, true);
- }
-
- this.setProperty(key, propertyObject.value, true);
-
- if (! propertyObject.suppressEvent) {
- this.queueProperty(key, propertyObject.value);
- }
- };
-
- /**
- * Returns a key-value configuration map of the values currently set in the Config Object.
- * @method getConfig
- * @return {Object} The current config, represented in a key-value map
- */
- this.getConfig = function() {
- var cfg = {};
-
- for (var prop in config) {
- var property = config[prop];
- if (typeof property != 'undefined' && property.event) {
- cfg[prop] = property.value;
- }
- }
-
- return cfg;
- };
-
- /**
- * Returns the value of specified property.
- * @method getProperty
- * @param {String} key The name of the property
- * @return {Object} The value of the specified property
- */
- this.getProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- return property.value;
- } else {
- return undefined;
- }
- };
-
- /**
- * Resets the specified property's value to its initial value.
- * @method resetProperty
- * @param {String} key The name of the property
- * @return {Boolean} True is the property was reset, false if not
- */
- this.resetProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (initialConfig[key] && initialConfig[key] != 'undefined') {
- this.setProperty(key, initialConfig[key]);
- }
- return true;
- } else {
- return false;
- }
- };
-
- /**
- * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired.
- * @method setProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @param {Boolean} silent Whether the value should be set silently, without firing the property event.
- * @return {Boolean} True, if the set was successful, false if it failed.
- */
- this.setProperty = function(key, value, silent) {
- key = key.toLowerCase();
- YAHOO.log("setProperty: " + key + "=" + value, "info");
-
- if (this.queueInProgress && ! silent) {
- this.queueProperty(key,value); // Currently running through a queue...
- return true;
- } else {
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
- property.value = value;
- if (! silent) {
- fireEvent(key, value);
- this.configChangedEvent.fire([key, value]);
- }
- return true;
- }
- } else {
- return false;
- }
- }
- };
-
- /**
- * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is
- * moved from its current position to the end of the queue.
- * @method queueProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @return {Boolean} true, if the set was successful, false if it failed.
- */
- this.queueProperty = function(key, value) {
- key = key.toLowerCase();
- YAHOO.log("queueProperty: " + key + "=" + value, "info");
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
-
- if (typeof value != 'undefined') {
- property.value = value;
- } else {
- value = property.value;
- }
-
- var foundDuplicate = false;
-
- for (var i=0;i 11) {
- while (newMonth > 11) {
- newMonth -= 12;
- years += 1;
- }
- }
-
- d.setMonth(newMonth);
- d.setFullYear(date.getFullYear() + years);
- break;
- case this.DAY:
- d.setDate(date.getDate() + amount);
- break;
- case this.YEAR:
- d.setFullYear(date.getFullYear() + amount);
- break;
- case this.WEEK:
- d.setDate(date.getDate() + (amount * 7));
- break;
- }
- return d;
- },
-
- /**
- * Subtracts the specified amount of time from the this instance.
- * @method subtract
- * @param {Date} date The JavaScript Date object to perform subtraction on
- * @param {Number} field The this field constant to be used for performing subtraction.
- * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
- * @return {Date} The resulting Date object
- */
- subtract : function(date, field, amount) {
- return this.add(date, field, (amount*-1));
- },
-
- /**
- * Determines whether a given date is before another date on the calendar.
- * @method before
- * @param {Date} date The Date object to compare with the compare argument
- * @param {Date} compareTo The Date object to use for the comparison
- * @return {Boolean} true if the date occurs before the compared date; false if not.
- */
- before : function(date, compareTo) {
- var ms = compareTo.getTime();
- if (date.getTime() < ms) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Determines whether a given date is after another date on the calendar.
- * @method after
- * @param {Date} date The Date object to compare with the compare argument
- * @param {Date} compareTo The Date object to use for the comparison
- * @return {Boolean} true if the date occurs after the compared date; false if not.
- */
- after : function(date, compareTo) {
- var ms = compareTo.getTime();
- if (date.getTime() > ms) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Determines whether a given date is between two other dates on the calendar.
- * @method between
- * @param {Date} date The date to check for
- * @param {Date} dateBegin The start of the range
- * @param {Date} dateEnd The end of the range
- * @return {Boolean} true if the date occurs between the compared dates; false if not.
- */
- between : function(date, dateBegin, dateEnd) {
- if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Retrieves a JavaScript Date object representing January 1 of any given year.
- * @method getJan1
- * @param {Number} calendarYear The calendar year for which to retrieve January 1
- * @return {Date} January 1 of the calendar year specified.
- */
- getJan1 : function(calendarYear) {
- return new Date(calendarYear,0,1);
- },
-
- /**
- * Calculates the number of days the specified date is from January 1 of the specified calendar year.
- * Passing January 1 to this function would return an offset value of zero.
- * @method getDayOffset
- * @param {Date} date The JavaScript date for which to find the offset
- * @param {Number} calendarYear The calendar year to use for determining the offset
- * @return {Number} The number of days since January 1 of the given year
- */
- getDayOffset : function(date, calendarYear) {
- var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-
- // Find the number of days the passed in date is away from the calendar year start
- var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
- return dayOffset;
- },
-
- /**
- * Calculates the week number for the given date. This function assumes that week 1 is the
- * week in which January 1 appears, regardless of whether the week consists of a full 7 days.
- * The calendar year can be specified to help find what a the week number would be for a given
- * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or
- * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction
- * easily.
- * @method getWeekNumber
- * @param {Date} date The JavaScript date for which to find the week number
- * @param {Number} calendarYear OPTIONAL - The calendar year to use for determining the week number. Default is
- * the calendar year of parameter "date".
- * @param {Number} weekStartsOn OPTIONAL - The integer (0-6) representing which day a week begins on. Default is 0 (for Sunday).
- * @return {Number} The week number of the given date.
- */
- getWeekNumber : function(date, calendarYear) {
- date = this.clearTime(date);
- var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS));
-
- var jan1 = new Date(nearestThurs.getFullYear(),0,1);
- var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1;
-
- var weekNum = Math.ceil((dayOfYear)/ 7);
- return weekNum;
- },
-
- /**
- * Determines if a given week overlaps two different years.
- * @method isYearOverlapWeek
- * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
- * @return {Boolean} true if the date overlaps two different years.
- */
- isYearOverlapWeek : function(weekBeginDate) {
- var overlaps = false;
- var nextWeek = this.add(weekBeginDate, this.DAY, 6);
- if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
- overlaps = true;
- }
- return overlaps;
- },
-
- /**
- * Determines if a given week overlaps two different months.
- * @method isMonthOverlapWeek
- * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
- * @return {Boolean} true if the date overlaps two different months.
- */
- isMonthOverlapWeek : function(weekBeginDate) {
- var overlaps = false;
- var nextWeek = this.add(weekBeginDate, this.DAY, 6);
- if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
- overlaps = true;
- }
- return overlaps;
- },
-
- /**
- * Gets the first day of a month containing a given date.
- * @method findMonthStart
- * @param {Date} date The JavaScript Date used to calculate the month start
- * @return {Date} The JavaScript Date representing the first day of the month
- */
- findMonthStart : function(date) {
- var start = new Date(date.getFullYear(), date.getMonth(), 1);
- return start;
- },
-
- /**
- * Gets the last day of a month containing a given date.
- * @method findMonthEnd
- * @param {Date} date The JavaScript Date used to calculate the month end
- * @return {Date} The JavaScript Date representing the last day of the month
- */
- findMonthEnd : function(date) {
- var start = this.findMonthStart(date);
- var nextMonth = this.add(start, this.MONTH, 1);
- var end = this.subtract(nextMonth, this.DAY, 1);
- return end;
- },
-
- /**
- * Clears the time fields from a given date, effectively setting the time to 12 noon.
- * @method clearTime
- * @param {Date} date The JavaScript Date for which the time fields will be cleared
- * @return {Date} The JavaScript Date cleared of all time fields
- */
- clearTime : function(date) {
- date.setHours(12,0,0,0);
- return date;
- }
-};
-
-/**
-* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month ("one-up") or two-month ("two-up") interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
-* @module calendar
-* @title Calendar
-* @namespace YAHOO.widget
-* @requires yahoo,dom,event
-*/
-
-/**
-* Calendar is the base class for the Calendar widget. In its most basic
-* implementation, it has the ability to render a calendar widget on the page
-* that can be manipulated to select a single date, move back and forth between
-* months and years.
-* To construct the placeholder for the calendar widget, the code is as
-* follows:
-*
-*
-*
-* Note that the table can be replaced with any kind of element.
-*
-* @namespace YAHOO.widget
-* @class Calendar
-* @constructor
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.Calendar = function(id, containerId, config) {
- this.init(id, containerId, config);
-};
-
-/**
-* The path to be used for images loaded for the Calendar
-* @property YAHOO.widget.Calendar.IMG_ROOT
-* @static
-* @deprecated You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
-* @type String
-*/
-YAHOO.widget.Calendar.IMG_ROOT = null;
-
-/**
-* Type constant used for renderers to represent an individual date (M/D/Y)
-* @property YAHOO.widget.Calendar.DATE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.DATE = "D";
-
-/**
-* Type constant used for renderers to represent an individual date across any year (M/D)
-* @property YAHOO.widget.Calendar.MONTH_DAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.WEEKDAY = "WD";
-
-/**
-* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
-* @property YAHOO.widget.Calendar.RANGE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.MONTH = "M";
-
-/**
-* Constant that represents the total number of date cells that are displayed in a given month
-* @property YAHOO.widget.Calendar.DISPLAY_DAYS
-* @static
-* @final
-* @type Number
-*/
-YAHOO.widget.Calendar.DISPLAY_DAYS = 42;
-
-/**
-* Constant used for halting the execution of the remainder of the render stack
-* @property YAHOO.widget.Calendar.STOP_RENDER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.STOP_RENDER = "S";
-
-YAHOO.widget.Calendar.prototype = {
-
- /**
- * The configuration object used to set up the calendars various locale and style options.
- * @property Config
- * @private
- * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
- * @type Object
- */
- Config : null,
-
- /**
- * The parent CalendarGroup, only to be set explicitly by the parent group
- * @property parent
- * @type CalendarGroup
- */
- parent : null,
-
- /**
- * The index of this item in the parent group
- * @property index
- * @type Number
- */
- index : -1,
-
- /**
- * The collection of calendar table cells
- * @property cells
- * @type HTMLTableCellElement[]
- */
- cells : null,
-
- /**
- * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
- * @property cellDates
- * @type Array[](Number[])
- */
- cellDates : null,
-
- /**
- * The id that uniquely identifies this calendar. This id should match the id of the placeholder element on the page.
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
- * @property oDomContainer
- * @type HTMLElement
- */
- oDomContainer : null,
-
- /**
- * A Date object representing today's date.
- * @property today
- * @type Date
- */
- today : null,
-
- /**
- * The list of render functions, along with required parameters, used to render cells.
- * @property renderStack
- * @type Array[]
- */
- renderStack : null,
-
- /**
- * A copy of the initial render functions created before rendering.
- * @property _renderStack
- * @private
- * @type Array
- */
- _renderStack : null,
-
- /**
- * The private list of initially selected dates.
- * @property _selectedDates
- * @private
- * @type Array
- */
- _selectedDates : null,
-
- /**
- * A map of DOM event handlers to attach to cells associated with specific CSS class names
- * @property domEventMap
- * @type Object
- */
- domEventMap : null
-};
-
-
-
-/**
-* Initializes the Calendar widget.
-* @method init
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.Calendar.prototype.init = function(id, containerId, config) {
- this.logger = new YAHOO.widget.LogWriter("Calendar_Core " + id);
- this.initEvents();
- this.today = new Date();
- YAHOO.widget.DateMath.clearTime(this.today);
-
- this.id = id;
- this.oDomContainer = document.getElementById(containerId);
- if (! this.oDomContainer) { this.logger.log("No valid container present.", "error"); }
-
- /**
- * The Config object used to hold the configuration variables for the Calendar
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- /**
- * The local object which contains the Calendar's options
- * @property Options
- * @type Object
- */
- this.Options = {};
-
- /**
- * The local object which contains the Calendar's locale settings
- * @property Locale
- * @type Object
- */
- this.Locale = {};
-
- this.initStyles();
-
- YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
- YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
-
- this.cellDates = [];
- this.cells = [];
- this.renderStack = [];
- this._renderStack = [];
-
- this.setupConfig();
-
- if (config) {
- this.cfg.applyConfig(config, true);
- }
-
- this.cfg.fireQueue();
-};
-
-/**
-* Renders the built-in IFRAME shim for the IE6 and below
-* @method configIframe
-*/
-YAHOO.widget.Calendar.prototype.configIframe = function(type, args, obj) {
- var useIframe = args[0];
-
- if (YAHOO.util.Dom.inDocument(this.oDomContainer)) {
- if (useIframe) {
- var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position");
-
- if (this.browser == "ie" && (pos == "absolute" || pos == "relative")) {
- if (! YAHOO.util.Dom.inDocument(this.iframe)) {
- this.iframe = document.createElement("iframe");
- this.iframe.src = "javascript:false;";
- YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0");
- this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
- }
- }
- } else {
- if (this.iframe) {
- if (this.iframe.parentNode) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
- this.iframe = null;
- }
- }
- }
-};
-
-/**
-* Default handler for the "title" property
-* @method configTitle
-*/
-YAHOO.widget.Calendar.prototype.configTitle = function(type, args, obj) {
- var title = args[0];
- var close = this.cfg.getProperty("close");
-
- var titleDiv;
-
- if (title && title !== "") {
- titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
- titleDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
- titleDiv.innerHTML = title;
- this.oDomContainer.insertBefore(titleDiv, this.oDomContainer.firstChild);
- YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
- } else {
- titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-
- if (titleDiv) {
- YAHOO.util.Event.purgeElement(titleDiv);
- this.oDomContainer.removeChild(titleDiv);
- }
- if (! close) {
- YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
- }
- }
-};
-
-/**
-* Default handler for the "close" property
-* @method configClose
-*/
-YAHOO.widget.Calendar.prototype.configClose = function(type, args, obj) {
- var close = args[0];
- var title = this.cfg.getProperty("title");
-
- var DEPR_CLOSE_PATH = "us/my/bn/x_d.gif";
-
- var linkClose;
-
- if (close === true) {
- linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || document.createElement("a");
- linkClose.href = "javascript:void(null);";
- linkClose.className = "link-close";
- YAHOO.util.Event.addListener(linkClose, "click", this.hide, this, true);
-
- if (YAHOO.widget.Calendar.IMG_ROOT !== null) {
- var imgClose = document.createElement("img");
- imgClose.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
- imgClose.className = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE;
- linkClose.appendChild(imgClose);
- } else {
- linkClose.innerHTML = ' ';
- }
-
- this.oDomContainer.appendChild(linkClose);
- YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
- } else {
- linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null;
- if (linkClose) {
- YAHOO.util.Event.purgeElement(linkClose);
- this.oDomContainer.removeChild(linkClose);
- }
- if (! title || title === "") {
- YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
- }
- }
-};
-
-/**
-* Initializes Calendar's built-in CustomEvents
-* @method initEvents
-*/
-YAHOO.widget.Calendar.prototype.initEvents = function() {
-
- /**
- * Fired before a selection is made
- * @event beforeSelectEvent
- */
- this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect");
-
- /**
- * Fired when a selection is made
- * @event selectEvent
- * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
- */
- this.selectEvent = new YAHOO.util.CustomEvent("select");
-
- /**
- * Fired before a selection is made
- * @event beforeDeselectEvent
- */
- this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect");
-
- /**
- * Fired when a selection is made
- * @event deselectEvent
- * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
- */
- this.deselectEvent = new YAHOO.util.CustomEvent("deselect");
-
- /**
- * Fired when the Calendar page is changed
- * @event changePageEvent
- */
- this.changePageEvent = new YAHOO.util.CustomEvent("changePage");
-
- /**
- * Fired before the Calendar is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * Fired when the Calendar is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * Fired when the Calendar is reset
- * @event resetEvent
- */
- this.resetEvent = new YAHOO.util.CustomEvent("reset");
-
- /**
- * Fired when the Calendar is cleared
- * @event clearEvent
- */
- this.clearEvent = new YAHOO.util.CustomEvent("clear");
-
- this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true);
- this.selectEvent.subscribe(this.onSelect, this, true);
- this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true);
- this.deselectEvent.subscribe(this.onDeselect, this, true);
- this.changePageEvent.subscribe(this.onChangePage, this, true);
- this.renderEvent.subscribe(this.onRender, this, true);
- this.resetEvent.subscribe(this.onReset, this, true);
- this.clearEvent.subscribe(this.onClear, this, true);
-};
-
-
-/**
-* The default event function that is attached to a date link within a calendar cell
-* when the calendar is rendered.
-* @method doSelectCell
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doSelectCell = function(e, cal) {
- var target = YAHOO.util.Event.getTarget(e);
-
- var cell,index,d,date;
-
- while (target.tagName.toLowerCase() != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- cell = target;
-
- if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
- index = cell.id.split("cell")[1];
- d = cal.cellDates[index];
- date = new Date(d[0],d[1]-1,d[2]);
-
- var link;
-
- cal.logger.log("Selecting cell " + index + " via click", "info");
- if (cal.Options.MULTI_SELECT) {
- link = cell.getElementsByTagName("a")[0];
- if (link) {
- link.blur();
- }
-
- var cellDate = cal.cellDates[index];
- var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
-
- if (cellDateIndex > -1) {
- cal.deselectCell(index);
- } else {
- cal.selectCell(index);
- }
-
- } else {
- link = cell.getElementsByTagName("a")[0];
- if (link) {
- link.blur();
- }
- cal.selectCell(index);
- }
- }
-};
-
-/**
-* The event that is executed when the user hovers over a cell
-* @method doCellMouseOver
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doCellMouseOver = function(e, cal) {
- var target;
- if (e) {
- target = YAHOO.util.Event.getTarget(e);
- } else {
- target = this;
- }
-
- while (target.tagName.toLowerCase() != "td") {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- YAHOO.util.Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
- }
-};
-
-/**
-* The event that is executed when the user moves the mouse out of a cell
-* @method doCellMouseOut
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doCellMouseOut = function(e, cal) {
- var target;
- if (e) {
- target = YAHOO.util.Event.getTarget(e);
- } else {
- target = this;
- }
-
- while (target.tagName.toLowerCase() != "td") {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
- }
-};
-
-YAHOO.widget.Calendar.prototype.setupConfig = function() {
-
- /**
- * The month/year representing the current visible Calendar date (mm/yyyy)
- * @config pagedate
- * @type String
- * @default today's date
- */
- this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } );
-
- /**
- * The date or range of dates representing the current Calendar selection
- * @config selected
- * @type String
- * @default []
- */
- this.cfg.addProperty("selected", { value:[], handler:this.configSelected } );
-
- /**
- * The title to display above the Calendar's month header
- * @config title
- * @type String
- * @default ""
- */
- this.cfg.addProperty("title", { value:"", handler:this.configTitle } );
-
- /**
- * Whether or not a close button should be displayed for this Calendar
- * @config close
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("close", { value:false, handler:this.configClose } );
-
- /**
- * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
- * @config iframe
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("iframe", { value:true, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-
- /**
- * The minimum selectable date in the current Calendar (mm/dd/yyyy)
- * @config mindate
- * @type String
- * @default null
- */
- this.cfg.addProperty("mindate", { value:null, handler:this.configMinDate } );
-
- /**
- * The maximum selectable date in the current Calendar (mm/dd/yyyy)
- * @config maxdate
- * @type String
- * @default null
- */
- this.cfg.addProperty("maxdate", { value:null, handler:this.configMaxDate } );
-
-
- // Options properties
-
- /**
- * True if the Calendar should allow multiple selections. False by default.
- * @config MULTI_SELECT
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * The weekday the week begins on. Default is 0 (Sunday).
- * @config START_WEEKDAY
- * @type number
- * @default 0
- */
- this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.configOptions, validator:this.cfg.checkNumber } );
-
- /**
- * True if the Calendar should show weekday labels. True by default.
- * @config SHOW_WEEKDAYS
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row headers. False by default.
- * @config SHOW_WEEK_HEADER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row footers. False by default.
- * @config SHOW_WEEK_FOOTER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
- * @config HIDE_BLANK_WEEKS
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * The image that should be used for the left navigation arrow.
- * @config NAV_ARROW_LEFT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.configOptions } );
-
- /**
- * The image that should be used for the right navigation arrow.
- * @config NAV_ARROW_RIGHT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.configOptions } );
-
- // Locale properties
-
- /**
- * The short month labels for the current locale.
- * @config MONTHS_SHORT
- * @type String[]
- * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
- */
- this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.configLocale } );
-
- /**
- * The long month labels for the current locale.
- * @config MONTHS_LONG
- * @type String[]
- * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
- */
- this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.configLocale } );
-
- /**
- * The 1-character weekday labels for the current locale.
- * @config WEEKDAYS_1CHAR
- * @type String[]
- * @default ["S", "M", "T", "W", "T", "F", "S"]
- */
- this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.configLocale } );
-
- /**
- * The short weekday labels for the current locale.
- * @config WEEKDAYS_SHORT
- * @type String[]
- * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
- */
- this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.configLocale } );
-
- /**
- * The medium weekday labels for the current locale.
- * @config WEEKDAYS_MEDIUM
- * @type String[]
- * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- */
- this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.configLocale } );
-
- /**
- * The long weekday labels for the current locale.
- * @config WEEKDAYS_LONG
- * @type String[]
- * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- */
- this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.configLocale } );
-
- /**
- * Refreshes the locale values used to build the Calendar.
- * @method refreshLocale
- * @private
- */
- var refreshLocale = function() {
- this.cfg.refireEvent("LOCALE_MONTHS");
- this.cfg.refireEvent("LOCALE_WEEKDAYS");
- };
-
- this.cfg.subscribeToConfigEvent("START_WEEKDAY", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("MONTHS_SHORT", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("MONTHS_LONG", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG", refreshLocale, this, true);
-
- /**
- * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
- * @config LOCALE_MONTHS
- * @type String
- * @default "long"
- */
- this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.configLocaleValues } );
-
- /**
- * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
- * @config LOCALE_WEEKDAYS
- * @type String
- * @default "short"
- */
- this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.configLocaleValues } );
-
- /**
- * The value used to delimit individual dates in a date string passed to various Calendar functions.
- * @config DATE_DELIMITER
- * @type String
- * @default ","
- */
- this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.configLocale } );
-
- /**
- * The value used to delimit date fields in a date string passed to various Calendar functions.
- * @config DATE_FIELD_DELIMITER
- * @type String
- * @default "/"
- */
- this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.configLocale } );
-
- /**
- * The value used to delimit date ranges in a date string passed to various Calendar functions.
- * @config DATE_RANGE_DELIMITER
- * @type String
- * @default "-"
- */
- this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.configLocale } );
-
- /**
- * The position of the month in a month/year date string
- * @config MY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/year date string
- * @config MY_YEAR_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day date string
- * @config MD_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/year date string
- * @config MD_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day/year date string
- * @config MDY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/day/year date string
- * @config MDY_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/day/year date string
- * @config MDY_YEAR_POSITION
- * @type Number
- * @default 3
- */
- this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.configLocale, validator:this.cfg.checkNumber } );
-};
-
-/**
-* The default handler for the "pagedate" property
-* @method configPageDate
-*/
-YAHOO.widget.Calendar.prototype.configPageDate = function(type, args, obj) {
- this.cfg.setProperty("pagedate", this._parsePageDate(args[0]), true);
-};
-
-/**
-* The default handler for the "mindate" property
-* @method configMinDate
-*/
-YAHOO.widget.Calendar.prototype.configMinDate = function(type, args, obj) {
- var val = args[0];
- if (typeof val == 'string') {
- val = this._parseDate(val);
- this.cfg.setProperty("mindate", new Date(val[0],(val[1]-1),val[2]));
- }
-};
-
-/**
-* The default handler for the "maxdate" property
-* @method configMaxDate
-*/
-YAHOO.widget.Calendar.prototype.configMaxDate = function(type, args, obj) {
- var val = args[0];
- if (typeof val == 'string') {
- val = this._parseDate(val);
- this.cfg.setProperty("maxdate", new Date(val[0],(val[1]-1),val[2]));
- }
-};
-
-/**
-* The default handler for the "selected" property
-* @method configSelected
-*/
-YAHOO.widget.Calendar.prototype.configSelected = function(type, args, obj) {
- var selected = args[0];
-
- if (selected) {
- if (typeof selected == 'string') {
- this.cfg.setProperty("selected", this._parseDates(selected), true);
- }
- }
- if (! this._selectedDates) {
- this._selectedDates = this.cfg.getProperty("selected");
- }
-};
-
-/**
-* The default handler for all configuration options properties
-* @method configOptions
-*/
-YAHOO.widget.Calendar.prototype.configOptions = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
- this.Options[type] = val;
-};
-
-/**
-* The default handler for all configuration locale properties
-* @method configLocale
-*/
-YAHOO.widget.Calendar.prototype.configLocale = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
- this.Locale[type] = val;
-
- this.cfg.refireEvent("LOCALE_MONTHS");
- this.cfg.refireEvent("LOCALE_WEEKDAYS");
-
-};
-
-/**
-* The default handler for all configuration locale field length properties
-* @method configLocaleValues
-*/
-YAHOO.widget.Calendar.prototype.configLocaleValues = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
-
- switch (type) {
- case "LOCALE_MONTHS":
- switch (val) {
- case "short":
- this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_SHORT").concat();
- break;
- case "long":
- this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_LONG").concat();
- break;
- }
- break;
- case "LOCALE_WEEKDAYS":
- switch (val) {
- case "1char":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_1CHAR").concat();
- break;
- case "short":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_SHORT").concat();
- break;
- case "medium":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_MEDIUM").concat();
- break;
- case "long":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_LONG").concat();
- break;
- }
-
- var START_WEEKDAY = this.cfg.getProperty("START_WEEKDAY");
-
- if (START_WEEKDAY > 0) {
- for (var w=0;w";
- html[html.length] = "";
- html[html.length] = '';
- html[html.length] = ' ';
-
- if (this.cfg.getProperty("SHOW_WEEKDAYS")) {
- html = this.buildWeekdays(html);
- }
-
- html[html.length] = '';
-
- return html;
-};
-
-/**
-* Renders the Calendar's weekday headers.
-* @method buildWeekdays
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.buildWeekdays = function(html) {
-
- html[html.length] = '';
-
- if (this.cfg.getProperty("SHOW_WEEK_HEADER")) {
- html[html.length] = ' ';
- }
-
- for(var i=0;i' + this.Locale.LOCALE_WEEKDAYS[i] + '';
- }
-
- if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) {
- html[html.length] = ' ';
- }
-
- html[html.length] = ' ';
-
- return html;
-};
-
-/**
-* Renders the calendar body.
-* @method renderBody
-* @param {Date} workingDate The current working Date being used for the render process
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderBody = function(workingDate, html) {
- this.logger.log("Rendering body", "info");
-
- var startDay = this.cfg.getProperty("START_WEEKDAY");
-
- this.preMonthDays = workingDate.getDay();
- if (startDay > 0) {
- this.preMonthDays -= startDay;
- }
- if (this.preMonthDays < 0) {
- this.preMonthDays += 7;
- }
-
- this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();
- this.postMonthDays = YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
- this.logger.log(this.preMonthDays + " preciding out-of-month days", "info");
- this.logger.log(this.monthDays + " month days", "info");
- this.logger.log(this.postMonthDays + " post-month days", "info");
-
- workingDate = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays);
- this.logger.log("Calendar page starts on " + workingDate, "info");
-
- var useDate,weekNum,weekClass;
- useDate = this.cfg.getProperty("pagedate");
-
- html[html.length] = '';
-
- var i = 0;
-
- var tempDiv = document.createElement("div");
- var cell = document.createElement("td");
- tempDiv.appendChild(cell);
-
- var jan1 = new Date(useDate.getFullYear(),0,1);
-
- var cal = this.parent || this;
-
- for (var r=0;r<6;r++) {
-
- weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), startDay);
-
- weekClass = "w" + weekNum;
-
- if (r !== 0 && this.isDateOOM(workingDate) && this.cfg.getProperty("HIDE_BLANK_WEEKS") === true) {
- break;
- } else {
-
- html[html.length] = '';
-
- if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { html = this.renderRowHeader(weekNum, html); }
-
- for (var d=0;d<7;d++){ // Render actual days
-
- var cellRenderers = [];
-
- this.clearElement(cell);
-
- YAHOO.util.Dom.addClass(cell, "calcell");
-
- cell.id = this.id + "_cell" + i;
- this.logger.log("Rendering cell " + cell.id + " (" + workingDate.getFullYear() + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
-
- cell.innerHTML = i;
-
- var renderer = null;
-
- if (workingDate.getFullYear() == this.today.getFullYear() &&
- workingDate.getMonth() == this.today.getMonth() &&
- workingDate.getDate() == this.today.getDate()) {
- cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
- }
-
- this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]; // Add this date to cellDates
-
- if (this.isDateOOM(workingDate)) {
- cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
- } else {
-
- YAHOO.util.Dom.addClass(cell, "wd" + workingDate.getDay());
- YAHOO.util.Dom.addClass(cell, "d" + workingDate.getDate());
-
- for (var s=0;s= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
- renderer = rArray[2];
-
- if (workingDate.getTime()==d2.getTime()) {
- this.renderStack.splice(s,1);
- }
- }
- break;
- case YAHOO.widget.Calendar.WEEKDAY:
-
- var weekday = rArray[1][0];
- if (workingDate.getDay()+1 == weekday) {
- renderer = rArray[2];
- }
- break;
- case YAHOO.widget.Calendar.MONTH:
-
- month = rArray[1][0];
- if (workingDate.getMonth()+1 == month) {
- renderer = rArray[2];
- }
- break;
- }
-
- if (renderer) {
- cellRenderers[cellRenderers.length]=renderer;
- }
- }
-
- }
-
- if (this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]) > -1) {
- cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected;
- }
-
- var mindate = this.cfg.getProperty("mindate");
- var maxdate = this.cfg.getProperty("maxdate");
-
- if (mindate) {
- mindate = YAHOO.widget.DateMath.clearTime(mindate);
- }
- if (maxdate) {
- maxdate = YAHOO.widget.DateMath.clearTime(maxdate);
- }
-
- if (
- (mindate && (workingDate.getTime() < mindate.getTime())) ||
- (maxdate && (workingDate.getTime() > maxdate.getTime()))
- ) {
- cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
- } else {
- cellRenderers[cellRenderers.length]=cal.styleCellDefault;
- cellRenderers[cellRenderers.length]=cal.renderCellDefault;
- }
-
-
-
- for (var x=0;x= 0 && i <= 6) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP);
- }
- if ((i % 7) === 0) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
- }
- if (((i+1) % 7) === 0) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
- }
-
- var postDays = this.postMonthDays;
- if (postDays >= 7 && this.cfg.getProperty("HIDE_BLANK_WEEKS")) {
- var blankWeeks = Math.floor(postDays/7);
- for (var p=0;p= ((this.preMonthDays+postDays+this.monthDays)-7)) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
- }
-
- html[html.length] = tempDiv.innerHTML;
-
- i++;
- }
-
- if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { html = this.renderRowFooter(weekNum, html); }
-
- html[html.length] = ' ';
- }
- }
-
- html[html.length] = ' ';
-
- return html;
-};
-
-/**
-* Renders the calendar footer. In the default implementation, there is
-* no footer.
-* @method renderFooter
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderFooter = function(html) { return html; };
-
-/**
-* Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
-* when the method is called: renderHeader, renderBody, renderFooter.
-* Refer to the documentation for those methods for information on
-* individual render tasks.
-* @method render
-*/
-YAHOO.widget.Calendar.prototype.render = function() {
- this.beforeRenderEvent.fire();
-
- // Find starting day of the current month
- var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate"));
-
- this.resetRenderers();
- this.cellDates.length = 0;
-
- YAHOO.util.Event.purgeElement(this.oDomContainer, true);
-
- var html = [];
-
- html[html.length] = '';
- html = this.renderHeader(html);
- html = this.renderBody(workingDate, html);
- html = this.renderFooter(html);
- html[html.length] = '
';
-
- this.oDomContainer.innerHTML = html.join("\n");
-
- this.applyListeners();
- this.cells = this.oDomContainer.getElementsByTagName("td");
-
- this.cfg.refireEvent("title");
- this.cfg.refireEvent("close");
- this.cfg.refireEvent("iframe");
-
- this.renderEvent.fire();
-};
-
-/**
-* Applies the Calendar's DOM listeners to applicable elements.
-* @method applyListeners
-*/
-YAHOO.widget.Calendar.prototype.applyListeners = function() {
-
- var root = this.oDomContainer;
- var cal = this.parent || this;
-
- var linkLeft, linkRight;
-
- linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, "a", root);
- linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, "a", root);
-
- if (linkLeft) {
- this.linkLeft = linkLeft[0];
- YAHOO.util.Event.addListener(this.linkLeft, "mousedown", cal.previousMonth, cal, true);
- }
-
- if (linkRight) {
- this.linkRight = linkRight[0];
- YAHOO.util.Event.addListener(this.linkRight, "mousedown", cal.nextMonth, cal, true);
- }
-
- if (this.domEventMap) {
- var el,elements;
- for (var cls in this.domEventMap) {
- if (YAHOO.lang.hasOwnProperty(this.domEventMap, cls)) {
- var items = this.domEventMap[cls];
-
- if (! (items instanceof Array)) {
- items = [items];
- }
-
- for (var i=0;i' + weekNum + '';
- return html;
-};
-
-/**
-* Renders the row footer for a week.
-* @method renderRowFooter
-* @param {Number} weekNum The week number of the current row
-* @param {Array} cell The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderRowFooter = function(weekNum, html) {
- html[html.length] = '';
- return html;
-};
-
-/**
-* Renders a single standard calendar cell in the calendar widget table.
-* All logic for determining how a standard default cell will be rendered is
-* encapsulated in this method, and must be accounted for when extending the
-* widget class.
-* @method renderCellDefault
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellDefault = function(workingDate, cell) {
- cell.innerHTML = '' + this.buildDayLabel(workingDate) + " ";
-};
-
-/**
-* Styles a selectable cell.
-* @method styleCellDefault
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.styleCellDefault = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
-};
-
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight1 style
-* @method renderCellStyleHighlight1
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight2 style
-* @method renderCellStyleHighlight2
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight3 style
-* @method renderCellStyleHighlight3
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight4 style
-* @method renderCellStyleHighlight4
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
-};
-
-/**
-* Applies the default style used for rendering today's date to the current calendar cell
-* @method renderCellStyleToday
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleToday = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
-};
-
-/**
-* Applies the default style used for rendering selected dates to the current calendar cell
-* @method renderCellStyleSelected
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleSelected = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
-};
-
-/**
-* Applies the default style used for rendering dates that are not a part of the current
-* month (preceding or trailing the cells for the current month)
-* @method renderCellNotThisMonth
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderCellNotThisMonth = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM);
- cell.innerHTML=workingDate.getDate();
- return YAHOO.widget.Calendar.STOP_RENDER;
-};
-
-/**
-* Renders the current calendar cell as a non-selectable "black-out" date using the default
-* restricted style.
-* @method renderBodyCellRestricted
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderBodyCellRestricted = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL);
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
- cell.innerHTML=workingDate.getDate();
- return YAHOO.widget.Calendar.STOP_RENDER;
-};
-
-// END BUILT-IN TABLE CELL RENDERERS
-
-// BEGIN MONTH NAVIGATION METHODS
-
-/**
-* Adds the designated number of months to the current calendar month, and sets the current
-* calendar page date to the new month.
-* @method addMonths
-* @param {Number} count The number of months to add to the current calendar
-*/
-YAHOO.widget.Calendar.prototype.addMonths = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Subtracts the designated number of months from the current calendar month, and sets the current
-* calendar page date to the new month.
-* @method subtractMonths
-* @param {Number} count The number of months to subtract from the current calendar
-*/
-YAHOO.widget.Calendar.prototype.subtractMonths = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Adds the designated number of years to the current calendar, and sets the current
-* calendar page date to the new month.
-* @method addYears
-* @param {Number} count The number of years to add to the current calendar
-*/
-YAHOO.widget.Calendar.prototype.addYears = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Subtcats the designated number of years from the current calendar, and sets the current
-* calendar page date to the new month.
-* @method subtractYears
-* @param {Number} count The number of years to subtract from the current calendar
-*/
-YAHOO.widget.Calendar.prototype.subtractYears = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Navigates to the next month page in the calendar widget.
-* @method nextMonth
-*/
-YAHOO.widget.Calendar.prototype.nextMonth = function() {
- this.addMonths(1);
-};
-
-/**
-* Navigates to the previous month page in the calendar widget.
-* @method previousMonth
-*/
-YAHOO.widget.Calendar.prototype.previousMonth = function() {
- this.subtractMonths(1);
-};
-
-/**
-* Navigates to the next year in the currently selected month in the calendar widget.
-* @method nextYear
-*/
-YAHOO.widget.Calendar.prototype.nextYear = function() {
- this.addYears(1);
-};
-
-/**
-* Navigates to the previous year in the currently selected month in the calendar widget.
-* @method previousYear
-*/
-YAHOO.widget.Calendar.prototype.previousYear = function() {
- this.subtractYears(1);
-};
-
-// END MONTH NAVIGATION METHODS
-
-// BEGIN SELECTION METHODS
-
-/**
-* Resets the calendar widget to the originally selected month and year, and
-* sets the calendar to the initial selection(s).
-* @method reset
-*/
-YAHOO.widget.Calendar.prototype.reset = function() {
- this.cfg.resetProperty("selected");
- this.cfg.resetProperty("pagedate");
- this.resetEvent.fire();
-};
-
-/**
-* Clears the selected dates in the current calendar widget and sets the calendar
-* to the current month and year.
-* @method clear
-*/
-YAHOO.widget.Calendar.prototype.clear = function() {
- this.cfg.setProperty("selected", []);
- this.cfg.setProperty("pagedate", new Date(this.today.getTime()));
- this.clearEvent.fire();
-};
-
-/**
-* Selects a date or a collection of dates on the current calendar. This method, by default,
-* does not call the render method explicitly. Once selection has completed, render must be
-* called for the changes to be reflected visually.
-* @method select
-* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
-* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-* This method can also take a JavaScript Date object or an array of Date objects.
-* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-*/
-YAHOO.widget.Calendar.prototype.select = function(date) {
- this.logger.log("Select: " + date, "info");
- this.beforeSelectEvent.fire();
-
- var selected = this.cfg.getProperty("selected");
- var aToBeSelected = this._toFieldArray(date);
- this.logger.log("Selection field array: " + aToBeSelected, "info");
-
- for (var a=0;a -1) {
- if (this.cfg.getProperty("pagedate").getMonth() == dCellDate.getMonth() &&
- this.cfg.getProperty("pagedate").getFullYear() == dCellDate.getFullYear()) {
- YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
- }
-
- selected.splice(cellDateIndex, 1);
- }
-
-
- if (this.parent) {
- this.parent.cfg.setProperty("selected", selected);
- } else {
- this.cfg.setProperty("selected", selected);
- }
-
- this.deselectEvent.fire(selectDate);
- return this.getSelectedDates();
-};
-
-/**
-* Deselects all dates on the current calendar.
-* @method deselectAll
-* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-* Assuming that this function executes properly, the return value should be an empty array.
-* However, the empty array is returned for the sake of being able to check the selection status
-* of the calendar.
-*/
-YAHOO.widget.Calendar.prototype.deselectAll = function() {
- this.beforeDeselectEvent.fire();
-
- var selected = this.cfg.getProperty("selected");
- var count = selected.length;
- var sel = selected.concat();
-
- if (this.parent) {
- this.parent.cfg.setProperty("selected", []);
- } else {
- this.cfg.setProperty("selected", []);
- }
-
- if (count > 0) {
- this.deselectEvent.fire(sel);
- }
-
- return this.getSelectedDates();
-};
-
-// END SELECTION METHODS
-
-// BEGIN TYPE CONVERSION METHODS
-
-/**
-* Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
-* used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
-* @method _toFieldArray
-* @private
-* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-* This method can also take a JavaScript Date object or an array of Date objects.
-* @return {Array[](Number[])} Array of date field arrays
-*/
-YAHOO.widget.Calendar.prototype._toFieldArray = function(date) {
- var returnDate = [];
-
- if (date instanceof Date) {
- returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
- } else if (typeof date == 'string') {
- returnDate = this._parseDates(date);
- } else if (date instanceof Array) {
- for (var i=0;i
-*
-*
-*
-* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
-* @namespace YAHOO.widget
-* @class CalendarGroup
-* @constructor
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.CalendarGroup = function(id, containerId, config) {
- if (arguments.length > 0) {
- this.init(id, containerId, config);
- }
-};
-
-/**
-* Initializes the calendar group. All subclasses must call this method in order for the
-* group to be initialized properly.
-* @method init
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.CalendarGroup.prototype.init = function(id, containerId, config) {
- this.logger = new YAHOO.widget.LogWriter("CalendarGroup " + id);
- this.initEvents();
- this.initStyles();
-
- /**
- * The collection of Calendar pages contained within the CalendarGroup
- * @property pages
- * @type YAHOO.widget.Calendar[]
- */
- this.pages = [];
-
- /**
- * The unique id associated with the CalendarGroup
- * @property id
- * @type String
- */
- this.id = id;
-
- /**
- * The unique id associated with the CalendarGroup container
- * @property containerId
- * @type String
- */
- this.containerId = containerId;
-
- /**
- * The outer containing element for the CalendarGroup
- * @property oDomContainer
- * @type HTMLElement
- */
- this.oDomContainer = document.getElementById(containerId);
-
- YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER);
- YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_MULTI_UP);
-
- /**
- * The Config object used to hold the configuration variables for the CalendarGroup
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- /**
- * The local object which contains the CalendarGroup's options
- * @property Options
- * @type Object
- */
- this.Options = {};
-
- /**
- * The local object which contains the CalendarGroup's locale settings
- * @property Locale
- * @type Object
- */
- this.Locale = {};
-
- this.setupConfig();
-
- if (config) {
- this.cfg.applyConfig(config, true);
- }
-
- this.cfg.fireQueue();
-
- // OPERA HACK FOR MISWRAPPED FLOATS
- if (this.browser == "opera"){
- var fixWidth = function() {
- var startW = this.oDomContainer.offsetWidth;
- var w = 0;
- for (var p=0;p 0) {
- this.oDomContainer.style.width = w + "px";
- }
- };
- this.renderEvent.subscribe(fixWidth,this,true);
- }
- this.logger.log("Initialized " + this.pages.length + "-page CalendarGroup", "info");
-};
-
-
-YAHOO.widget.CalendarGroup.prototype.setupConfig = function() {
- /**
- * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
- * @config pages
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("pages", { value:2, validator:this.cfg.checkNumber, handler:this.configPages } );
-
- /**
- * The month/year representing the current visible Calendar date (mm/yyyy)
- * @config pagedate
- * @type String
- * @default today's date
- */
- this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } );
-
- /**
- * The date or range of dates representing the current Calendar selection
- * @config selected
- * @type String
- * @default []
- */
- this.cfg.addProperty("selected", { value:[], handler:this.delegateConfig } );
-
- /**
- * The title to display above the CalendarGroup's month header
- * @config title
- * @type String
- * @default ""
- */
- this.cfg.addProperty("title", { value:"", handler:this.configTitle } );
-
- /**
- * Whether or not a close button should be displayed for this CalendarGroup
- * @config close
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("close", { value:false, handler:this.configClose } );
-
- /**
- * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
- * @config iframe
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("iframe", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The minimum selectable date in the current Calendar (mm/dd/yyyy)
- * @config mindate
- * @type String
- * @default null
- */
- this.cfg.addProperty("mindate", { value:null, handler:this.delegateConfig } );
-
- /**
- * The maximum selectable date in the current Calendar (mm/dd/yyyy)
- * @config maxdate
- * @type String
- * @default null
- */
- this.cfg.addProperty("maxdate", { value:null, handler:this.delegateConfig } );
-
- // Options properties
-
- /**
- * True if the Calendar should allow multiple selections. False by default.
- * @config MULTI_SELECT
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The weekday the week begins on. Default is 0 (Sunday).
- * @config START_WEEKDAY
- * @type number
- * @default 0
- */
- this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * True if the Calendar should show weekday labels. True by default.
- * @config SHOW_WEEKDAYS
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row headers. False by default.
- * @config SHOW_WEEK_HEADER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row footers. False by default.
- * @config SHOW_WEEK_FOOTER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
- * @config HIDE_BLANK_WEEKS
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The image that should be used for the left navigation arrow.
- * @config NAV_ARROW_LEFT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.delegateConfig } );
-
- /**
- * The image that should be used for the right navigation arrow.
- * @config NAV_ARROW_RIGHT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.delegateConfig } );
-
- // Locale properties
-
- /**
- * The short month labels for the current locale.
- * @config MONTHS_SHORT
- * @type String[]
- * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
- */
- this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.delegateConfig } );
-
- /**
- * The long month labels for the current locale.
- * @config MONTHS_LONG
- * @type String[]
- * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
- */
- this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.delegateConfig } );
-
- /**
- * The 1-character weekday labels for the current locale.
- * @config WEEKDAYS_1CHAR
- * @type String[]
- * @default ["S", "M", "T", "W", "T", "F", "S"]
- */
- this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.delegateConfig } );
-
- /**
- * The short weekday labels for the current locale.
- * @config WEEKDAYS_SHORT
- * @type String[]
- * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
- */
- this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.delegateConfig } );
-
- /**
- * The medium weekday labels for the current locale.
- * @config WEEKDAYS_MEDIUM
- * @type String[]
- * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- */
- this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.delegateConfig } );
-
- /**
- * The long weekday labels for the current locale.
- * @config WEEKDAYS_LONG
- * @type String[]
- * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- */
- this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.delegateConfig } );
-
- /**
- * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
- * @config LOCALE_MONTHS
- * @type String
- * @default "long"
- */
- this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.delegateConfig } );
-
- /**
- * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
- * @config LOCALE_WEEKDAYS
- * @type String
- * @default "short"
- */
- this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit individual dates in a date string passed to various Calendar functions.
- * @config DATE_DELIMITER
- * @type String
- * @default ","
- */
- this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit date fields in a date string passed to various Calendar functions.
- * @config DATE_FIELD_DELIMITER
- * @type String
- * @default "/"
- */
- this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit date ranges in a date string passed to various Calendar functions.
- * @config DATE_RANGE_DELIMITER
- * @type String
- * @default "-"
- */
- this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.delegateConfig } );
-
- /**
- * The position of the month in a month/year date string
- * @config MY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/year date string
- * @config MY_YEAR_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day date string
- * @config MD_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/year date string
- * @config MD_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day/year date string
- * @config MDY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/day/year date string
- * @config MDY_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/day/year date string
- * @config MDY_YEAR_POSITION
- * @type Number
- * @default 3
- */
- this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
-};
-
-/**
-* Initializes CalendarGroup's built-in CustomEvents
-* @method initEvents
-*/
-YAHOO.widget.CalendarGroup.prototype.initEvents = function() {
- var me = this;
-
- /**
- * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
- * @method sub
- * @private
- * @param {Function} fn The function to subscribe to this CustomEvent
- * @param {Object} obj The CustomEvent's scope object
- * @param {Boolean} bOverride Whether or not to apply scope correction
- */
- var sub = function(fn, obj, bOverride) {
- for (var p=0;p0) {
- year+=1;
- }
- cal.setYear(year);
- }
-};
-/**
-* Calls the render function of all child calendars within the group.
-* @method render
-*/
-YAHOO.widget.CalendarGroup.prototype.render = function() {
- this.renderHeader();
- for (var p=0;p=0;--p) {
- var cal = this.pages[p];
- cal.previousMonth();
- }
-};
-
-/**
-* Navigates to the next year in the currently selected month in the calendar widget.
-* @method nextYear
-*/
-YAHOO.widget.CalendarGroup.prototype.nextYear = function() {
- for (var p=0;p 11)) {
- var DM = YAHOO.widget.DateMath;
- var newDate = DM.add(date, DM.MONTH, iMonth-date.getMonth());
- date.setTime(newDate.getTime());
- } else {
- date.setMonth(iMonth);
- }
-};
-
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_MULTI_UP = "multi";
-
-/**
-* CSS class representing the title for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPTITLE = "title";
-
-/**
-* CSS class representing the close icon for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
-* @static
-* @final
-* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
-* Calendar's Style.CSS_CLOSE property now represents the CSS class used to render the close icon
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.augment(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel",
- "buildMonthLabel",
- "renderOutOfBoundsDate",
- "renderRowHeader",
- "renderRowFooter",
- "renderCellDefault",
- "styleCellDefault",
- "renderCellStyleHighlight1",
- "renderCellStyleHighlight2",
- "renderCellStyleHighlight3",
- "renderCellStyleHighlight4",
- "renderCellStyleToday",
- "renderCellStyleSelected",
- "renderCellNotThisMonth",
- "renderBodyCellRestricted",
- "initStyles",
- "configTitle",
- "configClose",
- "hide",
- "show",
- "browser");
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} A string representation of the CalendarGroup object.
-*/
-YAHOO.widget.CalendarGroup.prototype.toString = function() {
- return "CalendarGroup " + this.id;
-};
-
-YAHOO.widget.CalGrp = YAHOO.widget.CalendarGroup;
-
-/**
-* @class YAHOO.widget.Calendar2up
-* @extends YAHOO.widget.CalendarGroup
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Calendar2up = function(id, containerId, config) {
- this.init(id, containerId, config);
-};
-
-YAHOO.extend(YAHOO.widget.Calendar2up, YAHOO.widget.CalendarGroup);
-
-/**
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
-
-YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar-min.js b/interface/ispconfig/interface/js/yui/calendar/calendar-min.js
deleted file mode 100644
index ca96867314166139229fb1f331ad830e9787f9c6..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/calendar/calendar-min.js
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.util.Config=function(owner){if(owner){this.init(owner);}};YAHOO.util.Config.prototype={owner:null,queueInProgress:false,checkBoolean:function(val){if(typeof val=='boolean'){return true;}else{return false;}},checkNumber:function(val){if(isNaN(val)){return false;}else{return true;}}};YAHOO.util.Config.prototype.init=function(owner){this.owner=owner;this.configChangedEvent=new YAHOO.util.CustomEvent("configChanged");this.queueInProgress=false;var config={};var initialConfig={};var eventQueue=[];var fireEvent=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){property.event.fire(value);}};this.addProperty=function(key,propertyObject){key=key.toLowerCase();config[key]=propertyObject;propertyObject.event=new YAHOO.util.CustomEvent(key);propertyObject.key=key;if(propertyObject.handler){propertyObject.event.subscribe(propertyObject.handler,this.owner,true);}
-this.setProperty(key,propertyObject.value,true);if(!propertyObject.suppressEvent){this.queueProperty(key,propertyObject.value);}};this.getConfig=function(){var cfg={};for(var prop in config){var property=config[prop];if(typeof property!='undefined'&&property.event){cfg[prop]=property.value;}}
-return cfg;};this.getProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.value;}else{return undefined;}};this.resetProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(initialConfig[key]&&initialConfig[key]!='undefined'){this.setProperty(key,initialConfig[key]);}
-return true;}else{return false;}};this.setProperty=function(key,value,silent){key=key.toLowerCase();if(this.queueInProgress&&!silent){this.queueProperty(key,value);return true;}else{var property=config[key];if(typeof property!='undefined'&&property.event){if(property.validator&&!property.validator(value)){return false;}else{property.value=value;if(!silent){fireEvent(key,value);this.configChangedEvent.fire([key,value]);}
-return true;}}else{return false;}}};this.queueProperty=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(typeof value!='undefined'&&property.validator&&!property.validator(value)){return false;}else{if(typeof value!='undefined'){property.value=value;}else{value=property.value;}
-var foundDuplicate=false;for(var i=0;i11){while(newMonth>11){newMonth-=12;years+=1;}}
-d.setMonth(newMonth);d.setFullYear(date.getFullYear()+years);break;case this.DAY:d.setDate(date.getDate()+amount);break;case this.YEAR:d.setFullYear(date.getFullYear()+amount);break;case this.WEEK:d.setDate(date.getDate()+(amount*7));break;}
-return d;},subtract:function(date,field,amount){return this.add(date,field,(amount*-1));},before:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()ms){return true;}else{return false;}},between:function(date,dateBegin,dateEnd){if(this.after(date,dateBegin)&&this.before(date,dateEnd)){return true;}else{return false;}},getJan1:function(calendarYear){return new Date(calendarYear,0,1);},getDayOffset:function(date,calendarYear){var beginYear=this.getJan1(calendarYear);var dayOffset=Math.ceil((date.getTime()-beginYear.getTime())/this.ONE_DAY_MS);return dayOffset;},getWeekNumber:function(date,calendarYear){date=this.clearTime(date);var nearestThurs=new Date(date.getTime()+(4*this.ONE_DAY_MS)-((date.getDay())*this.ONE_DAY_MS));var jan1=new Date(nearestThurs.getFullYear(),0,1);var dayOfYear=((nearestThurs.getTime()-jan1.getTime())/this.ONE_DAY_MS)-1;var weekNum=Math.ceil((dayOfYear)/7);return weekNum;},isYearOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getFullYear()!=weekBeginDate.getFullYear()){overlaps=true;}
-return overlaps;},isMonthOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getMonth()!=weekBeginDate.getMonth()){overlaps=true;}
-return overlaps;},findMonthStart:function(date){var start=new Date(date.getFullYear(),date.getMonth(),1);return start;},findMonthEnd:function(date){var start=this.findMonthStart(date);var nextMonth=this.add(start,this.MONTH,1);var end=this.subtract(nextMonth,this.DAY,1);return end;},clearTime:function(date){date.setHours(12,0,0,0);return date;}};YAHOO.widget.Calendar=function(id,containerId,config){this.init(id,containerId,config);};YAHOO.widget.Calendar.IMG_ROOT=null;YAHOO.widget.Calendar.DATE="D";YAHOO.widget.Calendar.MONTH_DAY="MD";YAHOO.widget.Calendar.WEEKDAY="WD";YAHOO.widget.Calendar.RANGE="R";YAHOO.widget.Calendar.MONTH="M";YAHOO.widget.Calendar.DISPLAY_DAYS=42;YAHOO.widget.Calendar.STOP_RENDER="S";YAHOO.widget.Calendar.prototype={Config:null,parent:null,index:-1,cells:null,cellDates:null,id:null,oDomContainer:null,today:null,renderStack:null,_renderStack:null,_selectedDates:null,domEventMap:null};YAHOO.widget.Calendar.prototype.init=function(id,containerId,config){this.initEvents();this.today=new Date();YAHOO.widget.DateMath.clearTime(this.today);this.id=id;this.oDomContainer=document.getElementById(containerId);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();if(config){this.cfg.applyConfig(config,true);}
-this.cfg.fireQueue();};YAHOO.widget.Calendar.prototype.configIframe=function(type,args,obj){var useIframe=args[0];if(YAHOO.util.Dom.inDocument(this.oDomContainer)){if(useIframe){var pos=YAHOO.util.Dom.getStyle(this.oDomContainer,"position");if(this.browser=="ie"&&(pos=="absolute"||pos=="relative")){if(!YAHOO.util.Dom.inDocument(this.iframe)){this.iframe=document.createElement("iframe");this.iframe.src="javascript:false;";YAHOO.util.Dom.setStyle(this.iframe,"opacity","0");this.oDomContainer.insertBefore(this.iframe,this.oDomContainer.firstChild);}}}else{if(this.iframe){if(this.iframe.parentNode){this.iframe.parentNode.removeChild(this.iframe);}
-this.iframe=null;}}}};YAHOO.widget.Calendar.prototype.configTitle=function(type,args,obj){var title=args[0];var close=this.cfg.getProperty("close");var titleDiv;if(title&&title!==""){titleDiv=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");titleDiv.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;titleDiv.innerHTML=title;this.oDomContainer.insertBefore(titleDiv,this.oDomContainer.firstChild);YAHOO.util.Dom.addClass(this.oDomContainer,"withtitle");}else{titleDiv=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;if(titleDiv){YAHOO.util.Event.purgeElement(titleDiv);this.oDomContainer.removeChild(titleDiv);}
-if(!close){YAHOO.util.Dom.removeClass(this.oDomContainer,"withtitle");}}};YAHOO.widget.Calendar.prototype.configClose=function(type,args,obj){var close=args[0];var title=this.cfg.getProperty("title");var DEPR_CLOSE_PATH="us/my/bn/x_d.gif";var linkClose;if(close===true){linkClose=YAHOO.util.Dom.getElementsByClassName("link-close","a",this.oDomContainer)[0]||document.createElement("a");linkClose.href="javascript:void(null);";linkClose.className="link-close";YAHOO.util.Event.addListener(linkClose,"click",this.hide,this,true);if(YAHOO.widget.Calendar.IMG_ROOT!==null){var imgClose=document.createElement("img");imgClose.src=YAHOO.widget.Calendar.IMG_ROOT+DEPR_CLOSE_PATH;imgClose.className=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE;linkClose.appendChild(imgClose);}else{linkClose.innerHTML=' ';}
-this.oDomContainer.appendChild(linkClose);YAHOO.util.Dom.addClass(this.oDomContainer,"withtitle");}else{linkClose=YAHOO.util.Dom.getElementsByClassName("link-close","a",this.oDomContainer)[0]||null;if(linkClose){YAHOO.util.Event.purgeElement(linkClose);this.oDomContainer.removeChild(linkClose);}
-if(!title||title===""){YAHOO.util.Dom.removeClass(this.oDomContainer,"withtitle");}}};YAHOO.widget.Calendar.prototype.initEvents=function(){this.beforeSelectEvent=new YAHOO.util.CustomEvent("beforeSelect");this.selectEvent=new YAHOO.util.CustomEvent("select");this.beforeDeselectEvent=new YAHOO.util.CustomEvent("beforeDeselect");this.deselectEvent=new YAHOO.util.CustomEvent("deselect");this.changePageEvent=new YAHOO.util.CustomEvent("changePage");this.beforeRenderEvent=new YAHOO.util.CustomEvent("beforeRender");this.renderEvent=new YAHOO.util.CustomEvent("render");this.resetEvent=new YAHOO.util.CustomEvent("reset");this.clearEvent=new YAHOO.util.CustomEvent("clear");this.beforeSelectEvent.subscribe(this.onBeforeSelect,this,true);this.selectEvent.subscribe(this.onSelect,this,true);this.beforeDeselectEvent.subscribe(this.onBeforeDeselect,this,true);this.deselectEvent.subscribe(this.onDeselect,this,true);this.changePageEvent.subscribe(this.onChangePage,this,true);this.renderEvent.subscribe(this.onRender,this,true);this.resetEvent.subscribe(this.onReset,this,true);this.clearEvent.subscribe(this.onClear,this,true);};YAHOO.widget.Calendar.prototype.doSelectCell=function(e,cal){var target=YAHOO.util.Event.getTarget(e);var cell,index,d,date;while(target.tagName.toLowerCase()!="td"&&!YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}}
-cell=target;if(YAHOO.util.Dom.hasClass(cell,cal.Style.CSS_CELL_SELECTABLE)){index=cell.id.split("cell")[1];d=cal.cellDates[index];date=new Date(d[0],d[1]-1,d[2]);var link;if(cal.Options.MULTI_SELECT){link=cell.getElementsByTagName("a")[0];if(link){link.blur();}
-var cellDate=cal.cellDates[index];var cellDateIndex=cal._indexOfSelectedFieldArray(cellDate);if(cellDateIndex>-1){cal.deselectCell(index);}else{cal.selectCell(index);}}else{link=cell.getElementsByTagName("a")[0];if(link){link.blur();}
-cal.selectCell(index);}}};YAHOO.widget.Calendar.prototype.doCellMouseOver=function(e,cal){var target;if(e){target=YAHOO.util.Event.getTarget(e);}else{target=this;}
-while(target.tagName.toLowerCase()!="td"){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}}
-if(YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.addClass(target,cal.Style.CSS_CELL_HOVER);}};YAHOO.widget.Calendar.prototype.doCellMouseOut=function(e,cal){var target;if(e){target=YAHOO.util.Event.getTarget(e);}else{target=this;}
-while(target.tagName.toLowerCase()!="td"){target=target.parentNode;if(target.tagName.toLowerCase()=="html"){return;}}
-if(YAHOO.util.Dom.hasClass(target,cal.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.removeClass(target,cal.Style.CSS_CELL_HOVER);}};YAHOO.widget.Calendar.prototype.setupConfig=function(){this.cfg.addProperty("pagedate",{value:new Date(),handler:this.configPageDate});this.cfg.addProperty("selected",{value:[],handler:this.configSelected});this.cfg.addProperty("title",{value:"",handler:this.configTitle});this.cfg.addProperty("close",{value:false,handler:this.configClose});this.cfg.addProperty("iframe",{value:true,handler:this.configIframe,validator:this.cfg.checkBoolean});this.cfg.addProperty("mindate",{value:null,handler:this.configMinDate});this.cfg.addProperty("maxdate",{value:null,handler:this.configMaxDate});this.cfg.addProperty("MULTI_SELECT",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("START_WEEKDAY",{value:0,handler:this.configOptions,validator:this.cfg.checkNumber});this.cfg.addProperty("SHOW_WEEKDAYS",{value:true,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_HEADER",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_FOOTER",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("HIDE_BLANK_WEEKS",{value:false,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty("NAV_ARROW_LEFT",{value:null,handler:this.configOptions});this.cfg.addProperty("NAV_ARROW_RIGHT",{value:null,handler:this.configOptions});this.cfg.addProperty("MONTHS_SHORT",{value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],handler:this.configLocale});this.cfg.addProperty("MONTHS_LONG",{value:["January","February","March","April","May","June","July","August","September","October","November","December"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_1CHAR",{value:["S","M","T","W","T","F","S"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_SHORT",{value:["Su","Mo","Tu","We","Th","Fr","Sa"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_MEDIUM",{value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],handler:this.configLocale});this.cfg.addProperty("WEEKDAYS_LONG",{value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],handler:this.configLocale});var refreshLocale=function(){this.cfg.refireEvent("LOCALE_MONTHS");this.cfg.refireEvent("LOCALE_WEEKDAYS");};this.cfg.subscribeToConfigEvent("START_WEEKDAY",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("MONTHS_SHORT",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("MONTHS_LONG",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM",refreshLocale,this,true);this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG",refreshLocale,this,true);this.cfg.addProperty("LOCALE_MONTHS",{value:"long",handler:this.configLocaleValues});this.cfg.addProperty("LOCALE_WEEKDAYS",{value:"short",handler:this.configLocaleValues});this.cfg.addProperty("DATE_DELIMITER",{value:",",handler:this.configLocale});this.cfg.addProperty("DATE_FIELD_DELIMITER",{value:"/",handler:this.configLocale});this.cfg.addProperty("DATE_RANGE_DELIMITER",{value:"-",handler:this.configLocale});this.cfg.addProperty("MY_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MY_YEAR_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_DAY_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_MONTH_POSITION",{value:1,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_DAY_POSITION",{value:2,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_YEAR_POSITION",{value:3,handler:this.configLocale,validator:this.cfg.checkNumber});};YAHOO.widget.Calendar.prototype.configPageDate=function(type,args,obj){this.cfg.setProperty("pagedate",this._parsePageDate(args[0]),true);};YAHOO.widget.Calendar.prototype.configMinDate=function(type,args,obj){var val=args[0];if(typeof val=='string'){val=this._parseDate(val);this.cfg.setProperty("mindate",new Date(val[0],(val[1]-1),val[2]));}};YAHOO.widget.Calendar.prototype.configMaxDate=function(type,args,obj){var val=args[0];if(typeof val=='string'){val=this._parseDate(val);this.cfg.setProperty("maxdate",new Date(val[0],(val[1]-1),val[2]));}};YAHOO.widget.Calendar.prototype.configSelected=function(type,args,obj){var selected=args[0];if(selected){if(typeof selected=='string'){this.cfg.setProperty("selected",this._parseDates(selected),true);}}
-if(!this._selectedDates){this._selectedDates=this.cfg.getProperty("selected");}};YAHOO.widget.Calendar.prototype.configOptions=function(type,args,obj){type=type.toUpperCase();var val=args[0];this.Options[type]=val;};YAHOO.widget.Calendar.prototype.configLocale=function(type,args,obj){type=type.toUpperCase();var val=args[0];this.Locale[type]=val;this.cfg.refireEvent("LOCALE_MONTHS");this.cfg.refireEvent("LOCALE_WEEKDAYS");};YAHOO.widget.Calendar.prototype.configLocaleValues=function(type,args,obj){type=type.toUpperCase();var val=args[0];switch(type){case"LOCALE_MONTHS":switch(val){case"short":this.Locale.LOCALE_MONTHS=this.cfg.getProperty("MONTHS_SHORT").concat();break;case"long":this.Locale.LOCALE_MONTHS=this.cfg.getProperty("MONTHS_LONG").concat();break;}
-break;case"LOCALE_WEEKDAYS":switch(val){case"1char":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_1CHAR").concat();break;case"short":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_SHORT").concat();break;case"medium":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_MEDIUM").concat();break;case"long":this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty("WEEKDAYS_LONG").concat();break;}
-var START_WEEKDAY=this.cfg.getProperty("START_WEEKDAY");if(START_WEEKDAY>0){for(var w=0;w";html[html.length]="";html[html.length]='';html[html.length]=' ';if(this.cfg.getProperty("SHOW_WEEKDAYS")){html=this.buildWeekdays(html);}
-html[html.length]='';return html;};YAHOO.widget.Calendar.prototype.buildWeekdays=function(html){html[html.length]='';if(this.cfg.getProperty("SHOW_WEEK_HEADER")){html[html.length]=' ';}
-for(var i=0;i'+this.Locale.LOCALE_WEEKDAYS[i]+'';}
-if(this.cfg.getProperty("SHOW_WEEK_FOOTER")){html[html.length]=' ';}
-html[html.length]=' ';return html;};YAHOO.widget.Calendar.prototype.renderBody=function(workingDate,html){var startDay=this.cfg.getProperty("START_WEEKDAY");this.preMonthDays=workingDate.getDay();if(startDay>0){this.preMonthDays-=startDay;}
-if(this.preMonthDays<0){this.preMonthDays+=7;}
-this.monthDays=YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();this.postMonthDays=YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;workingDate=YAHOO.widget.DateMath.subtract(workingDate,YAHOO.widget.DateMath.DAY,this.preMonthDays);var useDate,weekNum,weekClass;useDate=this.cfg.getProperty("pagedate");html[html.length]='';var i=0;var tempDiv=document.createElement("div");var cell=document.createElement("td");tempDiv.appendChild(cell);var jan1=new Date(useDate.getFullYear(),0,1);var cal=this.parent||this;for(var r=0;r<6;r++){weekNum=YAHOO.widget.DateMath.getWeekNumber(workingDate,useDate.getFullYear(),startDay);weekClass="w"+weekNum;if(r!==0&&this.isDateOOM(workingDate)&&this.cfg.getProperty("HIDE_BLANK_WEEKS")===true){break;}else{html[html.length]='';if(this.cfg.getProperty("SHOW_WEEK_HEADER")){html=this.renderRowHeader(weekNum,html);}
-for(var d=0;d<7;d++){var cellRenderers=[];this.clearElement(cell);YAHOO.util.Dom.addClass(cell,"calcell");cell.id=this.id+"_cell"+i;cell.innerHTML=i;var renderer=null;if(workingDate.getFullYear()==this.today.getFullYear()&&workingDate.getMonth()==this.today.getMonth()&&workingDate.getDate()==this.today.getDate()){cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;}
-this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];if(this.isDateOOM(workingDate)){cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;}else{YAHOO.util.Dom.addClass(cell,"wd"+workingDate.getDay());YAHOO.util.Dom.addClass(cell,"d"+workingDate.getDate());for(var s=0;s=d1.getTime()&&workingDate.getTime()<=d2.getTime()){renderer=rArray[2];if(workingDate.getTime()==d2.getTime()){this.renderStack.splice(s,1);}}
-break;case YAHOO.widget.Calendar.WEEKDAY:var weekday=rArray[1][0];if(workingDate.getDay()+1==weekday){renderer=rArray[2];}
-break;case YAHOO.widget.Calendar.MONTH:month=rArray[1][0];if(workingDate.getMonth()+1==month){renderer=rArray[2];}
-break;}
-if(renderer){cellRenderers[cellRenderers.length]=renderer;}}}
-if(this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()])>-1){cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected;}
-var mindate=this.cfg.getProperty("mindate");var maxdate=this.cfg.getProperty("maxdate");if(mindate){mindate=YAHOO.widget.DateMath.clearTime(mindate);}
-if(maxdate){maxdate=YAHOO.widget.DateMath.clearTime(maxdate);}
-if((mindate&&(workingDate.getTime()maxdate.getTime()))){cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;}else{cellRenderers[cellRenderers.length]=cal.styleCellDefault;cellRenderers[cellRenderers.length]=cal.renderCellDefault;}
-for(var x=0;x=0&&i<=6){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_TOP);}
-if((i%7)===0){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_LEFT);}
-if(((i+1)%7)===0){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_RIGHT);}
-var postDays=this.postMonthDays;if(postDays>=7&&this.cfg.getProperty("HIDE_BLANK_WEEKS")){var blankWeeks=Math.floor(postDays/7);for(var p=0;p=((this.preMonthDays+postDays+this.monthDays)-7)){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_BOTTOM);}
-html[html.length]=tempDiv.innerHTML;i++;}
-if(this.cfg.getProperty("SHOW_WEEK_FOOTER")){html=this.renderRowFooter(weekNum,html);}
-html[html.length]=' ';}}
-html[html.length]=' ';return html;};YAHOO.widget.Calendar.prototype.renderFooter=function(html){return html;};YAHOO.widget.Calendar.prototype.render=function(){this.beforeRenderEvent.fire();var workingDate=YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate"));this.resetRenderers();this.cellDates.length=0;YAHOO.util.Event.purgeElement(this.oDomContainer,true);var html=[];html[html.length]='';html=this.renderHeader(html);html=this.renderBody(workingDate,html);html=this.renderFooter(html);html[html.length]='
';this.oDomContainer.innerHTML=html.join("\n");this.applyListeners();this.cells=this.oDomContainer.getElementsByTagName("td");this.cfg.refireEvent("title");this.cfg.refireEvent("close");this.cfg.refireEvent("iframe");this.renderEvent.fire();};YAHOO.widget.Calendar.prototype.applyListeners=function(){var root=this.oDomContainer;var cal=this.parent||this;var linkLeft,linkRight;linkLeft=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT,"a",root);linkRight=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT,"a",root);if(linkLeft){this.linkLeft=linkLeft[0];YAHOO.util.Event.addListener(this.linkLeft,"mousedown",cal.previousMonth,cal,true);}
-if(linkRight){this.linkRight=linkRight[0];YAHOO.util.Event.addListener(this.linkRight,"mousedown",cal.nextMonth,cal,true);}
-if(this.domEventMap){var el,elements;for(var cls in this.domEventMap){if(YAHOO.lang.hasOwnProperty(this.domEventMap,cls)){var items=this.domEventMap[cls];if(!(items instanceof Array)){items=[items];}
-for(var i=0;i'+weekNum+'';return html;};YAHOO.widget.Calendar.prototype.renderRowFooter=function(weekNum,html){html[html.length]='';return html;};YAHOO.widget.Calendar.prototype.renderCellDefault=function(workingDate,cell){cell.innerHTML=''+this.buildDayLabel(workingDate)+" ";};YAHOO.widget.Calendar.prototype.styleCellDefault=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_SELECTABLE);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT1);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT2);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT3);};YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_HIGHLIGHT4);};YAHOO.widget.Calendar.prototype.renderCellStyleToday=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_TODAY);};YAHOO.widget.Calendar.prototype.renderCellStyleSelected=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_SELECTED);};YAHOO.widget.Calendar.prototype.renderCellNotThisMonth=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_OOM);cell.innerHTML=workingDate.getDate();return YAHOO.widget.Calendar.STOP_RENDER;};YAHOO.widget.Calendar.prototype.renderBodyCellRestricted=function(workingDate,cell){YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL);YAHOO.util.Dom.addClass(cell,this.Style.CSS_CELL_RESTRICTED);cell.innerHTML=workingDate.getDate();return YAHOO.widget.Calendar.STOP_RENDER;};YAHOO.widget.Calendar.prototype.addMonths=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.MONTH,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.subtractMonths=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.MONTH,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.addYears=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.YEAR,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.subtractYears=function(count){this.cfg.setProperty("pagedate",YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"),YAHOO.widget.DateMath.YEAR,count));this.resetRenderers();this.changePageEvent.fire();};YAHOO.widget.Calendar.prototype.nextMonth=function(){this.addMonths(1);};YAHOO.widget.Calendar.prototype.previousMonth=function(){this.subtractMonths(1);};YAHOO.widget.Calendar.prototype.nextYear=function(){this.addYears(1);};YAHOO.widget.Calendar.prototype.previousYear=function(){this.subtractYears(1);};YAHOO.widget.Calendar.prototype.reset=function(){this.cfg.resetProperty("selected");this.cfg.resetProperty("pagedate");this.resetEvent.fire();};YAHOO.widget.Calendar.prototype.clear=function(){this.cfg.setProperty("selected",[]);this.cfg.setProperty("pagedate",new Date(this.today.getTime()));this.clearEvent.fire();};YAHOO.widget.Calendar.prototype.select=function(date){this.beforeSelectEvent.fire();var selected=this.cfg.getProperty("selected");var aToBeSelected=this._toFieldArray(date);for(var a=0;a-1){if(this.cfg.getProperty("pagedate").getMonth()==dCellDate.getMonth()&&this.cfg.getProperty("pagedate").getFullYear()==dCellDate.getFullYear()){YAHOO.util.Dom.removeClass(cell,this.Style.CSS_CELL_SELECTED);}
-selected.splice(cellDateIndex,1);}
-if(this.parent){this.parent.cfg.setProperty("selected",selected);}else{this.cfg.setProperty("selected",selected);}
-this.deselectEvent.fire(selectDate);return this.getSelectedDates();};YAHOO.widget.Calendar.prototype.deselectAll=function(){this.beforeDeselectEvent.fire();var selected=this.cfg.getProperty("selected");var count=selected.length;var sel=selected.concat();if(this.parent){this.parent.cfg.setProperty("selected",[]);}else{this.cfg.setProperty("selected",[]);}
-if(count>0){this.deselectEvent.fire(sel);}
-return this.getSelectedDates();};YAHOO.widget.Calendar.prototype._toFieldArray=function(date){var returnDate=[];if(date instanceof Date){returnDate=[[date.getFullYear(),date.getMonth()+1,date.getDate()]];}else if(typeof date=='string'){returnDate=this._parseDates(date);}else if(date instanceof Array){for(var i=0;i0){this.init(id,containerId,config);}};YAHOO.widget.CalendarGroup.prototype.init=function(id,containerId,config){this.initEvents();this.initStyles();this.pages=[];this.id=id;this.containerId=containerId;this.oDomContainer=document.getElementById(containerId);YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();if(config){this.cfg.applyConfig(config,true);}
-this.cfg.fireQueue();if(this.browser=="opera"){var fixWidth=function(){var startW=this.oDomContainer.offsetWidth;var w=0;for(var p=0;p0){this.oDomContainer.style.width=w+"px";}};this.renderEvent.subscribe(fixWidth,this,true);}};YAHOO.widget.CalendarGroup.prototype.setupConfig=function(){this.cfg.addProperty("pages",{value:2,validator:this.cfg.checkNumber,handler:this.configPages});this.cfg.addProperty("pagedate",{value:new Date(),handler:this.configPageDate});this.cfg.addProperty("selected",{value:[],handler:this.delegateConfig});this.cfg.addProperty("title",{value:"",handler:this.configTitle});this.cfg.addProperty("close",{value:false,handler:this.configClose});this.cfg.addProperty("iframe",{value:true,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("mindate",{value:null,handler:this.delegateConfig});this.cfg.addProperty("maxdate",{value:null,handler:this.delegateConfig});this.cfg.addProperty("MULTI_SELECT",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("START_WEEKDAY",{value:0,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("SHOW_WEEKDAYS",{value:true,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_HEADER",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("SHOW_WEEK_FOOTER",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("HIDE_BLANK_WEEKS",{value:false,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty("NAV_ARROW_LEFT",{value:null,handler:this.delegateConfig});this.cfg.addProperty("NAV_ARROW_RIGHT",{value:null,handler:this.delegateConfig});this.cfg.addProperty("MONTHS_SHORT",{value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],handler:this.delegateConfig});this.cfg.addProperty("MONTHS_LONG",{value:["January","February","March","April","May","June","July","August","September","October","November","December"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_1CHAR",{value:["S","M","T","W","T","F","S"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_SHORT",{value:["Su","Mo","Tu","We","Th","Fr","Sa"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_MEDIUM",{value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],handler:this.delegateConfig});this.cfg.addProperty("WEEKDAYS_LONG",{value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],handler:this.delegateConfig});this.cfg.addProperty("LOCALE_MONTHS",{value:"long",handler:this.delegateConfig});this.cfg.addProperty("LOCALE_WEEKDAYS",{value:"short",handler:this.delegateConfig});this.cfg.addProperty("DATE_DELIMITER",{value:",",handler:this.delegateConfig});this.cfg.addProperty("DATE_FIELD_DELIMITER",{value:"/",handler:this.delegateConfig});this.cfg.addProperty("DATE_RANGE_DELIMITER",{value:"-",handler:this.delegateConfig});this.cfg.addProperty("MY_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MY_YEAR_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MD_DAY_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_MONTH_POSITION",{value:1,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_DAY_POSITION",{value:2,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty("MDY_YEAR_POSITION",{value:3,handler:this.delegateConfig,validator:this.cfg.checkNumber});};YAHOO.widget.CalendarGroup.prototype.initEvents=function(){var me=this;var sub=function(fn,obj,bOverride){for(var p=0;p0){year+=1;}
-cal.setYear(year);}};YAHOO.widget.CalendarGroup.prototype.render=function(){this.renderHeader();for(var p=0;p=0;--p){var cal=this.pages[p];cal.previousMonth();}};YAHOO.widget.CalendarGroup.prototype.nextYear=function(){for(var p=0;p11)){var DM=YAHOO.widget.DateMath;var newDate=DM.add(date,DM.MONTH,iMonth-date.getMonth());date.setTime(newDate.getTime());}else{date.setMonth(iMonth);}};YAHOO.widget.CalendarGroup.CSS_CONTAINER="yui-calcontainer";YAHOO.widget.CalendarGroup.CSS_MULTI_UP="multi";YAHOO.widget.CalendarGroup.CSS_2UPTITLE="title";YAHOO.widget.CalendarGroup.CSS_2UPCLOSE="close-icon";YAHOO.augment(YAHOO.widget.CalendarGroup,YAHOO.widget.Calendar,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected","renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","hide","show","browser");YAHOO.widget.CalendarGroup.prototype.toString=function(){return"CalendarGroup "+this.id;};YAHOO.widget.CalGrp=YAHOO.widget.CalendarGroup;YAHOO.widget.Calendar2up=function(id,containerId,config){this.init(id,containerId,config);};YAHOO.extend(YAHOO.widget.Calendar2up,YAHOO.widget.CalendarGroup);YAHOO.widget.Cal2up=YAHOO.widget.Calendar2up;YAHOO.register("calendar",YAHOO.widget.Calendar,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/calendar/calendar.js b/interface/ispconfig/interface/js/yui/calendar/calendar.js
deleted file mode 100644
index 160614b0bb32c1db2b9a66c9a8efc267a676c4a9..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/calendar/calendar.js
+++ /dev/null
@@ -1,4309 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state.
-* @namespace YAHOO.util
-* @class Config
-* @constructor
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config = function(owner) {
- if (owner) {
- this.init(owner);
- }
-};
-
-YAHOO.util.Config.prototype = {
-
- /**
- * Object reference to the owner of this Config Object
- * @property owner
- * @type Object
- */
- owner : null,
-
- /**
- * Boolean flag that specifies whether a queue is currently being executed
- * @property queueInProgress
- * @type Boolean
- */
- queueInProgress : false,
-
-
- /**
- * Validates that the value passed in is a Boolean.
- * @method checkBoolean
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkBoolean: function(val) {
- if (typeof val == 'boolean') {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Validates that the value passed in is a number.
- * @method checkNumber
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkNumber: function(val) {
- if (isNaN(val)) {
- return false;
- } else {
- return true;
- }
- }
-};
-
-
-/**
-* Initializes the configuration Object and all of its local members.
-* @method init
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config.prototype.init = function(owner) {
-
- this.owner = owner;
-
- /**
- * Object reference to the owner of this Config Object
- * @event configChangedEvent
- */
- this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged");
- this.queueInProgress = false;
-
- /* Private Members */
-
- /**
- * Maintains the local collection of configuration property objects and their specified values
- * @property config
- * @private
- * @type Object
- */
- var config = {};
-
- /**
- * Maintains the local collection of configuration property objects as they were initially applied.
- * This object is used when resetting a property.
- * @property initialConfig
- * @private
- * @type Object
- */
- var initialConfig = {};
-
- /**
- * Maintains the local, normalized CustomEvent queue
- * @property eventQueue
- * @private
- * @type Object
- */
- var eventQueue = [];
-
- /**
- * Fires a configuration property event using the specified value.
- * @method fireEvent
- * @private
- * @param {String} key The configuration property's name
- * @param {value} Object The value of the correct type for the property
- */
- var fireEvent = function( key, value ) {
- key = key.toLowerCase();
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- property.event.fire(value);
- }
- };
- /* End Private Members */
-
- /**
- * Adds a property to the Config Object's private config hash.
- * @method addProperty
- * @param {String} key The configuration property's name
- * @param {Object} propertyObject The Object containing all of this property's arguments
- */
- this.addProperty = function( key, propertyObject ) {
- key = key.toLowerCase();
-
- config[key] = propertyObject;
-
- propertyObject.event = new YAHOO.util.CustomEvent(key);
- propertyObject.key = key;
-
- if (propertyObject.handler) {
- propertyObject.event.subscribe(propertyObject.handler, this.owner, true);
- }
-
- this.setProperty(key, propertyObject.value, true);
-
- if (! propertyObject.suppressEvent) {
- this.queueProperty(key, propertyObject.value);
- }
- };
-
- /**
- * Returns a key-value configuration map of the values currently set in the Config Object.
- * @method getConfig
- * @return {Object} The current config, represented in a key-value map
- */
- this.getConfig = function() {
- var cfg = {};
-
- for (var prop in config) {
- var property = config[prop];
- if (typeof property != 'undefined' && property.event) {
- cfg[prop] = property.value;
- }
- }
-
- return cfg;
- };
-
- /**
- * Returns the value of specified property.
- * @method getProperty
- * @param {String} key The name of the property
- * @return {Object} The value of the specified property
- */
- this.getProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- return property.value;
- } else {
- return undefined;
- }
- };
-
- /**
- * Resets the specified property's value to its initial value.
- * @method resetProperty
- * @param {String} key The name of the property
- * @return {Boolean} True is the property was reset, false if not
- */
- this.resetProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (initialConfig[key] && initialConfig[key] != 'undefined') {
- this.setProperty(key, initialConfig[key]);
- }
- return true;
- } else {
- return false;
- }
- };
-
- /**
- * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired.
- * @method setProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @param {Boolean} silent Whether the value should be set silently, without firing the property event.
- * @return {Boolean} True, if the set was successful, false if it failed.
- */
- this.setProperty = function(key, value, silent) {
- key = key.toLowerCase();
-
- if (this.queueInProgress && ! silent) {
- this.queueProperty(key,value); // Currently running through a queue...
- return true;
- } else {
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
- property.value = value;
- if (! silent) {
- fireEvent(key, value);
- this.configChangedEvent.fire([key, value]);
- }
- return true;
- }
- } else {
- return false;
- }
- }
- };
-
- /**
- * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is
- * moved from its current position to the end of the queue.
- * @method queueProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @return {Boolean} true, if the set was successful, false if it failed.
- */
- this.queueProperty = function(key, value) {
- key = key.toLowerCase();
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
-
- if (typeof value != 'undefined') {
- property.value = value;
- } else {
- value = property.value;
- }
-
- var foundDuplicate = false;
-
- for (var i=0;i 11) {
- while (newMonth > 11) {
- newMonth -= 12;
- years += 1;
- }
- }
-
- d.setMonth(newMonth);
- d.setFullYear(date.getFullYear() + years);
- break;
- case this.DAY:
- d.setDate(date.getDate() + amount);
- break;
- case this.YEAR:
- d.setFullYear(date.getFullYear() + amount);
- break;
- case this.WEEK:
- d.setDate(date.getDate() + (amount * 7));
- break;
- }
- return d;
- },
-
- /**
- * Subtracts the specified amount of time from the this instance.
- * @method subtract
- * @param {Date} date The JavaScript Date object to perform subtraction on
- * @param {Number} field The this field constant to be used for performing subtraction.
- * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
- * @return {Date} The resulting Date object
- */
- subtract : function(date, field, amount) {
- return this.add(date, field, (amount*-1));
- },
-
- /**
- * Determines whether a given date is before another date on the calendar.
- * @method before
- * @param {Date} date The Date object to compare with the compare argument
- * @param {Date} compareTo The Date object to use for the comparison
- * @return {Boolean} true if the date occurs before the compared date; false if not.
- */
- before : function(date, compareTo) {
- var ms = compareTo.getTime();
- if (date.getTime() < ms) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Determines whether a given date is after another date on the calendar.
- * @method after
- * @param {Date} date The Date object to compare with the compare argument
- * @param {Date} compareTo The Date object to use for the comparison
- * @return {Boolean} true if the date occurs after the compared date; false if not.
- */
- after : function(date, compareTo) {
- var ms = compareTo.getTime();
- if (date.getTime() > ms) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Determines whether a given date is between two other dates on the calendar.
- * @method between
- * @param {Date} date The date to check for
- * @param {Date} dateBegin The start of the range
- * @param {Date} dateEnd The end of the range
- * @return {Boolean} true if the date occurs between the compared dates; false if not.
- */
- between : function(date, dateBegin, dateEnd) {
- if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Retrieves a JavaScript Date object representing January 1 of any given year.
- * @method getJan1
- * @param {Number} calendarYear The calendar year for which to retrieve January 1
- * @return {Date} January 1 of the calendar year specified.
- */
- getJan1 : function(calendarYear) {
- return new Date(calendarYear,0,1);
- },
-
- /**
- * Calculates the number of days the specified date is from January 1 of the specified calendar year.
- * Passing January 1 to this function would return an offset value of zero.
- * @method getDayOffset
- * @param {Date} date The JavaScript date for which to find the offset
- * @param {Number} calendarYear The calendar year to use for determining the offset
- * @return {Number} The number of days since January 1 of the given year
- */
- getDayOffset : function(date, calendarYear) {
- var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
-
- // Find the number of days the passed in date is away from the calendar year start
- var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
- return dayOffset;
- },
-
- /**
- * Calculates the week number for the given date. This function assumes that week 1 is the
- * week in which January 1 appears, regardless of whether the week consists of a full 7 days.
- * The calendar year can be specified to help find what a the week number would be for a given
- * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or
- * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction
- * easily.
- * @method getWeekNumber
- * @param {Date} date The JavaScript date for which to find the week number
- * @param {Number} calendarYear OPTIONAL - The calendar year to use for determining the week number. Default is
- * the calendar year of parameter "date".
- * @param {Number} weekStartsOn OPTIONAL - The integer (0-6) representing which day a week begins on. Default is 0 (for Sunday).
- * @return {Number} The week number of the given date.
- */
- getWeekNumber : function(date, calendarYear) {
- date = this.clearTime(date);
- var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS));
-
- var jan1 = new Date(nearestThurs.getFullYear(),0,1);
- var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1;
-
- var weekNum = Math.ceil((dayOfYear)/ 7);
- return weekNum;
- },
-
- /**
- * Determines if a given week overlaps two different years.
- * @method isYearOverlapWeek
- * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
- * @return {Boolean} true if the date overlaps two different years.
- */
- isYearOverlapWeek : function(weekBeginDate) {
- var overlaps = false;
- var nextWeek = this.add(weekBeginDate, this.DAY, 6);
- if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
- overlaps = true;
- }
- return overlaps;
- },
-
- /**
- * Determines if a given week overlaps two different months.
- * @method isMonthOverlapWeek
- * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
- * @return {Boolean} true if the date overlaps two different months.
- */
- isMonthOverlapWeek : function(weekBeginDate) {
- var overlaps = false;
- var nextWeek = this.add(weekBeginDate, this.DAY, 6);
- if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
- overlaps = true;
- }
- return overlaps;
- },
-
- /**
- * Gets the first day of a month containing a given date.
- * @method findMonthStart
- * @param {Date} date The JavaScript Date used to calculate the month start
- * @return {Date} The JavaScript Date representing the first day of the month
- */
- findMonthStart : function(date) {
- var start = new Date(date.getFullYear(), date.getMonth(), 1);
- return start;
- },
-
- /**
- * Gets the last day of a month containing a given date.
- * @method findMonthEnd
- * @param {Date} date The JavaScript Date used to calculate the month end
- * @return {Date} The JavaScript Date representing the last day of the month
- */
- findMonthEnd : function(date) {
- var start = this.findMonthStart(date);
- var nextMonth = this.add(start, this.MONTH, 1);
- var end = this.subtract(nextMonth, this.DAY, 1);
- return end;
- },
-
- /**
- * Clears the time fields from a given date, effectively setting the time to 12 noon.
- * @method clearTime
- * @param {Date} date The JavaScript Date for which the time fields will be cleared
- * @return {Date} The JavaScript Date cleared of all time fields
- */
- clearTime : function(date) {
- date.setHours(12,0,0,0);
- return date;
- }
-};
-
-/**
-* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month ("one-up") or two-month ("two-up") interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
-* @module calendar
-* @title Calendar
-* @namespace YAHOO.widget
-* @requires yahoo,dom,event
-*/
-
-/**
-* Calendar is the base class for the Calendar widget. In its most basic
-* implementation, it has the ability to render a calendar widget on the page
-* that can be manipulated to select a single date, move back and forth between
-* months and years.
-* To construct the placeholder for the calendar widget, the code is as
-* follows:
-*
-*
-*
-* Note that the table can be replaced with any kind of element.
-*
-* @namespace YAHOO.widget
-* @class Calendar
-* @constructor
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.Calendar = function(id, containerId, config) {
- this.init(id, containerId, config);
-};
-
-/**
-* The path to be used for images loaded for the Calendar
-* @property YAHOO.widget.Calendar.IMG_ROOT
-* @static
-* @deprecated You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
-* @type String
-*/
-YAHOO.widget.Calendar.IMG_ROOT = null;
-
-/**
-* Type constant used for renderers to represent an individual date (M/D/Y)
-* @property YAHOO.widget.Calendar.DATE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.DATE = "D";
-
-/**
-* Type constant used for renderers to represent an individual date across any year (M/D)
-* @property YAHOO.widget.Calendar.MONTH_DAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.WEEKDAY = "WD";
-
-/**
-* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
-* @property YAHOO.widget.Calendar.RANGE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.MONTH = "M";
-
-/**
-* Constant that represents the total number of date cells that are displayed in a given month
-* @property YAHOO.widget.Calendar.DISPLAY_DAYS
-* @static
-* @final
-* @type Number
-*/
-YAHOO.widget.Calendar.DISPLAY_DAYS = 42;
-
-/**
-* Constant used for halting the execution of the remainder of the render stack
-* @property YAHOO.widget.Calendar.STOP_RENDER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Calendar.STOP_RENDER = "S";
-
-YAHOO.widget.Calendar.prototype = {
-
- /**
- * The configuration object used to set up the calendars various locale and style options.
- * @property Config
- * @private
- * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
- * @type Object
- */
- Config : null,
-
- /**
- * The parent CalendarGroup, only to be set explicitly by the parent group
- * @property parent
- * @type CalendarGroup
- */
- parent : null,
-
- /**
- * The index of this item in the parent group
- * @property index
- * @type Number
- */
- index : -1,
-
- /**
- * The collection of calendar table cells
- * @property cells
- * @type HTMLTableCellElement[]
- */
- cells : null,
-
- /**
- * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
- * @property cellDates
- * @type Array[](Number[])
- */
- cellDates : null,
-
- /**
- * The id that uniquely identifies this calendar. This id should match the id of the placeholder element on the page.
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
- * @property oDomContainer
- * @type HTMLElement
- */
- oDomContainer : null,
-
- /**
- * A Date object representing today's date.
- * @property today
- * @type Date
- */
- today : null,
-
- /**
- * The list of render functions, along with required parameters, used to render cells.
- * @property renderStack
- * @type Array[]
- */
- renderStack : null,
-
- /**
- * A copy of the initial render functions created before rendering.
- * @property _renderStack
- * @private
- * @type Array
- */
- _renderStack : null,
-
- /**
- * The private list of initially selected dates.
- * @property _selectedDates
- * @private
- * @type Array
- */
- _selectedDates : null,
-
- /**
- * A map of DOM event handlers to attach to cells associated with specific CSS class names
- * @property domEventMap
- * @type Object
- */
- domEventMap : null
-};
-
-
-
-/**
-* Initializes the Calendar widget.
-* @method init
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.Calendar.prototype.init = function(id, containerId, config) {
- this.initEvents();
- this.today = new Date();
- YAHOO.widget.DateMath.clearTime(this.today);
-
- this.id = id;
- this.oDomContainer = document.getElementById(containerId);
-
- /**
- * The Config object used to hold the configuration variables for the Calendar
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- /**
- * The local object which contains the Calendar's options
- * @property Options
- * @type Object
- */
- this.Options = {};
-
- /**
- * The local object which contains the Calendar's locale settings
- * @property Locale
- * @type Object
- */
- this.Locale = {};
-
- this.initStyles();
-
- YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
- YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
-
- this.cellDates = [];
- this.cells = [];
- this.renderStack = [];
- this._renderStack = [];
-
- this.setupConfig();
-
- if (config) {
- this.cfg.applyConfig(config, true);
- }
-
- this.cfg.fireQueue();
-};
-
-/**
-* Renders the built-in IFRAME shim for the IE6 and below
-* @method configIframe
-*/
-YAHOO.widget.Calendar.prototype.configIframe = function(type, args, obj) {
- var useIframe = args[0];
-
- if (YAHOO.util.Dom.inDocument(this.oDomContainer)) {
- if (useIframe) {
- var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position");
-
- if (this.browser == "ie" && (pos == "absolute" || pos == "relative")) {
- if (! YAHOO.util.Dom.inDocument(this.iframe)) {
- this.iframe = document.createElement("iframe");
- this.iframe.src = "javascript:false;";
- YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0");
- this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
- }
- }
- } else {
- if (this.iframe) {
- if (this.iframe.parentNode) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
- this.iframe = null;
- }
- }
- }
-};
-
-/**
-* Default handler for the "title" property
-* @method configTitle
-*/
-YAHOO.widget.Calendar.prototype.configTitle = function(type, args, obj) {
- var title = args[0];
- var close = this.cfg.getProperty("close");
-
- var titleDiv;
-
- if (title && title !== "") {
- titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
- titleDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
- titleDiv.innerHTML = title;
- this.oDomContainer.insertBefore(titleDiv, this.oDomContainer.firstChild);
- YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
- } else {
- titleDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-
- if (titleDiv) {
- YAHOO.util.Event.purgeElement(titleDiv);
- this.oDomContainer.removeChild(titleDiv);
- }
- if (! close) {
- YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
- }
- }
-};
-
-/**
-* Default handler for the "close" property
-* @method configClose
-*/
-YAHOO.widget.Calendar.prototype.configClose = function(type, args, obj) {
- var close = args[0];
- var title = this.cfg.getProperty("title");
-
- var DEPR_CLOSE_PATH = "us/my/bn/x_d.gif";
-
- var linkClose;
-
- if (close === true) {
- linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || document.createElement("a");
- linkClose.href = "javascript:void(null);";
- linkClose.className = "link-close";
- YAHOO.util.Event.addListener(linkClose, "click", this.hide, this, true);
-
- if (YAHOO.widget.Calendar.IMG_ROOT !== null) {
- var imgClose = document.createElement("img");
- imgClose.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
- imgClose.className = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE;
- linkClose.appendChild(imgClose);
- } else {
- linkClose.innerHTML = ' ';
- }
-
- this.oDomContainer.appendChild(linkClose);
- YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
- } else {
- linkClose = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null;
- if (linkClose) {
- YAHOO.util.Event.purgeElement(linkClose);
- this.oDomContainer.removeChild(linkClose);
- }
- if (! title || title === "") {
- YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
- }
- }
-};
-
-/**
-* Initializes Calendar's built-in CustomEvents
-* @method initEvents
-*/
-YAHOO.widget.Calendar.prototype.initEvents = function() {
-
- /**
- * Fired before a selection is made
- * @event beforeSelectEvent
- */
- this.beforeSelectEvent = new YAHOO.util.CustomEvent("beforeSelect");
-
- /**
- * Fired when a selection is made
- * @event selectEvent
- * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
- */
- this.selectEvent = new YAHOO.util.CustomEvent("select");
-
- /**
- * Fired before a selection is made
- * @event beforeDeselectEvent
- */
- this.beforeDeselectEvent = new YAHOO.util.CustomEvent("beforeDeselect");
-
- /**
- * Fired when a selection is made
- * @event deselectEvent
- * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
- */
- this.deselectEvent = new YAHOO.util.CustomEvent("deselect");
-
- /**
- * Fired when the Calendar page is changed
- * @event changePageEvent
- */
- this.changePageEvent = new YAHOO.util.CustomEvent("changePage");
-
- /**
- * Fired before the Calendar is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * Fired when the Calendar is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * Fired when the Calendar is reset
- * @event resetEvent
- */
- this.resetEvent = new YAHOO.util.CustomEvent("reset");
-
- /**
- * Fired when the Calendar is cleared
- * @event clearEvent
- */
- this.clearEvent = new YAHOO.util.CustomEvent("clear");
-
- this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true);
- this.selectEvent.subscribe(this.onSelect, this, true);
- this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true);
- this.deselectEvent.subscribe(this.onDeselect, this, true);
- this.changePageEvent.subscribe(this.onChangePage, this, true);
- this.renderEvent.subscribe(this.onRender, this, true);
- this.resetEvent.subscribe(this.onReset, this, true);
- this.clearEvent.subscribe(this.onClear, this, true);
-};
-
-
-/**
-* The default event function that is attached to a date link within a calendar cell
-* when the calendar is rendered.
-* @method doSelectCell
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doSelectCell = function(e, cal) {
- var target = YAHOO.util.Event.getTarget(e);
-
- var cell,index,d,date;
-
- while (target.tagName.toLowerCase() != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- cell = target;
-
- if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
- index = cell.id.split("cell")[1];
- d = cal.cellDates[index];
- date = new Date(d[0],d[1]-1,d[2]);
-
- var link;
-
- if (cal.Options.MULTI_SELECT) {
- link = cell.getElementsByTagName("a")[0];
- if (link) {
- link.blur();
- }
-
- var cellDate = cal.cellDates[index];
- var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
-
- if (cellDateIndex > -1) {
- cal.deselectCell(index);
- } else {
- cal.selectCell(index);
- }
-
- } else {
- link = cell.getElementsByTagName("a")[0];
- if (link) {
- link.blur();
- }
- cal.selectCell(index);
- }
- }
-};
-
-/**
-* The event that is executed when the user hovers over a cell
-* @method doCellMouseOver
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doCellMouseOver = function(e, cal) {
- var target;
- if (e) {
- target = YAHOO.util.Event.getTarget(e);
- } else {
- target = this;
- }
-
- while (target.tagName.toLowerCase() != "td") {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- YAHOO.util.Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
- }
-};
-
-/**
-* The event that is executed when the user moves the mouse out of a cell
-* @method doCellMouseOut
-* @param {DOMEvent} e The event
-* @param {Calendar} cal A reference to the calendar passed by the Event utility
-*/
-YAHOO.widget.Calendar.prototype.doCellMouseOut = function(e, cal) {
- var target;
- if (e) {
- target = YAHOO.util.Event.getTarget(e);
- } else {
- target = this;
- }
-
- while (target.tagName.toLowerCase() != "td") {
- target = target.parentNode;
- if (target.tagName.toLowerCase() == "html") {
- return;
- }
- }
-
- if (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
- YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
- }
-};
-
-YAHOO.widget.Calendar.prototype.setupConfig = function() {
-
- /**
- * The month/year representing the current visible Calendar date (mm/yyyy)
- * @config pagedate
- * @type String
- * @default today's date
- */
- this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } );
-
- /**
- * The date or range of dates representing the current Calendar selection
- * @config selected
- * @type String
- * @default []
- */
- this.cfg.addProperty("selected", { value:[], handler:this.configSelected } );
-
- /**
- * The title to display above the Calendar's month header
- * @config title
- * @type String
- * @default ""
- */
- this.cfg.addProperty("title", { value:"", handler:this.configTitle } );
-
- /**
- * Whether or not a close button should be displayed for this Calendar
- * @config close
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("close", { value:false, handler:this.configClose } );
-
- /**
- * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
- * @config iframe
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("iframe", { value:true, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-
- /**
- * The minimum selectable date in the current Calendar (mm/dd/yyyy)
- * @config mindate
- * @type String
- * @default null
- */
- this.cfg.addProperty("mindate", { value:null, handler:this.configMinDate } );
-
- /**
- * The maximum selectable date in the current Calendar (mm/dd/yyyy)
- * @config maxdate
- * @type String
- * @default null
- */
- this.cfg.addProperty("maxdate", { value:null, handler:this.configMaxDate } );
-
-
- // Options properties
-
- /**
- * True if the Calendar should allow multiple selections. False by default.
- * @config MULTI_SELECT
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * The weekday the week begins on. Default is 0 (Sunday).
- * @config START_WEEKDAY
- * @type number
- * @default 0
- */
- this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.configOptions, validator:this.cfg.checkNumber } );
-
- /**
- * True if the Calendar should show weekday labels. True by default.
- * @config SHOW_WEEKDAYS
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row headers. False by default.
- * @config SHOW_WEEK_HEADER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row footers. False by default.
- * @config SHOW_WEEK_FOOTER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
- * @config HIDE_BLANK_WEEKS
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-
- /**
- * The image that should be used for the left navigation arrow.
- * @config NAV_ARROW_LEFT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.configOptions } );
-
- /**
- * The image that should be used for the right navigation arrow.
- * @config NAV_ARROW_RIGHT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.configOptions } );
-
- // Locale properties
-
- /**
- * The short month labels for the current locale.
- * @config MONTHS_SHORT
- * @type String[]
- * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
- */
- this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.configLocale } );
-
- /**
- * The long month labels for the current locale.
- * @config MONTHS_LONG
- * @type String[]
- * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
- */
- this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.configLocale } );
-
- /**
- * The 1-character weekday labels for the current locale.
- * @config WEEKDAYS_1CHAR
- * @type String[]
- * @default ["S", "M", "T", "W", "T", "F", "S"]
- */
- this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.configLocale } );
-
- /**
- * The short weekday labels for the current locale.
- * @config WEEKDAYS_SHORT
- * @type String[]
- * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
- */
- this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.configLocale } );
-
- /**
- * The medium weekday labels for the current locale.
- * @config WEEKDAYS_MEDIUM
- * @type String[]
- * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- */
- this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.configLocale } );
-
- /**
- * The long weekday labels for the current locale.
- * @config WEEKDAYS_LONG
- * @type String[]
- * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- */
- this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.configLocale } );
-
- /**
- * Refreshes the locale values used to build the Calendar.
- * @method refreshLocale
- * @private
- */
- var refreshLocale = function() {
- this.cfg.refireEvent("LOCALE_MONTHS");
- this.cfg.refireEvent("LOCALE_WEEKDAYS");
- };
-
- this.cfg.subscribeToConfigEvent("START_WEEKDAY", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("MONTHS_SHORT", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("MONTHS_LONG", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_1CHAR", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_SHORT", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_MEDIUM", refreshLocale, this, true);
- this.cfg.subscribeToConfigEvent("WEEKDAYS_LONG", refreshLocale, this, true);
-
- /**
- * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
- * @config LOCALE_MONTHS
- * @type String
- * @default "long"
- */
- this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.configLocaleValues } );
-
- /**
- * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
- * @config LOCALE_WEEKDAYS
- * @type String
- * @default "short"
- */
- this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.configLocaleValues } );
-
- /**
- * The value used to delimit individual dates in a date string passed to various Calendar functions.
- * @config DATE_DELIMITER
- * @type String
- * @default ","
- */
- this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.configLocale } );
-
- /**
- * The value used to delimit date fields in a date string passed to various Calendar functions.
- * @config DATE_FIELD_DELIMITER
- * @type String
- * @default "/"
- */
- this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.configLocale } );
-
- /**
- * The value used to delimit date ranges in a date string passed to various Calendar functions.
- * @config DATE_RANGE_DELIMITER
- * @type String
- * @default "-"
- */
- this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.configLocale } );
-
- /**
- * The position of the month in a month/year date string
- * @config MY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/year date string
- * @config MY_YEAR_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day date string
- * @config MD_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/year date string
- * @config MD_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day/year date string
- * @config MDY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/day/year date string
- * @config MDY_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.configLocale, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/day/year date string
- * @config MDY_YEAR_POSITION
- * @type Number
- * @default 3
- */
- this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.configLocale, validator:this.cfg.checkNumber } );
-};
-
-/**
-* The default handler for the "pagedate" property
-* @method configPageDate
-*/
-YAHOO.widget.Calendar.prototype.configPageDate = function(type, args, obj) {
- this.cfg.setProperty("pagedate", this._parsePageDate(args[0]), true);
-};
-
-/**
-* The default handler for the "mindate" property
-* @method configMinDate
-*/
-YAHOO.widget.Calendar.prototype.configMinDate = function(type, args, obj) {
- var val = args[0];
- if (typeof val == 'string') {
- val = this._parseDate(val);
- this.cfg.setProperty("mindate", new Date(val[0],(val[1]-1),val[2]));
- }
-};
-
-/**
-* The default handler for the "maxdate" property
-* @method configMaxDate
-*/
-YAHOO.widget.Calendar.prototype.configMaxDate = function(type, args, obj) {
- var val = args[0];
- if (typeof val == 'string') {
- val = this._parseDate(val);
- this.cfg.setProperty("maxdate", new Date(val[0],(val[1]-1),val[2]));
- }
-};
-
-/**
-* The default handler for the "selected" property
-* @method configSelected
-*/
-YAHOO.widget.Calendar.prototype.configSelected = function(type, args, obj) {
- var selected = args[0];
-
- if (selected) {
- if (typeof selected == 'string') {
- this.cfg.setProperty("selected", this._parseDates(selected), true);
- }
- }
- if (! this._selectedDates) {
- this._selectedDates = this.cfg.getProperty("selected");
- }
-};
-
-/**
-* The default handler for all configuration options properties
-* @method configOptions
-*/
-YAHOO.widget.Calendar.prototype.configOptions = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
- this.Options[type] = val;
-};
-
-/**
-* The default handler for all configuration locale properties
-* @method configLocale
-*/
-YAHOO.widget.Calendar.prototype.configLocale = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
- this.Locale[type] = val;
-
- this.cfg.refireEvent("LOCALE_MONTHS");
- this.cfg.refireEvent("LOCALE_WEEKDAYS");
-
-};
-
-/**
-* The default handler for all configuration locale field length properties
-* @method configLocaleValues
-*/
-YAHOO.widget.Calendar.prototype.configLocaleValues = function(type, args, obj) {
- type = type.toUpperCase();
- var val = args[0];
-
- switch (type) {
- case "LOCALE_MONTHS":
- switch (val) {
- case "short":
- this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_SHORT").concat();
- break;
- case "long":
- this.Locale.LOCALE_MONTHS = this.cfg.getProperty("MONTHS_LONG").concat();
- break;
- }
- break;
- case "LOCALE_WEEKDAYS":
- switch (val) {
- case "1char":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_1CHAR").concat();
- break;
- case "short":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_SHORT").concat();
- break;
- case "medium":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_MEDIUM").concat();
- break;
- case "long":
- this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty("WEEKDAYS_LONG").concat();
- break;
- }
-
- var START_WEEKDAY = this.cfg.getProperty("START_WEEKDAY");
-
- if (START_WEEKDAY > 0) {
- for (var w=0;w";
- html[html.length] = "";
- html[html.length] = '';
- html[html.length] = ' ';
-
- if (this.cfg.getProperty("SHOW_WEEKDAYS")) {
- html = this.buildWeekdays(html);
- }
-
- html[html.length] = '';
-
- return html;
-};
-
-/**
-* Renders the Calendar's weekday headers.
-* @method buildWeekdays
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.buildWeekdays = function(html) {
-
- html[html.length] = '';
-
- if (this.cfg.getProperty("SHOW_WEEK_HEADER")) {
- html[html.length] = ' ';
- }
-
- for(var i=0;i' + this.Locale.LOCALE_WEEKDAYS[i] + '';
- }
-
- if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) {
- html[html.length] = ' ';
- }
-
- html[html.length] = ' ';
-
- return html;
-};
-
-/**
-* Renders the calendar body.
-* @method renderBody
-* @param {Date} workingDate The current working Date being used for the render process
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderBody = function(workingDate, html) {
-
- var startDay = this.cfg.getProperty("START_WEEKDAY");
-
- this.preMonthDays = workingDate.getDay();
- if (startDay > 0) {
- this.preMonthDays -= startDay;
- }
- if (this.preMonthDays < 0) {
- this.preMonthDays += 7;
- }
-
- this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();
- this.postMonthDays = YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
-
- workingDate = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays);
-
- var useDate,weekNum,weekClass;
- useDate = this.cfg.getProperty("pagedate");
-
- html[html.length] = '';
-
- var i = 0;
-
- var tempDiv = document.createElement("div");
- var cell = document.createElement("td");
- tempDiv.appendChild(cell);
-
- var jan1 = new Date(useDate.getFullYear(),0,1);
-
- var cal = this.parent || this;
-
- for (var r=0;r<6;r++) {
-
- weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), startDay);
-
- weekClass = "w" + weekNum;
-
- if (r !== 0 && this.isDateOOM(workingDate) && this.cfg.getProperty("HIDE_BLANK_WEEKS") === true) {
- break;
- } else {
-
- html[html.length] = '';
-
- if (this.cfg.getProperty("SHOW_WEEK_HEADER")) { html = this.renderRowHeader(weekNum, html); }
-
- for (var d=0;d<7;d++){ // Render actual days
-
- var cellRenderers = [];
-
- this.clearElement(cell);
-
- YAHOO.util.Dom.addClass(cell, "calcell");
-
- cell.id = this.id + "_cell" + i;
-
- cell.innerHTML = i;
-
- var renderer = null;
-
- if (workingDate.getFullYear() == this.today.getFullYear() &&
- workingDate.getMonth() == this.today.getMonth() &&
- workingDate.getDate() == this.today.getDate()) {
- cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
- }
-
- this.cellDates[this.cellDates.length]=[workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]; // Add this date to cellDates
-
- if (this.isDateOOM(workingDate)) {
- cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
- } else {
-
- YAHOO.util.Dom.addClass(cell, "wd" + workingDate.getDay());
- YAHOO.util.Dom.addClass(cell, "d" + workingDate.getDate());
-
- for (var s=0;s= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
- renderer = rArray[2];
-
- if (workingDate.getTime()==d2.getTime()) {
- this.renderStack.splice(s,1);
- }
- }
- break;
- case YAHOO.widget.Calendar.WEEKDAY:
-
- var weekday = rArray[1][0];
- if (workingDate.getDay()+1 == weekday) {
- renderer = rArray[2];
- }
- break;
- case YAHOO.widget.Calendar.MONTH:
-
- month = rArray[1][0];
- if (workingDate.getMonth()+1 == month) {
- renderer = rArray[2];
- }
- break;
- }
-
- if (renderer) {
- cellRenderers[cellRenderers.length]=renderer;
- }
- }
-
- }
-
- if (this._indexOfSelectedFieldArray([workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()]) > -1) {
- cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected;
- }
-
- var mindate = this.cfg.getProperty("mindate");
- var maxdate = this.cfg.getProperty("maxdate");
-
- if (mindate) {
- mindate = YAHOO.widget.DateMath.clearTime(mindate);
- }
- if (maxdate) {
- maxdate = YAHOO.widget.DateMath.clearTime(maxdate);
- }
-
- if (
- (mindate && (workingDate.getTime() < mindate.getTime())) ||
- (maxdate && (workingDate.getTime() > maxdate.getTime()))
- ) {
- cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
- } else {
- cellRenderers[cellRenderers.length]=cal.styleCellDefault;
- cellRenderers[cellRenderers.length]=cal.renderCellDefault;
- }
-
-
-
- for (var x=0;x= 0 && i <= 6) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP);
- }
- if ((i % 7) === 0) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
- }
- if (((i+1) % 7) === 0) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
- }
-
- var postDays = this.postMonthDays;
- if (postDays >= 7 && this.cfg.getProperty("HIDE_BLANK_WEEKS")) {
- var blankWeeks = Math.floor(postDays/7);
- for (var p=0;p= ((this.preMonthDays+postDays+this.monthDays)-7)) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
- }
-
- html[html.length] = tempDiv.innerHTML;
-
- i++;
- }
-
- if (this.cfg.getProperty("SHOW_WEEK_FOOTER")) { html = this.renderRowFooter(weekNum, html); }
-
- html[html.length] = ' ';
- }
- }
-
- html[html.length] = ' ';
-
- return html;
-};
-
-/**
-* Renders the calendar footer. In the default implementation, there is
-* no footer.
-* @method renderFooter
-* @param {Array} html The current working HTML array
-* @return {Array} The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderFooter = function(html) { return html; };
-
-/**
-* Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
-* when the method is called: renderHeader, renderBody, renderFooter.
-* Refer to the documentation for those methods for information on
-* individual render tasks.
-* @method render
-*/
-YAHOO.widget.Calendar.prototype.render = function() {
- this.beforeRenderEvent.fire();
-
- // Find starting day of the current month
- var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty("pagedate"));
-
- this.resetRenderers();
- this.cellDates.length = 0;
-
- YAHOO.util.Event.purgeElement(this.oDomContainer, true);
-
- var html = [];
-
- html[html.length] = '';
- html = this.renderHeader(html);
- html = this.renderBody(workingDate, html);
- html = this.renderFooter(html);
- html[html.length] = '
';
-
- this.oDomContainer.innerHTML = html.join("\n");
-
- this.applyListeners();
- this.cells = this.oDomContainer.getElementsByTagName("td");
-
- this.cfg.refireEvent("title");
- this.cfg.refireEvent("close");
- this.cfg.refireEvent("iframe");
-
- this.renderEvent.fire();
-};
-
-/**
-* Applies the Calendar's DOM listeners to applicable elements.
-* @method applyListeners
-*/
-YAHOO.widget.Calendar.prototype.applyListeners = function() {
-
- var root = this.oDomContainer;
- var cal = this.parent || this;
-
- var linkLeft, linkRight;
-
- linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, "a", root);
- linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, "a", root);
-
- if (linkLeft) {
- this.linkLeft = linkLeft[0];
- YAHOO.util.Event.addListener(this.linkLeft, "mousedown", cal.previousMonth, cal, true);
- }
-
- if (linkRight) {
- this.linkRight = linkRight[0];
- YAHOO.util.Event.addListener(this.linkRight, "mousedown", cal.nextMonth, cal, true);
- }
-
- if (this.domEventMap) {
- var el,elements;
- for (var cls in this.domEventMap) {
- if (YAHOO.lang.hasOwnProperty(this.domEventMap, cls)) {
- var items = this.domEventMap[cls];
-
- if (! (items instanceof Array)) {
- items = [items];
- }
-
- for (var i=0;i' + weekNum + '';
- return html;
-};
-
-/**
-* Renders the row footer for a week.
-* @method renderRowFooter
-* @param {Number} weekNum The week number of the current row
-* @param {Array} cell The current working HTML array
-*/
-YAHOO.widget.Calendar.prototype.renderRowFooter = function(weekNum, html) {
- html[html.length] = '';
- return html;
-};
-
-/**
-* Renders a single standard calendar cell in the calendar widget table.
-* All logic for determining how a standard default cell will be rendered is
-* encapsulated in this method, and must be accounted for when extending the
-* widget class.
-* @method renderCellDefault
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellDefault = function(workingDate, cell) {
- cell.innerHTML = '' + this.buildDayLabel(workingDate) + " ";
-};
-
-/**
-* Styles a selectable cell.
-* @method styleCellDefault
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.styleCellDefault = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
-};
-
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight1 style
-* @method renderCellStyleHighlight1
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight1 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight2 style
-* @method renderCellStyleHighlight2
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight2 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight3 style
-* @method renderCellStyleHighlight3
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight3 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
-};
-
-/**
-* Renders a single standard calendar cell using the CSS hightlight4 style
-* @method renderCellStyleHighlight4
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleHighlight4 = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
-};
-
-/**
-* Applies the default style used for rendering today's date to the current calendar cell
-* @method renderCellStyleToday
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleToday = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
-};
-
-/**
-* Applies the default style used for rendering selected dates to the current calendar cell
-* @method renderCellStyleSelected
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderCellStyleSelected = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
-};
-
-/**
-* Applies the default style used for rendering dates that are not a part of the current
-* month (preceding or trailing the cells for the current month)
-* @method renderCellNotThisMonth
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderCellNotThisMonth = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM);
- cell.innerHTML=workingDate.getDate();
- return YAHOO.widget.Calendar.STOP_RENDER;
-};
-
-/**
-* Renders the current calendar cell as a non-selectable "black-out" date using the default
-* restricted style.
-* @method renderBodyCellRestricted
-* @param {Date} workingDate The current working Date object being used to generate the calendar
-* @param {HTMLTableCellElement} cell The current working cell in the calendar
-* @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
-* should not be terminated
-*/
-YAHOO.widget.Calendar.prototype.renderBodyCellRestricted = function(workingDate, cell) {
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL);
- YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
- cell.innerHTML=workingDate.getDate();
- return YAHOO.widget.Calendar.STOP_RENDER;
-};
-
-// END BUILT-IN TABLE CELL RENDERERS
-
-// BEGIN MONTH NAVIGATION METHODS
-
-/**
-* Adds the designated number of months to the current calendar month, and sets the current
-* calendar page date to the new month.
-* @method addMonths
-* @param {Number} count The number of months to add to the current calendar
-*/
-YAHOO.widget.Calendar.prototype.addMonths = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Subtracts the designated number of months from the current calendar month, and sets the current
-* calendar page date to the new month.
-* @method subtractMonths
-* @param {Number} count The number of months to subtract from the current calendar
-*/
-YAHOO.widget.Calendar.prototype.subtractMonths = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.MONTH, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Adds the designated number of years to the current calendar, and sets the current
-* calendar page date to the new month.
-* @method addYears
-* @param {Number} count The number of years to add to the current calendar
-*/
-YAHOO.widget.Calendar.prototype.addYears = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.add(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Subtcats the designated number of years from the current calendar, and sets the current
-* calendar page date to the new month.
-* @method subtractYears
-* @param {Number} count The number of years to subtract from the current calendar
-*/
-YAHOO.widget.Calendar.prototype.subtractYears = function(count) {
- this.cfg.setProperty("pagedate", YAHOO.widget.DateMath.subtract(this.cfg.getProperty("pagedate"), YAHOO.widget.DateMath.YEAR, count));
- this.resetRenderers();
- this.changePageEvent.fire();
-};
-
-/**
-* Navigates to the next month page in the calendar widget.
-* @method nextMonth
-*/
-YAHOO.widget.Calendar.prototype.nextMonth = function() {
- this.addMonths(1);
-};
-
-/**
-* Navigates to the previous month page in the calendar widget.
-* @method previousMonth
-*/
-YAHOO.widget.Calendar.prototype.previousMonth = function() {
- this.subtractMonths(1);
-};
-
-/**
-* Navigates to the next year in the currently selected month in the calendar widget.
-* @method nextYear
-*/
-YAHOO.widget.Calendar.prototype.nextYear = function() {
- this.addYears(1);
-};
-
-/**
-* Navigates to the previous year in the currently selected month in the calendar widget.
-* @method previousYear
-*/
-YAHOO.widget.Calendar.prototype.previousYear = function() {
- this.subtractYears(1);
-};
-
-// END MONTH NAVIGATION METHODS
-
-// BEGIN SELECTION METHODS
-
-/**
-* Resets the calendar widget to the originally selected month and year, and
-* sets the calendar to the initial selection(s).
-* @method reset
-*/
-YAHOO.widget.Calendar.prototype.reset = function() {
- this.cfg.resetProperty("selected");
- this.cfg.resetProperty("pagedate");
- this.resetEvent.fire();
-};
-
-/**
-* Clears the selected dates in the current calendar widget and sets the calendar
-* to the current month and year.
-* @method clear
-*/
-YAHOO.widget.Calendar.prototype.clear = function() {
- this.cfg.setProperty("selected", []);
- this.cfg.setProperty("pagedate", new Date(this.today.getTime()));
- this.clearEvent.fire();
-};
-
-/**
-* Selects a date or a collection of dates on the current calendar. This method, by default,
-* does not call the render method explicitly. Once selection has completed, render must be
-* called for the changes to be reflected visually.
-* @method select
-* @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
-* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-* This method can also take a JavaScript Date object or an array of Date objects.
-* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-*/
-YAHOO.widget.Calendar.prototype.select = function(date) {
- this.beforeSelectEvent.fire();
-
- var selected = this.cfg.getProperty("selected");
- var aToBeSelected = this._toFieldArray(date);
-
- for (var a=0;a -1) {
- if (this.cfg.getProperty("pagedate").getMonth() == dCellDate.getMonth() &&
- this.cfg.getProperty("pagedate").getFullYear() == dCellDate.getFullYear()) {
- YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
- }
-
- selected.splice(cellDateIndex, 1);
- }
-
-
- if (this.parent) {
- this.parent.cfg.setProperty("selected", selected);
- } else {
- this.cfg.setProperty("selected", selected);
- }
-
- this.deselectEvent.fire(selectDate);
- return this.getSelectedDates();
-};
-
-/**
-* Deselects all dates on the current calendar.
-* @method deselectAll
-* @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
-* Assuming that this function executes properly, the return value should be an empty array.
-* However, the empty array is returned for the sake of being able to check the selection status
-* of the calendar.
-*/
-YAHOO.widget.Calendar.prototype.deselectAll = function() {
- this.beforeDeselectEvent.fire();
-
- var selected = this.cfg.getProperty("selected");
- var count = selected.length;
- var sel = selected.concat();
-
- if (this.parent) {
- this.parent.cfg.setProperty("selected", []);
- } else {
- this.cfg.setProperty("selected", []);
- }
-
- if (count > 0) {
- this.deselectEvent.fire(sel);
- }
-
- return this.getSelectedDates();
-};
-
-// END SELECTION METHODS
-
-// BEGIN TYPE CONVERSION METHODS
-
-/**
-* Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
-* used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
-* @method _toFieldArray
-* @private
-* @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
-* individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
-* Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
-* This method can also take a JavaScript Date object or an array of Date objects.
-* @return {Array[](Number[])} Array of date field arrays
-*/
-YAHOO.widget.Calendar.prototype._toFieldArray = function(date) {
- var returnDate = [];
-
- if (date instanceof Date) {
- returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
- } else if (typeof date == 'string') {
- returnDate = this._parseDates(date);
- } else if (date instanceof Array) {
- for (var i=0;i
-*
-*
-*
-* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
-* @namespace YAHOO.widget
-* @class CalendarGroup
-* @constructor
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.CalendarGroup = function(id, containerId, config) {
- if (arguments.length > 0) {
- this.init(id, containerId, config);
- }
-};
-
-/**
-* Initializes the calendar group. All subclasses must call this method in order for the
-* group to be initialized properly.
-* @method init
-* @param {String} id The id of the table element that will represent the calendar widget
-* @param {String} containerId The id of the container div element that will wrap the calendar table
-* @param {Object} config The configuration object containing the Calendar's arguments
-*/
-YAHOO.widget.CalendarGroup.prototype.init = function(id, containerId, config) {
- this.initEvents();
- this.initStyles();
-
- /**
- * The collection of Calendar pages contained within the CalendarGroup
- * @property pages
- * @type YAHOO.widget.Calendar[]
- */
- this.pages = [];
-
- /**
- * The unique id associated with the CalendarGroup
- * @property id
- * @type String
- */
- this.id = id;
-
- /**
- * The unique id associated with the CalendarGroup container
- * @property containerId
- * @type String
- */
- this.containerId = containerId;
-
- /**
- * The outer containing element for the CalendarGroup
- * @property oDomContainer
- * @type HTMLElement
- */
- this.oDomContainer = document.getElementById(containerId);
-
- YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER);
- YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_MULTI_UP);
-
- /**
- * The Config object used to hold the configuration variables for the CalendarGroup
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- /**
- * The local object which contains the CalendarGroup's options
- * @property Options
- * @type Object
- */
- this.Options = {};
-
- /**
- * The local object which contains the CalendarGroup's locale settings
- * @property Locale
- * @type Object
- */
- this.Locale = {};
-
- this.setupConfig();
-
- if (config) {
- this.cfg.applyConfig(config, true);
- }
-
- this.cfg.fireQueue();
-
- // OPERA HACK FOR MISWRAPPED FLOATS
- if (this.browser == "opera"){
- var fixWidth = function() {
- var startW = this.oDomContainer.offsetWidth;
- var w = 0;
- for (var p=0;p 0) {
- this.oDomContainer.style.width = w + "px";
- }
- };
- this.renderEvent.subscribe(fixWidth,this,true);
- }
-};
-
-
-YAHOO.widget.CalendarGroup.prototype.setupConfig = function() {
- /**
- * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
- * @config pages
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("pages", { value:2, validator:this.cfg.checkNumber, handler:this.configPages } );
-
- /**
- * The month/year representing the current visible Calendar date (mm/yyyy)
- * @config pagedate
- * @type String
- * @default today's date
- */
- this.cfg.addProperty("pagedate", { value:new Date(), handler:this.configPageDate } );
-
- /**
- * The date or range of dates representing the current Calendar selection
- * @config selected
- * @type String
- * @default []
- */
- this.cfg.addProperty("selected", { value:[], handler:this.delegateConfig } );
-
- /**
- * The title to display above the CalendarGroup's month header
- * @config title
- * @type String
- * @default ""
- */
- this.cfg.addProperty("title", { value:"", handler:this.configTitle } );
-
- /**
- * Whether or not a close button should be displayed for this CalendarGroup
- * @config close
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("close", { value:false, handler:this.configClose } );
-
- /**
- * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
- * @config iframe
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("iframe", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The minimum selectable date in the current Calendar (mm/dd/yyyy)
- * @config mindate
- * @type String
- * @default null
- */
- this.cfg.addProperty("mindate", { value:null, handler:this.delegateConfig } );
-
- /**
- * The maximum selectable date in the current Calendar (mm/dd/yyyy)
- * @config maxdate
- * @type String
- * @default null
- */
- this.cfg.addProperty("maxdate", { value:null, handler:this.delegateConfig } );
-
- // Options properties
-
- /**
- * True if the Calendar should allow multiple selections. False by default.
- * @config MULTI_SELECT
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("MULTI_SELECT", { value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The weekday the week begins on. Default is 0 (Sunday).
- * @config START_WEEKDAY
- * @type number
- * @default 0
- */
- this.cfg.addProperty("START_WEEKDAY", { value:0, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * True if the Calendar should show weekday labels. True by default.
- * @config SHOW_WEEKDAYS
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("SHOW_WEEKDAYS", { value:true, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row headers. False by default.
- * @config SHOW_WEEK_HEADER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_HEADER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should show week row footers. False by default.
- * @config SHOW_WEEK_FOOTER
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("SHOW_WEEK_FOOTER",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
- * @config HIDE_BLANK_WEEKS
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("HIDE_BLANK_WEEKS",{ value:false, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-
- /**
- * The image that should be used for the left navigation arrow.
- * @config NAV_ARROW_LEFT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_LEFT", { value:null, handler:this.delegateConfig } );
-
- /**
- * The image that should be used for the right navigation arrow.
- * @config NAV_ARROW_RIGHT
- * @type String
- * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
- * @default null
- */
- this.cfg.addProperty("NAV_ARROW_RIGHT", { value:null, handler:this.delegateConfig } );
-
- // Locale properties
-
- /**
- * The short month labels for the current locale.
- * @config MONTHS_SHORT
- * @type String[]
- * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
- */
- this.cfg.addProperty("MONTHS_SHORT", { value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], handler:this.delegateConfig } );
-
- /**
- * The long month labels for the current locale.
- * @config MONTHS_LONG
- * @type String[]
- * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
- */
- this.cfg.addProperty("MONTHS_LONG", { value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], handler:this.delegateConfig } );
-
- /**
- * The 1-character weekday labels for the current locale.
- * @config WEEKDAYS_1CHAR
- * @type String[]
- * @default ["S", "M", "T", "W", "T", "F", "S"]
- */
- this.cfg.addProperty("WEEKDAYS_1CHAR", { value:["S", "M", "T", "W", "T", "F", "S"], handler:this.delegateConfig } );
-
- /**
- * The short weekday labels for the current locale.
- * @config WEEKDAYS_SHORT
- * @type String[]
- * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
- */
- this.cfg.addProperty("WEEKDAYS_SHORT", { value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], handler:this.delegateConfig } );
-
- /**
- * The medium weekday labels for the current locale.
- * @config WEEKDAYS_MEDIUM
- * @type String[]
- * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- */
- this.cfg.addProperty("WEEKDAYS_MEDIUM", { value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], handler:this.delegateConfig } );
-
- /**
- * The long weekday labels for the current locale.
- * @config WEEKDAYS_LONG
- * @type String[]
- * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- */
- this.cfg.addProperty("WEEKDAYS_LONG", { value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], handler:this.delegateConfig } );
-
- /**
- * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
- * @config LOCALE_MONTHS
- * @type String
- * @default "long"
- */
- this.cfg.addProperty("LOCALE_MONTHS", { value:"long", handler:this.delegateConfig } );
-
- /**
- * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
- * @config LOCALE_WEEKDAYS
- * @type String
- * @default "short"
- */
- this.cfg.addProperty("LOCALE_WEEKDAYS", { value:"short", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit individual dates in a date string passed to various Calendar functions.
- * @config DATE_DELIMITER
- * @type String
- * @default ","
- */
- this.cfg.addProperty("DATE_DELIMITER", { value:",", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit date fields in a date string passed to various Calendar functions.
- * @config DATE_FIELD_DELIMITER
- * @type String
- * @default "/"
- */
- this.cfg.addProperty("DATE_FIELD_DELIMITER",{ value:"/", handler:this.delegateConfig } );
-
- /**
- * The value used to delimit date ranges in a date string passed to various Calendar functions.
- * @config DATE_RANGE_DELIMITER
- * @type String
- * @default "-"
- */
- this.cfg.addProperty("DATE_RANGE_DELIMITER",{ value:"-", handler:this.delegateConfig } );
-
- /**
- * The position of the month in a month/year date string
- * @config MY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/year date string
- * @config MY_YEAR_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MY_YEAR_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day date string
- * @config MD_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MD_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/year date string
- * @config MD_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MD_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the month in a month/day/year date string
- * @config MDY_MONTH_POSITION
- * @type Number
- * @default 1
- */
- this.cfg.addProperty("MDY_MONTH_POSITION", { value:1, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the day in a month/day/year date string
- * @config MDY_DAY_POSITION
- * @type Number
- * @default 2
- */
- this.cfg.addProperty("MDY_DAY_POSITION", { value:2, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
- /**
- * The position of the year in a month/day/year date string
- * @config MDY_YEAR_POSITION
- * @type Number
- * @default 3
- */
- this.cfg.addProperty("MDY_YEAR_POSITION", { value:3, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-
-};
-
-/**
-* Initializes CalendarGroup's built-in CustomEvents
-* @method initEvents
-*/
-YAHOO.widget.CalendarGroup.prototype.initEvents = function() {
- var me = this;
-
- /**
- * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
- * @method sub
- * @private
- * @param {Function} fn The function to subscribe to this CustomEvent
- * @param {Object} obj The CustomEvent's scope object
- * @param {Boolean} bOverride Whether or not to apply scope correction
- */
- var sub = function(fn, obj, bOverride) {
- for (var p=0;p0) {
- year+=1;
- }
- cal.setYear(year);
- }
-};
-/**
-* Calls the render function of all child calendars within the group.
-* @method render
-*/
-YAHOO.widget.CalendarGroup.prototype.render = function() {
- this.renderHeader();
- for (var p=0;p=0;--p) {
- var cal = this.pages[p];
- cal.previousMonth();
- }
-};
-
-/**
-* Navigates to the next year in the currently selected month in the calendar widget.
-* @method nextYear
-*/
-YAHOO.widget.CalendarGroup.prototype.nextYear = function() {
- for (var p=0;p 11)) {
- var DM = YAHOO.widget.DateMath;
- var newDate = DM.add(date, DM.MONTH, iMonth-date.getMonth());
- date.setTime(newDate.getTime());
- } else {
- date.setMonth(iMonth);
- }
-};
-
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_MULTI_UP = "multi";
-
-/**
-* CSS class representing the title for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPTITLE = "title";
-
-/**
-* CSS class representing the close icon for the 2-up calendar
-* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
-* @static
-* @final
-* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
-* Calendar's Style.CSS_CLOSE property now represents the CSS class used to render the close icon
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.augment(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel",
- "buildMonthLabel",
- "renderOutOfBoundsDate",
- "renderRowHeader",
- "renderRowFooter",
- "renderCellDefault",
- "styleCellDefault",
- "renderCellStyleHighlight1",
- "renderCellStyleHighlight2",
- "renderCellStyleHighlight3",
- "renderCellStyleHighlight4",
- "renderCellStyleToday",
- "renderCellStyleSelected",
- "renderCellNotThisMonth",
- "renderBodyCellRestricted",
- "initStyles",
- "configTitle",
- "configClose",
- "hide",
- "show",
- "browser");
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} A string representation of the CalendarGroup object.
-*/
-YAHOO.widget.CalendarGroup.prototype.toString = function() {
- return "CalendarGroup " + this.id;
-};
-
-YAHOO.widget.CalGrp = YAHOO.widget.CalendarGroup;
-
-/**
-* @class YAHOO.widget.Calendar2up
-* @extends YAHOO.widget.CalendarGroup
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Calendar2up = function(id, containerId, config) {
- this.init(id, containerId, config);
-};
-
-YAHOO.extend(YAHOO.widget.Calendar2up, YAHOO.widget.CalendarGroup);
-
-/**
-* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
-*/
-YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
-
-YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/connection/README b/interface/ispconfig/interface/js/yui/connection/README
deleted file mode 100644
index 8f401c9c9d7d70e55bb10062fb218a917e79a80c..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/connection/README
+++ /dev/null
@@ -1,182 +0,0 @@
-Connection Manager Release Notes
-
-*** version 2.2.0 ***
-
-* initHeader() now accepts a third argument as a boolean. When set to true,
-this specific header will automatically be sent with each transaction.
-Otherwise, the header will be set and sent for the specific transaction only.
-Example: initHeader('X-YUI-State','Beta', true); all transactions will send this
-header.
- * resetDefaultHeaders() will clear the default headers collection.
-
-* All Connection Mananger transactions will broadcast the header: "X-Requested-
-With: XMLHttpRequest".
- * This can be turned off: YAHOO.util.Connect.setDefaultXhrHeader(false);
-
-* The HTTP method argument in asyncRequest is now case-insensitive.
-
-* uploadFile() will now correctly handle the absence of a callback object,
-allowing the transaction to complete silently.
-
-*** version 0.12.2 ***
-
-* The Opera/Connection Manager concurrent object condition, described in version
-0.12.0, no longer tests applies for Opera, version 9.10.
-
-*** version 0.12.1 ***
-
-* connection-debug.js corrected and synchronized with connection.js. Code
-inconsistencies between the two files existed in 0.12.0.
-
-*** version 0.12.0 ***
-
-* When uploading files via setForm() and asyncRequest includes a POST data
-argument, appendPostData() will create hidden input fields for each postData
-label/value and append each field to the form object.
-
-* setForm() returns the assembled label/value string of the parsed HTML form
-fields.
-
-* NOTE: Opera 9.02 does not allow for more than 12 concurrent Connection Manager
-objects.
-
-The following example creates 12 requests in a loop:
-for(var n=0; n<=12; i++){
- conn[n] = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
-}
-
-If n > 13, Opera 9.02 will crash. Connection manager objects count n must be <=
-12 at all times. This condition was not present in Opera version 9.01.
-
-This condition does not apply to other A-Grade browsers (
-http://developer.yahoo.com/yui/articles/gbs/gbs_browser-chart.html)
-
-*** version 0.11.3 ***
-
-* YUI Event dependency for file uploading is now optional.
-
-* uploadFile() now sets unique IDs for each file upload transaction to prevent
-iframe collisions with parallel uploads.
-
-* The callback object now has property responseXML to provide support for file
-upload transactions that return an XML document.
-
-* setForm() will verify if a select option value attribute is present and use
-its value, including empty string, before using the text node value.
-
-* Modified polling mechanism in handleReadyState() and
-handleTransactionResponse() to prevent infinite polling if JavaScript errors
-occur in the user-defined callback.
-
-* createFrame() will now accept a boolean argument of true to set the frame
-source to "javascript:false" to prevent IE from throwing security warnings in an
-HTTPS environment.
-
-* setHeader() now enumerates through the _http_header object using
-hasOwnProperty() to prevent collisions with members added to Object via
-prototype.
-
-* If using setForm() and asyncRequest includes a POST data argument, the data
-will be concatenated to the HTML form POST message.
-
-*** version 0.11.2 ***
-
-* No revisions.
-
-*** version 0.11.1 ***
-
-* uploadFile() now verifies the existence of callback.upload before invoking
-callback, with or without object scope.
-
-*** version 0.11.0 ***
-
-* Each transaction can be defined with a timeout threshold, in milliseconds,
-through the callback object. If the threshold is reached, and the transaction
-hasn't yet completed, the transaction will call abort().
-
-* abort() will now accept a callback object as the second argument. The
-failure callback will receive a response object to indicate the transaction was
-aborted.
-
-* setForm() will now support file uploads by setting the second argument to
-true (e.g., YAHOO.util.Connect.setForm(formObject, true). File upload does not
-use the callback success or failure handler. Instead, it uses a new callback
-object handler: upload.
-
-* HTML form submit will no longer submit form fields without a defined name
-attribute.
-
-* The default POST header of 'Content-Type','application/x-www-form-urlencoded'
-can be overridden by calling setDefaultPostHeader(false). This
-will remove the default header from non-HTML form, POST submissions.
-
-* setHeader() now enumerates through the _http_header object with
-propertyIsEnumerable to prevent collisions with members added to Object via
-prototype.
-
-*** version 0.10.0 ***
-
-* handleTransactionResponse() now treats the full HTTP 2xx range as a success
-case, instead of just HTTP 200.
-
-* To accommodate multiple field values in Mozilla/Firefox, multiple initHeader
-calls with the same label will now result in the values concatenated to a
-comma- delimited string value.
-Example:
-Setting Content-Type:'application/x-www-form-urlencoded' and Content-
-Type:'text/xml' will result in Content-Type:'application/x-www-form-urlencoded,
-text/xml'.
-
-* Default polling interval lowered to 50ms.
-
-* YAHOO.util.Connect.setPollingInterval() will allow you to set a polling
-interval -- in milliseconds -- to override the default value.
-
-* YAHOO.util.Connect.getResponseHeader[headerLabel] now supported as a response
-object property to provide symmetry with the native XHR object's property.
-Example:
-YAHOO.util.Connect.getResponseHeader['Content-Length'] will return the value
-for the Content-Length header, if the header is available.
-
-* YAHOO.util.Connect.allResponseHeaders property renamed to
-getAllResponseHeaders to provide symmetry with the native XHR object's
-property.
-
-* YAHOO.util.Connect.setForm() now supports HTTP GET as well as HTTP POST.
-
-* YAHOO.util.Connect.setForm() now accepts an HTML form object as well as its
-name attribute value.
-
-* YAHOO.util.Connect.setForm() will not submit HTML form fields that are
-disabled or do not have a name attribute value.
-
-* [FIXED] Response exceptions result in infinite callback loop in
-Mozilla/Firefox.
-
-* [FIXED] YAHOO.util.Connect.abort() now properly clears polling interval.
-
-* [FIXED] isCallInProgress() now verifies whether XHR instance still exists,
-and returns false if the connection object is no longer available.
-
-*** version 0.9.0 ***
-
-* Initial release
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/interface/ispconfig/interface/js/yui/connection/connection-debug.js b/interface/ispconfig/interface/js/yui/connection/connection-debug.js
deleted file mode 100644
index 766ee95b425d4f5954dc0f5fd50f1883aee1fee0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/connection/connection-debug.js
+++ /dev/null
@@ -1,1082 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The Connection Manager provides a simplified interface to the XMLHttpRequest
- * object. It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
- * interactive states and server response, returning the results to a pre-defined
- * callback you create.
- *
- * @namespace YAHOO.util
- * @module connection
- * @requires yahoo
- */
-
-/**
- * The Connection Manager singleton provides methods for creating and managing
- * asynchronous transactions.
- *
- * @class Connect
- */
-
-YAHOO.util.Connect =
-{
- /**
- * @description Array of MSFT ActiveX ids for XMLHttpRequest.
- * @property _msxml_progid
- * @private
- * @static
- * @type array
- */
- _msxml_progid:[
- 'MSXML2.XMLHTTP.3.0',
- 'MSXML2.XMLHTTP',
- 'Microsoft.XMLHTTP'
- ],
-
- /**
- * @description Object literal of HTTP header(s)
- * @property _http_header
- * @private
- * @static
- * @type object
- */
- _http_headers:{},
-
- /**
- * @description Determines if HTTP headers are set.
- * @property _has_http_headers
- * @private
- * @static
- * @type boolean
- */
- _has_http_headers:false,
-
- /**
- * @description Determines if a default header of
- * Content-Type of 'application/x-www-form-urlencoded'
- * will be added to any client HTTP headers sent for POST
- * transactions.
- * @property _use_default_post_header
- * @private
- * @static
- * @type boolean
- */
- _use_default_post_header:true,
-
- /**
- * @description Determines if a default header of
- * Content-Type of 'application/x-www-form-urlencoded'
- * will be added to client HTTP headers sent for POST
- * transactions.
- * @property _default_post_header
- * @private
- * @static
- * @type boolean
- */
- _default_post_header:'application/x-www-form-urlencoded',
-
- /**
- * @description Determines if a default header of
- * 'X-Requested-With: XMLHttpRequest'
- * will be added to each transaction.
- * @property _use_default_xhr_header
- * @private
- * @static
- * @type boolean
- */
- _use_default_xhr_header:true,
-
- /**
- * @description The default header value for the label
- * "X-Requested-With". This is sent with each
- * transaction, by default, to identify the
- * request as being made by YUI Connection Manager.
- * @property _default_xhr_header
- * @private
- * @static
- * @type boolean
- */
- _default_xhr_header:'XMLHttpRequest',
-
- /**
- * @description Determines if custom, default headers
- * are set for each transaction.
- * @property _has_default_header
- * @private
- * @static
- * @type boolean
- */
- _has_default_headers:true,
-
- /**
- * @description Determines if custom, default headers
- * are set for each transaction.
- * @property _has_default_header
- * @private
- * @static
- * @type boolean
- */
- _default_headers:{},
-
- /**
- * @description Property modified by setForm() to determine if the data
- * should be submitted as an HTML form.
- * @property _isFormSubmit
- * @private
- * @static
- * @type boolean
- */
- _isFormSubmit:false,
-
- /**
- * @description Property modified by setForm() to determine if a file(s)
- * upload is expected.
- * @property _isFileUpload
- * @private
- * @static
- * @type boolean
- */
- _isFileUpload:false,
-
- /**
- * @description Property modified by setForm() to set a reference to the HTML
- * form node if the desired action is file upload.
- * @property _formNode
- * @private
- * @static
- * @type object
- */
- _formNode:null,
-
- /**
- * @description Property modified by setForm() to set the HTML form data
- * for each transaction.
- * @property _sFormData
- * @private
- * @static
- * @type string
- */
- _sFormData:null,
-
- /**
- * @description Collection of polling references to the polling mechanism in handleReadyState.
- * @property _poll
- * @private
- * @static
- * @type object
- */
- _poll:{},
-
- /**
- * @description Queue of timeout values for each transaction callback with a defined timeout value.
- * @property _timeOut
- * @private
- * @static
- * @type object
- */
- _timeOut:{},
-
- /**
- * @description The polling frequency, in milliseconds, for HandleReadyState.
- * when attempting to determine a transaction's XHR readyState.
- * The default is 50 milliseconds.
- * @property _polling_interval
- * @private
- * @static
- * @type int
- */
- _polling_interval:50,
-
- /**
- * @description A transaction counter that increments the transaction id for each transaction.
- * @property _transaction_id
- * @private
- * @static
- * @type int
- */
- _transaction_id:0,
-
- /**
- * @description Member to add an ActiveX id to the existing xml_progid array.
- * In the event(unlikely) a new ActiveX id is introduced, it can be added
- * without internal code modifications.
- * @method setProgId
- * @public
- * @static
- * @param {string} id The ActiveX id to be added to initialize the XHR object.
- * @return void
- */
- setProgId:function(id)
- {
- this._msxml_progid.unshift(id);
- YAHOO.log('ActiveX Program Id ' + id + ' added to _msxml_progid.', 'info', 'Connection');
- },
-
- /**
- * @description Member to enable or disable the default POST header.
- * @method setDefaultPostHeader
- * @public
- * @static
- * @param {boolean} b Set and use default header - true or false .
- * @return void
- */
- setDefaultPostHeader:function(b)
- {
- this._use_default_post_header = b;
- YAHOO.log('Use default POST header set to ' + b, 'info', 'Connection');
- },
-
- /**
- * @description Member to enable or disable the default POST header.
- * @method setDefaultXhrHeader
- * @public
- * @static
- * @param {boolean} b Set and use default header - true or false .
- * @return void
- */
- setDefaultXhrHeader:function(b)
- {
- this._use_default_xhr_header = b;
- YAHOO.log('Use default transaction header set to ' + b, 'info', 'Connection');
- },
-
- /**
- * @description Member to modify the default polling interval.
- * @method setPollingInterval
- * @public
- * @static
- * @param {int} i The polling interval in milliseconds.
- * @return void
- */
- setPollingInterval:function(i)
- {
- if(typeof i == 'number' && isFinite(i)){
- this._polling_interval = i;
- YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
- }
- },
-
- /**
- * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
- * the XMLHttpRequest instance and the transaction id.
- * @method createXhrObject
- * @private
- * @static
- * @param {int} transactionId Property containing the transaction id for this transaction.
- * @return object
- */
- createXhrObject:function(transactionId)
- {
- var obj,http;
- try
- {
- // Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
- http = new XMLHttpRequest();
- // Object literal with http and tId properties
- obj = { conn:http, tId:transactionId };
- YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
- }
- catch(e)
- {
- for(var i=0; i= 200 && httpStatus < 300){
- responseObject = this.createResponseObject(o, callback.argument);
- if(callback.success){
- if(!callback.scope){
- callback.success(responseObject);
- YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
- }
- else{
- // If a scope property is defined, the callback will be fired from
- // the context of the object.
- callback.success.apply(callback.scope, [responseObject]);
- YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
- }
- }
- }
- else{
- switch(httpStatus){
- // The following cases are wininet.dll error codes that may be encountered.
- case 12002: // Server timeout
- case 12029: // 12029 to 12031 correspond to dropped connections.
- case 12030:
- case 12031:
- case 12152: // Connection closed by server.
- case 13030: // See above comments for variable status.
- responseObject = this.createExceptionObject(o.tId, callback.argument, (isAbort?isAbort:false));
- if(callback.failure){
- if(!callback.scope){
- callback.failure(responseObject);
- YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
- }
- else{
- callback.failure.apply(callback.scope, [responseObject]);
- YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
- }
- }
- break;
- default:
- responseObject = this.createResponseObject(o, callback.argument);
- if(callback.failure){
- if(!callback.scope){
- callback.failure(responseObject);
- YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
- }
- else{
- callback.failure.apply(callback.scope, [responseObject]);
- YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
- }
- }
- }
- }
-
- this.releaseObject(o);
- responseObject = null;
- },
-
- /**
- * @description This method evaluates the server response, creates and returns the results via
- * its properties. Success and failure cases will differ in the response
- * object's property values.
- * @method createResponseObject
- * @private
- * @static
- * @param {object} o The connection object
- * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
- * @return {object}
- */
- createResponseObject:function(o, callbackArg)
- {
- var obj = {};
- var headerObj = {};
-
- try
- {
- var headerStr = o.conn.getAllResponseHeaders();
- var header = headerStr.split('\n');
- for(var i=0; i ');
-
- // IE will throw a security exception in an SSL environment if the
- // iframe source is undefined.
- if(typeof secureUri == 'boolean'){
- io.src = 'javascript:false';
- }
- else if(typeof secureURI == 'string'){
- // Deprecated
- io.src = secureUri;
- }
- }
- else{
- var io = document.createElement('iframe');
- io.id = frameId;
- io.name = frameId;
- }
-
- io.style.position = 'absolute';
- io.style.top = '-1000px';
- io.style.left = '-1000px';
-
- document.body.appendChild(io);
- YAHOO.log('File upload iframe created. Id is:' + frameId, 'info', 'Connection');
- },
-
- /**
- * @description Parses the POST data and creates hidden form elements
- * for each key-value, and appends them to the HTML form object.
- * @method appendPostData
- * @private
- * @static
- * @param {string} postData The HTTP POST data
- * @return {array} formElements Collection of hidden fields.
- */
- appendPostData:function(postData)
- {
- var formElements = [];
- var postMessage = postData.split('&');
- for(var i=0; i < postMessage.length; i++){
- var delimitPos = postMessage[i].indexOf('=');
- if(delimitPos != -1){
- formElements[i] = document.createElement('input');
- formElements[i].type = 'hidden';
- formElements[i].name = postMessage[i].substring(0,delimitPos);
- formElements[i].value = postMessage[i].substring(delimitPos+1);
- this._formNode.appendChild(formElements[i]);
- }
- }
-
- return formElements;
- },
-
- /**
- * @description Uploads HTML form, including files/attachments, to the
- * iframe created in createFrame.
- * @method uploadFile
- * @private
- * @static
- * @param {int} id The transaction id.
- * @param {object} callback - User-defined callback object.
- * @param {string} uri Fully qualified path of resource.
- * @return {void}
- */
- uploadFile:function(id, callback, uri, postData){
-
- // Each iframe has an id prefix of "yuiIO" followed
- // by the unique transaction id.
- var frameId = 'yuiIO' + id;
- var uploadEncoding = 'multipart/form-data';
- var io = document.getElementById(frameId);
-
- // Initialize the HTML form properties in case they are
- // not defined in the HTML form.
- this._formNode.action = uri;
- this._formNode.method = 'POST';
- this._formNode.target = frameId;
-
- if(this._formNode.encoding){
- // IE does not respect property enctype for HTML forms.
- // Instead it uses the property - "encoding".
- this._formNode.encoding = uploadEncoding;
- }
- else{
- this._formNode.enctype = uploadEncoding;
- }
-
-
- if(postData){
- var oElements = this.appendPostData(postData);
- }
-
- this._formNode.submit();
-
- if(oElements && oElements.length > 0){
- for(var i=0; i < oElements.length; i++){
- this._formNode.removeChild(oElements[i]);
- }
- }
-
- // Reset HTML form status properties.
- this.resetFormState();
-
- // Create the upload callback handler that fires when the iframe
- // receives the load event. Subsequently, the event handler is detached
- // and the iframe removed from the document.
-
- var uploadCallback = function()
- {
- var obj = {};
- obj.tId = id;
- obj.argument = callback.argument;
-
- try
- {
- obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;
- obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
- }
- catch(e){}
-
- if(callback && callback.upload){
- if(!callback.scope){
- callback.upload(obj);
- YAHOO.log('Upload callback.', 'info', 'Connection');
- }
- else{
- callback.upload.apply(callback.scope, [obj]);
- YAHOO.log('Upload callback with scope.', 'info', 'Connection');
- }
- }
-
- if(YAHOO.util.Event){
- YAHOO.util.Event.removeListener(io, "load", uploadCallback);
- }
- else if(window.detachEvent){
- io.detachEvent('onload', uploadCallback);
- }
- else{
- io.removeEventListener('load', uploadCallback, false);
- }
- setTimeout(
- function(){
- document.body.removeChild(io);
- YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
- }, 100);
- };
-
-
- // Bind the onload handler to the iframe to detect the file upload response.
- if(YAHOO.util.Event){
- YAHOO.util.Event.addListener(io, "load", uploadCallback);
- }
- else if(window.attachEvent){
- io.attachEvent('onload', uploadCallback);
- }
- else{
- io.addEventListener('load', uploadCallback, false);
- }
- },
-
- /**
- * @description Method to terminate a transaction, if it has not reached readyState 4.
- * @method abort
- * @public
- * @static
- * @param {object} o The connection object returned by asyncRequest.
- * @param {object} callback User-defined callback object.
- * @param {string} isTimeout boolean to indicate if abort was a timeout.
- * @return {boolean}
- */
- abort:function(o, callback, isTimeout)
- {
- if(this.isCallInProgress(o)){
- o.conn.abort();
- window.clearInterval(this._poll[o.tId]);
- delete this._poll[o.tId];
- if(isTimeout){
- delete this._timeOut[o.tId];
- }
-
- this.handleTransactionResponse(o, callback, true);
- YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
-
- return true;
- }
- else{
- YAHOO.log('Transaction ' + o.tId + ' abort call failed.', 'warn', 'Connection');
- return false;
- }
- },
-
- /**
- * Public method to check if the transaction is still being processed.
- *
- * @method isCallInProgress
- * @public
- * @static
- * @param {object} o The connection object returned by asyncRequest
- * @return {boolean}
- */
- isCallInProgress:function(o)
- {
- // if the XHR object assigned to the transaction has not been dereferenced,
- // then check its readyState status. Otherwise, return false.
- if(o.conn){
- return o.conn.readyState != 4 && o.conn.readyState != 0;
- }
- else{
- //The XHR object has been destroyed.
- return false;
- }
- },
-
- /**
- * @description Dereference the XHR instance and the connection object after the transaction is completed.
- * @method releaseObject
- * @private
- * @static
- * @param {object} o The connection object
- * @return {void}
- */
- releaseObject:function(o)
- {
- //dereference the XHR instance.
- o.conn = null;
- YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
- //dereference the connection object.
- o = null;
- }
-};
-YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/connection/connection-min.js b/interface/ispconfig/interface/js/yui/connection/connection-min.js
deleted file mode 100644
index ad6dbb7d5d1aedd604be19a8d2e4d6eddec6b2e1..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/connection/connection-min.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,setProgId:function(id)
-{this._msxml_progid.unshift(id);},setDefaultPostHeader:function(b)
-{this._use_default_post_header=b;},setDefaultXhrHeader:function(b)
-{this._use_default_xhr_header=b;},setPollingInterval:function(i)
-{if(typeof i=='number'&&isFinite(i)){this._polling_interval=i;}},createXhrObject:function(transactionId)
-{var obj,http;try
-{http=new XMLHttpRequest();obj={conn:http,tId:transactionId};}
-catch(e)
-{for(var i=0;i=200&&httpStatus<300){responseObject=this.createResponseObject(o,callback.argument);if(callback.success){if(!callback.scope){callback.success(responseObject);}
-else{callback.success.apply(callback.scope,[responseObject]);}}}
-else{switch(httpStatus){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:responseObject=this.createExceptionObject(o.tId,callback.argument,(isAbort?isAbort:false));if(callback.failure){if(!callback.scope){callback.failure(responseObject);}
-else{callback.failure.apply(callback.scope,[responseObject]);}}
-break;default:responseObject=this.createResponseObject(o,callback.argument);if(callback.failure){if(!callback.scope){callback.failure(responseObject);}
-else{callback.failure.apply(callback.scope,[responseObject]);}}}}
-this.releaseObject(o);responseObject=null;},createResponseObject:function(o,callbackArg)
-{var obj={};var headerObj={};try
-{var headerStr=o.conn.getAllResponseHeaders();var header=headerStr.split('\n');for(var i=0;i ');if(typeof secureUri=='boolean'){io.src='javascript:false';}
-else if(typeof secureURI=='string'){io.src=secureUri;}}
-else{var io=document.createElement('iframe');io.id=frameId;io.name=frameId;}
-io.style.position='absolute';io.style.top='-1000px';io.style.left='-1000px';document.body.appendChild(io);},appendPostData:function(postData)
-{var formElements=[];var postMessage=postData.split('&');for(var i=0;i0){for(var i=0;i= 200 && httpStatus < 300){
- responseObject = this.createResponseObject(o, callback.argument);
- if(callback.success){
- if(!callback.scope){
- callback.success(responseObject);
- }
- else{
- // If a scope property is defined, the callback will be fired from
- // the context of the object.
- callback.success.apply(callback.scope, [responseObject]);
- }
- }
- }
- else{
- switch(httpStatus){
- // The following cases are wininet.dll error codes that may be encountered.
- case 12002: // Server timeout
- case 12029: // 12029 to 12031 correspond to dropped connections.
- case 12030:
- case 12031:
- case 12152: // Connection closed by server.
- case 13030: // See above comments for variable status.
- responseObject = this.createExceptionObject(o.tId, callback.argument, (isAbort?isAbort:false));
- if(callback.failure){
- if(!callback.scope){
- callback.failure(responseObject);
- }
- else{
- callback.failure.apply(callback.scope, [responseObject]);
- }
- }
- break;
- default:
- responseObject = this.createResponseObject(o, callback.argument);
- if(callback.failure){
- if(!callback.scope){
- callback.failure(responseObject);
- }
- else{
- callback.failure.apply(callback.scope, [responseObject]);
- }
- }
- }
- }
-
- this.releaseObject(o);
- responseObject = null;
- },
-
- /**
- * @description This method evaluates the server response, creates and returns the results via
- * its properties. Success and failure cases will differ in the response
- * object's property values.
- * @method createResponseObject
- * @private
- * @static
- * @param {object} o The connection object
- * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
- * @return {object}
- */
- createResponseObject:function(o, callbackArg)
- {
- var obj = {};
- var headerObj = {};
-
- try
- {
- var headerStr = o.conn.getAllResponseHeaders();
- var header = headerStr.split('\n');
- for(var i=0; i ');
-
- // IE will throw a security exception in an SSL environment if the
- // iframe source is undefined.
- if(typeof secureUri == 'boolean'){
- io.src = 'javascript:false';
- }
- else if(typeof secureURI == 'string'){
- // Deprecated
- io.src = secureUri;
- }
- }
- else{
- var io = document.createElement('iframe');
- io.id = frameId;
- io.name = frameId;
- }
-
- io.style.position = 'absolute';
- io.style.top = '-1000px';
- io.style.left = '-1000px';
-
- document.body.appendChild(io);
- },
-
- /**
- * @description Parses the POST data and creates hidden form elements
- * for each key-value, and appends them to the HTML form object.
- * @method appendPostData
- * @private
- * @static
- * @param {string} postData The HTTP POST data
- * @return {array} formElements Collection of hidden fields.
- */
- appendPostData:function(postData)
- {
- var formElements = [];
- var postMessage = postData.split('&');
- for(var i=0; i < postMessage.length; i++){
- var delimitPos = postMessage[i].indexOf('=');
- if(delimitPos != -1){
- formElements[i] = document.createElement('input');
- formElements[i].type = 'hidden';
- formElements[i].name = postMessage[i].substring(0,delimitPos);
- formElements[i].value = postMessage[i].substring(delimitPos+1);
- this._formNode.appendChild(formElements[i]);
- }
- }
-
- return formElements;
- },
-
- /**
- * @description Uploads HTML form, including files/attachments, to the
- * iframe created in createFrame.
- * @method uploadFile
- * @private
- * @static
- * @param {int} id The transaction id.
- * @param {object} callback - User-defined callback object.
- * @param {string} uri Fully qualified path of resource.
- * @return {void}
- */
- uploadFile:function(id, callback, uri, postData){
-
- // Each iframe has an id prefix of "yuiIO" followed
- // by the unique transaction id.
- var frameId = 'yuiIO' + id;
- var uploadEncoding = 'multipart/form-data';
- var io = document.getElementById(frameId);
-
- // Initialize the HTML form properties in case they are
- // not defined in the HTML form.
- this._formNode.action = uri;
- this._formNode.method = 'POST';
- this._formNode.target = frameId;
-
- if(this._formNode.encoding){
- // IE does not respect property enctype for HTML forms.
- // Instead it uses the property - "encoding".
- this._formNode.encoding = uploadEncoding;
- }
- else{
- this._formNode.enctype = uploadEncoding;
- }
-
-
- if(postData){
- var oElements = this.appendPostData(postData);
- }
-
- this._formNode.submit();
-
- if(oElements && oElements.length > 0){
- for(var i=0; i < oElements.length; i++){
- this._formNode.removeChild(oElements[i]);
- }
- }
-
- // Reset HTML form status properties.
- this.resetFormState();
-
- // Create the upload callback handler that fires when the iframe
- // receives the load event. Subsequently, the event handler is detached
- // and the iframe removed from the document.
-
- var uploadCallback = function()
- {
- var obj = {};
- obj.tId = id;
- obj.argument = callback.argument;
-
- try
- {
- obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;
- obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
- }
- catch(e){}
-
- if(callback && callback.upload){
- if(!callback.scope){
- callback.upload(obj);
- }
- else{
- callback.upload.apply(callback.scope, [obj]);
- }
- }
-
- if(YAHOO.util.Event){
- YAHOO.util.Event.removeListener(io, "load", uploadCallback);
- }
- else if(window.detachEvent){
- io.detachEvent('onload', uploadCallback);
- }
- else{
- io.removeEventListener('load', uploadCallback, false);
- }
- setTimeout(
- function(){
- document.body.removeChild(io);
- }, 100);
- };
-
-
- // Bind the onload handler to the iframe to detect the file upload response.
- if(YAHOO.util.Event){
- YAHOO.util.Event.addListener(io, "load", uploadCallback);
- }
- else if(window.attachEvent){
- io.attachEvent('onload', uploadCallback);
- }
- else{
- io.addEventListener('load', uploadCallback, false);
- }
- },
-
- /**
- * @description Method to terminate a transaction, if it has not reached readyState 4.
- * @method abort
- * @public
- * @static
- * @param {object} o The connection object returned by asyncRequest.
- * @param {object} callback User-defined callback object.
- * @param {string} isTimeout boolean to indicate if abort was a timeout.
- * @return {boolean}
- */
- abort:function(o, callback, isTimeout)
- {
- if(this.isCallInProgress(o)){
- o.conn.abort();
- window.clearInterval(this._poll[o.tId]);
- delete this._poll[o.tId];
- if(isTimeout){
- delete this._timeOut[o.tId];
- }
-
- this.handleTransactionResponse(o, callback, true);
-
- return true;
- }
- else{
- return false;
- }
- },
-
- /**
- * Public method to check if the transaction is still being processed.
- *
- * @method isCallInProgress
- * @public
- * @static
- * @param {object} o The connection object returned by asyncRequest
- * @return {boolean}
- */
- isCallInProgress:function(o)
- {
- // if the XHR object assigned to the transaction has not been dereferenced,
- // then check its readyState status. Otherwise, return false.
- if(o.conn){
- return o.conn.readyState != 4 && o.conn.readyState != 0;
- }
- else{
- //The XHR object has been destroyed.
- return false;
- }
- },
-
- /**
- * @description Dereference the XHR instance and the connection object after the transaction is completed.
- * @method releaseObject
- * @private
- * @static
- * @param {object} o The connection object
- * @return {void}
- */
- releaseObject:function(o)
- {
- //dereference the XHR instance.
- o.conn = null;
- //dereference the connection object.
- o = null;
- }
-};
-YAHOO.register("connection", YAHOO.widget.Module, {version: "2.2.0", build: "127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/container/README b/interface/ispconfig/interface/js/yui/container/README
deleted file mode 100644
index ba484d2632d11b40b0a5e95ae3ef1b22c77914aa..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/container/README
+++ /dev/null
@@ -1,207 +0,0 @@
-Container Release Notes
-
-*** version 2.2.0 ***
-
- Module
- - Removed hardcoded file paths for image roots. Affected properties
- include:
- - YAHOO.widget.Module.IMG_ROOT
- - YAHOO.widget.Module.IMG_ROOT_SSL
- - HTML elements, created via createElement, now use lowercase.
-
- Panel
- - To shield against CSS class collision, the following references now
- have a "yui-" prefix:
- - YAHOO.widget.Panel.CSS_PANEL now references CSS class "yui-
- panel".
- - YAHOO.widget.Panel.CSS_PANEL_CONTAINER now references CSS class
- "yui-panel-container".
- - Close button can now be configured via the CSS class "container-
- close".
- - HTML elements, created via createElement, now use lowercase.
-
- Dialog
- - To shield against CSS class collision, the following references now
- have a "yui-" prefix:
- - YAHOO.widget.Dialog.CSS_DIALOG now references CSS class "yui-
- dialog".
- - HTML elements, created via createElement, now use lowercase.
-
- SimpleDialog
- - Removed hardcoded file paths for SimpleDialog icons, which are now
- configurable in CSS:
- - YAHOO.widget.SimpleDialog.ICON_BLOCK now references CSS class
- "blckicon".
- - YAHOO.widget.SimpleDialog.ICON_ALARM now references CSS class
- "alrticon".
- - YAHOO.widget.SimpleDialog.ICON_HELP now references CSS class
- "hlpicon".
- - YAHOO.widget.SimpleDialog.ICON_INFO now references CSS class
- "infoicon".
- - YAHOO.widget.SimpleDialog.ICON_WARN now references CSS class
- "warnicon".
- - YAHOO.widget.SimpleDialog.ICON_TIP now references CSS class
- "tipicon".
- - To provide shield against CSS class collision the following
- references now have a "yui-" prefix:
- - YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG now references CSS
- class "yui-simple-dialog";
-
- Tooltip
- - To shield against CSS class collision, the following references now
- have a "yui-" prefix:
- - YAHOO.widget.Tooltip.CSS_TOOLTIP now references CSS class "yui-
- tipicon" "yui-tt";
-
-*** version 0.12.2 ***
-
- Module
- - Corrected issue where listener was not properly removed from resize
- monitor element when "monitorresize" is disabled
-
- Panel
- - Fixed issue that would sometimes prevent select lists from working
- properly in Firefox
-
- Dialog
- - Fixed error that would occur when trying to create a Dialog where
- the first form element is set to "disabled"
- - Modified "close" property handler for Dialog/SimpleDialog to call
- "cancel" instead of "hide"
-
-*** version 0.12.1 ***
-
- All Classes
- - "monitorresize" property now functions in situations where
- document.domain has been modified.
- - YAHOO.widget.Module.textResizeEvent now fires when the font size is
- changed (except for Opera, which uses "zoom" functionality that
- prevents this)
- - Event listeners attached to container elements are now properly
- purged on destroy using YAHOO.util.Event.purgeElement
-
- Panel
- - Fixed issue where focus events were broken on the page when a modal
- Panel was created
-
- Dialog
- - Fixed bug where hitting "enter" on a Dialog was forcing the default
- submission behavior of the form's action to execute
- - Dialog no longer tries to give focus to hidden form elements.
- - Replaced references in Panel with for XHTML
- compliance.
- - Fixed issue that was preventing Safari from successfully using the
- getData() function
-
-*** version 0.12 ***
-
- All Classes
- - New documentation format implemented, and removed unnecessary
- prototype null references previously used for generating
- documentation
-
- Config
- - Added 'undefined' check when reading initial properties for
- .reset()
- - Fixed Firefox warning on .resetProperty()
- - Fixed issue preventing resetProperty() from resetting values
- correctly
-
- Module
- - Removed unused "childNodesInDom" property
-
- Overlay
- - Converted center() to use Dom utility
- - Fixed configVisible() to properly detect actual visible/hidden
- status in Internet Explorer, which reports "inherit" for all elements
- by default.
- - Updated onDomResize to properly reapply "context" property
- - Unified scroll/resize handlers so that they fire properly (when the
- event has completed) as opposed to constantly (as seen in Mozilla-
- based browsers)
-
- Panel
- - Modified modality mask to show before Panel is shown (prior to any
- animation)
- - Modified buildWrapper to eliminate cloning of the initial markup
- module, which fixes issues with select options not maintaining their
- default selections in IE
- - Modality mask is now z-indexed properly so that the mask z-index is
- always one less than the Panel z-index
-
- Dialog
- - Fixed Connection to get "action" attribute using getAttribute, to
- allow for form fields named "action"
- - Added support for "GET" by retrieving the form "method" rather than
- always defaulting to "POST"
-
- KeyListener
- - Fixed to work properly with Safari 2.0 by matching against keyCode
- or charCode
-
-*** version 0.11.4 ***
-
- - Panel: Modality mask is now properly removed from DOM on Panel
- destroy.
-
-*** version 0.11.3 ***
-
- - Module: Fixed SSL warning issue in IE
- - Overlay: Fixed memory leak related to iframe shim in IE
- - Panel: No focusable elements under the mask can now be tabbed to
- - Panel: Set Panel container overflow to hidden to fix scrolling issue
- in Opera 9
-
-*** version 0.11.2 ***
-
- - All: JsLint optimization
- - Overlay: Fixed SSL issues with monitorresize property
- - OverlayManager: Fixed z-index incrementing issues
- - Dialog: Form elements called "name" will now function properly
- - Dialog: Removed unnecessary scope:this reference
-
-*** version 0.11.1 ***
-
- - Tooltip: Removed incorrect logger statement
- - Dialog: Corrected logic that was causing browser lockup in IE for
- SimpleDialog
- - Dialog: Fixed "firstButtom" typo
-
-*** version 0.11.0 ***
-
- - toString function added to all classes for easy logging
- - YAHOO.extend is now being used for inheritance on all container
- classes
- - Module: monitorresize feature now works on all browsers
- - Module: Fixed bug with image root and isSecure
- - Overlay: Fixed bugs related to IFRAME shim positioning
- - Overlay: center() now works in quirks mode
- - Overlay: Overlay now has a custom destroy() method that also removes
- the IFRAME shim
- - OverlayManager: Fixed bug in the prototype that was preventing
- multiple Managers on one page
- - OverlayManager: focusEvent now fires at all appropriate times
- - Tooltip: context can now be specified as an array, so Tooltips can be
- reused across multiple context elements
- - Tooltip: preventoverlap now functions properly for large context
- elements (i.e, images)
- - Tooltip: fixed bugs regarding setTimeout
- - Tooltip: added mousemove event to allow for more accurate Tooltip
- positioning
- - Panel: added dragEvent for monitoring all event handlers for drag and
- drop
- - Panel: modality mask is now resized on scroll
- - Panel: KeyListeners are now properly destroyed when the Panel is
- destroyed
- - Panel: Header is now sized properly in quirks mode
- - Dialog: Blinking cursor issue is fixed for Firefox
- - Dialog: callback object for Connection is now public (this.callback)
- - Dialog: onsuccess/onfailure properties removed (as a result of the
- public callback object)
- - Dialog: Dialog is now invisible by default
- - Dialog: Buttons are now properly cleaned up on destroy
-
-*** version 0.10.0 ***
-
-* Initial release
-
diff --git a/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif
deleted file mode 100644
index 443d39bbfcdb29d508f2f0d632ee15d72579005c..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/alrt16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif
deleted file mode 100644
index 56689611db271fcafe42e652c6496b703f38d9e3..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/blck16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif b/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif
deleted file mode 100644
index e2f67d72efc158da4e069822cbe338915761e396..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/close12_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/container.css b/interface/ispconfig/interface/js/yui/container/assets/container.css
deleted file mode 100644
index ee6f3b036c2fbc13df3eb64405832c0f4434376a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/container/assets/container.css
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-.yui-overlay {
- position:absolute;
- display:block;
-}
-
-.yui-tt {
- visibility:hidden;
- position:absolute;
- color:#333;
- background-color:#FDFFB4;
- font-family:arial,helvetica,verdana,sans-serif;
- padding:2px;
- border:1px solid #FCC90D;
- font:100% sans-serif;
- width:auto;
-}
-
-* html body.masked select {
- visibility:hidden;
-}
-
-* html div.yui-panel-container select {
- visibility:inherit;
-}
-
-* html div.drag select {
- visibility:hidden;
-}
-
-* html div.hide-select select {
- visibility:hidden;
-}
-
-.mask {
- z-index:0;
- display:none;
- position:absolute;
- top:0;
- left:0;
- -moz-opacity: 0.5;
- opacity:.50;
- filter: alpha(opacity=50);
- background-color:#CCC;
-}
-
-.hide-scrollbars * {
- overflow:hidden;
-}
-
-.hide-scrollbars textarea, .hide-scrollbars select {
- overflow:hidden;
- display:none;
-}
-
-.show-scrollbars textarea, .show-scrollbars select {
- overflow:visible;
-}
-
-.yui-panel-container {
- position:absolute;
- background-color:transparent;
- z-index:6;
- visibility:hidden;
- overflow:visible;
- width:auto;
-}
-
-.yui-panel-container.focused {
-}
-
-
-.yui-panel-container.matte {
- padding:3px;
- background-color:#FFF;
-}
-
-.yui-panel-container.matte .underlay {
- display:none;
-}
-
-.yui-panel-container.shadow {
- padding:0px;
- background-color:transparent;
-}
-
-.yui-panel-container.shadow .underlay {
- visibility:inherit;
- position:absolute;
- background-color:#CCC;
- top:3px;left:3px;
- z-index:0;
- width:100%;
- height:100%;
- -moz-opacity: 0.7;
- opacity:.70;
- filter:alpha(opacity=70);
- zoom:1;
-}
-
-.yui-panel {
- visibility:hidden;
- border-collapse:separate;
- position:relative;
- left:0px;top:0px;
- font:1em Arial;
- background-color:#FFF;
- border:1px solid #000;
- z-index:1;
- overflow:hidden;
-}
-
-.yui-panel .hd {
- background-color:#3d77cb;
- color:#FFF;
- font-size:100%;
- line-height:100%;
- border:1px solid #FFF;
- border-bottom:1px solid #000;
- font-weight:bold;
- overflow:hidden;
- padding:4px;
-}
-
-.yui-panel .bd {
- overflow:hidden;
- padding:4px;
-}
-
-.yui-panel .bd p {
- margin:0 0 1em;
-}
-
-.yui-panel .container-close {
- position:absolute;
- top:5px;
- right:4px;
- z-index:6;
- height:12px;
- width:12px;
- margin:0px;
- padding:0px;
- background:url(close12_1.gif) no-repeat;
- cursor:pointer;
- visibility:inherit;
-}
-
-.yui-panel .ft {
- padding:4px;
- overflow:hidden;
-}
-
-.yui-simple-dialog .bd .yui-icon {
- background-repeat:no-repeat;
- width:16px;
- height:16px;
- margin-right:10px;
- float:left;
-}
-
-.yui-simple-dialog .bd span.blckicon {
- background: url("blck16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.alrticon {
- background: url("alrt16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.hlpicon {
- background: url("hlp16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.infoicon {
- background: url("info16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.warnicon {
- background: url("warn16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.tipicon {
- background: url("tip16_1.gif") no-repeat;
-}
-
-.yui-dialog .ft, .simple-dialog .ft {
- padding-bottom:5px;
- padding-right:5px;
- text-align:right;
-}
-
-.yui-dialog form, .yui-simple-dialog form {
- margin:0;
-}
-
-.button-group button {
- font:100 76% verdana;
- text-decoration:none;
- background-color: #E4E4E4;
- color: #333;
- cursor: hand;
- vertical-align: middle;
- border: 2px solid #797979;
- border-top-color:#FFF;
- border-left-color:#FFF;
- margin:2px;
- padding:2px;
-}
-
-.button-group button.default {
- font-weight:bold;
-}
-
-.button-group button:hover, .button-group button.hover {
- border:2px solid #90A029;
- background-color:#EBF09E;
- border-top-color:#FFF;
- border-left-color:#FFF;
-}
-
-.button-group button:active {
- border:2px solid #E4E4E4;
- background-color:#BBB;
- border-top-color:#333;
- border-left-color:#333;
-}
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif
deleted file mode 100644
index 4645c8fdfa693126bd5fe969737dc1ccac1e62e1..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/hlp16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif
deleted file mode 100644
index 22f697a9917f3bae423726ef6c541e618e7a0221..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/info16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif
deleted file mode 100644
index 8f0be2b8d1fc2151459ddf48c8676f296489a32e..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/tip16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif b/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif
deleted file mode 100644
index d679df5aae924ed5a4b16a921c3c4578cd6ea970..0000000000000000000000000000000000000000
Binary files a/interface/ispconfig/interface/js/yui/container/assets/warn16_1.gif and /dev/null differ
diff --git a/interface/ispconfig/interface/js/yui/container/container-debug.js b/interface/ispconfig/interface/js/yui/container/container-debug.js
deleted file mode 100644
index 4cbedb0a476be6a8d9b24bcd2e18b8e9f2ac4b45..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/container/container-debug.js
+++ /dev/null
@@ -1,4752 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state.
-* @namespace YAHOO.util
-* @class Config
-* @constructor
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config = function(owner) {
- if (owner) {
- this.init(owner);
- }
- if (!owner) { YAHOO.log("No owner specified for Config object", "error"); }
-};
-
-YAHOO.util.Config.prototype = {
-
- /**
- * Object reference to the owner of this Config Object
- * @property owner
- * @type Object
- */
- owner : null,
-
- /**
- * Boolean flag that specifies whether a queue is currently being executed
- * @property queueInProgress
- * @type Boolean
- */
- queueInProgress : false,
-
-
- /**
- * Validates that the value passed in is a Boolean.
- * @method checkBoolean
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkBoolean: function(val) {
- if (typeof val == 'boolean') {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Validates that the value passed in is a number.
- * @method checkNumber
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkNumber: function(val) {
- if (isNaN(val)) {
- return false;
- } else {
- return true;
- }
- }
-};
-
-
-/**
-* Initializes the configuration Object and all of its local members.
-* @method init
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config.prototype.init = function(owner) {
-
- this.owner = owner;
-
- /**
- * Object reference to the owner of this Config Object
- * @event configChangedEvent
- */
- this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged");
- this.queueInProgress = false;
-
- /* Private Members */
-
- /**
- * Maintains the local collection of configuration property objects and their specified values
- * @property config
- * @private
- * @type Object
- */
- var config = {};
-
- /**
- * Maintains the local collection of configuration property objects as they were initially applied.
- * This object is used when resetting a property.
- * @property initialConfig
- * @private
- * @type Object
- */
- var initialConfig = {};
-
- /**
- * Maintains the local, normalized CustomEvent queue
- * @property eventQueue
- * @private
- * @type Object
- */
- var eventQueue = [];
-
- /**
- * Fires a configuration property event using the specified value.
- * @method fireEvent
- * @private
- * @param {String} key The configuration property's name
- * @param {value} Object The value of the correct type for the property
- */
- var fireEvent = function( key, value ) {
- YAHOO.log("Firing Config event: " + key + "=" + value, "info");
- key = key.toLowerCase();
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- property.event.fire(value);
- }
- };
- /* End Private Members */
-
- /**
- * Adds a property to the Config Object's private config hash.
- * @method addProperty
- * @param {String} key The configuration property's name
- * @param {Object} propertyObject The Object containing all of this property's arguments
- */
- this.addProperty = function( key, propertyObject ) {
- key = key.toLowerCase();
- YAHOO.log("Added property: " + key, "info");
-
- config[key] = propertyObject;
-
- propertyObject.event = new YAHOO.util.CustomEvent(key);
- propertyObject.key = key;
-
- if (propertyObject.handler) {
- propertyObject.event.subscribe(propertyObject.handler, this.owner, true);
- }
-
- this.setProperty(key, propertyObject.value, true);
-
- if (! propertyObject.suppressEvent) {
- this.queueProperty(key, propertyObject.value);
- }
- };
-
- /**
- * Returns a key-value configuration map of the values currently set in the Config Object.
- * @method getConfig
- * @return {Object} The current config, represented in a key-value map
- */
- this.getConfig = function() {
- var cfg = {};
-
- for (var prop in config) {
- var property = config[prop];
- if (typeof property != 'undefined' && property.event) {
- cfg[prop] = property.value;
- }
- }
-
- return cfg;
- };
-
- /**
- * Returns the value of specified property.
- * @method getProperty
- * @param {String} key The name of the property
- * @return {Object} The value of the specified property
- */
- this.getProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- return property.value;
- } else {
- return undefined;
- }
- };
-
- /**
- * Resets the specified property's value to its initial value.
- * @method resetProperty
- * @param {String} key The name of the property
- * @return {Boolean} True is the property was reset, false if not
- */
- this.resetProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (initialConfig[key] && initialConfig[key] != 'undefined') {
- this.setProperty(key, initialConfig[key]);
- }
- return true;
- } else {
- return false;
- }
- };
-
- /**
- * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired.
- * @method setProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @param {Boolean} silent Whether the value should be set silently, without firing the property event.
- * @return {Boolean} True, if the set was successful, false if it failed.
- */
- this.setProperty = function(key, value, silent) {
- key = key.toLowerCase();
- YAHOO.log("setProperty: " + key + "=" + value, "info");
-
- if (this.queueInProgress && ! silent) {
- this.queueProperty(key,value); // Currently running through a queue...
- return true;
- } else {
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
- property.value = value;
- if (! silent) {
- fireEvent(key, value);
- this.configChangedEvent.fire([key, value]);
- }
- return true;
- }
- } else {
- return false;
- }
- }
- };
-
- /**
- * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is
- * moved from its current position to the end of the queue.
- * @method queueProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @return {Boolean} true, if the set was successful, false if it failed.
- */
- this.queueProperty = function(key, value) {
- key = key.toLowerCase();
- YAHOO.log("queueProperty: " + key + "=" + value, "info");
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
-
- if (typeof value != 'undefined') {
- property.value = value;
- } else {
- value = property.value;
- }
-
- var foundDuplicate = false;
-
- for (var i=0;iOR
-* @param {HTMLElement} el The element representing the Module
-* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
-*/
-YAHOO.widget.Module = function(el, userConfig) {
- if (el) {
- this.init(el, userConfig);
- } else {
- YAHOO.log("No element or element ID specified for Module instantiation", "error");
- }
-};
-
-/**
-* Constant representing the prefix path to use for non-secure images
-* @property YAHOO.widget.Module.IMG_ROOT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT = null;
-
-/**
-* Constant representing the prefix path to use for securely served images
-* @property YAHOO.widget.Module.IMG_ROOT_SSL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT_SSL = null;
-
-/**
-* Constant for the default CSS class name that represents a Module
-* @property YAHOO.widget.Module.CSS_MODULE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_MODULE = "module";
-
-/**
-* Constant representing the module header
-* @property YAHOO.widget.Module.CSS_HEADER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_HEADER = "hd";
-
-/**
-* Constant representing the module body
-* @property YAHOO.widget.Module.CSS_BODY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_BODY = "bd";
-
-/**
-* Constant representing the module footer
-* @property YAHOO.widget.Module.CSS_FOOTER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_FOOTER = "ft";
-
-/**
-* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size
-* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
-
-/**
-* Singleton CustomEvent fired when the font size is changed in the browser.
-* Opera's "zoom" functionality currently does not support text size detection.
-* @event YAHOO.widget.Module.textResizeEvent
-*/
-YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize");
-
-YAHOO.widget.Module.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.Module,
-
- /**
- * The main module element that contains the header, body, and footer
- * @property element
- * @type HTMLElement
- */
- element : null,
-
- /**
- * The header element, denoted with CSS class "hd"
- * @property header
- * @type HTMLElement
- */
- header : null,
-
- /**
- * The body element, denoted with CSS class "bd"
- * @property body
- * @type HTMLElement
- */
- body : null,
-
- /**
- * The footer element, denoted with CSS class "ft"
- * @property footer
- * @type HTMLElement
- */
- footer : null,
-
- /**
- * The id of the element
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The String representing the image root
- * @property imageRoot
- * @type String
- */
- imageRoot : YAHOO.widget.Module.IMG_ROOT,
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- * @method initEvents
- */
- initEvents : function() {
-
- /**
- * CustomEvent fired prior to class initalization.
- * @event beforeInitEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit");
-
- /**
- * CustomEvent fired after class initalization.
- * @event initEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.initEvent = new YAHOO.util.CustomEvent("init");
-
- /**
- * CustomEvent fired when the Module is appended to the DOM
- * @event appendEvent
- */
- this.appendEvent = new YAHOO.util.CustomEvent("append");
-
- /**
- * CustomEvent fired before the Module is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * CustomEvent fired after the Module is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * CustomEvent fired when the header content of the Module is modified
- * @event changeHeaderEvent
- * @param {String/HTMLElement} content String/element representing the new header content
- */
- this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader");
-
- /**
- * CustomEvent fired when the body content of the Module is modified
- * @event changeBodyEvent
- * @param {String/HTMLElement} content String/element representing the new body content
- */
- this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody");
-
- /**
- * CustomEvent fired when the footer content of the Module is modified
- * @event changeFooterEvent
- * @param {String/HTMLElement} content String/element representing the new footer content
- */
- this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter");
-
- /**
- * CustomEvent fired when the content of the Module is modified
- * @event changeContentEvent
- */
- this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent");
-
- /**
- * CustomEvent fired when the Module is destroyed
- * @event destroyEvent
- */
- this.destroyEvent = new YAHOO.util.CustomEvent("destroy");
-
- /**
- * CustomEvent fired before the Module is shown
- * @event beforeShowEvent
- */
- this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow");
-
- /**
- * CustomEvent fired after the Module is shown
- * @event showEvent
- */
- this.showEvent = new YAHOO.util.CustomEvent("show");
-
- /**
- * CustomEvent fired before the Module is hidden
- * @event beforeHideEvent
- */
- this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide");
-
- /**
- * CustomEvent fired after the Module is hidden
- * @event hideEvent
- */
- this.hideEvent = new YAHOO.util.CustomEvent("hide");
- },
-
- /**
- * String representing the current user-agent platform
- * @property platform
- * @type String
- */
- platform : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
- return "windows";
- } else if (ua.indexOf("macintosh") != -1) {
- return "mac";
- } else {
- return false;
- }
- }(),
-
- /**
- * String representing the current user-agent browser
- * @property browser
- * @type String
- */
- browser : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
- return 'opera';
- } else if (ua.indexOf('msie 7')!=-1) { // IE7
- return 'ie7';
- } else if (ua.indexOf('msie') !=-1) { // IE
- return 'ie';
- } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
- return 'safari';
- } else if (ua.indexOf('gecko') != -1) { // Gecko
- return 'gecko';
- } else {
- return false;
- }
- }(),
-
- /**
- * Boolean representing whether or not the current browsing context is secure (https)
- * @property isSecure
- * @type Boolean
- */
- isSecure : function() {
- if (window.location.href.toLowerCase().indexOf("https") === 0) {
- return true;
- } else {
- return false;
- }
- }(),
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- */
- initDefaultConfig : function() {
- // Add properties //
-
- /**
- * Specifies whether the Module is visible on the page.
- * @config visible
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } );
-
- /**
- * Object or array of objects representing the ContainerEffect classes that are active for animating the container.
- * @config effect
- * @type Object
- * @default null
- */
- this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } );
-
- /**
- * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document
- * @config monitorresize
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } );
- },
-
- /**
- * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- * @method init
- * @param {String} el The element ID representing the Module OR
- * @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
- */
- init : function(el, userConfig) {
-
- this.initEvents();
-
- this.beforeInitEvent.fire(YAHOO.widget.Module);
-
- /**
- * The Module's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- if (this.isSecure) {
- this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL;
- }
-
- if (typeof el == "string") {
- var elId = el;
-
- el = document.getElementById(el);
- if (! el) {
- el = document.createElement("div");
- el.id = elId;
- }
- }
-
- this.element = el;
-
- if (el.id) {
- this.id = el.id;
- }
-
- var childNodes = this.element.childNodes;
-
- if (childNodes) {
- for (var i=0;iOR
- * @param {HTMLElement} headerContent The HTMLElement to append to the header
- */
- setHeader : function(headerContent) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- if (typeof headerContent == "string") {
- this.header.innerHTML = headerContent;
- } else {
- this.header.innerHTML = "";
- this.header.appendChild(headerContent);
- }
-
- this.changeHeaderEvent.fire(headerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the header. If no header is present, one will be automatically created.
- * @method appendToHeader
- * @param {HTMLElement} element The element to append to the header
- */
- appendToHeader : function(element) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- this.header.appendChild(element);
- this.changeHeaderEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created.
- * @method setBody
- * @param {String} bodyContent The HTML used to set the body OR
- * @param {HTMLElement} bodyContent The HTMLElement to append to the body
- */
- setBody : function(bodyContent) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- if (typeof bodyContent == "string")
- {
- this.body.innerHTML = bodyContent;
- } else {
- this.body.innerHTML = "";
- this.body.appendChild(bodyContent);
- }
-
- this.changeBodyEvent.fire(bodyContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the body. If no body is present, one will be automatically created.
- * @method appendToBody
- * @param {HTMLElement} element The element to append to the body
- */
- appendToBody : function(element) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- this.body.appendChild(element);
- this.changeBodyEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method setFooter
- * @param {String} footerContent The HTML used to set the footer OR
- * @param {HTMLElement} footerContent The HTMLElement to append to the footer
- */
- setFooter : function(footerContent) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- if (typeof footerContent == "string") {
- this.footer.innerHTML = footerContent;
- } else {
- this.footer.innerHTML = "";
- this.footer.appendChild(footerContent);
- }
-
- this.changeFooterEvent.fire(footerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method appendToFooter
- * @param {HTMLElement} element The element to append to the footer
- */
- appendToFooter : function(element) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- this.footer.appendChild(element);
- this.changeFooterEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure.
- * @method render
- * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering OR
- * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
- * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container.
- * @return {Boolean} Success or failure of the render
- */
- render : function(appendToNode, moduleElement) {
- this.beforeRenderEvent.fire();
-
- if (! moduleElement) {
- moduleElement = this.element;
- }
-
- var me = this;
- var appendTo = function(element) {
- if (typeof element == "string") {
- element = document.getElementById(element);
- }
-
- if (element) {
- element.appendChild(me.element);
- me.appendEvent.fire();
- }
- };
-
- if (appendToNode) {
- appendTo(appendToNode);
- } else { // No node was passed in. If the element is not pre-marked up, this fails
- if (! YAHOO.util.Dom.inDocument(this.element)) {
- YAHOO.log("Render failed. Must specify appendTo node if Module isn't already in the DOM.", "error");
- return false;
- }
- }
-
- // Need to get everything into the DOM if it isn't already
-
- if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) {
- // There is a header, but it's not in the DOM yet... need to add it
- var firstChild = moduleElement.firstChild;
- if (firstChild) { // Insert before first child if exists
- moduleElement.insertBefore(this.header, firstChild);
- } else { // Append to empty body because there are no children
- moduleElement.appendChild(this.header);
- }
- }
-
- if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) {
- // There is a body, but it's not in the DOM yet... need to add it
- if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM
- moduleElement.insertBefore(this.body, this.footer);
- } else { // Append to element because there is no footer
- moduleElement.appendChild(this.body);
- }
- }
-
- if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) {
- // There is a footer, but it's not in the DOM yet... need to add it
- moduleElement.appendChild(this.footer);
- }
-
- this.renderEvent.fire();
- return true;
- },
-
- /**
- * Removes the Module element from the DOM and sets all child elements to null.
- * @method destroy
- */
- destroy : function() {
- var parent;
-
- if (this.element) {
- YAHOO.util.Event.purgeElement(this.element, true);
- parent = this.element.parentNode;
- }
- if (parent) {
- parent.removeChild(this.element);
- }
-
- this.element = null;
- this.header = null;
- this.body = null;
- this.footer = null;
-
- for (var e in this) {
- if (e instanceof YAHOO.util.CustomEvent) {
- e.unsubscribeAll();
- }
- }
-
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this);
-
- this.destroyEvent.fire();
- },
-
- /**
- * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after.
- * @method show
- */
- show : function() {
- this.cfg.setProperty("visible", true);
- },
-
- /**
- * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after.
- * @method hide
- */
- hide : function() {
- this.cfg.setProperty("visible", false);
- },
-
- // BUILT-IN EVENT HANDLERS FOR MODULE //
-
- /**
- * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none".
- * This method is responsible for firing showEvent and hideEvent.
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configVisible
- */
- configVisible : function(type, args, obj) {
- var visible = args[0];
- if (visible) {
- this.beforeShowEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "block");
- this.showEvent.fire();
- } else {
- this.beforeHideEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "none");
- this.hideEvent.fire();
- }
- },
-
- /**
- * Default event handler for the "monitorresize" configuration property
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configMonitorResize
- */
- configMonitorResize : function(type, args, obj) {
- var monitor = args[0];
- if (monitor) {
- this.initResizeMonitor();
- } else {
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
- this.resizeMonitor = null;
- }
- }
-};
-
-/**
-* Returns a String representation of the Object.
-* @method toString
-* @return {String} The string representation of the Module
-*/
-YAHOO.widget.Module.prototype.toString = function() {
- return "Module " + this.id;
-};
-
-/**
-* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements.
-* @namespace YAHOO.widget
-* @class Overlay
-* @extends YAHOO.widget.Module
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details.
-* @constructor
-*/
-YAHOO.widget.Overlay = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module);
-
-/**
-* The URL that will be placed in the iframe
-* @property YAHOO.widget.Overlay.IFRAME_SRC
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;";
-
-/**
-* Constant representing the top left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_LEFT = "tl";
-
-/**
-* Constant representing the top right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_RIGHT = "tr";
-
-/**
-* Constant representing the top bottom left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_LEFT = "bl";
-
-/**
-* Constant representing the bottom right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_RIGHT = "br";
-
-/**
-* Constant representing the default CSS class used for an Overlay
-* @property YAHOO.widget.Overlay.CSS_OVERLAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Overlay.prototype.init = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Overlay);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- if (this.platform == "mac" && this.browser == "gecko") {
- if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) {
- this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);
- }
- if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) {
- this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);
- }
- }
-
- this.initEvent.fire(YAHOO.widget.Overlay);
-
-};
-
-/**
-* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class.
-* @method initEvents
-*/
-YAHOO.widget.Overlay.prototype.initEvents = function() {
- YAHOO.widget.Overlay.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired before the Overlay is moved.
- * @event beforeMoveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this);
-
- /**
- * CustomEvent fired after the Overlay is moved.
- * @event moveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.moveEvent = new YAHOO.util.CustomEvent("move", this);
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Overlay.prototype.initDefaultConfig = function() {
- YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);
-
- // Add overlay config properties //
-
- /**
- * The absolute x-coordinate position of the Overlay
- * @config x
- * @type Number
- * @default null
- */
- this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The absolute y-coordinate position of the Overlay
- * @config y
- * @type Number
- * @default null
- */
- this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * An array with the absolute x and y positions of the Overlay
- * @config xy
- * @type Number[]
- * @default null
- */
- this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner.
- * @config context
- * @type Array
- * @default null
- */
- this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * True if the Overlay should be anchored to the center of the viewport.
- * @config fixedcenter
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } );
-
- /**
- * CSS width of the Overlay.
- * @config width
- * @type String
- * @default null
- */
- this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS height of the Overlay.
- * @config height
- * @type String
- * @default null
- */
- this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS z-index of the Overlay.
- * @config zIndex
- * @type Number
- * @default null
- */
- this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } );
-
- /**
- * True if the Overlay should be prevented from being positioned out of the viewport.
- * @config constraintoviewport
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } );
-
- /**
- * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below).
- * @config iframe
- * @type Boolean
- * @default true for IE6 and below, false for all others
- */
- this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } );
-};
-
-/**
-* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]);
-* @method moveTo
-* @param {Number} x The Overlay's new x position
-* @param {Number} y The Overlay's new y position
-*/
-YAHOO.widget.Overlay.prototype.moveTo = function(x, y) {
- this.cfg.setProperty("xy",[x,y]);
-};
-
-/**
-* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method hideMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "show-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "hide-scrollbars");
-};
-
-/**
-* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method showMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "show-scrollbars");
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent.
-* @method configVisible
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) {
- var visible = args[0];
- var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility");
-
- if (currentVis == "inherit") {
- var e = this.element.parentNode;
- while (e.nodeType != 9 && e.nodeType != 11) {
- currentVis = YAHOO.util.Dom.getStyle(e, "visibility");
- if (currentVis != "inherit") { break; }
- e = e.parentNode;
- }
- if (currentVis == "inherit") {
- currentVis = "visible";
- }
- }
-
- var effect = this.cfg.getProperty("effect");
-
- var effectInstances = [];
- if (effect) {
- if (effect instanceof Array) {
- for (var i=0;i rightConstraint) {
- x = rightConstraint;
- }
-
- if (y < topConstraint) {
- y = topConstraint;
- } else if (y > bottomConstraint) {
- y = bottomConstraint;
- }
-
- this.cfg.setProperty("x", x, true);
- this.cfg.setProperty("y", y, true);
- this.cfg.setProperty("xy", [x,y], true);
-};
-
-/**
-* Centers the container in the viewport.
-* @method center
-*/
-YAHOO.widget.Overlay.prototype.center = function() {
- var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
- var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
-
- var viewPortWidth = YAHOO.util.Dom.getClientWidth();
- var viewPortHeight = YAHOO.util.Dom.getClientHeight();
-
- var elementWidth = this.element.offsetWidth;
- var elementHeight = this.element.offsetHeight;
-
- var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX;
- var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY;
-
- this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
-
- this.cfg.refireEvent("iframe");
-};
-
-/**
-* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop.
-* @method syncPosition
-*/
-YAHOO.widget.Overlay.prototype.syncPosition = function() {
- var pos = YAHOO.util.Dom.getXY(this.element);
- this.cfg.setProperty("x", pos[0], true);
- this.cfg.setProperty("y", pos[1], true);
- this.cfg.setProperty("xy", pos, true);
-};
-
-/**
-* Event handler fired when the resize monitor element is resized.
-* @method onDomResize
-* @param {DOMEvent} e The resize DOM event
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) {
- YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj);
- var me = this;
- setTimeout(function() {
- me.syncPosition();
- me.cfg.refireEvent("iframe");
- me.cfg.refireEvent("context");
- }, 0);
-};
-
-/**
-* Removes the Overlay element from the DOM and sets all child elements to null.
-* @method destroy
-*/
-YAHOO.widget.Overlay.prototype.destroy = function() {
- if (this.iframe) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
-
- this.iframe = null;
-
- YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
- YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
-
- YAHOO.widget.Overlay.superclass.destroy.call(this);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Overlay.
-*/
-YAHOO.widget.Overlay.prototype.toString = function() {
- return "Overlay " + this.id;
-};
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window scroll
-* @event YAHOO.widget.Overlay.windowScrollEvent
-*/
-YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll");
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window resize
-* @event YAHOO.widget.Overlay.windowResizeEvent
-*/
-YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize");
-
-/**
-* The DOM event handler used to fire the CustomEvent for window scroll
-* @method YAHOO.widget.Overlay.windowScrollHandler
-* @static
-* @param {DOMEvent} e The DOM scroll event
-*/
-YAHOO.widget.Overlay.windowScrollHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.scrollEnd) {
- window.scrollEnd = -1;
- }
- clearTimeout(window.scrollEnd);
- window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1);
- } else {
- YAHOO.widget.Overlay.windowScrollEvent.fire();
- }
-};
-
-/**
-* The DOM event handler used to fire the CustomEvent for window resize
-* @method YAHOO.widget.Overlay.windowResizeHandler
-* @static
-* @param {DOMEvent} e The DOM resize event
-*/
-YAHOO.widget.Overlay.windowResizeHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.resizeEnd) {
- window.resizeEnd = -1;
- }
- clearTimeout(window.resizeEnd);
- window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100);
- } else {
- YAHOO.widget.Overlay.windowResizeEvent.fire();
- }
-};
-
-/**
-* A boolean that indicated whether the window resize and scroll events have already been subscribed to.
-* @property YAHOO.widget.Overlay._initialized
-* @private
-* @type Boolean
-*/
-YAHOO.widget.Overlay._initialized = null;
-
-if (YAHOO.widget.Overlay._initialized === null) {
- YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler);
- YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler);
-
- YAHOO.widget.Overlay._initialized = true;
-}
-
-/**
-* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget
-* @namespace YAHOO.widget
-* @class OverlayManager
-* @constructor
-* @param {Array} overlays Optional. A collection of Overlays to register with the manager.
-* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
-*/
-YAHOO.widget.OverlayManager = function(userConfig) {
- this.init(userConfig);
-};
-
-/**
-* The CSS class representing a focused Overlay
-* @property YAHOO.widget.OverlayManager.CSS_FOCUSED
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused";
-
-YAHOO.widget.OverlayManager.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.OverlayManager,
-
- /**
- * The array of Overlays that are currently registered
- * @property overlays
- * @type YAHOO.widget.Overlay[]
- */
- overlays : null,
-
- /**
- * Initializes the default configuration of the OverlayManager
- * @method initDefaultConfig
- */
- initDefaultConfig : function() {
- /**
- * The collection of registered Overlays in use by the OverlayManager
- * @config overlays
- * @type YAHOO.widget.Overlay[]
- * @default null
- */
- this.cfg.addProperty("overlays", { suppressEvent:true } );
-
- /**
- * The default DOM event that should be used to focus an Overlay
- * @config focusevent
- * @type String
- * @default "mousedown"
- */
- this.cfg.addProperty("focusevent", { value:"mousedown" } );
- },
-
- /**
- * Initializes the OverlayManager
- * @method init
- * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager.
- * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
- */
- init : function(userConfig) {
- /**
- * The OverlayManager's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- this.initDefaultConfig();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
- this.cfg.fireQueue();
-
- /**
- * The currently activated Overlay
- * @property activeOverlay
- * @private
- * @type YAHOO.widget.Overlay
- */
- var activeOverlay = null;
-
- /**
- * Returns the currently focused Overlay
- * @method getActive
- * @return {YAHOO.widget.Overlay} The currently focused Overlay
- */
- this.getActive = function() {
- return activeOverlay;
- };
-
- /**
- * Focuses the specified Overlay
- * @method focus
- * @param {YAHOO.widget.Overlay} overlay The Overlay to focus
- * @param {String} overlay The id of the Overlay to focus
- */
- this.focus = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- this.blurAll();
- activeOverlay = o;
- YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED);
- this.overlays.sort(this.compareZIndexDesc);
- var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex");
- if (! isNaN(topZIndex) && this.overlays[0] != overlay) {
- activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2));
- }
- this.overlays.sort(this.compareZIndexDesc);
- }
- };
-
- /**
- * Removes the specified Overlay from the manager
- * @method remove
- * @param {YAHOO.widget.Overlay} overlay The Overlay to remove
- * @param {String} overlay The id of the Overlay to remove
- */
- this.remove = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex");
- o.cfg.setProperty("zIndex", -1000, true);
- this.overlays.sort(this.compareZIndexDesc);
- this.overlays = this.overlays.slice(0, this.overlays.length-1);
- o.cfg.setProperty("zIndex", originalZ, true);
-
- o.cfg.setProperty("manager", null);
- o.focusEvent = null;
- o.blurEvent = null;
- o.focus = null;
- o.blur = null;
- }
- };
-
- /**
- * Removes focus from all registered Overlays in the manager
- * @method blurAll
- */
- this.blurAll = function() {
- activeOverlay = null;
- for (var o=0;o 0) {
- return true;
- }
- } else {
- return false;
- }
- },
-
- /**
- * Attempts to locate an Overlay by instance or ID.
- * @method find
- * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager
- * @param {String} overlay An Overlay id to locate within the manager
- * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located.
- */
- find : function(overlay) {
- if (overlay instanceof YAHOO.widget.Overlay) {
- for (var o=0;o zIndex2) {
- return -1;
- } else if (zIndex1 < zIndex2) {
- return 1;
- } else {
- return 0;
- }
- },
-
- /**
- * Shows all Overlays in the manager.
- * @method showAll
- */
- showAll : function() {
- for (var o=0;oOR
-* @param {HTMLElement} el The element representing the Tooltip
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Tooltip = function(el, userConfig) {
- YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Tooltip, YAHOO.widget.Overlay);
-
-/**
-* Constant representing the Tooltip CSS class
-* @property YAHOO.widget.Tooltip.CSS_TOOLTIP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Tooltip.CSS_TOOLTIP = "yui-tt";
-
-/**
-* The Tooltip initialization method. This method is automatically called by the constructor. A Tooltip is automatically rendered by the init method, and it also is set to be invisible by default, and constrained to viewport by default as well.
-* @method init
-* @param {String} el The element ID representing the Tooltip OR
-* @param {HTMLElement} el The element representing the Tooltip
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Tooltip. See configuration documentation for more details.
-*/
-YAHOO.widget.Tooltip.prototype.init = function(el, userConfig) {
- this.logger = YAHOO.widget.Tooltip.logger;
-
- if (document.readyState && document.readyState != "complete") {
- var deferredInit = function() {
- this.init(el, userConfig);
- };
- YAHOO.util.Event.addListener(window, "load", deferredInit, this, true);
- } else {
- YAHOO.widget.Tooltip.superclass.init.call(this, el);
-
- this.beforeInitEvent.fire(YAHOO.widget.Tooltip);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Tooltip.CSS_TOOLTIP);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.cfg.queueProperty("visible",false);
- this.cfg.queueProperty("constraintoviewport",true);
-
- this.setBody("");
- this.render(this.cfg.getProperty("container"));
-
- this.initEvent.fire(YAHOO.widget.Tooltip);
- }
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Tooltip.prototype.initDefaultConfig = function() {
- YAHOO.widget.Tooltip.superclass.initDefaultConfig.call(this);
-
- /**
- * Specifies whether the Tooltip should be kept from overlapping its context element.
- * @config preventoverlap
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("preventoverlap", { value:true, validator:this.cfg.checkBoolean, supercedes:["x","y","xy"] } );
-
- /**
- * The number of milliseconds to wait before showing a Tooltip on mouseover.
- * @config showdelay
- * @type Number
- * @default 200
- */
- this.cfg.addProperty("showdelay", { value:200, handler:this.configShowDelay, validator:this.cfg.checkNumber } );
-
- /**
- * The number of milliseconds to wait before automatically dismissing a Tooltip after the mouse has been resting on the context element.
- * @config autodismissdelay
- * @type Number
- * @default 5000
- */
- this.cfg.addProperty("autodismissdelay", { value:5000, handler:this.configAutoDismissDelay, validator:this.cfg.checkNumber } );
-
- /**
- * The number of milliseconds to wait before hiding a Tooltip on mouseover.
- * @config hidedelay
- * @type Number
- * @default 250
- */
- this.cfg.addProperty("hidedelay", { value:250, handler:this.configHideDelay, validator:this.cfg.checkNumber } );
-
- /**
- * Specifies the Tooltip's text.
- * @config text
- * @type String
- * @default null
- */
- this.cfg.addProperty("text", { handler:this.configText, suppressEvent:true } );
-
- /**
- * Specifies the container element that the Tooltip's markup should be rendered into.
- * @config container
- * @type HTMLElement/String
- * @default document.body
- */
- this.cfg.addProperty("container", { value:document.body, handler:this.configContainer } );
-
- /**
- * Specifies the element or elements that the Tooltip should be anchored to on mouseover.
- * @config context
- * @type HTMLElement[]/String[]
- * @default null
- */
-
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "text" property is changed.
-* @method configText
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configText = function(type, args, obj) {
- var text = args[0];
- if (text) {
- this.setBody(text);
- }
-};
-
-/**
-* The default event handler fired when the "container" property is changed.
-* @method configContainer
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configContainer = function(type, args, obj) {
- var container = args[0];
- if (typeof container == 'string') {
- this.cfg.setProperty("container", document.getElementById(container), true);
- }
-};
-
-/**
-* The default event handler fired when the "context" property is changed.
-* @method configContext
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configContext = function(type, args, obj) {
- var context = args[0];
- if (context) {
-
- // Normalize parameter into an array
- if (! (context instanceof Array)) {
- if (typeof context == "string") {
- this.cfg.setProperty("context", [document.getElementById(context)], true);
- } else { // Assuming this is an element
- this.cfg.setProperty("context", [context], true);
- }
- context = this.cfg.getProperty("context");
- }
-
-
- // Remove any existing mouseover/mouseout listeners
- if (this._context) {
- for (var c=0;cOR
-* @param {HTMLElement} el The element representing the Panel
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Panel. See configuration documentation for more details.
-*/
-YAHOO.widget.Panel = function(el, userConfig) {
- YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Panel, YAHOO.widget.Overlay);
-
-/**
-* Constant representing the default CSS class used for a Panel
-* @property YAHOO.widget.Panel.CSS_PANEL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Panel.CSS_PANEL = "yui-panel";
-
-/**
-* Constant representing the default CSS class used for a Panel's wrapping container
-* @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Panel.CSS_PANEL_CONTAINER = "yui-panel-container";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Panel.prototype.init = function(el, userConfig) {
- YAHOO.widget.Panel.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Panel);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Panel.CSS_PANEL);
-
- this.buildWrapper();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.beforeRenderEvent.subscribe(function() {
- var draggable = this.cfg.getProperty("draggable");
- if (draggable) {
- if (! this.header) {
- this.setHeader(" ");
- }
- }
- }, this, true);
-
- var me = this;
-
- var doBlur = function() {
- this.blur();
- };
-
- this.showMaskEvent.subscribe(function() {
- var checkFocusable = function(el) {
- if ((el.tagName == "A" || el.tagName == "BUTTON" || el.tagName == "SELECT" || el.tagName == "INPUT" || el.tagName == "TEXTAREA") && el.type != "hidden") {
- if (! YAHOO.util.Dom.isAncestor(me.element, el)) {
- YAHOO.util.Event.addListener(el, "focus", doBlur, el, true);
- return true;
- }
- } else {
- return false;
- }
- };
-
- this.focusableElements = YAHOO.util.Dom.getElementsBy(checkFocusable);
- }, this, true);
-
- this.hideMaskEvent.subscribe(function() {
- for (var i=0;iOR
-* @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
-* @return {boolean} Success or failure of the render
-*/
-YAHOO.widget.Panel.prototype.render = function(appendToNode) {
- return YAHOO.widget.Panel.superclass.render.call(this, appendToNode, this.innerElement);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Panel.
-*/
-YAHOO.widget.Panel.prototype.toString = function() {
- return "Panel " + this.id;
-};
-
-/**
-* Dialog is an implementation of Panel that can be used to submit form data. Built-in functionality for buttons with event handlers is included, and button sets can be build dynamically, or the preincluded ones for Submit/Cancel and OK/Cancel can be utilized. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually.
-* @namespace YAHOO.widget
-* @class Dialog
-* @extends YAHOO.widget.Panel
-* @constructor
-* @param {String} el The element ID representing the Dialog OR
-* @param {HTMLElement} el The element representing the Dialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
-*/
-YAHOO.widget.Dialog = function(el, userConfig) {
- YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Dialog, YAHOO.widget.Panel);
-
-/**
-* Constant representing the default CSS class used for a Dialog
-* @property YAHOO.widget.Dialog.CSS_DIALOG
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Dialog.CSS_DIALOG = "yui-dialog";
-
-/**
-* Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Dialog.prototype.initDefaultConfig = function() {
- YAHOO.widget.Dialog.superclass.initDefaultConfig.call(this);
-
- /**
- * The internally maintained callback object for use with the Connection utility
- * @property callback
- * @type Object
- */
- this.callback = {
- /**
- * The function to execute upon success of the Connection submission
- * @property callback.success
- * @type Function
- */
- success : null,
- /**
- * The function to execute upon failure of the Connection submission
- * @property callback.failure
- * @type Function
- */
- failure : null,
- /**
- * The arbitraty argument or arguments to pass to the Connection callback functions
- * @property callback.argument
- * @type Object
- */
- argument: null
- };
-
- // Add form dialog config properties //
-
- /**
- * The method to use for posting the Dialog's form. Possible values are "async", "form", and "manual".
- * @config postmethod
- * @type String
- * @default async
- */
- this.cfg.addProperty("postmethod", { value:"async", handler:this.configPostMethod, validator:function(val) {
- if (val != "form" && val != "async" && val != "none" && val != "manual") {
- return false;
- } else {
- return true;
- }
- } });
-
- /**
- * Object literal(s) defining the buttons for the Dialog's footer.
- * @config buttons
- * @type Object[]
- * @default "none"
- */
- this.cfg.addProperty("buttons", { value:"none", handler:this.configButtons } );
-};
-
-/**
-* Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class.
-* @method initEvents
-*/
-YAHOO.widget.Dialog.prototype.initEvents = function() {
- YAHOO.widget.Dialog.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired prior to submission
- * @event beforeSumitEvent
- */
- this.beforeSubmitEvent = new YAHOO.util.CustomEvent("beforeSubmit");
-
- /**
- * CustomEvent fired after submission
- * @event submitEvent
- */
- this.submitEvent = new YAHOO.util.CustomEvent("submit");
-
- /**
- * CustomEvent fired prior to manual submission
- * @event manualSubmitEvent
- */
- this.manualSubmitEvent = new YAHOO.util.CustomEvent("manualSubmit");
-
- /**
- * CustomEvent fired prior to asynchronous submission
- * @event asyncSubmitEvent
- */
- this.asyncSubmitEvent = new YAHOO.util.CustomEvent("asyncSubmit");
-
- /**
- * CustomEvent fired prior to form-based submission
- * @event formSubmitEvent
- */
- this.formSubmitEvent = new YAHOO.util.CustomEvent("formSubmit");
-
- /**
- * CustomEvent fired after cancel
- * @event cancelEvent
- */
- this.cancelEvent = new YAHOO.util.CustomEvent("cancel");
-};
-
-/**
-* The Dialog initialization method, which is executed for Dialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Dialog OR
-* @param {HTMLElement} el The element representing the Dialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
-*/
-YAHOO.widget.Dialog.prototype.init = function(el, userConfig) {
- YAHOO.widget.Dialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Dialog);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Dialog.CSS_DIALOG);
-
- this.cfg.setProperty("visible", false);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.showEvent.subscribe(this.focusFirst, this, true);
- this.beforeHideEvent.subscribe(this.blurButtons, this, true);
-
- this.beforeRenderEvent.subscribe(function() {
- var buttonCfg = this.cfg.getProperty("buttons");
- if (buttonCfg && buttonCfg != "none") {
- if (! this.footer) {
- this.setFooter("");
- }
- }
- }, this, true);
-
- this.initEvent.fire(YAHOO.widget.Dialog);
-};
-
-/**
-* Performs the submission of the Dialog form depending on the value of "postmethod" property.
-* @method doSubmit
-*/
-YAHOO.widget.Dialog.prototype.doSubmit = function() {
- var pm = this.cfg.getProperty("postmethod");
- switch (pm) {
- case "async":
- var method = this.form.getAttribute("method") || 'POST';
- method = method.toUpperCase();
- YAHOO.util.Connect.setForm(this.form);
- var cObj = YAHOO.util.Connect.asyncRequest(method, this.form.getAttribute("action"), this.callback);
- this.asyncSubmitEvent.fire();
- break;
- case "form":
- this.form.submit();
- this.formSubmitEvent.fire();
- break;
- case "none":
- case "manual":
- this.manualSubmitEvent.fire();
- break;
- }
-};
-
-/**
-* Prepares the Dialog's internal FORM object, creating one if one is not currently present.
-* @method registerForm
-*/
-YAHOO.widget.Dialog.prototype.registerForm = function() {
- var form = this.element.getElementsByTagName("form")[0];
-
- if (! form) {
- var formHTML = "";
- this.body.innerHTML += formHTML;
- form = this.element.getElementsByTagName("form")[0];
- }
-
- this.firstFormElement = function() {
- for (var f=0;f=0;f-- ) {
- var el = form.elements[f];
- if (el.focus && ! el.disabled) {
- if (el.type && el.type != "hidden") {
- return el;
- }
- }
- }
- return null;
- }();
-
- this.form = form;
-
- if (this.cfg.getProperty("modal") && this.form) {
-
- var me = this;
-
- var firstElement = this.firstFormElement || this.firstButton;
- if (firstElement) {
- this.preventBackTab = new YAHOO.util.KeyListener(firstElement, { shift:true, keys:9 }, {fn:me.focusLast, scope:me, correctScope:true} );
- this.showEvent.subscribe(this.preventBackTab.enable, this.preventBackTab, true);
- this.hideEvent.subscribe(this.preventBackTab.disable, this.preventBackTab, true);
- }
-
- var lastElement = this.lastButton || this.lastFormElement;
- if (lastElement) {
- this.preventTabOut = new YAHOO.util.KeyListener(lastElement, { shift:false, keys:9 }, {fn:me.focusFirst, scope:me, correctScope:true} );
- this.showEvent.subscribe(this.preventTabOut.enable, this.preventTabOut, true);
- this.hideEvent.subscribe(this.preventTabOut.disable, this.preventTabOut, true);
- }
- }
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Dialog.
-* @method configClose
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Dialog.prototype.configClose = function(type, args, obj) {
- var val = args[0];
-
- var doCancel = function(e, obj) {
- obj.cancel();
- };
-
- if (val) {
- if (! this.close) {
- this.close = document.createElement("div");
- YAHOO.util.Dom.addClass(this.close, "container-close");
-
- this.close.innerHTML = " ";
- this.innerElement.appendChild(this.close);
- YAHOO.util.Event.addListener(this.close, "click", doCancel, this);
- } else {
- this.close.style.display = "block";
- }
- } else {
- if (this.close) {
- this.close.style.display = "none";
- }
- }
-};
-
-/**
-* The default event handler for the "buttons" configuration property
-* @method configButtons
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Dialog.prototype.configButtons = function(type, args, obj) {
- var buttons = args[0];
- if (buttons != "none") {
- this.buttonSpan = null;
- this.buttonSpan = document.createElement("span");
- this.buttonSpan.className = "button-group";
-
- for (var b=0;bOR
-* @param {HTMLElement} el The element representing the SimpleDialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details.
-*/
-YAHOO.widget.SimpleDialog = function(el, userConfig) {
- YAHOO.widget.SimpleDialog.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.SimpleDialog, YAHOO.widget.Dialog);
-
-/**
-* Constant for the standard network icon for a blocking action
-* @property YAHOO.widget.SimpleDialog.ICON_BLOCK
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_BLOCK = "blckicon";
-
-/**
-* Constant for the standard network icon for alarm
-* @property YAHOO.widget.SimpleDialog.ICON_ALARM
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_ALARM = "alrticon";
-
-/**
-* Constant for the standard network icon for help
-* @property YAHOO.widget.SimpleDialog.ICON_HELP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_HELP = "hlpicon";
-
-/**
-* Constant for the standard network icon for info
-* @property YAHOO.widget.SimpleDialog.ICON_INFO
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_INFO = "infoicon";
-
-/**
-* Constant for the standard network icon for warn
-* @property YAHOO.widget.SimpleDialog.ICON_WARN
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_WARN = "warnicon";
-
-/**
-* Constant for the standard network icon for a tip
-* @property YAHOO.widget.SimpleDialog.ICON_TIP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_TIP = "tipicon";
-
-/**
-* Constant representing the default CSS class used for a SimpleDialog
-* @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog";
-
-/**
-* Initializes the class's configurable properties which can be changed using the SimpleDialog's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.SimpleDialog.prototype.initDefaultConfig = function() {
- YAHOO.widget.SimpleDialog.superclass.initDefaultConfig.call(this);
-
- // Add dialog config properties //
-
- /**
- * Sets the informational icon for the SimpleDialog
- * @config icon
- * @type String
- * @default "none"
- */
- this.cfg.addProperty("icon", { value:"none", handler:this.configIcon, suppressEvent:true } );
-
- /**
- * Sets the text for the SimpleDialog
- * @config text
- * @type String
- * @default ""
- */
- this.cfg.addProperty("text", { value:"", handler:this.configText, suppressEvent:true, supercedes:["icon"] } );
-};
-
-
-/**
-* The SimpleDialog initialization method, which is executed for SimpleDialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the SimpleDialog OR
-* @param {HTMLElement} el The element representing the SimpleDialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details.
-*/
-YAHOO.widget.SimpleDialog.prototype.init = function(el, userConfig) {
- YAHOO.widget.SimpleDialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.SimpleDialog);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG);
-
- this.cfg.queueProperty("postmethod", "manual");
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.beforeRenderEvent.subscribe(function() {
- if (! this.body) {
- this.setBody("");
- }
- }, this, true);
-
- this.initEvent.fire(YAHOO.widget.SimpleDialog);
-
-};
-/**
-* Prepares the SimpleDialog's internal FORM object, creating one if one is not currently present, and adding the value hidden field.
-* @method registerForm
-*/
-YAHOO.widget.SimpleDialog.prototype.registerForm = function() {
- YAHOO.widget.SimpleDialog.superclass.registerForm.call(this);
- this.form.innerHTML += " ";
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* Fired when the "icon" property is set.
-* @method configIcon
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.SimpleDialog.prototype.configIcon = function(type,args,obj) {
- var icon = args[0];
- if (icon && icon != "none") {
- var iconHTML = "";
- if (icon.indexOf(".") == -1) {
- iconHTML = " ";
- } else {
- iconHTML = " ";
- }
- this.body.innerHTML = iconHTML + this.body.innerHTML;
- }
-};
-
-/**
-* Fired when the "text" property is set.
-* @method configText
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.SimpleDialog.prototype.configText = function(type,args,obj) {
- var text = args[0];
- if (text) {
- this.setBody(text);
- this.cfg.refireEvent("icon");
- }
-};
-// END BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} The string representation of the SimpleDialog
-*/
-YAHOO.widget.SimpleDialog.prototype.toString = function() {
- return "SimpleDialog " + this.id;
-};
-
-/**
-* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden.
-* @namespace YAHOO.widget
-* @class ContainerEffect
-* @constructor
-* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with
-* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn).
-* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn).
-* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element.
-* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion.
-*/
-YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) {
- if (! animClass) {
- animClass = YAHOO.util.Anim;
- }
-
- /**
- * The overlay to animate
- * @property overlay
- * @type YAHOO.widget.Overlay
- */
- this.overlay = overlay;
- /**
- * The animation attributes to use when transitioning into view
- * @property attrIn
- * @type Object
- */
- this.attrIn = attrIn;
- /**
- * The animation attributes to use when transitioning out of view
- * @property attrOut
- * @type Object
- */
- this.attrOut = attrOut;
- /**
- * The target element to be animated
- * @property targetElement
- * @type HTMLElement
- */
- this.targetElement = targetElement || overlay.element;
- /**
- * The animation class to use for animating the overlay
- * @property animClass
- * @type class
- */
- this.animClass = animClass;
-};
-
-/**
-* Initializes the animation classes and events.
-* @method init
-*/
-YAHOO.widget.ContainerEffect.prototype.init = function() {
- this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn");
- this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut");
-
- this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete");
- this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete");
-
- this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method);
- this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
- this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
- this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this);
-
- this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method);
- this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
- this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
- this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this);
-};
-
-/**
-* Triggers the in-animation.
-* @method animateIn
-*/
-YAHOO.widget.ContainerEffect.prototype.animateIn = function() {
- this.beforeAnimateInEvent.fire();
- this.animIn.animate();
-};
-
-/**
-* Triggers the out-animation.
-* @method animateOut
-*/
-YAHOO.widget.ContainerEffect.prototype.animateOut = function() {
- this.beforeAnimateOutEvent.fire();
- this.animOut.animate();
-};
-
-/**
-* The default onStart handler for the in-animation.
-* @method handleStartAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { };
-/**
-* The default onTween handler for the in-animation.
-* @method handleTweenAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { };
-/**
-* The default onComplete handler for the in-animation.
-* @method handleCompleteAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { };
-
-/**
-* The default onStart handler for the out-animation.
-* @method handleStartAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { };
-/**
-* The default onTween handler for the out-animation.
-* @method handleTweenAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { };
-/**
-* The default onComplete handler for the out-animation.
-* @method handleCompleteAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { };
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} The string representation of the ContainerEffect
-*/
-YAHOO.widget.ContainerEffect.prototype.toString = function() {
- var output = "ContainerEffect";
- if (this.overlay) {
- output += " [" + this.overlay.toString() + "]";
- }
- return output;
-};
-
-/**
-* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out.
-* @method FADE
-* @static
-* @param {Overlay} overlay The Overlay object to animate
-* @param {Number} dur The duration of the animation
-* @return {ContainerEffect} The configured ContainerEffect object
-*/
-YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) {
- var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element );
-
- fade.handleStartAnimateIn = function(type,args,obj) {
- YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select");
-
- if (! obj.overlay.underlay) {
- obj.overlay.cfg.refireEvent("underlay");
- }
-
- if (obj.overlay.underlay) {
- obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity");
- obj.overlay.underlay.style.filter = null;
- }
-
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible");
- YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0);
- };
-
- fade.handleCompleteAnimateIn = function(type,args,obj) {
- YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select");
-
- if (obj.overlay.element.style.filter) {
- obj.overlay.element.style.filter = null;
- }
-
- if (obj.overlay.underlay) {
- YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity);
- }
-
- obj.overlay.cfg.refireEvent("iframe");
- obj.animateInCompleteEvent.fire();
- };
-
- fade.handleStartAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select");
-
- if (obj.overlay.underlay) {
- obj.overlay.underlay.style.filter = null;
- }
- };
-
- fade.handleCompleteAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select");
- if (obj.overlay.element.style.filter) {
- obj.overlay.element.style.filter = null;
- }
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden");
- YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1);
-
- obj.overlay.cfg.refireEvent("iframe");
-
- obj.animateOutCompleteEvent.fire();
- };
-
- fade.init();
- return fade;
-};
-
-
-/**
-* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out.
-* @method SLIDE
-* @static
-* @param {Overlay} overlay The Overlay object to animate
-* @param {Number} dur The duration of the animation
-* @return {ContainerEffect} The configured ContainerEffect object
-*/
-YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) {
- var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element);
- var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element);
-
- var clientWidth = YAHOO.util.Dom.getClientWidth();
- var offsetWidth = overlay.element.offsetWidth;
-
- var slide = new YAHOO.widget.ContainerEffect(overlay, {
- attributes:{ points: { to:[x, y] } },
- duration:dur,
- method:YAHOO.util.Easing.easeIn
- },
- {
- attributes:{ points: { to:[(clientWidth+25), y] } },
- duration:dur,
- method:YAHOO.util.Easing.easeOut
- },
- overlay.element,
- YAHOO.util.Motion);
-
-
- slide.handleStartAnimateIn = function(type,args,obj) {
- obj.overlay.element.style.left = (-25-offsetWidth) + "px";
- obj.overlay.element.style.top = y + "px";
- };
-
- slide.handleTweenAnimateIn = function(type, args, obj) {
-
-
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var currentX = pos[0];
- var currentY = pos[1];
-
- if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) {
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible");
- }
-
- obj.overlay.cfg.setProperty("xy", [currentX,currentY], true);
- obj.overlay.cfg.refireEvent("iframe");
- };
-
- slide.handleCompleteAnimateIn = function(type, args, obj) {
- obj.overlay.cfg.setProperty("xy", [x,y], true);
- obj.startX = x;
- obj.startY = y;
- obj.overlay.cfg.refireEvent("iframe");
- obj.animateInCompleteEvent.fire();
- };
-
- slide.handleStartAnimateOut = function(type, args, obj) {
- var vw = YAHOO.util.Dom.getViewportWidth();
-
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var yso = pos[1];
-
- var currentTo = obj.animOut.attributes.points.to;
- obj.animOut.attributes.points.to = [(vw+25), yso];
- };
-
- slide.handleTweenAnimateOut = function(type, args, obj) {
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var xto = pos[0];
- var yto = pos[1];
-
- obj.overlay.cfg.setProperty("xy", [xto,yto], true);
- obj.overlay.cfg.refireEvent("iframe");
- };
-
- slide.handleCompleteAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden");
-
- obj.overlay.cfg.setProperty("xy", [x,y]);
- obj.animateOutCompleteEvent.fire();
- };
-
- slide.init();
- return slide;
-};
-
-YAHOO.register("container", YAHOO.widget.Module, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/container/container-min.js b/interface/ispconfig/interface/js/yui/container/container-min.js
deleted file mode 100644
index e9e044689b90ddb519e070b02e8af6a1c5725a6d..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/container/container-min.js
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.util.Config=function(owner){if(owner){this.init(owner);}};YAHOO.util.Config.prototype={owner:null,queueInProgress:false,checkBoolean:function(val){if(typeof val=='boolean'){return true;}else{return false;}},checkNumber:function(val){if(isNaN(val)){return false;}else{return true;}}};YAHOO.util.Config.prototype.init=function(owner){this.owner=owner;this.configChangedEvent=new YAHOO.util.CustomEvent("configChanged");this.queueInProgress=false;var config={};var initialConfig={};var eventQueue=[];var fireEvent=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){property.event.fire(value);}};this.addProperty=function(key,propertyObject){key=key.toLowerCase();config[key]=propertyObject;propertyObject.event=new YAHOO.util.CustomEvent(key);propertyObject.key=key;if(propertyObject.handler){propertyObject.event.subscribe(propertyObject.handler,this.owner,true);}
-this.setProperty(key,propertyObject.value,true);if(!propertyObject.suppressEvent){this.queueProperty(key,propertyObject.value);}};this.getConfig=function(){var cfg={};for(var prop in config){var property=config[prop];if(typeof property!='undefined'&&property.event){cfg[prop]=property.value;}}
-return cfg;};this.getProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){return property.value;}else{return undefined;}};this.resetProperty=function(key){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(initialConfig[key]&&initialConfig[key]!='undefined'){this.setProperty(key,initialConfig[key]);}
-return true;}else{return false;}};this.setProperty=function(key,value,silent){key=key.toLowerCase();if(this.queueInProgress&&!silent){this.queueProperty(key,value);return true;}else{var property=config[key];if(typeof property!='undefined'&&property.event){if(property.validator&&!property.validator(value)){return false;}else{property.value=value;if(!silent){fireEvent(key,value);this.configChangedEvent.fire([key,value]);}
-return true;}}else{return false;}}};this.queueProperty=function(key,value){key=key.toLowerCase();var property=config[key];if(typeof property!='undefined'&&property.event){if(typeof value!='undefined'&&property.validator&&!property.validator(value)){return false;}else{if(typeof value!='undefined'){property.value=value;}else{value=property.value;}
-var foundDuplicate=false;for(var i=0;irightConstraint){x=rightConstraint;}
-if(ybottomConstraint){y=bottomConstraint;}
-this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.cfg.setProperty("xy",[x,y],true);};YAHOO.widget.Overlay.prototype.center=function(){var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var viewPortWidth=YAHOO.util.Dom.getClientWidth();var viewPortHeight=YAHOO.util.Dom.getClientHeight();var elementWidth=this.element.offsetWidth;var elementHeight=this.element.offsetHeight;var x=(viewPortWidth/2)-(elementWidth/2)+scrollX;var y=(viewPortHeight/2)-(elementHeight/2)+scrollY;this.cfg.setProperty("xy",[parseInt(x,10),parseInt(y,10)]);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.syncPosition=function(){var pos=YAHOO.util.Dom.getXY(this.element);this.cfg.setProperty("x",pos[0],true);this.cfg.setProperty("y",pos[1],true);this.cfg.setProperty("xy",pos,true);};YAHOO.widget.Overlay.prototype.onDomResize=function(e,obj){YAHOO.widget.Overlay.superclass.onDomResize.call(this,e,obj);var me=this;setTimeout(function(){me.syncPosition();me.cfg.refireEvent("iframe");me.cfg.refireEvent("context");},0);};YAHOO.widget.Overlay.prototype.destroy=function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}
-this.iframe=null;YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.superclass.destroy.call(this);};YAHOO.widget.Overlay.prototype.toString=function(){return"Overlay "+this.id;};YAHOO.widget.Overlay.windowScrollEvent=new YAHOO.util.CustomEvent("windowScroll");YAHOO.widget.Overlay.windowResizeEvent=new YAHOO.util.CustomEvent("windowResize");YAHOO.widget.Overlay.windowScrollHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.scrollEnd){window.scrollEnd=-1;}
-clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){YAHOO.widget.Overlay.windowScrollEvent.fire();},1);}else{YAHOO.widget.Overlay.windowScrollEvent.fire();}};YAHOO.widget.Overlay.windowResizeHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.resizeEnd){window.resizeEnd=-1;}
-clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){YAHOO.widget.Overlay.windowResizeEvent.fire();},100);}else{YAHOO.widget.Overlay.windowResizeEvent.fire();}};YAHOO.widget.Overlay._initialized=null;if(YAHOO.widget.Overlay._initialized===null){YAHOO.util.Event.addListener(window,"scroll",YAHOO.widget.Overlay.windowScrollHandler);YAHOO.util.Event.addListener(window,"resize",YAHOO.widget.Overlay.windowResizeHandler);YAHOO.widget.Overlay._initialized=true;}
-YAHOO.widget.OverlayManager=function(userConfig){this.init(userConfig);};YAHOO.widget.OverlayManager.CSS_FOCUSED="focused";YAHOO.widget.OverlayManager.prototype={constructor:YAHOO.widget.OverlayManager,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(userConfig){this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();if(userConfig){this.cfg.applyConfig(userConfig,true);}
-this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){return activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);if(o){this.blurAll();activeOverlay=o;YAHOO.util.Dom.addClass(activeOverlay.element,YAHOO.widget.OverlayManager.CSS_FOCUSED);this.overlays.sort(this.compareZIndexDesc);var topZIndex=YAHOO.util.Dom.getStyle(this.overlays[0].element,"zIndex");if(!isNaN(topZIndex)&&this.overlays[0]!=overlay){activeOverlay.cfg.setProperty("zIndex",(parseInt(topZIndex,10)+2));}
-this.overlays.sort(this.compareZIndexDesc);}};this.remove=function(overlay){var o=this.find(overlay);if(o){var originalZ=YAHOO.util.Dom.getStyle(o.element,"zIndex");o.cfg.setProperty("zIndex",-1000,true);this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,this.overlays.length-1);o.cfg.setProperty("zIndex",originalZ,true);o.cfg.setProperty("manager",null);o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){activeOverlay=null;for(var o=0;o0){return true;}}else{return false;}},find:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){for(var o=0;ozIndex2){return-1;}else if(zIndex1";this.body.innerHTML+=formHTML;form=this.element.getElementsByTagName("form")[0];}
-this.firstFormElement=function(){for(var f=0;f=0;f--){var el=form.elements[f];if(el.focus&&!el.disabled){if(el.type&&el.type!="hidden"){return el;}}}
-return null;}();this.form=form;if(this.cfg.getProperty("modal")&&this.form){var me=this;var firstElement=this.firstFormElement||this.firstButton;if(firstElement){this.preventBackTab=new YAHOO.util.KeyListener(firstElement,{shift:true,keys:9},{fn:me.focusLast,scope:me,correctScope:true});this.showEvent.subscribe(this.preventBackTab.enable,this.preventBackTab,true);this.hideEvent.subscribe(this.preventBackTab.disable,this.preventBackTab,true);}
-var lastElement=this.lastButton||this.lastFormElement;if(lastElement){this.preventTabOut=new YAHOO.util.KeyListener(lastElement,{shift:false,keys:9},{fn:me.focusFirst,scope:me,correctScope:true});this.showEvent.subscribe(this.preventTabOut.enable,this.preventTabOut,true);this.hideEvent.subscribe(this.preventTabOut.disable,this.preventTabOut,true);}}};YAHOO.widget.Dialog.prototype.configClose=function(type,args,obj){var val=args[0];var doCancel=function(e,obj){obj.cancel();};if(val){if(!this.close){this.close=document.createElement("div");YAHOO.util.Dom.addClass(this.close,"container-close");this.close.innerHTML=" ";this.innerElement.appendChild(this.close);YAHOO.util.Event.addListener(this.close,"click",doCancel,this);}else{this.close.style.display="block";}}else{if(this.close){this.close.style.display="none";}}};YAHOO.widget.Dialog.prototype.configButtons=function(type,args,obj){var buttons=args[0];if(buttons!="none"){this.buttonSpan=null;this.buttonSpan=document.createElement("span");this.buttonSpan.className="button-group";for(var b=0;b";};YAHOO.widget.SimpleDialog.prototype.configIcon=function(type,args,obj){var icon=args[0];if(icon&&icon!="none"){var iconHTML="";if(icon.indexOf(".")==-1){iconHTML=" ";}else{iconHTML=" ";}
-this.body.innerHTML=iconHTML+this.body.innerHTML;}};YAHOO.widget.SimpleDialog.prototype.configText=function(type,args,obj){var text=args[0];if(text){this.setBody(text);this.cfg.refireEvent("icon");}};YAHOO.widget.SimpleDialog.prototype.toString=function(){return"SimpleDialog "+this.id;};YAHOO.widget.ContainerEffect=function(overlay,attrIn,attrOut,targetElement,animClass){if(!animClass){animClass=YAHOO.util.Anim;}
-this.overlay=overlay;this.attrIn=attrIn;this.attrOut=attrOut;this.targetElement=targetElement||overlay.element;this.animClass=animClass;};YAHOO.widget.ContainerEffect.prototype.init=function(){this.beforeAnimateInEvent=new YAHOO.util.CustomEvent("beforeAnimateIn");this.beforeAnimateOutEvent=new YAHOO.util.CustomEvent("beforeAnimateOut");this.animateInCompleteEvent=new YAHOO.util.CustomEvent("animateInComplete");this.animateOutCompleteEvent=new YAHOO.util.CustomEvent("animateOutComplete");this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);};YAHOO.widget.ContainerEffect.prototype.animateIn=function(){this.beforeAnimateInEvent.fire();this.animIn.animate();};YAHOO.widget.ContainerEffect.prototype.animateOut=function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut=function(type,args,obj){};YAHOO.widget.ContainerEffect.prototype.toString=function(){var output="ContainerEffect";if(this.overlay){output+=" ["+this.overlay.toString()+"]";}
-return output;};YAHOO.widget.ContainerEffect.FADE=function(overlay,dur){var fade=new YAHOO.widget.ContainerEffect(overlay,{attributes:{opacity:{from:0,to:1}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{opacity:{to:0}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element);fade.handleStartAnimateIn=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(!obj.overlay.underlay){obj.overlay.cfg.refireEvent("underlay");}
-if(obj.overlay.underlay){obj.initialUnderlayOpacity=YAHOO.util.Dom.getStyle(obj.overlay.underlay,"opacity");obj.overlay.underlay.style.filter=null;}
-YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","visible");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",0);};fade.handleCompleteAnimateIn=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;}
-if(obj.overlay.underlay){YAHOO.util.Dom.setStyle(obj.overlay.underlay,"opacity",obj.initialUnderlayOpacity);}
-obj.overlay.cfg.refireEvent("iframe");obj.animateInCompleteEvent.fire();};fade.handleStartAnimateOut=function(type,args,obj){YAHOO.util.Dom.addClass(obj.overlay.element,"hide-select");if(obj.overlay.underlay){obj.overlay.underlay.style.filter=null;}};fade.handleCompleteAnimateOut=function(type,args,obj){YAHOO.util.Dom.removeClass(obj.overlay.element,"hide-select");if(obj.overlay.element.style.filter){obj.overlay.element.style.filter=null;}
-YAHOO.util.Dom.setStyle(obj.overlay.element,"visibility","hidden");YAHOO.util.Dom.setStyle(obj.overlay.element,"opacity",1);obj.overlay.cfg.refireEvent("iframe");obj.animateOutCompleteEvent.fire();};fade.init();return fade;};YAHOO.widget.ContainerEffect.SLIDE=function(overlay,dur){var x=overlay.cfg.getProperty("x")||YAHOO.util.Dom.getX(overlay.element);var y=overlay.cfg.getProperty("y")||YAHOO.util.Dom.getY(overlay.element);var clientWidth=YAHOO.util.Dom.getClientWidth();var offsetWidth=overlay.element.offsetWidth;var slide=new YAHOO.widget.ContainerEffect(overlay,{attributes:{points:{to:[x,y]}},duration:dur,method:YAHOO.util.Easing.easeIn},{attributes:{points:{to:[(clientWidth+25),y]}},duration:dur,method:YAHOO.util.Easing.easeOut},overlay.element,YAHOO.util.Motion);slide.handleStartAnimateIn=function(type,args,obj){obj.overlay.element.style.left=(-25-offsetWidth)+"px";obj.overlay.element.style.top=y+"px";};slide.handleTweenAnimateIn=function(type,args,obj){var pos=YAHOO.util.Dom.getXY(obj.overlay.element);var currentX=pos[0];var currentY=pos[1];if(YAHOO.util.Dom.getStyle(obj.overlay.element,"visibility")=="hidden"&¤tXOR
-* @param {HTMLElement} el The element representing the Module
-* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
-*/
-YAHOO.widget.Module = function(el, userConfig) {
- if (el) {
- this.init(el, userConfig);
- } else {
- }
-};
-
-/**
-* Constant representing the prefix path to use for non-secure images
-* @property YAHOO.widget.Module.IMG_ROOT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT = null;
-
-/**
-* Constant representing the prefix path to use for securely served images
-* @property YAHOO.widget.Module.IMG_ROOT_SSL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT_SSL = null;
-
-/**
-* Constant for the default CSS class name that represents a Module
-* @property YAHOO.widget.Module.CSS_MODULE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_MODULE = "module";
-
-/**
-* Constant representing the module header
-* @property YAHOO.widget.Module.CSS_HEADER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_HEADER = "hd";
-
-/**
-* Constant representing the module body
-* @property YAHOO.widget.Module.CSS_BODY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_BODY = "bd";
-
-/**
-* Constant representing the module footer
-* @property YAHOO.widget.Module.CSS_FOOTER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_FOOTER = "ft";
-
-/**
-* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size
-* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
-
-/**
-* Singleton CustomEvent fired when the font size is changed in the browser.
-* Opera's "zoom" functionality currently does not support text size detection.
-* @event YAHOO.widget.Module.textResizeEvent
-*/
-YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize");
-
-YAHOO.widget.Module.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.Module,
-
- /**
- * The main module element that contains the header, body, and footer
- * @property element
- * @type HTMLElement
- */
- element : null,
-
- /**
- * The header element, denoted with CSS class "hd"
- * @property header
- * @type HTMLElement
- */
- header : null,
-
- /**
- * The body element, denoted with CSS class "bd"
- * @property body
- * @type HTMLElement
- */
- body : null,
-
- /**
- * The footer element, denoted with CSS class "ft"
- * @property footer
- * @type HTMLElement
- */
- footer : null,
-
- /**
- * The id of the element
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The String representing the image root
- * @property imageRoot
- * @type String
- */
- imageRoot : YAHOO.widget.Module.IMG_ROOT,
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- * @method initEvents
- */
- initEvents : function() {
-
- /**
- * CustomEvent fired prior to class initalization.
- * @event beforeInitEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit");
-
- /**
- * CustomEvent fired after class initalization.
- * @event initEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.initEvent = new YAHOO.util.CustomEvent("init");
-
- /**
- * CustomEvent fired when the Module is appended to the DOM
- * @event appendEvent
- */
- this.appendEvent = new YAHOO.util.CustomEvent("append");
-
- /**
- * CustomEvent fired before the Module is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * CustomEvent fired after the Module is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * CustomEvent fired when the header content of the Module is modified
- * @event changeHeaderEvent
- * @param {String/HTMLElement} content String/element representing the new header content
- */
- this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader");
-
- /**
- * CustomEvent fired when the body content of the Module is modified
- * @event changeBodyEvent
- * @param {String/HTMLElement} content String/element representing the new body content
- */
- this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody");
-
- /**
- * CustomEvent fired when the footer content of the Module is modified
- * @event changeFooterEvent
- * @param {String/HTMLElement} content String/element representing the new footer content
- */
- this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter");
-
- /**
- * CustomEvent fired when the content of the Module is modified
- * @event changeContentEvent
- */
- this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent");
-
- /**
- * CustomEvent fired when the Module is destroyed
- * @event destroyEvent
- */
- this.destroyEvent = new YAHOO.util.CustomEvent("destroy");
-
- /**
- * CustomEvent fired before the Module is shown
- * @event beforeShowEvent
- */
- this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow");
-
- /**
- * CustomEvent fired after the Module is shown
- * @event showEvent
- */
- this.showEvent = new YAHOO.util.CustomEvent("show");
-
- /**
- * CustomEvent fired before the Module is hidden
- * @event beforeHideEvent
- */
- this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide");
-
- /**
- * CustomEvent fired after the Module is hidden
- * @event hideEvent
- */
- this.hideEvent = new YAHOO.util.CustomEvent("hide");
- },
-
- /**
- * String representing the current user-agent platform
- * @property platform
- * @type String
- */
- platform : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
- return "windows";
- } else if (ua.indexOf("macintosh") != -1) {
- return "mac";
- } else {
- return false;
- }
- }(),
-
- /**
- * String representing the current user-agent browser
- * @property browser
- * @type String
- */
- browser : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
- return 'opera';
- } else if (ua.indexOf('msie 7')!=-1) { // IE7
- return 'ie7';
- } else if (ua.indexOf('msie') !=-1) { // IE
- return 'ie';
- } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
- return 'safari';
- } else if (ua.indexOf('gecko') != -1) { // Gecko
- return 'gecko';
- } else {
- return false;
- }
- }(),
-
- /**
- * Boolean representing whether or not the current browsing context is secure (https)
- * @property isSecure
- * @type Boolean
- */
- isSecure : function() {
- if (window.location.href.toLowerCase().indexOf("https") === 0) {
- return true;
- } else {
- return false;
- }
- }(),
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- */
- initDefaultConfig : function() {
- // Add properties //
-
- /**
- * Specifies whether the Module is visible on the page.
- * @config visible
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } );
-
- /**
- * Object or array of objects representing the ContainerEffect classes that are active for animating the container.
- * @config effect
- * @type Object
- * @default null
- */
- this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } );
-
- /**
- * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document
- * @config monitorresize
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } );
- },
-
- /**
- * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- * @method init
- * @param {String} el The element ID representing the Module OR
- * @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
- */
- init : function(el, userConfig) {
-
- this.initEvents();
-
- this.beforeInitEvent.fire(YAHOO.widget.Module);
-
- /**
- * The Module's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- if (this.isSecure) {
- this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL;
- }
-
- if (typeof el == "string") {
- var elId = el;
-
- el = document.getElementById(el);
- if (! el) {
- el = document.createElement("div");
- el.id = elId;
- }
- }
-
- this.element = el;
-
- if (el.id) {
- this.id = el.id;
- }
-
- var childNodes = this.element.childNodes;
-
- if (childNodes) {
- for (var i=0;iOR
- * @param {HTMLElement} headerContent The HTMLElement to append to the header
- */
- setHeader : function(headerContent) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- if (typeof headerContent == "string") {
- this.header.innerHTML = headerContent;
- } else {
- this.header.innerHTML = "";
- this.header.appendChild(headerContent);
- }
-
- this.changeHeaderEvent.fire(headerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the header. If no header is present, one will be automatically created.
- * @method appendToHeader
- * @param {HTMLElement} element The element to append to the header
- */
- appendToHeader : function(element) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- this.header.appendChild(element);
- this.changeHeaderEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created.
- * @method setBody
- * @param {String} bodyContent The HTML used to set the body OR
- * @param {HTMLElement} bodyContent The HTMLElement to append to the body
- */
- setBody : function(bodyContent) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- if (typeof bodyContent == "string")
- {
- this.body.innerHTML = bodyContent;
- } else {
- this.body.innerHTML = "";
- this.body.appendChild(bodyContent);
- }
-
- this.changeBodyEvent.fire(bodyContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the body. If no body is present, one will be automatically created.
- * @method appendToBody
- * @param {HTMLElement} element The element to append to the body
- */
- appendToBody : function(element) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- this.body.appendChild(element);
- this.changeBodyEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method setFooter
- * @param {String} footerContent The HTML used to set the footer OR
- * @param {HTMLElement} footerContent The HTMLElement to append to the footer
- */
- setFooter : function(footerContent) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- if (typeof footerContent == "string") {
- this.footer.innerHTML = footerContent;
- } else {
- this.footer.innerHTML = "";
- this.footer.appendChild(footerContent);
- }
-
- this.changeFooterEvent.fire(footerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method appendToFooter
- * @param {HTMLElement} element The element to append to the footer
- */
- appendToFooter : function(element) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- this.footer.appendChild(element);
- this.changeFooterEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure.
- * @method render
- * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering OR
- * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
- * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container.
- * @return {Boolean} Success or failure of the render
- */
- render : function(appendToNode, moduleElement) {
- this.beforeRenderEvent.fire();
-
- if (! moduleElement) {
- moduleElement = this.element;
- }
-
- var me = this;
- var appendTo = function(element) {
- if (typeof element == "string") {
- element = document.getElementById(element);
- }
-
- if (element) {
- element.appendChild(me.element);
- me.appendEvent.fire();
- }
- };
-
- if (appendToNode) {
- appendTo(appendToNode);
- } else { // No node was passed in. If the element is not pre-marked up, this fails
- if (! YAHOO.util.Dom.inDocument(this.element)) {
- return false;
- }
- }
-
- // Need to get everything into the DOM if it isn't already
-
- if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) {
- // There is a header, but it's not in the DOM yet... need to add it
- var firstChild = moduleElement.firstChild;
- if (firstChild) { // Insert before first child if exists
- moduleElement.insertBefore(this.header, firstChild);
- } else { // Append to empty body because there are no children
- moduleElement.appendChild(this.header);
- }
- }
-
- if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) {
- // There is a body, but it's not in the DOM yet... need to add it
- if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM
- moduleElement.insertBefore(this.body, this.footer);
- } else { // Append to element because there is no footer
- moduleElement.appendChild(this.body);
- }
- }
-
- if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) {
- // There is a footer, but it's not in the DOM yet... need to add it
- moduleElement.appendChild(this.footer);
- }
-
- this.renderEvent.fire();
- return true;
- },
-
- /**
- * Removes the Module element from the DOM and sets all child elements to null.
- * @method destroy
- */
- destroy : function() {
- var parent;
-
- if (this.element) {
- YAHOO.util.Event.purgeElement(this.element, true);
- parent = this.element.parentNode;
- }
- if (parent) {
- parent.removeChild(this.element);
- }
-
- this.element = null;
- this.header = null;
- this.body = null;
- this.footer = null;
-
- for (var e in this) {
- if (e instanceof YAHOO.util.CustomEvent) {
- e.unsubscribeAll();
- }
- }
-
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this);
-
- this.destroyEvent.fire();
- },
-
- /**
- * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after.
- * @method show
- */
- show : function() {
- this.cfg.setProperty("visible", true);
- },
-
- /**
- * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after.
- * @method hide
- */
- hide : function() {
- this.cfg.setProperty("visible", false);
- },
-
- // BUILT-IN EVENT HANDLERS FOR MODULE //
-
- /**
- * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none".
- * This method is responsible for firing showEvent and hideEvent.
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configVisible
- */
- configVisible : function(type, args, obj) {
- var visible = args[0];
- if (visible) {
- this.beforeShowEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "block");
- this.showEvent.fire();
- } else {
- this.beforeHideEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "none");
- this.hideEvent.fire();
- }
- },
-
- /**
- * Default event handler for the "monitorresize" configuration property
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configMonitorResize
- */
- configMonitorResize : function(type, args, obj) {
- var monitor = args[0];
- if (monitor) {
- this.initResizeMonitor();
- } else {
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
- this.resizeMonitor = null;
- }
- }
-};
-
-/**
-* Returns a String representation of the Object.
-* @method toString
-* @return {String} The string representation of the Module
-*/
-YAHOO.widget.Module.prototype.toString = function() {
- return "Module " + this.id;
-};
-
-/**
-* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements.
-* @namespace YAHOO.widget
-* @class Overlay
-* @extends YAHOO.widget.Module
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details.
-* @constructor
-*/
-YAHOO.widget.Overlay = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module);
-
-/**
-* The URL that will be placed in the iframe
-* @property YAHOO.widget.Overlay.IFRAME_SRC
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;";
-
-/**
-* Constant representing the top left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_LEFT = "tl";
-
-/**
-* Constant representing the top right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_RIGHT = "tr";
-
-/**
-* Constant representing the top bottom left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_LEFT = "bl";
-
-/**
-* Constant representing the bottom right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_RIGHT = "br";
-
-/**
-* Constant representing the default CSS class used for an Overlay
-* @property YAHOO.widget.Overlay.CSS_OVERLAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Overlay.prototype.init = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Overlay);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- if (this.platform == "mac" && this.browser == "gecko") {
- if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) {
- this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);
- }
- if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) {
- this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);
- }
- }
-
- this.initEvent.fire(YAHOO.widget.Overlay);
-
-};
-
-/**
-* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class.
-* @method initEvents
-*/
-YAHOO.widget.Overlay.prototype.initEvents = function() {
- YAHOO.widget.Overlay.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired before the Overlay is moved.
- * @event beforeMoveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this);
-
- /**
- * CustomEvent fired after the Overlay is moved.
- * @event moveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.moveEvent = new YAHOO.util.CustomEvent("move", this);
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Overlay.prototype.initDefaultConfig = function() {
- YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);
-
- // Add overlay config properties //
-
- /**
- * The absolute x-coordinate position of the Overlay
- * @config x
- * @type Number
- * @default null
- */
- this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The absolute y-coordinate position of the Overlay
- * @config y
- * @type Number
- * @default null
- */
- this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * An array with the absolute x and y positions of the Overlay
- * @config xy
- * @type Number[]
- * @default null
- */
- this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner.
- * @config context
- * @type Array
- * @default null
- */
- this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * True if the Overlay should be anchored to the center of the viewport.
- * @config fixedcenter
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } );
-
- /**
- * CSS width of the Overlay.
- * @config width
- * @type String
- * @default null
- */
- this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS height of the Overlay.
- * @config height
- * @type String
- * @default null
- */
- this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS z-index of the Overlay.
- * @config zIndex
- * @type Number
- * @default null
- */
- this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } );
-
- /**
- * True if the Overlay should be prevented from being positioned out of the viewport.
- * @config constraintoviewport
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } );
-
- /**
- * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below).
- * @config iframe
- * @type Boolean
- * @default true for IE6 and below, false for all others
- */
- this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } );
-};
-
-/**
-* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]);
-* @method moveTo
-* @param {Number} x The Overlay's new x position
-* @param {Number} y The Overlay's new y position
-*/
-YAHOO.widget.Overlay.prototype.moveTo = function(x, y) {
- this.cfg.setProperty("xy",[x,y]);
-};
-
-/**
-* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method hideMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "show-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "hide-scrollbars");
-};
-
-/**
-* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method showMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "show-scrollbars");
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent.
-* @method configVisible
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) {
- var visible = args[0];
- var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility");
-
- if (currentVis == "inherit") {
- var e = this.element.parentNode;
- while (e.nodeType != 9 && e.nodeType != 11) {
- currentVis = YAHOO.util.Dom.getStyle(e, "visibility");
- if (currentVis != "inherit") { break; }
- e = e.parentNode;
- }
- if (currentVis == "inherit") {
- currentVis = "visible";
- }
- }
-
- var effect = this.cfg.getProperty("effect");
-
- var effectInstances = [];
- if (effect) {
- if (effect instanceof Array) {
- for (var i=0;i rightConstraint) {
- x = rightConstraint;
- }
-
- if (y < topConstraint) {
- y = topConstraint;
- } else if (y > bottomConstraint) {
- y = bottomConstraint;
- }
-
- this.cfg.setProperty("x", x, true);
- this.cfg.setProperty("y", y, true);
- this.cfg.setProperty("xy", [x,y], true);
-};
-
-/**
-* Centers the container in the viewport.
-* @method center
-*/
-YAHOO.widget.Overlay.prototype.center = function() {
- var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
- var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
-
- var viewPortWidth = YAHOO.util.Dom.getClientWidth();
- var viewPortHeight = YAHOO.util.Dom.getClientHeight();
-
- var elementWidth = this.element.offsetWidth;
- var elementHeight = this.element.offsetHeight;
-
- var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX;
- var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY;
-
- this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
-
- this.cfg.refireEvent("iframe");
-};
-
-/**
-* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop.
-* @method syncPosition
-*/
-YAHOO.widget.Overlay.prototype.syncPosition = function() {
- var pos = YAHOO.util.Dom.getXY(this.element);
- this.cfg.setProperty("x", pos[0], true);
- this.cfg.setProperty("y", pos[1], true);
- this.cfg.setProperty("xy", pos, true);
-};
-
-/**
-* Event handler fired when the resize monitor element is resized.
-* @method onDomResize
-* @param {DOMEvent} e The resize DOM event
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) {
- YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj);
- var me = this;
- setTimeout(function() {
- me.syncPosition();
- me.cfg.refireEvent("iframe");
- me.cfg.refireEvent("context");
- }, 0);
-};
-
-/**
-* Removes the Overlay element from the DOM and sets all child elements to null.
-* @method destroy
-*/
-YAHOO.widget.Overlay.prototype.destroy = function() {
- if (this.iframe) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
-
- this.iframe = null;
-
- YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
- YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
-
- YAHOO.widget.Overlay.superclass.destroy.call(this);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Overlay.
-*/
-YAHOO.widget.Overlay.prototype.toString = function() {
- return "Overlay " + this.id;
-};
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window scroll
-* @event YAHOO.widget.Overlay.windowScrollEvent
-*/
-YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll");
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window resize
-* @event YAHOO.widget.Overlay.windowResizeEvent
-*/
-YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize");
-
-/**
-* The DOM event handler used to fire the CustomEvent for window scroll
-* @method YAHOO.widget.Overlay.windowScrollHandler
-* @static
-* @param {DOMEvent} e The DOM scroll event
-*/
-YAHOO.widget.Overlay.windowScrollHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.scrollEnd) {
- window.scrollEnd = -1;
- }
- clearTimeout(window.scrollEnd);
- window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1);
- } else {
- YAHOO.widget.Overlay.windowScrollEvent.fire();
- }
-};
-
-/**
-* The DOM event handler used to fire the CustomEvent for window resize
-* @method YAHOO.widget.Overlay.windowResizeHandler
-* @static
-* @param {DOMEvent} e The DOM resize event
-*/
-YAHOO.widget.Overlay.windowResizeHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.resizeEnd) {
- window.resizeEnd = -1;
- }
- clearTimeout(window.resizeEnd);
- window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100);
- } else {
- YAHOO.widget.Overlay.windowResizeEvent.fire();
- }
-};
-
-/**
-* A boolean that indicated whether the window resize and scroll events have already been subscribed to.
-* @property YAHOO.widget.Overlay._initialized
-* @private
-* @type Boolean
-*/
-YAHOO.widget.Overlay._initialized = null;
-
-if (YAHOO.widget.Overlay._initialized === null) {
- YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler);
- YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler);
-
- YAHOO.widget.Overlay._initialized = true;
-}
-
-/**
-* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget
-* @namespace YAHOO.widget
-* @class OverlayManager
-* @constructor
-* @param {Array} overlays Optional. A collection of Overlays to register with the manager.
-* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
-*/
-YAHOO.widget.OverlayManager = function(userConfig) {
- this.init(userConfig);
-};
-
-/**
-* The CSS class representing a focused Overlay
-* @property YAHOO.widget.OverlayManager.CSS_FOCUSED
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused";
-
-YAHOO.widget.OverlayManager.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.OverlayManager,
-
- /**
- * The array of Overlays that are currently registered
- * @property overlays
- * @type YAHOO.widget.Overlay[]
- */
- overlays : null,
-
- /**
- * Initializes the default configuration of the OverlayManager
- * @method initDefaultConfig
- */
- initDefaultConfig : function() {
- /**
- * The collection of registered Overlays in use by the OverlayManager
- * @config overlays
- * @type YAHOO.widget.Overlay[]
- * @default null
- */
- this.cfg.addProperty("overlays", { suppressEvent:true } );
-
- /**
- * The default DOM event that should be used to focus an Overlay
- * @config focusevent
- * @type String
- * @default "mousedown"
- */
- this.cfg.addProperty("focusevent", { value:"mousedown" } );
- },
-
- /**
- * Initializes the OverlayManager
- * @method init
- * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager.
- * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
- */
- init : function(userConfig) {
- /**
- * The OverlayManager's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- this.initDefaultConfig();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
- this.cfg.fireQueue();
-
- /**
- * The currently activated Overlay
- * @property activeOverlay
- * @private
- * @type YAHOO.widget.Overlay
- */
- var activeOverlay = null;
-
- /**
- * Returns the currently focused Overlay
- * @method getActive
- * @return {YAHOO.widget.Overlay} The currently focused Overlay
- */
- this.getActive = function() {
- return activeOverlay;
- };
-
- /**
- * Focuses the specified Overlay
- * @method focus
- * @param {YAHOO.widget.Overlay} overlay The Overlay to focus
- * @param {String} overlay The id of the Overlay to focus
- */
- this.focus = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- this.blurAll();
- activeOverlay = o;
- YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED);
- this.overlays.sort(this.compareZIndexDesc);
- var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex");
- if (! isNaN(topZIndex) && this.overlays[0] != overlay) {
- activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2));
- }
- this.overlays.sort(this.compareZIndexDesc);
- }
- };
-
- /**
- * Removes the specified Overlay from the manager
- * @method remove
- * @param {YAHOO.widget.Overlay} overlay The Overlay to remove
- * @param {String} overlay The id of the Overlay to remove
- */
- this.remove = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex");
- o.cfg.setProperty("zIndex", -1000, true);
- this.overlays.sort(this.compareZIndexDesc);
- this.overlays = this.overlays.slice(0, this.overlays.length-1);
- o.cfg.setProperty("zIndex", originalZ, true);
-
- o.cfg.setProperty("manager", null);
- o.focusEvent = null;
- o.blurEvent = null;
- o.focus = null;
- o.blur = null;
- }
- };
-
- /**
- * Removes focus from all registered Overlays in the manager
- * @method blurAll
- */
- this.blurAll = function() {
- activeOverlay = null;
- for (var o=0;o 0) {
- return true;
- }
- } else {
- return false;
- }
- },
-
- /**
- * Attempts to locate an Overlay by instance or ID.
- * @method find
- * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager
- * @param {String} overlay An Overlay id to locate within the manager
- * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located.
- */
- find : function(overlay) {
- if (overlay instanceof YAHOO.widget.Overlay) {
- for (var o=0;o zIndex2) {
- return -1;
- } else if (zIndex1 < zIndex2) {
- return 1;
- } else {
- return 0;
- }
- },
-
- /**
- * Shows all Overlays in the manager.
- * @method showAll
- */
- showAll : function() {
- for (var o=0;oOR
-* @param {HTMLElement} el The element representing the Tooltip
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Tooltip = function(el, userConfig) {
- YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Tooltip, YAHOO.widget.Overlay);
-
-/**
-* Constant representing the Tooltip CSS class
-* @property YAHOO.widget.Tooltip.CSS_TOOLTIP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Tooltip.CSS_TOOLTIP = "yui-tt";
-
-/**
-* The Tooltip initialization method. This method is automatically called by the constructor. A Tooltip is automatically rendered by the init method, and it also is set to be invisible by default, and constrained to viewport by default as well.
-* @method init
-* @param {String} el The element ID representing the Tooltip OR
-* @param {HTMLElement} el The element representing the Tooltip
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Tooltip. See configuration documentation for more details.
-*/
-YAHOO.widget.Tooltip.prototype.init = function(el, userConfig) {
-
- if (document.readyState && document.readyState != "complete") {
- var deferredInit = function() {
- this.init(el, userConfig);
- };
- YAHOO.util.Event.addListener(window, "load", deferredInit, this, true);
- } else {
- YAHOO.widget.Tooltip.superclass.init.call(this, el);
-
- this.beforeInitEvent.fire(YAHOO.widget.Tooltip);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Tooltip.CSS_TOOLTIP);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.cfg.queueProperty("visible",false);
- this.cfg.queueProperty("constraintoviewport",true);
-
- this.setBody("");
- this.render(this.cfg.getProperty("container"));
-
- this.initEvent.fire(YAHOO.widget.Tooltip);
- }
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Tooltip.prototype.initDefaultConfig = function() {
- YAHOO.widget.Tooltip.superclass.initDefaultConfig.call(this);
-
- /**
- * Specifies whether the Tooltip should be kept from overlapping its context element.
- * @config preventoverlap
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("preventoverlap", { value:true, validator:this.cfg.checkBoolean, supercedes:["x","y","xy"] } );
-
- /**
- * The number of milliseconds to wait before showing a Tooltip on mouseover.
- * @config showdelay
- * @type Number
- * @default 200
- */
- this.cfg.addProperty("showdelay", { value:200, handler:this.configShowDelay, validator:this.cfg.checkNumber } );
-
- /**
- * The number of milliseconds to wait before automatically dismissing a Tooltip after the mouse has been resting on the context element.
- * @config autodismissdelay
- * @type Number
- * @default 5000
- */
- this.cfg.addProperty("autodismissdelay", { value:5000, handler:this.configAutoDismissDelay, validator:this.cfg.checkNumber } );
-
- /**
- * The number of milliseconds to wait before hiding a Tooltip on mouseover.
- * @config hidedelay
- * @type Number
- * @default 250
- */
- this.cfg.addProperty("hidedelay", { value:250, handler:this.configHideDelay, validator:this.cfg.checkNumber } );
-
- /**
- * Specifies the Tooltip's text.
- * @config text
- * @type String
- * @default null
- */
- this.cfg.addProperty("text", { handler:this.configText, suppressEvent:true } );
-
- /**
- * Specifies the container element that the Tooltip's markup should be rendered into.
- * @config container
- * @type HTMLElement/String
- * @default document.body
- */
- this.cfg.addProperty("container", { value:document.body, handler:this.configContainer } );
-
- /**
- * Specifies the element or elements that the Tooltip should be anchored to on mouseover.
- * @config context
- * @type HTMLElement[]/String[]
- * @default null
- */
-
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "text" property is changed.
-* @method configText
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configText = function(type, args, obj) {
- var text = args[0];
- if (text) {
- this.setBody(text);
- }
-};
-
-/**
-* The default event handler fired when the "container" property is changed.
-* @method configContainer
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configContainer = function(type, args, obj) {
- var container = args[0];
- if (typeof container == 'string') {
- this.cfg.setProperty("container", document.getElementById(container), true);
- }
-};
-
-/**
-* The default event handler fired when the "context" property is changed.
-* @method configContext
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Tooltip.prototype.configContext = function(type, args, obj) {
- var context = args[0];
- if (context) {
-
- // Normalize parameter into an array
- if (! (context instanceof Array)) {
- if (typeof context == "string") {
- this.cfg.setProperty("context", [document.getElementById(context)], true);
- } else { // Assuming this is an element
- this.cfg.setProperty("context", [context], true);
- }
- context = this.cfg.getProperty("context");
- }
-
-
- // Remove any existing mouseover/mouseout listeners
- if (this._context) {
- for (var c=0;cOR
-* @param {HTMLElement} el The element representing the Panel
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Panel. See configuration documentation for more details.
-*/
-YAHOO.widget.Panel = function(el, userConfig) {
- YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Panel, YAHOO.widget.Overlay);
-
-/**
-* Constant representing the default CSS class used for a Panel
-* @property YAHOO.widget.Panel.CSS_PANEL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Panel.CSS_PANEL = "yui-panel";
-
-/**
-* Constant representing the default CSS class used for a Panel's wrapping container
-* @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Panel.CSS_PANEL_CONTAINER = "yui-panel-container";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Panel.prototype.init = function(el, userConfig) {
- YAHOO.widget.Panel.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Panel);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Panel.CSS_PANEL);
-
- this.buildWrapper();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.beforeRenderEvent.subscribe(function() {
- var draggable = this.cfg.getProperty("draggable");
- if (draggable) {
- if (! this.header) {
- this.setHeader(" ");
- }
- }
- }, this, true);
-
- var me = this;
-
- var doBlur = function() {
- this.blur();
- };
-
- this.showMaskEvent.subscribe(function() {
- var checkFocusable = function(el) {
- if ((el.tagName == "A" || el.tagName == "BUTTON" || el.tagName == "SELECT" || el.tagName == "INPUT" || el.tagName == "TEXTAREA") && el.type != "hidden") {
- if (! YAHOO.util.Dom.isAncestor(me.element, el)) {
- YAHOO.util.Event.addListener(el, "focus", doBlur, el, true);
- return true;
- }
- } else {
- return false;
- }
- };
-
- this.focusableElements = YAHOO.util.Dom.getElementsBy(checkFocusable);
- }, this, true);
-
- this.hideMaskEvent.subscribe(function() {
- for (var i=0;iOR
-* @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
-* @return {boolean} Success or failure of the render
-*/
-YAHOO.widget.Panel.prototype.render = function(appendToNode) {
- return YAHOO.widget.Panel.superclass.render.call(this, appendToNode, this.innerElement);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Panel.
-*/
-YAHOO.widget.Panel.prototype.toString = function() {
- return "Panel " + this.id;
-};
-
-/**
-* Dialog is an implementation of Panel that can be used to submit form data. Built-in functionality for buttons with event handlers is included, and button sets can be build dynamically, or the preincluded ones for Submit/Cancel and OK/Cancel can be utilized. Forms can be processed in 3 ways -- via an asynchronous Connection utility call, a simple form POST or GET, or manually.
-* @namespace YAHOO.widget
-* @class Dialog
-* @extends YAHOO.widget.Panel
-* @constructor
-* @param {String} el The element ID representing the Dialog OR
-* @param {HTMLElement} el The element representing the Dialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
-*/
-YAHOO.widget.Dialog = function(el, userConfig) {
- YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Dialog, YAHOO.widget.Panel);
-
-/**
-* Constant representing the default CSS class used for a Dialog
-* @property YAHOO.widget.Dialog.CSS_DIALOG
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Dialog.CSS_DIALOG = "yui-dialog";
-
-/**
-* Initializes the class's configurable properties which can be changed using the Dialog's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Dialog.prototype.initDefaultConfig = function() {
- YAHOO.widget.Dialog.superclass.initDefaultConfig.call(this);
-
- /**
- * The internally maintained callback object for use with the Connection utility
- * @property callback
- * @type Object
- */
- this.callback = {
- /**
- * The function to execute upon success of the Connection submission
- * @property callback.success
- * @type Function
- */
- success : null,
- /**
- * The function to execute upon failure of the Connection submission
- * @property callback.failure
- * @type Function
- */
- failure : null,
- /**
- * The arbitraty argument or arguments to pass to the Connection callback functions
- * @property callback.argument
- * @type Object
- */
- argument: null
- };
-
- // Add form dialog config properties //
-
- /**
- * The method to use for posting the Dialog's form. Possible values are "async", "form", and "manual".
- * @config postmethod
- * @type String
- * @default async
- */
- this.cfg.addProperty("postmethod", { value:"async", handler:this.configPostMethod, validator:function(val) {
- if (val != "form" && val != "async" && val != "none" && val != "manual") {
- return false;
- } else {
- return true;
- }
- } });
-
- /**
- * Object literal(s) defining the buttons for the Dialog's footer.
- * @config buttons
- * @type Object[]
- * @default "none"
- */
- this.cfg.addProperty("buttons", { value:"none", handler:this.configButtons } );
-};
-
-/**
-* Initializes the custom events for Dialog which are fired automatically at appropriate times by the Dialog class.
-* @method initEvents
-*/
-YAHOO.widget.Dialog.prototype.initEvents = function() {
- YAHOO.widget.Dialog.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired prior to submission
- * @event beforeSumitEvent
- */
- this.beforeSubmitEvent = new YAHOO.util.CustomEvent("beforeSubmit");
-
- /**
- * CustomEvent fired after submission
- * @event submitEvent
- */
- this.submitEvent = new YAHOO.util.CustomEvent("submit");
-
- /**
- * CustomEvent fired prior to manual submission
- * @event manualSubmitEvent
- */
- this.manualSubmitEvent = new YAHOO.util.CustomEvent("manualSubmit");
-
- /**
- * CustomEvent fired prior to asynchronous submission
- * @event asyncSubmitEvent
- */
- this.asyncSubmitEvent = new YAHOO.util.CustomEvent("asyncSubmit");
-
- /**
- * CustomEvent fired prior to form-based submission
- * @event formSubmitEvent
- */
- this.formSubmitEvent = new YAHOO.util.CustomEvent("formSubmit");
-
- /**
- * CustomEvent fired after cancel
- * @event cancelEvent
- */
- this.cancelEvent = new YAHOO.util.CustomEvent("cancel");
-};
-
-/**
-* The Dialog initialization method, which is executed for Dialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Dialog OR
-* @param {HTMLElement} el The element representing the Dialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Dialog. See configuration documentation for more details.
-*/
-YAHOO.widget.Dialog.prototype.init = function(el, userConfig) {
- YAHOO.widget.Dialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Dialog);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Dialog.CSS_DIALOG);
-
- this.cfg.setProperty("visible", false);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.showEvent.subscribe(this.focusFirst, this, true);
- this.beforeHideEvent.subscribe(this.blurButtons, this, true);
-
- this.beforeRenderEvent.subscribe(function() {
- var buttonCfg = this.cfg.getProperty("buttons");
- if (buttonCfg && buttonCfg != "none") {
- if (! this.footer) {
- this.setFooter("");
- }
- }
- }, this, true);
-
- this.initEvent.fire(YAHOO.widget.Dialog);
-};
-
-/**
-* Performs the submission of the Dialog form depending on the value of "postmethod" property.
-* @method doSubmit
-*/
-YAHOO.widget.Dialog.prototype.doSubmit = function() {
- var pm = this.cfg.getProperty("postmethod");
- switch (pm) {
- case "async":
- var method = this.form.getAttribute("method") || 'POST';
- method = method.toUpperCase();
- YAHOO.util.Connect.setForm(this.form);
- var cObj = YAHOO.util.Connect.asyncRequest(method, this.form.getAttribute("action"), this.callback);
- this.asyncSubmitEvent.fire();
- break;
- case "form":
- this.form.submit();
- this.formSubmitEvent.fire();
- break;
- case "none":
- case "manual":
- this.manualSubmitEvent.fire();
- break;
- }
-};
-
-/**
-* Prepares the Dialog's internal FORM object, creating one if one is not currently present.
-* @method registerForm
-*/
-YAHOO.widget.Dialog.prototype.registerForm = function() {
- var form = this.element.getElementsByTagName("form")[0];
-
- if (! form) {
- var formHTML = "";
- this.body.innerHTML += formHTML;
- form = this.element.getElementsByTagName("form")[0];
- }
-
- this.firstFormElement = function() {
- for (var f=0;f=0;f-- ) {
- var el = form.elements[f];
- if (el.focus && ! el.disabled) {
- if (el.type && el.type != "hidden") {
- return el;
- }
- }
- }
- return null;
- }();
-
- this.form = form;
-
- if (this.cfg.getProperty("modal") && this.form) {
-
- var me = this;
-
- var firstElement = this.firstFormElement || this.firstButton;
- if (firstElement) {
- this.preventBackTab = new YAHOO.util.KeyListener(firstElement, { shift:true, keys:9 }, {fn:me.focusLast, scope:me, correctScope:true} );
- this.showEvent.subscribe(this.preventBackTab.enable, this.preventBackTab, true);
- this.hideEvent.subscribe(this.preventBackTab.disable, this.preventBackTab, true);
- }
-
- var lastElement = this.lastButton || this.lastFormElement;
- if (lastElement) {
- this.preventTabOut = new YAHOO.util.KeyListener(lastElement, { shift:false, keys:9 }, {fn:me.focusFirst, scope:me, correctScope:true} );
- this.showEvent.subscribe(this.preventTabOut.enable, this.preventTabOut, true);
- this.hideEvent.subscribe(this.preventTabOut.disable, this.preventTabOut, true);
- }
- }
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "close" property is changed. The method controls the appending or hiding of the close icon at the top right of the Dialog.
-* @method configClose
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Dialog.prototype.configClose = function(type, args, obj) {
- var val = args[0];
-
- var doCancel = function(e, obj) {
- obj.cancel();
- };
-
- if (val) {
- if (! this.close) {
- this.close = document.createElement("div");
- YAHOO.util.Dom.addClass(this.close, "container-close");
-
- this.close.innerHTML = " ";
- this.innerElement.appendChild(this.close);
- YAHOO.util.Event.addListener(this.close, "click", doCancel, this);
- } else {
- this.close.style.display = "block";
- }
- } else {
- if (this.close) {
- this.close.style.display = "none";
- }
- }
-};
-
-/**
-* The default event handler for the "buttons" configuration property
-* @method configButtons
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Dialog.prototype.configButtons = function(type, args, obj) {
- var buttons = args[0];
- if (buttons != "none") {
- this.buttonSpan = null;
- this.buttonSpan = document.createElement("span");
- this.buttonSpan.className = "button-group";
-
- for (var b=0;bOR
-* @param {HTMLElement} el The element representing the SimpleDialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details.
-*/
-YAHOO.widget.SimpleDialog = function(el, userConfig) {
- YAHOO.widget.SimpleDialog.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.SimpleDialog, YAHOO.widget.Dialog);
-
-/**
-* Constant for the standard network icon for a blocking action
-* @property YAHOO.widget.SimpleDialog.ICON_BLOCK
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_BLOCK = "blckicon";
-
-/**
-* Constant for the standard network icon for alarm
-* @property YAHOO.widget.SimpleDialog.ICON_ALARM
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_ALARM = "alrticon";
-
-/**
-* Constant for the standard network icon for help
-* @property YAHOO.widget.SimpleDialog.ICON_HELP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_HELP = "hlpicon";
-
-/**
-* Constant for the standard network icon for info
-* @property YAHOO.widget.SimpleDialog.ICON_INFO
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_INFO = "infoicon";
-
-/**
-* Constant for the standard network icon for warn
-* @property YAHOO.widget.SimpleDialog.ICON_WARN
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_WARN = "warnicon";
-
-/**
-* Constant for the standard network icon for a tip
-* @property YAHOO.widget.SimpleDialog.ICON_TIP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.ICON_TIP = "tipicon";
-
-/**
-* Constant representing the default CSS class used for a SimpleDialog
-* @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog";
-
-/**
-* Initializes the class's configurable properties which can be changed using the SimpleDialog's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.SimpleDialog.prototype.initDefaultConfig = function() {
- YAHOO.widget.SimpleDialog.superclass.initDefaultConfig.call(this);
-
- // Add dialog config properties //
-
- /**
- * Sets the informational icon for the SimpleDialog
- * @config icon
- * @type String
- * @default "none"
- */
- this.cfg.addProperty("icon", { value:"none", handler:this.configIcon, suppressEvent:true } );
-
- /**
- * Sets the text for the SimpleDialog
- * @config text
- * @type String
- * @default ""
- */
- this.cfg.addProperty("text", { value:"", handler:this.configText, suppressEvent:true, supercedes:["icon"] } );
-};
-
-
-/**
-* The SimpleDialog initialization method, which is executed for SimpleDialog and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the SimpleDialog OR
-* @param {HTMLElement} el The element representing the SimpleDialog
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this SimpleDialog. See configuration documentation for more details.
-*/
-YAHOO.widget.SimpleDialog.prototype.init = function(el, userConfig) {
- YAHOO.widget.SimpleDialog.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.SimpleDialog);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG);
-
- this.cfg.queueProperty("postmethod", "manual");
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- this.beforeRenderEvent.subscribe(function() {
- if (! this.body) {
- this.setBody("");
- }
- }, this, true);
-
- this.initEvent.fire(YAHOO.widget.SimpleDialog);
-
-};
-/**
-* Prepares the SimpleDialog's internal FORM object, creating one if one is not currently present, and adding the value hidden field.
-* @method registerForm
-*/
-YAHOO.widget.SimpleDialog.prototype.registerForm = function() {
- YAHOO.widget.SimpleDialog.superclass.registerForm.call(this);
- this.form.innerHTML += " ";
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* Fired when the "icon" property is set.
-* @method configIcon
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.SimpleDialog.prototype.configIcon = function(type,args,obj) {
- var icon = args[0];
- if (icon && icon != "none") {
- var iconHTML = "";
- if (icon.indexOf(".") == -1) {
- iconHTML = " ";
- } else {
- iconHTML = " ";
- }
- this.body.innerHTML = iconHTML + this.body.innerHTML;
- }
-};
-
-/**
-* Fired when the "text" property is set.
-* @method configText
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.SimpleDialog.prototype.configText = function(type,args,obj) {
- var text = args[0];
- if (text) {
- this.setBody(text);
- this.cfg.refireEvent("icon");
- }
-};
-// END BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} The string representation of the SimpleDialog
-*/
-YAHOO.widget.SimpleDialog.prototype.toString = function() {
- return "SimpleDialog " + this.id;
-};
-
-/**
-* ContainerEffect encapsulates animation transitions that are executed when an Overlay is shown or hidden.
-* @namespace YAHOO.widget
-* @class ContainerEffect
-* @constructor
-* @param {YAHOO.widget.Overlay} overlay The Overlay that the animation should be associated with
-* @param {Object} attrIn The object literal representing the animation arguments to be used for the animate-in transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn).
-* @param {Object} attrOut The object literal representing the animation arguments to be used for the animate-out transition. The arguments for this literal are: attributes(object, see YAHOO.util.Anim for description), duration(Number), and method(i.e. YAHOO.util.Easing.easeIn).
-* @param {HTMLElement} targetElement Optional. The target element that should be animated during the transition. Defaults to overlay.element.
-* @param {class} Optional. The animation class to instantiate. Defaults to YAHOO.util.Anim. Other options include YAHOO.util.Motion.
-*/
-YAHOO.widget.ContainerEffect = function(overlay, attrIn, attrOut, targetElement, animClass) {
- if (! animClass) {
- animClass = YAHOO.util.Anim;
- }
-
- /**
- * The overlay to animate
- * @property overlay
- * @type YAHOO.widget.Overlay
- */
- this.overlay = overlay;
- /**
- * The animation attributes to use when transitioning into view
- * @property attrIn
- * @type Object
- */
- this.attrIn = attrIn;
- /**
- * The animation attributes to use when transitioning out of view
- * @property attrOut
- * @type Object
- */
- this.attrOut = attrOut;
- /**
- * The target element to be animated
- * @property targetElement
- * @type HTMLElement
- */
- this.targetElement = targetElement || overlay.element;
- /**
- * The animation class to use for animating the overlay
- * @property animClass
- * @type class
- */
- this.animClass = animClass;
-};
-
-/**
-* Initializes the animation classes and events.
-* @method init
-*/
-YAHOO.widget.ContainerEffect.prototype.init = function() {
- this.beforeAnimateInEvent = new YAHOO.util.CustomEvent("beforeAnimateIn");
- this.beforeAnimateOutEvent = new YAHOO.util.CustomEvent("beforeAnimateOut");
-
- this.animateInCompleteEvent = new YAHOO.util.CustomEvent("animateInComplete");
- this.animateOutCompleteEvent = new YAHOO.util.CustomEvent("animateOutComplete");
-
- this.animIn = new this.animClass(this.targetElement, this.attrIn.attributes, this.attrIn.duration, this.attrIn.method);
- this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
- this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
- this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, this);
-
- this.animOut = new this.animClass(this.targetElement, this.attrOut.attributes, this.attrOut.duration, this.attrOut.method);
- this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
- this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
- this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, this);
-};
-
-/**
-* Triggers the in-animation.
-* @method animateIn
-*/
-YAHOO.widget.ContainerEffect.prototype.animateIn = function() {
- this.beforeAnimateInEvent.fire();
- this.animIn.animate();
-};
-
-/**
-* Triggers the out-animation.
-* @method animateOut
-*/
-YAHOO.widget.ContainerEffect.prototype.animateOut = function() {
- this.beforeAnimateOutEvent.fire();
- this.animOut.animate();
-};
-
-/**
-* The default onStart handler for the in-animation.
-* @method handleStartAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleStartAnimateIn = function(type, args, obj) { };
-/**
-* The default onTween handler for the in-animation.
-* @method handleTweenAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateIn = function(type, args, obj) { };
-/**
-* The default onComplete handler for the in-animation.
-* @method handleCompleteAnimateIn
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateIn = function(type, args, obj) { };
-
-/**
-* The default onStart handler for the out-animation.
-* @method handleStartAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleStartAnimateOut = function(type, args, obj) { };
-/**
-* The default onTween handler for the out-animation.
-* @method handleTweenAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleTweenAnimateOut = function(type, args, obj) { };
-/**
-* The default onComplete handler for the out-animation.
-* @method handleCompleteAnimateOut
-* @param {String} type The CustomEvent type
-* @param {Object[]} args The CustomEvent arguments
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.ContainerEffect.prototype.handleCompleteAnimateOut = function(type, args, obj) { };
-
-/**
-* Returns a string representation of the object.
-* @method toString
-* @return {String} The string representation of the ContainerEffect
-*/
-YAHOO.widget.ContainerEffect.prototype.toString = function() {
- var output = "ContainerEffect";
- if (this.overlay) {
- output += " [" + this.overlay.toString() + "]";
- }
- return output;
-};
-
-/**
-* A pre-configured ContainerEffect instance that can be used for fading an overlay in and out.
-* @method FADE
-* @static
-* @param {Overlay} overlay The Overlay object to animate
-* @param {Number} dur The duration of the animation
-* @return {ContainerEffect} The configured ContainerEffect object
-*/
-YAHOO.widget.ContainerEffect.FADE = function(overlay, dur) {
- var fade = new YAHOO.widget.ContainerEffect(overlay, { attributes:{opacity: {from:0, to:1}}, duration:dur, method:YAHOO.util.Easing.easeIn }, { attributes:{opacity: {to:0}}, duration:dur, method:YAHOO.util.Easing.easeOut}, overlay.element );
-
- fade.handleStartAnimateIn = function(type,args,obj) {
- YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select");
-
- if (! obj.overlay.underlay) {
- obj.overlay.cfg.refireEvent("underlay");
- }
-
- if (obj.overlay.underlay) {
- obj.initialUnderlayOpacity = YAHOO.util.Dom.getStyle(obj.overlay.underlay, "opacity");
- obj.overlay.underlay.style.filter = null;
- }
-
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible");
- YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 0);
- };
-
- fade.handleCompleteAnimateIn = function(type,args,obj) {
- YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select");
-
- if (obj.overlay.element.style.filter) {
- obj.overlay.element.style.filter = null;
- }
-
- if (obj.overlay.underlay) {
- YAHOO.util.Dom.setStyle(obj.overlay.underlay, "opacity", obj.initialUnderlayOpacity);
- }
-
- obj.overlay.cfg.refireEvent("iframe");
- obj.animateInCompleteEvent.fire();
- };
-
- fade.handleStartAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.addClass(obj.overlay.element, "hide-select");
-
- if (obj.overlay.underlay) {
- obj.overlay.underlay.style.filter = null;
- }
- };
-
- fade.handleCompleteAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.removeClass(obj.overlay.element, "hide-select");
- if (obj.overlay.element.style.filter) {
- obj.overlay.element.style.filter = null;
- }
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden");
- YAHOO.util.Dom.setStyle(obj.overlay.element, "opacity", 1);
-
- obj.overlay.cfg.refireEvent("iframe");
-
- obj.animateOutCompleteEvent.fire();
- };
-
- fade.init();
- return fade;
-};
-
-
-/**
-* A pre-configured ContainerEffect instance that can be used for sliding an overlay in and out.
-* @method SLIDE
-* @static
-* @param {Overlay} overlay The Overlay object to animate
-* @param {Number} dur The duration of the animation
-* @return {ContainerEffect} The configured ContainerEffect object
-*/
-YAHOO.widget.ContainerEffect.SLIDE = function(overlay, dur) {
- var x = overlay.cfg.getProperty("x") || YAHOO.util.Dom.getX(overlay.element);
- var y = overlay.cfg.getProperty("y") || YAHOO.util.Dom.getY(overlay.element);
-
- var clientWidth = YAHOO.util.Dom.getClientWidth();
- var offsetWidth = overlay.element.offsetWidth;
-
- var slide = new YAHOO.widget.ContainerEffect(overlay, {
- attributes:{ points: { to:[x, y] } },
- duration:dur,
- method:YAHOO.util.Easing.easeIn
- },
- {
- attributes:{ points: { to:[(clientWidth+25), y] } },
- duration:dur,
- method:YAHOO.util.Easing.easeOut
- },
- overlay.element,
- YAHOO.util.Motion);
-
-
- slide.handleStartAnimateIn = function(type,args,obj) {
- obj.overlay.element.style.left = (-25-offsetWidth) + "px";
- obj.overlay.element.style.top = y + "px";
- };
-
- slide.handleTweenAnimateIn = function(type, args, obj) {
-
-
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var currentX = pos[0];
- var currentY = pos[1];
-
- if (YAHOO.util.Dom.getStyle(obj.overlay.element, "visibility") == "hidden" && currentX < x) {
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "visible");
- }
-
- obj.overlay.cfg.setProperty("xy", [currentX,currentY], true);
- obj.overlay.cfg.refireEvent("iframe");
- };
-
- slide.handleCompleteAnimateIn = function(type, args, obj) {
- obj.overlay.cfg.setProperty("xy", [x,y], true);
- obj.startX = x;
- obj.startY = y;
- obj.overlay.cfg.refireEvent("iframe");
- obj.animateInCompleteEvent.fire();
- };
-
- slide.handleStartAnimateOut = function(type, args, obj) {
- var vw = YAHOO.util.Dom.getViewportWidth();
-
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var yso = pos[1];
-
- var currentTo = obj.animOut.attributes.points.to;
- obj.animOut.attributes.points.to = [(vw+25), yso];
- };
-
- slide.handleTweenAnimateOut = function(type, args, obj) {
- var pos = YAHOO.util.Dom.getXY(obj.overlay.element);
-
- var xto = pos[0];
- var yto = pos[1];
-
- obj.overlay.cfg.setProperty("xy", [xto,yto], true);
- obj.overlay.cfg.refireEvent("iframe");
- };
-
- slide.handleCompleteAnimateOut = function(type, args, obj) {
- YAHOO.util.Dom.setStyle(obj.overlay.element, "visibility", "hidden");
-
- obj.overlay.cfg.setProperty("xy", [x,y]);
- obj.animateOutCompleteEvent.fire();
- };
-
- slide.init();
- return slide;
-};
-
-YAHOO.register("container", YAHOO.widget.Module, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/container/container_core-debug.js b/interface/ispconfig/interface/js/yui/container/container_core-debug.js
deleted file mode 100644
index 3524f7c9bb604808c00f5ad653114fdefc07ce3e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/container/container_core-debug.js
+++ /dev/null
@@ -1,2932 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
-* Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state.
-* @namespace YAHOO.util
-* @class Config
-* @constructor
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config = function(owner) {
- if (owner) {
- this.init(owner);
- }
- if (!owner) { YAHOO.log("No owner specified for Config object", "error"); }
-};
-
-YAHOO.util.Config.prototype = {
-
- /**
- * Object reference to the owner of this Config Object
- * @property owner
- * @type Object
- */
- owner : null,
-
- /**
- * Boolean flag that specifies whether a queue is currently being executed
- * @property queueInProgress
- * @type Boolean
- */
- queueInProgress : false,
-
-
- /**
- * Validates that the value passed in is a Boolean.
- * @method checkBoolean
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkBoolean: function(val) {
- if (typeof val == 'boolean') {
- return true;
- } else {
- return false;
- }
- },
-
- /**
- * Validates that the value passed in is a number.
- * @method checkNumber
- * @param {Object} val The value to validate
- * @return {Boolean} true, if the value is valid
- */
- checkNumber: function(val) {
- if (isNaN(val)) {
- return false;
- } else {
- return true;
- }
- }
-};
-
-
-/**
-* Initializes the configuration Object and all of its local members.
-* @method init
-* @param {Object} owner The owner Object to which this Config Object belongs
-*/
-YAHOO.util.Config.prototype.init = function(owner) {
-
- this.owner = owner;
-
- /**
- * Object reference to the owner of this Config Object
- * @event configChangedEvent
- */
- this.configChangedEvent = new YAHOO.util.CustomEvent("configChanged");
- this.queueInProgress = false;
-
- /* Private Members */
-
- /**
- * Maintains the local collection of configuration property objects and their specified values
- * @property config
- * @private
- * @type Object
- */
- var config = {};
-
- /**
- * Maintains the local collection of configuration property objects as they were initially applied.
- * This object is used when resetting a property.
- * @property initialConfig
- * @private
- * @type Object
- */
- var initialConfig = {};
-
- /**
- * Maintains the local, normalized CustomEvent queue
- * @property eventQueue
- * @private
- * @type Object
- */
- var eventQueue = [];
-
- /**
- * Fires a configuration property event using the specified value.
- * @method fireEvent
- * @private
- * @param {String} key The configuration property's name
- * @param {value} Object The value of the correct type for the property
- */
- var fireEvent = function( key, value ) {
- YAHOO.log("Firing Config event: " + key + "=" + value, "info");
- key = key.toLowerCase();
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- property.event.fire(value);
- }
- };
- /* End Private Members */
-
- /**
- * Adds a property to the Config Object's private config hash.
- * @method addProperty
- * @param {String} key The configuration property's name
- * @param {Object} propertyObject The Object containing all of this property's arguments
- */
- this.addProperty = function( key, propertyObject ) {
- key = key.toLowerCase();
- YAHOO.log("Added property: " + key, "info");
-
- config[key] = propertyObject;
-
- propertyObject.event = new YAHOO.util.CustomEvent(key);
- propertyObject.key = key;
-
- if (propertyObject.handler) {
- propertyObject.event.subscribe(propertyObject.handler, this.owner, true);
- }
-
- this.setProperty(key, propertyObject.value, true);
-
- if (! propertyObject.suppressEvent) {
- this.queueProperty(key, propertyObject.value);
- }
- };
-
- /**
- * Returns a key-value configuration map of the values currently set in the Config Object.
- * @method getConfig
- * @return {Object} The current config, represented in a key-value map
- */
- this.getConfig = function() {
- var cfg = {};
-
- for (var prop in config) {
- var property = config[prop];
- if (typeof property != 'undefined' && property.event) {
- cfg[prop] = property.value;
- }
- }
-
- return cfg;
- };
-
- /**
- * Returns the value of specified property.
- * @method getProperty
- * @param {String} key The name of the property
- * @return {Object} The value of the specified property
- */
- this.getProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- return property.value;
- } else {
- return undefined;
- }
- };
-
- /**
- * Resets the specified property's value to its initial value.
- * @method resetProperty
- * @param {String} key The name of the property
- * @return {Boolean} True is the property was reset, false if not
- */
- this.resetProperty = function(key) {
- key = key.toLowerCase();
-
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (initialConfig[key] && initialConfig[key] != 'undefined') {
- this.setProperty(key, initialConfig[key]);
- }
- return true;
- } else {
- return false;
- }
- };
-
- /**
- * Sets the value of a property. If the silent property is passed as true, the property's event will not be fired.
- * @method setProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @param {Boolean} silent Whether the value should be set silently, without firing the property event.
- * @return {Boolean} True, if the set was successful, false if it failed.
- */
- this.setProperty = function(key, value, silent) {
- key = key.toLowerCase();
- YAHOO.log("setProperty: " + key + "=" + value, "info");
-
- if (this.queueInProgress && ! silent) {
- this.queueProperty(key,value); // Currently running through a queue...
- return true;
- } else {
- var property = config[key];
- if (typeof property != 'undefined' && property.event) {
- if (property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
- property.value = value;
- if (! silent) {
- fireEvent(key, value);
- this.configChangedEvent.fire([key, value]);
- }
- return true;
- }
- } else {
- return false;
- }
- }
- };
-
- /**
- * Sets the value of a property and queues its event to execute. If the event is already scheduled to execute, it is
- * moved from its current position to the end of the queue.
- * @method queueProperty
- * @param {String} key The name of the property
- * @param {String} value The value to set the property to
- * @return {Boolean} true, if the set was successful, false if it failed.
- */
- this.queueProperty = function(key, value) {
- key = key.toLowerCase();
- YAHOO.log("queueProperty: " + key + "=" + value, "info");
-
- var property = config[key];
-
- if (typeof property != 'undefined' && property.event) {
- if (typeof value != 'undefined' && property.validator && ! property.validator(value)) { // validator
- return false;
- } else {
-
- if (typeof value != 'undefined') {
- property.value = value;
- } else {
- value = property.value;
- }
-
- var foundDuplicate = false;
-
- for (var i=0;iOR
-* @param {HTMLElement} el The element representing the Module
-* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
-*/
-YAHOO.widget.Module = function(el, userConfig) {
- if (el) {
- this.init(el, userConfig);
- } else {
- YAHOO.log("No element or element ID specified for Module instantiation", "error");
- }
-};
-
-/**
-* Constant representing the prefix path to use for non-secure images
-* @property YAHOO.widget.Module.IMG_ROOT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT = null;
-
-/**
-* Constant representing the prefix path to use for securely served images
-* @property YAHOO.widget.Module.IMG_ROOT_SSL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT_SSL = null;
-
-/**
-* Constant for the default CSS class name that represents a Module
-* @property YAHOO.widget.Module.CSS_MODULE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_MODULE = "module";
-
-/**
-* Constant representing the module header
-* @property YAHOO.widget.Module.CSS_HEADER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_HEADER = "hd";
-
-/**
-* Constant representing the module body
-* @property YAHOO.widget.Module.CSS_BODY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_BODY = "bd";
-
-/**
-* Constant representing the module footer
-* @property YAHOO.widget.Module.CSS_FOOTER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_FOOTER = "ft";
-
-/**
-* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size
-* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
-
-/**
-* Singleton CustomEvent fired when the font size is changed in the browser.
-* Opera's "zoom" functionality currently does not support text size detection.
-* @event YAHOO.widget.Module.textResizeEvent
-*/
-YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize");
-
-YAHOO.widget.Module.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.Module,
-
- /**
- * The main module element that contains the header, body, and footer
- * @property element
- * @type HTMLElement
- */
- element : null,
-
- /**
- * The header element, denoted with CSS class "hd"
- * @property header
- * @type HTMLElement
- */
- header : null,
-
- /**
- * The body element, denoted with CSS class "bd"
- * @property body
- * @type HTMLElement
- */
- body : null,
-
- /**
- * The footer element, denoted with CSS class "ft"
- * @property footer
- * @type HTMLElement
- */
- footer : null,
-
- /**
- * The id of the element
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The String representing the image root
- * @property imageRoot
- * @type String
- */
- imageRoot : YAHOO.widget.Module.IMG_ROOT,
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- * @method initEvents
- */
- initEvents : function() {
-
- /**
- * CustomEvent fired prior to class initalization.
- * @event beforeInitEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit");
-
- /**
- * CustomEvent fired after class initalization.
- * @event initEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.initEvent = new YAHOO.util.CustomEvent("init");
-
- /**
- * CustomEvent fired when the Module is appended to the DOM
- * @event appendEvent
- */
- this.appendEvent = new YAHOO.util.CustomEvent("append");
-
- /**
- * CustomEvent fired before the Module is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * CustomEvent fired after the Module is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * CustomEvent fired when the header content of the Module is modified
- * @event changeHeaderEvent
- * @param {String/HTMLElement} content String/element representing the new header content
- */
- this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader");
-
- /**
- * CustomEvent fired when the body content of the Module is modified
- * @event changeBodyEvent
- * @param {String/HTMLElement} content String/element representing the new body content
- */
- this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody");
-
- /**
- * CustomEvent fired when the footer content of the Module is modified
- * @event changeFooterEvent
- * @param {String/HTMLElement} content String/element representing the new footer content
- */
- this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter");
-
- /**
- * CustomEvent fired when the content of the Module is modified
- * @event changeContentEvent
- */
- this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent");
-
- /**
- * CustomEvent fired when the Module is destroyed
- * @event destroyEvent
- */
- this.destroyEvent = new YAHOO.util.CustomEvent("destroy");
-
- /**
- * CustomEvent fired before the Module is shown
- * @event beforeShowEvent
- */
- this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow");
-
- /**
- * CustomEvent fired after the Module is shown
- * @event showEvent
- */
- this.showEvent = new YAHOO.util.CustomEvent("show");
-
- /**
- * CustomEvent fired before the Module is hidden
- * @event beforeHideEvent
- */
- this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide");
-
- /**
- * CustomEvent fired after the Module is hidden
- * @event hideEvent
- */
- this.hideEvent = new YAHOO.util.CustomEvent("hide");
- },
-
- /**
- * String representing the current user-agent platform
- * @property platform
- * @type String
- */
- platform : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
- return "windows";
- } else if (ua.indexOf("macintosh") != -1) {
- return "mac";
- } else {
- return false;
- }
- }(),
-
- /**
- * String representing the current user-agent browser
- * @property browser
- * @type String
- */
- browser : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
- return 'opera';
- } else if (ua.indexOf('msie 7')!=-1) { // IE7
- return 'ie7';
- } else if (ua.indexOf('msie') !=-1) { // IE
- return 'ie';
- } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
- return 'safari';
- } else if (ua.indexOf('gecko') != -1) { // Gecko
- return 'gecko';
- } else {
- return false;
- }
- }(),
-
- /**
- * Boolean representing whether or not the current browsing context is secure (https)
- * @property isSecure
- * @type Boolean
- */
- isSecure : function() {
- if (window.location.href.toLowerCase().indexOf("https") === 0) {
- return true;
- } else {
- return false;
- }
- }(),
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- */
- initDefaultConfig : function() {
- // Add properties //
-
- /**
- * Specifies whether the Module is visible on the page.
- * @config visible
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } );
-
- /**
- * Object or array of objects representing the ContainerEffect classes that are active for animating the container.
- * @config effect
- * @type Object
- * @default null
- */
- this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } );
-
- /**
- * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document
- * @config monitorresize
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } );
- },
-
- /**
- * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- * @method init
- * @param {String} el The element ID representing the Module OR
- * @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
- */
- init : function(el, userConfig) {
-
- this.initEvents();
-
- this.beforeInitEvent.fire(YAHOO.widget.Module);
-
- /**
- * The Module's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- if (this.isSecure) {
- this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL;
- }
-
- if (typeof el == "string") {
- var elId = el;
-
- el = document.getElementById(el);
- if (! el) {
- el = document.createElement("div");
- el.id = elId;
- }
- }
-
- this.element = el;
-
- if (el.id) {
- this.id = el.id;
- }
-
- var childNodes = this.element.childNodes;
-
- if (childNodes) {
- for (var i=0;iOR
- * @param {HTMLElement} headerContent The HTMLElement to append to the header
- */
- setHeader : function(headerContent) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- if (typeof headerContent == "string") {
- this.header.innerHTML = headerContent;
- } else {
- this.header.innerHTML = "";
- this.header.appendChild(headerContent);
- }
-
- this.changeHeaderEvent.fire(headerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the header. If no header is present, one will be automatically created.
- * @method appendToHeader
- * @param {HTMLElement} element The element to append to the header
- */
- appendToHeader : function(element) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- this.header.appendChild(element);
- this.changeHeaderEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created.
- * @method setBody
- * @param {String} bodyContent The HTML used to set the body OR
- * @param {HTMLElement} bodyContent The HTMLElement to append to the body
- */
- setBody : function(bodyContent) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- if (typeof bodyContent == "string")
- {
- this.body.innerHTML = bodyContent;
- } else {
- this.body.innerHTML = "";
- this.body.appendChild(bodyContent);
- }
-
- this.changeBodyEvent.fire(bodyContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the body. If no body is present, one will be automatically created.
- * @method appendToBody
- * @param {HTMLElement} element The element to append to the body
- */
- appendToBody : function(element) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- this.body.appendChild(element);
- this.changeBodyEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method setFooter
- * @param {String} footerContent The HTML used to set the footer OR
- * @param {HTMLElement} footerContent The HTMLElement to append to the footer
- */
- setFooter : function(footerContent) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- if (typeof footerContent == "string") {
- this.footer.innerHTML = footerContent;
- } else {
- this.footer.innerHTML = "";
- this.footer.appendChild(footerContent);
- }
-
- this.changeFooterEvent.fire(footerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method appendToFooter
- * @param {HTMLElement} element The element to append to the footer
- */
- appendToFooter : function(element) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- this.footer.appendChild(element);
- this.changeFooterEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure.
- * @method render
- * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering OR
- * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
- * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container.
- * @return {Boolean} Success or failure of the render
- */
- render : function(appendToNode, moduleElement) {
- this.beforeRenderEvent.fire();
-
- if (! moduleElement) {
- moduleElement = this.element;
- }
-
- var me = this;
- var appendTo = function(element) {
- if (typeof element == "string") {
- element = document.getElementById(element);
- }
-
- if (element) {
- element.appendChild(me.element);
- me.appendEvent.fire();
- }
- };
-
- if (appendToNode) {
- appendTo(appendToNode);
- } else { // No node was passed in. If the element is not pre-marked up, this fails
- if (! YAHOO.util.Dom.inDocument(this.element)) {
- YAHOO.log("Render failed. Must specify appendTo node if Module isn't already in the DOM.", "error");
- return false;
- }
- }
-
- // Need to get everything into the DOM if it isn't already
-
- if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) {
- // There is a header, but it's not in the DOM yet... need to add it
- var firstChild = moduleElement.firstChild;
- if (firstChild) { // Insert before first child if exists
- moduleElement.insertBefore(this.header, firstChild);
- } else { // Append to empty body because there are no children
- moduleElement.appendChild(this.header);
- }
- }
-
- if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) {
- // There is a body, but it's not in the DOM yet... need to add it
- if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM
- moduleElement.insertBefore(this.body, this.footer);
- } else { // Append to element because there is no footer
- moduleElement.appendChild(this.body);
- }
- }
-
- if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) {
- // There is a footer, but it's not in the DOM yet... need to add it
- moduleElement.appendChild(this.footer);
- }
-
- this.renderEvent.fire();
- return true;
- },
-
- /**
- * Removes the Module element from the DOM and sets all child elements to null.
- * @method destroy
- */
- destroy : function() {
- var parent;
-
- if (this.element) {
- YAHOO.util.Event.purgeElement(this.element, true);
- parent = this.element.parentNode;
- }
- if (parent) {
- parent.removeChild(this.element);
- }
-
- this.element = null;
- this.header = null;
- this.body = null;
- this.footer = null;
-
- for (var e in this) {
- if (e instanceof YAHOO.util.CustomEvent) {
- e.unsubscribeAll();
- }
- }
-
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this);
-
- this.destroyEvent.fire();
- },
-
- /**
- * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after.
- * @method show
- */
- show : function() {
- this.cfg.setProperty("visible", true);
- },
-
- /**
- * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after.
- * @method hide
- */
- hide : function() {
- this.cfg.setProperty("visible", false);
- },
-
- // BUILT-IN EVENT HANDLERS FOR MODULE //
-
- /**
- * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none".
- * This method is responsible for firing showEvent and hideEvent.
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configVisible
- */
- configVisible : function(type, args, obj) {
- var visible = args[0];
- if (visible) {
- this.beforeShowEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "block");
- this.showEvent.fire();
- } else {
- this.beforeHideEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "none");
- this.hideEvent.fire();
- }
- },
-
- /**
- * Default event handler for the "monitorresize" configuration property
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configMonitorResize
- */
- configMonitorResize : function(type, args, obj) {
- var monitor = args[0];
- if (monitor) {
- this.initResizeMonitor();
- } else {
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
- this.resizeMonitor = null;
- }
- }
-};
-
-/**
-* Returns a String representation of the Object.
-* @method toString
-* @return {String} The string representation of the Module
-*/
-YAHOO.widget.Module.prototype.toString = function() {
- return "Module " + this.id;
-};
-
-/**
-* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements.
-* @namespace YAHOO.widget
-* @class Overlay
-* @extends YAHOO.widget.Module
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details.
-* @constructor
-*/
-YAHOO.widget.Overlay = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module);
-
-/**
-* The URL that will be placed in the iframe
-* @property YAHOO.widget.Overlay.IFRAME_SRC
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;";
-
-/**
-* Constant representing the top left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_LEFT = "tl";
-
-/**
-* Constant representing the top right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_RIGHT = "tr";
-
-/**
-* Constant representing the top bottom left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_LEFT = "bl";
-
-/**
-* Constant representing the bottom right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_RIGHT = "br";
-
-/**
-* Constant representing the default CSS class used for an Overlay
-* @property YAHOO.widget.Overlay.CSS_OVERLAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Overlay.prototype.init = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Overlay);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- if (this.platform == "mac" && this.browser == "gecko") {
- if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) {
- this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);
- }
- if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) {
- this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);
- }
- }
-
- this.initEvent.fire(YAHOO.widget.Overlay);
-
-};
-
-/**
-* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class.
-* @method initEvents
-*/
-YAHOO.widget.Overlay.prototype.initEvents = function() {
- YAHOO.widget.Overlay.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired before the Overlay is moved.
- * @event beforeMoveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this);
-
- /**
- * CustomEvent fired after the Overlay is moved.
- * @event moveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.moveEvent = new YAHOO.util.CustomEvent("move", this);
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Overlay.prototype.initDefaultConfig = function() {
- YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);
-
- // Add overlay config properties //
-
- /**
- * The absolute x-coordinate position of the Overlay
- * @config x
- * @type Number
- * @default null
- */
- this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The absolute y-coordinate position of the Overlay
- * @config y
- * @type Number
- * @default null
- */
- this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * An array with the absolute x and y positions of the Overlay
- * @config xy
- * @type Number[]
- * @default null
- */
- this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner.
- * @config context
- * @type Array
- * @default null
- */
- this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * True if the Overlay should be anchored to the center of the viewport.
- * @config fixedcenter
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } );
-
- /**
- * CSS width of the Overlay.
- * @config width
- * @type String
- * @default null
- */
- this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS height of the Overlay.
- * @config height
- * @type String
- * @default null
- */
- this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS z-index of the Overlay.
- * @config zIndex
- * @type Number
- * @default null
- */
- this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } );
-
- /**
- * True if the Overlay should be prevented from being positioned out of the viewport.
- * @config constraintoviewport
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } );
-
- /**
- * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below).
- * @config iframe
- * @type Boolean
- * @default true for IE6 and below, false for all others
- */
- this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } );
-};
-
-/**
-* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]);
-* @method moveTo
-* @param {Number} x The Overlay's new x position
-* @param {Number} y The Overlay's new y position
-*/
-YAHOO.widget.Overlay.prototype.moveTo = function(x, y) {
- this.cfg.setProperty("xy",[x,y]);
-};
-
-/**
-* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method hideMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "show-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "hide-scrollbars");
-};
-
-/**
-* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method showMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "show-scrollbars");
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent.
-* @method configVisible
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) {
- var visible = args[0];
- var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility");
-
- if (currentVis == "inherit") {
- var e = this.element.parentNode;
- while (e.nodeType != 9 && e.nodeType != 11) {
- currentVis = YAHOO.util.Dom.getStyle(e, "visibility");
- if (currentVis != "inherit") { break; }
- e = e.parentNode;
- }
- if (currentVis == "inherit") {
- currentVis = "visible";
- }
- }
-
- var effect = this.cfg.getProperty("effect");
-
- var effectInstances = [];
- if (effect) {
- if (effect instanceof Array) {
- for (var i=0;i rightConstraint) {
- x = rightConstraint;
- }
-
- if (y < topConstraint) {
- y = topConstraint;
- } else if (y > bottomConstraint) {
- y = bottomConstraint;
- }
-
- this.cfg.setProperty("x", x, true);
- this.cfg.setProperty("y", y, true);
- this.cfg.setProperty("xy", [x,y], true);
-};
-
-/**
-* Centers the container in the viewport.
-* @method center
-*/
-YAHOO.widget.Overlay.prototype.center = function() {
- var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
- var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
-
- var viewPortWidth = YAHOO.util.Dom.getClientWidth();
- var viewPortHeight = YAHOO.util.Dom.getClientHeight();
-
- var elementWidth = this.element.offsetWidth;
- var elementHeight = this.element.offsetHeight;
-
- var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX;
- var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY;
-
- this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
-
- this.cfg.refireEvent("iframe");
-};
-
-/**
-* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop.
-* @method syncPosition
-*/
-YAHOO.widget.Overlay.prototype.syncPosition = function() {
- var pos = YAHOO.util.Dom.getXY(this.element);
- this.cfg.setProperty("x", pos[0], true);
- this.cfg.setProperty("y", pos[1], true);
- this.cfg.setProperty("xy", pos, true);
-};
-
-/**
-* Event handler fired when the resize monitor element is resized.
-* @method onDomResize
-* @param {DOMEvent} e The resize DOM event
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) {
- YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj);
- var me = this;
- setTimeout(function() {
- me.syncPosition();
- me.cfg.refireEvent("iframe");
- me.cfg.refireEvent("context");
- }, 0);
-};
-
-/**
-* Removes the Overlay element from the DOM and sets all child elements to null.
-* @method destroy
-*/
-YAHOO.widget.Overlay.prototype.destroy = function() {
- if (this.iframe) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
-
- this.iframe = null;
-
- YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
- YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
-
- YAHOO.widget.Overlay.superclass.destroy.call(this);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Overlay.
-*/
-YAHOO.widget.Overlay.prototype.toString = function() {
- return "Overlay " + this.id;
-};
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window scroll
-* @event YAHOO.widget.Overlay.windowScrollEvent
-*/
-YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll");
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window resize
-* @event YAHOO.widget.Overlay.windowResizeEvent
-*/
-YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize");
-
-/**
-* The DOM event handler used to fire the CustomEvent for window scroll
-* @method YAHOO.widget.Overlay.windowScrollHandler
-* @static
-* @param {DOMEvent} e The DOM scroll event
-*/
-YAHOO.widget.Overlay.windowScrollHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.scrollEnd) {
- window.scrollEnd = -1;
- }
- clearTimeout(window.scrollEnd);
- window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1);
- } else {
- YAHOO.widget.Overlay.windowScrollEvent.fire();
- }
-};
-
-/**
-* The DOM event handler used to fire the CustomEvent for window resize
-* @method YAHOO.widget.Overlay.windowResizeHandler
-* @static
-* @param {DOMEvent} e The DOM resize event
-*/
-YAHOO.widget.Overlay.windowResizeHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.resizeEnd) {
- window.resizeEnd = -1;
- }
- clearTimeout(window.resizeEnd);
- window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100);
- } else {
- YAHOO.widget.Overlay.windowResizeEvent.fire();
- }
-};
-
-/**
-* A boolean that indicated whether the window resize and scroll events have already been subscribed to.
-* @property YAHOO.widget.Overlay._initialized
-* @private
-* @type Boolean
-*/
-YAHOO.widget.Overlay._initialized = null;
-
-if (YAHOO.widget.Overlay._initialized === null) {
- YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler);
- YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler);
-
- YAHOO.widget.Overlay._initialized = true;
-}
-
-/**
-* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget
-* @namespace YAHOO.widget
-* @class OverlayManager
-* @constructor
-* @param {Array} overlays Optional. A collection of Overlays to register with the manager.
-* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
-*/
-YAHOO.widget.OverlayManager = function(userConfig) {
- this.init(userConfig);
-};
-
-/**
-* The CSS class representing a focused Overlay
-* @property YAHOO.widget.OverlayManager.CSS_FOCUSED
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused";
-
-YAHOO.widget.OverlayManager.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.OverlayManager,
-
- /**
- * The array of Overlays that are currently registered
- * @property overlays
- * @type YAHOO.widget.Overlay[]
- */
- overlays : null,
-
- /**
- * Initializes the default configuration of the OverlayManager
- * @method initDefaultConfig
- */
- initDefaultConfig : function() {
- /**
- * The collection of registered Overlays in use by the OverlayManager
- * @config overlays
- * @type YAHOO.widget.Overlay[]
- * @default null
- */
- this.cfg.addProperty("overlays", { suppressEvent:true } );
-
- /**
- * The default DOM event that should be used to focus an Overlay
- * @config focusevent
- * @type String
- * @default "mousedown"
- */
- this.cfg.addProperty("focusevent", { value:"mousedown" } );
- },
-
- /**
- * Initializes the OverlayManager
- * @method init
- * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager.
- * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
- */
- init : function(userConfig) {
- /**
- * The OverlayManager's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- this.initDefaultConfig();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
- this.cfg.fireQueue();
-
- /**
- * The currently activated Overlay
- * @property activeOverlay
- * @private
- * @type YAHOO.widget.Overlay
- */
- var activeOverlay = null;
-
- /**
- * Returns the currently focused Overlay
- * @method getActive
- * @return {YAHOO.widget.Overlay} The currently focused Overlay
- */
- this.getActive = function() {
- return activeOverlay;
- };
-
- /**
- * Focuses the specified Overlay
- * @method focus
- * @param {YAHOO.widget.Overlay} overlay The Overlay to focus
- * @param {String} overlay The id of the Overlay to focus
- */
- this.focus = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- this.blurAll();
- activeOverlay = o;
- YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED);
- this.overlays.sort(this.compareZIndexDesc);
- var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex");
- if (! isNaN(topZIndex) && this.overlays[0] != overlay) {
- activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2));
- }
- this.overlays.sort(this.compareZIndexDesc);
- }
- };
-
- /**
- * Removes the specified Overlay from the manager
- * @method remove
- * @param {YAHOO.widget.Overlay} overlay The Overlay to remove
- * @param {String} overlay The id of the Overlay to remove
- */
- this.remove = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex");
- o.cfg.setProperty("zIndex", -1000, true);
- this.overlays.sort(this.compareZIndexDesc);
- this.overlays = this.overlays.slice(0, this.overlays.length-1);
- o.cfg.setProperty("zIndex", originalZ, true);
-
- o.cfg.setProperty("manager", null);
- o.focusEvent = null;
- o.blurEvent = null;
- o.focus = null;
- o.blur = null;
- }
- };
-
- /**
- * Removes focus from all registered Overlays in the manager
- * @method blurAll
- */
- this.blurAll = function() {
- activeOverlay = null;
- for (var o=0;o 0) {
- return true;
- }
- } else {
- return false;
- }
- },
-
- /**
- * Attempts to locate an Overlay by instance or ID.
- * @method find
- * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager
- * @param {String} overlay An Overlay id to locate within the manager
- * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located.
- */
- find : function(overlay) {
- if (overlay instanceof YAHOO.widget.Overlay) {
- for (var o=0;o zIndex2) {
- return -1;
- } else if (zIndex1 < zIndex2) {
- return 1;
- } else {
- return 0;
- }
- },
-
- /**
- * Shows all Overlays in the manager.
- * @method showAll
- */
- showAll : function() {
- for (var o=0;orightConstraint){x=rightConstraint;}
-if(ybottomConstraint){y=bottomConstraint;}
-this.cfg.setProperty("x",x,true);this.cfg.setProperty("y",y,true);this.cfg.setProperty("xy",[x,y],true);};YAHOO.widget.Overlay.prototype.center=function(){var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;var viewPortWidth=YAHOO.util.Dom.getClientWidth();var viewPortHeight=YAHOO.util.Dom.getClientHeight();var elementWidth=this.element.offsetWidth;var elementHeight=this.element.offsetHeight;var x=(viewPortWidth/2)-(elementWidth/2)+scrollX;var y=(viewPortHeight/2)-(elementHeight/2)+scrollY;this.cfg.setProperty("xy",[parseInt(x,10),parseInt(y,10)]);this.cfg.refireEvent("iframe");};YAHOO.widget.Overlay.prototype.syncPosition=function(){var pos=YAHOO.util.Dom.getXY(this.element);this.cfg.setProperty("x",pos[0],true);this.cfg.setProperty("y",pos[1],true);this.cfg.setProperty("xy",pos,true);};YAHOO.widget.Overlay.prototype.onDomResize=function(e,obj){YAHOO.widget.Overlay.superclass.onDomResize.call(this,e,obj);var me=this;setTimeout(function(){me.syncPosition();me.cfg.refireEvent("iframe");me.cfg.refireEvent("context");},0);};YAHOO.widget.Overlay.prototype.destroy=function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}
-this.iframe=null;YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);YAHOO.widget.Overlay.superclass.destroy.call(this);};YAHOO.widget.Overlay.prototype.toString=function(){return"Overlay "+this.id;};YAHOO.widget.Overlay.windowScrollEvent=new YAHOO.util.CustomEvent("windowScroll");YAHOO.widget.Overlay.windowResizeEvent=new YAHOO.util.CustomEvent("windowResize");YAHOO.widget.Overlay.windowScrollHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.scrollEnd){window.scrollEnd=-1;}
-clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){YAHOO.widget.Overlay.windowScrollEvent.fire();},1);}else{YAHOO.widget.Overlay.windowScrollEvent.fire();}};YAHOO.widget.Overlay.windowResizeHandler=function(e){if(YAHOO.widget.Module.prototype.browser=="ie"||YAHOO.widget.Module.prototype.browser=="ie7"){if(!window.resizeEnd){window.resizeEnd=-1;}
-clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){YAHOO.widget.Overlay.windowResizeEvent.fire();},100);}else{YAHOO.widget.Overlay.windowResizeEvent.fire();}};YAHOO.widget.Overlay._initialized=null;if(YAHOO.widget.Overlay._initialized===null){YAHOO.util.Event.addListener(window,"scroll",YAHOO.widget.Overlay.windowScrollHandler);YAHOO.util.Event.addListener(window,"resize",YAHOO.widget.Overlay.windowResizeHandler);YAHOO.widget.Overlay._initialized=true;}
-YAHOO.widget.OverlayManager=function(userConfig){this.init(userConfig);};YAHOO.widget.OverlayManager.CSS_FOCUSED="focused";YAHOO.widget.OverlayManager.prototype={constructor:YAHOO.widget.OverlayManager,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(userConfig){this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();if(userConfig){this.cfg.applyConfig(userConfig,true);}
-this.cfg.fireQueue();var activeOverlay=null;this.getActive=function(){return activeOverlay;};this.focus=function(overlay){var o=this.find(overlay);if(o){this.blurAll();activeOverlay=o;YAHOO.util.Dom.addClass(activeOverlay.element,YAHOO.widget.OverlayManager.CSS_FOCUSED);this.overlays.sort(this.compareZIndexDesc);var topZIndex=YAHOO.util.Dom.getStyle(this.overlays[0].element,"zIndex");if(!isNaN(topZIndex)&&this.overlays[0]!=overlay){activeOverlay.cfg.setProperty("zIndex",(parseInt(topZIndex,10)+2));}
-this.overlays.sort(this.compareZIndexDesc);}};this.remove=function(overlay){var o=this.find(overlay);if(o){var originalZ=YAHOO.util.Dom.getStyle(o.element,"zIndex");o.cfg.setProperty("zIndex",-1000,true);this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,this.overlays.length-1);o.cfg.setProperty("zIndex",originalZ,true);o.cfg.setProperty("manager",null);o.focusEvent=null;o.blurEvent=null;o.focus=null;o.blur=null;}};this.blurAll=function(){activeOverlay=null;for(var o=0;o0){return true;}}else{return false;}},find:function(overlay){if(overlay instanceof YAHOO.widget.Overlay){for(var o=0;ozIndex2){return-1;}else if(zIndex1OR
-* @param {HTMLElement} el The element representing the Module
-* @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
-*/
-YAHOO.widget.Module = function(el, userConfig) {
- if (el) {
- this.init(el, userConfig);
- } else {
- }
-};
-
-/**
-* Constant representing the prefix path to use for non-secure images
-* @property YAHOO.widget.Module.IMG_ROOT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT = null;
-
-/**
-* Constant representing the prefix path to use for securely served images
-* @property YAHOO.widget.Module.IMG_ROOT_SSL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.IMG_ROOT_SSL = null;
-
-/**
-* Constant for the default CSS class name that represents a Module
-* @property YAHOO.widget.Module.CSS_MODULE
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_MODULE = "module";
-
-/**
-* Constant representing the module header
-* @property YAHOO.widget.Module.CSS_HEADER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_HEADER = "hd";
-
-/**
-* Constant representing the module body
-* @property YAHOO.widget.Module.CSS_BODY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_BODY = "bd";
-
-/**
-* Constant representing the module footer
-* @property YAHOO.widget.Module.CSS_FOOTER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.CSS_FOOTER = "ft";
-
-/**
-* Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size
-* @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
-
-/**
-* Singleton CustomEvent fired when the font size is changed in the browser.
-* Opera's "zoom" functionality currently does not support text size detection.
-* @event YAHOO.widget.Module.textResizeEvent
-*/
-YAHOO.widget.Module.textResizeEvent = new YAHOO.util.CustomEvent("textResize");
-
-YAHOO.widget.Module.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.Module,
-
- /**
- * The main module element that contains the header, body, and footer
- * @property element
- * @type HTMLElement
- */
- element : null,
-
- /**
- * The header element, denoted with CSS class "hd"
- * @property header
- * @type HTMLElement
- */
- header : null,
-
- /**
- * The body element, denoted with CSS class "bd"
- * @property body
- * @type HTMLElement
- */
- body : null,
-
- /**
- * The footer element, denoted with CSS class "ft"
- * @property footer
- * @type HTMLElement
- */
- footer : null,
-
- /**
- * The id of the element
- * @property id
- * @type String
- */
- id : null,
-
- /**
- * The String representing the image root
- * @property imageRoot
- * @type String
- */
- imageRoot : YAHOO.widget.Module.IMG_ROOT,
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- * @method initEvents
- */
- initEvents : function() {
-
- /**
- * CustomEvent fired prior to class initalization.
- * @event beforeInitEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.beforeInitEvent = new YAHOO.util.CustomEvent("beforeInit");
-
- /**
- * CustomEvent fired after class initalization.
- * @event initEvent
- * @param {class} classRef class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)
- */
- this.initEvent = new YAHOO.util.CustomEvent("init");
-
- /**
- * CustomEvent fired when the Module is appended to the DOM
- * @event appendEvent
- */
- this.appendEvent = new YAHOO.util.CustomEvent("append");
-
- /**
- * CustomEvent fired before the Module is rendered
- * @event beforeRenderEvent
- */
- this.beforeRenderEvent = new YAHOO.util.CustomEvent("beforeRender");
-
- /**
- * CustomEvent fired after the Module is rendered
- * @event renderEvent
- */
- this.renderEvent = new YAHOO.util.CustomEvent("render");
-
- /**
- * CustomEvent fired when the header content of the Module is modified
- * @event changeHeaderEvent
- * @param {String/HTMLElement} content String/element representing the new header content
- */
- this.changeHeaderEvent = new YAHOO.util.CustomEvent("changeHeader");
-
- /**
- * CustomEvent fired when the body content of the Module is modified
- * @event changeBodyEvent
- * @param {String/HTMLElement} content String/element representing the new body content
- */
- this.changeBodyEvent = new YAHOO.util.CustomEvent("changeBody");
-
- /**
- * CustomEvent fired when the footer content of the Module is modified
- * @event changeFooterEvent
- * @param {String/HTMLElement} content String/element representing the new footer content
- */
- this.changeFooterEvent = new YAHOO.util.CustomEvent("changeFooter");
-
- /**
- * CustomEvent fired when the content of the Module is modified
- * @event changeContentEvent
- */
- this.changeContentEvent = new YAHOO.util.CustomEvent("changeContent");
-
- /**
- * CustomEvent fired when the Module is destroyed
- * @event destroyEvent
- */
- this.destroyEvent = new YAHOO.util.CustomEvent("destroy");
-
- /**
- * CustomEvent fired before the Module is shown
- * @event beforeShowEvent
- */
- this.beforeShowEvent = new YAHOO.util.CustomEvent("beforeShow");
-
- /**
- * CustomEvent fired after the Module is shown
- * @event showEvent
- */
- this.showEvent = new YAHOO.util.CustomEvent("show");
-
- /**
- * CustomEvent fired before the Module is hidden
- * @event beforeHideEvent
- */
- this.beforeHideEvent = new YAHOO.util.CustomEvent("beforeHide");
-
- /**
- * CustomEvent fired after the Module is hidden
- * @event hideEvent
- */
- this.hideEvent = new YAHOO.util.CustomEvent("hide");
- },
-
- /**
- * String representing the current user-agent platform
- * @property platform
- * @type String
- */
- platform : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
- return "windows";
- } else if (ua.indexOf("macintosh") != -1) {
- return "mac";
- } else {
- return false;
- }
- }(),
-
- /**
- * String representing the current user-agent browser
- * @property browser
- * @type String
- */
- browser : function() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
- return 'opera';
- } else if (ua.indexOf('msie 7')!=-1) { // IE7
- return 'ie7';
- } else if (ua.indexOf('msie') !=-1) { // IE
- return 'ie';
- } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
- return 'safari';
- } else if (ua.indexOf('gecko') != -1) { // Gecko
- return 'gecko';
- } else {
- return false;
- }
- }(),
-
- /**
- * Boolean representing whether or not the current browsing context is secure (https)
- * @property isSecure
- * @type Boolean
- */
- isSecure : function() {
- if (window.location.href.toLowerCase().indexOf("https") === 0) {
- return true;
- } else {
- return false;
- }
- }(),
-
- /**
- * Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
- */
- initDefaultConfig : function() {
- // Add properties //
-
- /**
- * Specifies whether the Module is visible on the page.
- * @config visible
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("visible", { value:true, handler:this.configVisible, validator:this.cfg.checkBoolean } );
-
- /**
- * Object or array of objects representing the ContainerEffect classes that are active for animating the container.
- * @config effect
- * @type Object
- * @default null
- */
- this.cfg.addProperty("effect", { suppressEvent:true, supercedes:["visible"] } );
-
- /**
- * Specifies whether to create a special proxy iframe to monitor for user font resizing in the document
- * @config monitorresize
- * @type Boolean
- * @default true
- */
- this.cfg.addProperty("monitorresize", { value:true, handler:this.configMonitorResize } );
- },
-
- /**
- * The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
- * @method init
- * @param {String} el The element ID representing the Module OR
- * @param {HTMLElement} el The element representing the Module
- * @param {Object} userConfig The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
- */
- init : function(el, userConfig) {
-
- this.initEvents();
-
- this.beforeInitEvent.fire(YAHOO.widget.Module);
-
- /**
- * The Module's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- if (this.isSecure) {
- this.imageRoot = YAHOO.widget.Module.IMG_ROOT_SSL;
- }
-
- if (typeof el == "string") {
- var elId = el;
-
- el = document.getElementById(el);
- if (! el) {
- el = document.createElement("div");
- el.id = elId;
- }
- }
-
- this.element = el;
-
- if (el.id) {
- this.id = el.id;
- }
-
- var childNodes = this.element.childNodes;
-
- if (childNodes) {
- for (var i=0;iOR
- * @param {HTMLElement} headerContent The HTMLElement to append to the header
- */
- setHeader : function(headerContent) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- if (typeof headerContent == "string") {
- this.header.innerHTML = headerContent;
- } else {
- this.header.innerHTML = "";
- this.header.appendChild(headerContent);
- }
-
- this.changeHeaderEvent.fire(headerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the header. If no header is present, one will be automatically created.
- * @method appendToHeader
- * @param {HTMLElement} element The element to append to the header
- */
- appendToHeader : function(element) {
- if (! this.header) {
- this.header = document.createElement("div");
- this.header.className = YAHOO.widget.Module.CSS_HEADER;
- }
-
- this.header.appendChild(element);
- this.changeHeaderEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created.
- * @method setBody
- * @param {String} bodyContent The HTML used to set the body OR
- * @param {HTMLElement} bodyContent The HTMLElement to append to the body
- */
- setBody : function(bodyContent) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- if (typeof bodyContent == "string")
- {
- this.body.innerHTML = bodyContent;
- } else {
- this.body.innerHTML = "";
- this.body.appendChild(bodyContent);
- }
-
- this.changeBodyEvent.fire(bodyContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the body. If no body is present, one will be automatically created.
- * @method appendToBody
- * @param {HTMLElement} element The element to append to the body
- */
- appendToBody : function(element) {
- if (! this.body) {
- this.body = document.createElement("div");
- this.body.className = YAHOO.widget.Module.CSS_BODY;
- }
-
- this.body.appendChild(element);
- this.changeBodyEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method setFooter
- * @param {String} footerContent The HTML used to set the footer OR
- * @param {HTMLElement} footerContent The HTMLElement to append to the footer
- */
- setFooter : function(footerContent) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- if (typeof footerContent == "string") {
- this.footer.innerHTML = footerContent;
- } else {
- this.footer.innerHTML = "";
- this.footer.appendChild(footerContent);
- }
-
- this.changeFooterEvent.fire(footerContent);
- this.changeContentEvent.fire();
- },
-
- /**
- * Appends the passed element to the footer. If no footer is present, one will be automatically created.
- * @method appendToFooter
- * @param {HTMLElement} element The element to append to the footer
- */
- appendToFooter : function(element) {
- if (! this.footer) {
- this.footer = document.createElement("div");
- this.footer.className = YAHOO.widget.Module.CSS_FOOTER;
- }
-
- this.footer.appendChild(element);
- this.changeFooterEvent.fire(element);
- this.changeContentEvent.fire();
- },
-
- /**
- * Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure.
- * @method render
- * @param {String} appendToNode The element id to which the Module should be appended to prior to rendering OR
- * @param {HTMLElement} appendToNode The element to which the Module should be appended to prior to rendering
- * @param {HTMLElement} moduleElement OPTIONAL. The element that represents the actual Standard Module container.
- * @return {Boolean} Success or failure of the render
- */
- render : function(appendToNode, moduleElement) {
- this.beforeRenderEvent.fire();
-
- if (! moduleElement) {
- moduleElement = this.element;
- }
-
- var me = this;
- var appendTo = function(element) {
- if (typeof element == "string") {
- element = document.getElementById(element);
- }
-
- if (element) {
- element.appendChild(me.element);
- me.appendEvent.fire();
- }
- };
-
- if (appendToNode) {
- appendTo(appendToNode);
- } else { // No node was passed in. If the element is not pre-marked up, this fails
- if (! YAHOO.util.Dom.inDocument(this.element)) {
- return false;
- }
- }
-
- // Need to get everything into the DOM if it isn't already
-
- if (this.header && ! YAHOO.util.Dom.inDocument(this.header)) {
- // There is a header, but it's not in the DOM yet... need to add it
- var firstChild = moduleElement.firstChild;
- if (firstChild) { // Insert before first child if exists
- moduleElement.insertBefore(this.header, firstChild);
- } else { // Append to empty body because there are no children
- moduleElement.appendChild(this.header);
- }
- }
-
- if (this.body && ! YAHOO.util.Dom.inDocument(this.body)) {
- // There is a body, but it's not in the DOM yet... need to add it
- if (this.footer && YAHOO.util.Dom.isAncestor(this.moduleElement, this.footer)) { // Insert before footer if exists in DOM
- moduleElement.insertBefore(this.body, this.footer);
- } else { // Append to element because there is no footer
- moduleElement.appendChild(this.body);
- }
- }
-
- if (this.footer && ! YAHOO.util.Dom.inDocument(this.footer)) {
- // There is a footer, but it's not in the DOM yet... need to add it
- moduleElement.appendChild(this.footer);
- }
-
- this.renderEvent.fire();
- return true;
- },
-
- /**
- * Removes the Module element from the DOM and sets all child elements to null.
- * @method destroy
- */
- destroy : function() {
- var parent;
-
- if (this.element) {
- YAHOO.util.Event.purgeElement(this.element, true);
- parent = this.element.parentNode;
- }
- if (parent) {
- parent.removeChild(this.element);
- }
-
- this.element = null;
- this.header = null;
- this.body = null;
- this.footer = null;
-
- for (var e in this) {
- if (e instanceof YAHOO.util.CustomEvent) {
- e.unsubscribeAll();
- }
- }
-
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this);
-
- this.destroyEvent.fire();
- },
-
- /**
- * Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after.
- * @method show
- */
- show : function() {
- this.cfg.setProperty("visible", true);
- },
-
- /**
- * Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after.
- * @method hide
- */
- hide : function() {
- this.cfg.setProperty("visible", false);
- },
-
- // BUILT-IN EVENT HANDLERS FOR MODULE //
-
- /**
- * Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none".
- * This method is responsible for firing showEvent and hideEvent.
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configVisible
- */
- configVisible : function(type, args, obj) {
- var visible = args[0];
- if (visible) {
- this.beforeShowEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "block");
- this.showEvent.fire();
- } else {
- this.beforeHideEvent.fire();
- YAHOO.util.Dom.setStyle(this.element, "display", "none");
- this.hideEvent.fire();
- }
- },
-
- /**
- * Default event handler for the "monitorresize" configuration property
- * @param {String} type The CustomEvent type (usually the property name)
- * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
- * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
- * @method configMonitorResize
- */
- configMonitorResize : function(type, args, obj) {
- var monitor = args[0];
- if (monitor) {
- this.initResizeMonitor();
- } else {
- YAHOO.widget.Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
- this.resizeMonitor = null;
- }
- }
-};
-
-/**
-* Returns a String representation of the Object.
-* @method toString
-* @return {String} The string representation of the Module
-*/
-YAHOO.widget.Module.prototype.toString = function() {
- return "Module " + this.id;
-};
-
-/**
-* Overlay is a Module that is absolutely positioned above the page flow. It has convenience methods for positioning and sizing, as well as options for controlling zIndex and constraining the Overlay's position to the current visible viewport. Overlay also contains a dynamicly generated IFRAME which is placed beneath it for Internet Explorer 6 and 5.x so that it will be properly rendered above SELECT elements.
-* @namespace YAHOO.widget
-* @class Overlay
-* @extends YAHOO.widget.Module
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing 10/23/2006the configuration that should be set for this Overlay. See configuration documentation for more details.
-* @constructor
-*/
-YAHOO.widget.Overlay = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
-};
-
-YAHOO.extend(YAHOO.widget.Overlay, YAHOO.widget.Module);
-
-/**
-* The URL that will be placed in the iframe
-* @property YAHOO.widget.Overlay.IFRAME_SRC
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.IFRAME_SRC = "javascript:false;";
-
-/**
-* Constant representing the top left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_LEFT = "tl";
-
-/**
-* Constant representing the top right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.TOP_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.TOP_RIGHT = "tr";
-
-/**
-* Constant representing the top bottom left corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_LEFT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_LEFT = "bl";
-
-/**
-* Constant representing the bottom right corner of an element, used for configuring the context element alignment
-* @property YAHOO.widget.Overlay.BOTTOM_RIGHT
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.BOTTOM_RIGHT = "br";
-
-/**
-* Constant representing the default CSS class used for an Overlay
-* @property YAHOO.widget.Overlay.CSS_OVERLAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.Overlay.CSS_OVERLAY = "yui-overlay";
-
-/**
-* The Overlay initialization method, which is executed for Overlay and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
-* @method init
-* @param {String} el The element ID representing the Overlay OR
-* @param {HTMLElement} el The element representing the Overlay
-* @param {Object} userConfig The configuration object literal containing the configuration that should be set for this Overlay. See configuration documentation for more details.
-*/
-YAHOO.widget.Overlay.prototype.init = function(el, userConfig) {
- YAHOO.widget.Overlay.superclass.init.call(this, el/*, userConfig*/); // Note that we don't pass the user config in here yet because we only want it executed once, at the lowest subclass level
-
- this.beforeInitEvent.fire(YAHOO.widget.Overlay);
-
- YAHOO.util.Dom.addClass(this.element, YAHOO.widget.Overlay.CSS_OVERLAY);
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
-
- if (this.platform == "mac" && this.browser == "gecko") {
- if (! YAHOO.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)) {
- this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);
- }
- if (! YAHOO.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)) {
- this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);
- }
- }
-
- this.initEvent.fire(YAHOO.widget.Overlay);
-
-};
-
-/**
-* Initializes the custom events for Overlay which are fired automatically at appropriate times by the Overlay class.
-* @method initEvents
-*/
-YAHOO.widget.Overlay.prototype.initEvents = function() {
- YAHOO.widget.Overlay.superclass.initEvents.call(this);
-
- /**
- * CustomEvent fired before the Overlay is moved.
- * @event beforeMoveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.beforeMoveEvent = new YAHOO.util.CustomEvent("beforeMove", this);
-
- /**
- * CustomEvent fired after the Overlay is moved.
- * @event moveEvent
- * @param {Number} x x coordinate
- * @param {Number} y y coordinate
- */
- this.moveEvent = new YAHOO.util.CustomEvent("move", this);
-};
-
-/**
-* Initializes the class's configurable properties which can be changed using the Overlay's Config object (cfg).
-* @method initDefaultConfig
-*/
-YAHOO.widget.Overlay.prototype.initDefaultConfig = function() {
- YAHOO.widget.Overlay.superclass.initDefaultConfig.call(this);
-
- // Add overlay config properties //
-
- /**
- * The absolute x-coordinate position of the Overlay
- * @config x
- * @type Number
- * @default null
- */
- this.cfg.addProperty("x", { handler:this.configX, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The absolute y-coordinate position of the Overlay
- * @config y
- * @type Number
- * @default null
- */
- this.cfg.addProperty("y", { handler:this.configY, validator:this.cfg.checkNumber, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * An array with the absolute x and y positions of the Overlay
- * @config xy
- * @type Number[]
- * @default null
- */
- this.cfg.addProperty("xy",{ handler:this.configXY, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * The array of context arguments for context-sensitive positioning. The format is: [id or element, element corner, context corner]. For example, setting this property to ["img1", "tl", "bl"] would align the Overlay's top left corner to the context element's bottom left corner.
- * @config context
- * @type Array
- * @default null
- */
- this.cfg.addProperty("context", { handler:this.configContext, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * True if the Overlay should be anchored to the center of the viewport.
- * @config fixedcenter
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("fixedcenter", { value:false, handler:this.configFixedCenter, validator:this.cfg.checkBoolean, supercedes:["iframe","visible"] } );
-
- /**
- * CSS width of the Overlay.
- * @config width
- * @type String
- * @default null
- */
- this.cfg.addProperty("width", { handler:this.configWidth, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS height of the Overlay.
- * @config height
- * @type String
- * @default null
- */
- this.cfg.addProperty("height", { handler:this.configHeight, suppressEvent:true, supercedes:["iframe"] } );
-
- /**
- * CSS z-index of the Overlay.
- * @config zIndex
- * @type Number
- * @default null
- */
- this.cfg.addProperty("zIndex", { value:null, handler:this.configzIndex } );
-
- /**
- * True if the Overlay should be prevented from being positioned out of the viewport.
- * @config constraintoviewport
- * @type Boolean
- * @default false
- */
- this.cfg.addProperty("constraintoviewport", { value:false, handler:this.configConstrainToViewport, validator:this.cfg.checkBoolean, supercedes:["iframe","x","y","xy"] } );
-
- /**
- * True if the Overlay should have an IFRAME shim (for correcting the select z-index bug in IE6 and below).
- * @config iframe
- * @type Boolean
- * @default true for IE6 and below, false for all others
- */
- this.cfg.addProperty("iframe", { value:(this.browser == "ie" ? true : false), handler:this.configIframe, validator:this.cfg.checkBoolean, supercedes:["zIndex"] } );
-};
-
-/**
-* Moves the Overlay to the specified position. This function is identical to calling this.cfg.setProperty("xy", [x,y]);
-* @method moveTo
-* @param {Number} x The Overlay's new x position
-* @param {Number} y The Overlay's new y position
-*/
-YAHOO.widget.Overlay.prototype.moveTo = function(x, y) {
- this.cfg.setProperty("xy",[x,y]);
-};
-
-/**
-* Adds a special CSS class to the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method hideMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.hideMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "show-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "hide-scrollbars");
-};
-
-/**
-* Removes a special CSS class from the Overlay when Mac/Gecko is in use, to work around a Gecko bug where
-* scrollbars cannot be hidden. See https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-* @method showMacGeckoScrollbars
-*/
-YAHOO.widget.Overlay.prototype.showMacGeckoScrollbars = function() {
- YAHOO.util.Dom.removeClass(this.element, "hide-scrollbars");
- YAHOO.util.Dom.addClass(this.element, "show-scrollbars");
-};
-
-// BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
-
-/**
-* The default event handler fired when the "visible" property is changed. This method is responsible for firing showEvent and hideEvent.
-* @method configVisible
-* @param {String} type The CustomEvent type (usually the property name)
-* @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
-* @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
-*/
-YAHOO.widget.Overlay.prototype.configVisible = function(type, args, obj) {
- var visible = args[0];
- var currentVis = YAHOO.util.Dom.getStyle(this.element, "visibility");
-
- if (currentVis == "inherit") {
- var e = this.element.parentNode;
- while (e.nodeType != 9 && e.nodeType != 11) {
- currentVis = YAHOO.util.Dom.getStyle(e, "visibility");
- if (currentVis != "inherit") { break; }
- e = e.parentNode;
- }
- if (currentVis == "inherit") {
- currentVis = "visible";
- }
- }
-
- var effect = this.cfg.getProperty("effect");
-
- var effectInstances = [];
- if (effect) {
- if (effect instanceof Array) {
- for (var i=0;i rightConstraint) {
- x = rightConstraint;
- }
-
- if (y < topConstraint) {
- y = topConstraint;
- } else if (y > bottomConstraint) {
- y = bottomConstraint;
- }
-
- this.cfg.setProperty("x", x, true);
- this.cfg.setProperty("y", y, true);
- this.cfg.setProperty("xy", [x,y], true);
-};
-
-/**
-* Centers the container in the viewport.
-* @method center
-*/
-YAHOO.widget.Overlay.prototype.center = function() {
- var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
- var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
-
- var viewPortWidth = YAHOO.util.Dom.getClientWidth();
- var viewPortHeight = YAHOO.util.Dom.getClientHeight();
-
- var elementWidth = this.element.offsetWidth;
- var elementHeight = this.element.offsetHeight;
-
- var x = (viewPortWidth / 2) - (elementWidth / 2) + scrollX;
- var y = (viewPortHeight / 2) - (elementHeight / 2) + scrollY;
-
- this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
-
- this.cfg.refireEvent("iframe");
-};
-
-/**
-* Synchronizes the Panel's "xy", "x", and "y" properties with the Panel's position in the DOM. This is primarily used to update position information during drag & drop.
-* @method syncPosition
-*/
-YAHOO.widget.Overlay.prototype.syncPosition = function() {
- var pos = YAHOO.util.Dom.getXY(this.element);
- this.cfg.setProperty("x", pos[0], true);
- this.cfg.setProperty("y", pos[1], true);
- this.cfg.setProperty("xy", pos, true);
-};
-
-/**
-* Event handler fired when the resize monitor element is resized.
-* @method onDomResize
-* @param {DOMEvent} e The resize DOM event
-* @param {Object} obj The scope object
-*/
-YAHOO.widget.Overlay.prototype.onDomResize = function(e, obj) {
- YAHOO.widget.Overlay.superclass.onDomResize.call(this, e, obj);
- var me = this;
- setTimeout(function() {
- me.syncPosition();
- me.cfg.refireEvent("iframe");
- me.cfg.refireEvent("context");
- }, 0);
-};
-
-/**
-* Removes the Overlay element from the DOM and sets all child elements to null.
-* @method destroy
-*/
-YAHOO.widget.Overlay.prototype.destroy = function() {
- if (this.iframe) {
- this.iframe.parentNode.removeChild(this.iframe);
- }
-
- this.iframe = null;
-
- YAHOO.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
- YAHOO.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
-
- YAHOO.widget.Overlay.superclass.destroy.call(this);
-};
-
-/**
-* Returns a String representation of the object.
-* @method toString
-* @return {String} The string representation of the Overlay.
-*/
-YAHOO.widget.Overlay.prototype.toString = function() {
- return "Overlay " + this.id;
-};
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window scroll
-* @event YAHOO.widget.Overlay.windowScrollEvent
-*/
-YAHOO.widget.Overlay.windowScrollEvent = new YAHOO.util.CustomEvent("windowScroll");
-
-/**
-* A singleton CustomEvent used for reacting to the DOM event for window resize
-* @event YAHOO.widget.Overlay.windowResizeEvent
-*/
-YAHOO.widget.Overlay.windowResizeEvent = new YAHOO.util.CustomEvent("windowResize");
-
-/**
-* The DOM event handler used to fire the CustomEvent for window scroll
-* @method YAHOO.widget.Overlay.windowScrollHandler
-* @static
-* @param {DOMEvent} e The DOM scroll event
-*/
-YAHOO.widget.Overlay.windowScrollHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.scrollEnd) {
- window.scrollEnd = -1;
- }
- clearTimeout(window.scrollEnd);
- window.scrollEnd = setTimeout(function() { YAHOO.widget.Overlay.windowScrollEvent.fire(); }, 1);
- } else {
- YAHOO.widget.Overlay.windowScrollEvent.fire();
- }
-};
-
-/**
-* The DOM event handler used to fire the CustomEvent for window resize
-* @method YAHOO.widget.Overlay.windowResizeHandler
-* @static
-* @param {DOMEvent} e The DOM resize event
-*/
-YAHOO.widget.Overlay.windowResizeHandler = function(e) {
- if (YAHOO.widget.Module.prototype.browser == "ie" || YAHOO.widget.Module.prototype.browser == "ie7") {
- if (! window.resizeEnd) {
- window.resizeEnd = -1;
- }
- clearTimeout(window.resizeEnd);
- window.resizeEnd = setTimeout(function() { YAHOO.widget.Overlay.windowResizeEvent.fire(); }, 100);
- } else {
- YAHOO.widget.Overlay.windowResizeEvent.fire();
- }
-};
-
-/**
-* A boolean that indicated whether the window resize and scroll events have already been subscribed to.
-* @property YAHOO.widget.Overlay._initialized
-* @private
-* @type Boolean
-*/
-YAHOO.widget.Overlay._initialized = null;
-
-if (YAHOO.widget.Overlay._initialized === null) {
- YAHOO.util.Event.addListener(window, "scroll", YAHOO.widget.Overlay.windowScrollHandler);
- YAHOO.util.Event.addListener(window, "resize", YAHOO.widget.Overlay.windowResizeHandler);
-
- YAHOO.widget.Overlay._initialized = true;
-}
-
-/**
-* OverlayManager is used for maintaining the focus status of multiple Overlays.* @namespace YAHOO.widget
-* @namespace YAHOO.widget
-* @class OverlayManager
-* @constructor
-* @param {Array} overlays Optional. A collection of Overlays to register with the manager.
-* @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
-*/
-YAHOO.widget.OverlayManager = function(userConfig) {
- this.init(userConfig);
-};
-
-/**
-* The CSS class representing a focused Overlay
-* @property YAHOO.widget.OverlayManager.CSS_FOCUSED
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.OverlayManager.CSS_FOCUSED = "focused";
-
-YAHOO.widget.OverlayManager.prototype = {
- /**
- * The class's constructor function
- * @property contructor
- * @type Function
- */
- constructor : YAHOO.widget.OverlayManager,
-
- /**
- * The array of Overlays that are currently registered
- * @property overlays
- * @type YAHOO.widget.Overlay[]
- */
- overlays : null,
-
- /**
- * Initializes the default configuration of the OverlayManager
- * @method initDefaultConfig
- */
- initDefaultConfig : function() {
- /**
- * The collection of registered Overlays in use by the OverlayManager
- * @config overlays
- * @type YAHOO.widget.Overlay[]
- * @default null
- */
- this.cfg.addProperty("overlays", { suppressEvent:true } );
-
- /**
- * The default DOM event that should be used to focus an Overlay
- * @config focusevent
- * @type String
- * @default "mousedown"
- */
- this.cfg.addProperty("focusevent", { value:"mousedown" } );
- },
-
- /**
- * Initializes the OverlayManager
- * @method init
- * @param {YAHOO.widget.Overlay[]} overlays Optional. A collection of Overlays to register with the manager.
- * @param {Object} userConfig The object literal representing the user configuration of the OverlayManager
- */
- init : function(userConfig) {
- /**
- * The OverlayManager's Config object used for monitoring configuration properties.
- * @property cfg
- * @type YAHOO.util.Config
- */
- this.cfg = new YAHOO.util.Config(this);
-
- this.initDefaultConfig();
-
- if (userConfig) {
- this.cfg.applyConfig(userConfig, true);
- }
- this.cfg.fireQueue();
-
- /**
- * The currently activated Overlay
- * @property activeOverlay
- * @private
- * @type YAHOO.widget.Overlay
- */
- var activeOverlay = null;
-
- /**
- * Returns the currently focused Overlay
- * @method getActive
- * @return {YAHOO.widget.Overlay} The currently focused Overlay
- */
- this.getActive = function() {
- return activeOverlay;
- };
-
- /**
- * Focuses the specified Overlay
- * @method focus
- * @param {YAHOO.widget.Overlay} overlay The Overlay to focus
- * @param {String} overlay The id of the Overlay to focus
- */
- this.focus = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- this.blurAll();
- activeOverlay = o;
- YAHOO.util.Dom.addClass(activeOverlay.element, YAHOO.widget.OverlayManager.CSS_FOCUSED);
- this.overlays.sort(this.compareZIndexDesc);
- var topZIndex = YAHOO.util.Dom.getStyle(this.overlays[0].element, "zIndex");
- if (! isNaN(topZIndex) && this.overlays[0] != overlay) {
- activeOverlay.cfg.setProperty("zIndex", (parseInt(topZIndex, 10) + 2));
- }
- this.overlays.sort(this.compareZIndexDesc);
- }
- };
-
- /**
- * Removes the specified Overlay from the manager
- * @method remove
- * @param {YAHOO.widget.Overlay} overlay The Overlay to remove
- * @param {String} overlay The id of the Overlay to remove
- */
- this.remove = function(overlay) {
- var o = this.find(overlay);
- if (o) {
- var originalZ = YAHOO.util.Dom.getStyle(o.element, "zIndex");
- o.cfg.setProperty("zIndex", -1000, true);
- this.overlays.sort(this.compareZIndexDesc);
- this.overlays = this.overlays.slice(0, this.overlays.length-1);
- o.cfg.setProperty("zIndex", originalZ, true);
-
- o.cfg.setProperty("manager", null);
- o.focusEvent = null;
- o.blurEvent = null;
- o.focus = null;
- o.blur = null;
- }
- };
-
- /**
- * Removes focus from all registered Overlays in the manager
- * @method blurAll
- */
- this.blurAll = function() {
- activeOverlay = null;
- for (var o=0;o 0) {
- return true;
- }
- } else {
- return false;
- }
- },
-
- /**
- * Attempts to locate an Overlay by instance or ID.
- * @method find
- * @param {YAHOO.widget.Overlay} overlay An Overlay to locate within the manager
- * @param {String} overlay An Overlay id to locate within the manager
- * @return {YAHOO.widget.Overlay} The requested Overlay, if found, or null if it cannot be located.
- */
- find : function(overlay) {
- if (overlay instanceof YAHOO.widget.Overlay) {
- for (var o=0;o zIndex2) {
- return -1;
- } else if (zIndex1 < zIndex2) {
- return 1;
- } else {
- return 0;
- }
- },
-
- /**
- * Shows all Overlays in the manager.
- * @method showAll
- */
- showAll : function() {
- for (var o=0;o 0 && !this._aCache) {
- this._aCache = [];
- YAHOO.log("Cache initialized","info",this.toString());
- }
-
- this._sName = "instance" + YAHOO.util.DataSource._nIndex;
- YAHOO.util.DataSource._nIndex++;
- YAHOO.log("DataSource initialized", "info", this.toString());
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Custom Events
- //
- /////////////////////////////////////////////////////////////////////////////
-
- /**
- * Fired when a request is made to the local cache.
- *
- * @event cacheRequestEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("cacheRequestEvent");
-
- /**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResponseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("cacheResponseEvent");
-
- /**
- * Fired when a request is sent to the live data source.
- *
- * @event requestEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("requestEvent");
-
- /**
- * Fired when live data source sends response.
- *
- * @event parseResponseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The raw response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseEvent");
-
- /**
- * Fired when response is parsed.
- *
- * @event responseParseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The parsed response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseParseEvent");
-
- /**
- * Fired when response is cached.
- *
- * @event responseCacheEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The parsed response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseCacheEvent");
- /**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- * @param oArgs.message {String} The error message.
- */
- this.createEvent("dataErrorEvent");
-
- /**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- */
- this.createEvent("cacheFlushEvent");
-};
-
-YAHOO.augment(YAHOO.util.DataSource, YAHOO.util.EventProvider);
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Type is unknown.
- *
- * @property TYPE_UNKNOWN
- * @type Number
- * @final
- * @default -1
- */
-YAHOO.util.DataSource.TYPE_UNKNOWN = -1;
-
-/**
- * Type is a JavaScript Array.
- *
- * @property TYPE_JSARRAY
- * @type Number
- * @final
- * @default 0
- */
-YAHOO.util.DataSource.TYPE_JSARRAY = 0;
-
-/**
- * Type is a JavaScript Function.
- *
- * @property TYPE_JSFUNCTIOn
- * @type Number
- * @final
- * @default 1
- */
-YAHOO.util.DataSource.TYPE_JSFUNCTION = 1;
-
-/**
- * Type is hosted on a server via an XHR connection.
- *
- * @property TYPE_XHR
- * @type Number
- * @final
- * @default 2
- */
-YAHOO.util.DataSource.TYPE_XHR = 2;
-
-/**
- * Type is JSON.
- *
- * @property TYPE_JSON
- * @type Number
- * @final
- * @default 3
- */
-YAHOO.util.DataSource.TYPE_JSON = 3;
-
-/**
- * Type is XML.
- *
- * @property TYPE_XML
- * @type Number
- * @final
- * @default 4
- */
-YAHOO.util.DataSource.TYPE_XML = 4;
-
-/**
- * Type is plain text.
- *
- * @property TYPE_TEXT
- * @type Number
- * @final
- * @default 5
- */
-YAHOO.util.DataSource.TYPE_TEXT = 5;
-/**
- * Error message for invalid data responses.
- *
- * @property ERROR_DATAINVALID
- * @type String
- * @final
- * @default "Invalid data"
- */
-YAHOO.util.DataSource.ERROR_DATAINVALID = "Invalid data";
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @final
- * @default "Null data"
- */
-YAHOO.util.DataSource.ERROR_DATANULL = "Null data";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- */
-YAHOO.util.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.util.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.util.DataSource.prototype._aCache = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache. Set to 0 to turn off caching. Caching is
- * useful to reduce the number of server connections. Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 0
- */
-YAHOO.util.DataSource.prototype.maxCacheEntries = 0;
-
- /**
- * Pointer to live database.
- *
- * @property liveData
- * @type Object
- */
-YAHOO.util.DataSource.prototype.liveData = null;
-
- /**
- * If data is accessed over XHR via Connection Manager, the connection timeout is
- * configurable in milliseconds the XHR connection will wait for a server
- * response. A a value of zero indicates the XHR connection will wait forever.
- * Any value greater than zero will use the Connection utility's Auto-Abort
- * feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.util.DataSource.prototype.connTimeout = null;
-
- /**
- * Alias to YUI Connection Manager. Allows implementers to specify their own
- * subclasses of the YUI Connection Manager utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.util.DataSource.prototype.connMgr = YAHOO.util.Connect || null;
-
-/**
- * Where the live data is held.
- *
- * @property dataType
- * @type Number
- * @default YAHOO.util.DataSource.TYPE_UNKNOWN
- *
- */
-YAHOO.util.DataSource.prototype.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN;
-
-/**
- * Format of response.
- *
- * @property responseType
- * @type Number
- * @default YAHOO.util.DataSource.TYPE_UNKNOWN
- */
-YAHOO.util.DataSource.prototype.responseType = YAHOO.util.DataSource.TYPE_UNKNOWN;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-YAHOO.util.DataSource.prototype.toString = function() {
- return "DataSource " + this._sName;
-};
-
-/**
- * Overridable method passes request to cache and returns cached response if any,
- * refreshing the hit in the cache as the newest item. Returns null if there is
- * no cache hit.
- *
- * @method getCachedResponse
- * @param oRequest {Object} Request object.
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- * @return {Object} Cached response object or null.
- */
-YAHOO.util.DataSource.prototype.getCachedResponse = function(oRequest, oCallback, oCaller) {
- var aCache = this._aCache;
- var nCacheLength = (aCache) ? aCache.length : 0;
- var oResponse = null;
-
- // If cache is enabled...
- if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
- this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
-
- // Loop through each cached element
- for(var i = nCacheLength-1; i >= 0; i--) {
- var oCacheElem = aCache[i];
-
- // Defer cache hit logic to a public overridable method
- if(this.isCacheHit(oRequest,oCacheElem.request)) {
- // Grab the cached response
- oResponse = oCacheElem.response;
- // The cache returned a hit!
- // Remove element from its original location
- aCache.splice(i,1);
- // Add as newest
- this.addToCache(oRequest, oResponse);
- this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});
- break;
- }
- }
- }
- return oResponse;
-};
-
-/**
- * Default overridable method matches given request to given cached request.
- * Returns true if is a hit, returns false otherwise. Implementers should
- * override this method to customize the cache-matching algorithm.
- *
- * @method isCacheHit
- * @param oRequest {Object} Request object.
- * @param oCachedRequest {Object} Cached request object.
- * @return {Boolean} True if given request matches cached request, false otherwise.
- */
-YAHOO.util.DataSource.prototype.isCacheHit = function(oRequest, oCachedRequest) {
- return (oRequest === oCachedRequest);
-};
-
-/**
- * Adds a new item to the cache. If cache is full, evicts the stalest item
- * before adding the new item.
- *
- * @method addToCache
- * @param oRequest {Object} Request object.
- * @param oResponse {Object} Response object to cache.
- */
-YAHOO.util.DataSource.prototype.addToCache = function(oRequest, oResponse) {
- //TODO: check for duplicate entries
- var aCache = this._aCache;
- // Don't add if anything important is missing.
- if(!aCache || !oRequest || !oResponse) {
- return;
- }
-
- // If the cache is full, make room by removing stalest element (index=0)
- while(aCache.length >= this.maxCacheEntries) {
- aCache.shift();
- }
-
- // Add to cache in the newest position, at the end of the array
- var oCacheElem = {request:oRequest,response:oResponse};
- aCache.push(oCacheElem);
- this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});
-
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.util.DataSource.prototype.flushCache = function() {
- if(this._aCache) {
- this._aCache = [];
- }
- this.fireEvent("cacheFlushEvent");
-};
-
-/**
- * First looks for cached response, then sends request to live data.
- *
- * @method sendRequest
- * @param oRequest {Object} Request object
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.sendRequest = function(oRequest, oCallback, oCaller) {
- // First look in cache
- var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller);
- if(oCachedResponse) {
- oCallback.call(oCaller, oRequest, oCachedResponse);
- return;
- }
-
- // Not in cache, so forward request to live data
- this.makeConnection(oRequest, oCallback, oCaller);
-};
-
-/**
- * Overridable method provides default functionality to make a connection to
- * live data in order to send request. The response coming back is then
- * forwarded to the handleResponse function. This method should be customized
- * for more complex implementations.
- *
- * @method makeConnection
- * @param oRequest {Object} Request object.
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.makeConnection = function(oRequest, oCallback, oCaller) {
- this.fireEvent("requestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
- var oRawResponse = null;
-
- // How to make the connection depends on the type of data
- switch(this.dataType) {
-
- // If the live data is a JavaScript Array
- // simply forward the entire array to the handler
- case YAHOO.util.DataSource.TYPE_JSARRAY:
- case YAHOO.util.DataSource.TYPE_JSON:
- oRawResponse = this.liveData;
- this.handleResponse(oRequest, oRawResponse, oCallback, oCaller);
- break;
-
- // If the live data is a JavaScript Function
- // pass the request in as a parameter and
- // forward the return value to the handler
- case YAHOO.util.DataSource.TYPE_JSFUNCTION:
- oRawResponse = this.liveData(oRequest);
- this.handleResponse(oRequest, oRawResponse, oCallback, oCaller);
- break;
-
- // If the live data is over Connection Manager
- // set up the callback object and
- // pass the request in as a URL query and
- // forward the response to the handler
- case YAHOO.util.DataSource.TYPE_XHR:
- /**
- * Connection Manager success handler
- *
- * @method _xhrSuccess
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrSuccess = function(oResponse) {
- // Error if no response
- if(!oResponse) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});
- YAHOO.log(YAHOO.util.DataSource.ERROR_DATANULL, "error", this.toString());
- return null;
- }
- // Error if response ID does not match last made request ID.
- else if(!this._oConn || (oResponse.tId != this._oConn.tId)) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID});
- YAHOO.log(YAHOO.util.DataSource.ERROR_DATAINVALID, "error", this.toString());
- return null;
- }
- // Forward to handler
- else {
- this.handleResponse(oRequest, oResponse, oCallback, oCaller);
- }
- };
-
- /**
- * Connection Manager failure handler
- *
- * @method _xhrFailure
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrFailure = function(oResponse) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR});
- YAHOO.log(this.ERROR_DATAXHR + ": " + oResp.statusText, "error", this.toString());
- return null;
- };
-
- /**
- * Connection Manager callback object
- *
- * @property _xhrCallback
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrCallback = {
- success:_xhrSuccess,
- failure:_xhrFailure,
- scope: this
- };
-
- //TODO: connTimeout config
- if(this.connTimeout && !isNaN(this.connTimeout) && this.connTimeout > 0) {
- _xhrCallback.timeout = this.connTimeout;
- }
-
- //TODO: oConn config
- if(this._oConn && this.connMgr) {
- this.connMgr.abort(this._oConn);
- }
-
- var sUri = this.liveData+"?"+oRequest;
- if(this.connMgr) {
- this._oConn = this.connMgr.asyncRequest("GET", sUri, _xhrCallback, null);
- }
- else {
- YAHOO.log("Could not find a valid Connection Manager","error",this.toString());
- }
-
- break;
- default:
- //TODO: any default?
- break;
- }
-};
-
-/**
- * Handles raw data response from live data source.
- *
- * @method handleResponse
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.handleResponse = function(oRequest, oRawResponse, oCallback, oCaller) {
- this.fireEvent("responseEvent", {request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});
- var xhr = (this.dataType == YAHOO.util.DataSource.TYPE_XHR) ? true : false;
- var oParsedResponse = null;
- //TODO: break out into overridable methods
- switch(this.responseType) {
- case YAHOO.util.DataSource.TYPE_JSARRAY:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseArrayData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_JSON:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseJSONData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_XML:
- if(xhr && oRawResponse.responseXML) {
- oRawResponse = oRawResponse.responseXML;
- }
- oParsedResponse = this.parseXMLData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_TEXT:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseTextData(oRequest, oRawResponse);
- break;
- default:
- //TODO: pass off to custom function
- //var contentType = oRawResponse.getResponseHeader["Content-Type"];
- YAHOO.log("Unknown response type","warn",this.toStrin());
- break;
- }
-
- if(oParsedResponse) {
- this.fireEvent("responseParseEvent", {request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});
- // Cache the response
- this.addToCache(oRequest, oParsedResponse);
- }
- else {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});
- YAHOO.log(YAHOO.util.DataSource.ERROR_DATANULL, "error", this.toString());
- }
-
- // Send the response back to the caller
- oCallback.call(oCaller, oRequest, oParsedResponse);
-};
-
-/**
- * Overridable method parses raw array data into a response object.
- *
- * @method parseArrayData
- * @param oRequest {Object} Request object.
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseArrayData = function(oRequest, oRawResponse) {
- var oParsedResponse = [];
- var fields = this.responseSchema.fields;
- for(var i=oRawResponse.length-1; i>-1; i--) {
- var oResult = {};
- for(var j=fields.length; j>-1; j--) {
- oResult[fields[j]] = oRawResponse[i][j] || oRawResponse[i][fields[j]];
- }
- oParsedResponse.unshift(oResult);
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw plain text data into a response object.
- *
- * @method parseTextData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseTextData = function(oRequest, oRawResponse) {
- var oParsedResponse = [];
- var recDelim = this.responseSchema.recordDelim;
- var fieldDelim = this.responseSchema.fieldDelim;
- var aSchema = this.responseSchema.fields;
- if(oRawResponse.length > 0) {
- // Delete the last line delimiter at the end of the data if it exists
- var newLength = oRawResponse.length-recDelim.length;
- if(oRawResponse.substr(newLength) == recDelim) {
- oRawResponse = oRawResponse.substr(0, newLength);
- }
- // Split along record delimiter to get an array of strings
- var recordsarray = oRawResponse.split(recDelim);
- // Cycle through each record, except the first which contains header info
- for(var i = recordsarray.length-1; i >= 1; i--) {
- var dataobject = {};
- for(var j=aSchema.length-1; j >= 0; j--) {
- // Split along field delimter to get each data value
- var fielddataarray = recordsarray[i].split(fieldDelim);
-
- // Remove quotation marks from edges, if applicable
- var string = fielddataarray[j];
- if(string.charAt(0) == "\"") {
- string = string.substr(1);
- }
- if(string.charAt(string.length-1) == "\"") {
- string = string.substr(0,string.length-1);
- }
- dataobject[aSchema[j]] = string;
- }
- oParsedResponse.push(dataobject);
- }
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw XML data into a response object.
- *
- * @method parseXMLData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseXMLData = function(oRequest, oRawResponse) {
- var bError = false;
- var oParsedResponse = [];
- var xmlList = oRawResponse.getElementsByTagName(this.responseSchema.resultNode);
- if(!xmlList) {
- bError = true;
- }
- // Loop through each result
- else {
- for(var k = xmlList.length-1; k >= 0 ; k--) {
- var result = xmlList.item(k);
- var oResult = {};
- // Loop through each data field in each result using the schema
- for(var m = this.responseSchema.fields.length-1; m >= 0 ; m--) {
- var field = this.responseSchema.fields[m];
- var sValue = null;
- // Values may be held in an attribute...
- var xmlAttr = result.attributes.getNamedItem(field);
- if(xmlAttr) {
- sValue = xmlAttr.value;
- }
- // ...or in a node
- else {
- var xmlNode = result.getElementsByTagName(field);
- if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
- sValue = xmlNode.item(0).firstChild.nodeValue;
- }
- else {
- sValue = "";
- }
- }
- // Capture the schema-mapped data field values into an array
- oResult[field] = sValue;
- }
- // Capture each array of values into an array of results
- oParsedResponse.unshift(oResult);
- }
- }
- if(bError) {
- return null;
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw JSON data into a response object.
- *
- * @method parseJSONData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseJSONData = function(oRequest, oRawResponse) {
- //TODO: validate oRawResponse
- var bError = false;
- var oParsedResponse = [];
- var aSchema = this.responseSchema.fields;
-
- var jsonObj,jsonList;
- if(oRawResponse) {
- // Parse JSON object out if it's a string
- if(oRawResponse.constructor == String) {
- // Check for latest JSON lib but divert KHTML clients
- if(oRawResponse.parseJSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the new JSON utility if available
- jsonObj = oRawResponse.parseJSON();
- if(!jsonObj) {
- bError = true;
- }
- }
- // Check for older JSON lib but divert KHTML clients
- else if(window.JSON && JSON.parse && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the JSON utility if available
- jsonObj = JSON.parse(oRawResponse);
- if(!jsonObj) {
- bError = true;
- }
- }
- // No JSON lib found so parse the string
- else {
- try {
- // Trim leading spaces
- while (oRawResponse.length > 0 &&
- (oRawResponse.charAt(0) != "{") &&
- (oRawResponse.charAt(0) != "[")) {
- oRawResponse = oRawResponse.substring(1, oResponse.length);
- }
-
- if(oRawResponse.length > 0) {
- // Strip extraneous stuff at the end
- var objEnd = Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}"));
- oRawResponse = oRawResponse.substring(0,objEnd+1);
-
- // Turn the string into an object literal...
- // ...eval is necessary here
- jsonObj = eval("(" + oRawResponse + ")");
- if(!jsonObj) {
- bError = true;
- }
-
- }
- }
- catch(e) {
- bError = true;
- }
- }
- }
- // Response must already be a JSON object
- else if(oRawResponse.constructor == Object) {
- jsonObj = oRawResponse;
- }
- // Now that we have a JSON object, parse a jsonList out of it
- if(jsonObj && jsonObj.constructor == Object) {
- try {
- // eval is necessary here since schema can be of unknown depth
- jsonList = eval("jsonObj." + this.responseSchema.resultsList);
- }
- catch(e) {
- bError = true;
- }
- }
- }
- if(bError || !jsonList) {
- // Something went wrong
- return null;
- }
-
- if(jsonList.constructor != Array) {
- jsonList = [jsonList];
- }
-
- // Loop through the array of all responses...
- for(var i = jsonList.length-1; i >= 0 ; i--) {
- var oResult = {};
- var jsonResult = jsonList[i];
- // ...and loop through each data field value of each response
- for(var j = aSchema.length-1; j >= 0 ; j--) {
- // ...and capture data into an array mapped according to the schema...
- var dataFieldValue = jsonResult[aSchema[j]];
- if(!dataFieldValue) {
- dataFieldValue = "";
- }
- //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString());
- oResult[aSchema[j]] = dataFieldValue;
- }
- // Capture the array of data field values in an array of results
- oParsedResponse.unshift(oResult);
- }
- return oParsedResponse;
-};
-
-YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js b/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js
deleted file mode 100644
index 80209a0deb1a856dbaebcd79d5f4f5fdc2ff47f4..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datasource/datasource-beta-min.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.util.DataSource=function(oLiveData,oConfigs){if(typeof oConfigs=="object"){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}}
-if(!oLiveData){return;}
-else{switch(oLiveData.constructor){case Function:this.dataType=YAHOO.util.DataSource.TYPE_JSFUNCTION;break;case Array:this.dataType=YAHOO.util.DataSource.TYPE_JSARRAY;break;case String:this.dataType=YAHOO.util.DataSource.TYPE_XHR;break;case Object:this.dataType=YAHOO.util.DataSource.TYPE_JSON;break;default:this.dataType=YAHOO.util.DataSource.TYPE_UNKNOWN;break;}
-this.liveData=oLiveData;}
-var maxCacheEntries=this.maxCacheEntries;if(isNaN(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;}
-if(maxCacheEntries>0&&!this._aCache){this._aCache=[];}
-this._sName="instance"+YAHOO.util.DataSource._nIndex;YAHOO.util.DataSource._nIndex++;this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");};YAHOO.augment(YAHOO.util.DataSource,YAHOO.util.EventProvider);YAHOO.util.DataSource.TYPE_UNKNOWN=-1;YAHOO.util.DataSource.TYPE_JSARRAY=0;YAHOO.util.DataSource.TYPE_JSFUNCTION=1;YAHOO.util.DataSource.TYPE_XHR=2;YAHOO.util.DataSource.TYPE_JSON=3;YAHOO.util.DataSource.TYPE_XML=4;YAHOO.util.DataSource.TYPE_TEXT=5;YAHOO.util.DataSource.ERROR_DATAINVALID="Invalid data";YAHOO.util.DataSource.ERROR_DATANULL="Null data";YAHOO.util.DataSource._nIndex=0;YAHOO.util.DataSource.prototype._sName=null;YAHOO.util.DataSource.prototype._aCache=null;YAHOO.util.DataSource.prototype.maxCacheEntries=0;YAHOO.util.DataSource.prototype.liveData=null;YAHOO.util.DataSource.prototype.connTimeout=null;YAHOO.util.DataSource.prototype.connMgr=YAHOO.util.Connect||null;YAHOO.util.DataSource.prototype.dataType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.responseType=YAHOO.util.DataSource.TYPE_UNKNOWN;YAHOO.util.DataSource.prototype.toString=function(){return"DataSource "+this._sName;};YAHOO.util.DataSource.prototype.getCachedResponse=function(oRequest,oCallback,oCaller){var aCache=this._aCache;var nCacheLength=(aCache)?aCache.length:0;var oResponse=null;if((this.maxCacheEntries>0)&&aCache&&(nCacheLength>0)){this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;aCache.splice(i,1);this.addToCache(oRequest,oResponse);this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});break;}}}
-return oResponse;};YAHOO.util.DataSource.prototype.isCacheHit=function(oRequest,oCachedRequest){return(oRequest===oCachedRequest);};YAHOO.util.DataSource.prototype.addToCache=function(oRequest,oResponse){var aCache=this._aCache;if(!aCache||!oRequest||!oResponse){return;}
-while(aCache.length>=this.maxCacheEntries){aCache.shift();}
-var oCacheElem={request:oRequest,response:oResponse};aCache.push(oCacheElem);this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});};YAHOO.util.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[];}
-this.fireEvent("cacheFlushEvent");};YAHOO.util.DataSource.prototype.sendRequest=function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){oCallback.call(oCaller,oRequest,oCachedResponse);return;}
-this.makeConnection(oRequest,oCallback,oCaller);};YAHOO.util.DataSource.prototype.makeConnection=function(oRequest,oCallback,oCaller){this.fireEvent("requestEvent",{request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=null;switch(this.dataType){case YAHOO.util.DataSource.TYPE_JSARRAY:case YAHOO.util.DataSource.TYPE_JSON:oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller);break;case YAHOO.util.DataSource.TYPE_JSFUNCTION:oRawResponse=this.liveData(oRequest);this.handleResponse(oRequest,oRawResponse,oCallback,oCaller);break;case YAHOO.util.DataSource.TYPE_XHR:var _xhrSuccess=function(oResponse){if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});return null;}
-else if(!this._oConn||(oResponse.tId!=this._oConn.tId)){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID});return null;}
-else{this.handleResponse(oRequest,oResponse,oCallback,oCaller);}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR});return null;};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(this.connTimeout&&!isNaN(this.connTimeout)&&this.connTimeout>0){_xhrCallback.timeout=this.connTimeout;}
-if(this._oConn&&this.connMgr){this.connMgr.abort(this._oConn);}
-var sUri=this.liveData+"?"+oRequest;if(this.connMgr){this._oConn=this.connMgr.asyncRequest("GET",sUri,_xhrCallback,null);}
-else{}
-break;default:break;}};YAHOO.util.DataSource.prototype.handleResponse=function(oRequest,oRawResponse,oCallback,oCaller){this.fireEvent("responseEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=(this.dataType==YAHOO.util.DataSource.TYPE_XHR)?true:false;var oParsedResponse=null;switch(this.responseType){case YAHOO.util.DataSource.TYPE_JSARRAY:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;}
-oParsedResponse=this.parseArrayData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_JSON:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;}
-oParsedResponse=this.parseJSONData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_XML:if(xhr&&oRawResponse.responseXML){oRawResponse=oRawResponse.responseXML;}
-oParsedResponse=this.parseXMLData(oRequest,oRawResponse);break;case YAHOO.util.DataSource.TYPE_TEXT:if(xhr&&oRawResponse.responseText){oRawResponse=oRawResponse.responseText;}
-oParsedResponse=this.parseTextData(oRequest,oRawResponse);break;default:break;}
-if(oParsedResponse){this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse);}
-else{this.fireEvent("dataErrorEvent",{request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});}
-oCallback.call(oCaller,oRequest,oParsedResponse);};YAHOO.util.DataSource.prototype.parseArrayData=function(oRequest,oRawResponse){var oParsedResponse=[];var fields=this.responseSchema.fields;for(var i=oRawResponse.length-1;i>-1;i--){var oResult={};for(var j=fields.length;j>-1;j--){oResult[fields[j]]=oRawResponse[i][j]||oRawResponse[i][fields[j]];}
-oParsedResponse.unshift(oResult);}
-return oParsedResponse;};YAHOO.util.DataSource.prototype.parseTextData=function(oRequest,oRawResponse){var oParsedResponse=[];var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;var aSchema=this.responseSchema.fields;if(oRawResponse.length>0){var newLength=oRawResponse.length-recDelim.length;if(oRawResponse.substr(newLength)==recDelim){oRawResponse=oRawResponse.substr(0,newLength);}
-var recordsarray=oRawResponse.split(recDelim);for(var i=recordsarray.length-1;i>=1;i--){var dataobject={};for(var j=aSchema.length-1;j>=0;j--){var fielddataarray=recordsarray[i].split(fieldDelim);var string=fielddataarray[j];if(string.charAt(0)=="\""){string=string.substr(1);}
-if(string.charAt(string.length-1)=="\""){string=string.substr(0,string.length-1);}
-dataobject[aSchema[j]]=string;}
-oParsedResponse.push(dataobject);}}
-return oParsedResponse;};YAHOO.util.DataSource.prototype.parseXMLData=function(oRequest,oRawResponse){var bError=false;var oParsedResponse=[];var xmlList=oRawResponse.getElementsByTagName(this.responseSchema.resultNode);if(!xmlList){bError=true;}
-else{for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var oResult={};for(var m=this.responseSchema.fields.length-1;m>=0;m--){var field=this.responseSchema.fields[m];var sValue=null;var xmlAttr=result.attributes.getNamedItem(field);if(xmlAttr){sValue=xmlAttr.value;}
-else{var xmlNode=result.getElementsByTagName(field);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue;}
-else{sValue="";}}
-oResult[field]=sValue;}
-oParsedResponse.unshift(oResult);}}
-if(bError){return null;}
-return oParsedResponse;};YAHOO.util.DataSource.prototype.parseJSONData=function(oRequest,oRawResponse){var bError=false;var oParsedResponse=[];var aSchema=this.responseSchema.fields;var jsonObj,jsonList;if(oRawResponse){if(oRawResponse.constructor==String){if(oRawResponse.parseJSON&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){jsonObj=oRawResponse.parseJSON();if(!jsonObj){bError=true;}}
-else if(window.JSON&&JSON.parse&&(navigator.userAgent.toLowerCase().indexOf('khtml')==-1)){jsonObj=JSON.parse(oRawResponse);if(!jsonObj){bError=true;}}
-else{try{while(oRawResponse.length>0&&(oRawResponse.charAt(0)!="{")&&(oRawResponse.charAt(0)!="[")){oRawResponse=oRawResponse.substring(1,oResponse.length);}
-if(oRawResponse.length>0){var objEnd=Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}"));oRawResponse=oRawResponse.substring(0,objEnd+1);jsonObj=eval("("+oRawResponse+")");if(!jsonObj){bError=true;}}}
-catch(e){bError=true;}}}
-else if(oRawResponse.constructor==Object){jsonObj=oRawResponse;}
-if(jsonObj&&jsonObj.constructor==Object){try{jsonList=eval("jsonObj."+this.responseSchema.resultsList);}
-catch(e){bError=true;}}}
-if(bError||!jsonList){return null;}
-if(jsonList.constructor!=Array){jsonList=[jsonList];}
-for(var i=jsonList.length-1;i>=0;i--){var oResult={};var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=0;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";}
-oResult[aSchema[j]]=dataFieldValue;}
-oParsedResponse.unshift(oResult);}
-return oParsedResponse;};YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js b/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js
deleted file mode 100644
index cf145df1ef8769078e0aa7ac8b4fc527aaff4da0..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datasource/datasource-beta.js
+++ /dev/null
@@ -1,902 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The DataSource utility provides a common configurable interface for widgets
- * to access a variety of data, from JavaScript arrays to online servers over
- * XHR.
- *
- * @module datasource
- * @requires yahoo, event
- * @optional xhr
- * @title DataSource Utility
- * @beta
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The DataSource class defines and manages a live set of data for widgets to
- * interact with. Examples of live databases include in-memory
- * local data such as a JavaScript array, a JavaScript function, or JSON, or
- * remote data such as data retrieved through an XHR connection.
- *
- * @class DataSource
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param oLiveData {Object} Pointer to live database
- * @param oConfigs {Object} (optional) Object literal of configuration values
- */
-YAHOO.util.DataSource = function(oLiveData, oConfigs) {
- // Set any config params passed in to override defaults
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- if (sConfig) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
- }
-
- if(!oLiveData) {
- return;
- }
- else {
- switch(oLiveData.constructor) {
- case Function:
- this.dataType = YAHOO.util.DataSource.TYPE_JSFUNCTION;
- break;
- case Array:
- this.dataType = YAHOO.util.DataSource.TYPE_JSARRAY;
- break;
- case String:
- this.dataType = YAHOO.util.DataSource.TYPE_XHR;
- break;
- case Object:
- this.dataType = YAHOO.util.DataSource.TYPE_JSON;
- break;
- default:
- this.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN;
- break;
- }
- this.liveData = oLiveData;
- }
-
- // Validate and initialize public configs
- var maxCacheEntries = this.maxCacheEntries;
- if(isNaN(maxCacheEntries) || (maxCacheEntries < 0)) {
- maxCacheEntries = 0;
- }
-
- // Initialize local cache
- if(maxCacheEntries > 0 && !this._aCache) {
- this._aCache = [];
- }
-
- this._sName = "instance" + YAHOO.util.DataSource._nIndex;
- YAHOO.util.DataSource._nIndex++;
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Custom Events
- //
- /////////////////////////////////////////////////////////////////////////////
-
- /**
- * Fired when a request is made to the local cache.
- *
- * @event cacheRequestEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("cacheRequestEvent");
-
- /**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResponseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("cacheResponseEvent");
-
- /**
- * Fired when a request is sent to the live data source.
- *
- * @event requestEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("requestEvent");
-
- /**
- * Fired when live data source sends response.
- *
- * @event parseResponseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The raw response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseEvent");
-
- /**
- * Fired when response is parsed.
- *
- * @event responseParseEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The parsed response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseParseEvent");
-
- /**
- * Fired when response is cached.
- *
- * @event responseCacheEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.response {Object} The parsed response object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- */
- this.createEvent("responseCacheEvent");
- /**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oArgs.request {Object} The request object.
- * @param oArgs.callback {Function} The callback function.
- * @param oArgs.caller {Object} The parent object of the callback function.
- * @param oArgs.message {String} The error message.
- */
- this.createEvent("dataErrorEvent");
-
- /**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- */
- this.createEvent("cacheFlushEvent");
-};
-
-YAHOO.augment(YAHOO.util.DataSource, YAHOO.util.EventProvider);
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Type is unknown.
- *
- * @property TYPE_UNKNOWN
- * @type Number
- * @final
- * @default -1
- */
-YAHOO.util.DataSource.TYPE_UNKNOWN = -1;
-
-/**
- * Type is a JavaScript Array.
- *
- * @property TYPE_JSARRAY
- * @type Number
- * @final
- * @default 0
- */
-YAHOO.util.DataSource.TYPE_JSARRAY = 0;
-
-/**
- * Type is a JavaScript Function.
- *
- * @property TYPE_JSFUNCTIOn
- * @type Number
- * @final
- * @default 1
- */
-YAHOO.util.DataSource.TYPE_JSFUNCTION = 1;
-
-/**
- * Type is hosted on a server via an XHR connection.
- *
- * @property TYPE_XHR
- * @type Number
- * @final
- * @default 2
- */
-YAHOO.util.DataSource.TYPE_XHR = 2;
-
-/**
- * Type is JSON.
- *
- * @property TYPE_JSON
- * @type Number
- * @final
- * @default 3
- */
-YAHOO.util.DataSource.TYPE_JSON = 3;
-
-/**
- * Type is XML.
- *
- * @property TYPE_XML
- * @type Number
- * @final
- * @default 4
- */
-YAHOO.util.DataSource.TYPE_XML = 4;
-
-/**
- * Type is plain text.
- *
- * @property TYPE_TEXT
- * @type Number
- * @final
- * @default 5
- */
-YAHOO.util.DataSource.TYPE_TEXT = 5;
-/**
- * Error message for invalid data responses.
- *
- * @property ERROR_DATAINVALID
- * @type String
- * @final
- * @default "Invalid data"
- */
-YAHOO.util.DataSource.ERROR_DATAINVALID = "Invalid data";
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @final
- * @default "Null data"
- */
-YAHOO.util.DataSource.ERROR_DATANULL = "Null data";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- */
-YAHOO.util.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.util.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.util.DataSource.prototype._aCache = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache. Set to 0 to turn off caching. Caching is
- * useful to reduce the number of server connections. Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 0
- */
-YAHOO.util.DataSource.prototype.maxCacheEntries = 0;
-
- /**
- * Pointer to live database.
- *
- * @property liveData
- * @type Object
- */
-YAHOO.util.DataSource.prototype.liveData = null;
-
- /**
- * If data is accessed over XHR via Connection Manager, the connection timeout is
- * configurable in milliseconds the XHR connection will wait for a server
- * response. A a value of zero indicates the XHR connection will wait forever.
- * Any value greater than zero will use the Connection utility's Auto-Abort
- * feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.util.DataSource.prototype.connTimeout = null;
-
- /**
- * Alias to YUI Connection Manager. Allows implementers to specify their own
- * subclasses of the YUI Connection Manager utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.util.DataSource.prototype.connMgr = YAHOO.util.Connect || null;
-
-/**
- * Where the live data is held.
- *
- * @property dataType
- * @type Number
- * @default YAHOO.util.DataSource.TYPE_UNKNOWN
- *
- */
-YAHOO.util.DataSource.prototype.dataType = YAHOO.util.DataSource.TYPE_UNKNOWN;
-
-/**
- * Format of response.
- *
- * @property responseType
- * @type Number
- * @default YAHOO.util.DataSource.TYPE_UNKNOWN
- */
-YAHOO.util.DataSource.prototype.responseType = YAHOO.util.DataSource.TYPE_UNKNOWN;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-YAHOO.util.DataSource.prototype.toString = function() {
- return "DataSource " + this._sName;
-};
-
-/**
- * Overridable method passes request to cache and returns cached response if any,
- * refreshing the hit in the cache as the newest item. Returns null if there is
- * no cache hit.
- *
- * @method getCachedResponse
- * @param oRequest {Object} Request object.
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- * @return {Object} Cached response object or null.
- */
-YAHOO.util.DataSource.prototype.getCachedResponse = function(oRequest, oCallback, oCaller) {
- var aCache = this._aCache;
- var nCacheLength = (aCache) ? aCache.length : 0;
- var oResponse = null;
-
- // If cache is enabled...
- if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
- this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
-
- // Loop through each cached element
- for(var i = nCacheLength-1; i >= 0; i--) {
- var oCacheElem = aCache[i];
-
- // Defer cache hit logic to a public overridable method
- if(this.isCacheHit(oRequest,oCacheElem.request)) {
- // Grab the cached response
- oResponse = oCacheElem.response;
- // The cache returned a hit!
- // Remove element from its original location
- aCache.splice(i,1);
- // Add as newest
- this.addToCache(oRequest, oResponse);
- this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});
- break;
- }
- }
- }
- return oResponse;
-};
-
-/**
- * Default overridable method matches given request to given cached request.
- * Returns true if is a hit, returns false otherwise. Implementers should
- * override this method to customize the cache-matching algorithm.
- *
- * @method isCacheHit
- * @param oRequest {Object} Request object.
- * @param oCachedRequest {Object} Cached request object.
- * @return {Boolean} True if given request matches cached request, false otherwise.
- */
-YAHOO.util.DataSource.prototype.isCacheHit = function(oRequest, oCachedRequest) {
- return (oRequest === oCachedRequest);
-};
-
-/**
- * Adds a new item to the cache. If cache is full, evicts the stalest item
- * before adding the new item.
- *
- * @method addToCache
- * @param oRequest {Object} Request object.
- * @param oResponse {Object} Response object to cache.
- */
-YAHOO.util.DataSource.prototype.addToCache = function(oRequest, oResponse) {
- //TODO: check for duplicate entries
- var aCache = this._aCache;
- // Don't add if anything important is missing.
- if(!aCache || !oRequest || !oResponse) {
- return;
- }
-
- // If the cache is full, make room by removing stalest element (index=0)
- while(aCache.length >= this.maxCacheEntries) {
- aCache.shift();
- }
-
- // Add to cache in the newest position, at the end of the array
- var oCacheElem = {request:oRequest,response:oResponse};
- aCache.push(oCacheElem);
- this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});
-
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.util.DataSource.prototype.flushCache = function() {
- if(this._aCache) {
- this._aCache = [];
- }
- this.fireEvent("cacheFlushEvent");
-};
-
-/**
- * First looks for cached response, then sends request to live data.
- *
- * @method sendRequest
- * @param oRequest {Object} Request object
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.sendRequest = function(oRequest, oCallback, oCaller) {
- // First look in cache
- var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller);
- if(oCachedResponse) {
- oCallback.call(oCaller, oRequest, oCachedResponse);
- return;
- }
-
- // Not in cache, so forward request to live data
- this.makeConnection(oRequest, oCallback, oCaller);
-};
-
-/**
- * Overridable method provides default functionality to make a connection to
- * live data in order to send request. The response coming back is then
- * forwarded to the handleResponse function. This method should be customized
- * for more complex implementations.
- *
- * @method makeConnection
- * @param oRequest {Object} Request object.
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The Calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.makeConnection = function(oRequest, oCallback, oCaller) {
- this.fireEvent("requestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
- var oRawResponse = null;
-
- // How to make the connection depends on the type of data
- switch(this.dataType) {
-
- // If the live data is a JavaScript Array
- // simply forward the entire array to the handler
- case YAHOO.util.DataSource.TYPE_JSARRAY:
- case YAHOO.util.DataSource.TYPE_JSON:
- oRawResponse = this.liveData;
- this.handleResponse(oRequest, oRawResponse, oCallback, oCaller);
- break;
-
- // If the live data is a JavaScript Function
- // pass the request in as a parameter and
- // forward the return value to the handler
- case YAHOO.util.DataSource.TYPE_JSFUNCTION:
- oRawResponse = this.liveData(oRequest);
- this.handleResponse(oRequest, oRawResponse, oCallback, oCaller);
- break;
-
- // If the live data is over Connection Manager
- // set up the callback object and
- // pass the request in as a URL query and
- // forward the response to the handler
- case YAHOO.util.DataSource.TYPE_XHR:
- /**
- * Connection Manager success handler
- *
- * @method _xhrSuccess
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrSuccess = function(oResponse) {
- // Error if no response
- if(!oResponse) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});
- return null;
- }
- // Error if response ID does not match last made request ID.
- else if(!this._oConn || (oResponse.tId != this._oConn.tId)) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAINVALID});
- return null;
- }
- // Forward to handler
- else {
- this.handleResponse(oRequest, oResponse, oCallback, oCaller);
- }
- };
-
- /**
- * Connection Manager failure handler
- *
- * @method _xhrFailure
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrFailure = function(oResponse) {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATAXHR});
- return null;
- };
-
- /**
- * Connection Manager callback object
- *
- * @property _xhrCallback
- * @param oResponse {Object} HTTPXMLRequest object
- * @private
- */
- var _xhrCallback = {
- success:_xhrSuccess,
- failure:_xhrFailure,
- scope: this
- };
-
- //TODO: connTimeout config
- if(this.connTimeout && !isNaN(this.connTimeout) && this.connTimeout > 0) {
- _xhrCallback.timeout = this.connTimeout;
- }
-
- //TODO: oConn config
- if(this._oConn && this.connMgr) {
- this.connMgr.abort(this._oConn);
- }
-
- var sUri = this.liveData+"?"+oRequest;
- if(this.connMgr) {
- this._oConn = this.connMgr.asyncRequest("GET", sUri, _xhrCallback, null);
- }
- else {
- }
-
- break;
- default:
- //TODO: any default?
- break;
- }
-};
-
-/**
- * Handles raw data response from live data source.
- *
- * @method handleResponse
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @param oCallback {Function} Handler function to receive the response
- * @param oCaller {Object} The calling object that is making the request
- */
-YAHOO.util.DataSource.prototype.handleResponse = function(oRequest, oRawResponse, oCallback, oCaller) {
- this.fireEvent("responseEvent", {request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});
- var xhr = (this.dataType == YAHOO.util.DataSource.TYPE_XHR) ? true : false;
- var oParsedResponse = null;
- //TODO: break out into overridable methods
- switch(this.responseType) {
- case YAHOO.util.DataSource.TYPE_JSARRAY:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseArrayData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_JSON:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseJSONData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_XML:
- if(xhr && oRawResponse.responseXML) {
- oRawResponse = oRawResponse.responseXML;
- }
- oParsedResponse = this.parseXMLData(oRequest, oRawResponse);
- break;
- case YAHOO.util.DataSource.TYPE_TEXT:
- if(xhr && oRawResponse.responseText) {
- oRawResponse = oRawResponse.responseText;
- }
- oParsedResponse = this.parseTextData(oRequest, oRawResponse);
- break;
- default:
- //TODO: pass off to custom function
- //var contentType = oRawResponse.getResponseHeader["Content-Type"];
- break;
- }
-
- if(oParsedResponse) {
- this.fireEvent("responseParseEvent", {request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});
- // Cache the response
- this.addToCache(oRequest, oParsedResponse);
- }
- else {
- this.fireEvent("dataErrorEvent", {request:oRequest,callback:oCallback,caller:oCaller,message:YAHOO.util.DataSource.ERROR_DATANULL});
- }
-
- // Send the response back to the caller
- oCallback.call(oCaller, oRequest, oParsedResponse);
-};
-
-/**
- * Overridable method parses raw array data into a response object.
- *
- * @method parseArrayData
- * @param oRequest {Object} Request object.
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseArrayData = function(oRequest, oRawResponse) {
- var oParsedResponse = [];
- var fields = this.responseSchema.fields;
- for(var i=oRawResponse.length-1; i>-1; i--) {
- var oResult = {};
- for(var j=fields.length; j>-1; j--) {
- oResult[fields[j]] = oRawResponse[i][j] || oRawResponse[i][fields[j]];
- }
- oParsedResponse.unshift(oResult);
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw plain text data into a response object.
- *
- * @method parseTextData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseTextData = function(oRequest, oRawResponse) {
- var oParsedResponse = [];
- var recDelim = this.responseSchema.recordDelim;
- var fieldDelim = this.responseSchema.fieldDelim;
- var aSchema = this.responseSchema.fields;
- if(oRawResponse.length > 0) {
- // Delete the last line delimiter at the end of the data if it exists
- var newLength = oRawResponse.length-recDelim.length;
- if(oRawResponse.substr(newLength) == recDelim) {
- oRawResponse = oRawResponse.substr(0, newLength);
- }
- // Split along record delimiter to get an array of strings
- var recordsarray = oRawResponse.split(recDelim);
- // Cycle through each record, except the first which contains header info
- for(var i = recordsarray.length-1; i >= 1; i--) {
- var dataobject = {};
- for(var j=aSchema.length-1; j >= 0; j--) {
- // Split along field delimter to get each data value
- var fielddataarray = recordsarray[i].split(fieldDelim);
-
- // Remove quotation marks from edges, if applicable
- var string = fielddataarray[j];
- if(string.charAt(0) == "\"") {
- string = string.substr(1);
- }
- if(string.charAt(string.length-1) == "\"") {
- string = string.substr(0,string.length-1);
- }
- dataobject[aSchema[j]] = string;
- }
- oParsedResponse.push(dataobject);
- }
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw XML data into a response object.
- *
- * @method parseXMLData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseXMLData = function(oRequest, oRawResponse) {
- var bError = false;
- var oParsedResponse = [];
- var xmlList = oRawResponse.getElementsByTagName(this.responseSchema.resultNode);
- if(!xmlList) {
- bError = true;
- }
- // Loop through each result
- else {
- for(var k = xmlList.length-1; k >= 0 ; k--) {
- var result = xmlList.item(k);
- var oResult = {};
- // Loop through each data field in each result using the schema
- for(var m = this.responseSchema.fields.length-1; m >= 0 ; m--) {
- var field = this.responseSchema.fields[m];
- var sValue = null;
- // Values may be held in an attribute...
- var xmlAttr = result.attributes.getNamedItem(field);
- if(xmlAttr) {
- sValue = xmlAttr.value;
- }
- // ...or in a node
- else {
- var xmlNode = result.getElementsByTagName(field);
- if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
- sValue = xmlNode.item(0).firstChild.nodeValue;
- }
- else {
- sValue = "";
- }
- }
- // Capture the schema-mapped data field values into an array
- oResult[field] = sValue;
- }
- // Capture each array of values into an array of results
- oParsedResponse.unshift(oResult);
- }
- }
- if(bError) {
- return null;
- }
- return oParsedResponse;
-};
-
-/**
- * Overridable method parses raw JSON data into a response object.
- *
- * @method parseJSONData
- * @param oRequest {Object} Request object
- * @param oRawResponse {Object} The raw response from the live database
- * @return {Object} Parsed response object
- */
-YAHOO.util.DataSource.prototype.parseJSONData = function(oRequest, oRawResponse) {
- //TODO: validate oRawResponse
- var bError = false;
- var oParsedResponse = [];
- var aSchema = this.responseSchema.fields;
-
- var jsonObj,jsonList;
- if(oRawResponse) {
- // Parse JSON object out if it's a string
- if(oRawResponse.constructor == String) {
- // Check for latest JSON lib but divert KHTML clients
- if(oRawResponse.parseJSON && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the new JSON utility if available
- jsonObj = oRawResponse.parseJSON();
- if(!jsonObj) {
- bError = true;
- }
- }
- // Check for older JSON lib but divert KHTML clients
- else if(window.JSON && JSON.parse && (navigator.userAgent.toLowerCase().indexOf('khtml')== -1)) {
- // Use the JSON utility if available
- jsonObj = JSON.parse(oRawResponse);
- if(!jsonObj) {
- bError = true;
- }
- }
- // No JSON lib found so parse the string
- else {
- try {
- // Trim leading spaces
- while (oRawResponse.length > 0 &&
- (oRawResponse.charAt(0) != "{") &&
- (oRawResponse.charAt(0) != "[")) {
- oRawResponse = oRawResponse.substring(1, oResponse.length);
- }
-
- if(oRawResponse.length > 0) {
- // Strip extraneous stuff at the end
- var objEnd = Math.max(oRawResponse.lastIndexOf("]"),oRawResponse.lastIndexOf("}"));
- oRawResponse = oRawResponse.substring(0,objEnd+1);
-
- // Turn the string into an object literal...
- // ...eval is necessary here
- jsonObj = eval("(" + oRawResponse + ")");
- if(!jsonObj) {
- bError = true;
- }
-
- }
- }
- catch(e) {
- bError = true;
- }
- }
- }
- // Response must already be a JSON object
- else if(oRawResponse.constructor == Object) {
- jsonObj = oRawResponse;
- }
- // Now that we have a JSON object, parse a jsonList out of it
- if(jsonObj && jsonObj.constructor == Object) {
- try {
- // eval is necessary here since schema can be of unknown depth
- jsonList = eval("jsonObj." + this.responseSchema.resultsList);
- }
- catch(e) {
- bError = true;
- }
- }
- }
- if(bError || !jsonList) {
- // Something went wrong
- return null;
- }
-
- if(jsonList.constructor != Array) {
- jsonList = [jsonList];
- }
-
- // Loop through the array of all responses...
- for(var i = jsonList.length-1; i >= 0 ; i--) {
- var oResult = {};
- var jsonResult = jsonList[i];
- // ...and loop through each data field value of each response
- for(var j = aSchema.length-1; j >= 0 ; j--) {
- // ...and capture data into an array mapped according to the schema...
- var dataFieldValue = jsonResult[aSchema[j]];
- if(!dataFieldValue) {
- dataFieldValue = "";
- }
- oResult[aSchema[j]] = dataFieldValue;
- }
- // Capture the array of data field values in an array of results
- oParsedResponse.unshift(oResult);
- }
- return oParsedResponse;
-};
-
-YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/datatable/README b/interface/ispconfig/interface/js/yui/datatable/README
deleted file mode 100644
index be684ecb790cee92ca4b101b2a5914f4d9a3df60..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datatable/README
+++ /dev/null
@@ -1,9 +0,0 @@
-DataTable Release Notes
-
-*** version 2.2.0 ***
-
-* Beta release.
-
-* Caption is not supported when scrolling is enabled.
-
-* Resizeability is not supported for fixed-width DataTables.
diff --git a/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css b/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css
deleted file mode 100644
index f8695863fc173856cd7176b9e5b550db91a669f8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datatable/assets/datatable.css
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/*debug css
-.example span, .example .yui-dt-columntext {border:1px solid red;}*/
-
-/*foundational css*/
-td {
- overflow:hidden;
-}
-
-.yui-dt-headcontainer {
- position:relative;
-
-}
-
-.yui-dt-headtext {
- position:relative;
- border-right:10px;
-}
-
-.yui-dt-headresizer {
- position:absolute;
- margin-right:-6px;
- right:0;
- bottom:0;
- width:6px;
- height:100%;
- cursor:w-resize;
- cursor:col-resize;
-}
-
-.yui-dt-firstlink,.yui-dt-prevlink,.yui-dt-nextlink,.yui-dt-lastlink,.yui-dt-pagelink {
- cursor:hand;
- cursor:pointer;
- text-decoration:underline;
-}
-
-.yui-dt-scrollable {
- width:20em;
- margin-bottom:3em;
-}
-
-
-.yui-dt-scrollable thead {
- background:#696969; /* IE needs a bgcolor to hide tbody as it scrolls */
- border:1px solid #000;
- display:block; /* enables tbody scrolling for safari and opera */
-}
-
-.yui-dt-scrollable thead th {
- width:10em; /* any value seems to here, just need something */
-}
-
-tbody.yui-dt-scrollable {
- display:block; /* enables tbody scrolling for safari and opera */
- height:10em;
- overflow:auto; /* for scrolling other than IE */
-}
-
-/* IE specific */
-.yui-dt-scrollable {
- height:10em;
- *overflow-y:auto;
-}
-
-.yui-dt-scrollable tbody {
- *height:auto; /* override the non IE height */
-}
-
-.yui-dt-scrollable thead tr {
- position:relative; /* IE cant scroll tbody, so trick it into fixing thead */
-}
-
-.yui-dt-scrollable tbody td {
- width:10em;
-}
-
-
diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js
deleted file mode 100644
index c49963e2a8547471f46e7338c457e18eddde8cb3..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-debug.js
+++ /dev/null
@@ -1,4956 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The DataTable widget provides a progressively enhanced DHTML control for
- * displaying tabular data across A-grade browsers.
- *
- * @module datatable
- * @requires yahoo, dom, event, datasource
- * @optional dragdrop
- * @title DataTable Widget
- * @beta
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * DataTable class for the YUI DataTable widget.
- *
- * @class DataTable
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param oColumnSet {YAHOO.widget.ColumnSet} ColumnSet instance.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.DataTable = function(elContainer,oColumnSet,oDataSource,oConfigs) {
- // Internal vars
- var i;
- this._nIndex = YAHOO.widget.DataTable._nCount;
- this._sName = "instance" + this._nIndex;
- this.id = "yui-dt"+this._nIndex;
-
- // Validate configs
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Validate DataSource
- if(oDataSource) {
- if(oDataSource instanceof YAHOO.util.DataSource) {
- this.dataSource = oDataSource;
- }
- else {
- YAHOO.log("Invalid DataSource", "warn", this.toString());
- }
- }
-
- // Validate ColumnSet
- if(oColumnSet && (oColumnSet instanceof YAHOO.widget.ColumnSet)) {
- this._oColumnSet = oColumnSet;
- }
- else {
- YAHOO.log("Could not instantiate DataTable due to an invalid ColumnSet", "error", this.toString());
- return;
- }
-
- // Create RecordSet
- this._oRecordSet = new YAHOO.widget.RecordSet();
-
- // Validate HTML Element
- elContainer = YAHOO.util.Dom.get(elContainer);
- if(elContainer && elContainer.tagName && (elContainer.tagName.toLowerCase() == "div")) {
- this._elContainer = elContainer;
- // Peek in container child nodes to see if TABLE already exists
- var elTable = null;
- if(elContainer.hasChildNodes()) {
- var children = elContainer.childNodes;
- for(i=0; i" + contentText + "";
- //elHeadContent.innerHTML = contentText;
-
- }
- else {
- elHeadContent.innerHTML = contentText;
- }
-};
-
-/**
- * Add a new row to table body at position i if given, or to the bottom
- * otherwise. Does not fire any events.
- *
- * @method _addRow
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param index {Number} Position at which to add row.
- * @return {String} ID of the added TR element.
- * @private
- */
-YAHOO.widget.DataTable.prototype._addRow = function(oRecord, index) {
- this.hideTableMessages();
-
- // Is this an insert or an append?
- var insert = (isNaN(index)) ? false : true;
- if(!insert) {
- index = this._elBody.rows.length;
- }
-
- var oColumnSet = this._oColumnSet;
- var oRecordSet = this._oRecordSet;
-
- var elRow = (insert && this._elBody.rows[index]) ?
- this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]) :
- this._elBody.appendChild(document.createElement("tr"));
- var recId = oRecord.id;
- elRow.id = this.id+"-bdrow"+index;
- elRow.recordId = recId;
-
- // Create TBODY cells
- for(var j=0; j 0)) {
- //TODO: hideMessages()
- //this._initRows()
- //this.isEmpty = false;
- }
-
- // Striping
- if(!insert) {
- if(index%2) {
- YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_ODD);
- }
- else {
- YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_EVEN);
- }
- }
- else {
- //TODO: pass in a subset for better performance
- this._restripeRows();
- }
-
- return elRow.id;
-};
-
-/**
- * Restripes rows by applying class YAHOO.widget.DataTable.CLASS_EVEN or
- * YAHOO.widget.DataTable.CLASS_ODD.
- *
- * @method _restripeRows
- * @param range {Number} (optional) Range defines a subset of rows to restripe.
- * @private
- */
-YAHOO.widget.DataTable.prototype._restripeRows = function(range) {
- if(!range) {
- var rows = this._elBody.rows;
- for(var i=0; i 0)) {
- if(!e.shiftKey) {
- oSelf.unselectAllRows();
- }
- newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1];
- oSelf.select(newSelected);
- }
- }
- // cell mode
- else if(oldSelected.tagName.toLowerCase() == "td") {
- // We have room to move up
- if((oldSelected.sectionRowIndex > 0)) {
- if(!e.shiftKey) {
- oSelf.unselectAllRows();
- }
- newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1];
- oSelf.select(newSelected);
- }
- }
- // Arrows can cause widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- }
- }
-};
-
-/**
- * Handles keyup events on the TABLE. Executes deletion
- *
- * @method _onKeyup
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onKeyup = function(e, oSelf) {
- var key = YAHOO.util.Event.getCharCode(e);
- // delete
- if(key == 46) {//TODO: && this.isFocused
- //TODO: delete row
- }
-};
-
-/**
- * Handles keyup events on the DOCUMENT. Executes interaction with editor.
- *
- * @method _onDocumentKeyup
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onDocumentKeyup = function(e, oSelf) {
- // esc Clears active editor
- if((e.keyCode == 27) && (oSelf.activeEditor)) {
- oSelf.activeEditor.hide();
- oSelf.activeEditor = null;
-
- // Editor causes widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- }
- // enter Saves active editor data
- if((e.keyCode == 13) && (oSelf.activeEditor)) {
- var elCell = oSelf.activeEditor.cell;
- var oColumn = oSelf.activeEditor.column;
- var oRecord = oSelf.activeEditor.record;
- var oldValue = oRecord[oColumn.key];
- var newValue = oSelf.activeEditor.getValue();
-
- //Update Record
- //TODO: Column.key may be null!
- oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue);
-
- //Update cell
- oSelf.formatCell(elCell);
-
- // Hide editor
- oSelf.activeEditor.hide();
- oSelf.activeEditor = null;
-
- // Editor causes widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue});
- }
-};
-
-/**
- * Handles click events on paginator links.
- *
- * @method _onPagerClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onPagerClick = function(e, oSelf) {
- var elTarget = YAHOO.util.Event.getTarget(e);
- var elTag = elTarget.tagName.toLowerCase();
- var knownTag = false; // True if event should stop propagating
-
- if (elTag != "table") {
- while(!knownTag) {
- switch(elTag) {
- case "body":
- knownTag = true;
- break;
- case "a":
- YAHOO.util.Event.stopEvent(e);
- switch(elTarget.className) {
- case YAHOO.widget.DataTable.CLASS_PAGELINK:
- oSelf.showPage(parseInt(elTarget.innerHTML,10));
- break;
- case YAHOO.widget.DataTable.CLASS_FIRSTLINK:
- oSelf.showPage(1);
- break;
- case YAHOO.widget.DataTable.CLASS_LASTLINK:
- oSelf.showPage(oSelf._totalPages);
- break;
- case YAHOO.widget.DataTable.CLASS_PREVLINK:
- oSelf.showPage(oSelf.pageCurrent-1);
- break;
- case YAHOO.widget.DataTable.CLASS_NEXTLINK:
- oSelf.showPage(oSelf.pageCurrent+1);
- break;
- }
- knownTag = true;
- break;
- default:
- break;
- }
- elTarget = elTarget.parentNode;
- if(elTarget) {
- elTag = elTarget.tagName.toLowerCase();
- }
- else {
- break;
- }
- }
- }
-};
-
-/**
- * Handles change events on paginator SELECT.
- *
- * @method _onPagerSelect
- * @param e {HTMLEvent} The change event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onPagerSelect = function(e, oSelf) {
- var elTarget = YAHOO.util.Event.getTarget(e);
- var elTag = elTarget.tagName.toLowerCase();
-
- // How many rows per page
- var oldRowsPerPage = oSelf.rowsPerPage;
- var rowsPerPage = parseInt(elTarget[elTarget.selectedIndex].text,10);
- if(rowsPerPage && (rowsPerPage != oSelf.rowsPerPage)) {
- if(rowsPerPage > oldRowsPerPage) {
- oSelf.pageCurrent = 1;
- }
- oSelf.rowsPerPage = rowsPerPage;
- oSelf.paginateRows();
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles row delete events.
- *
- * @method _onRowDelete
- * @param oArgs.rowIndexes {Number[]} The indexes of the deleted rows.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onRowDelete = function(oArgs) {
- this._restripeRows();
-};
-
-/**
- * Passes along recordSetUpdate Event when recordUpdateEvent is caught from RecordSet.
- *
- * @event _onRecordUpdate
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.key {String} The Record key.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} New data.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onRecordUpdate = function(oArgs) {
- this.fireEvent("recordSetUpdateEvent",oArgs);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * DataSource instance.
- *
- * @property dataSource
- * @type YAHOO.util.DataSource
- */
-YAHOO.widget.DataTable.prototype.dataSource = null;
-
-/**
- * Initial request to send to DataSource.
- *
- * @property initialRequest
- * @type String
- * @default ""
- */
-YAHOO.widget.DataTable.prototype.initialRequest = "";
-
-/**
- * Defines value of CAPTION attribute.
- *
- * @property caption
- * @type String
- */
-YAHOO.widget.DataTable.prototype.caption = null;
-
-/**
- * Defines value of SUMMARY attribute.
- *
- * @property summary
- * @type String
- */
-YAHOO.widget.DataTable.prototype.summary = null;
-
-/**
- * True if DataTable's width is a fixed size.
- *
- * @property fixedWidth
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.fixedWidth = false;
-
-/**
- * True if TBODY should scroll while THEAD remains fixed.
- *
- * @property scrollable
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.scrollable = false;
-
-/**
- * True if only one row may be selected at a time.
- *
- * @property rowSingleSelect
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.rowSingleSelect = false;
-
-/**
- * ContextMenu instance.
- *
- * @property contextMenu
- * @type YAHOO.widget.ContextMenu
- */
-YAHOO.widget.DataTable.prototype.contextMenu = null;
-
-/**
- * Current page number.
- *
- * @property pageCurrent
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.pageCurrent = 1;
-
-/**
- * Rows per page.
- *
- * @property rowsPerPage
- * @type Number
- * @default 500
- */
-YAHOO.widget.DataTable.prototype.rowsPerPage = 500;
-
-/**
- * Record index of first row of current page.
- *
- * @property startRecordIndex
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.startRecordIndex = 1;
-
-/**
- * Maximum number of pagination page links to show. Any page links beyond this number are
- * available through the "<" and ">" links. A negative value will display all page links.
- *
- * @property pageLinksLength
- * @type Number
- * @default -1
- */
-YAHOO.widget.DataTable.prototype.pageLinksLength = -1;
-
-/**
- * Options to show in the rows-per-page pagination dropdown, should be an array
- * of numbers. Null or an empty array causes no dropdown to be displayed.
- *
- * @property rowsPerPageDropdown
- * @type Number[]
- */
-YAHOO.widget.DataTable.prototype.rowsPerPageDropdown = null;
-
-/**
- * First pagination page link.
- *
- * @property pageLinksStart
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.pageLinksStart = 1;
-
-/**
- * An array of DIV elements into which pagination elements can go.
- *
- * @property pagers
- * @type HTMLElement[]
- */
-YAHOO.widget.DataTable.prototype.pagers = null;
-
-/**
- * True if the DataTable is empty of data. False if DataTable is populated with
- * data from RecordSet.
- *
- * @property isEmpty
- * @type Boolean
- */
-YAHOO.widget.DataTable.prototype.isEmpty = false;
-
-/**
- * Object literal holds sort metadata:
- * sortedBy.colKey
- * sortedBy.dir
- *
- *
- * @property sortedBy
- * @type Object
- */
-YAHOO.widget.DataTable.prototype.sortedBy = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-
-YAHOO.widget.DataTable.prototype.toString = function() {
- return "DataTable " + this._sName;
-};
-
-/**
- * Returns element reference to TABLE.
- *
- * @method getTable
- * @return {HTMLElement} Reference to TABLE element.
- */
-YAHOO.widget.DataTable.prototype.getTable = function() {
- return(this._elTable);
-};
-
-/**
- * Returns element reference to THEAD.
- *
- * @method getHead
- * @return {HTMLElement} Reference to THEAD element.
- */
-YAHOO.widget.DataTable.prototype.getHead = function() {
- return(this._elHead);
-};
-
-/**
- * Returns element reference to TBODY.
- *
- * @method getBody
- * @return {HTMLElement} Reference to TBODY element.
- */
-YAHOO.widget.DataTable.prototype.getBody = function() {
- return(this._elBody);
-};
-
-/**
- * Returns element reference to given TR cell.
- *
- * @method getRow
- * @param index {Number} Row number.
- * @return {HTMLElement} Reference to TR element.
- */
-YAHOO.widget.DataTable.prototype.getRow = function(index) {
- return(this._elBody.rows[index]);
-};
-
-/**
- * Returns element reference to given TD cell.
- *
- * @method getCell
- * @param row {Number} Row number.
- * @param col {Number} Column number.
- * @return {HTMLElement} Reference to TD element.
- */
-YAHOO.widget.DataTable.prototype.getCell = function(row, col) {
- return(this._elBody.rows[row].cells[col]);
-};
-
-/**
- * Placeholder row to indicate table data is empty.
- *
- * @method showEmptyMessage
- */
-YAHOO.widget.DataTable.prototype.showEmptyMessage = function() {
- if(this.isEmpty) {
- return;
- }
- if(this.isLoading) {
- this.hideTableMessages();
- }
-
- this._elMsgBody.style.display = "";
- var elCell = this._elMsgCell;
- elCell.className = YAHOO.widget.DataTable.CLASS_EMPTY;
- elCell.innerHTML = YAHOO.widget.DataTable.MSG_EMPTY;
- this.isEmpty = true;
-};
-
-/**
- * Placeholder row to indicate table data is loading.
- *
- * @method showLoadingMessage
- */
-YAHOO.widget.DataTable.prototype.showLoadingMessage = function() {
- if(this.isLoading) {
- return;
- }
- if(this.isEmpty) {
- this.hideTableMessages();
- }
-
- this._elMsgBody.style.display = "";
- var elCell = this._elMsgCell;
- elCell.className = YAHOO.widget.DataTable.CLASS_LOADING;
- elCell.innerHTML = YAHOO.widget.DataTable.MSG_LOADING;
- this.isLoading = true;
-};
-
-/**
- * Hide any placeholder message row.
- *
- * @method hideTableMessages
- */
-YAHOO.widget.DataTable.prototype.hideTableMessages = function() {
- if(!this.isEmpty && !this.isLoading) {
- return;
- }
-
- this._elMsgBody.style.display = "none";
-
- this.isEmpty = false;
- this.isLoading = false;
-};
-
-/**
- * Sets focus on the TABLE element.
- *
- * @method focusTable
- */
-YAHOO.widget.DataTable.prototype.focusTable = function() {
- var elTable = this._elTable;
- if(!this._bFocused) {
- // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
- // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
- // strange unexpected things as the user clicks on buttons and other controls.
- setTimeout(function() { elTable.focus(); },0);
- this._bFocused = true;
- this.fireEvent("tableFocusEvent");
- }
-};
-
-/**
- * Overridable method gives implementers a hook to access data before
- * it gets added to RecordSet and rendered to the TBODY.
- *
- * @method doBeforeLoadData
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @return {Boolean} Return true to continue loading data into RecordSet and
- * updating DataTable with new Records, false to cancel.
- */
-YAHOO.widget.DataTable.prototype.doBeforeLoadData = function(sRequest, oResponse) {
- return true;
-};
-
-/**
- * Add rows to bottom of table body.
- *
- * @method appendRow
- * @param aRecords {YAHOO.widget.Record[]} Array of Records.
- */
-YAHOO.widget.DataTable.prototype.appendRows = function(aRecords) {
- if(aRecords && aRecords.length > 0) {
- this.hideTableMessages();
-
- var rowIds = [];
- for(var i=0; i 0) {
- this.hideTableMessages();
-
- var rowIds = [];
- for(var i=0; i 0) {
- this.hideTableMessages();
-
- var elBody = this._elBody;
- var elRows = this._elBody.rows;
-
- // Remove extra rows
- while(elBody.hasChildNodes() && (elRows.length > aRecords.length)) {
- elBody.deleteRow(0);
- }
-
- // Unselect rows in the UI but keep tracking selected rows
- var selectedRecords = this.getSelectedRecordIds();
- if(selectedRecords.length > 0) {
- this._unselectAllRows();
- }
-
- var rowIds = [];
- // Format in-place existing rows
- for(i=0; i -1)) {
- tracker.splice(tracker.indexOf(id),1);
- }
- // ...or do it the old-fashioned way
- else {
- for(var j=0; j -1)) {
- tracker.splice(tracker.indexOf(id),1);
- }
- // ...or do it the old-fashioned way
- else {
- for(var j=0; j this._totalPages)) {
- nPage = 1;
- }
- this.pageCurrent = nPage;
- this.paginateRows();
-};
-
-/**
- * If pagination is enabled, paginates all data in RecordSet and renders
- * paginator UI, others renders normal TBODY without any paginator UI.
- *
- * @method paginateRows
- */
-YAHOO.widget.DataTable.prototype.paginateRows = function() {
- var i;
-
- // How many total Records
- var recordsLength = this._oRecordSet.getLength();
-
- // How many rows this page
- var maxRows = (this.rowsPerPage < recordsLength) ?
- this.rowsPerPage : recordsLength;
-
- // How many total pages
- this._totalPages = Math.ceil(recordsLength / maxRows);
-
- // First row of this page
- this.startRecordIndex = (this.pageCurrent-1) * this.rowsPerPage;
-
- // How many page links to display
- var pageLinksLength =
- ((this.pageLinksLength > 0) && (this.pageLinksLength < this._totalPages)) ?
- this.pageLinksLength : this._totalPages;
-
- // First link of this page
- this.pageLinksStart = (Math.ceil(this.pageCurrent/pageLinksLength-1) * pageLinksLength) + 1;
-
- // Show Records for this page
- var pageRecords = this._oRecordSet.getRecords(this.startRecordIndex, this.rowsPerPage);
- this.replaceRows(pageRecords);
-
- if(this.rowsPerPage < recordsLength) {
- // Markup for page links
- var isFirstPage = (this.pageCurrent == 1) ? true : false;
- var isLastPage = (this.pageCurrent == this._totalPages) ? true : false;
- var firstPageLink = (isFirstPage) ?
- " << " :
- " << ";
- var prevPageLink = (isFirstPage) ?
- " < " :
- " < " ;
- var nextPageLink = (isLastPage) ?
- " > " :
- " > " ;
- var lastPageLink = (isLastPage) ?
- " >> " :
- " >> ";
- var markup = firstPageLink + prevPageLink;
- var maxLinks = (this.pageLinksStart+pageLinksLength < this._totalPages) ?
- this.pageLinksStart+pageLinksLength-1 : this._totalPages;
- for(i=this.pageLinksStart; i<=maxLinks; i++) {
- if(i != this.pageCurrent) {
- markup += " " + i + " ";
- }
- else {
- markup += " " + i + " ";
- }
- }
- markup += nextPageLink + lastPageLink;
-
- // Markup for rows-per-page dropdowns
- var dropdown = this.rowsPerPageDropdown;
- var select1, select2;
- if(dropdown && (dropdown.constructor == Array) && (dropdown.length > 0)) {
- select1 = document.createElement("select");
- select1.className = YAHOO.widget.DataTable.CLASS_PAGESELECT;
- select2 = document.createElement("select");
- select2.className = YAHOO.widget.DataTable.CLASS_PAGESELECT;
-
- for(i=0; i nodeLevelMaxChildren) {
- nodeLevelMaxChildren = tmpMax;
- }
- }
- };
- recurseChildren(nodeList);
-
- // Parse each node for attributes and any children
- for(var j=0; j 0) {
- // Children of siblings increase the rowspan of the Column
- oColumn._rowspan += nodeLevelMaxChildren;
- //if(oColumn.key) {
- oColumn._index = keys.length;
- keys.push(oColumn);
- //}
- }
- // This entire node level does not have any children
- else {
- //if(oColumn.key) {
- oColumn._index = keys.length;
- keys.push(oColumn);
- //}
- }
-
- // Add the Column to the top-down tree
- tree[nodelevel].push(oColumn);
- }
- nodelevel--;
- };
-
- // Do the parsing
- if(aHeaders.length > 0) {
- parseColumns(aHeaders);
- }
-
- // Store header nesting in an array
- var recurseAncestors = function(i, oColumn) {
- headers[i].push(oColumn._id);
- if(oColumn._parent) {
- recurseAncestors(i, oColumn._parent);
- }
- };
- for(var i=0; i"+oData.toString()+"" : "";
- classname = YAHOO.widget.DataTable.CLASS_STRING;
- break;
- }
-
- YAHOO.util.Dom.addClass(elCell, classname);
- if(this.className) {
- YAHOO.util.Dom.addClass(elCell, this.className);
- }
- }
-
- if(this.editor) {
- YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_EDITABLE);
- }
-};
-
-
-/**
- * Formats cells in Columns of type "checkbox".
- *
- * @method formatCheckbox
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatCheckbox = function(elCell, oRecord, oColumn, oData) {
- var bChecked = oData;
- bChecked = (bChecked) ? " checked" : "";
- elCell.innerHTML = " ";
-};
-
-/**
- * Formats cells in Columns of type "currency". Can be overridden for custom formatting.
- *
- * @method formatCurrency
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatCurrency = function(elCell, oRecord, oColumn, oData) {
- // Make it dollars
- var nAmount = oData;
- var markup;
- if(nAmount) {
- markup = "$"+nAmount;
-
- // Normalize to the penny
- var dotIndex = markup.indexOf(".");
- if(dotIndex < 0) {
- markup += ".00";
- }
- else {
- while(dotIndex != markup.length-3) {
- markup += "0";
- }
- }
- }
- else {
- markup = "";
- }
- elCell.innerHTML = markup;
-};
-
-/**
- * Formats cells in Columns of type "date".
- *
- * @method formatDate
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatDate = function(elCell, oRecord, oColumn, oData) {
- var oDate = oData;
- if(oDate) {
- elCell.innerHTML = oDate.getMonth() + "/" + oDate.getDate() + "/" + oDate.getFullYear();
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "email".
- *
- * @method formatEmail
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatEmail = function(elCell, oRecord, oColumn, oData) {
- var sEmail = oData;
- if(sEmail) {
- elCell.innerHTML = "" + sEmail + " ";
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "link".
- *
- * @method formatLink
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatLink = function(elCell, oRecord, oColumn, oData) {
- var sLink = oData;
- if(sLink) {
- elCell.innerHTML = "" + sLink + " ";
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "number".
- *
- * @method formatNumber
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatNumber = function(elCell, oRecord, oColumn, oData) {
- var nNumber = oData;
- if(nNumber) {
- elCell.innerHTML = nNumber.toString();
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "select".
- *
- * @method formatSelect
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatSelect = function(elCell, oRecord, oColumn, oData) {
- var selectedValue = oData;
- var options = oColumn.selectOptions;
-
- var markup = "";
- if(options) {
- for(var i=0; i" + option + "";
- }
- }
- else {
- if(selectedValue) {
- markup += "" + selectedValue + " ";
- }
- }
- markup += " ";
- elCell.innerHTML = markup;
-};
-
-/**
- * Takes innerHTML from TD and parses out data for storage in RecordSet.
- *
- * @method parse
- * @param sMarkup {String} The TD's innerHTML value.
- * @return {Object} Data.
- */
-YAHOO.widget.Column.prototype.parse = function(sMarkup) {
- if(this.parser) {
- return this.parser(sMarkup);
- }
- else {
- var data = null;
- switch(this.type) {
- case "checkbox":
- data = YAHOO.widget.Column.parseCheckbox(sMarkup);
- break;
- case "currency":
- data = YAHOO.widget.Column.parseCurrency(sMarkup);
- break;
- case "date":
- data = YAHOO.widget.Column.parseDate(sMarkup);
- break;
- case "number":
- data = YAHOO.widget.Column.parseNumber(sMarkup);
- break;
- case "select":
- data = YAHOO.widget.Column.parseSelect(sMarkup);
- break;
- default:
- if(sMarkup) {
- data = sMarkup;
- }
- break;
- }
- return data;
- }
-};
-
-/**
- * Default parse function for Columns of type "checkbox" takes markup and
- * extracts data. Can be overridden for custom parsing.
- *
- * @method parseCheckbox
- * @param sMarkup
- * @return {bChecked} True if checkbox is checked.
- */
-YAHOO.widget.Column.parseCheckbox = function(sMarkup) {
- return (sMarkup.indexOf("checked") < 0) ? false : true;
-};
-
-/**
- * Default parse function for Columns of type "currency" takes markup and
- * extracts data. Can be overridden for custom parsing.
- *
- * @method parseCurrency
- * @param sMarkup
- * @return {nAmount} Floating point amount.
- */
-YAHOO.widget.Column.parseCurrency = function(sMarkup) {
- return parseFloat(sMarkup.substring(1));
-};
-
-/**
- * Default parse function for Columns of type "date" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseDate
- * @param sMarkup
- * @return {oDate} Date instance.
- */
-YAHOO.widget.Column.parseDate = function(sMarkup) {
- var mm = sMarkup.substring(0,sMarkup.indexOf("/"));
- sMarkup = sMarkup.substring(sMarkup.indexOf("/")+1);
- var dd = sMarkup.substring(0,sMarkup.indexOf("/"));
- var yy = sMarkup.substring(sMarkup.indexOf("/")+1);
- return new Date(yy, mm, dd);
-};
-
-/**
- * Default parse function for Columns of type "number" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseNumber
- * @param sMarkup
- * @return {nNumber} Number.
- */
-YAHOO.widget.Column.parseNumber = function(sMarkup) {
- return parseFloat(sMarkup);
-};
-
-/**
- * Default parse function for Columns of type "select" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseSelect
- * @param sMarkup
- * @return {sValue} Value of selected option.
- */
-YAHOO.widget.Column.parseSelect = function(sMarkup) {
- //return (sMarkup.indexOf("checked") < 0) ? false : true;
-};
-
-/**
- * Outputs editor markup into the given TD based on given Record.
- *
- * @method showEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @return YAHOO.widget.ColumnEditor
- */
-YAHOO.widget.Column.prototype.getEditor = function(elCell, oRecord) {
-//Sync up the arg signature for ColumnEditor constructor and show()
- var oEditor = this.editor;
- if(oEditor.constructor == String) {
- oEditor = new YAHOO.widget.ColumnEditor(this.editor);
- oEditor.show(elCell, oRecord, this);
- this.editor = oEditor;
- }
- else if(oEditor instanceof YAHOO.widget.ColumnEditor) {
- oEditor.show(elCell, oRecord, this);
- }
- return oEditor;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The ColumnEditor defines and manages inline editing functionality for a
- * DataTable Column.
- *
- * @class ColumnEditor
- * @constructor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- * @parem sType {String} Type identifier
- */
-YAHOO.widget.ColumnEditor = function(sType) {
- this.type = sType;
-
- //TODO: make sure ColumnEditors get destroyed if widget gets destroyed
- // Works better to attach ColumnEditor to document.body
- // rather than the DataTable container
- // elTable comes in as a cell. Traverse up DOM to find the table.
- // TODO: safety net in case table is never found.
- //while(elCell.nodeName.toLowerCase() != "table") {
- // elCell = elCell.parentNode;
- //}
- //this.tableContainer = elCell.parentNode;
-
- var container = document.body.appendChild(document.createElement("div"));//this.tableContainer.appendChild(document.createElement("div"));
- container.style.position = "absolute";
- container.style.zIndex = 9000;
- container.id = "yui-dt-coled" + YAHOO.widget.ColumnEditor._nCount;
- this.container = container;
-
- switch(this.type) {
- case "textbox":
- this.createTextboxEditor();
- break;
- case "textarea":
- this.createTextareaEditor();
- break;
- default:
- break;
- }
-
- YAHOO.widget.ColumnEditor._nCount++;
-};
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal instance counter.
- *
- * @property _nCount
- * @type Number
- * @static
- * @default 0
- */
-YAHOO.widget.ColumnEditor._nCount =0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Reference to the container DOM element for the ColumnEditor.
- *
- * @property container
- * @type HTMLElement
- */
-YAHOO.widget.ColumnEditor.prototype.container = null;
-
-/**
- * Reference to the ColumnEditor's Column instance.
- *
- * @property column
- * @type YAHOO.widget.Column
- */
-YAHOO.widget.ColumnEditor.prototype.column = null;
-
-/**
- * Type of editor: "textbox", etc.
- *
- * @property type
- * @type String
- */
-YAHOO.widget.ColumnEditor.prototype.type = null;
-
-
-
-/**
- * Reference to form element(s) of the ColumnEditor.
- *
- * @property input
- * @type HTMLElement || HTMLElement[]
- */
-YAHOO.widget.ColumnEditor.prototype.input = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Shows ColumnEditor.
- *
- * @method show
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.show = function(elCell, oRecord, oColumn) {
- this.cell = elCell;
- this.record = oRecord;
- this.column = oColumn;
- switch(this.type) {
- case "textbox":
- this.showTextboxEditor(elCell, oRecord, oColumn);
- break;
- case "textarea":
- this.showTextareaEditor(elCell, oRecord, oColumn);
- break;
- default:
- break;
- }
-};
-
-/**
- * Returns ColumnEditor data value.
- *
- * @method getValue
- * @return Object
- */
-YAHOO.widget.ColumnEditor.prototype.getValue = function() {
- var value;
- switch(this.type) {
- case "textbox":
- value = this.getTextboxEditorValue();
- break;
- case "textarea":
- value = this.getTextareaEditorValue();
- break;
- default:
- break;
- }
- return value;
-};
-
-/**
- * Creates a textbox editor in the DOM.
- *
- * @method createTextboxEditor
- * @return {HTML} ???
- */
-YAHOO.widget.ColumnEditor.prototype.createTextboxEditor = function() {
- var elTextbox = this.container.appendChild(document.createElement("input"));
- // For FF bug 236791
- elTextbox.setAttribute("autocomplete","off");
- this.input = elTextbox;
-};
-
-/**
- * Creates a textarea editor in the DOM.
- *
- * @method createTextareaEditor
- * @return {HTML} ???
- */
-YAHOO.widget.ColumnEditor.prototype.createTextareaEditor = function() {
- var elTextarea = this.container.appendChild(document.createElement("textarea"));
- this.input = elTextarea;
-};
-
-/**
- * Shows ColumnEditor
- *
- * @method showTextboxEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.showTextboxEditor = function(elCell, oRecord, oColumn) {
- // Size and value
- this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px";
- this.input.style.height = (parseInt(elCell.offsetHeight,10)-7) + "px";
- this.input.value = elCell.innerHTML;
-
- // Position and show
- var x,y;
-
- // Don't use getXY for Opera
- if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) {
- x = elCell.offsetLeft;
- y = elCell.offsetTop;
- while(elCell.offsetParent) {
- x += elCell.offsetParent.offsetLeft;
- y += elCell.offsetParent.offsetTop;
- elCell = elCell.offsetParent;
- }
- }
- else {
- var xy = YAHOO.util.Dom.getXY(elCell);
- x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1;
- y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1;
- }
- this.container.style.left = x + "px";
- this.container.style.top = y + "px";
- this.container.style.display = "block";
-
- this.input.tabIndex = 0;
- this.input.focus();
- this.input.select();
-};
-
-/**
- * Shows ColumnEditor
- *
- * @method showTextareaEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.showTextareaEditor = function(elCell, oRecord, oColumn) {
- // Size and value
- this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px";
- this.input.style.height = 4*(parseInt(elCell.offsetHeight,10)-7) + "px";
- this.input.value = elCell.innerHTML;
-
- // Position and show
- var x,y;
-
- // Don't use getXY for Opera
- if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) {
- x = elCell.offsetLeft;
- y = elCell.offsetTop;
- while(elCell.offsetParent) {
- x += elCell.offsetParent.offsetLeft;
- y += elCell.offsetParent.offsetTop;
- elCell = elCell.offsetParent;
- }
- }
- else {
- var xy = YAHOO.util.Dom.getXY(elCell);
- x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1;
- y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1;
- }
- this.container.style.left = x + "px";
- this.container.style.top = y + "px";
- this.container.style.display = "block";
-
- this.input.tabIndex = 0;
- this.input.focus();
- this.input.select();
-};
-
-/**
- * Hides ColumnEditor
- *
- * @method hide
- */
-YAHOO.widget.ColumnEditor.prototype.hide = function() {
- this.input.tabIndex = -1;
- this.container.style.display = "none";
-};
-
-/**
- * Returns ColumnEditor value
- *
- * @method getTextboxEditorValue
- * @return String
- */
-YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue = function() {
- return this.input.value;
-};
-
-/**
- * Returns ColumnEditor value
- *
- * @method getTextareaEditorValue
- * @return String
- */
-YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue = function() {
- return this.input.value;
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Sort static utility to support Column sorting.
- *
- * @class Sort
- * @static
- */
-YAHOO.util.Sort = {
- /////////////////////////////////////////////////////////////////////////////
- //
- // Public methods
- //
- /////////////////////////////////////////////////////////////////////////////
-
- /**
- * Comparator function for sort in ascending order. String sorting is case insensitive.
- *
- * @method compareAsc
- * @param a {object} First sort argument.
- * @param b {object} Second sort argument.
- */
- compareAsc: function(a, b) {
- //TODO: is typeof better or is constructor property better?
- if(a.constructor == String) {
- a = a.toLowerCase();
- }
- if(b.constructor == String) {
- b = b.toLowerCase();
- }
- if(a < b) {
- return -1;
- }
- else if (a > b) {
- return 1;
- }
- else {
- return 0;
- }
- },
-
- /**
- * Comparator function for sort in descending order. String sorting is case insensitive.
- *
- * @method compareDesc
- * @param a {object} First sort argument.
- * @param b {object} Second sort argument.
- */
- compareDesc: function(a, b) {
- //TODO: is typeof better or is constructor property better?
- if(a.constructor == String) {
- a = a.toLowerCase();
- }
- if(b.constructor == String) {
- b = b.toLowerCase();
- }
- if(a < b) {
- return 1;
- }
- else if (a > b) {
- return -1;
- }
- else {
- return 0;
- }
- }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * WidthResizer subclasses DragDrop to support resizeable Columns.
- *
- * @class WidthResizer
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param colElId {string} ID of the Column's TH element being resized
- * @param handleElId {string} ID of the handle element that causes the resize
- * @param sGroup {string} Group name of related DragDrop items
- */
-YAHOO.util.WidthResizer = function(oDataTable, colId, handleId, sGroup, config) {
- if (colId) {
- this.cell = YAHOO.util.Dom.get(colId);
- this.init(handleId, sGroup, config);
- //this.initFrame();
- this.datatable = oDataTable;
- this.setYConstraint(0,0);
- }
- else {
- YAHOO.log("Column resizer could not be created due to invalid colElId","warn");
- }
-};
-
-if(YAHOO.util.DD) {
- YAHOO.extend(YAHOO.util.WidthResizer, YAHOO.util.DD);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public DOM event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles mousedown events on the Column resizer.
- *
- * @method onMouseDown
- * @param e {string} The mousedown event
- */
-YAHOO.util.WidthResizer.prototype.onMouseDown = function(e) {
- this.startWidth = this.cell.offsetWidth;
- this.startPos = YAHOO.util.Dom.getX(this.getDragEl());
-
- if(this.datatable.fixedwidth) {
- var cellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0];
- this.minWidth = cellText.offsetWidth + 6;
- var sib = this.cell.nextSibling;
- var sibCellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0];
- this.sibMinWidth = sibCellText.offsetWidth + 6;
-//!!
- var left = ((this.startWidth - this.minWidth) < 0) ? 0 : (this.startWidth - this.minWidth);
- var right = ((sib.offsetWidth - this.sibMinWidth) < 0) ? 0 : (sib.offsetWidth - this.sibMinWidth);
- this.setXConstraint(left, right);
- YAHOO.log("cellstartwidth:" + this.startWidth,"time");
- YAHOO.log("cellminwidth:" + this.minWidth,"time");
- YAHOO.log("sibstartwidth:" + sib.offsetWidth,"time");
- YAHOO.log("sibminwidth:" + this.sibMinWidth,"time");
- YAHOO.log("l:" + left + " AND r:" + right,"time");
- }
-
-};
-
-/**
- * Handles mouseup events on the Column resizer.
- *
- * @method onMouseUp
- * @param e {string} The mouseup event
- */
-YAHOO.util.WidthResizer.prototype.onMouseUp = function(e) {
- //TODO: replace the resizer where it belongs:
- var resizeStyle = YAHOO.util.Dom.get(this.handleElId).style;
- resizeStyle.left = "auto";
- resizeStyle.right = 0;
- resizeStyle.marginRight = "-6px";
- resizeStyle.width = "6px";
- //.yui-dt-headresizer {position:absolute;margin-right:-6px;right:0;bottom:0;width:6px;height:100%;cursor:w-resize;cursor:col-resize;}
-
-
- //var cells = this.datatable._elTable.tHead.rows[this.datatable._elTable.tHead.rows.length-1].cells;
- //for(var i=0; i0; i--) {
- record = this._records[i];
- if(record && (record.extid == extId)) {
- return record;
- }
- }
- return null;
-
-};*/
-
-/**
- * Updates given Record at given key with given data.
- *
- * @method updateRecord
- * @param oRecord {YAHOO.widget.Record} A Record instance.
- * @param sKey {String} Key.
- * @param oData {Object) New data.
- */
-YAHOO.widget.RecordSet.prototype.updateRecord = function(oRecord, sKey, oData) {
- var oldData = oRecord[sKey];
- oRecord[sKey] = oData;
- this.fireEvent("recordUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-};
-
-/**
- * Adds one Record to the RecordSet at the given index. If index is null,
- * then adds the Record to the end of the RecordSet.
- *
- * @method addRecord
- * @param oObjectLiteral {Object} An object literal of data.
- * @param index {Number} (optional) Position index.
- * @return {YAHOO.widget.Record} A Record instance.
- */
-YAHOO.widget.RecordSet.prototype.addRecord = function(oObjectLiteral, index) {
- if(oObjectLiteral) {
- var oRecord = new YAHOO.widget.Record(oObjectLiteral);
- if(!isNaN(index) && (index > -1)) {
- this._records.splice(index,0,oRecord);
- }
- else {
- this._records.push(oRecord);
- }
- this._length++;
- return oRecord;
- }
- else {
- return null;
- }
-};
-
-/**
- * Adds multiple Records to the RecordSet at the given index. If index is null,
- * then adds the Records to the end of the RecordSet.
- *
- * @method addRecords
- * @param data {Object[]} An array of object literal data.
- * @param index {Number} (optional) Position index.
- * @return {YAHOO.widget.Record} An array of Record instances.
- */
-YAHOO.widget.RecordSet.prototype.addRecords = function(data, index) {
- if(data) {
- if(data.constructor == Array) {
- var newRecords = [];
- // Can't go backwards bc we need to preserve order
- for(var i=0; i-1; i--) {
- var record = this.addRecord(data[i], 0);
- newRecords.push(record);
- }
- return newRecords;
- }
- else if(data.constructor == Object) {
- return this.addRecord(data, 0);
- }
- }
- else {
- return null;
- }
-};
-
-/**
- * Replaces all Records in RecordSet with new data.
- *
- * @method replace
- * @param data {Object || Object[]} An object literal or array or data.
- * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records.
- */
-YAHOO.widget.RecordSet.prototype.replace = function(data) {
- if(data) {
- this.reset();
- return this.append(data);
- }
- else {
- return null;
- }
-};
-
-/**
- * Sorts RecordSet by given function.
- *
- * @method sort
- * @param fnSort {Function} Reference to a sort function.
- * @return {Array} Sorted array of Records
- */
-YAHOO.widget.RecordSet.prototype.sort = function(fnSort) {
- return this._records.sort(fnSort);
-};
-
-
-/**
- * Removes the record at the given index from the RecordSet. If a range is
- * given, starts at the given index and removes all records in the range.
- *
- * @method deleteRecord
- * @param i {Number} Record index
- * @param range {Number} (optional) Range of records to remove, or null.
- */
-YAHOO.widget.RecordSet.prototype.deleteRecord = function(i, range) {
- if(!range || isNaN(range)) {
- range = 1;
- }
- if(i && !isNaN(i)) {
- this._records.splice(i, range);
- this._length = this._length - range;
- }
-};
-
-/**
- * Removes all Records from the RecordSet.
- *
- * @method reset
- */
-YAHOO.widget.RecordSet.prototype.reset = function() {
- this._records = [];
- this._length = 0;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Record class defines a DataTable record.
- *
- * @class Record
- * @constructor
- * @param oConfigs {Object} (optional) Object literal of key/value pairs.
- */
-YAHOO.widget.Record = function(oLiteral) {
- if(typeof oLiteral == "object") {
- for(var sKey in oLiteral) {
- if(sKey) {
- this[sKey] = oLiteral[sKey];
- }
- }
- }
- this.id = "yui-dtrec"+YAHOO.widget.Record._nCount;
- YAHOO.widget.Record._nCount++;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple data table instances.
- *
- * @property _nCount
- * @type number
- * @private
- * @static
- */
-YAHOO.widget.Record._nCount = 0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Unique name assigned at instantation, indicates original order.
- *
- * @property id
- * @type string
- */
-YAHOO.widget.Record.prototype.id = null;
-
-YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js
deleted file mode 100644
index 1a140a0ca26ab96ae747c7baf3ada2192606ec77..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datatable/datatable-beta-min.js
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.widget.DataTable=function(elContainer,oColumnSet,oDataSource,oConfigs){var i;this._nIndex=YAHOO.widget.DataTable._nCount;this._sName="instance"+this._nIndex;this.id="yui-dt"+this._nIndex;if(typeof oConfigs=="object"){for(var sConfig in oConfigs){this[sConfig]=oConfigs[sConfig];}}
-if(oDataSource){if(oDataSource instanceof YAHOO.util.DataSource){this.dataSource=oDataSource;}
-else{}}
-if(oColumnSet&&(oColumnSet instanceof YAHOO.widget.ColumnSet)){this._oColumnSet=oColumnSet;}
-else{return;}
-this._oRecordSet=new YAHOO.widget.RecordSet();elContainer=YAHOO.util.Dom.get(elContainer);if(elContainer&&elContainer.tagName&&(elContainer.tagName.toLowerCase()=="div")){this._elContainer=elContainer;var elTable=null;if(elContainer.hasChildNodes()){var children=elContainer.childNodes;for(i=0;i"+contentText+"";}
-else{elHeadContent.innerHTML=contentText;}};YAHOO.widget.DataTable.prototype._addRow=function(oRecord,index){this.hideTableMessages();var insert=(isNaN(index))?false:true;if(!insert){index=this._elBody.rows.length;}
-var oColumnSet=this._oColumnSet;var oRecordSet=this._oRecordSet;var elRow=(insert&&this._elBody.rows[index])?this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]):this._elBody.appendChild(document.createElement("tr"));var recId=oRecord.id;elRow.id=this.id+"-bdrow"+index;elRow.recordId=recId;for(var j=0;j0)){}
-if(!insert){if(index%2){YAHOO.util.Dom.addClass(elRow,YAHOO.widget.DataTable.CLASS_ODD);}
-else{YAHOO.util.Dom.addClass(elRow,YAHOO.widget.DataTable.CLASS_EVEN);}}
-else{this._restripeRows();}
-return elRow.id;};YAHOO.widget.DataTable.prototype._restripeRows=function(range){if(!range){var rows=this._elBody.rows;for(var i=0;i0)){if(!e.shiftKey){oSelf.unselectAllRows();}
-newSelected=oSelf._elBody.rows[oldSelected.sectionRowIndex-1];oSelf.select(newSelected);}}
-else if(oldSelected.tagName.toLowerCase()=="td"){if((oldSelected.sectionRowIndex>0)){if(!e.shiftKey){oSelf.unselectAllRows();}
-newSelected=oSelf._elBody.rows[oldSelected.sectionRowIndex-1];oSelf.select(newSelected);}}
-oSelf._bFocused=false;oSelf.focusTable();}}};YAHOO.widget.DataTable.prototype._onKeyup=function(e,oSelf){var key=YAHOO.util.Event.getCharCode(e);if(key==46){}};YAHOO.widget.DataTable.prototype._onDocumentKeyup=function(e,oSelf){if((e.keyCode==27)&&(oSelf.activeEditor)){oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();}
-if((e.keyCode==13)&&(oSelf.activeEditor)){var elCell=oSelf.activeEditor.cell;var oColumn=oSelf.activeEditor.column;var oRecord=oSelf.activeEditor.record;var oldValue=oRecord[oColumn.key];var newValue=oSelf.activeEditor.getValue();oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue);oSelf.formatCell(elCell);oSelf.activeEditor.hide();oSelf.activeEditor=null;oSelf._bFocused=false;oSelf.focusTable();oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue});}};YAHOO.widget.DataTable.prototype._onPagerClick=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var knownTag=false;if(elTag!="table"){while(!knownTag){switch(elTag){case"body":knownTag=true;break;case"a":YAHOO.util.Event.stopEvent(e);switch(elTarget.className){case YAHOO.widget.DataTable.CLASS_PAGELINK:oSelf.showPage(parseInt(elTarget.innerHTML,10));break;case YAHOO.widget.DataTable.CLASS_FIRSTLINK:oSelf.showPage(1);break;case YAHOO.widget.DataTable.CLASS_LASTLINK:oSelf.showPage(oSelf._totalPages);break;case YAHOO.widget.DataTable.CLASS_PREVLINK:oSelf.showPage(oSelf.pageCurrent-1);break;case YAHOO.widget.DataTable.CLASS_NEXTLINK:oSelf.showPage(oSelf.pageCurrent+1);break;}
-knownTag=true;break;default:break;}
-elTarget=elTarget.parentNode;if(elTarget){elTag=elTarget.tagName.toLowerCase();}
-else{break;}}}};YAHOO.widget.DataTable.prototype._onPagerSelect=function(e,oSelf){var elTarget=YAHOO.util.Event.getTarget(e);var elTag=elTarget.tagName.toLowerCase();var oldRowsPerPage=oSelf.rowsPerPage;var rowsPerPage=parseInt(elTarget[elTarget.selectedIndex].text,10);if(rowsPerPage&&(rowsPerPage!=oSelf.rowsPerPage)){if(rowsPerPage>oldRowsPerPage){oSelf.pageCurrent=1;}
-oSelf.rowsPerPage=rowsPerPage;oSelf.paginateRows();}};YAHOO.widget.DataTable.prototype._onRowDelete=function(oArgs){this._restripeRows();};YAHOO.widget.DataTable.prototype._onRecordUpdate=function(oArgs){this.fireEvent("recordSetUpdateEvent",oArgs);};YAHOO.widget.DataTable.prototype.dataSource=null;YAHOO.widget.DataTable.prototype.initialRequest="";YAHOO.widget.DataTable.prototype.caption=null;YAHOO.widget.DataTable.prototype.summary=null;YAHOO.widget.DataTable.prototype.fixedWidth=false;YAHOO.widget.DataTable.prototype.scrollable=false;YAHOO.widget.DataTable.prototype.rowSingleSelect=false;YAHOO.widget.DataTable.prototype.contextMenu=null;YAHOO.widget.DataTable.prototype.pageCurrent=1;YAHOO.widget.DataTable.prototype.rowsPerPage=500;YAHOO.widget.DataTable.prototype.startRecordIndex=1;YAHOO.widget.DataTable.prototype.pageLinksLength=-1;YAHOO.widget.DataTable.prototype.rowsPerPageDropdown=null;YAHOO.widget.DataTable.prototype.pageLinksStart=1;YAHOO.widget.DataTable.prototype.pagers=null;YAHOO.widget.DataTable.prototype.isEmpty=false;YAHOO.widget.DataTable.prototype.sortedBy=null;YAHOO.widget.DataTable.prototype.toString=function(){return"DataTable "+this._sName;};YAHOO.widget.DataTable.prototype.getTable=function(){return(this._elTable);};YAHOO.widget.DataTable.prototype.getHead=function(){return(this._elHead);};YAHOO.widget.DataTable.prototype.getBody=function(){return(this._elBody);};YAHOO.widget.DataTable.prototype.getRow=function(index){return(this._elBody.rows[index]);};YAHOO.widget.DataTable.prototype.getCell=function(row,col){return(this._elBody.rows[row].cells[col]);};YAHOO.widget.DataTable.prototype.showEmptyMessage=function(){if(this.isEmpty){return;}
-if(this.isLoading){this.hideTableMessages();}
-this._elMsgBody.style.display="";var elCell=this._elMsgCell;elCell.className=YAHOO.widget.DataTable.CLASS_EMPTY;elCell.innerHTML=YAHOO.widget.DataTable.MSG_EMPTY;this.isEmpty=true;};YAHOO.widget.DataTable.prototype.showLoadingMessage=function(){if(this.isLoading){return;}
-if(this.isEmpty){this.hideTableMessages();}
-this._elMsgBody.style.display="";var elCell=this._elMsgCell;elCell.className=YAHOO.widget.DataTable.CLASS_LOADING;elCell.innerHTML=YAHOO.widget.DataTable.MSG_LOADING;this.isLoading=true;};YAHOO.widget.DataTable.prototype.hideTableMessages=function(){if(!this.isEmpty&&!this.isLoading){return;}
-this._elMsgBody.style.display="none";this.isEmpty=false;this.isLoading=false;};YAHOO.widget.DataTable.prototype.focusTable=function(){var elTable=this._elTable;if(!this._bFocused){setTimeout(function(){elTable.focus();},0);this._bFocused=true;this.fireEvent("tableFocusEvent");}};YAHOO.widget.DataTable.prototype.doBeforeLoadData=function(sRequest,oResponse){return true;};YAHOO.widget.DataTable.prototype.appendRows=function(aRecords){if(aRecords&&aRecords.length>0){this.hideTableMessages();var rowIds=[];for(var i=0;i0){this.hideTableMessages();var rowIds=[];for(var i=0;i0){this.hideTableMessages();var elBody=this._elBody;var elRows=this._elBody.rows;while(elBody.hasChildNodes()&&(elRows.length>aRecords.length)){elBody.deleteRow(0);}
-var selectedRecords=this.getSelectedRecordIds();if(selectedRecords.length>0){this._unselectAllRows();}
-var rowIds=[];for(i=0;i-1)){tracker.splice(tracker.indexOf(id),1);}
-else{for(var j=0;j-1)){tracker.splice(tracker.indexOf(id),1);}
-else{for(var j=0;jthis._totalPages)){nPage=1;}
-this.pageCurrent=nPage;this.paginateRows();};YAHOO.widget.DataTable.prototype.paginateRows=function(){var i;var recordsLength=this._oRecordSet.getLength();var maxRows=(this.rowsPerPage0)&&(this.pageLinksLength<< ":" << ";var prevPageLink=(isFirstPage)?" < ":" < ";var nextPageLink=(isLastPage)?" > ":" > ";var lastPageLink=(isLastPage)?" >> ":" >> ";var markup=firstPageLink+prevPageLink;var maxLinks=(this.pageLinksStart+pageLinksLength"+i+" ";}
-else{markup+=" "+i+" ";}}
-markup+=nextPageLink+lastPageLink;var dropdown=this.rowsPerPageDropdown;var select1,select2;if(dropdown&&(dropdown.constructor==Array)&&(dropdown.length>0)){select1=document.createElement("select");select1.className=YAHOO.widget.DataTable.CLASS_PAGESELECT;select2=document.createElement("select");select2.className=YAHOO.widget.DataTable.CLASS_PAGESELECT;for(i=0;inodeLevelMaxChildren){nodeLevelMaxChildren=tmpMax;}}};recurseChildren(nodeList);for(var j=0;j0){oColumn._rowspan+=nodeLevelMaxChildren;oColumn._index=keys.length;keys.push(oColumn);}
-else{oColumn._index=keys.length;keys.push(oColumn);}
-tree[nodelevel].push(oColumn);}
-nodelevel--;};if(aHeaders.length>0){parseColumns(aHeaders);}
-var recurseAncestors=function(i,oColumn){headers[i].push(oColumn._id);if(oColumn._parent){recurseAncestors(i,oColumn._parent);}};for(var i=0;i";};YAHOO.widget.Column.formatCurrency=function(elCell,oRecord,oColumn,oData){var nAmount=oData;var markup;if(nAmount){markup="$"+nAmount;var dotIndex=markup.indexOf(".");if(dotIndex<0){markup+=".00";}
-else{while(dotIndex!=markup.length-3){markup+="0";}}}
-else{markup="";}
-elCell.innerHTML=markup;};YAHOO.widget.Column.formatDate=function(elCell,oRecord,oColumn,oData){var oDate=oData;if(oDate){elCell.innerHTML=oDate.getMonth()+"/"+oDate.getDate()+"/"+oDate.getFullYear();}
-else{elCell.innerHTML="";}};YAHOO.widget.Column.formatEmail=function(elCell,oRecord,oColumn,oData){var sEmail=oData;if(sEmail){elCell.innerHTML=""+sEmail+" ";}
-else{elCell.innerHTML="";}};YAHOO.widget.Column.formatLink=function(elCell,oRecord,oColumn,oData){var sLink=oData;if(sLink){elCell.innerHTML=""+sLink+" ";}
-else{elCell.innerHTML="";}};YAHOO.widget.Column.formatNumber=function(elCell,oRecord,oColumn,oData){var nNumber=oData;if(nNumber){elCell.innerHTML=nNumber.toString();}
-else{elCell.innerHTML="";}};YAHOO.widget.Column.formatSelect=function(elCell,oRecord,oColumn,oData){var selectedValue=oData;var options=oColumn.selectOptions;var markup="";if(options){for(var i=0;i"+option+"";}}
-else{if(selectedValue){markup+=""+selectedValue+" ";}}
-markup+=" ";elCell.innerHTML=markup;};YAHOO.widget.Column.prototype.parse=function(sMarkup){if(this.parser){return this.parser(sMarkup);}
-else{var data=null;switch(this.type){case"checkbox":data=YAHOO.widget.Column.parseCheckbox(sMarkup);break;case"currency":data=YAHOO.widget.Column.parseCurrency(sMarkup);break;case"date":data=YAHOO.widget.Column.parseDate(sMarkup);break;case"number":data=YAHOO.widget.Column.parseNumber(sMarkup);break;case"select":data=YAHOO.widget.Column.parseSelect(sMarkup);break;default:if(sMarkup){data=sMarkup;}
-break;}
-return data;}};YAHOO.widget.Column.parseCheckbox=function(sMarkup){return(sMarkup.indexOf("checked")<0)?false:true;};YAHOO.widget.Column.parseCurrency=function(sMarkup){return parseFloat(sMarkup.substring(1));};YAHOO.widget.Column.parseDate=function(sMarkup){var mm=sMarkup.substring(0,sMarkup.indexOf("/"));sMarkup=sMarkup.substring(sMarkup.indexOf("/")+1);var dd=sMarkup.substring(0,sMarkup.indexOf("/"));var yy=sMarkup.substring(sMarkup.indexOf("/")+1);return new Date(yy,mm,dd);};YAHOO.widget.Column.parseNumber=function(sMarkup){return parseFloat(sMarkup);};YAHOO.widget.Column.parseSelect=function(sMarkup){};YAHOO.widget.Column.prototype.getEditor=function(elCell,oRecord){var oEditor=this.editor;if(oEditor.constructor==String){oEditor=new YAHOO.widget.ColumnEditor(this.editor);oEditor.show(elCell,oRecord,this);this.editor=oEditor;}
-else if(oEditor instanceof YAHOO.widget.ColumnEditor){oEditor.show(elCell,oRecord,this);}
-return oEditor;};YAHOO.widget.ColumnEditor=function(sType){this.type=sType;var container=document.body.appendChild(document.createElement("div"));container.style.position="absolute";container.style.zIndex=9000;container.id="yui-dt-coled"+YAHOO.widget.ColumnEditor._nCount;this.container=container;switch(this.type){case"textbox":this.createTextboxEditor();break;case"textarea":this.createTextareaEditor();break;default:break;}
-YAHOO.widget.ColumnEditor._nCount++;};YAHOO.widget.ColumnEditor._nCount=0;YAHOO.widget.ColumnEditor.prototype.container=null;YAHOO.widget.ColumnEditor.prototype.column=null;YAHOO.widget.ColumnEditor.prototype.type=null;YAHOO.widget.ColumnEditor.prototype.input=null;YAHOO.widget.ColumnEditor.prototype.show=function(elCell,oRecord,oColumn){this.cell=elCell;this.record=oRecord;this.column=oColumn;switch(this.type){case"textbox":this.showTextboxEditor(elCell,oRecord,oColumn);break;case"textarea":this.showTextareaEditor(elCell,oRecord,oColumn);break;default:break;}};YAHOO.widget.ColumnEditor.prototype.getValue=function(){var value;switch(this.type){case"textbox":value=this.getTextboxEditorValue();break;case"textarea":value=this.getTextareaEditorValue();break;default:break;}
-return value;};YAHOO.widget.ColumnEditor.prototype.createTextboxEditor=function(){var elTextbox=this.container.appendChild(document.createElement("input"));elTextbox.setAttribute("autocomplete","off");this.input=elTextbox;};YAHOO.widget.ColumnEditor.prototype.createTextareaEditor=function(){var elTextarea=this.container.appendChild(document.createElement("textarea"));this.input=elTextarea;};YAHOO.widget.ColumnEditor.prototype.showTextboxEditor=function(elCell,oRecord,oColumn){this.input.style.width=(parseInt(elCell.offsetWidth,10)-7)+"px";this.input.style.height=(parseInt(elCell.offsetHeight,10)-7)+"px";this.input.value=elCell.innerHTML;var x,y;if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){x=elCell.offsetLeft;y=elCell.offsetTop;while(elCell.offsetParent){x+=elCell.offsetParent.offsetLeft;y+=elCell.offsetParent.offsetTop;elCell=elCell.offsetParent;}}
-else{var xy=YAHOO.util.Dom.getXY(elCell);x=parseInt(YAHOO.util.Dom.getX(elCell),10);y=parseInt(YAHOO.util.Dom.getY(elCell),10);}
-this.container.style.left=x+"px";this.container.style.top=y+"px";this.container.style.display="block";this.input.tabIndex=0;this.input.focus();this.input.select();};YAHOO.widget.ColumnEditor.prototype.showTextareaEditor=function(elCell,oRecord,oColumn){this.input.style.width=(parseInt(elCell.offsetWidth,10)-7)+"px";this.input.style.height=4*(parseInt(elCell.offsetHeight,10)-7)+"px";this.input.value=elCell.innerHTML;var x,y;if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){x=elCell.offsetLeft;y=elCell.offsetTop;while(elCell.offsetParent){x+=elCell.offsetParent.offsetLeft;y+=elCell.offsetParent.offsetTop;elCell=elCell.offsetParent;}}
-else{var xy=YAHOO.util.Dom.getXY(elCell);x=parseInt(YAHOO.util.Dom.getX(elCell),10);y=parseInt(YAHOO.util.Dom.getY(elCell),10);}
-this.container.style.left=x+"px";this.container.style.top=y+"px";this.container.style.display="block";this.input.tabIndex=0;this.input.focus();this.input.select();};YAHOO.widget.ColumnEditor.prototype.hide=function(){this.input.tabIndex=-1;this.container.style.display="none";};YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue=function(){return this.input.value;};YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue=function(){return this.input.value;};YAHOO.util.Sort={compareAsc:function(a,b){if(a.constructor==String){a=a.toLowerCase();}
-if(b.constructor==String){b=b.toLowerCase();}
-if(ab){return 1;}
-else{return 0;}},compareDesc:function(a,b){if(a.constructor==String){a=a.toLowerCase();}
-if(b.constructor==String){b=b.toLowerCase();}
-if(ab){return-1;}
-else{return 0;}}};YAHOO.util.WidthResizer=function(oDataTable,colId,handleId,sGroup,config){if(colId){this.cell=YAHOO.util.Dom.get(colId);this.init(handleId,sGroup,config);this.datatable=oDataTable;this.setYConstraint(0,0);}
-else{}};if(YAHOO.util.DD){YAHOO.extend(YAHOO.util.WidthResizer,YAHOO.util.DD);}
-YAHOO.util.WidthResizer.prototype.onMouseDown=function(e){this.startWidth=this.cell.offsetWidth;this.startPos=YAHOO.util.Dom.getX(this.getDragEl());if(this.datatable.fixedwidth){var cellText=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0];this.minWidth=cellText.offsetWidth+6;var sib=this.cell.nextSibling;var sibCellText=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0];this.sibMinWidth=sibCellText.offsetWidth+6;var left=((this.startWidth-this.minWidth)<0)?0:(this.startWidth-this.minWidth);var right=((sib.offsetWidth-this.sibMinWidth)<0)?0:(sib.offsetWidth-this.sibMinWidth);this.setXConstraint(left,right);}};YAHOO.util.WidthResizer.prototype.onMouseUp=function(e){var resizeStyle=YAHOO.util.Dom.get(this.handleElId).style;resizeStyle.left="auto";resizeStyle.right=0;resizeStyle.marginRight="-6px";resizeStyle.width="6px";this.datatable.fireEvent("columnResizeEvent",{datatable:this.datatable,target:YAHOO.util.Dom.get(this.id)});};YAHOO.util.WidthResizer.prototype.onDrag=function(e){if(newWidth-1)){this._records.splice(index,0,oRecord);}
-else{this._records.push(oRecord);}
-this._length++;return oRecord;}
-else{return null;}};YAHOO.widget.RecordSet.prototype.addRecords=function(data,index){if(data){if(data.constructor==Array){var newRecords=[];for(var i=0;i-1;i--){var record=this.addRecord(data[i],0);newRecords.push(record);}
-return newRecords;}
-else if(data.constructor==Object){return this.addRecord(data,0);}}
-else{return null;}};YAHOO.widget.RecordSet.prototype.replace=function(data){if(data){this.reset();return this.append(data);}
-else{return null;}};YAHOO.widget.RecordSet.prototype.sort=function(fnSort){return this._records.sort(fnSort);};YAHOO.widget.RecordSet.prototype.deleteRecord=function(i,range){if(!range||isNaN(range)){range=1;}
-if(i&&!isNaN(i)){this._records.splice(i,range);this._length=this._length-range;}};YAHOO.widget.RecordSet.prototype.reset=function(){this._records=[];this._length=0;};YAHOO.widget.Record=function(oLiteral){if(typeof oLiteral=="object"){for(var sKey in oLiteral){if(sKey){this[sKey]=oLiteral[sKey];}}}
-this.id="yui-dtrec"+YAHOO.widget.Record._nCount;YAHOO.widget.Record._nCount++;};YAHOO.widget.Record._nCount=0;YAHOO.widget.Record.prototype.id=null;YAHOO.register("datatable",YAHOO.widget.DataTable,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js b/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js
deleted file mode 100644
index fedc95a8c264acbfec9d15065b9ed3467deb233e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/datatable/datatable-beta.js
+++ /dev/null
@@ -1,4930 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The DataTable widget provides a progressively enhanced DHTML control for
- * displaying tabular data across A-grade browsers.
- *
- * @module datatable
- * @requires yahoo, dom, event, datasource
- * @optional dragdrop
- * @title DataTable Widget
- * @beta
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * DataTable class for the YUI DataTable widget.
- *
- * @class DataTable
- * @uses YAHOO.util.EventProvider
- * @constructor
- * @param elContainer {HTMLElement} Container element for the TABLE.
- * @param oColumnSet {YAHOO.widget.ColumnSet} ColumnSet instance.
- * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
- * @param oConfigs {object} (optional) Object literal of configuration values.
- */
-YAHOO.widget.DataTable = function(elContainer,oColumnSet,oDataSource,oConfigs) {
- // Internal vars
- var i;
- this._nIndex = YAHOO.widget.DataTable._nCount;
- this._sName = "instance" + this._nIndex;
- this.id = "yui-dt"+this._nIndex;
-
- // Validate configs
- if(typeof oConfigs == "object") {
- for(var sConfig in oConfigs) {
- this[sConfig] = oConfigs[sConfig];
- }
- }
-
- // Validate DataSource
- if(oDataSource) {
- if(oDataSource instanceof YAHOO.util.DataSource) {
- this.dataSource = oDataSource;
- }
- else {
- }
- }
-
- // Validate ColumnSet
- if(oColumnSet && (oColumnSet instanceof YAHOO.widget.ColumnSet)) {
- this._oColumnSet = oColumnSet;
- }
- else {
- return;
- }
-
- // Create RecordSet
- this._oRecordSet = new YAHOO.widget.RecordSet();
-
- // Validate HTML Element
- elContainer = YAHOO.util.Dom.get(elContainer);
- if(elContainer && elContainer.tagName && (elContainer.tagName.toLowerCase() == "div")) {
- this._elContainer = elContainer;
- // Peek in container child nodes to see if TABLE already exists
- var elTable = null;
- if(elContainer.hasChildNodes()) {
- var children = elContainer.childNodes;
- for(i=0; i" + contentText + "";
- //elHeadContent.innerHTML = contentText;
-
- }
- else {
- elHeadContent.innerHTML = contentText;
- }
-};
-
-/**
- * Add a new row to table body at position i if given, or to the bottom
- * otherwise. Does not fire any events.
- *
- * @method _addRow
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param index {Number} Position at which to add row.
- * @return {String} ID of the added TR element.
- * @private
- */
-YAHOO.widget.DataTable.prototype._addRow = function(oRecord, index) {
- this.hideTableMessages();
-
- // Is this an insert or an append?
- var insert = (isNaN(index)) ? false : true;
- if(!insert) {
- index = this._elBody.rows.length;
- }
-
- var oColumnSet = this._oColumnSet;
- var oRecordSet = this._oRecordSet;
-
- var elRow = (insert && this._elBody.rows[index]) ?
- this._elBody.insertBefore(document.createElement("tr"),this._elBody.rows[index]) :
- this._elBody.appendChild(document.createElement("tr"));
- var recId = oRecord.id;
- elRow.id = this.id+"-bdrow"+index;
- elRow.recordId = recId;
-
- // Create TBODY cells
- for(var j=0; j 0)) {
- //TODO: hideMessages()
- //this._initRows()
- //this.isEmpty = false;
- }
-
- // Striping
- if(!insert) {
- if(index%2) {
- YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_ODD);
- }
- else {
- YAHOO.util.Dom.addClass(elRow, YAHOO.widget.DataTable.CLASS_EVEN);
- }
- }
- else {
- //TODO: pass in a subset for better performance
- this._restripeRows();
- }
-
- return elRow.id;
-};
-
-/**
- * Restripes rows by applying class YAHOO.widget.DataTable.CLASS_EVEN or
- * YAHOO.widget.DataTable.CLASS_ODD.
- *
- * @method _restripeRows
- * @param range {Number} (optional) Range defines a subset of rows to restripe.
- * @private
- */
-YAHOO.widget.DataTable.prototype._restripeRows = function(range) {
- if(!range) {
- var rows = this._elBody.rows;
- for(var i=0; i 0)) {
- if(!e.shiftKey) {
- oSelf.unselectAllRows();
- }
- newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1];
- oSelf.select(newSelected);
- }
- }
- // cell mode
- else if(oldSelected.tagName.toLowerCase() == "td") {
- // We have room to move up
- if((oldSelected.sectionRowIndex > 0)) {
- if(!e.shiftKey) {
- oSelf.unselectAllRows();
- }
- newSelected = oSelf._elBody.rows[oldSelected.sectionRowIndex-1];
- oSelf.select(newSelected);
- }
- }
- // Arrows can cause widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- }
- }
-};
-
-/**
- * Handles keyup events on the TABLE. Executes deletion
- *
- * @method _onKeyup
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onKeyup = function(e, oSelf) {
- var key = YAHOO.util.Event.getCharCode(e);
- // delete
- if(key == 46) {//TODO: && this.isFocused
- //TODO: delete row
- }
-};
-
-/**
- * Handles keyup events on the DOCUMENT. Executes interaction with editor.
- *
- * @method _onDocumentKeyup
- * @param e {HTMLEvent} The key event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onDocumentKeyup = function(e, oSelf) {
- // esc Clears active editor
- if((e.keyCode == 27) && (oSelf.activeEditor)) {
- oSelf.activeEditor.hide();
- oSelf.activeEditor = null;
-
- // Editor causes widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- }
- // enter Saves active editor data
- if((e.keyCode == 13) && (oSelf.activeEditor)) {
- var elCell = oSelf.activeEditor.cell;
- var oColumn = oSelf.activeEditor.column;
- var oRecord = oSelf.activeEditor.record;
- var oldValue = oRecord[oColumn.key];
- var newValue = oSelf.activeEditor.getValue();
-
- //Update Record
- //TODO: Column.key may be null!
- oSelf._oRecordSet.updateRecord(oRecord,oColumn.key,newValue);
-
- //Update cell
- oSelf.formatCell(elCell);
-
- // Hide editor
- oSelf.activeEditor.hide();
- oSelf.activeEditor = null;
-
- // Editor causes widget to lose focus
- oSelf._bFocused = false;
- oSelf.focusTable();
- oSelf.fireEvent("cellEditEvent",{target:elCell,oldData:oldValue,newData:newValue});
- }
-};
-
-/**
- * Handles click events on paginator links.
- *
- * @method _onPagerClick
- * @param e {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onPagerClick = function(e, oSelf) {
- var elTarget = YAHOO.util.Event.getTarget(e);
- var elTag = elTarget.tagName.toLowerCase();
- var knownTag = false; // True if event should stop propagating
-
- if (elTag != "table") {
- while(!knownTag) {
- switch(elTag) {
- case "body":
- knownTag = true;
- break;
- case "a":
- YAHOO.util.Event.stopEvent(e);
- switch(elTarget.className) {
- case YAHOO.widget.DataTable.CLASS_PAGELINK:
- oSelf.showPage(parseInt(elTarget.innerHTML,10));
- break;
- case YAHOO.widget.DataTable.CLASS_FIRSTLINK:
- oSelf.showPage(1);
- break;
- case YAHOO.widget.DataTable.CLASS_LASTLINK:
- oSelf.showPage(oSelf._totalPages);
- break;
- case YAHOO.widget.DataTable.CLASS_PREVLINK:
- oSelf.showPage(oSelf.pageCurrent-1);
- break;
- case YAHOO.widget.DataTable.CLASS_NEXTLINK:
- oSelf.showPage(oSelf.pageCurrent+1);
- break;
- }
- knownTag = true;
- break;
- default:
- break;
- }
- elTarget = elTarget.parentNode;
- if(elTarget) {
- elTag = elTarget.tagName.toLowerCase();
- }
- else {
- break;
- }
- }
- }
-};
-
-/**
- * Handles change events on paginator SELECT.
- *
- * @method _onPagerSelect
- * @param e {HTMLEvent} The change event.
- * @param oSelf {YAHOO.widget.DataTable} DataTable instance.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onPagerSelect = function(e, oSelf) {
- var elTarget = YAHOO.util.Event.getTarget(e);
- var elTag = elTarget.tagName.toLowerCase();
-
- // How many rows per page
- var oldRowsPerPage = oSelf.rowsPerPage;
- var rowsPerPage = parseInt(elTarget[elTarget.selectedIndex].text,10);
- if(rowsPerPage && (rowsPerPage != oSelf.rowsPerPage)) {
- if(rowsPerPage > oldRowsPerPage) {
- oSelf.pageCurrent = 1;
- }
- oSelf.rowsPerPage = rowsPerPage;
- oSelf.paginateRows();
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private Custom Event Handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles row delete events.
- *
- * @method _onRowDelete
- * @param oArgs.rowIndexes {Number[]} The indexes of the deleted rows.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onRowDelete = function(oArgs) {
- this._restripeRows();
-};
-
-/**
- * Passes along recordSetUpdate Event when recordUpdateEvent is caught from RecordSet.
- *
- * @event _onRecordUpdate
- * @param oArgs.record {YAHOO.widget.Record} The Record instance.
- * @param oArgs.key {String} The Record key.
- * @param oArgs.newData {Object} New data.
- * @param oArgs.oldData {Object} New data.
- * @private
- */
-YAHOO.widget.DataTable.prototype._onRecordUpdate = function(oArgs) {
- this.fireEvent("recordSetUpdateEvent",oArgs);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * DataSource instance.
- *
- * @property dataSource
- * @type YAHOO.util.DataSource
- */
-YAHOO.widget.DataTable.prototype.dataSource = null;
-
-/**
- * Initial request to send to DataSource.
- *
- * @property initialRequest
- * @type String
- * @default ""
- */
-YAHOO.widget.DataTable.prototype.initialRequest = "";
-
-/**
- * Defines value of CAPTION attribute.
- *
- * @property caption
- * @type String
- */
-YAHOO.widget.DataTable.prototype.caption = null;
-
-/**
- * Defines value of SUMMARY attribute.
- *
- * @property summary
- * @type String
- */
-YAHOO.widget.DataTable.prototype.summary = null;
-
-/**
- * True if DataTable's width is a fixed size.
- *
- * @property fixedWidth
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.fixedWidth = false;
-
-/**
- * True if TBODY should scroll while THEAD remains fixed.
- *
- * @property scrollable
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.scrollable = false;
-
-/**
- * True if only one row may be selected at a time.
- *
- * @property rowSingleSelect
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataTable.prototype.rowSingleSelect = false;
-
-/**
- * ContextMenu instance.
- *
- * @property contextMenu
- * @type YAHOO.widget.ContextMenu
- */
-YAHOO.widget.DataTable.prototype.contextMenu = null;
-
-/**
- * Current page number.
- *
- * @property pageCurrent
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.pageCurrent = 1;
-
-/**
- * Rows per page.
- *
- * @property rowsPerPage
- * @type Number
- * @default 500
- */
-YAHOO.widget.DataTable.prototype.rowsPerPage = 500;
-
-/**
- * Record index of first row of current page.
- *
- * @property startRecordIndex
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.startRecordIndex = 1;
-
-/**
- * Maximum number of pagination page links to show. Any page links beyond this number are
- * available through the "<" and ">" links. A negative value will display all page links.
- *
- * @property pageLinksLength
- * @type Number
- * @default -1
- */
-YAHOO.widget.DataTable.prototype.pageLinksLength = -1;
-
-/**
- * Options to show in the rows-per-page pagination dropdown, should be an array
- * of numbers. Null or an empty array causes no dropdown to be displayed.
- *
- * @property rowsPerPageDropdown
- * @type Number[]
- */
-YAHOO.widget.DataTable.prototype.rowsPerPageDropdown = null;
-
-/**
- * First pagination page link.
- *
- * @property pageLinksStart
- * @type Number
- * @default 1
- */
-YAHOO.widget.DataTable.prototype.pageLinksStart = 1;
-
-/**
- * An array of DIV elements into which pagination elements can go.
- *
- * @property pagers
- * @type HTMLElement[]
- */
-YAHOO.widget.DataTable.prototype.pagers = null;
-
-/**
- * True if the DataTable is empty of data. False if DataTable is populated with
- * data from RecordSet.
- *
- * @property isEmpty
- * @type Boolean
- */
-YAHOO.widget.DataTable.prototype.isEmpty = false;
-
-/**
- * Object literal holds sort metadata:
- * sortedBy.colKey
- * sortedBy.dir
- *
- *
- * @property sortedBy
- * @type Object
- */
-YAHOO.widget.DataTable.prototype.sortedBy = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance.
- */
-
-YAHOO.widget.DataTable.prototype.toString = function() {
- return "DataTable " + this._sName;
-};
-
-/**
- * Returns element reference to TABLE.
- *
- * @method getTable
- * @return {HTMLElement} Reference to TABLE element.
- */
-YAHOO.widget.DataTable.prototype.getTable = function() {
- return(this._elTable);
-};
-
-/**
- * Returns element reference to THEAD.
- *
- * @method getHead
- * @return {HTMLElement} Reference to THEAD element.
- */
-YAHOO.widget.DataTable.prototype.getHead = function() {
- return(this._elHead);
-};
-
-/**
- * Returns element reference to TBODY.
- *
- * @method getBody
- * @return {HTMLElement} Reference to TBODY element.
- */
-YAHOO.widget.DataTable.prototype.getBody = function() {
- return(this._elBody);
-};
-
-/**
- * Returns element reference to given TR cell.
- *
- * @method getRow
- * @param index {Number} Row number.
- * @return {HTMLElement} Reference to TR element.
- */
-YAHOO.widget.DataTable.prototype.getRow = function(index) {
- return(this._elBody.rows[index]);
-};
-
-/**
- * Returns element reference to given TD cell.
- *
- * @method getCell
- * @param row {Number} Row number.
- * @param col {Number} Column number.
- * @return {HTMLElement} Reference to TD element.
- */
-YAHOO.widget.DataTable.prototype.getCell = function(row, col) {
- return(this._elBody.rows[row].cells[col]);
-};
-
-/**
- * Placeholder row to indicate table data is empty.
- *
- * @method showEmptyMessage
- */
-YAHOO.widget.DataTable.prototype.showEmptyMessage = function() {
- if(this.isEmpty) {
- return;
- }
- if(this.isLoading) {
- this.hideTableMessages();
- }
-
- this._elMsgBody.style.display = "";
- var elCell = this._elMsgCell;
- elCell.className = YAHOO.widget.DataTable.CLASS_EMPTY;
- elCell.innerHTML = YAHOO.widget.DataTable.MSG_EMPTY;
- this.isEmpty = true;
-};
-
-/**
- * Placeholder row to indicate table data is loading.
- *
- * @method showLoadingMessage
- */
-YAHOO.widget.DataTable.prototype.showLoadingMessage = function() {
- if(this.isLoading) {
- return;
- }
- if(this.isEmpty) {
- this.hideTableMessages();
- }
-
- this._elMsgBody.style.display = "";
- var elCell = this._elMsgCell;
- elCell.className = YAHOO.widget.DataTable.CLASS_LOADING;
- elCell.innerHTML = YAHOO.widget.DataTable.MSG_LOADING;
- this.isLoading = true;
-};
-
-/**
- * Hide any placeholder message row.
- *
- * @method hideTableMessages
- */
-YAHOO.widget.DataTable.prototype.hideTableMessages = function() {
- if(!this.isEmpty && !this.isLoading) {
- return;
- }
-
- this._elMsgBody.style.display = "none";
-
- this.isEmpty = false;
- this.isLoading = false;
-};
-
-/**
- * Sets focus on the TABLE element.
- *
- * @method focusTable
- */
-YAHOO.widget.DataTable.prototype.focusTable = function() {
- var elTable = this._elTable;
- if(!this._bFocused) {
- // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
- // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
- // strange unexpected things as the user clicks on buttons and other controls.
- setTimeout(function() { elTable.focus(); },0);
- this._bFocused = true;
- this.fireEvent("tableFocusEvent");
- }
-};
-
-/**
- * Overridable method gives implementers a hook to access data before
- * it gets added to RecordSet and rendered to the TBODY.
- *
- * @method doBeforeLoadData
- * @param sRequest {String} Original request.
- * @param oResponse {Object} Response object.
- * @return {Boolean} Return true to continue loading data into RecordSet and
- * updating DataTable with new Records, false to cancel.
- */
-YAHOO.widget.DataTable.prototype.doBeforeLoadData = function(sRequest, oResponse) {
- return true;
-};
-
-/**
- * Add rows to bottom of table body.
- *
- * @method appendRow
- * @param aRecords {YAHOO.widget.Record[]} Array of Records.
- */
-YAHOO.widget.DataTable.prototype.appendRows = function(aRecords) {
- if(aRecords && aRecords.length > 0) {
- this.hideTableMessages();
-
- var rowIds = [];
- for(var i=0; i 0) {
- this.hideTableMessages();
-
- var rowIds = [];
- for(var i=0; i 0) {
- this.hideTableMessages();
-
- var elBody = this._elBody;
- var elRows = this._elBody.rows;
-
- // Remove extra rows
- while(elBody.hasChildNodes() && (elRows.length > aRecords.length)) {
- elBody.deleteRow(0);
- }
-
- // Unselect rows in the UI but keep tracking selected rows
- var selectedRecords = this.getSelectedRecordIds();
- if(selectedRecords.length > 0) {
- this._unselectAllRows();
- }
-
- var rowIds = [];
- // Format in-place existing rows
- for(i=0; i -1)) {
- tracker.splice(tracker.indexOf(id),1);
- }
- // ...or do it the old-fashioned way
- else {
- for(var j=0; j -1)) {
- tracker.splice(tracker.indexOf(id),1);
- }
- // ...or do it the old-fashioned way
- else {
- for(var j=0; j this._totalPages)) {
- nPage = 1;
- }
- this.pageCurrent = nPage;
- this.paginateRows();
-};
-
-/**
- * If pagination is enabled, paginates all data in RecordSet and renders
- * paginator UI, others renders normal TBODY without any paginator UI.
- *
- * @method paginateRows
- */
-YAHOO.widget.DataTable.prototype.paginateRows = function() {
- var i;
-
- // How many total Records
- var recordsLength = this._oRecordSet.getLength();
-
- // How many rows this page
- var maxRows = (this.rowsPerPage < recordsLength) ?
- this.rowsPerPage : recordsLength;
-
- // How many total pages
- this._totalPages = Math.ceil(recordsLength / maxRows);
-
- // First row of this page
- this.startRecordIndex = (this.pageCurrent-1) * this.rowsPerPage;
-
- // How many page links to display
- var pageLinksLength =
- ((this.pageLinksLength > 0) && (this.pageLinksLength < this._totalPages)) ?
- this.pageLinksLength : this._totalPages;
-
- // First link of this page
- this.pageLinksStart = (Math.ceil(this.pageCurrent/pageLinksLength-1) * pageLinksLength) + 1;
-
- // Show Records for this page
- var pageRecords = this._oRecordSet.getRecords(this.startRecordIndex, this.rowsPerPage);
- this.replaceRows(pageRecords);
-
- if(this.rowsPerPage < recordsLength) {
- // Markup for page links
- var isFirstPage = (this.pageCurrent == 1) ? true : false;
- var isLastPage = (this.pageCurrent == this._totalPages) ? true : false;
- var firstPageLink = (isFirstPage) ?
- " << " :
- " << ";
- var prevPageLink = (isFirstPage) ?
- " < " :
- " < " ;
- var nextPageLink = (isLastPage) ?
- " > " :
- " > " ;
- var lastPageLink = (isLastPage) ?
- " >> " :
- " >> ";
- var markup = firstPageLink + prevPageLink;
- var maxLinks = (this.pageLinksStart+pageLinksLength < this._totalPages) ?
- this.pageLinksStart+pageLinksLength-1 : this._totalPages;
- for(i=this.pageLinksStart; i<=maxLinks; i++) {
- if(i != this.pageCurrent) {
- markup += " " + i + " ";
- }
- else {
- markup += " " + i + " ";
- }
- }
- markup += nextPageLink + lastPageLink;
-
- // Markup for rows-per-page dropdowns
- var dropdown = this.rowsPerPageDropdown;
- var select1, select2;
- if(dropdown && (dropdown.constructor == Array) && (dropdown.length > 0)) {
- select1 = document.createElement("select");
- select1.className = YAHOO.widget.DataTable.CLASS_PAGESELECT;
- select2 = document.createElement("select");
- select2.className = YAHOO.widget.DataTable.CLASS_PAGESELECT;
-
- for(i=0; i nodeLevelMaxChildren) {
- nodeLevelMaxChildren = tmpMax;
- }
- }
- };
- recurseChildren(nodeList);
-
- // Parse each node for attributes and any children
- for(var j=0; j 0) {
- // Children of siblings increase the rowspan of the Column
- oColumn._rowspan += nodeLevelMaxChildren;
- //if(oColumn.key) {
- oColumn._index = keys.length;
- keys.push(oColumn);
- //}
- }
- // This entire node level does not have any children
- else {
- //if(oColumn.key) {
- oColumn._index = keys.length;
- keys.push(oColumn);
- //}
- }
-
- // Add the Column to the top-down tree
- tree[nodelevel].push(oColumn);
- }
- nodelevel--;
- };
-
- // Do the parsing
- if(aHeaders.length > 0) {
- parseColumns(aHeaders);
- }
-
- // Store header nesting in an array
- var recurseAncestors = function(i, oColumn) {
- headers[i].push(oColumn._id);
- if(oColumn._parent) {
- recurseAncestors(i, oColumn._parent);
- }
- };
- for(var i=0; i"+oData.toString()+"" : "";
- classname = YAHOO.widget.DataTable.CLASS_STRING;
- break;
- }
-
- YAHOO.util.Dom.addClass(elCell, classname);
- if(this.className) {
- YAHOO.util.Dom.addClass(elCell, this.className);
- }
- }
-
- if(this.editor) {
- YAHOO.util.Dom.addClass(elCell,YAHOO.widget.DataTable.CLASS_EDITABLE);
- }
-};
-
-
-/**
- * Formats cells in Columns of type "checkbox".
- *
- * @method formatCheckbox
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatCheckbox = function(elCell, oRecord, oColumn, oData) {
- var bChecked = oData;
- bChecked = (bChecked) ? " checked" : "";
- elCell.innerHTML = " ";
-};
-
-/**
- * Formats cells in Columns of type "currency". Can be overridden for custom formatting.
- *
- * @method formatCurrency
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatCurrency = function(elCell, oRecord, oColumn, oData) {
- // Make it dollars
- var nAmount = oData;
- var markup;
- if(nAmount) {
- markup = "$"+nAmount;
-
- // Normalize to the penny
- var dotIndex = markup.indexOf(".");
- if(dotIndex < 0) {
- markup += ".00";
- }
- else {
- while(dotIndex != markup.length-3) {
- markup += "0";
- }
- }
- }
- else {
- markup = "";
- }
- elCell.innerHTML = markup;
-};
-
-/**
- * Formats cells in Columns of type "date".
- *
- * @method formatDate
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatDate = function(elCell, oRecord, oColumn, oData) {
- var oDate = oData;
- if(oDate) {
- elCell.innerHTML = oDate.getMonth() + "/" + oDate.getDate() + "/" + oDate.getFullYear();
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "email".
- *
- * @method formatEmail
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatEmail = function(elCell, oRecord, oColumn, oData) {
- var sEmail = oData;
- if(sEmail) {
- elCell.innerHTML = "" + sEmail + " ";
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "link".
- *
- * @method formatLink
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatLink = function(elCell, oRecord, oColumn, oData) {
- var sLink = oData;
- if(sLink) {
- elCell.innerHTML = "" + sLink + " ";
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "number".
- *
- * @method formatNumber
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatNumber = function(elCell, oRecord, oColumn, oData) {
- var nNumber = oData;
- if(nNumber) {
- elCell.innerHTML = nNumber.toString();
- }
- else {
- elCell.innerHTML = "";
- }
-};
-
-/**
- * Formats cells in Columns of type "select".
- *
- * @method formatSelect
- * @param elCell {HTMLElement} Table cell element.
- * @param oRecord {YAHOO.widget.Record} Record instance.
- * @param oColumn {YAHOO.widget.Column} Column instance.
- * @param oData {Object} Data value for the cell, or null
- * @static
- */
-YAHOO.widget.Column.formatSelect = function(elCell, oRecord, oColumn, oData) {
- var selectedValue = oData;
- var options = oColumn.selectOptions;
-
- var markup = "";
- if(options) {
- for(var i=0; i" + option + "";
- }
- }
- else {
- if(selectedValue) {
- markup += "" + selectedValue + " ";
- }
- }
- markup += " ";
- elCell.innerHTML = markup;
-};
-
-/**
- * Takes innerHTML from TD and parses out data for storage in RecordSet.
- *
- * @method parse
- * @param sMarkup {String} The TD's innerHTML value.
- * @return {Object} Data.
- */
-YAHOO.widget.Column.prototype.parse = function(sMarkup) {
- if(this.parser) {
- return this.parser(sMarkup);
- }
- else {
- var data = null;
- switch(this.type) {
- case "checkbox":
- data = YAHOO.widget.Column.parseCheckbox(sMarkup);
- break;
- case "currency":
- data = YAHOO.widget.Column.parseCurrency(sMarkup);
- break;
- case "date":
- data = YAHOO.widget.Column.parseDate(sMarkup);
- break;
- case "number":
- data = YAHOO.widget.Column.parseNumber(sMarkup);
- break;
- case "select":
- data = YAHOO.widget.Column.parseSelect(sMarkup);
- break;
- default:
- if(sMarkup) {
- data = sMarkup;
- }
- break;
- }
- return data;
- }
-};
-
-/**
- * Default parse function for Columns of type "checkbox" takes markup and
- * extracts data. Can be overridden for custom parsing.
- *
- * @method parseCheckbox
- * @param sMarkup
- * @return {bChecked} True if checkbox is checked.
- */
-YAHOO.widget.Column.parseCheckbox = function(sMarkup) {
- return (sMarkup.indexOf("checked") < 0) ? false : true;
-};
-
-/**
- * Default parse function for Columns of type "currency" takes markup and
- * extracts data. Can be overridden for custom parsing.
- *
- * @method parseCurrency
- * @param sMarkup
- * @return {nAmount} Floating point amount.
- */
-YAHOO.widget.Column.parseCurrency = function(sMarkup) {
- return parseFloat(sMarkup.substring(1));
-};
-
-/**
- * Default parse function for Columns of type "date" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseDate
- * @param sMarkup
- * @return {oDate} Date instance.
- */
-YAHOO.widget.Column.parseDate = function(sMarkup) {
- var mm = sMarkup.substring(0,sMarkup.indexOf("/"));
- sMarkup = sMarkup.substring(sMarkup.indexOf("/")+1);
- var dd = sMarkup.substring(0,sMarkup.indexOf("/"));
- var yy = sMarkup.substring(sMarkup.indexOf("/")+1);
- return new Date(yy, mm, dd);
-};
-
-/**
- * Default parse function for Columns of type "number" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseNumber
- * @param sMarkup
- * @return {nNumber} Number.
- */
-YAHOO.widget.Column.parseNumber = function(sMarkup) {
- return parseFloat(sMarkup);
-};
-
-/**
- * Default parse function for Columns of type "select" takes markup and extracts
- * data. Can be overridden for custom parsing.
- *
- * @method parseSelect
- * @param sMarkup
- * @return {sValue} Value of selected option.
- */
-YAHOO.widget.Column.parseSelect = function(sMarkup) {
- //return (sMarkup.indexOf("checked") < 0) ? false : true;
-};
-
-/**
- * Outputs editor markup into the given TD based on given Record.
- *
- * @method showEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @return YAHOO.widget.ColumnEditor
- */
-YAHOO.widget.Column.prototype.getEditor = function(elCell, oRecord) {
-//Sync up the arg signature for ColumnEditor constructor and show()
- var oEditor = this.editor;
- if(oEditor.constructor == String) {
- oEditor = new YAHOO.widget.ColumnEditor(this.editor);
- oEditor.show(elCell, oRecord, this);
- this.editor = oEditor;
- }
- else if(oEditor instanceof YAHOO.widget.ColumnEditor) {
- oEditor.show(elCell, oRecord, this);
- }
- return oEditor;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The ColumnEditor defines and manages inline editing functionality for a
- * DataTable Column.
- *
- * @class ColumnEditor
- * @constructor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- * @parem sType {String} Type identifier
- */
-YAHOO.widget.ColumnEditor = function(sType) {
- this.type = sType;
-
- //TODO: make sure ColumnEditors get destroyed if widget gets destroyed
- // Works better to attach ColumnEditor to document.body
- // rather than the DataTable container
- // elTable comes in as a cell. Traverse up DOM to find the table.
- // TODO: safety net in case table is never found.
- //while(elCell.nodeName.toLowerCase() != "table") {
- // elCell = elCell.parentNode;
- //}
- //this.tableContainer = elCell.parentNode;
-
- var container = document.body.appendChild(document.createElement("div"));//this.tableContainer.appendChild(document.createElement("div"));
- container.style.position = "absolute";
- container.style.zIndex = 9000;
- container.id = "yui-dt-coled" + YAHOO.widget.ColumnEditor._nCount;
- this.container = container;
-
- switch(this.type) {
- case "textbox":
- this.createTextboxEditor();
- break;
- case "textarea":
- this.createTextareaEditor();
- break;
- default:
- break;
- }
-
- YAHOO.widget.ColumnEditor._nCount++;
-};
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal instance counter.
- *
- * @property _nCount
- * @type Number
- * @static
- * @default 0
- */
-YAHOO.widget.ColumnEditor._nCount =0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Reference to the container DOM element for the ColumnEditor.
- *
- * @property container
- * @type HTMLElement
- */
-YAHOO.widget.ColumnEditor.prototype.container = null;
-
-/**
- * Reference to the ColumnEditor's Column instance.
- *
- * @property column
- * @type YAHOO.widget.Column
- */
-YAHOO.widget.ColumnEditor.prototype.column = null;
-
-/**
- * Type of editor: "textbox", etc.
- *
- * @property type
- * @type String
- */
-YAHOO.widget.ColumnEditor.prototype.type = null;
-
-
-
-/**
- * Reference to form element(s) of the ColumnEditor.
- *
- * @property input
- * @type HTMLElement || HTMLElement[]
- */
-YAHOO.widget.ColumnEditor.prototype.input = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Shows ColumnEditor.
- *
- * @method show
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.show = function(elCell, oRecord, oColumn) {
- this.cell = elCell;
- this.record = oRecord;
- this.column = oColumn;
- switch(this.type) {
- case "textbox":
- this.showTextboxEditor(elCell, oRecord, oColumn);
- break;
- case "textarea":
- this.showTextareaEditor(elCell, oRecord, oColumn);
- break;
- default:
- break;
- }
-};
-
-/**
- * Returns ColumnEditor data value.
- *
- * @method getValue
- * @return Object
- */
-YAHOO.widget.ColumnEditor.prototype.getValue = function() {
- var value;
- switch(this.type) {
- case "textbox":
- value = this.getTextboxEditorValue();
- break;
- case "textarea":
- value = this.getTextareaEditorValue();
- break;
- default:
- break;
- }
- return value;
-};
-
-/**
- * Creates a textbox editor in the DOM.
- *
- * @method createTextboxEditor
- * @return {HTML} ???
- */
-YAHOO.widget.ColumnEditor.prototype.createTextboxEditor = function() {
- var elTextbox = this.container.appendChild(document.createElement("input"));
- // For FF bug 236791
- elTextbox.setAttribute("autocomplete","off");
- this.input = elTextbox;
-};
-
-/**
- * Creates a textarea editor in the DOM.
- *
- * @method createTextareaEditor
- * @return {HTML} ???
- */
-YAHOO.widget.ColumnEditor.prototype.createTextareaEditor = function() {
- var elTextarea = this.container.appendChild(document.createElement("textarea"));
- this.input = elTextarea;
-};
-
-/**
- * Shows ColumnEditor
- *
- * @method showTextboxEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.showTextboxEditor = function(elCell, oRecord, oColumn) {
- // Size and value
- this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px";
- this.input.style.height = (parseInt(elCell.offsetHeight,10)-7) + "px";
- this.input.value = elCell.innerHTML;
-
- // Position and show
- var x,y;
-
- // Don't use getXY for Opera
- if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) {
- x = elCell.offsetLeft;
- y = elCell.offsetTop;
- while(elCell.offsetParent) {
- x += elCell.offsetParent.offsetLeft;
- y += elCell.offsetParent.offsetTop;
- elCell = elCell.offsetParent;
- }
- }
- else {
- var xy = YAHOO.util.Dom.getXY(elCell);
- x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1;
- y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1;
- }
- this.container.style.left = x + "px";
- this.container.style.top = y + "px";
- this.container.style.display = "block";
-
- this.input.tabIndex = 0;
- this.input.focus();
- this.input.select();
-};
-
-/**
- * Shows ColumnEditor
- *
- * @method showTextareaEditor
- * @param elCell {HTMLElement} The cell to edit.
- * @param oRecord {YAHOO.widget.Record} The DataTable Record of the cell.
- * @param oColumn {YAHOO.widget.Column} The DataTable Column of the cell.
- */
-YAHOO.widget.ColumnEditor.prototype.showTextareaEditor = function(elCell, oRecord, oColumn) {
- // Size and value
- this.input.style.width = (parseInt(elCell.offsetWidth,10)-7) + "px";
- this.input.style.height = 4*(parseInt(elCell.offsetHeight,10)-7) + "px";
- this.input.value = elCell.innerHTML;
-
- // Position and show
- var x,y;
-
- // Don't use getXY for Opera
- if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) {
- x = elCell.offsetLeft;
- y = elCell.offsetTop;
- while(elCell.offsetParent) {
- x += elCell.offsetParent.offsetLeft;
- y += elCell.offsetParent.offsetTop;
- elCell = elCell.offsetParent;
- }
- }
- else {
- var xy = YAHOO.util.Dom.getXY(elCell);
- x = parseInt(YAHOO.util.Dom.getX(elCell),10);//xy[0] + 1;
- y = parseInt(YAHOO.util.Dom.getY(elCell),10);//xy[1] + 1;
- }
- this.container.style.left = x + "px";
- this.container.style.top = y + "px";
- this.container.style.display = "block";
-
- this.input.tabIndex = 0;
- this.input.focus();
- this.input.select();
-};
-
-/**
- * Hides ColumnEditor
- *
- * @method hide
- */
-YAHOO.widget.ColumnEditor.prototype.hide = function() {
- this.input.tabIndex = -1;
- this.container.style.display = "none";
-};
-
-/**
- * Returns ColumnEditor value
- *
- * @method getTextboxEditorValue
- * @return String
- */
-YAHOO.widget.ColumnEditor.prototype.getTextboxEditorValue = function() {
- return this.input.value;
-};
-
-/**
- * Returns ColumnEditor value
- *
- * @method getTextareaEditorValue
- * @return String
- */
-YAHOO.widget.ColumnEditor.prototype.getTextareaEditorValue = function() {
- return this.input.value;
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Sort static utility to support Column sorting.
- *
- * @class Sort
- * @static
- */
-YAHOO.util.Sort = {
- /////////////////////////////////////////////////////////////////////////////
- //
- // Public methods
- //
- /////////////////////////////////////////////////////////////////////////////
-
- /**
- * Comparator function for sort in ascending order. String sorting is case insensitive.
- *
- * @method compareAsc
- * @param a {object} First sort argument.
- * @param b {object} Second sort argument.
- */
- compareAsc: function(a, b) {
- //TODO: is typeof better or is constructor property better?
- if(a.constructor == String) {
- a = a.toLowerCase();
- }
- if(b.constructor == String) {
- b = b.toLowerCase();
- }
- if(a < b) {
- return -1;
- }
- else if (a > b) {
- return 1;
- }
- else {
- return 0;
- }
- },
-
- /**
- * Comparator function for sort in descending order. String sorting is case insensitive.
- *
- * @method compareDesc
- * @param a {object} First sort argument.
- * @param b {object} Second sort argument.
- */
- compareDesc: function(a, b) {
- //TODO: is typeof better or is constructor property better?
- if(a.constructor == String) {
- a = a.toLowerCase();
- }
- if(b.constructor == String) {
- b = b.toLowerCase();
- }
- if(a < b) {
- return 1;
- }
- else if (a > b) {
- return -1;
- }
- else {
- return 0;
- }
- }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * WidthResizer subclasses DragDrop to support resizeable Columns.
- *
- * @class WidthResizer
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param colElId {string} ID of the Column's TH element being resized
- * @param handleElId {string} ID of the handle element that causes the resize
- * @param sGroup {string} Group name of related DragDrop items
- */
-YAHOO.util.WidthResizer = function(oDataTable, colId, handleId, sGroup, config) {
- if (colId) {
- this.cell = YAHOO.util.Dom.get(colId);
- this.init(handleId, sGroup, config);
- //this.initFrame();
- this.datatable = oDataTable;
- this.setYConstraint(0,0);
- }
- else {
- }
-};
-
-if(YAHOO.util.DD) {
- YAHOO.extend(YAHOO.util.WidthResizer, YAHOO.util.DD);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public DOM event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles mousedown events on the Column resizer.
- *
- * @method onMouseDown
- * @param e {string} The mousedown event
- */
-YAHOO.util.WidthResizer.prototype.onMouseDown = function(e) {
- this.startWidth = this.cell.offsetWidth;
- this.startPos = YAHOO.util.Dom.getX(this.getDragEl());
-
- if(this.datatable.fixedwidth) {
- var cellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",this.cell)[0];
- this.minWidth = cellText.offsetWidth + 6;
- var sib = this.cell.nextSibling;
- var sibCellText = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.DataTable.CLASS_COLUMNTEXT,"span",sib)[0];
- this.sibMinWidth = sibCellText.offsetWidth + 6;
-//!!
- var left = ((this.startWidth - this.minWidth) < 0) ? 0 : (this.startWidth - this.minWidth);
- var right = ((sib.offsetWidth - this.sibMinWidth) < 0) ? 0 : (sib.offsetWidth - this.sibMinWidth);
- this.setXConstraint(left, right);
- }
-
-};
-
-/**
- * Handles mouseup events on the Column resizer.
- *
- * @method onMouseUp
- * @param e {string} The mouseup event
- */
-YAHOO.util.WidthResizer.prototype.onMouseUp = function(e) {
- //TODO: replace the resizer where it belongs:
- var resizeStyle = YAHOO.util.Dom.get(this.handleElId).style;
- resizeStyle.left = "auto";
- resizeStyle.right = 0;
- resizeStyle.marginRight = "-6px";
- resizeStyle.width = "6px";
- //.yui-dt-headresizer {position:absolute;margin-right:-6px;right:0;bottom:0;width:6px;height:100%;cursor:w-resize;cursor:col-resize;}
-
-
- //var cells = this.datatable._elTable.tHead.rows[this.datatable._elTable.tHead.rows.length-1].cells;
- //for(var i=0; i0; i--) {
- record = this._records[i];
- if(record && (record.extid == extId)) {
- return record;
- }
- }
- return null;
-
-};*/
-
-/**
- * Updates given Record at given key with given data.
- *
- * @method updateRecord
- * @param oRecord {YAHOO.widget.Record} A Record instance.
- * @param sKey {String} Key.
- * @param oData {Object) New data.
- */
-YAHOO.widget.RecordSet.prototype.updateRecord = function(oRecord, sKey, oData) {
- var oldData = oRecord[sKey];
- oRecord[sKey] = oData;
- this.fireEvent("recordUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
-};
-
-/**
- * Adds one Record to the RecordSet at the given index. If index is null,
- * then adds the Record to the end of the RecordSet.
- *
- * @method addRecord
- * @param oObjectLiteral {Object} An object literal of data.
- * @param index {Number} (optional) Position index.
- * @return {YAHOO.widget.Record} A Record instance.
- */
-YAHOO.widget.RecordSet.prototype.addRecord = function(oObjectLiteral, index) {
- if(oObjectLiteral) {
- var oRecord = new YAHOO.widget.Record(oObjectLiteral);
- if(!isNaN(index) && (index > -1)) {
- this._records.splice(index,0,oRecord);
- }
- else {
- this._records.push(oRecord);
- }
- this._length++;
- return oRecord;
- }
- else {
- return null;
- }
-};
-
-/**
- * Adds multiple Records to the RecordSet at the given index. If index is null,
- * then adds the Records to the end of the RecordSet.
- *
- * @method addRecords
- * @param data {Object[]} An array of object literal data.
- * @param index {Number} (optional) Position index.
- * @return {YAHOO.widget.Record} An array of Record instances.
- */
-YAHOO.widget.RecordSet.prototype.addRecords = function(data, index) {
- if(data) {
- if(data.constructor == Array) {
- var newRecords = [];
- // Can't go backwards bc we need to preserve order
- for(var i=0; i-1; i--) {
- var record = this.addRecord(data[i], 0);
- newRecords.push(record);
- }
- return newRecords;
- }
- else if(data.constructor == Object) {
- return this.addRecord(data, 0);
- }
- }
- else {
- return null;
- }
-};
-
-/**
- * Replaces all Records in RecordSet with new data.
- *
- * @method replace
- * @param data {Object || Object[]} An object literal or array or data.
- * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record or array of Records.
- */
-YAHOO.widget.RecordSet.prototype.replace = function(data) {
- if(data) {
- this.reset();
- return this.append(data);
- }
- else {
- return null;
- }
-};
-
-/**
- * Sorts RecordSet by given function.
- *
- * @method sort
- * @param fnSort {Function} Reference to a sort function.
- * @return {Array} Sorted array of Records
- */
-YAHOO.widget.RecordSet.prototype.sort = function(fnSort) {
- return this._records.sort(fnSort);
-};
-
-
-/**
- * Removes the record at the given index from the RecordSet. If a range is
- * given, starts at the given index and removes all records in the range.
- *
- * @method deleteRecord
- * @param i {Number} Record index
- * @param range {Number} (optional) Range of records to remove, or null.
- */
-YAHOO.widget.RecordSet.prototype.deleteRecord = function(i, range) {
- if(!range || isNaN(range)) {
- range = 1;
- }
- if(i && !isNaN(i)) {
- this._records.splice(i, range);
- this._length = this._length - range;
- }
-};
-
-/**
- * Removes all Records from the RecordSet.
- *
- * @method reset
- */
-YAHOO.widget.RecordSet.prototype.reset = function() {
- this._records = [];
- this._length = 0;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The Record class defines a DataTable record.
- *
- * @class Record
- * @constructor
- * @param oConfigs {Object} (optional) Object literal of key/value pairs.
- */
-YAHOO.widget.Record = function(oLiteral) {
- if(typeof oLiteral == "object") {
- for(var sKey in oLiteral) {
- if(sKey) {
- this[sKey] = oLiteral[sKey];
- }
- }
- }
- this.id = "yui-dtrec"+YAHOO.widget.Record._nCount;
- YAHOO.widget.Record._nCount++;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple data table instances.
- *
- * @property _nCount
- * @type number
- * @private
- * @static
- */
-YAHOO.widget.Record._nCount = 0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Unique name assigned at instantation, indicates original order.
- *
- * @property id
- * @type string
- */
-YAHOO.widget.Record.prototype.id = null;
-
-YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/dom/README b/interface/ispconfig/interface/js/yui/dom/README
deleted file mode 100644
index c4b310432116795eb17205e213ed7c2dd245c97f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dom/README
+++ /dev/null
@@ -1,79 +0,0 @@
-Dom Release Notes
-
-** version 2.2.0 **
-* no change
-
-
-*** version 0.12.2 ***
-* no change
-
-*** version 0.12.1 ***
-
-* getElementsByClassName no longer reverts to document when "root" not found
-* setXY no longer makes a second call to getXY unless noRetry is false
-* minified version no longer strips line breaks
-
-*** version 0.12.0 ***
-
-* fixed getXY for IE null parent
-* branching set/getStyle at load time instead of run time
-
-*** version 0.11.3 ***
-
-* fixed getX and getY returning incorrect values for collections
-* fixed getXY incorrectly calculated for Opera inline elements
-* fixed isAncestor failure in safari when 2nd arg is document.documentElement
-* fixed infinite loop in replaceClass when oldClassName == newClassName
-* getDocumentWidth no longer includes scrollbars
-
-
-*** version 0.11.2 ***
-* limit depth of parent.document crawl to 1 for getXY
-* test offsetParent instead of parentNode for getXY
-* return null if no el fo r get
-* just addClass if no class to replace for replaceClass
-
-
-*** version 0.11.1 ***
-
-* return null if el is null for get()
-* test offsetParent rather than parentNode for getXY()
-* limit depth of parent.document crawl for IE getXY() to 1
-* if no oldClassName to replace, just addClass for replaceClass()
-
-
-*** version 0.11.0 ***
-* Work around Opera 9 broken currentStyle
-* Removed timeout wrapper from setXY retry
-* Tagname tests now case-insensitive
-* Internal "this" references changed to allow for method shorthand
-* get/setStyle now accept both camel and hyphen case
-* Gecko reverted to crawling offsets for getXY
-
-
-*** version 0.10.0 ***
-
-* Safari now fails gracefully when querying computedStyle of an unavailable element
-
-* Class management functions added (hasClass, addClass, removeClass, replaceClass, getElementsByClassName)
-
-* All methods that accept HTMLElements or IDs now also accept arrays of HTMLElements and/or IDs
-
-* GenerateId method added
-
-* isAncestor method added
-
-* inDocument method added
-
-* getElementsBy method added
-
-* batch method added
-
-* getClientHeight/Width deprecated in favor of getViewportHeight/Width
-
-* getDocumentHeight/Width methods added
-
-*** version 0.9.0 ***
-
-* Initial release
-
diff --git a/interface/ispconfig/interface/js/yui/dom/dom-debug.js b/interface/ispconfig/interface/js/yui/dom/dom-debug.js
deleted file mode 100644
index dae66ea0b15f18cc39a00d1f94c4cb58699c6234..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dom/dom-debug.js
+++ /dev/null
@@ -1,935 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/*
-Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-*/
-
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
- var Y = YAHOO.util, // internal shorthand
- getStyle, // for load time browser branching
- setStyle, // ditto
- id_counter = 0, // for use with generateId
- propertyCache = {}; // for faster hyphen converts
-
- // brower detection
- var ua = navigator.userAgent.toLowerCase(),
- isOpera = (ua.indexOf('opera') > -1),
- isSafari = (ua.indexOf('safari') > -1),
- isGecko = (!isOpera && !isSafari && ua.indexOf('gecko') > -1),
- isIE = (!isOpera && ua.indexOf('msie') > -1);
-
- // regex cache
- var patterns = {
- HYPHEN: /(-[a-z])/i
- };
-
- var logger = {};
- logger.log = function() { YAHOO.log.apply(window, arguments); };
-
- var toCamel = function(property) {
- if ( !patterns.HYPHEN.test(property) ) {
- return property; // no hyphens
- }
-
- if (propertyCache[property]) { // already converted
- return propertyCache[property];
- }
-
- while( patterns.HYPHEN.exec(property) ) {
- property = property.replace(RegExp.$1,
- RegExp.$1.substr(1).toUpperCase());
- }
-
- propertyCache[property] = property;
- return property;
- //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug
- };
-
- // branching at load instead of runtime
- if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method
- getStyle = function(el, property) {
- var value = null;
-
- var computed = document.defaultView.getComputedStyle(el, '');
- if (computed) { // test computed before touching for safari
- value = computed[toCamel(property)];
- }
-
- return el.style[property] || value;
- };
- } else if (document.documentElement.currentStyle && isIE) { // IE method
- getStyle = function(el, property) {
- switch( toCamel(property) ) {
- case 'opacity' :// IE opacity uses filter
- var val = 100;
- try { // will error if no DXImageTransform
- val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
- } catch(e) {
- try { // make sure its in the document
- val = el.filters('alpha').opacity;
- } catch(e) {
- logger.log('getStyle: IE filter failed',
- 'error', 'Dom');
- }
- }
- return val / 100;
- break;
- default:
- // test currentStyle before touching
- var value = el.currentStyle ? el.currentStyle[property] : null;
- return ( el.style[property] || value );
- }
- };
- } else { // default to inline only
- getStyle = function(el, property) { return el.style[property]; };
- }
-
- if (isIE) {
- setStyle = function(el, property, val) {
- switch (property) {
- case 'opacity':
- if ( typeof el.style.filter == 'string' ) { // in case not appended
- el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-
- if (!el.currentStyle || !el.currentStyle.hasLayout) {
- el.style.zoom = 1; // when no layout or cant tell
- }
- }
- break;
- default:
- el.style[property] = val;
- }
- };
- } else {
- setStyle = function(el, property, val) {
- el.style[property] = val;
- };
- }
-
- /**
- * Provides helper methods for DOM elements.
- * @namespace YAHOO.util
- * @class Dom
- */
- YAHOO.util.Dom = {
- /**
- * Returns an HTMLElement reference.
- * @method get
- * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
- */
- get: function(el) {
- if (!el) { return null; } // nothing to work with
-
- if (typeof el != 'string' && !(el instanceof Array) ) { // assuming HTMLElement or HTMLCollection, so pass back as is
- logger.log('get(' + el + ') returning ' + el, 'info', 'Dom');
- return el;
- }
-
- if (typeof el == 'string') { // ID
- logger.log('get("' + el + '") returning ' + document.getElementById(el), 'info', 'Dom');
- return document.getElementById(el);
- }
- else { // array of ID's and/or elements
- var collection = [];
- for (var i = 0, len = el.length; i < len; ++i) {
- collection[collection.length] = Y.Dom.get(el[i]);
- }
-
- logger.log('get("' + el + '") returning ' + collection, 'info', 'Dom');
- return collection;
- }
-
- logger.log('element ' + el + ' not found', 'error', 'Dom');
- return null; // safety, should never happen
- },
-
- /**
- * Normalizes currentStyle and ComputedStyle.
- * @method getStyle
- * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {String} property The style property whose value is returned.
- * @return {String | Array} The current value of the style property for the element(s).
- */
- getStyle: function(el, property) {
- property = toCamel(property);
-
- var f = function(element) {
- return getStyle(element, property);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Wrapper for setting style properties of HTMLElements. Normalizes "opacity" across modern browsers.
- * @method setStyle
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {String} property The style property to be set.
- * @param {String} val The value to apply to the given property.
- */
- setStyle: function(el, property, val) {
- property = toCamel(property);
-
- var f = function(element) {
- setStyle(element, property, val);
- logger.log('setStyle setting ' + property + ' to ' + val, 'info', 'Dom');
-
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getXY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {Array} The XY position of the element(s)
- */
- getXY: function(el) {
- var f = function(el) {
-
- // has to be part of document to have pageXY
- if (el.parentNode === null || el.offsetParent === null ||
- this.getStyle(el, 'display') == 'none') {
- logger.log('getXY failed: element not available', 'error', 'Dom');
- return false;
- }
-
- var parentNode = null;
- var pos = [];
- var box;
-
- if (el.getBoundingClientRect) { // IE
- box = el.getBoundingClientRect();
- var doc = document;
- if ( !this.inDocument(el) && parent.document != document) {// might be in a frame, need to get its scroll
- doc = parent.document;
-
- if ( !this.isAncestor(doc.documentElement, el) ) {
- logger.log('getXY failed: element not available', 'error', 'Dom');
- return false;
- }
-
- }
-
- var scrollTop = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop);
- var scrollLeft = Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft);
-
- return [box.left + scrollLeft, box.top + scrollTop];
- }
- else { // safari, opera, & gecko
- pos = [el.offsetLeft, el.offsetTop];
- parentNode = el.offsetParent;
- if (parentNode != el) {
- while (parentNode) {
- pos[0] += parentNode.offsetLeft;
- pos[1] += parentNode.offsetTop;
- parentNode = parentNode.offsetParent;
- }
- }
- if (isSafari && this.getStyle(el, 'position') == 'absolute' ) { // safari doubles in some cases
- pos[0] -= document.body.offsetLeft;
- pos[1] -= document.body.offsetTop;
- }
- }
-
- if (el.parentNode) { parentNode = el.parentNode; }
- else { parentNode = null; }
-
- while (parentNode && parentNode.tagName.toUpperCase() != 'BODY' && parentNode.tagName.toUpperCase() != 'HTML')
- { // account for any scrolled ancestors
- if (Y.Dom.getStyle(parentNode, 'display') != 'inline') { // work around opera inline scrollLeft/Top bug
- pos[0] -= parentNode.scrollLeft;
- pos[1] -= parentNode.scrollTop;
- }
-
- if (parentNode.parentNode) {
- parentNode = parentNode.parentNode;
- } else { parentNode = null; }
- }
-
- logger.log('getXY returning ' + pos, 'info', 'Dom');
-
- return pos;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current X position of an element based on page coordinates. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getX
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {String | Array} The X position of the element(s)
- */
- getX: function(el) {
- var f = function(el) {
- return Y.Dom.getXY(el)[0];
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current Y position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {String | Array} The Y position of the element(s)
- */
- getY: function(el) {
- var f = function(el) {
- return Y.Dom.getXY(el)[1];
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Set the position of an html element in page coordinates, regardless of how the element is positioned.
- * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setXY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
- * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
- */
- setXY: function(el, pos, noRetry) {
- var f = function(el) {
- var style_pos = this.getStyle(el, 'position');
- if (style_pos == 'static') { // default to relative
- this.setStyle(el, 'position', 'relative');
- style_pos = 'relative';
- }
-
- var pageXY = this.getXY(el);
- if (pageXY === false) { // has to be part of doc to have pageXY
- logger.log('setXY failed: element not available', 'error', 'Dom');
- return false;
- }
-
- var delta = [ // assuming pixels; if not we will have to retry
- parseInt( this.getStyle(el, 'left'), 10 ),
- parseInt( this.getStyle(el, 'top'), 10 )
- ];
-
- if ( isNaN(delta[0]) ) {// in case of 'auto'
- delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft;
- }
- if ( isNaN(delta[1]) ) { // in case of 'auto'
- delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop;
- }
-
- if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; }
- if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; }
-
- if (!noRetry) {
- var newXY = this.getXY(el);
-
- // if retry is true, try one more time if we miss
- if ( (pos[0] !== null && newXY[0] != pos[0]) ||
- (pos[1] !== null && newXY[1] != pos[1]) ) {
- this.setXY(el, pos, true);
- }
- }
-
- logger.log('setXY setting position to ' + pos, 'info', 'Dom');
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
- * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setX
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {Int} x The value to use as the X coordinate for the element(s).
- */
- setX: function(el, x) {
- Y.Dom.setXY(el, [x, null]);
- },
-
- /**
- * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
- * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {Int} x To use as the Y coordinate for the element(s).
- */
- setY: function(el, y) {
- Y.Dom.setXY(el, [null, y]);
- },
-
- /**
- * Returns the region position of the given element.
- * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
- * @method getRegion
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
- */
- getRegion: function(el) {
- var f = function(el) {
- var region = new Y.Region.getRegion(el);
- logger.log('getRegion returning ' + region, 'info', 'Dom');
- return region;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Returns the width of the client (viewport).
- * @method getClientWidth
- * @deprecated Now using getViewportWidth. This interface left intact for back compat.
- * @return {Int} The width of the viewable area of the page.
- */
- getClientWidth: function() {
- return Y.Dom.getViewportWidth();
- },
-
- /**
- * Returns the height of the client (viewport).
- * @method getClientHeight
- * @deprecated Now using getViewportHeight. This interface left intact for back compat.
- * @return {Int} The height of the viewable area of the page.
- */
- getClientHeight: function() {
- return Y.Dom.getViewportHeight();
- },
-
- /**
- * Returns a array of HTMLElements with the given class.
- * For optimized performance, include a tag and/or root node when possible.
- * @method getElementsByClassName
- * @param {String} className The class name to match against
- * @param {String} tag (optional) The tag name of the elements being collected
- * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point
- * @return {Array} An array of elements that have the given class name
- */
- getElementsByClassName: function(className, tag, root) {
- var method = function(el) { return Y.Dom.hasClass(el, className); };
- return Y.Dom.getElementsBy(method, tag, root);
- },
-
- /**
- * Determines whether an HTMLElement has the given className.
- * @method hasClass
- * @param {String | HTMLElement | Array} el The element or collection to test
- * @param {String} className the class name to search for
- * @return {Boolean | Array} A boolean value or array of boolean values
- */
- hasClass: function(el, className) {
- var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
-
- var f = function(el) {
- logger.log('hasClass returning ' + re.test(el['className']), 'info', 'Dom');
- return re.test(el['className']);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Adds a class name to a given element or collection of elements.
- * @method addClass
- * @param {String | HTMLElement | Array} el The element or collection to add the class to
- * @param {String} className the class name to add to the class attribute
- */
- addClass: function(el, className) {
- var f = function(el) {
- if (this.hasClass(el, className)) { return; } // already present
-
- logger.log('addClass adding ' + className, 'info', 'Dom');
-
- el['className'] = [el['className'], className].join(' ');
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Removes a class name from a given element or collection of elements.
- * @method removeClass
- * @param {String | HTMLElement | Array} el The element or collection to remove the class from
- * @param {String} className the class name to remove from the class attribute
- */
- removeClass: function(el, className) {
- var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', 'g');
-
- var f = function(el) {
- if (!this.hasClass(el, className)) { return; } // not present
-
- logger.log('removeClass removing ' + className, 'info', 'Dom');
-
- var c = el['className'];
- el['className'] = c.replace(re, ' ');
- if ( this.hasClass(el, className) ) { // in case of multiple adjacent
- this.removeClass(el, className);
- }
-
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Replace a class with another class for a given element or collection of elements.
- * If no oldClassName is present, the newClassName is simply added.
- * @method replaceClass
- * @param {String | HTMLElement | Array} el The element or collection to remove the class from
- * @param {String} oldClassName the class name to be replaced
- * @param {String} newClassName the class name that will be replacing the old class name
- */
- replaceClass: function(el, oldClassName, newClassName) {
- if (oldClassName === newClassName) { // avoid infinite loop
- return false;
- }
-
- var re = new RegExp('(?:^|\\s+)' + oldClassName + '(?:\\s+|$)', 'g');
-
- var f = function(el) {
- logger.log('replaceClass replacing ' + oldClassName + ' with ' + newClassName, 'info', 'Dom');
-
- if ( !this.hasClass(el, oldClassName) ) {
- this.addClass(el, newClassName); // just add it if nothing to replace
- return; // note return
- }
-
- el['className'] = el['className'].replace(re, ' ' + newClassName + ' ');
-
- if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent
- this.replaceClass(el, oldClassName, newClassName);
- }
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Generates a unique ID
- * @method generateId
- * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
- * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
- * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
- */
- generateId: function(el, prefix) {
- prefix = prefix || 'yui-gen';
- el = el || {};
-
- var f = function(el) {
- if (el) {
- el = Y.Dom.get(el);
- } else {
- el = {}; // just generating ID in this case
- }
-
- if (!el.id) {
- el.id = prefix + id_counter++;
- logger.log('generateId generating ' + el.id, 'info', 'Dom');
- } // dont override existing
-
- logger.log('generateId returning ' + el.id, 'info', 'Dom');
-
- return el.id;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
- * @method isAncestor
- * @param {String | HTMLElement} haystack The possible ancestor
- * @param {String | HTMLElement} needle The possible descendent
- * @return {Boolean} Whether or not the haystack is an ancestor of needle
- */
- isAncestor: function(haystack, needle) {
- haystack = Y.Dom.get(haystack);
- if (!haystack || !needle) { return false; }
-
- var f = function(needle) {
- if (haystack.contains && !isSafari) { // safari "contains" is broken
- logger.log('isAncestor returning ' + haystack.contains(needle), 'info', 'Dom');
- return haystack.contains(needle);
- }
- else if ( haystack.compareDocumentPosition ) {
- logger.log('isAncestor returning ' + !!(haystack.compareDocumentPosition(needle) & 16), 'info', 'Dom');
- return !!(haystack.compareDocumentPosition(needle) & 16);
- }
- else { // loop up and test each parent
- var parent = needle.parentNode;
-
- while (parent) {
- if (parent == haystack) {
- logger.log('isAncestor returning true', 'info', 'Dom');
- return true;
- }
- else if (!parent.tagName || parent.tagName.toUpperCase() == 'HTML') {
- logger.log('isAncestor returning false', 'info', 'Dom');
- return false;
- }
-
- parent = parent.parentNode;
- }
- logger.log('isAncestor returning false', 'info', 'Dom');
- return false;
- }
- };
-
- return Y.Dom.batch(needle, f, Y.Dom, true);
- },
-
- /**
- * Determines whether an HTMLElement is present in the current document.
- * @method inDocument
- * @param {String | HTMLElement} el The element to search for
- * @return {Boolean} Whether or not the element is present in the current document
- */
- inDocument: function(el) {
- var f = function(el) {
- return this.isAncestor(document.documentElement, el);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Returns a array of HTMLElements that pass the test applied by supplied boolean method.
- * For optimized performance, include a tag and/or root node when possible.
- * @method getElementsBy
- * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-
- * @param {String} tag (optional) The tag name of the elements being collected
- * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point
- * @return {Array} Array of HTMLElements
- */
- getElementsBy: function(method, tag, root) {
- tag = tag || '*';
-
- var nodes = [];
-
- if (root) {
- root = Y.Dom.get(root);
- if (!root) { // if no root node, then no children
- return nodes;
- }
- } else {
- root = document;
- }
-
- var elements = root.getElementsByTagName(tag);
-
- if ( !elements.length && (tag == '*' && root.all) ) {
- elements = root.all; // IE < 6
- }
-
- for (var i = 0, len = elements.length; i < len; ++i) {
- if ( method(elements[i]) ) { nodes[nodes.length] = elements[i]; }
- }
-
- logger.log('getElementsBy returning ' + nodes, 'info', 'Dom');
-
- return nodes;
- },
-
- /**
- * Returns an array of elements that have had the supplied method applied.
- * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
- * @method batch
- * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
- * @param {Function} method The method to apply to the element(s)
- * @param {Any} o (optional) An optional arg that is passed to the supplied method
- * @param {Boolean} override (optional) Whether or not to override the scope of "method" with "o"
- * @return {HTMLElement | Array} The element(s) with the method applied
- */
- batch: function(el, method, o, override) {
- var id = el;
- el = Y.Dom.get(el);
-
- var scope = (override) ? o : window;
-
- if (!el || el.tagName || !el.length) { // is null or not a collection (tagName for SELECT and others that can be both an element and a collection)
- if (!el) {
- logger.log(id + ' not available', 'error', 'Dom');
- return false;
- }
- return method.call(scope, el, o);
- }
-
- var collection = [];
-
- for (var i = 0, len = el.length; i < len; ++i) {
- if (!el[i]) {
- id = el[i];
- logger.log(id + ' not available', 'error', 'Dom');
- }
- collection[collection.length] = method.call(scope, el[i], o);
- }
-
- return collection;
- },
-
- /**
- * Returns the height of the document.
- * @method getDocumentHeight
- * @return {Int} The height of the actual document (which includes the body and its margin).
- */
- getDocumentHeight: function() {
- var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
-
- var h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
- logger.log('getDocumentHeight returning ' + h, 'info', 'Dom');
- return h;
- },
-
- /**
- * Returns the width of the document.
- * @method getDocumentWidth
- * @return {Int} The width of the actual document (which includes the body and its margin).
- */
- getDocumentWidth: function() {
- var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
- var w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
- logger.log('getDocumentWidth returning ' + w, 'info', 'Dom');
- return w;
- },
-
- /**
- * Returns the current height of the viewport.
- * @method getViewportHeight
- * @return {Int} The height of the viewable area of the page (excludes scrollbars).
- */
- getViewportHeight: function() {
- var height = self.innerHeight; // Safari, Opera
- var mode = document.compatMode;
-
- if ( (mode || isIE) && !isOpera ) { // IE, Gecko
- height = (mode == 'CSS1Compat') ?
- document.documentElement.clientHeight : // Standards
- document.body.clientHeight; // Quirks
- }
-
- logger.log('getViewportHeight returning ' + height, 'info', 'Dom');
- return height;
- },
-
- /**
- * Returns the current width of the viewport.
- * @method getViewportWidth
- * @return {Int} The width of the viewable area of the page (excludes scrollbars).
- */
-
- getViewportWidth: function() {
- var width = self.innerWidth; // Safari
- var mode = document.compatMode;
-
- if (mode || isIE) { // IE, Gecko, Opera
- width = (mode == 'CSS1Compat') ?
- document.documentElement.clientWidth : // Standards
- document.body.clientWidth; // Quirks
- }
- logger.log('getViewportWidth returning ' + width, 'info', 'Dom');
- return width;
- }
- };
-})();
-/**
- * A region is a representation of an object on a grid. It is defined
- * by the top, right, bottom, left extents, so is rectangular by default. If
- * other shapes are required, this class could be extended to support it.
- * @namespace YAHOO.util
- * @class Region
- * @param {Int} t the top extent
- * @param {Int} r the right extent
- * @param {Int} b the bottom extent
- * @param {Int} l the left extent
- * @constructor
- */
-YAHOO.util.Region = function(t, r, b, l) {
-
- /**
- * The region's top extent
- * @property top
- * @type Int
- */
- this.top = t;
-
- /**
- * The region's top extent as index, for symmetry with set/getXY
- * @property 1
- * @type Int
- */
- this[1] = t;
-
- /**
- * The region's right extent
- * @property right
- * @type int
- */
- this.right = r;
-
- /**
- * The region's bottom extent
- * @property bottom
- * @type Int
- */
- this.bottom = b;
-
- /**
- * The region's left extent
- * @property left
- * @type Int
- */
- this.left = l;
-
- /**
- * The region's left extent as index, for symmetry with set/getXY
- * @property 0
- * @type Int
- */
- this[0] = l;
-};
-
-/**
- * Returns true if this region contains the region passed in
- * @method contains
- * @param {Region} region The region to evaluate
- * @return {Boolean} True if the region is contained with this region,
- * else false
- */
-YAHOO.util.Region.prototype.contains = function(region) {
- return ( region.left >= this.left &&
- region.right <= this.right &&
- region.top >= this.top &&
- region.bottom <= this.bottom );
-
- // this.logger.debug("does " + this + " contain " + region + " ... " + ret);
-};
-
-/**
- * Returns the area of the region
- * @method getArea
- * @return {Int} the region's area
- */
-YAHOO.util.Region.prototype.getArea = function() {
- return ( (this.bottom - this.top) * (this.right - this.left) );
-};
-
-/**
- * Returns the region where the passed in region overlaps with this one
- * @method intersect
- * @param {Region} region The region that intersects
- * @return {Region} The overlap region, or null if there is no overlap
- */
-YAHOO.util.Region.prototype.intersect = function(region) {
- var t = Math.max( this.top, region.top );
- var r = Math.min( this.right, region.right );
- var b = Math.min( this.bottom, region.bottom );
- var l = Math.max( this.left, region.left );
-
- if (b >= t && r >= l) {
- return new YAHOO.util.Region(t, r, b, l);
- } else {
- return null;
- }
-};
-
-/**
- * Returns the region representing the smallest region that can contain both
- * the passed in region and this region.
- * @method union
- * @param {Region} region The region that to create the union with
- * @return {Region} The union region
- */
-YAHOO.util.Region.prototype.union = function(region) {
- var t = Math.min( this.top, region.top );
- var r = Math.max( this.right, region.right );
- var b = Math.max( this.bottom, region.bottom );
- var l = Math.min( this.left, region.left );
-
- return new YAHOO.util.Region(t, r, b, l);
-};
-
-/**
- * toString
- * @method toString
- * @return string the region properties
- */
-YAHOO.util.Region.prototype.toString = function() {
- return ( "Region {" +
- "top: " + this.top +
- ", right: " + this.right +
- ", bottom: " + this.bottom +
- ", left: " + this.left +
- "}" );
-};
-
-/**
- * Returns a region that is occupied by the DOM element
- * @method getRegion
- * @param {HTMLElement} el The element
- * @return {Region} The region that the element occupies
- * @static
- */
-YAHOO.util.Region.getRegion = function(el) {
- var p = YAHOO.util.Dom.getXY(el);
-
- var t = p[1];
- var r = p[0] + el.offsetWidth;
- var b = p[1] + el.offsetHeight;
- var l = p[0];
-
- return new YAHOO.util.Region(t, r, b, l);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-
-/**
- * A point is a region that is special in that it represents a single point on
- * the grid.
- * @namespace YAHOO.util
- * @class Point
- * @param {Int} x The X position of the point
- * @param {Int} y The Y position of the point
- * @constructor
- * @extends YAHOO.util.Region
- */
-YAHOO.util.Point = function(x, y) {
- if (x instanceof Array) { // accept output from Dom.getXY
- y = x[1];
- x = x[0];
- }
-
- /**
- * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry)
- * @property x
- * @type Int
- */
-
- this.x = this.right = this.left = this[0] = x;
-
- /**
- * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry)
- * @property y
- * @type Int
- */
- this.y = this.top = this.bottom = this[1] = y;
-};
-
-YAHOO.util.Point.prototype = new YAHOO.util.Region();
-
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/dom/dom-min.js b/interface/ispconfig/interface/js/yui/dom/dom-min.js
deleted file mode 100644
index 19ea22759aa9051890aae5b9695add0115ae3686..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dom/dom-min.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;}
-if(propertyCache[property]){return propertyCache[property];}
-while(patterns.HYPHEN.exec(property)){property=property.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
-propertyCache[property]=property;return property;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];}
-return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}}
-return val/100;break;default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};}
-if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(typeof el.style.filter=='string'){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}}
-break;default:el.style[property]=val;}};}else{setStyle=function(el,property,val){el.style[property]=val;};}
-YAHOO.util.Dom={get:function(el){if(!el){return null;}
-if(typeof el!='string'&&!(el instanceof Array)){return el;}
-if(typeof el=='string'){return document.getElementById(el);}
-else{var collection=[];for(var i=0,len=el.length;i=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];}
-this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/dom/dom.js b/interface/ispconfig/interface/js/yui/dom/dom.js
deleted file mode 100644
index 18158d55e14a5744c575482729e8407abf48eaad..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dom/dom.js
+++ /dev/null
@@ -1,901 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/*
-Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-*/
-
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
- var Y = YAHOO.util, // internal shorthand
- getStyle, // for load time browser branching
- setStyle, // ditto
- id_counter = 0, // for use with generateId
- propertyCache = {}; // for faster hyphen converts
-
- // brower detection
- var ua = navigator.userAgent.toLowerCase(),
- isOpera = (ua.indexOf('opera') > -1),
- isSafari = (ua.indexOf('safari') > -1),
- isGecko = (!isOpera && !isSafari && ua.indexOf('gecko') > -1),
- isIE = (!isOpera && ua.indexOf('msie') > -1);
-
- // regex cache
- var patterns = {
- HYPHEN: /(-[a-z])/i
- };
-
-
- var toCamel = function(property) {
- if ( !patterns.HYPHEN.test(property) ) {
- return property; // no hyphens
- }
-
- if (propertyCache[property]) { // already converted
- return propertyCache[property];
- }
-
- while( patterns.HYPHEN.exec(property) ) {
- property = property.replace(RegExp.$1,
- RegExp.$1.substr(1).toUpperCase());
- }
-
- propertyCache[property] = property;
- return property;
- //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug
- };
-
- // branching at load instead of runtime
- if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method
- getStyle = function(el, property) {
- var value = null;
-
- var computed = document.defaultView.getComputedStyle(el, '');
- if (computed) { // test computed before touching for safari
- value = computed[toCamel(property)];
- }
-
- return el.style[property] || value;
- };
- } else if (document.documentElement.currentStyle && isIE) { // IE method
- getStyle = function(el, property) {
- switch( toCamel(property) ) {
- case 'opacity' :// IE opacity uses filter
- var val = 100;
- try { // will error if no DXImageTransform
- val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
- } catch(e) {
- try { // make sure its in the document
- val = el.filters('alpha').opacity;
- } catch(e) {
- }
- }
- return val / 100;
- break;
- default:
- // test currentStyle before touching
- var value = el.currentStyle ? el.currentStyle[property] : null;
- return ( el.style[property] || value );
- }
- };
- } else { // default to inline only
- getStyle = function(el, property) { return el.style[property]; };
- }
-
- if (isIE) {
- setStyle = function(el, property, val) {
- switch (property) {
- case 'opacity':
- if ( typeof el.style.filter == 'string' ) { // in case not appended
- el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-
- if (!el.currentStyle || !el.currentStyle.hasLayout) {
- el.style.zoom = 1; // when no layout or cant tell
- }
- }
- break;
- default:
- el.style[property] = val;
- }
- };
- } else {
- setStyle = function(el, property, val) {
- el.style[property] = val;
- };
- }
-
- /**
- * Provides helper methods for DOM elements.
- * @namespace YAHOO.util
- * @class Dom
- */
- YAHOO.util.Dom = {
- /**
- * Returns an HTMLElement reference.
- * @method get
- * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
- */
- get: function(el) {
- if (!el) { return null; } // nothing to work with
-
- if (typeof el != 'string' && !(el instanceof Array) ) { // assuming HTMLElement or HTMLCollection, so pass back as is
- return el;
- }
-
- if (typeof el == 'string') { // ID
- return document.getElementById(el);
- }
- else { // array of ID's and/or elements
- var collection = [];
- for (var i = 0, len = el.length; i < len; ++i) {
- collection[collection.length] = Y.Dom.get(el[i]);
- }
-
- return collection;
- }
-
- return null; // safety, should never happen
- },
-
- /**
- * Normalizes currentStyle and ComputedStyle.
- * @method getStyle
- * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {String} property The style property whose value is returned.
- * @return {String | Array} The current value of the style property for the element(s).
- */
- getStyle: function(el, property) {
- property = toCamel(property);
-
- var f = function(element) {
- return getStyle(element, property);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Wrapper for setting style properties of HTMLElements. Normalizes "opacity" across modern browsers.
- * @method setStyle
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {String} property The style property to be set.
- * @param {String} val The value to apply to the given property.
- */
- setStyle: function(el, property, val) {
- property = toCamel(property);
-
- var f = function(element) {
- setStyle(element, property, val);
-
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getXY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {Array} The XY position of the element(s)
- */
- getXY: function(el) {
- var f = function(el) {
-
- // has to be part of document to have pageXY
- if (el.parentNode === null || el.offsetParent === null ||
- this.getStyle(el, 'display') == 'none') {
- return false;
- }
-
- var parentNode = null;
- var pos = [];
- var box;
-
- if (el.getBoundingClientRect) { // IE
- box = el.getBoundingClientRect();
- var doc = document;
- if ( !this.inDocument(el) && parent.document != document) {// might be in a frame, need to get its scroll
- doc = parent.document;
-
- if ( !this.isAncestor(doc.documentElement, el) ) {
- return false;
- }
-
- }
-
- var scrollTop = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop);
- var scrollLeft = Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft);
-
- return [box.left + scrollLeft, box.top + scrollTop];
- }
- else { // safari, opera, & gecko
- pos = [el.offsetLeft, el.offsetTop];
- parentNode = el.offsetParent;
- if (parentNode != el) {
- while (parentNode) {
- pos[0] += parentNode.offsetLeft;
- pos[1] += parentNode.offsetTop;
- parentNode = parentNode.offsetParent;
- }
- }
- if (isSafari && this.getStyle(el, 'position') == 'absolute' ) { // safari doubles in some cases
- pos[0] -= document.body.offsetLeft;
- pos[1] -= document.body.offsetTop;
- }
- }
-
- if (el.parentNode) { parentNode = el.parentNode; }
- else { parentNode = null; }
-
- while (parentNode && parentNode.tagName.toUpperCase() != 'BODY' && parentNode.tagName.toUpperCase() != 'HTML')
- { // account for any scrolled ancestors
- if (Y.Dom.getStyle(parentNode, 'display') != 'inline') { // work around opera inline scrollLeft/Top bug
- pos[0] -= parentNode.scrollLeft;
- pos[1] -= parentNode.scrollTop;
- }
-
- if (parentNode.parentNode) {
- parentNode = parentNode.parentNode;
- } else { parentNode = null; }
- }
-
-
- return pos;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current X position of an element based on page coordinates. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getX
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {String | Array} The X position of the element(s)
- */
- getX: function(el) {
- var f = function(el) {
- return Y.Dom.getXY(el)[0];
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Gets the current Y position of an element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method getY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @return {String | Array} The Y position of the element(s)
- */
- getY: function(el) {
- var f = function(el) {
- return Y.Dom.getXY(el)[1];
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Set the position of an html element in page coordinates, regardless of how the element is positioned.
- * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setXY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
- * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
- * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
- */
- setXY: function(el, pos, noRetry) {
- var f = function(el) {
- var style_pos = this.getStyle(el, 'position');
- if (style_pos == 'static') { // default to relative
- this.setStyle(el, 'position', 'relative');
- style_pos = 'relative';
- }
-
- var pageXY = this.getXY(el);
- if (pageXY === false) { // has to be part of doc to have pageXY
- return false;
- }
-
- var delta = [ // assuming pixels; if not we will have to retry
- parseInt( this.getStyle(el, 'left'), 10 ),
- parseInt( this.getStyle(el, 'top'), 10 )
- ];
-
- if ( isNaN(delta[0]) ) {// in case of 'auto'
- delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft;
- }
- if ( isNaN(delta[1]) ) { // in case of 'auto'
- delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop;
- }
-
- if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; }
- if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; }
-
- if (!noRetry) {
- var newXY = this.getXY(el);
-
- // if retry is true, try one more time if we miss
- if ( (pos[0] !== null && newXY[0] != pos[0]) ||
- (pos[1] !== null && newXY[1] != pos[1]) ) {
- this.setXY(el, pos, true);
- }
- }
-
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
- * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setX
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {Int} x The value to use as the X coordinate for the element(s).
- */
- setX: function(el, x) {
- Y.Dom.setXY(el, [x, null]);
- },
-
- /**
- * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
- * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
- * @method setY
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @param {Int} x To use as the Y coordinate for the element(s).
- */
- setY: function(el, y) {
- Y.Dom.setXY(el, [null, y]);
- },
-
- /**
- * Returns the region position of the given element.
- * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
- * @method getRegion
- * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
- * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
- */
- getRegion: function(el) {
- var f = function(el) {
- var region = new Y.Region.getRegion(el);
- return region;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Returns the width of the client (viewport).
- * @method getClientWidth
- * @deprecated Now using getViewportWidth. This interface left intact for back compat.
- * @return {Int} The width of the viewable area of the page.
- */
- getClientWidth: function() {
- return Y.Dom.getViewportWidth();
- },
-
- /**
- * Returns the height of the client (viewport).
- * @method getClientHeight
- * @deprecated Now using getViewportHeight. This interface left intact for back compat.
- * @return {Int} The height of the viewable area of the page.
- */
- getClientHeight: function() {
- return Y.Dom.getViewportHeight();
- },
-
- /**
- * Returns a array of HTMLElements with the given class.
- * For optimized performance, include a tag and/or root node when possible.
- * @method getElementsByClassName
- * @param {String} className The class name to match against
- * @param {String} tag (optional) The tag name of the elements being collected
- * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point
- * @return {Array} An array of elements that have the given class name
- */
- getElementsByClassName: function(className, tag, root) {
- var method = function(el) { return Y.Dom.hasClass(el, className); };
- return Y.Dom.getElementsBy(method, tag, root);
- },
-
- /**
- * Determines whether an HTMLElement has the given className.
- * @method hasClass
- * @param {String | HTMLElement | Array} el The element or collection to test
- * @param {String} className the class name to search for
- * @return {Boolean | Array} A boolean value or array of boolean values
- */
- hasClass: function(el, className) {
- var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
-
- var f = function(el) {
- return re.test(el['className']);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Adds a class name to a given element or collection of elements.
- * @method addClass
- * @param {String | HTMLElement | Array} el The element or collection to add the class to
- * @param {String} className the class name to add to the class attribute
- */
- addClass: function(el, className) {
- var f = function(el) {
- if (this.hasClass(el, className)) { return; } // already present
-
-
- el['className'] = [el['className'], className].join(' ');
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Removes a class name from a given element or collection of elements.
- * @method removeClass
- * @param {String | HTMLElement | Array} el The element or collection to remove the class from
- * @param {String} className the class name to remove from the class attribute
- */
- removeClass: function(el, className) {
- var re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', 'g');
-
- var f = function(el) {
- if (!this.hasClass(el, className)) { return; } // not present
-
-
- var c = el['className'];
- el['className'] = c.replace(re, ' ');
- if ( this.hasClass(el, className) ) { // in case of multiple adjacent
- this.removeClass(el, className);
- }
-
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Replace a class with another class for a given element or collection of elements.
- * If no oldClassName is present, the newClassName is simply added.
- * @method replaceClass
- * @param {String | HTMLElement | Array} el The element or collection to remove the class from
- * @param {String} oldClassName the class name to be replaced
- * @param {String} newClassName the class name that will be replacing the old class name
- */
- replaceClass: function(el, oldClassName, newClassName) {
- if (oldClassName === newClassName) { // avoid infinite loop
- return false;
- }
-
- var re = new RegExp('(?:^|\\s+)' + oldClassName + '(?:\\s+|$)', 'g');
-
- var f = function(el) {
-
- if ( !this.hasClass(el, oldClassName) ) {
- this.addClass(el, newClassName); // just add it if nothing to replace
- return; // note return
- }
-
- el['className'] = el['className'].replace(re, ' ' + newClassName + ' ');
-
- if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent
- this.replaceClass(el, oldClassName, newClassName);
- }
- };
-
- Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Generates a unique ID
- * @method generateId
- * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
- * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
- * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
- */
- generateId: function(el, prefix) {
- prefix = prefix || 'yui-gen';
- el = el || {};
-
- var f = function(el) {
- if (el) {
- el = Y.Dom.get(el);
- } else {
- el = {}; // just generating ID in this case
- }
-
- if (!el.id) {
- el.id = prefix + id_counter++;
- } // dont override existing
-
-
- return el.id;
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
- * @method isAncestor
- * @param {String | HTMLElement} haystack The possible ancestor
- * @param {String | HTMLElement} needle The possible descendent
- * @return {Boolean} Whether or not the haystack is an ancestor of needle
- */
- isAncestor: function(haystack, needle) {
- haystack = Y.Dom.get(haystack);
- if (!haystack || !needle) { return false; }
-
- var f = function(needle) {
- if (haystack.contains && !isSafari) { // safari "contains" is broken
- return haystack.contains(needle);
- }
- else if ( haystack.compareDocumentPosition ) {
- return !!(haystack.compareDocumentPosition(needle) & 16);
- }
- else { // loop up and test each parent
- var parent = needle.parentNode;
-
- while (parent) {
- if (parent == haystack) {
- return true;
- }
- else if (!parent.tagName || parent.tagName.toUpperCase() == 'HTML') {
- return false;
- }
-
- parent = parent.parentNode;
- }
- return false;
- }
- };
-
- return Y.Dom.batch(needle, f, Y.Dom, true);
- },
-
- /**
- * Determines whether an HTMLElement is present in the current document.
- * @method inDocument
- * @param {String | HTMLElement} el The element to search for
- * @return {Boolean} Whether or not the element is present in the current document
- */
- inDocument: function(el) {
- var f = function(el) {
- return this.isAncestor(document.documentElement, el);
- };
-
- return Y.Dom.batch(el, f, Y.Dom, true);
- },
-
- /**
- * Returns a array of HTMLElements that pass the test applied by supplied boolean method.
- * For optimized performance, include a tag and/or root node when possible.
- * @method getElementsBy
- * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
-
- * @param {String} tag (optional) The tag name of the elements being collected
- * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point
- * @return {Array} Array of HTMLElements
- */
- getElementsBy: function(method, tag, root) {
- tag = tag || '*';
-
- var nodes = [];
-
- if (root) {
- root = Y.Dom.get(root);
- if (!root) { // if no root node, then no children
- return nodes;
- }
- } else {
- root = document;
- }
-
- var elements = root.getElementsByTagName(tag);
-
- if ( !elements.length && (tag == '*' && root.all) ) {
- elements = root.all; // IE < 6
- }
-
- for (var i = 0, len = elements.length; i < len; ++i) {
- if ( method(elements[i]) ) { nodes[nodes.length] = elements[i]; }
- }
-
-
- return nodes;
- },
-
- /**
- * Returns an array of elements that have had the supplied method applied.
- * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
- * @method batch
- * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
- * @param {Function} method The method to apply to the element(s)
- * @param {Any} o (optional) An optional arg that is passed to the supplied method
- * @param {Boolean} override (optional) Whether or not to override the scope of "method" with "o"
- * @return {HTMLElement | Array} The element(s) with the method applied
- */
- batch: function(el, method, o, override) {
- var id = el;
- el = Y.Dom.get(el);
-
- var scope = (override) ? o : window;
-
- if (!el || el.tagName || !el.length) { // is null or not a collection (tagName for SELECT and others that can be both an element and a collection)
- if (!el) {
- return false;
- }
- return method.call(scope, el, o);
- }
-
- var collection = [];
-
- for (var i = 0, len = el.length; i < len; ++i) {
- if (!el[i]) {
- id = el[i];
- }
- collection[collection.length] = method.call(scope, el[i], o);
- }
-
- return collection;
- },
-
- /**
- * Returns the height of the document.
- * @method getDocumentHeight
- * @return {Int} The height of the actual document (which includes the body and its margin).
- */
- getDocumentHeight: function() {
- var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
-
- var h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
- return h;
- },
-
- /**
- * Returns the width of the document.
- * @method getDocumentWidth
- * @return {Int} The width of the actual document (which includes the body and its margin).
- */
- getDocumentWidth: function() {
- var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
- var w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
- return w;
- },
-
- /**
- * Returns the current height of the viewport.
- * @method getViewportHeight
- * @return {Int} The height of the viewable area of the page (excludes scrollbars).
- */
- getViewportHeight: function() {
- var height = self.innerHeight; // Safari, Opera
- var mode = document.compatMode;
-
- if ( (mode || isIE) && !isOpera ) { // IE, Gecko
- height = (mode == 'CSS1Compat') ?
- document.documentElement.clientHeight : // Standards
- document.body.clientHeight; // Quirks
- }
-
- return height;
- },
-
- /**
- * Returns the current width of the viewport.
- * @method getViewportWidth
- * @return {Int} The width of the viewable area of the page (excludes scrollbars).
- */
-
- getViewportWidth: function() {
- var width = self.innerWidth; // Safari
- var mode = document.compatMode;
-
- if (mode || isIE) { // IE, Gecko, Opera
- width = (mode == 'CSS1Compat') ?
- document.documentElement.clientWidth : // Standards
- document.body.clientWidth; // Quirks
- }
- return width;
- }
- };
-})();
-/**
- * A region is a representation of an object on a grid. It is defined
- * by the top, right, bottom, left extents, so is rectangular by default. If
- * other shapes are required, this class could be extended to support it.
- * @namespace YAHOO.util
- * @class Region
- * @param {Int} t the top extent
- * @param {Int} r the right extent
- * @param {Int} b the bottom extent
- * @param {Int} l the left extent
- * @constructor
- */
-YAHOO.util.Region = function(t, r, b, l) {
-
- /**
- * The region's top extent
- * @property top
- * @type Int
- */
- this.top = t;
-
- /**
- * The region's top extent as index, for symmetry with set/getXY
- * @property 1
- * @type Int
- */
- this[1] = t;
-
- /**
- * The region's right extent
- * @property right
- * @type int
- */
- this.right = r;
-
- /**
- * The region's bottom extent
- * @property bottom
- * @type Int
- */
- this.bottom = b;
-
- /**
- * The region's left extent
- * @property left
- * @type Int
- */
- this.left = l;
-
- /**
- * The region's left extent as index, for symmetry with set/getXY
- * @property 0
- * @type Int
- */
- this[0] = l;
-};
-
-/**
- * Returns true if this region contains the region passed in
- * @method contains
- * @param {Region} region The region to evaluate
- * @return {Boolean} True if the region is contained with this region,
- * else false
- */
-YAHOO.util.Region.prototype.contains = function(region) {
- return ( region.left >= this.left &&
- region.right <= this.right &&
- region.top >= this.top &&
- region.bottom <= this.bottom );
-
-};
-
-/**
- * Returns the area of the region
- * @method getArea
- * @return {Int} the region's area
- */
-YAHOO.util.Region.prototype.getArea = function() {
- return ( (this.bottom - this.top) * (this.right - this.left) );
-};
-
-/**
- * Returns the region where the passed in region overlaps with this one
- * @method intersect
- * @param {Region} region The region that intersects
- * @return {Region} The overlap region, or null if there is no overlap
- */
-YAHOO.util.Region.prototype.intersect = function(region) {
- var t = Math.max( this.top, region.top );
- var r = Math.min( this.right, region.right );
- var b = Math.min( this.bottom, region.bottom );
- var l = Math.max( this.left, region.left );
-
- if (b >= t && r >= l) {
- return new YAHOO.util.Region(t, r, b, l);
- } else {
- return null;
- }
-};
-
-/**
- * Returns the region representing the smallest region that can contain both
- * the passed in region and this region.
- * @method union
- * @param {Region} region The region that to create the union with
- * @return {Region} The union region
- */
-YAHOO.util.Region.prototype.union = function(region) {
- var t = Math.min( this.top, region.top );
- var r = Math.max( this.right, region.right );
- var b = Math.max( this.bottom, region.bottom );
- var l = Math.min( this.left, region.left );
-
- return new YAHOO.util.Region(t, r, b, l);
-};
-
-/**
- * toString
- * @method toString
- * @return string the region properties
- */
-YAHOO.util.Region.prototype.toString = function() {
- return ( "Region {" +
- "top: " + this.top +
- ", right: " + this.right +
- ", bottom: " + this.bottom +
- ", left: " + this.left +
- "}" );
-};
-
-/**
- * Returns a region that is occupied by the DOM element
- * @method getRegion
- * @param {HTMLElement} el The element
- * @return {Region} The region that the element occupies
- * @static
- */
-YAHOO.util.Region.getRegion = function(el) {
- var p = YAHOO.util.Dom.getXY(el);
-
- var t = p[1];
- var r = p[0] + el.offsetWidth;
- var b = p[1] + el.offsetHeight;
- var l = p[0];
-
- return new YAHOO.util.Region(t, r, b, l);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-
-/**
- * A point is a region that is special in that it represents a single point on
- * the grid.
- * @namespace YAHOO.util
- * @class Point
- * @param {Int} x The X position of the point
- * @param {Int} y The Y position of the point
- * @constructor
- * @extends YAHOO.util.Region
- */
-YAHOO.util.Point = function(x, y) {
- if (x instanceof Array) { // accept output from Dom.getXY
- y = x[1];
- x = x[0];
- }
-
- /**
- * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry)
- * @property x
- * @type Int
- */
-
- this.x = this.right = this.left = this[0] = x;
-
- /**
- * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry)
- * @property y
- * @type Int
- */
- this.y = this.top = this.bottom = this[1] = y;
-};
-
-YAHOO.util.Point.prototype = new YAHOO.util.Region();
-
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/dragdrop/README b/interface/ispconfig/interface/js/yui/dragdrop/README
deleted file mode 100644
index 861174a4dada05b35851221a0c221feb301221c7..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dragdrop/README
+++ /dev/null
@@ -1,118 +0,0 @@
-Drag and Drop Release Notes
-
-2.2.0
-
- * onMouseDown event is executed before element positions are calculated
-
- * refreshCache refreshes everything if groups array is not provided
-
- * setX/setYConstraint doesn't fail when presented ints cast as strings
-
-0.12.2
-
- * No change
-
-0.12.1
-
- * Added a STRICT_INTERSECT drag and drop interaction mode. This alters the
- behavior of DDM::getBestMatch. INTERSECT mode first tests the cursor
- location, and if it is over the target that target wins, otherwise it
- tests the overlap of the elements. STRICT_INTERSECT mode tests only
- the overlap, the largest overlap wins.
-
- * getBestMatch will work for targeted elements that have no overlap.
-
-0.12.0
-
- * The logic to determine if a drag should be initiated has been isolated
- to the clickValidator method. This method can be overridden to provide
- custom valdiation logic. For example, it is possible to specify hotspots
- of any dimension or shape. The provided example shows how to make only
- a circular region in the middle of the element initiate a drag.
-
- * Added a new drag and drop event: onInvalidDrop. This is executed when
- the dragged element in dropped in a location without a target. Previously
- this condition could only detected by implementing handlers for three
- other events.
-
- * Now accepts an element reference in lieu of an id. Ids will
- be generated if the element does not have one.
-
- * Fixed horizontal autoscroll when scrollTop is zero.
-
- * Added hasOuterHandles property to bypass the isOverTarget check in the
- mousedown validation routine. Fixes setOuterHandleElId.
-
-0.11.4
-
- * YAHOO.util.DragDropMgr.swapNode now handles adjacent nodes properly
-
- * Fixed missing variable declarations
-
-0.11.3
-
- * Fixed a JavaScript error that would be generated when trying to implement
- DDProxy using the default settings and a tiny element.
-
- * Fixed an error that resulted when constraints were applied to DragDrop
- instances.
-
-0.11.2
-
- * Drag and drop will no longer interfere with selecting text on elements
- that are not involved in drag and drop.
-
- * The shared drag and drop proxy element now resizes correctly when autoResize
- is enabled.
-
-0.11.1
-
- * Fixes an issue where the setXY cache could get out of sync if the element's
- offsetParent is changed during onDragDrop.
-
-0.11.0
-
- * The Dom.util.setXY calculation for the initial placement of the dragged
- element is cached during the drag, enhancing the drag performance.
-
- * DDProxy no longer enforces having a single proxy element for all instances.
- dragElId can be set in the config object in the constructor. If the
- element already exists it will use that element, otherwise a new one will
- be created with that id.
-
- * DDProxy->borderWidth has been removed. The value is calculated on the fly
- instead.
-
- * Added DragDrop->clearTicks and DragDrop->clearConstraints
-
- * All drag and drop constructors now have an additional, optional parameter
- call "config". It is an object that can contain properties for a
- number of configuration settings.
-
- * Drag and drop will not be disabled for elements that cannot have their
- location determined.
-
- * isLegalTarget won't return dd objects that are not targetable.
-
- * Added DragDrop->removeFromGroup.
-
- * Constraints are now applied properly when determining which drag and drop
- events should fire.
-
-
-0.10.0
-
- * Improved the performance when in intersect mode
-
- * It was possible for the drag and drop initialization to be skipped
- for very slow loading pages. This was fixed.
-
- * New methods to exclude regions within your drag and drop element:
- addInvalidHandleId(), addInvalidHandleClass()
-
- * Added an onAvailable handler that is executed after the initial state is set.
-
- * Drag and drop is more forgiving when the implementer attempts to create the
- instance prior to the element being in the document, but after the window
- load event has fired.
-
diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js
deleted file mode 100644
index b06b4155c4b68f6b0014a985f142c837556acfd8..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-debug.js
+++ /dev/null
@@ -1,3068 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The drag and drop utility provides a framework for building drag and drop
- * applications. In addition to enabling drag and drop for specific elements,
- * the drag and drop elements are tracked by the manager class, and the
- * interactions between the various elements are tracked during the drag and
- * the implementing code is notified about these important moments.
- * @module dragdrop
- * @title Drag and Drop
- * @requires yahoo,dom,event
- * @namespace YAHOO.util
- */
-
-// Only load the library once. Rewriting the manager class would orphan
-// existing drag and drop instances.
-if (!YAHOO.util.DragDropMgr) {
-
-/**
- * DragDropMgr is a singleton that tracks the element interaction for
- * all DragDrop items in the window. Generally, you will not call
- * this class directly, but it does have helper methods that could
- * be useful in your DragDrop implementations.
- * @class DragDropMgr
- * @static
- */
-YAHOO.util.DragDropMgr = function() {
-
- var Event = YAHOO.util.Event;
-
- return {
-
- /**
- * Two dimensional Array of registered DragDrop objects. The first
- * dimension is the DragDrop item group, the second the DragDrop
- * object.
- * @property ids
- * @type {string: string}
- * @private
- * @static
- */
- ids: {},
-
- /**
- * Array of element ids defined as drag handles. Used to determine
- * if the element that generated the mousedown event is actually the
- * handle and not the html element itself.
- * @property handleIds
- * @type {string: string}
- * @private
- * @static
- */
- handleIds: {},
-
- /**
- * the DragDrop object that is currently being dragged
- * @property dragCurrent
- * @type DragDrop
- * @private
- * @static
- **/
- dragCurrent: null,
-
- /**
- * the DragDrop object(s) that are being hovered over
- * @property dragOvers
- * @type Array
- * @private
- * @static
- */
- dragOvers: {},
-
- /**
- * the X distance between the cursor and the object being dragged
- * @property deltaX
- * @type int
- * @private
- * @static
- */
- deltaX: 0,
-
- /**
- * the Y distance between the cursor and the object being dragged
- * @property deltaY
- * @type int
- * @private
- * @static
- */
- deltaY: 0,
-
- /**
- * Flag to determine if we should prevent the default behavior of the
- * events we define. By default this is true, but this can be set to
- * false if you need the default behavior (not recommended)
- * @property preventDefault
- * @type boolean
- * @static
- */
- preventDefault: true,
-
- /**
- * Flag to determine if we should stop the propagation of the events
- * we generate. This is true by default but you may want to set it to
- * false if the html element contains other features that require the
- * mouse click.
- * @property stopPropagation
- * @type boolean
- * @static
- */
- stopPropagation: true,
-
- /**
- * Internal flag that is set to true when drag and drop has been
- * intialized
- * @property initialized
- * @private
- * @static
- */
- initalized: false,
-
- /**
- * All drag and drop can be disabled.
- * @property locked
- * @private
- * @static
- */
- locked: false,
-
- /**
- * Called the first time an element is registered.
- * @method init
- * @private
- * @static
- */
- init: function() {
- this.logger = new YAHOO.widget.LogWriter("DragDropMgr");
- this.initialized = true;
- },
-
- /**
- * In point mode, drag and drop interaction is defined by the
- * location of the cursor during the drag/drop
- * @property POINT
- * @type int
- * @static
- * @final
- */
- POINT: 0,
-
- /**
- * In intersect mode, drag and drop interaction is defined by the
- * cursor position or the amount of overlap of two or more drag and
- * drop objects.
- * @property INTERSECT
- * @type int
- * @static
- * @final
- */
- INTERSECT: 1,
-
- /**
- * In intersect mode, drag and drop interaction is defined only by the
- * overlap of two or more drag and drop objects.
- * @property STRICT_INTERSECT
- * @type int
- * @static
- * @final
- */
- STRICT_INTERSECT: 2,
-
- /**
- * The current drag and drop mode. Default: POINT
- * @property mode
- * @type int
- * @static
- */
- mode: 0,
-
- /**
- * Runs method on all drag and drop objects
- * @method _execOnAll
- * @private
- * @static
- */
- _execOnAll: function(sMethod, args) {
- for (var i in this.ids) {
- for (var j in this.ids[i]) {
- var oDD = this.ids[i][j];
- if (! this.isTypeOfDD(oDD)) {
- continue;
- }
- oDD[sMethod].apply(oDD, args);
- }
- }
- },
-
- /**
- * Drag and drop initialization. Sets up the global event handlers
- * @method _onLoad
- * @private
- * @static
- */
- _onLoad: function() {
-
- this.init();
-
- this.logger.log("DDM onload");
-
- Event.on(document, "mouseup", this.handleMouseUp, this, true);
- Event.on(document, "mousemove", this.handleMouseMove, this, true);
- Event.on(window, "unload", this._onUnload, this, true);
- Event.on(window, "resize", this._onResize, this, true);
- // Event.on(window, "mouseout", this._test);
-
- },
-
- /**
- * Reset constraints on all drag and drop objs
- * @method _onResize
- * @private
- * @static
- */
- _onResize: function(e) {
- this.logger.log("window resize");
- this._execOnAll("resetConstraints", []);
- },
-
- /**
- * Lock all drag and drop functionality
- * @method lock
- * @static
- */
- lock: function() { this.locked = true; },
-
- /**
- * Unlock all drag and drop functionality
- * @method unlock
- * @static
- */
- unlock: function() { this.locked = false; },
-
- /**
- * Is drag and drop locked?
- * @method isLocked
- * @return {boolean} True if drag and drop is locked, false otherwise.
- * @static
- */
- isLocked: function() { return this.locked; },
-
- /**
- * Location cache that is set for all drag drop objects when a drag is
- * initiated, cleared when the drag is finished.
- * @property locationCache
- * @private
- * @static
- */
- locationCache: {},
-
- /**
- * Set useCache to false if you want to force object the lookup of each
- * drag and drop linked element constantly during a drag.
- * @property useCache
- * @type boolean
- * @static
- */
- useCache: true,
-
- /**
- * The number of pixels that the mouse needs to move after the
- * mousedown before the drag is initiated. Default=3;
- * @property clickPixelThresh
- * @type int
- * @static
- */
- clickPixelThresh: 3,
-
- /**
- * The number of milliseconds after the mousedown event to initiate the
- * drag if we don't get a mouseup event. Default=1000
- * @property clickTimeThresh
- * @type int
- * @static
- */
- clickTimeThresh: 1000,
-
- /**
- * Flag that indicates that either the drag pixel threshold or the
- * mousdown time threshold has been met
- * @property dragThreshMet
- * @type boolean
- * @private
- * @static
- */
- dragThreshMet: false,
-
- /**
- * Timeout used for the click time threshold
- * @property clickTimeout
- * @type Object
- * @private
- * @static
- */
- clickTimeout: null,
-
- /**
- * The X position of the mousedown event stored for later use when a
- * drag threshold is met.
- * @property startX
- * @type int
- * @private
- * @static
- */
- startX: 0,
-
- /**
- * The Y position of the mousedown event stored for later use when a
- * drag threshold is met.
- * @property startY
- * @type int
- * @private
- * @static
- */
- startY: 0,
-
- /**
- * Each DragDrop instance must be registered with the DragDropMgr.
- * This is executed in DragDrop.init()
- * @method regDragDrop
- * @param {DragDrop} oDD the DragDrop object to register
- * @param {String} sGroup the name of the group this element belongs to
- * @static
- */
- regDragDrop: function(oDD, sGroup) {
- if (!this.initialized) { this.init(); }
-
- if (!this.ids[sGroup]) {
- this.ids[sGroup] = {};
- }
- this.ids[sGroup][oDD.id] = oDD;
- },
-
- /**
- * Removes the supplied dd instance from the supplied group. Executed
- * by DragDrop.removeFromGroup, so don't call this function directly.
- * @method removeDDFromGroup
- * @private
- * @static
- */
- removeDDFromGroup: function(oDD, sGroup) {
- if (!this.ids[sGroup]) {
- this.ids[sGroup] = {};
- }
-
- var obj = this.ids[sGroup];
- if (obj && obj[oDD.id]) {
- delete obj[oDD.id];
- }
- },
-
- /**
- * Unregisters a drag and drop item. This is executed in
- * DragDrop.unreg, use that method instead of calling this directly.
- * @method _remove
- * @private
- * @static
- */
- _remove: function(oDD) {
- for (var g in oDD.groups) {
- if (g && this.ids[g][oDD.id]) {
- delete this.ids[g][oDD.id];
- //this.logger.log("NEW LEN " + this.ids.length, "warn");
- }
- }
- delete this.handleIds[oDD.id];
- },
-
- /**
- * Each DragDrop handle element must be registered. This is done
- * automatically when executing DragDrop.setHandleElId()
- * @method regHandle
- * @param {String} sDDId the DragDrop id this element is a handle for
- * @param {String} sHandleId the id of the element that is the drag
- * handle
- * @static
- */
- regHandle: function(sDDId, sHandleId) {
- if (!this.handleIds[sDDId]) {
- this.handleIds[sDDId] = {};
- }
- this.handleIds[sDDId][sHandleId] = sHandleId;
- },
-
- /**
- * Utility function to determine if a given element has been
- * registered as a drag drop item.
- * @method isDragDrop
- * @param {String} id the element id to check
- * @return {boolean} true if this element is a DragDrop item,
- * false otherwise
- * @static
- */
- isDragDrop: function(id) {
- return ( this.getDDById(id) ) ? true : false;
- },
-
- /**
- * Returns the drag and drop instances that are in all groups the
- * passed in instance belongs to.
- * @method getRelated
- * @param {DragDrop} p_oDD the obj to get related data for
- * @param {boolean} bTargetsOnly if true, only return targetable objs
- * @return {DragDrop[]} the related instances
- * @static
- */
- getRelated: function(p_oDD, bTargetsOnly) {
- var oDDs = [];
- for (var i in p_oDD.groups) {
- for (j in this.ids[i]) {
- var dd = this.ids[i][j];
- if (! this.isTypeOfDD(dd)) {
- continue;
- }
- if (!bTargetsOnly || dd.isTarget) {
- oDDs[oDDs.length] = dd;
- }
- }
- }
-
- return oDDs;
- },
-
- /**
- * Returns true if the specified dd target is a legal target for
- * the specifice drag obj
- * @method isLegalTarget
- * @param {DragDrop} the drag obj
- * @param {DragDrop} the target
- * @return {boolean} true if the target is a legal target for the
- * dd obj
- * @static
- */
- isLegalTarget: function (oDD, oTargetDD) {
- var targets = this.getRelated(oDD, true);
- for (var i=0, len=targets.length;i this.clickPixelThresh ||
- diffY > this.clickPixelThresh) {
- this.logger.log("pixel threshold met");
- this.startDrag(this.startX, this.startY);
- }
- }
-
- if (this.dragThreshMet) {
- this.dragCurrent.b4Drag(e);
- this.dragCurrent.onDrag(e);
- this.fireEvents(e, false);
- }
-
- this.stopEvent(e);
-
- return true;
- },
-
- /**
- * Iterates over all of the DragDrop elements to find ones we are
- * hovering over or dropping on
- * @method fireEvents
- * @param {Event} e the event
- * @param {boolean} isDrop is this a drop op or a mouseover op?
- * @private
- * @static
- */
- fireEvents: function(e, isDrop) {
- var dc = this.dragCurrent;
-
- // If the user did the mouse up outside of the window, we could
- // get here even though we have ended the drag.
- if (!dc || dc.isLocked()) {
- return;
- }
-
- var x = YAHOO.util.Event.getPageX(e);
- var y = YAHOO.util.Event.getPageY(e);
- var pt = new YAHOO.util.Point(x,y);
-
- // cache the previous dragOver array
- var oldOvers = [];
-
- var outEvts = [];
- var overEvts = [];
- var dropEvts = [];
- var enterEvts = [];
-
- // Check to see if the object(s) we were hovering over is no longer
- // being hovered over so we can fire the onDragOut event
- for (var i in this.dragOvers) {
-
- var ddo = this.dragOvers[i];
-
- if (! this.isTypeOfDD(ddo)) {
- continue;
- }
-
- if (! this.isOverTarget(pt, ddo, this.mode)) {
- outEvts.push( ddo );
- }
-
- oldOvers[i] = true;
- delete this.dragOvers[i];
- }
-
- for (var sGroup in dc.groups) {
- // this.logger.log("Processing group " + sGroup);
-
- if ("string" != typeof sGroup) {
- continue;
- }
-
- for (i in this.ids[sGroup]) {
- var oDD = this.ids[sGroup][i];
- if (! this.isTypeOfDD(oDD)) {
- continue;
- }
-
- if (oDD.isTarget && !oDD.isLocked() && oDD != dc) {
- if (this.isOverTarget(pt, oDD, this.mode)) {
- // look for drop interactions
- if (isDrop) {
- dropEvts.push( oDD );
- // look for drag enter and drag over interactions
- } else {
-
- // initial drag over: dragEnter fires
- if (!oldOvers[oDD.id]) {
- enterEvts.push( oDD );
- // subsequent drag overs: dragOver fires
- } else {
- overEvts.push( oDD );
- }
-
- this.dragOvers[oDD.id] = oDD;
- }
- }
- }
- }
- }
-
- if (this.mode) {
- if (outEvts.length) {
- this.logger.log(dc.id+" onDragOut: " + outEvts);
- dc.b4DragOut(e, outEvts);
- dc.onDragOut(e, outEvts);
- }
-
- if (enterEvts.length) {
- this.logger.log(dc.id+" onDragEnter: " + enterEvts);
- dc.onDragEnter(e, enterEvts);
- }
-
- if (overEvts.length) {
- this.logger.log(dc.id+" onDragOver: " + overEvts);
- dc.b4DragOver(e, overEvts);
- dc.onDragOver(e, overEvts);
- }
-
- if (dropEvts.length) {
- this.logger.log(dc.id+" onDragDrop: " + dropEvts);
- dc.b4DragDrop(e, dropEvts);
- dc.onDragDrop(e, dropEvts);
- }
-
- } else {
- // fire dragout events
- var len = 0;
- for (i=0, len=outEvts.length; i
- * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups);
- *
- * Alternatively:
- *
- * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true});
- *
- * @TODO this really should be an indexed array. Alternatively this
- * method could accept both.
- * @method refreshCache
- * @param {Object} groups an associative array of groups to refresh
- * @static
- */
- refreshCache: function(groups) {
- this.logger.log("refreshing element location cache");
-
- // refresh everything if group array is not provided
- var g = groups || this.ids;
-
- for (var sGroup in g) {
- if ("string" != typeof sGroup) {
- continue;
- }
- for (var i in this.ids[sGroup]) {
- var oDD = this.ids[sGroup][i];
-
- if (this.isTypeOfDD(oDD)) {
- var loc = this.getLocation(oDD);
- if (loc) {
- this.locationCache[oDD.id] = loc;
- } else {
- delete this.locationCache[oDD.id];
-this.logger.log("Could not get the loc for " + oDD.id, "warn");
- }
- }
- }
- }
- },
-
- /**
- * This checks to make sure an element exists and is in the DOM. The
- * main purpose is to handle cases where innerHTML is used to remove
- * drag and drop objects from the DOM. IE provides an 'unspecified
- * error' when trying to access the offsetParent of such an element
- * @method verifyEl
- * @param {HTMLElement} el the element to check
- * @return {boolean} true if the element looks usable
- * @static
- */
- verifyEl: function(el) {
- try {
- if (el) {
- var parent = el.offsetParent;
- if (parent) {
- return true;
- }
- }
- } catch(e) {
- this.logger.log("detected problem with an element");
- }
-
- return false;
- },
-
- /**
- * Returns a Region object containing the drag and drop element's position
- * and size, including the padding configured for it
- * @method getLocation
- * @param {DragDrop} oDD the drag and drop object to get the
- * location for
- * @return {YAHOO.util.Region} a Region object representing the total area
- * the element occupies, including any padding
- * the instance is configured for.
- * @static
- */
- getLocation: function(oDD) {
- if (! this.isTypeOfDD(oDD)) {
- this.logger.log(oDD + " is not a DD obj");
- return null;
- }
-
- var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;
-
- try {
- pos= YAHOO.util.Dom.getXY(el);
- } catch (e) { }
-
- if (!pos) {
- this.logger.log("getXY failed");
- return null;
- }
-
- x1 = pos[0];
- x2 = x1 + el.offsetWidth;
- y1 = pos[1];
- y2 = y1 + el.offsetHeight;
-
- t = y1 - oDD.padding[0];
- r = x2 + oDD.padding[1];
- b = y2 + oDD.padding[2];
- l = x1 - oDD.padding[3];
-
- return new YAHOO.util.Region( t, r, b, l );
- },
-
- /**
- * Checks the cursor location to see if it over the target
- * @method isOverTarget
- * @param {YAHOO.util.Point} pt The point to evaluate
- * @param {DragDrop} oTarget the DragDrop object we are inspecting
- * @return {boolean} true if the mouse is over the target
- * @private
- * @static
- */
- isOverTarget: function(pt, oTarget, intersect) {
- // use cache if available
- var loc = this.locationCache[oTarget.id];
- if (!loc || !this.useCache) {
- this.logger.log("cache not populated");
- loc = this.getLocation(oTarget);
- this.locationCache[oTarget.id] = loc;
-
- this.logger.log("cache: " + loc);
- }
-
- if (!loc) {
- this.logger.log("could not get the location of the element");
- return false;
- }
-
- //this.logger.log("loc: " + loc + ", pt: " + pt);
- oTarget.cursorIsOver = loc.contains( pt );
-
- // DragDrop is using this as a sanity check for the initial mousedown
- // in this case we are done. In POINT mode, if the drag obj has no
- // contraints, we are done. Otherwise we need to evaluate the
- // region the target as occupies to determine if the dragged element
- // overlaps with it.
-
- var dc = this.dragCurrent;
- if (!dc || !dc.getTargetCoord ||
- (!intersect && !dc.constrainX && !dc.constrainY)) {
-
- //if (oTarget.cursorIsOver) {
- //this.logger.log("over " + oTarget + ", " + loc + ", " + pt, "warn");
- //}
- return oTarget.cursorIsOver;
- }
-
- oTarget.overlap = null;
-
- // Get the current location of the drag element, this is the
- // location of the mouse event less the delta that represents
- // where the original mousedown happened on the element. We
- // need to consider constraints and ticks as well.
- var pos = dc.getTargetCoord(pt.x, pt.y);
-
- var el = dc.getDragEl();
- var curRegion = new YAHOO.util.Region( pos.y,
- pos.x + el.offsetWidth,
- pos.y + el.offsetHeight,
- pos.x );
-
- var overlap = curRegion.intersect(loc);
-
- if (overlap) {
- oTarget.overlap = overlap;
- return (intersect) ? true : oTarget.cursorIsOver;
- } else {
- return false;
- }
- },
-
- /**
- * unload event handler
- * @method _onUnload
- * @private
- * @static
- */
- _onUnload: function(e, me) {
- this.unregAll();
- },
-
- /**
- * Cleans up the drag and drop events and objects.
- * @method unregAll
- * @private
- * @static
- */
- unregAll: function() {
- this.logger.log("unregister all");
-
- if (this.dragCurrent) {
- this.stopDrag();
- this.dragCurrent = null;
- }
-
- this._execOnAll("unreg", []);
-
- for (i in this.elementCache) {
- delete this.elementCache[i];
- }
-
- this.elementCache = {};
- this.ids = {};
- },
-
- /**
- * A cache of DOM elements
- * @property elementCache
- * @private
- * @static
- */
- elementCache: {},
-
- /**
- * Get the wrapper for the DOM element specified
- * @method getElWrapper
- * @param {String} id the id of the element to get
- * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element
- * @private
- * @deprecated This wrapper isn't that useful
- * @static
- */
- getElWrapper: function(id) {
- var oWrapper = this.elementCache[id];
- if (!oWrapper || !oWrapper.el) {
- oWrapper = this.elementCache[id] =
- new this.ElementWrapper(YAHOO.util.Dom.get(id));
- }
- return oWrapper;
- },
-
- /**
- * Returns the actual DOM element
- * @method getElement
- * @param {String} id the id of the elment to get
- * @return {Object} The element
- * @deprecated use YAHOO.util.Dom.get instead
- * @static
- */
- getElement: function(id) {
- return YAHOO.util.Dom.get(id);
- },
-
- /**
- * Returns the style property for the DOM element (i.e.,
- * document.getElById(id).style)
- * @method getCss
- * @param {String} id the id of the elment to get
- * @return {Object} The style property of the element
- * @deprecated use YAHOO.util.Dom instead
- * @static
- */
- getCss: function(id) {
- var el = YAHOO.util.Dom.get(id);
- return (el) ? el.style : null;
- },
-
- /**
- * Inner class for cached elements
- * @class DragDropMgr.ElementWrapper
- * @for DragDropMgr
- * @private
- * @deprecated
- */
- ElementWrapper: function(el) {
- /**
- * The element
- * @property el
- */
- this.el = el || null;
- /**
- * The element id
- * @property id
- */
- this.id = this.el && el.id;
- /**
- * A reference to the style property
- * @property css
- */
- this.css = this.el && el.style;
- },
-
- /**
- * Returns the X position of an html element
- * @method getPosX
- * @param el the element for which to get the position
- * @return {int} the X coordinate
- * @for DragDropMgr
- * @deprecated use YAHOO.util.Dom.getX instead
- * @static
- */
- getPosX: function(el) {
- return YAHOO.util.Dom.getX(el);
- },
-
- /**
- * Returns the Y position of an html element
- * @method getPosY
- * @param el the element for which to get the position
- * @return {int} the Y coordinate
- * @deprecated use YAHOO.util.Dom.getY instead
- * @static
- */
- getPosY: function(el) {
- return YAHOO.util.Dom.getY(el);
- },
-
- /**
- * Swap two nodes. In IE, we use the native method, for others we
- * emulate the IE behavior
- * @method swapNode
- * @param n1 the first node to swap
- * @param n2 the other node to swap
- * @static
- */
- swapNode: function(n1, n2) {
- if (n1.swapNode) {
- n1.swapNode(n2);
- } else {
- var p = n2.parentNode;
- var s = n2.nextSibling;
-
- if (s == n1) {
- p.insertBefore(n1, n2);
- } else if (n2 == n1.nextSibling) {
- p.insertBefore(n2, n1);
- } else {
- n1.parentNode.replaceChild(n2, n1);
- p.insertBefore(n1, s);
- }
- }
- },
-
- /**
- * Returns the current scroll position
- * @method getScroll
- * @private
- * @static
- */
- getScroll: function () {
- var t, l, dde=document.documentElement, db=document.body;
- if (dde && (dde.scrollTop || dde.scrollLeft)) {
- t = dde.scrollTop;
- l = dde.scrollLeft;
- } else if (db) {
- t = db.scrollTop;
- l = db.scrollLeft;
- } else {
- YAHOO.log("could not get scroll property");
- }
- return { top: t, left: l };
- },
-
- /**
- * Returns the specified element style property
- * @method getStyle
- * @param {HTMLElement} el the element
- * @param {string} styleProp the style property
- * @return {string} The value of the style property
- * @deprecated use YAHOO.util.Dom.getStyle
- * @static
- */
- getStyle: function(el, styleProp) {
- return YAHOO.util.Dom.getStyle(el, styleProp);
- },
-
- /**
- * Gets the scrollTop
- * @method getScrollTop
- * @return {int} the document's scrollTop
- * @static
- */
- getScrollTop: function () { return this.getScroll().top; },
-
- /**
- * Gets the scrollLeft
- * @method getScrollLeft
- * @return {int} the document's scrollTop
- * @static
- */
- getScrollLeft: function () { return this.getScroll().left; },
-
- /**
- * Sets the x/y position of an element to the location of the
- * target element.
- * @method moveToEl
- * @param {HTMLElement} moveEl The element to move
- * @param {HTMLElement} targetEl The position reference element
- * @static
- */
- moveToEl: function (moveEl, targetEl) {
- var aCoord = YAHOO.util.Dom.getXY(targetEl);
- this.logger.log("moveToEl: " + aCoord);
- YAHOO.util.Dom.setXY(moveEl, aCoord);
- },
-
- /**
- * Gets the client height
- * @method getClientHeight
- * @return {int} client height in px
- * @deprecated use YAHOO.util.Dom.getViewportHeight instead
- * @static
- */
- getClientHeight: function() {
- return YAHOO.util.Dom.getViewportHeight();
- },
-
- /**
- * Gets the client width
- * @method getClientWidth
- * @return {int} client width in px
- * @deprecated use YAHOO.util.Dom.getViewportWidth instead
- * @static
- */
- getClientWidth: function() {
- return YAHOO.util.Dom.getViewportWidth();
- },
-
- /**
- * Numeric array sort function
- * @method numericSort
- * @static
- */
- numericSort: function(a, b) { return (a - b); },
-
- /**
- * Internal counter
- * @property _timeoutCount
- * @private
- * @static
- */
- _timeoutCount: 0,
-
- /**
- * Trying to make the load order less important. Without this we get
- * an error if this file is loaded before the Event Utility.
- * @method _addListeners
- * @private
- * @static
- */
- _addListeners: function() {
- var DDM = YAHOO.util.DDM;
- if ( YAHOO.util.Event && document ) {
- DDM._onLoad();
- } else {
- if (DDM._timeoutCount > 2000) {
- DDM.logger.log("DragDrop requires the Event Utility");
- } else {
- setTimeout(DDM._addListeners, 10);
- if (document && document.body) {
- DDM._timeoutCount += 1;
- }
- }
- }
- },
-
- /**
- * Recursively searches the immediate parent and all child nodes for
- * the handle element in order to determine wheter or not it was
- * clicked.
- * @method handleWasClicked
- * @param node the html element to inspect
- * @static
- */
- handleWasClicked: function(node, id) {
- if (this.isHandle(id, node.id)) {
- this.logger.log("clicked node is a handle");
- return true;
- } else {
- // check to see if this is a text node child of the one we want
- var p = node.parentNode;
- // this.logger.log("p: " + p);
-
- while (p) {
- if (this.isHandle(id, p.id)) {
- return true;
- } else {
- this.logger.log(p.id + " is not a handle");
- p = p.parentNode;
- }
- }
- }
-
- return false;
- }
-
- };
-
-}();
-
-// shorter alias, save a few bytes
-YAHOO.util.DDM = YAHOO.util.DragDropMgr;
-YAHOO.util.DDM._addListeners();
-
-}
-
-(function() {
-
-var Event=YAHOO.util.Event;
-var Dom=YAHOO.util.Dom;
-
-/**
- * Defines the interface and base operation of items that that can be
- * dragged or can be drop targets. It was designed to be extended, overriding
- * the event handlers for startDrag, onDrag, onDragOver, onDragOut.
- * Up to three html elements can be associated with a DragDrop instance:
- *
- * linked element: the element that is passed into the constructor.
- * This is the element which defines the boundaries for interaction with
- * other DragDrop objects.
- * handle element(s): The drag operation only occurs if the element that
- * was clicked matches a handle element. By default this is the linked
- * element, but there are times that you will want only a portion of the
- * linked element to initiate the drag operation, and the setHandleElId()
- * method provides a way to define this.
- * drag element: this represents an the element that would be moved along
- * with the cursor during a drag operation. By default, this is the linked
- * element itself as in {@link YAHOO.util.DD}. setDragElId() lets you define
- * a separate element that would be moved, as in {@link YAHOO.util.DDProxy}
- *
- *
- * This class should not be instantiated until the onload event to ensure that
- * the associated elements are available.
- * The following would define a DragDrop obj that would interact with any
- * other DragDrop obj in the "group1" group:
- *
- * dd = new YAHOO.util.DragDrop("div1", "group1");
- *
- * Since none of the event handlers have been implemented, nothing would
- * actually happen if you were to run the code above. Normally you would
- * override this class or one of the default implementations, but you can
- * also override the methods you want on an instance of the class...
- *
- * dd.onDragDrop = function(e, id) {
- * alert("dd was dropped on " + id);
- * }
- *
- * @namespace YAHOO.util
- * @class DragDrop
- * @constructor
- * @param {String} id of the element that is linked to this instance
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DragDrop:
- * padding, isTarget, maintainOffset, primaryButtonOnly,
- */
-YAHOO.util.DragDrop = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- }
-};
-
-YAHOO.util.DragDrop.prototype = {
-
- /**
- * The id of the element associated with this object. This is what we
- * refer to as the "linked element" because the size and position of
- * this element is used to determine when the drag and drop objects have
- * interacted.
- * @property id
- * @type String
- */
- id: null,
-
- /**
- * Configuration attributes passed into the constructor
- * @property config
- * @type object
- */
- config: null,
-
- /**
- * The id of the element that will be dragged. By default this is same
- * as the linked element , but could be changed to another element. Ex:
- * YAHOO.util.DDProxy
- * @property dragElId
- * @type String
- * @private
- */
- dragElId: null,
-
- /**
- * the id of the element that initiates the drag operation. By default
- * this is the linked element, but could be changed to be a child of this
- * element. This lets us do things like only starting the drag when the
- * header element within the linked html element is clicked.
- * @property handleElId
- * @type String
- * @private
- */
- handleElId: null,
-
- /**
- * An associative array of HTML tags that will be ignored if clicked.
- * @property invalidHandleTypes
- * @type {string: string}
- */
- invalidHandleTypes: null,
-
- /**
- * An associative array of ids for elements that will be ignored if clicked
- * @property invalidHandleIds
- * @type {string: string}
- */
- invalidHandleIds: null,
-
- /**
- * An indexted array of css class names for elements that will be ignored
- * if clicked.
- * @property invalidHandleClasses
- * @type string[]
- */
- invalidHandleClasses: null,
-
- /**
- * The linked element's absolute X position at the time the drag was
- * started
- * @property startPageX
- * @type int
- * @private
- */
- startPageX: 0,
-
- /**
- * The linked element's absolute X position at the time the drag was
- * started
- * @property startPageY
- * @type int
- * @private
- */
- startPageY: 0,
-
- /**
- * The group defines a logical collection of DragDrop objects that are
- * related. Instances only get events when interacting with other
- * DragDrop object in the same group. This lets us define multiple
- * groups using a single DragDrop subclass if we want.
- * @property groups
- * @type {string: string}
- */
- groups: null,
-
- /**
- * Individual drag/drop instances can be locked. This will prevent
- * onmousedown start drag.
- * @property locked
- * @type boolean
- * @private
- */
- locked: false,
-
- /**
- * Lock this instance
- * @method lock
- */
- lock: function() { this.locked = true; },
-
- /**
- * Unlock this instace
- * @method unlock
- */
- unlock: function() { this.locked = false; },
-
- /**
- * By default, all insances can be a drop target. This can be disabled by
- * setting isTarget to false.
- * @method isTarget
- * @type boolean
- */
- isTarget: true,
-
- /**
- * The padding configured for this drag and drop object for calculating
- * the drop zone intersection with this object.
- * @method padding
- * @type int[]
- */
- padding: null,
-
- /**
- * Cached reference to the linked element
- * @property _domRef
- * @private
- */
- _domRef: null,
-
- /**
- * Internal typeof flag
- * @property __ygDragDrop
- * @private
- */
- __ygDragDrop: true,
-
- /**
- * Set to true when horizontal contraints are applied
- * @property constrainX
- * @type boolean
- * @private
- */
- constrainX: false,
-
- /**
- * Set to true when vertical contraints are applied
- * @property constrainY
- * @type boolean
- * @private
- */
- constrainY: false,
-
- /**
- * The left constraint
- * @property minX
- * @type int
- * @private
- */
- minX: 0,
-
- /**
- * The right constraint
- * @property maxX
- * @type int
- * @private
- */
- maxX: 0,
-
- /**
- * The up constraint
- * @property minY
- * @type int
- * @type int
- * @private
- */
- minY: 0,
-
- /**
- * The down constraint
- * @property maxY
- * @type int
- * @private
- */
- maxY: 0,
-
- /**
- * Maintain offsets when we resetconstraints. Set to true when you want
- * the position of the element relative to its parent to stay the same
- * when the page changes
- *
- * @property maintainOffset
- * @type boolean
- */
- maintainOffset: false,
-
- /**
- * Array of pixel locations the element will snap to if we specified a
- * horizontal graduation/interval. This array is generated automatically
- * when you define a tick interval.
- * @property xTicks
- * @type int[]
- */
- xTicks: null,
-
- /**
- * Array of pixel locations the element will snap to if we specified a
- * vertical graduation/interval. This array is generated automatically
- * when you define a tick interval.
- * @property yTicks
- * @type int[]
- */
- yTicks: null,
-
- /**
- * By default the drag and drop instance will only respond to the primary
- * button click (left button for a right-handed mouse). Set to true to
- * allow drag and drop to start with any mouse click that is propogated
- * by the browser
- * @property primaryButtonOnly
- * @type boolean
- */
- primaryButtonOnly: true,
-
- /**
- * The availabe property is false until the linked dom element is accessible.
- * @property available
- * @type boolean
- */
- available: false,
-
- /**
- * By default, drags can only be initiated if the mousedown occurs in the
- * region the linked element is. This is done in part to work around a
- * bug in some browsers that mis-report the mousedown if the previous
- * mouseup happened outside of the window. This property is set to true
- * if outer handles are defined.
- *
- * @property hasOuterHandles
- * @type boolean
- * @default false
- */
- hasOuterHandles: false,
-
- /**
- * Code that executes immediately before the startDrag event
- * @method b4StartDrag
- * @private
- */
- b4StartDrag: function(x, y) { },
-
- /**
- * Abstract method called after a drag/drop object is clicked
- * and the drag or mousedown time thresholds have beeen met.
- * @method startDrag
- * @param {int} X click location
- * @param {int} Y click location
- */
- startDrag: function(x, y) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDrag event
- * @method b4Drag
- * @private
- */
- b4Drag: function(e) { },
-
- /**
- * Abstract method called during the onMouseMove event while dragging an
- * object.
- * @method onDrag
- * @param {Event} e the mousemove event
- */
- onDrag: function(e) { /* override this */ },
-
- /**
- * Abstract method called when this element fist begins hovering over
- * another DragDrop obj
- * @method onDragEnter
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this is hovering over. In INTERSECT mode, an array of one or more
- * dragdrop items being hovered over.
- */
- onDragEnter: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragOver event
- * @method b4DragOver
- * @private
- */
- b4DragOver: function(e) { },
-
- /**
- * Abstract method called when this element is hovering over another
- * DragDrop obj
- * @method onDragOver
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this is hovering over. In INTERSECT mode, an array of dd items
- * being hovered over.
- */
- onDragOver: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragOut event
- * @method b4DragOut
- * @private
- */
- b4DragOut: function(e) { },
-
- /**
- * Abstract method called when we are no longer hovering over an element
- * @method onDragOut
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this was hovering over. In INTERSECT mode, an array of dd items
- * that the mouse is no longer over.
- */
- onDragOut: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragDrop event
- * @method b4DragDrop
- * @private
- */
- b4DragDrop: function(e) { },
-
- /**
- * Abstract method called when this item is dropped on another DragDrop
- * obj
- * @method onDragDrop
- * @param {Event} e the mouseup event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this was dropped on. In INTERSECT mode, an array of dd items this
- * was dropped on.
- */
- onDragDrop: function(e, id) { /* override this */ },
-
- /**
- * Abstract method called when this item is dropped on an area with no
- * drop target
- * @method onInvalidDrop
- * @param {Event} e the mouseup event
- */
- onInvalidDrop: function(e) { /* override this */ },
-
- /**
- * Code that executes immediately before the endDrag event
- * @method b4EndDrag
- * @private
- */
- b4EndDrag: function(e) { },
-
- /**
- * Fired when we are done dragging the object
- * @method endDrag
- * @param {Event} e the mouseup event
- */
- endDrag: function(e) { /* override this */ },
-
- /**
- * Code executed immediately before the onMouseDown event
- * @method b4MouseDown
- * @param {Event} e the mousedown event
- * @private
- */
- b4MouseDown: function(e) { },
-
- /**
- * Event handler that fires when a drag/drop obj gets a mousedown
- * @method onMouseDown
- * @param {Event} e the mousedown event
- */
- onMouseDown: function(e) { /* override this */ },
-
- /**
- * Event handler that fires when a drag/drop obj gets a mouseup
- * @method onMouseUp
- * @param {Event} e the mouseup event
- */
- onMouseUp: function(e) { /* override this */ },
-
- /**
- * Override the onAvailable method to do what is needed after the initial
- * position was determined.
- * @method onAvailable
- */
- onAvailable: function () {
- this.logger.log("onAvailable (base)");
- },
-
- /**
- * Returns a reference to the linked element
- * @method getEl
- * @return {HTMLElement} the html element
- */
- getEl: function() {
- if (!this._domRef) {
- this._domRef = Dom.get(this.id);
- }
-
- return this._domRef;
- },
-
- /**
- * Returns a reference to the actual element to drag. By default this is
- * the same as the html element, but it can be assigned to another
- * element. An example of this can be found in YAHOO.util.DDProxy
- * @method getDragEl
- * @return {HTMLElement} the html element
- */
- getDragEl: function() {
- return Dom.get(this.dragElId);
- },
-
- /**
- * Sets up the DragDrop object. Must be called in the constructor of any
- * YAHOO.util.DragDrop subclass
- * @method init
- * @param id the id of the linked element
- * @param {String} sGroup the group of related items
- * @param {object} config configuration attributes
- */
- init: function(id, sGroup, config) {
- this.initTarget(id, sGroup, config);
- Event.on(this.id, "mousedown", this.handleMouseDown, this, true);
- // Event.on(this.id, "selectstart", Event.preventDefault);
- },
-
- /**
- * Initializes Targeting functionality only... the object does not
- * get a mousedown handler.
- * @method initTarget
- * @param id the id of the linked element
- * @param {String} sGroup the group of related items
- * @param {object} config configuration attributes
- */
- initTarget: function(id, sGroup, config) {
-
- // configuration attributes
- this.config = config || {};
-
- // create a local reference to the drag and drop manager
- this.DDM = YAHOO.util.DDM;
- // initialize the groups array
- this.groups = {};
-
- // assume that we have an element reference instead of an id if the
- // parameter is not a string
- if (typeof id !== "string") {
- YAHOO.log("id is not a string, assuming it is an HTMLElement");
- id = Dom.generateId(id);
- }
-
- // set the id
- this.id = id;
-
- // add to an interaction group
- this.addToGroup((sGroup) ? sGroup : "default");
-
- // We don't want to register this as the handle with the manager
- // so we just set the id rather than calling the setter.
- this.handleElId = id;
-
- Event.onAvailable(id, this.handleOnAvailable, this, true);
-
- // create a logger instance
- this.logger = (YAHOO.widget.LogWriter) ?
- new YAHOO.widget.LogWriter(this.toString()) : YAHOO;
-
- // the linked element is the element that gets dragged by default
- this.setDragElId(id);
-
- // by default, clicked anchors will not start drag operations.
- // @TODO what else should be here? Probably form fields.
- this.invalidHandleTypes = { A: "A" };
- this.invalidHandleIds = {};
- this.invalidHandleClasses = [];
-
- this.applyConfig();
- },
-
- /**
- * Applies the configuration parameters that were passed into the constructor.
- * This is supposed to happen at each level through the inheritance chain. So
- * a DDProxy implentation will execute apply config on DDProxy, DD, and
- * DragDrop in order to get all of the parameters that are available in
- * each object.
- * @method applyConfig
- */
- applyConfig: function() {
-
- // configurable properties:
- // padding, isTarget, maintainOffset, primaryButtonOnly
- this.padding = this.config.padding || [0, 0, 0, 0];
- this.isTarget = (this.config.isTarget !== false);
- this.maintainOffset = (this.config.maintainOffset);
- this.primaryButtonOnly = (this.config.primaryButtonOnly !== false);
-
- },
-
- /**
- * Executed when the linked element is available
- * @method handleOnAvailable
- * @private
- */
- handleOnAvailable: function() {
- this.logger.log("handleOnAvailable");
- this.available = true;
- this.resetConstraints();
- this.onAvailable();
- },
-
- /**
- * Configures the padding for the target zone in px. Effectively expands
- * (or reduces) the virtual object size for targeting calculations.
- * Supports css-style shorthand; if only one parameter is passed, all sides
- * will have that padding, and if only two are passed, the top and bottom
- * will have the first param, the left and right the second.
- * @method setPadding
- * @param {int} iTop Top pad
- * @param {int} iRight Right pad
- * @param {int} iBot Bot pad
- * @param {int} iLeft Left pad
- */
- setPadding: function(iTop, iRight, iBot, iLeft) {
- // this.padding = [iLeft, iRight, iTop, iBot];
- if (!iRight && 0 !== iRight) {
- this.padding = [iTop, iTop, iTop, iTop];
- } else if (!iBot && 0 !== iBot) {
- this.padding = [iTop, iRight, iTop, iRight];
- } else {
- this.padding = [iTop, iRight, iBot, iLeft];
- }
- },
-
- /**
- * Stores the initial placement of the linked element.
- * @method setInitialPosition
- * @param {int} diffX the X offset, default 0
- * @param {int} diffY the Y offset, default 0
- */
- setInitPosition: function(diffX, diffY) {
- var el = this.getEl();
-
- if (!this.DDM.verifyEl(el)) {
- this.logger.log(this.id + " element is broken");
- return;
- }
-
- var dx = diffX || 0;
- var dy = diffY || 0;
-
- var p = Dom.getXY( el );
-
- this.initPageX = p[0] - dx;
- this.initPageY = p[1] - dy;
-
- this.lastPageX = p[0];
- this.lastPageY = p[1];
-
- this.logger.log(this.id + " inital position: " + this.initPageX +
- ", " + this.initPageY);
-
-
- this.setStartPosition(p);
- },
-
- /**
- * Sets the start position of the element. This is set when the obj
- * is initialized, the reset when a drag is started.
- * @method setStartPosition
- * @param pos current position (from previous lookup)
- * @private
- */
- setStartPosition: function(pos) {
- var p = pos || Dom.getXY( this.getEl() );
-
- this.deltaSetXY = null;
-
- this.startPageX = p[0];
- this.startPageY = p[1];
- },
-
- /**
- * Add this instance to a group of related drag/drop objects. All
- * instances belong to at least one group, and can belong to as many
- * groups as needed.
- * @method addToGroup
- * @param sGroup {string} the name of the group
- */
- addToGroup: function(sGroup) {
- this.groups[sGroup] = true;
- this.DDM.regDragDrop(this, sGroup);
- },
-
- /**
- * Remove's this instance from the supplied interaction group
- * @method removeFromGroup
- * @param {string} sGroup The group to drop
- */
- removeFromGroup: function(sGroup) {
- this.logger.log("Removing from group: " + sGroup);
- if (this.groups[sGroup]) {
- delete this.groups[sGroup];
- }
-
- this.DDM.removeDDFromGroup(this, sGroup);
- },
-
- /**
- * Allows you to specify that an element other than the linked element
- * will be moved with the cursor during a drag
- * @method setDragElId
- * @param id {string} the id of the element that will be used to initiate the drag
- */
- setDragElId: function(id) {
- this.dragElId = id;
- },
-
- /**
- * Allows you to specify a child of the linked element that should be
- * used to initiate the drag operation. An example of this would be if
- * you have a content div with text and links. Clicking anywhere in the
- * content area would normally start the drag operation. Use this method
- * to specify that an element inside of the content div is the element
- * that starts the drag operation.
- * @method setHandleElId
- * @param id {string} the id of the element that will be used to
- * initiate the drag.
- */
- setHandleElId: function(id) {
- if (typeof id !== "string") {
- YAHOO.log("id is not a string, assuming it is an HTMLElement");
- id = Dom.generateId(id);
- }
- this.handleElId = id;
- this.DDM.regHandle(this.id, id);
- },
-
- /**
- * Allows you to set an element outside of the linked element as a drag
- * handle
- * @method setOuterHandleElId
- * @param id the id of the element that will be used to initiate the drag
- */
- setOuterHandleElId: function(id) {
- if (typeof id !== "string") {
- YAHOO.log("id is not a string, assuming it is an HTMLElement");
- id = Dom.generateId(id);
- }
- this.logger.log("Adding outer handle event: " + id);
- Event.on(id, "mousedown",
- this.handleMouseDown, this, true);
- this.setHandleElId(id);
-
- this.hasOuterHandles = true;
- },
-
- /**
- * Remove all drag and drop hooks for this element
- * @method unreg
- */
- unreg: function() {
- this.logger.log("DragDrop obj cleanup " + this.id);
- Event.removeListener(this.id, "mousedown",
- this.handleMouseDown);
- this._domRef = null;
- this.DDM._remove(this);
- },
-
- /**
- * Returns true if this instance is locked, or the drag drop mgr is locked
- * (meaning that all drag/drop is disabled on the page.)
- * @method isLocked
- * @return {boolean} true if this obj or all drag/drop is locked, else
- * false
- */
- isLocked: function() {
- return (this.DDM.isLocked() || this.locked);
- },
-
- /**
- * Fired when this object is clicked
- * @method handleMouseDown
- * @param {Event} e
- * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj)
- * @private
- */
- handleMouseDown: function(e, oDD) {
-
- var button = e.which || e.button;
- this.logger.log("button: " + button);
-
- if (this.primaryButtonOnly && button > 1) {
- this.logger.log("Mousedown was not produced by the primary button");
- return;
- }
-
- if (this.isLocked()) {
- this.logger.log("Drag and drop is disabled, aborting");
- return;
- }
-
- this.logger.log("mousedown " + this.id);
-
- this.logger.log("firing onMouseDown events");
-
- // firing the mousedown events prior to calculating positions
- this.b4MouseDown(e);
- this.onMouseDown(e);
-
- this.DDM.refreshCache(this.groups);
- // var self = this;
- // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0);
-
- // Only process the event if we really clicked within the linked
- // element. The reason we make this check is that in the case that
- // another element was moved between the clicked element and the
- // cursor in the time between the mousedown and mouseup events. When
- // this happens, the element gets the next mousedown event
- // regardless of where on the screen it happened.
- var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e));
- if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) {
- this.logger.log("Click was not over the element: " + this.id);
- } else {
- if (this.clickValidator(e)) {
-
- this.logger.log("click was a valid handle");
-
- // set the initial element position
- this.setStartPosition();
-
- // start tracking mousemove distance and mousedown time to
- // determine when to start the actual drag
- this.DDM.handleMouseDown(e, this);
-
- // this mousedown is mine
- this.DDM.stopEvent(e);
- } else {
-
-this.logger.log("clickValidator returned false, drag not initiated");
-
- }
- }
- },
-
- clickValidator: function(e) {
- var target = Event.getTarget(e);
- return ( this.isValidHandleChild(target) &&
- (this.id == this.handleElId ||
- this.DDM.handleWasClicked(target, this.id)) );
- },
-
- /**
- * Allows you to specify a tag name that should not start a drag operation
- * when clicked. This is designed to facilitate embedding links within a
- * drag handle that do something other than start the drag.
- * @method addInvalidHandleType
- * @param {string} tagName the type of element to exclude
- */
- addInvalidHandleType: function(tagName) {
- var type = tagName.toUpperCase();
- this.invalidHandleTypes[type] = type;
- },
-
- /**
- * Lets you to specify an element id for a child of a drag handle
- * that should not initiate a drag
- * @method addInvalidHandleId
- * @param {string} id the element id of the element you wish to ignore
- */
- addInvalidHandleId: function(id) {
- if (typeof id !== "string") {
- YAHOO.log("id is not a string, assuming it is an HTMLElement");
- id = Dom.generateId(id);
- }
- this.invalidHandleIds[id] = id;
- },
-
-
- /**
- * Lets you specify a css class of elements that will not initiate a drag
- * @method addInvalidHandleClass
- * @param {string} cssClass the class of the elements you wish to ignore
- */
- addInvalidHandleClass: function(cssClass) {
- this.invalidHandleClasses.push(cssClass);
- },
-
- /**
- * Unsets an excluded tag name set by addInvalidHandleType
- * @method removeInvalidHandleType
- * @param {string} tagName the type of element to unexclude
- */
- removeInvalidHandleType: function(tagName) {
- var type = tagName.toUpperCase();
- // this.invalidHandleTypes[type] = null;
- delete this.invalidHandleTypes[type];
- },
-
- /**
- * Unsets an invalid handle id
- * @method removeInvalidHandleId
- * @param {string} id the id of the element to re-enable
- */
- removeInvalidHandleId: function(id) {
- if (typeof id !== "string") {
- YAHOO.log("id is not a string, assuming it is an HTMLElement");
- id = Dom.generateId(id);
- }
- delete this.invalidHandleIds[id];
- },
-
- /**
- * Unsets an invalid css class
- * @method removeInvalidHandleClass
- * @param {string} cssClass the class of the element(s) you wish to
- * re-enable
- */
- removeInvalidHandleClass: function(cssClass) {
- for (var i=0, len=this.invalidHandleClasses.length; i= this.minX; i = i - iTickSize) {
- if (!tickMap[i]) {
- this.xTicks[this.xTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) {
- if (!tickMap[i]) {
- this.xTicks[this.xTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- this.xTicks.sort(this.DDM.numericSort) ;
- this.logger.log("xTicks: " + this.xTicks.join());
- },
-
- /**
- * Create the array of vertical tick marks if an interval was specified in
- * setYConstraint().
- * @method setYTicks
- * @private
- */
- setYTicks: function(iStartY, iTickSize) {
- // this.logger.log("setYTicks: " + iStartY + ", " + iTickSize
- // + ", " + this.initPageY + ", " + this.minY + ", " + this.maxY );
- this.yTicks = [];
- this.yTickSize = iTickSize;
-
- var tickMap = {};
-
- for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) {
- if (!tickMap[i]) {
- this.yTicks[this.yTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) {
- if (!tickMap[i]) {
- this.yTicks[this.yTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- this.yTicks.sort(this.DDM.numericSort) ;
- this.logger.log("yTicks: " + this.yTicks.join());
- },
-
- /**
- * By default, the element can be dragged any place on the screen. Use
- * this method to limit the horizontal travel of the element. Pass in
- * 0,0 for the parameters if you want to lock the drag to the y axis.
- * @method setXConstraint
- * @param {int} iLeft the number of pixels the element can move to the left
- * @param {int} iRight the number of pixels the element can move to the
- * right
- * @param {int} iTickSize optional parameter for specifying that the
- * element
- * should move iTickSize pixels at a time.
- */
- setXConstraint: function(iLeft, iRight, iTickSize) {
- this.leftConstraint = parseInt(iLeft, 10);
- this.rightConstraint = parseInt(iRight, 10);
-
- this.minX = this.initPageX - this.leftConstraint;
- this.maxX = this.initPageX + this.rightConstraint;
- if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); }
-
- this.constrainX = true;
- this.logger.log("initPageX:" + this.initPageX + " minX:" + this.minX +
- " maxX:" + this.maxX);
- },
-
- /**
- * Clears any constraints applied to this instance. Also clears ticks
- * since they can't exist independent of a constraint at this time.
- * @method clearConstraints
- */
- clearConstraints: function() {
- this.logger.log("Clearing constraints");
- this.constrainX = false;
- this.constrainY = false;
- this.clearTicks();
- },
-
- /**
- * Clears any tick interval defined for this instance
- * @method clearTicks
- */
- clearTicks: function() {
- this.logger.log("Clearing ticks");
- this.xTicks = null;
- this.yTicks = null;
- this.xTickSize = 0;
- this.yTickSize = 0;
- },
-
- /**
- * By default, the element can be dragged any place on the screen. Set
- * this to limit the vertical travel of the element. Pass in 0,0 for the
- * parameters if you want to lock the drag to the x axis.
- * @method setYConstraint
- * @param {int} iUp the number of pixels the element can move up
- * @param {int} iDown the number of pixels the element can move down
- * @param {int} iTickSize optional parameter for specifying that the
- * element should move iTickSize pixels at a time.
- */
- setYConstraint: function(iUp, iDown, iTickSize) {
- this.logger.log("setYConstraint: " + iUp + "," + iDown + "," + iTickSize);
- this.topConstraint = parseInt(iUp, 10);
- this.bottomConstraint = parseInt(iDown, 10);
-
- this.minY = this.initPageY - this.topConstraint;
- this.maxY = this.initPageY + this.bottomConstraint;
- if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); }
-
- this.constrainY = true;
-
- this.logger.log("initPageY:" + this.initPageY + " minY:" + this.minY +
- " maxY:" + this.maxY);
- },
-
- /**
- * resetConstraints must be called if you manually reposition a dd element.
- * @method resetConstraints
- * @param {boolean} maintainOffset
- */
- resetConstraints: function() {
-
- this.logger.log("resetConstraints");
-
- // Maintain offsets if necessary
- if (this.initPageX || this.initPageX === 0) {
- this.logger.log("init pagexy: " + this.initPageX + ", " +
- this.initPageY);
- this.logger.log("last pagexy: " + this.lastPageX + ", " +
- this.lastPageY);
- // figure out how much this thing has moved
- var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0;
- var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0;
-
- this.setInitPosition(dx, dy);
-
- // This is the first time we have detected the element's position
- } else {
- this.setInitPosition();
- }
-
- if (this.constrainX) {
- this.setXConstraint( this.leftConstraint,
- this.rightConstraint,
- this.xTickSize );
- }
-
- if (this.constrainY) {
- this.setYConstraint( this.topConstraint,
- this.bottomConstraint,
- this.yTickSize );
- }
- },
-
- /**
- * Normally the drag element is moved pixel by pixel, but we can specify
- * that it move a number of pixels at a time. This method resolves the
- * location when we have it set up like this.
- * @method getTick
- * @param {int} val where we want to place the object
- * @param {int[]} tickArray sorted array of valid points
- * @return {int} the closest tick
- * @private
- */
- getTick: function(val, tickArray) {
-
- if (!tickArray) {
- // If tick interval is not defined, it is effectively 1 pixel,
- // so we return the value passed to us.
- return val;
- } else if (tickArray[0] >= val) {
- // The value is lower than the first tick, so we return the first
- // tick.
- return tickArray[0];
- } else {
- for (var i=0, len=tickArray.length; i= val) {
- var diff1 = val - tickArray[i];
- var diff2 = tickArray[next] - val;
- return (diff2 > diff1) ? tickArray[i] : tickArray[next];
- }
- }
-
- // The value is larger than the last tick, so we return the last
- // tick.
- return tickArray[tickArray.length - 1];
- }
- },
-
- /**
- * toString method
- * @method toString
- * @return {string} string representation of the dd obj
- */
- toString: function() {
- return ("DragDrop " + this.id);
- }
-
-};
-
-})();
-/**
- * A DragDrop implementation where the linked element follows the
- * mouse cursor during a drag.
- * @class DD
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the linked element
- * @param {String} sGroup the group of related DragDrop items
- * @param {object} config an object containing configurable attributes
- * Valid properties for DD:
- * scroll
- */
-YAHOO.util.DD = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- }
-};
-
-YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, {
-
- /**
- * When set to true, the utility automatically tries to scroll the browser
- * window wehn a drag and drop element is dragged near the viewport boundary.
- * Defaults to true.
- * @property scroll
- * @type boolean
- */
- scroll: true,
-
- /**
- * Sets the pointer offset to the distance between the linked element's top
- * left corner and the location the element was clicked
- * @method autoOffset
- * @param {int} iPageX the X coordinate of the click
- * @param {int} iPageY the Y coordinate of the click
- */
- autoOffset: function(iPageX, iPageY) {
- var x = iPageX - this.startPageX;
- var y = iPageY - this.startPageY;
- this.setDelta(x, y);
- // this.logger.log("autoOffset el pos: " + aCoord + ", delta: " + x + "," + y);
- },
-
- /**
- * Sets the pointer offset. You can call this directly to force the
- * offset to be in a particular location (e.g., pass in 0,0 to set it
- * to the center of the object, as done in YAHOO.widget.Slider)
- * @method setDelta
- * @param {int} iDeltaX the distance from the left
- * @param {int} iDeltaY the distance from the top
- */
- setDelta: function(iDeltaX, iDeltaY) {
- this.deltaX = iDeltaX;
- this.deltaY = iDeltaY;
- this.logger.log("deltaX:" + this.deltaX + ", deltaY:" + this.deltaY);
- },
-
- /**
- * Sets the drag element to the location of the mousedown or click event,
- * maintaining the cursor location relative to the location on the element
- * that was clicked. Override this if you want to place the element in a
- * location other than where the cursor is.
- * @method setDragElPos
- * @param {int} iPageX the X coordinate of the mousedown or drag event
- * @param {int} iPageY the Y coordinate of the mousedown or drag event
- */
- setDragElPos: function(iPageX, iPageY) {
- // the first time we do this, we are going to check to make sure
- // the element has css positioning
-
- var el = this.getDragEl();
- this.alignElWithMouse(el, iPageX, iPageY);
- },
-
- /**
- * Sets the element to the location of the mousedown or click event,
- * maintaining the cursor location relative to the location on the element
- * that was clicked. Override this if you want to place the element in a
- * location other than where the cursor is.
- * @method alignElWithMouse
- * @param {HTMLElement} el the element to move
- * @param {int} iPageX the X coordinate of the mousedown or drag event
- * @param {int} iPageY the Y coordinate of the mousedown or drag event
- */
- alignElWithMouse: function(el, iPageX, iPageY) {
- var oCoord = this.getTargetCoord(iPageX, iPageY);
- // this.logger.log("****alignElWithMouse : " + el.id + ", " + aCoord + ", " + el.style.display);
-
- if (!this.deltaSetXY) {
- var aCoord = [oCoord.x, oCoord.y];
- YAHOO.util.Dom.setXY(el, aCoord);
- var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
- var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
- this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ];
- } else {
- YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px");
- YAHOO.util.Dom.setStyle(el, "top", (oCoord.y + this.deltaSetXY[1]) + "px");
- }
-
- this.cachePosition(oCoord.x, oCoord.y);
- this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
- },
-
- /**
- * Saves the most recent position so that we can reset the constraints and
- * tick marks on-demand. We need to know this so that we can calculate the
- * number of pixels the element is offset from its original position.
- * @method cachePosition
- * @param iPageX the current x position (optional, this just makes it so we
- * don't have to look it up again)
- * @param iPageY the current y position (optional, this just makes it so we
- * don't have to look it up again)
- */
- cachePosition: function(iPageX, iPageY) {
- if (iPageX) {
- this.lastPageX = iPageX;
- this.lastPageY = iPageY;
- } else {
- var aCoord = YAHOO.util.Dom.getXY(this.getEl());
- this.lastPageX = aCoord[0];
- this.lastPageY = aCoord[1];
- }
- },
-
- /**
- * Auto-scroll the window if the dragged object has been moved beyond the
- * visible window boundary.
- * @method autoScroll
- * @param {int} x the drag element's x position
- * @param {int} y the drag element's y position
- * @param {int} h the height of the drag element
- * @param {int} w the width of the drag element
- * @private
- */
- autoScroll: function(x, y, h, w) {
-
- if (this.scroll) {
- // The client height
- var clientH = this.DDM.getClientHeight();
-
- // The client width
- var clientW = this.DDM.getClientWidth();
-
- // The amt scrolled down
- var st = this.DDM.getScrollTop();
-
- // The amt scrolled right
- var sl = this.DDM.getScrollLeft();
-
- // Location of the bottom of the element
- var bot = h + y;
-
- // Location of the right of the element
- var right = w + x;
-
- // The distance from the cursor to the bottom of the visible area,
- // adjusted so that we don't scroll if the cursor is beyond the
- // element drag constraints
- var toBot = (clientH + st - y - this.deltaY);
-
- // The distance from the cursor to the right of the visible area
- var toRight = (clientW + sl - x - this.deltaX);
-
- // this.logger.log( " x: " + x + " y: " + y + " h: " + h +
- // " clientH: " + clientH + " clientW: " + clientW +
- // " st: " + st + " sl: " + sl + " bot: " + bot +
- // " right: " + right + " toBot: " + toBot + " toRight: " + toRight);
-
- // How close to the edge the cursor must be before we scroll
- // var thresh = (document.all) ? 100 : 40;
- var thresh = 40;
-
- // How many pixels to scroll per autoscroll op. This helps to reduce
- // clunky scrolling. IE is more sensitive about this ... it needs this
- // value to be higher.
- var scrAmt = (document.all) ? 80 : 30;
-
- // Scroll down if we are near the bottom of the visible page and the
- // obj extends below the crease
- if ( bot > clientH && toBot < thresh ) {
- window.scrollTo(sl, st + scrAmt);
- }
-
- // Scroll up if the window is scrolled down and the top of the object
- // goes above the top border
- if ( y < st && st > 0 && y - st < thresh ) {
- window.scrollTo(sl, st - scrAmt);
- }
-
- // Scroll right if the obj is beyond the right border and the cursor is
- // near the border.
- if ( right > clientW && toRight < thresh ) {
- window.scrollTo(sl + scrAmt, st);
- }
-
- // Scroll left if the window has been scrolled to the right and the obj
- // extends past the left border
- if ( x < sl && sl > 0 && x - sl < thresh ) {
- window.scrollTo(sl - scrAmt, st);
- }
- }
- },
-
- /**
- * Finds the location the element should be placed if we want to move
- * it to where the mouse location less the click offset would place us.
- * @method getTargetCoord
- * @param {int} iPageX the X coordinate of the click
- * @param {int} iPageY the Y coordinate of the click
- * @return an object that contains the coordinates (Object.x and Object.y)
- * @private
- */
- getTargetCoord: function(iPageX, iPageY) {
-
- // this.logger.log("getTargetCoord: " + iPageX + ", " + iPageY);
-
- var x = iPageX - this.deltaX;
- var y = iPageY - this.deltaY;
-
- if (this.constrainX) {
- if (x < this.minX) { x = this.minX; }
- if (x > this.maxX) { x = this.maxX; }
- }
-
- if (this.constrainY) {
- if (y < this.minY) { y = this.minY; }
- if (y > this.maxY) { y = this.maxY; }
- }
-
- x = this.getTick(x, this.xTicks);
- y = this.getTick(y, this.yTicks);
-
- // this.logger.log("getTargetCoord " +
- // " iPageX: " + iPageX +
- // " iPageY: " + iPageY +
- // " x: " + x + ", y: " + y);
-
- return {x:x, y:y};
- },
-
- /*
- * Sets up config options specific to this class. Overrides
- * YAHOO.util.DragDrop, but all versions of this method through the
- * inheritance chain are called
- */
- applyConfig: function() {
- YAHOO.util.DD.superclass.applyConfig.call(this);
- this.scroll = (this.config.scroll !== false);
- },
-
- /*
- * Event that fires prior to the onMouseDown event. Overrides
- * YAHOO.util.DragDrop.
- */
- b4MouseDown: function(e) {
- this.setStartPosition();
- // this.resetConstraints();
- this.autoOffset(YAHOO.util.Event.getPageX(e),
- YAHOO.util.Event.getPageY(e));
- },
-
- /*
- * Event that fires prior to the onDrag event. Overrides
- * YAHOO.util.DragDrop.
- */
- b4Drag: function(e) {
- this.setDragElPos(YAHOO.util.Event.getPageX(e),
- YAHOO.util.Event.getPageY(e));
- },
-
- toString: function() {
- return ("DD " + this.id);
- }
-
- //////////////////////////////////////////////////////////////////////////
- // Debugging ygDragDrop events that can be overridden
- //////////////////////////////////////////////////////////////////////////
- /*
- startDrag: function(x, y) {
- this.logger.log(this.id.toString() + " startDrag");
- },
-
- onDrag: function(e) {
- this.logger.log(this.id.toString() + " onDrag");
- },
-
- onDragEnter: function(e, id) {
- this.logger.log(this.id.toString() + " onDragEnter: " + id);
- },
-
- onDragOver: function(e, id) {
- this.logger.log(this.id.toString() + " onDragOver: " + id);
- },
-
- onDragOut: function(e, id) {
- this.logger.log(this.id.toString() + " onDragOut: " + id);
- },
-
- onDragDrop: function(e, id) {
- this.logger.log(this.id.toString() + " onDragDrop: " + id);
- },
-
- endDrag: function(e) {
- this.logger.log(this.id.toString() + " endDrag");
- }
-
- */
-
-});
-/**
- * A DragDrop implementation that inserts an empty, bordered div into
- * the document that follows the cursor during drag operations. At the time of
- * the click, the frame div is resized to the dimensions of the linked html
- * element, and moved to the exact location of the linked element.
- *
- * References to the "frame" element refer to the single proxy element that
- * was created to be dragged in place of all DDProxy elements on the
- * page.
- *
- * @class DDProxy
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the linked html element
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DDProxy in addition to those in DragDrop:
- * resizeFrame, centerFrame, dragElId
- */
-YAHOO.util.DDProxy = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- this.initFrame();
- }
-};
-
-/**
- * The default drag frame div id
- * @property YAHOO.util.DDProxy.dragElId
- * @type String
- * @static
- */
-YAHOO.util.DDProxy.dragElId = "ygddfdiv";
-
-YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
-
- /**
- * By default we resize the drag frame to be the same size as the element
- * we want to drag (this is to get the frame effect). We can turn it off
- * if we want a different behavior.
- * @property resizeFrame
- * @type boolean
- */
- resizeFrame: true,
-
- /**
- * By default the frame is positioned exactly where the drag element is, so
- * we use the cursor offset provided by YAHOO.util.DD. Another option that works only if
- * you do not have constraints on the obj is to have the drag frame centered
- * around the cursor. Set centerFrame to true for this effect.
- * @property centerFrame
- * @type boolean
- */
- centerFrame: false,
-
- /**
- * Creates the proxy element if it does not yet exist
- * @method createFrame
- */
- createFrame: function() {
- var self = this;
- var body = document.body;
-
- if (!body || !body.firstChild) {
- setTimeout( function() { self.createFrame(); }, 50 );
- return;
- }
-
- var div = this.getDragEl();
-
- if (!div) {
- div = document.createElement("div");
- div.id = this.dragElId;
- var s = div.style;
-
- s.position = "absolute";
- s.visibility = "hidden";
- s.cursor = "move";
- s.border = "2px solid #aaa";
- s.zIndex = 999;
-
- // appendChild can blow up IE if invoked prior to the window load event
- // while rendering a table. It is possible there are other scenarios
- // that would cause this to happen as well.
- body.insertBefore(div, body.firstChild);
- }
- },
-
- /**
- * Initialization for the drag frame element. Must be called in the
- * constructor of all subclasses
- * @method initFrame
- */
- initFrame: function() {
- this.createFrame();
- },
-
- applyConfig: function() {
- this.logger.log("DDProxy applyConfig");
- YAHOO.util.DDProxy.superclass.applyConfig.call(this);
-
- this.resizeFrame = (this.config.resizeFrame !== false);
- this.centerFrame = (this.config.centerFrame);
- this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId);
- },
-
- /**
- * Resizes the drag frame to the dimensions of the clicked object, positions
- * it over the object, and finally displays it
- * @method showFrame
- * @param {int} iPageX X click position
- * @param {int} iPageY Y click position
- * @private
- */
- showFrame: function(iPageX, iPageY) {
- var el = this.getEl();
- var dragEl = this.getDragEl();
- var s = dragEl.style;
-
- this._resizeProxy();
-
- if (this.centerFrame) {
- this.setDelta( Math.round(parseInt(s.width, 10)/2),
- Math.round(parseInt(s.height, 10)/2) );
- }
-
- this.setDragElPos(iPageX, iPageY);
-
- YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible");
- },
-
- /**
- * The proxy is automatically resized to the dimensions of the linked
- * element when a drag is initiated, unless resizeFrame is set to false
- * @method _resizeProxy
- * @private
- */
- _resizeProxy: function() {
- if (this.resizeFrame) {
- var DOM = YAHOO.util.Dom;
- var el = this.getEl();
- var dragEl = this.getDragEl();
-
- var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth" ), 10);
- var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth" ), 10);
- var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10);
- var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth" ), 10);
-
- if (isNaN(bt)) { bt = 0; }
- if (isNaN(br)) { br = 0; }
- if (isNaN(bb)) { bb = 0; }
- if (isNaN(bl)) { bl = 0; }
-
- this.logger.log("proxy size: " + bt + " " + br + " " + bb + " " + bl);
-
- var newWidth = Math.max(0, el.offsetWidth - br - bl);
- var newHeight = Math.max(0, el.offsetHeight - bt - bb);
-
- this.logger.log("Resizing proxy element");
-
- DOM.setStyle( dragEl, "width", newWidth + "px" );
- DOM.setStyle( dragEl, "height", newHeight + "px" );
- }
- },
-
- // overrides YAHOO.util.DragDrop
- b4MouseDown: function(e) {
- this.setStartPosition();
- var x = YAHOO.util.Event.getPageX(e);
- var y = YAHOO.util.Event.getPageY(e);
- this.autoOffset(x, y);
- this.setDragElPos(x, y);
- },
-
- // overrides YAHOO.util.DragDrop
- b4StartDrag: function(x, y) {
- // show the drag frame
- this.logger.log("start drag show frame, x: " + x + ", y: " + y);
- this.showFrame(x, y);
- },
-
- // overrides YAHOO.util.DragDrop
- b4EndDrag: function(e) {
- this.logger.log(this.id + " b4EndDrag");
- YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden");
- },
-
- // overrides YAHOO.util.DragDrop
- // By default we try to move the element to the last location of the frame.
- // This is so that the default behavior mirrors that of YAHOO.util.DD.
- endDrag: function(e) {
- var DOM = YAHOO.util.Dom;
- this.logger.log(this.id + " endDrag");
- var lel = this.getEl();
- var del = this.getDragEl();
-
- // Show the drag frame briefly so we can get its position
- // del.style.visibility = "";
- DOM.setStyle(del, "visibility", "");
-
- // Hide the linked element before the move to get around a Safari
- // rendering bug.
- //lel.style.visibility = "hidden";
- DOM.setStyle(lel, "visibility", "hidden");
- YAHOO.util.DDM.moveToEl(lel, del);
- //del.style.visibility = "hidden";
- DOM.setStyle(del, "visibility", "hidden");
- //lel.style.visibility = "";
- DOM.setStyle(lel, "visibility", "");
- },
-
- toString: function() {
- return ("DDProxy " + this.id);
- }
-
-});
-/**
- * A DragDrop implementation that does not move, but can be a drop
- * target. You would get the same result by simply omitting implementation
- * for the event callbacks, but this way we reduce the processing cost of the
- * event listener and the callbacks.
- * @class DDTarget
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the element that is a drop target
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DDTarget in addition to those in
- * DragDrop:
- * none
- */
-YAHOO.util.DDTarget = function(id, sGroup, config) {
- if (id) {
- this.initTarget(id, sGroup, config);
- }
-};
-
-// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop();
-YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
- toString: function() {
- return ("DDTarget " + this.id);
- }
-});
-YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js
deleted file mode 100644
index f890378e7ef3aec0f8d8d6c27e3abb47d8cc745e..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop-min.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var Event=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initalized:false,locked:false,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(sMethod,args){for(var i in this.ids){for(var j in this.ids[i]){var oDD=this.ids[i][j];if(!this.isTypeOfDD(oDD)){continue;}
-oDD[sMethod].apply(oDD,args);}}},_onLoad:function(){this.init();Event.on(document,"mouseup",this.handleMouseUp,this,true);Event.on(document,"mousemove",this.handleMouseMove,this,true);Event.on(window,"unload",this._onUnload,this,true);Event.on(window,"resize",this._onResize,this,true);},_onResize:function(e){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(oDD,sGroup){if(!this.initialized){this.init();}
-if(!this.ids[sGroup]){this.ids[sGroup]={};}
-this.ids[sGroup][oDD.id]=oDD;},removeDDFromGroup:function(oDD,sGroup){if(!this.ids[sGroup]){this.ids[sGroup]={};}
-var obj=this.ids[sGroup];if(obj&&obj[oDD.id]){delete obj[oDD.id];}},_remove:function(oDD){for(var g in oDD.groups){if(g&&this.ids[g][oDD.id]){delete this.ids[g][oDD.id];}}
-delete this.handleIds[oDD.id];},regHandle:function(sDDId,sHandleId){if(!this.handleIds[sDDId]){this.handleIds[sDDId]={};}
-this.handleIds[sDDId][sHandleId]=sHandleId;},isDragDrop:function(id){return(this.getDDById(id))?true:false;},getRelated:function(p_oDD,bTargetsOnly){var oDDs=[];for(var i in p_oDD.groups){for(j in this.ids[i]){var dd=this.ids[i][j];if(!this.isTypeOfDD(dd)){continue;}
-if(!bTargetsOnly||dd.isTarget){oDDs[oDDs.length]=dd;}}}
-return oDDs;},isLegalTarget:function(oDD,oTargetDD){var targets=this.getRelated(oDD,true);for(var i=0,len=targets.length;ithis.clickPixelThresh||diffY>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}
-if(this.dragThreshMet){this.dragCurrent.b4Drag(e);this.dragCurrent.onDrag(e);this.fireEvents(e,false);}
-this.stopEvent(e);return true;},fireEvents:function(e,isDrop){var dc=this.dragCurrent;if(!dc||dc.isLocked()){return;}
-var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);var pt=new YAHOO.util.Point(x,y);var oldOvers=[];var outEvts=[];var overEvts=[];var dropEvts=[];var enterEvts=[];for(var i in this.dragOvers){var ddo=this.dragOvers[i];if(!this.isTypeOfDD(ddo)){continue;}
-if(!this.isOverTarget(pt,ddo,this.mode)){outEvts.push(ddo);}
-oldOvers[i]=true;delete this.dragOvers[i];}
-for(var sGroup in dc.groups){if("string"!=typeof sGroup){continue;}
-for(i in this.ids[sGroup]){var oDD=this.ids[sGroup][i];if(!this.isTypeOfDD(oDD)){continue;}
-if(oDD.isTarget&&!oDD.isLocked()&&oDD!=dc){if(this.isOverTarget(pt,oDD,this.mode)){if(isDrop){dropEvts.push(oDD);}else{if(!oldOvers[oDD.id]){enterEvts.push(oDD);}else{overEvts.push(oDD);}
-this.dragOvers[oDD.id]=oDD;}}}}}
-if(this.mode){if(outEvts.length){dc.b4DragOut(e,outEvts);dc.onDragOut(e,outEvts);}
-if(enterEvts.length){dc.onDragEnter(e,enterEvts);}
-if(overEvts.length){dc.b4DragOver(e,overEvts);dc.onDragOver(e,overEvts);}
-if(dropEvts.length){dc.b4DragDrop(e,dropEvts);dc.onDragDrop(e,dropEvts);}}else{var len=0;for(i=0,len=outEvts.length;i2000){}else{setTimeout(DDM._addListeners,10);if(document&&document.body){DDM._timeoutCount+=1;}}}},handleWasClicked:function(node,id){if(this.isHandle(id,node.id)){return true;}else{var p=node.parentNode;while(p){if(this.isHandle(id,p.id)){return true;}else{p=p.parentNode;}}}
-return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}
-(function(){var Event=YAHOO.util.Event;var Dom=YAHOO.util.Dom;YAHOO.util.DragDrop=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.util.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(x,y){},startDrag:function(x,y){},b4Drag:function(e){},onDrag:function(e){},onDragEnter:function(e,id){},b4DragOver:function(e){},onDragOver:function(e,id){},b4DragOut:function(e){},onDragOut:function(e,id){},b4DragDrop:function(e){},onDragDrop:function(e,id){},onInvalidDrop:function(e){},b4EndDrag:function(e){},endDrag:function(e){},b4MouseDown:function(e){},onMouseDown:function(e){},onMouseUp:function(e){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=Dom.get(this.id);}
-return this._domRef;},getDragEl:function(){return Dom.get(this.dragElId);},init:function(id,sGroup,config){this.initTarget(id,sGroup,config);Event.on(this.id,"mousedown",this.handleMouseDown,this,true);},initTarget:function(id,sGroup,config){this.config=config||{};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof id!=="string"){id=Dom.generateId(id);}
-this.id=id;this.addToGroup((sGroup)?sGroup:"default");this.handleElId=id;Event.onAvailable(id,this.handleOnAvailable,this,true);this.setDragElId(id);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable();},setPadding:function(iTop,iRight,iBot,iLeft){if(!iRight&&0!==iRight){this.padding=[iTop,iTop,iTop,iTop];}else if(!iBot&&0!==iBot){this.padding=[iTop,iRight,iTop,iRight];}else{this.padding=[iTop,iRight,iBot,iLeft];}},setInitPosition:function(diffX,diffY){var el=this.getEl();if(!this.DDM.verifyEl(el)){return;}
-var dx=diffX||0;var dy=diffY||0;var p=Dom.getXY(el);this.initPageX=p[0]-dx;this.initPageY=p[1]-dy;this.lastPageX=p[0];this.lastPageY=p[1];this.setStartPosition(p);},setStartPosition:function(pos){var p=pos||Dom.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=p[0];this.startPageY=p[1];},addToGroup:function(sGroup){this.groups[sGroup]=true;this.DDM.regDragDrop(this,sGroup);},removeFromGroup:function(sGroup){if(this.groups[sGroup]){delete this.groups[sGroup];}
-this.DDM.removeDDFromGroup(this,sGroup);},setDragElId:function(id){this.dragElId=id;},setHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);}
-this.handleElId=id;this.DDM.regHandle(this.id,id);},setOuterHandleElId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);}
-Event.on(id,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(id);this.hasOuterHandles=true;},unreg:function(){Event.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(e,oDD){var button=e.which||e.button;if(this.primaryButtonOnly&&button>1){return;}
-if(this.isLocked()){return;}
-this.b4MouseDown(e);this.onMouseDown(e);this.DDM.refreshCache(this.groups);var pt=new YAHOO.util.Point(Event.getPageX(e),Event.getPageY(e));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(pt,this)){}else{if(this.clickValidator(e)){this.setStartPosition();this.DDM.handleMouseDown(e,this);this.DDM.stopEvent(e);}else{}}},clickValidator:function(e){var target=Event.getTarget(e);return(this.isValidHandleChild(target)&&(this.id==this.handleElId||this.DDM.handleWasClicked(target,this.id)));},addInvalidHandleType:function(tagName){var type=tagName.toUpperCase();this.invalidHandleTypes[type]=type;},addInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);}
-this.invalidHandleIds[id]=id;},addInvalidHandleClass:function(cssClass){this.invalidHandleClasses.push(cssClass);},removeInvalidHandleType:function(tagName){var type=tagName.toUpperCase();delete this.invalidHandleTypes[type];},removeInvalidHandleId:function(id){if(typeof id!=="string"){id=Dom.generateId(id);}
-delete this.invalidHandleIds[id];},removeInvalidHandleClass:function(cssClass){for(var i=0,len=this.invalidHandleClasses.length;i=this.minX;i=i-iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}}
-for(i=this.initPageX;i<=this.maxX;i=i+iTickSize){if(!tickMap[i]){this.xTicks[this.xTicks.length]=i;tickMap[i]=true;}}
-this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(iStartY,iTickSize){this.yTicks=[];this.yTickSize=iTickSize;var tickMap={};for(var i=this.initPageY;i>=this.minY;i=i-iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}}
-for(i=this.initPageY;i<=this.maxY;i=i+iTickSize){if(!tickMap[i]){this.yTicks[this.yTicks.length]=i;tickMap[i]=true;}}
-this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(iLeft,iRight,iTickSize){this.leftConstraint=parseInt(iLeft,10);this.rightConstraint=parseInt(iRight,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(iTickSize){this.setXTicks(this.initPageX,iTickSize);}
-this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(iUp,iDown,iTickSize){this.topConstraint=parseInt(iUp,10);this.bottomConstraint=parseInt(iDown,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(iTickSize){this.setYTicks(this.initPageY,iTickSize);}
-this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var dx=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var dy=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(dx,dy);}else{this.setInitPosition();}
-if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}
-if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(val,tickArray){if(!tickArray){return val;}else if(tickArray[0]>=val){return tickArray[0];}else{for(var i=0,len=tickArray.length;i=val){var diff1=val-tickArray[i];var diff2=tickArray[next]-val;return(diff2>diff1)?tickArray[i]:tickArray[next];}}
-return tickArray[tickArray.length-1];}},toString:function(){return("DragDrop "+this.id);}};})();YAHOO.util.DD=function(id,sGroup,config){if(id){this.init(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(iPageX,iPageY){var x=iPageX-this.startPageX;var y=iPageY-this.startPageY;this.setDelta(x,y);},setDelta:function(iDeltaX,iDeltaY){this.deltaX=iDeltaX;this.deltaY=iDeltaY;},setDragElPos:function(iPageX,iPageY){var el=this.getDragEl();this.alignElWithMouse(el,iPageX,iPageY);},alignElWithMouse:function(el,iPageX,iPageY){var oCoord=this.getTargetCoord(iPageX,iPageY);if(!this.deltaSetXY){var aCoord=[oCoord.x,oCoord.y];YAHOO.util.Dom.setXY(el,aCoord);var newLeft=parseInt(YAHOO.util.Dom.getStyle(el,"left"),10);var newTop=parseInt(YAHOO.util.Dom.getStyle(el,"top"),10);this.deltaSetXY=[newLeft-oCoord.x,newTop-oCoord.y];}else{YAHOO.util.Dom.setStyle(el,"left",(oCoord.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(el,"top",(oCoord.y+this.deltaSetXY[1])+"px");}
-this.cachePosition(oCoord.x,oCoord.y);this.autoScroll(oCoord.x,oCoord.y,el.offsetHeight,el.offsetWidth);},cachePosition:function(iPageX,iPageY){if(iPageX){this.lastPageX=iPageX;this.lastPageY=iPageY;}else{var aCoord=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=aCoord[0];this.lastPageY=aCoord[1];}},autoScroll:function(x,y,h,w){if(this.scroll){var clientH=this.DDM.getClientHeight();var clientW=this.DDM.getClientWidth();var st=this.DDM.getScrollTop();var sl=this.DDM.getScrollLeft();var bot=h+y;var right=w+x;var toBot=(clientH+st-y-this.deltaY);var toRight=(clientW+sl-x-this.deltaX);var thresh=40;var scrAmt=(document.all)?80:30;if(bot>clientH&&toBot0&&y-stclientW&&toRight0&&x-slthis.maxX){x=this.maxX;}}
-if(this.constrainY){if(ythis.maxY){y=this.maxY;}}
-x=this.getTick(x,this.xTicks);y=this.getTick(y,this.yTicks);return{x:x,y:y};},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(e){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},b4Drag:function(e){this.setDragElPos(YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(id,sGroup,config){if(id){this.init(id,sGroup,config);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var self=this;var body=document.body;if(!body||!body.firstChild){setTimeout(function(){self.createFrame();},50);return;}
-var div=this.getDragEl();if(!div){div=document.createElement("div");div.id=this.dragElId;var s=div.style;s.position="absolute";s.visibility="hidden";s.cursor="move";s.border="2px solid #aaa";s.zIndex=999;body.insertBefore(div,body.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(iPageX,iPageY){var el=this.getEl();var dragEl=this.getDragEl();var s=dragEl.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(s.width,10)/2),Math.round(parseInt(s.height,10)/2));}
-this.setDragElPos(iPageX,iPageY);YAHOO.util.Dom.setStyle(dragEl,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var DOM=YAHOO.util.Dom;var el=this.getEl();var dragEl=this.getDragEl();var bt=parseInt(DOM.getStyle(dragEl,"borderTopWidth"),10);var br=parseInt(DOM.getStyle(dragEl,"borderRightWidth"),10);var bb=parseInt(DOM.getStyle(dragEl,"borderBottomWidth"),10);var bl=parseInt(DOM.getStyle(dragEl,"borderLeftWidth"),10);if(isNaN(bt)){bt=0;}
-if(isNaN(br)){br=0;}
-if(isNaN(bb)){bb=0;}
-if(isNaN(bl)){bl=0;}
-var newWidth=Math.max(0,el.offsetWidth-br-bl);var newHeight=Math.max(0,el.offsetHeight-bt-bb);DOM.setStyle(dragEl,"width",newWidth+"px");DOM.setStyle(dragEl,"height",newHeight+"px");}},b4MouseDown:function(e){this.setStartPosition();var x=YAHOO.util.Event.getPageX(e);var y=YAHOO.util.Event.getPageY(e);this.autoOffset(x,y);this.setDragElPos(x,y);},b4StartDrag:function(x,y){this.showFrame(x,y);},b4EndDrag:function(e){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(e){var DOM=YAHOO.util.Dom;var lel=this.getEl();var del=this.getDragEl();DOM.setStyle(del,"visibility","");DOM.setStyle(lel,"visibility","hidden");YAHOO.util.DDM.moveToEl(lel,del);DOM.setStyle(del,"visibility","hidden");DOM.setStyle(lel,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(id,sGroup,config){if(id){this.initTarget(id,sGroup,config);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.2.0",build:"127"});
\ No newline at end of file
diff --git a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js b/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js
deleted file mode 100644
index 025ffd72553e9b0f540c7dde2543e1a1781acd93..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/dragdrop/dragdrop.js
+++ /dev/null
@@ -1,2958 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The drag and drop utility provides a framework for building drag and drop
- * applications. In addition to enabling drag and drop for specific elements,
- * the drag and drop elements are tracked by the manager class, and the
- * interactions between the various elements are tracked during the drag and
- * the implementing code is notified about these important moments.
- * @module dragdrop
- * @title Drag and Drop
- * @requires yahoo,dom,event
- * @namespace YAHOO.util
- */
-
-// Only load the library once. Rewriting the manager class would orphan
-// existing drag and drop instances.
-if (!YAHOO.util.DragDropMgr) {
-
-/**
- * DragDropMgr is a singleton that tracks the element interaction for
- * all DragDrop items in the window. Generally, you will not call
- * this class directly, but it does have helper methods that could
- * be useful in your DragDrop implementations.
- * @class DragDropMgr
- * @static
- */
-YAHOO.util.DragDropMgr = function() {
-
- var Event = YAHOO.util.Event;
-
- return {
-
- /**
- * Two dimensional Array of registered DragDrop objects. The first
- * dimension is the DragDrop item group, the second the DragDrop
- * object.
- * @property ids
- * @type {string: string}
- * @private
- * @static
- */
- ids: {},
-
- /**
- * Array of element ids defined as drag handles. Used to determine
- * if the element that generated the mousedown event is actually the
- * handle and not the html element itself.
- * @property handleIds
- * @type {string: string}
- * @private
- * @static
- */
- handleIds: {},
-
- /**
- * the DragDrop object that is currently being dragged
- * @property dragCurrent
- * @type DragDrop
- * @private
- * @static
- **/
- dragCurrent: null,
-
- /**
- * the DragDrop object(s) that are being hovered over
- * @property dragOvers
- * @type Array
- * @private
- * @static
- */
- dragOvers: {},
-
- /**
- * the X distance between the cursor and the object being dragged
- * @property deltaX
- * @type int
- * @private
- * @static
- */
- deltaX: 0,
-
- /**
- * the Y distance between the cursor and the object being dragged
- * @property deltaY
- * @type int
- * @private
- * @static
- */
- deltaY: 0,
-
- /**
- * Flag to determine if we should prevent the default behavior of the
- * events we define. By default this is true, but this can be set to
- * false if you need the default behavior (not recommended)
- * @property preventDefault
- * @type boolean
- * @static
- */
- preventDefault: true,
-
- /**
- * Flag to determine if we should stop the propagation of the events
- * we generate. This is true by default but you may want to set it to
- * false if the html element contains other features that require the
- * mouse click.
- * @property stopPropagation
- * @type boolean
- * @static
- */
- stopPropagation: true,
-
- /**
- * Internal flag that is set to true when drag and drop has been
- * intialized
- * @property initialized
- * @private
- * @static
- */
- initalized: false,
-
- /**
- * All drag and drop can be disabled.
- * @property locked
- * @private
- * @static
- */
- locked: false,
-
- /**
- * Called the first time an element is registered.
- * @method init
- * @private
- * @static
- */
- init: function() {
- this.initialized = true;
- },
-
- /**
- * In point mode, drag and drop interaction is defined by the
- * location of the cursor during the drag/drop
- * @property POINT
- * @type int
- * @static
- * @final
- */
- POINT: 0,
-
- /**
- * In intersect mode, drag and drop interaction is defined by the
- * cursor position or the amount of overlap of two or more drag and
- * drop objects.
- * @property INTERSECT
- * @type int
- * @static
- * @final
- */
- INTERSECT: 1,
-
- /**
- * In intersect mode, drag and drop interaction is defined only by the
- * overlap of two or more drag and drop objects.
- * @property STRICT_INTERSECT
- * @type int
- * @static
- * @final
- */
- STRICT_INTERSECT: 2,
-
- /**
- * The current drag and drop mode. Default: POINT
- * @property mode
- * @type int
- * @static
- */
- mode: 0,
-
- /**
- * Runs method on all drag and drop objects
- * @method _execOnAll
- * @private
- * @static
- */
- _execOnAll: function(sMethod, args) {
- for (var i in this.ids) {
- for (var j in this.ids[i]) {
- var oDD = this.ids[i][j];
- if (! this.isTypeOfDD(oDD)) {
- continue;
- }
- oDD[sMethod].apply(oDD, args);
- }
- }
- },
-
- /**
- * Drag and drop initialization. Sets up the global event handlers
- * @method _onLoad
- * @private
- * @static
- */
- _onLoad: function() {
-
- this.init();
-
-
- Event.on(document, "mouseup", this.handleMouseUp, this, true);
- Event.on(document, "mousemove", this.handleMouseMove, this, true);
- Event.on(window, "unload", this._onUnload, this, true);
- Event.on(window, "resize", this._onResize, this, true);
- // Event.on(window, "mouseout", this._test);
-
- },
-
- /**
- * Reset constraints on all drag and drop objs
- * @method _onResize
- * @private
- * @static
- */
- _onResize: function(e) {
- this._execOnAll("resetConstraints", []);
- },
-
- /**
- * Lock all drag and drop functionality
- * @method lock
- * @static
- */
- lock: function() { this.locked = true; },
-
- /**
- * Unlock all drag and drop functionality
- * @method unlock
- * @static
- */
- unlock: function() { this.locked = false; },
-
- /**
- * Is drag and drop locked?
- * @method isLocked
- * @return {boolean} True if drag and drop is locked, false otherwise.
- * @static
- */
- isLocked: function() { return this.locked; },
-
- /**
- * Location cache that is set for all drag drop objects when a drag is
- * initiated, cleared when the drag is finished.
- * @property locationCache
- * @private
- * @static
- */
- locationCache: {},
-
- /**
- * Set useCache to false if you want to force object the lookup of each
- * drag and drop linked element constantly during a drag.
- * @property useCache
- * @type boolean
- * @static
- */
- useCache: true,
-
- /**
- * The number of pixels that the mouse needs to move after the
- * mousedown before the drag is initiated. Default=3;
- * @property clickPixelThresh
- * @type int
- * @static
- */
- clickPixelThresh: 3,
-
- /**
- * The number of milliseconds after the mousedown event to initiate the
- * drag if we don't get a mouseup event. Default=1000
- * @property clickTimeThresh
- * @type int
- * @static
- */
- clickTimeThresh: 1000,
-
- /**
- * Flag that indicates that either the drag pixel threshold or the
- * mousdown time threshold has been met
- * @property dragThreshMet
- * @type boolean
- * @private
- * @static
- */
- dragThreshMet: false,
-
- /**
- * Timeout used for the click time threshold
- * @property clickTimeout
- * @type Object
- * @private
- * @static
- */
- clickTimeout: null,
-
- /**
- * The X position of the mousedown event stored for later use when a
- * drag threshold is met.
- * @property startX
- * @type int
- * @private
- * @static
- */
- startX: 0,
-
- /**
- * The Y position of the mousedown event stored for later use when a
- * drag threshold is met.
- * @property startY
- * @type int
- * @private
- * @static
- */
- startY: 0,
-
- /**
- * Each DragDrop instance must be registered with the DragDropMgr.
- * This is executed in DragDrop.init()
- * @method regDragDrop
- * @param {DragDrop} oDD the DragDrop object to register
- * @param {String} sGroup the name of the group this element belongs to
- * @static
- */
- regDragDrop: function(oDD, sGroup) {
- if (!this.initialized) { this.init(); }
-
- if (!this.ids[sGroup]) {
- this.ids[sGroup] = {};
- }
- this.ids[sGroup][oDD.id] = oDD;
- },
-
- /**
- * Removes the supplied dd instance from the supplied group. Executed
- * by DragDrop.removeFromGroup, so don't call this function directly.
- * @method removeDDFromGroup
- * @private
- * @static
- */
- removeDDFromGroup: function(oDD, sGroup) {
- if (!this.ids[sGroup]) {
- this.ids[sGroup] = {};
- }
-
- var obj = this.ids[sGroup];
- if (obj && obj[oDD.id]) {
- delete obj[oDD.id];
- }
- },
-
- /**
- * Unregisters a drag and drop item. This is executed in
- * DragDrop.unreg, use that method instead of calling this directly.
- * @method _remove
- * @private
- * @static
- */
- _remove: function(oDD) {
- for (var g in oDD.groups) {
- if (g && this.ids[g][oDD.id]) {
- delete this.ids[g][oDD.id];
- }
- }
- delete this.handleIds[oDD.id];
- },
-
- /**
- * Each DragDrop handle element must be registered. This is done
- * automatically when executing DragDrop.setHandleElId()
- * @method regHandle
- * @param {String} sDDId the DragDrop id this element is a handle for
- * @param {String} sHandleId the id of the element that is the drag
- * handle
- * @static
- */
- regHandle: function(sDDId, sHandleId) {
- if (!this.handleIds[sDDId]) {
- this.handleIds[sDDId] = {};
- }
- this.handleIds[sDDId][sHandleId] = sHandleId;
- },
-
- /**
- * Utility function to determine if a given element has been
- * registered as a drag drop item.
- * @method isDragDrop
- * @param {String} id the element id to check
- * @return {boolean} true if this element is a DragDrop item,
- * false otherwise
- * @static
- */
- isDragDrop: function(id) {
- return ( this.getDDById(id) ) ? true : false;
- },
-
- /**
- * Returns the drag and drop instances that are in all groups the
- * passed in instance belongs to.
- * @method getRelated
- * @param {DragDrop} p_oDD the obj to get related data for
- * @param {boolean} bTargetsOnly if true, only return targetable objs
- * @return {DragDrop[]} the related instances
- * @static
- */
- getRelated: function(p_oDD, bTargetsOnly) {
- var oDDs = [];
- for (var i in p_oDD.groups) {
- for (j in this.ids[i]) {
- var dd = this.ids[i][j];
- if (! this.isTypeOfDD(dd)) {
- continue;
- }
- if (!bTargetsOnly || dd.isTarget) {
- oDDs[oDDs.length] = dd;
- }
- }
- }
-
- return oDDs;
- },
-
- /**
- * Returns true if the specified dd target is a legal target for
- * the specifice drag obj
- * @method isLegalTarget
- * @param {DragDrop} the drag obj
- * @param {DragDrop} the target
- * @return {boolean} true if the target is a legal target for the
- * dd obj
- * @static
- */
- isLegalTarget: function (oDD, oTargetDD) {
- var targets = this.getRelated(oDD, true);
- for (var i=0, len=targets.length;i this.clickPixelThresh ||
- diffY > this.clickPixelThresh) {
- this.startDrag(this.startX, this.startY);
- }
- }
-
- if (this.dragThreshMet) {
- this.dragCurrent.b4Drag(e);
- this.dragCurrent.onDrag(e);
- this.fireEvents(e, false);
- }
-
- this.stopEvent(e);
-
- return true;
- },
-
- /**
- * Iterates over all of the DragDrop elements to find ones we are
- * hovering over or dropping on
- * @method fireEvents
- * @param {Event} e the event
- * @param {boolean} isDrop is this a drop op or a mouseover op?
- * @private
- * @static
- */
- fireEvents: function(e, isDrop) {
- var dc = this.dragCurrent;
-
- // If the user did the mouse up outside of the window, we could
- // get here even though we have ended the drag.
- if (!dc || dc.isLocked()) {
- return;
- }
-
- var x = YAHOO.util.Event.getPageX(e);
- var y = YAHOO.util.Event.getPageY(e);
- var pt = new YAHOO.util.Point(x,y);
-
- // cache the previous dragOver array
- var oldOvers = [];
-
- var outEvts = [];
- var overEvts = [];
- var dropEvts = [];
- var enterEvts = [];
-
- // Check to see if the object(s) we were hovering over is no longer
- // being hovered over so we can fire the onDragOut event
- for (var i in this.dragOvers) {
-
- var ddo = this.dragOvers[i];
-
- if (! this.isTypeOfDD(ddo)) {
- continue;
- }
-
- if (! this.isOverTarget(pt, ddo, this.mode)) {
- outEvts.push( ddo );
- }
-
- oldOvers[i] = true;
- delete this.dragOvers[i];
- }
-
- for (var sGroup in dc.groups) {
-
- if ("string" != typeof sGroup) {
- continue;
- }
-
- for (i in this.ids[sGroup]) {
- var oDD = this.ids[sGroup][i];
- if (! this.isTypeOfDD(oDD)) {
- continue;
- }
-
- if (oDD.isTarget && !oDD.isLocked() && oDD != dc) {
- if (this.isOverTarget(pt, oDD, this.mode)) {
- // look for drop interactions
- if (isDrop) {
- dropEvts.push( oDD );
- // look for drag enter and drag over interactions
- } else {
-
- // initial drag over: dragEnter fires
- if (!oldOvers[oDD.id]) {
- enterEvts.push( oDD );
- // subsequent drag overs: dragOver fires
- } else {
- overEvts.push( oDD );
- }
-
- this.dragOvers[oDD.id] = oDD;
- }
- }
- }
- }
- }
-
- if (this.mode) {
- if (outEvts.length) {
- dc.b4DragOut(e, outEvts);
- dc.onDragOut(e, outEvts);
- }
-
- if (enterEvts.length) {
- dc.onDragEnter(e, enterEvts);
- }
-
- if (overEvts.length) {
- dc.b4DragOver(e, overEvts);
- dc.onDragOver(e, overEvts);
- }
-
- if (dropEvts.length) {
- dc.b4DragDrop(e, dropEvts);
- dc.onDragDrop(e, dropEvts);
- }
-
- } else {
- // fire dragout events
- var len = 0;
- for (i=0, len=outEvts.length; i
- * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups);
- *
- * Alternatively:
- *
- * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true});
- *
- * @TODO this really should be an indexed array. Alternatively this
- * method could accept both.
- * @method refreshCache
- * @param {Object} groups an associative array of groups to refresh
- * @static
- */
- refreshCache: function(groups) {
-
- // refresh everything if group array is not provided
- var g = groups || this.ids;
-
- for (var sGroup in g) {
- if ("string" != typeof sGroup) {
- continue;
- }
- for (var i in this.ids[sGroup]) {
- var oDD = this.ids[sGroup][i];
-
- if (this.isTypeOfDD(oDD)) {
- var loc = this.getLocation(oDD);
- if (loc) {
- this.locationCache[oDD.id] = loc;
- } else {
- delete this.locationCache[oDD.id];
- }
- }
- }
- }
- },
-
- /**
- * This checks to make sure an element exists and is in the DOM. The
- * main purpose is to handle cases where innerHTML is used to remove
- * drag and drop objects from the DOM. IE provides an 'unspecified
- * error' when trying to access the offsetParent of such an element
- * @method verifyEl
- * @param {HTMLElement} el the element to check
- * @return {boolean} true if the element looks usable
- * @static
- */
- verifyEl: function(el) {
- try {
- if (el) {
- var parent = el.offsetParent;
- if (parent) {
- return true;
- }
- }
- } catch(e) {
- }
-
- return false;
- },
-
- /**
- * Returns a Region object containing the drag and drop element's position
- * and size, including the padding configured for it
- * @method getLocation
- * @param {DragDrop} oDD the drag and drop object to get the
- * location for
- * @return {YAHOO.util.Region} a Region object representing the total area
- * the element occupies, including any padding
- * the instance is configured for.
- * @static
- */
- getLocation: function(oDD) {
- if (! this.isTypeOfDD(oDD)) {
- return null;
- }
-
- var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;
-
- try {
- pos= YAHOO.util.Dom.getXY(el);
- } catch (e) { }
-
- if (!pos) {
- return null;
- }
-
- x1 = pos[0];
- x2 = x1 + el.offsetWidth;
- y1 = pos[1];
- y2 = y1 + el.offsetHeight;
-
- t = y1 - oDD.padding[0];
- r = x2 + oDD.padding[1];
- b = y2 + oDD.padding[2];
- l = x1 - oDD.padding[3];
-
- return new YAHOO.util.Region( t, r, b, l );
- },
-
- /**
- * Checks the cursor location to see if it over the target
- * @method isOverTarget
- * @param {YAHOO.util.Point} pt The point to evaluate
- * @param {DragDrop} oTarget the DragDrop object we are inspecting
- * @return {boolean} true if the mouse is over the target
- * @private
- * @static
- */
- isOverTarget: function(pt, oTarget, intersect) {
- // use cache if available
- var loc = this.locationCache[oTarget.id];
- if (!loc || !this.useCache) {
- loc = this.getLocation(oTarget);
- this.locationCache[oTarget.id] = loc;
-
- }
-
- if (!loc) {
- return false;
- }
-
- oTarget.cursorIsOver = loc.contains( pt );
-
- // DragDrop is using this as a sanity check for the initial mousedown
- // in this case we are done. In POINT mode, if the drag obj has no
- // contraints, we are done. Otherwise we need to evaluate the
- // region the target as occupies to determine if the dragged element
- // overlaps with it.
-
- var dc = this.dragCurrent;
- if (!dc || !dc.getTargetCoord ||
- (!intersect && !dc.constrainX && !dc.constrainY)) {
-
- //if (oTarget.cursorIsOver) {
- //}
- return oTarget.cursorIsOver;
- }
-
- oTarget.overlap = null;
-
- // Get the current location of the drag element, this is the
- // location of the mouse event less the delta that represents
- // where the original mousedown happened on the element. We
- // need to consider constraints and ticks as well.
- var pos = dc.getTargetCoord(pt.x, pt.y);
-
- var el = dc.getDragEl();
- var curRegion = new YAHOO.util.Region( pos.y,
- pos.x + el.offsetWidth,
- pos.y + el.offsetHeight,
- pos.x );
-
- var overlap = curRegion.intersect(loc);
-
- if (overlap) {
- oTarget.overlap = overlap;
- return (intersect) ? true : oTarget.cursorIsOver;
- } else {
- return false;
- }
- },
-
- /**
- * unload event handler
- * @method _onUnload
- * @private
- * @static
- */
- _onUnload: function(e, me) {
- this.unregAll();
- },
-
- /**
- * Cleans up the drag and drop events and objects.
- * @method unregAll
- * @private
- * @static
- */
- unregAll: function() {
-
- if (this.dragCurrent) {
- this.stopDrag();
- this.dragCurrent = null;
- }
-
- this._execOnAll("unreg", []);
-
- for (i in this.elementCache) {
- delete this.elementCache[i];
- }
-
- this.elementCache = {};
- this.ids = {};
- },
-
- /**
- * A cache of DOM elements
- * @property elementCache
- * @private
- * @static
- */
- elementCache: {},
-
- /**
- * Get the wrapper for the DOM element specified
- * @method getElWrapper
- * @param {String} id the id of the element to get
- * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element
- * @private
- * @deprecated This wrapper isn't that useful
- * @static
- */
- getElWrapper: function(id) {
- var oWrapper = this.elementCache[id];
- if (!oWrapper || !oWrapper.el) {
- oWrapper = this.elementCache[id] =
- new this.ElementWrapper(YAHOO.util.Dom.get(id));
- }
- return oWrapper;
- },
-
- /**
- * Returns the actual DOM element
- * @method getElement
- * @param {String} id the id of the elment to get
- * @return {Object} The element
- * @deprecated use YAHOO.util.Dom.get instead
- * @static
- */
- getElement: function(id) {
- return YAHOO.util.Dom.get(id);
- },
-
- /**
- * Returns the style property for the DOM element (i.e.,
- * document.getElById(id).style)
- * @method getCss
- * @param {String} id the id of the elment to get
- * @return {Object} The style property of the element
- * @deprecated use YAHOO.util.Dom instead
- * @static
- */
- getCss: function(id) {
- var el = YAHOO.util.Dom.get(id);
- return (el) ? el.style : null;
- },
-
- /**
- * Inner class for cached elements
- * @class DragDropMgr.ElementWrapper
- * @for DragDropMgr
- * @private
- * @deprecated
- */
- ElementWrapper: function(el) {
- /**
- * The element
- * @property el
- */
- this.el = el || null;
- /**
- * The element id
- * @property id
- */
- this.id = this.el && el.id;
- /**
- * A reference to the style property
- * @property css
- */
- this.css = this.el && el.style;
- },
-
- /**
- * Returns the X position of an html element
- * @method getPosX
- * @param el the element for which to get the position
- * @return {int} the X coordinate
- * @for DragDropMgr
- * @deprecated use YAHOO.util.Dom.getX instead
- * @static
- */
- getPosX: function(el) {
- return YAHOO.util.Dom.getX(el);
- },
-
- /**
- * Returns the Y position of an html element
- * @method getPosY
- * @param el the element for which to get the position
- * @return {int} the Y coordinate
- * @deprecated use YAHOO.util.Dom.getY instead
- * @static
- */
- getPosY: function(el) {
- return YAHOO.util.Dom.getY(el);
- },
-
- /**
- * Swap two nodes. In IE, we use the native method, for others we
- * emulate the IE behavior
- * @method swapNode
- * @param n1 the first node to swap
- * @param n2 the other node to swap
- * @static
- */
- swapNode: function(n1, n2) {
- if (n1.swapNode) {
- n1.swapNode(n2);
- } else {
- var p = n2.parentNode;
- var s = n2.nextSibling;
-
- if (s == n1) {
- p.insertBefore(n1, n2);
- } else if (n2 == n1.nextSibling) {
- p.insertBefore(n2, n1);
- } else {
- n1.parentNode.replaceChild(n2, n1);
- p.insertBefore(n1, s);
- }
- }
- },
-
- /**
- * Returns the current scroll position
- * @method getScroll
- * @private
- * @static
- */
- getScroll: function () {
- var t, l, dde=document.documentElement, db=document.body;
- if (dde && (dde.scrollTop || dde.scrollLeft)) {
- t = dde.scrollTop;
- l = dde.scrollLeft;
- } else if (db) {
- t = db.scrollTop;
- l = db.scrollLeft;
- } else {
- }
- return { top: t, left: l };
- },
-
- /**
- * Returns the specified element style property
- * @method getStyle
- * @param {HTMLElement} el the element
- * @param {string} styleProp the style property
- * @return {string} The value of the style property
- * @deprecated use YAHOO.util.Dom.getStyle
- * @static
- */
- getStyle: function(el, styleProp) {
- return YAHOO.util.Dom.getStyle(el, styleProp);
- },
-
- /**
- * Gets the scrollTop
- * @method getScrollTop
- * @return {int} the document's scrollTop
- * @static
- */
- getScrollTop: function () { return this.getScroll().top; },
-
- /**
- * Gets the scrollLeft
- * @method getScrollLeft
- * @return {int} the document's scrollTop
- * @static
- */
- getScrollLeft: function () { return this.getScroll().left; },
-
- /**
- * Sets the x/y position of an element to the location of the
- * target element.
- * @method moveToEl
- * @param {HTMLElement} moveEl The element to move
- * @param {HTMLElement} targetEl The position reference element
- * @static
- */
- moveToEl: function (moveEl, targetEl) {
- var aCoord = YAHOO.util.Dom.getXY(targetEl);
- YAHOO.util.Dom.setXY(moveEl, aCoord);
- },
-
- /**
- * Gets the client height
- * @method getClientHeight
- * @return {int} client height in px
- * @deprecated use YAHOO.util.Dom.getViewportHeight instead
- * @static
- */
- getClientHeight: function() {
- return YAHOO.util.Dom.getViewportHeight();
- },
-
- /**
- * Gets the client width
- * @method getClientWidth
- * @return {int} client width in px
- * @deprecated use YAHOO.util.Dom.getViewportWidth instead
- * @static
- */
- getClientWidth: function() {
- return YAHOO.util.Dom.getViewportWidth();
- },
-
- /**
- * Numeric array sort function
- * @method numericSort
- * @static
- */
- numericSort: function(a, b) { return (a - b); },
-
- /**
- * Internal counter
- * @property _timeoutCount
- * @private
- * @static
- */
- _timeoutCount: 0,
-
- /**
- * Trying to make the load order less important. Without this we get
- * an error if this file is loaded before the Event Utility.
- * @method _addListeners
- * @private
- * @static
- */
- _addListeners: function() {
- var DDM = YAHOO.util.DDM;
- if ( YAHOO.util.Event && document ) {
- DDM._onLoad();
- } else {
- if (DDM._timeoutCount > 2000) {
- } else {
- setTimeout(DDM._addListeners, 10);
- if (document && document.body) {
- DDM._timeoutCount += 1;
- }
- }
- }
- },
-
- /**
- * Recursively searches the immediate parent and all child nodes for
- * the handle element in order to determine wheter or not it was
- * clicked.
- * @method handleWasClicked
- * @param node the html element to inspect
- * @static
- */
- handleWasClicked: function(node, id) {
- if (this.isHandle(id, node.id)) {
- return true;
- } else {
- // check to see if this is a text node child of the one we want
- var p = node.parentNode;
-
- while (p) {
- if (this.isHandle(id, p.id)) {
- return true;
- } else {
- p = p.parentNode;
- }
- }
- }
-
- return false;
- }
-
- };
-
-}();
-
-// shorter alias, save a few bytes
-YAHOO.util.DDM = YAHOO.util.DragDropMgr;
-YAHOO.util.DDM._addListeners();
-
-}
-
-(function() {
-
-var Event=YAHOO.util.Event;
-var Dom=YAHOO.util.Dom;
-
-/**
- * Defines the interface and base operation of items that that can be
- * dragged or can be drop targets. It was designed to be extended, overriding
- * the event handlers for startDrag, onDrag, onDragOver, onDragOut.
- * Up to three html elements can be associated with a DragDrop instance:
- *
- * linked element: the element that is passed into the constructor.
- * This is the element which defines the boundaries for interaction with
- * other DragDrop objects.
- * handle element(s): The drag operation only occurs if the element that
- * was clicked matches a handle element. By default this is the linked
- * element, but there are times that you will want only a portion of the
- * linked element to initiate the drag operation, and the setHandleElId()
- * method provides a way to define this.
- * drag element: this represents an the element that would be moved along
- * with the cursor during a drag operation. By default, this is the linked
- * element itself as in {@link YAHOO.util.DD}. setDragElId() lets you define
- * a separate element that would be moved, as in {@link YAHOO.util.DDProxy}
- *
- *
- * This class should not be instantiated until the onload event to ensure that
- * the associated elements are available.
- * The following would define a DragDrop obj that would interact with any
- * other DragDrop obj in the "group1" group:
- *
- * dd = new YAHOO.util.DragDrop("div1", "group1");
- *
- * Since none of the event handlers have been implemented, nothing would
- * actually happen if you were to run the code above. Normally you would
- * override this class or one of the default implementations, but you can
- * also override the methods you want on an instance of the class...
- *
- * dd.onDragDrop = function(e, id) {
- * alert("dd was dropped on " + id);
- * }
- *
- * @namespace YAHOO.util
- * @class DragDrop
- * @constructor
- * @param {String} id of the element that is linked to this instance
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DragDrop:
- * padding, isTarget, maintainOffset, primaryButtonOnly,
- */
-YAHOO.util.DragDrop = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- }
-};
-
-YAHOO.util.DragDrop.prototype = {
-
- /**
- * The id of the element associated with this object. This is what we
- * refer to as the "linked element" because the size and position of
- * this element is used to determine when the drag and drop objects have
- * interacted.
- * @property id
- * @type String
- */
- id: null,
-
- /**
- * Configuration attributes passed into the constructor
- * @property config
- * @type object
- */
- config: null,
-
- /**
- * The id of the element that will be dragged. By default this is same
- * as the linked element , but could be changed to another element. Ex:
- * YAHOO.util.DDProxy
- * @property dragElId
- * @type String
- * @private
- */
- dragElId: null,
-
- /**
- * the id of the element that initiates the drag operation. By default
- * this is the linked element, but could be changed to be a child of this
- * element. This lets us do things like only starting the drag when the
- * header element within the linked html element is clicked.
- * @property handleElId
- * @type String
- * @private
- */
- handleElId: null,
-
- /**
- * An associative array of HTML tags that will be ignored if clicked.
- * @property invalidHandleTypes
- * @type {string: string}
- */
- invalidHandleTypes: null,
-
- /**
- * An associative array of ids for elements that will be ignored if clicked
- * @property invalidHandleIds
- * @type {string: string}
- */
- invalidHandleIds: null,
-
- /**
- * An indexted array of css class names for elements that will be ignored
- * if clicked.
- * @property invalidHandleClasses
- * @type string[]
- */
- invalidHandleClasses: null,
-
- /**
- * The linked element's absolute X position at the time the drag was
- * started
- * @property startPageX
- * @type int
- * @private
- */
- startPageX: 0,
-
- /**
- * The linked element's absolute X position at the time the drag was
- * started
- * @property startPageY
- * @type int
- * @private
- */
- startPageY: 0,
-
- /**
- * The group defines a logical collection of DragDrop objects that are
- * related. Instances only get events when interacting with other
- * DragDrop object in the same group. This lets us define multiple
- * groups using a single DragDrop subclass if we want.
- * @property groups
- * @type {string: string}
- */
- groups: null,
-
- /**
- * Individual drag/drop instances can be locked. This will prevent
- * onmousedown start drag.
- * @property locked
- * @type boolean
- * @private
- */
- locked: false,
-
- /**
- * Lock this instance
- * @method lock
- */
- lock: function() { this.locked = true; },
-
- /**
- * Unlock this instace
- * @method unlock
- */
- unlock: function() { this.locked = false; },
-
- /**
- * By default, all insances can be a drop target. This can be disabled by
- * setting isTarget to false.
- * @method isTarget
- * @type boolean
- */
- isTarget: true,
-
- /**
- * The padding configured for this drag and drop object for calculating
- * the drop zone intersection with this object.
- * @method padding
- * @type int[]
- */
- padding: null,
-
- /**
- * Cached reference to the linked element
- * @property _domRef
- * @private
- */
- _domRef: null,
-
- /**
- * Internal typeof flag
- * @property __ygDragDrop
- * @private
- */
- __ygDragDrop: true,
-
- /**
- * Set to true when horizontal contraints are applied
- * @property constrainX
- * @type boolean
- * @private
- */
- constrainX: false,
-
- /**
- * Set to true when vertical contraints are applied
- * @property constrainY
- * @type boolean
- * @private
- */
- constrainY: false,
-
- /**
- * The left constraint
- * @property minX
- * @type int
- * @private
- */
- minX: 0,
-
- /**
- * The right constraint
- * @property maxX
- * @type int
- * @private
- */
- maxX: 0,
-
- /**
- * The up constraint
- * @property minY
- * @type int
- * @type int
- * @private
- */
- minY: 0,
-
- /**
- * The down constraint
- * @property maxY
- * @type int
- * @private
- */
- maxY: 0,
-
- /**
- * Maintain offsets when we resetconstraints. Set to true when you want
- * the position of the element relative to its parent to stay the same
- * when the page changes
- *
- * @property maintainOffset
- * @type boolean
- */
- maintainOffset: false,
-
- /**
- * Array of pixel locations the element will snap to if we specified a
- * horizontal graduation/interval. This array is generated automatically
- * when you define a tick interval.
- * @property xTicks
- * @type int[]
- */
- xTicks: null,
-
- /**
- * Array of pixel locations the element will snap to if we specified a
- * vertical graduation/interval. This array is generated automatically
- * when you define a tick interval.
- * @property yTicks
- * @type int[]
- */
- yTicks: null,
-
- /**
- * By default the drag and drop instance will only respond to the primary
- * button click (left button for a right-handed mouse). Set to true to
- * allow drag and drop to start with any mouse click that is propogated
- * by the browser
- * @property primaryButtonOnly
- * @type boolean
- */
- primaryButtonOnly: true,
-
- /**
- * The availabe property is false until the linked dom element is accessible.
- * @property available
- * @type boolean
- */
- available: false,
-
- /**
- * By default, drags can only be initiated if the mousedown occurs in the
- * region the linked element is. This is done in part to work around a
- * bug in some browsers that mis-report the mousedown if the previous
- * mouseup happened outside of the window. This property is set to true
- * if outer handles are defined.
- *
- * @property hasOuterHandles
- * @type boolean
- * @default false
- */
- hasOuterHandles: false,
-
- /**
- * Code that executes immediately before the startDrag event
- * @method b4StartDrag
- * @private
- */
- b4StartDrag: function(x, y) { },
-
- /**
- * Abstract method called after a drag/drop object is clicked
- * and the drag or mousedown time thresholds have beeen met.
- * @method startDrag
- * @param {int} X click location
- * @param {int} Y click location
- */
- startDrag: function(x, y) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDrag event
- * @method b4Drag
- * @private
- */
- b4Drag: function(e) { },
-
- /**
- * Abstract method called during the onMouseMove event while dragging an
- * object.
- * @method onDrag
- * @param {Event} e the mousemove event
- */
- onDrag: function(e) { /* override this */ },
-
- /**
- * Abstract method called when this element fist begins hovering over
- * another DragDrop obj
- * @method onDragEnter
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this is hovering over. In INTERSECT mode, an array of one or more
- * dragdrop items being hovered over.
- */
- onDragEnter: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragOver event
- * @method b4DragOver
- * @private
- */
- b4DragOver: function(e) { },
-
- /**
- * Abstract method called when this element is hovering over another
- * DragDrop obj
- * @method onDragOver
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this is hovering over. In INTERSECT mode, an array of dd items
- * being hovered over.
- */
- onDragOver: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragOut event
- * @method b4DragOut
- * @private
- */
- b4DragOut: function(e) { },
-
- /**
- * Abstract method called when we are no longer hovering over an element
- * @method onDragOut
- * @param {Event} e the mousemove event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this was hovering over. In INTERSECT mode, an array of dd items
- * that the mouse is no longer over.
- */
- onDragOut: function(e, id) { /* override this */ },
-
- /**
- * Code that executes immediately before the onDragDrop event
- * @method b4DragDrop
- * @private
- */
- b4DragDrop: function(e) { },
-
- /**
- * Abstract method called when this item is dropped on another DragDrop
- * obj
- * @method onDragDrop
- * @param {Event} e the mouseup event
- * @param {String|DragDrop[]} id In POINT mode, the element
- * id this was dropped on. In INTERSECT mode, an array of dd items this
- * was dropped on.
- */
- onDragDrop: function(e, id) { /* override this */ },
-
- /**
- * Abstract method called when this item is dropped on an area with no
- * drop target
- * @method onInvalidDrop
- * @param {Event} e the mouseup event
- */
- onInvalidDrop: function(e) { /* override this */ },
-
- /**
- * Code that executes immediately before the endDrag event
- * @method b4EndDrag
- * @private
- */
- b4EndDrag: function(e) { },
-
- /**
- * Fired when we are done dragging the object
- * @method endDrag
- * @param {Event} e the mouseup event
- */
- endDrag: function(e) { /* override this */ },
-
- /**
- * Code executed immediately before the onMouseDown event
- * @method b4MouseDown
- * @param {Event} e the mousedown event
- * @private
- */
- b4MouseDown: function(e) { },
-
- /**
- * Event handler that fires when a drag/drop obj gets a mousedown
- * @method onMouseDown
- * @param {Event} e the mousedown event
- */
- onMouseDown: function(e) { /* override this */ },
-
- /**
- * Event handler that fires when a drag/drop obj gets a mouseup
- * @method onMouseUp
- * @param {Event} e the mouseup event
- */
- onMouseUp: function(e) { /* override this */ },
-
- /**
- * Override the onAvailable method to do what is needed after the initial
- * position was determined.
- * @method onAvailable
- */
- onAvailable: function () {
- },
-
- /**
- * Returns a reference to the linked element
- * @method getEl
- * @return {HTMLElement} the html element
- */
- getEl: function() {
- if (!this._domRef) {
- this._domRef = Dom.get(this.id);
- }
-
- return this._domRef;
- },
-
- /**
- * Returns a reference to the actual element to drag. By default this is
- * the same as the html element, but it can be assigned to another
- * element. An example of this can be found in YAHOO.util.DDProxy
- * @method getDragEl
- * @return {HTMLElement} the html element
- */
- getDragEl: function() {
- return Dom.get(this.dragElId);
- },
-
- /**
- * Sets up the DragDrop object. Must be called in the constructor of any
- * YAHOO.util.DragDrop subclass
- * @method init
- * @param id the id of the linked element
- * @param {String} sGroup the group of related items
- * @param {object} config configuration attributes
- */
- init: function(id, sGroup, config) {
- this.initTarget(id, sGroup, config);
- Event.on(this.id, "mousedown", this.handleMouseDown, this, true);
- // Event.on(this.id, "selectstart", Event.preventDefault);
- },
-
- /**
- * Initializes Targeting functionality only... the object does not
- * get a mousedown handler.
- * @method initTarget
- * @param id the id of the linked element
- * @param {String} sGroup the group of related items
- * @param {object} config configuration attributes
- */
- initTarget: function(id, sGroup, config) {
-
- // configuration attributes
- this.config = config || {};
-
- // create a local reference to the drag and drop manager
- this.DDM = YAHOO.util.DDM;
- // initialize the groups array
- this.groups = {};
-
- // assume that we have an element reference instead of an id if the
- // parameter is not a string
- if (typeof id !== "string") {
- id = Dom.generateId(id);
- }
-
- // set the id
- this.id = id;
-
- // add to an interaction group
- this.addToGroup((sGroup) ? sGroup : "default");
-
- // We don't want to register this as the handle with the manager
- // so we just set the id rather than calling the setter.
- this.handleElId = id;
-
- Event.onAvailable(id, this.handleOnAvailable, this, true);
-
-
- // the linked element is the element that gets dragged by default
- this.setDragElId(id);
-
- // by default, clicked anchors will not start drag operations.
- // @TODO what else should be here? Probably form fields.
- this.invalidHandleTypes = { A: "A" };
- this.invalidHandleIds = {};
- this.invalidHandleClasses = [];
-
- this.applyConfig();
- },
-
- /**
- * Applies the configuration parameters that were passed into the constructor.
- * This is supposed to happen at each level through the inheritance chain. So
- * a DDProxy implentation will execute apply config on DDProxy, DD, and
- * DragDrop in order to get all of the parameters that are available in
- * each object.
- * @method applyConfig
- */
- applyConfig: function() {
-
- // configurable properties:
- // padding, isTarget, maintainOffset, primaryButtonOnly
- this.padding = this.config.padding || [0, 0, 0, 0];
- this.isTarget = (this.config.isTarget !== false);
- this.maintainOffset = (this.config.maintainOffset);
- this.primaryButtonOnly = (this.config.primaryButtonOnly !== false);
-
- },
-
- /**
- * Executed when the linked element is available
- * @method handleOnAvailable
- * @private
- */
- handleOnAvailable: function() {
- this.available = true;
- this.resetConstraints();
- this.onAvailable();
- },
-
- /**
- * Configures the padding for the target zone in px. Effectively expands
- * (or reduces) the virtual object size for targeting calculations.
- * Supports css-style shorthand; if only one parameter is passed, all sides
- * will have that padding, and if only two are passed, the top and bottom
- * will have the first param, the left and right the second.
- * @method setPadding
- * @param {int} iTop Top pad
- * @param {int} iRight Right pad
- * @param {int} iBot Bot pad
- * @param {int} iLeft Left pad
- */
- setPadding: function(iTop, iRight, iBot, iLeft) {
- // this.padding = [iLeft, iRight, iTop, iBot];
- if (!iRight && 0 !== iRight) {
- this.padding = [iTop, iTop, iTop, iTop];
- } else if (!iBot && 0 !== iBot) {
- this.padding = [iTop, iRight, iTop, iRight];
- } else {
- this.padding = [iTop, iRight, iBot, iLeft];
- }
- },
-
- /**
- * Stores the initial placement of the linked element.
- * @method setInitialPosition
- * @param {int} diffX the X offset, default 0
- * @param {int} diffY the Y offset, default 0
- */
- setInitPosition: function(diffX, diffY) {
- var el = this.getEl();
-
- if (!this.DDM.verifyEl(el)) {
- return;
- }
-
- var dx = diffX || 0;
- var dy = diffY || 0;
-
- var p = Dom.getXY( el );
-
- this.initPageX = p[0] - dx;
- this.initPageY = p[1] - dy;
-
- this.lastPageX = p[0];
- this.lastPageY = p[1];
-
-
-
- this.setStartPosition(p);
- },
-
- /**
- * Sets the start position of the element. This is set when the obj
- * is initialized, the reset when a drag is started.
- * @method setStartPosition
- * @param pos current position (from previous lookup)
- * @private
- */
- setStartPosition: function(pos) {
- var p = pos || Dom.getXY( this.getEl() );
-
- this.deltaSetXY = null;
-
- this.startPageX = p[0];
- this.startPageY = p[1];
- },
-
- /**
- * Add this instance to a group of related drag/drop objects. All
- * instances belong to at least one group, and can belong to as many
- * groups as needed.
- * @method addToGroup
- * @param sGroup {string} the name of the group
- */
- addToGroup: function(sGroup) {
- this.groups[sGroup] = true;
- this.DDM.regDragDrop(this, sGroup);
- },
-
- /**
- * Remove's this instance from the supplied interaction group
- * @method removeFromGroup
- * @param {string} sGroup The group to drop
- */
- removeFromGroup: function(sGroup) {
- if (this.groups[sGroup]) {
- delete this.groups[sGroup];
- }
-
- this.DDM.removeDDFromGroup(this, sGroup);
- },
-
- /**
- * Allows you to specify that an element other than the linked element
- * will be moved with the cursor during a drag
- * @method setDragElId
- * @param id {string} the id of the element that will be used to initiate the drag
- */
- setDragElId: function(id) {
- this.dragElId = id;
- },
-
- /**
- * Allows you to specify a child of the linked element that should be
- * used to initiate the drag operation. An example of this would be if
- * you have a content div with text and links. Clicking anywhere in the
- * content area would normally start the drag operation. Use this method
- * to specify that an element inside of the content div is the element
- * that starts the drag operation.
- * @method setHandleElId
- * @param id {string} the id of the element that will be used to
- * initiate the drag.
- */
- setHandleElId: function(id) {
- if (typeof id !== "string") {
- id = Dom.generateId(id);
- }
- this.handleElId = id;
- this.DDM.regHandle(this.id, id);
- },
-
- /**
- * Allows you to set an element outside of the linked element as a drag
- * handle
- * @method setOuterHandleElId
- * @param id the id of the element that will be used to initiate the drag
- */
- setOuterHandleElId: function(id) {
- if (typeof id !== "string") {
- id = Dom.generateId(id);
- }
- Event.on(id, "mousedown",
- this.handleMouseDown, this, true);
- this.setHandleElId(id);
-
- this.hasOuterHandles = true;
- },
-
- /**
- * Remove all drag and drop hooks for this element
- * @method unreg
- */
- unreg: function() {
- Event.removeListener(this.id, "mousedown",
- this.handleMouseDown);
- this._domRef = null;
- this.DDM._remove(this);
- },
-
- /**
- * Returns true if this instance is locked, or the drag drop mgr is locked
- * (meaning that all drag/drop is disabled on the page.)
- * @method isLocked
- * @return {boolean} true if this obj or all drag/drop is locked, else
- * false
- */
- isLocked: function() {
- return (this.DDM.isLocked() || this.locked);
- },
-
- /**
- * Fired when this object is clicked
- * @method handleMouseDown
- * @param {Event} e
- * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj)
- * @private
- */
- handleMouseDown: function(e, oDD) {
-
- var button = e.which || e.button;
-
- if (this.primaryButtonOnly && button > 1) {
- return;
- }
-
- if (this.isLocked()) {
- return;
- }
-
-
-
- // firing the mousedown events prior to calculating positions
- this.b4MouseDown(e);
- this.onMouseDown(e);
-
- this.DDM.refreshCache(this.groups);
- // var self = this;
- // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0);
-
- // Only process the event if we really clicked within the linked
- // element. The reason we make this check is that in the case that
- // another element was moved between the clicked element and the
- // cursor in the time between the mousedown and mouseup events. When
- // this happens, the element gets the next mousedown event
- // regardless of where on the screen it happened.
- var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e));
- if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) {
- } else {
- if (this.clickValidator(e)) {
-
-
- // set the initial element position
- this.setStartPosition();
-
- // start tracking mousemove distance and mousedown time to
- // determine when to start the actual drag
- this.DDM.handleMouseDown(e, this);
-
- // this mousedown is mine
- this.DDM.stopEvent(e);
- } else {
-
-
- }
- }
- },
-
- clickValidator: function(e) {
- var target = Event.getTarget(e);
- return ( this.isValidHandleChild(target) &&
- (this.id == this.handleElId ||
- this.DDM.handleWasClicked(target, this.id)) );
- },
-
- /**
- * Allows you to specify a tag name that should not start a drag operation
- * when clicked. This is designed to facilitate embedding links within a
- * drag handle that do something other than start the drag.
- * @method addInvalidHandleType
- * @param {string} tagName the type of element to exclude
- */
- addInvalidHandleType: function(tagName) {
- var type = tagName.toUpperCase();
- this.invalidHandleTypes[type] = type;
- },
-
- /**
- * Lets you to specify an element id for a child of a drag handle
- * that should not initiate a drag
- * @method addInvalidHandleId
- * @param {string} id the element id of the element you wish to ignore
- */
- addInvalidHandleId: function(id) {
- if (typeof id !== "string") {
- id = Dom.generateId(id);
- }
- this.invalidHandleIds[id] = id;
- },
-
-
- /**
- * Lets you specify a css class of elements that will not initiate a drag
- * @method addInvalidHandleClass
- * @param {string} cssClass the class of the elements you wish to ignore
- */
- addInvalidHandleClass: function(cssClass) {
- this.invalidHandleClasses.push(cssClass);
- },
-
- /**
- * Unsets an excluded tag name set by addInvalidHandleType
- * @method removeInvalidHandleType
- * @param {string} tagName the type of element to unexclude
- */
- removeInvalidHandleType: function(tagName) {
- var type = tagName.toUpperCase();
- // this.invalidHandleTypes[type] = null;
- delete this.invalidHandleTypes[type];
- },
-
- /**
- * Unsets an invalid handle id
- * @method removeInvalidHandleId
- * @param {string} id the id of the element to re-enable
- */
- removeInvalidHandleId: function(id) {
- if (typeof id !== "string") {
- id = Dom.generateId(id);
- }
- delete this.invalidHandleIds[id];
- },
-
- /**
- * Unsets an invalid css class
- * @method removeInvalidHandleClass
- * @param {string} cssClass the class of the element(s) you wish to
- * re-enable
- */
- removeInvalidHandleClass: function(cssClass) {
- for (var i=0, len=this.invalidHandleClasses.length; i= this.minX; i = i - iTickSize) {
- if (!tickMap[i]) {
- this.xTicks[this.xTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) {
- if (!tickMap[i]) {
- this.xTicks[this.xTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- this.xTicks.sort(this.DDM.numericSort) ;
- },
-
- /**
- * Create the array of vertical tick marks if an interval was specified in
- * setYConstraint().
- * @method setYTicks
- * @private
- */
- setYTicks: function(iStartY, iTickSize) {
- this.yTicks = [];
- this.yTickSize = iTickSize;
-
- var tickMap = {};
-
- for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) {
- if (!tickMap[i]) {
- this.yTicks[this.yTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) {
- if (!tickMap[i]) {
- this.yTicks[this.yTicks.length] = i;
- tickMap[i] = true;
- }
- }
-
- this.yTicks.sort(this.DDM.numericSort) ;
- },
-
- /**
- * By default, the element can be dragged any place on the screen. Use
- * this method to limit the horizontal travel of the element. Pass in
- * 0,0 for the parameters if you want to lock the drag to the y axis.
- * @method setXConstraint
- * @param {int} iLeft the number of pixels the element can move to the left
- * @param {int} iRight the number of pixels the element can move to the
- * right
- * @param {int} iTickSize optional parameter for specifying that the
- * element
- * should move iTickSize pixels at a time.
- */
- setXConstraint: function(iLeft, iRight, iTickSize) {
- this.leftConstraint = parseInt(iLeft, 10);
- this.rightConstraint = parseInt(iRight, 10);
-
- this.minX = this.initPageX - this.leftConstraint;
- this.maxX = this.initPageX + this.rightConstraint;
- if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); }
-
- this.constrainX = true;
- },
-
- /**
- * Clears any constraints applied to this instance. Also clears ticks
- * since they can't exist independent of a constraint at this time.
- * @method clearConstraints
- */
- clearConstraints: function() {
- this.constrainX = false;
- this.constrainY = false;
- this.clearTicks();
- },
-
- /**
- * Clears any tick interval defined for this instance
- * @method clearTicks
- */
- clearTicks: function() {
- this.xTicks = null;
- this.yTicks = null;
- this.xTickSize = 0;
- this.yTickSize = 0;
- },
-
- /**
- * By default, the element can be dragged any place on the screen. Set
- * this to limit the vertical travel of the element. Pass in 0,0 for the
- * parameters if you want to lock the drag to the x axis.
- * @method setYConstraint
- * @param {int} iUp the number of pixels the element can move up
- * @param {int} iDown the number of pixels the element can move down
- * @param {int} iTickSize optional parameter for specifying that the
- * element should move iTickSize pixels at a time.
- */
- setYConstraint: function(iUp, iDown, iTickSize) {
- this.topConstraint = parseInt(iUp, 10);
- this.bottomConstraint = parseInt(iDown, 10);
-
- this.minY = this.initPageY - this.topConstraint;
- this.maxY = this.initPageY + this.bottomConstraint;
- if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); }
-
- this.constrainY = true;
-
- },
-
- /**
- * resetConstraints must be called if you manually reposition a dd element.
- * @method resetConstraints
- * @param {boolean} maintainOffset
- */
- resetConstraints: function() {
-
-
- // Maintain offsets if necessary
- if (this.initPageX || this.initPageX === 0) {
- // figure out how much this thing has moved
- var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0;
- var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0;
-
- this.setInitPosition(dx, dy);
-
- // This is the first time we have detected the element's position
- } else {
- this.setInitPosition();
- }
-
- if (this.constrainX) {
- this.setXConstraint( this.leftConstraint,
- this.rightConstraint,
- this.xTickSize );
- }
-
- if (this.constrainY) {
- this.setYConstraint( this.topConstraint,
- this.bottomConstraint,
- this.yTickSize );
- }
- },
-
- /**
- * Normally the drag element is moved pixel by pixel, but we can specify
- * that it move a number of pixels at a time. This method resolves the
- * location when we have it set up like this.
- * @method getTick
- * @param {int} val where we want to place the object
- * @param {int[]} tickArray sorted array of valid points
- * @return {int} the closest tick
- * @private
- */
- getTick: function(val, tickArray) {
-
- if (!tickArray) {
- // If tick interval is not defined, it is effectively 1 pixel,
- // so we return the value passed to us.
- return val;
- } else if (tickArray[0] >= val) {
- // The value is lower than the first tick, so we return the first
- // tick.
- return tickArray[0];
- } else {
- for (var i=0, len=tickArray.length; i= val) {
- var diff1 = val - tickArray[i];
- var diff2 = tickArray[next] - val;
- return (diff2 > diff1) ? tickArray[i] : tickArray[next];
- }
- }
-
- // The value is larger than the last tick, so we return the last
- // tick.
- return tickArray[tickArray.length - 1];
- }
- },
-
- /**
- * toString method
- * @method toString
- * @return {string} string representation of the dd obj
- */
- toString: function() {
- return ("DragDrop " + this.id);
- }
-
-};
-
-})();
-/**
- * A DragDrop implementation where the linked element follows the
- * mouse cursor during a drag.
- * @class DD
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the linked element
- * @param {String} sGroup the group of related DragDrop items
- * @param {object} config an object containing configurable attributes
- * Valid properties for DD:
- * scroll
- */
-YAHOO.util.DD = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- }
-};
-
-YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, {
-
- /**
- * When set to true, the utility automatically tries to scroll the browser
- * window wehn a drag and drop element is dragged near the viewport boundary.
- * Defaults to true.
- * @property scroll
- * @type boolean
- */
- scroll: true,
-
- /**
- * Sets the pointer offset to the distance between the linked element's top
- * left corner and the location the element was clicked
- * @method autoOffset
- * @param {int} iPageX the X coordinate of the click
- * @param {int} iPageY the Y coordinate of the click
- */
- autoOffset: function(iPageX, iPageY) {
- var x = iPageX - this.startPageX;
- var y = iPageY - this.startPageY;
- this.setDelta(x, y);
- },
-
- /**
- * Sets the pointer offset. You can call this directly to force the
- * offset to be in a particular location (e.g., pass in 0,0 to set it
- * to the center of the object, as done in YAHOO.widget.Slider)
- * @method setDelta
- * @param {int} iDeltaX the distance from the left
- * @param {int} iDeltaY the distance from the top
- */
- setDelta: function(iDeltaX, iDeltaY) {
- this.deltaX = iDeltaX;
- this.deltaY = iDeltaY;
- },
-
- /**
- * Sets the drag element to the location of the mousedown or click event,
- * maintaining the cursor location relative to the location on the element
- * that was clicked. Override this if you want to place the element in a
- * location other than where the cursor is.
- * @method setDragElPos
- * @param {int} iPageX the X coordinate of the mousedown or drag event
- * @param {int} iPageY the Y coordinate of the mousedown or drag event
- */
- setDragElPos: function(iPageX, iPageY) {
- // the first time we do this, we are going to check to make sure
- // the element has css positioning
-
- var el = this.getDragEl();
- this.alignElWithMouse(el, iPageX, iPageY);
- },
-
- /**
- * Sets the element to the location of the mousedown or click event,
- * maintaining the cursor location relative to the location on the element
- * that was clicked. Override this if you want to place the element in a
- * location other than where the cursor is.
- * @method alignElWithMouse
- * @param {HTMLElement} el the element to move
- * @param {int} iPageX the X coordinate of the mousedown or drag event
- * @param {int} iPageY the Y coordinate of the mousedown or drag event
- */
- alignElWithMouse: function(el, iPageX, iPageY) {
- var oCoord = this.getTargetCoord(iPageX, iPageY);
-
- if (!this.deltaSetXY) {
- var aCoord = [oCoord.x, oCoord.y];
- YAHOO.util.Dom.setXY(el, aCoord);
- var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
- var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
- this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ];
- } else {
- YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px");
- YAHOO.util.Dom.setStyle(el, "top", (oCoord.y + this.deltaSetXY[1]) + "px");
- }
-
- this.cachePosition(oCoord.x, oCoord.y);
- this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
- },
-
- /**
- * Saves the most recent position so that we can reset the constraints and
- * tick marks on-demand. We need to know this so that we can calculate the
- * number of pixels the element is offset from its original position.
- * @method cachePosition
- * @param iPageX the current x position (optional, this just makes it so we
- * don't have to look it up again)
- * @param iPageY the current y position (optional, this just makes it so we
- * don't have to look it up again)
- */
- cachePosition: function(iPageX, iPageY) {
- if (iPageX) {
- this.lastPageX = iPageX;
- this.lastPageY = iPageY;
- } else {
- var aCoord = YAHOO.util.Dom.getXY(this.getEl());
- this.lastPageX = aCoord[0];
- this.lastPageY = aCoord[1];
- }
- },
-
- /**
- * Auto-scroll the window if the dragged object has been moved beyond the
- * visible window boundary.
- * @method autoScroll
- * @param {int} x the drag element's x position
- * @param {int} y the drag element's y position
- * @param {int} h the height of the drag element
- * @param {int} w the width of the drag element
- * @private
- */
- autoScroll: function(x, y, h, w) {
-
- if (this.scroll) {
- // The client height
- var clientH = this.DDM.getClientHeight();
-
- // The client width
- var clientW = this.DDM.getClientWidth();
-
- // The amt scrolled down
- var st = this.DDM.getScrollTop();
-
- // The amt scrolled right
- var sl = this.DDM.getScrollLeft();
-
- // Location of the bottom of the element
- var bot = h + y;
-
- // Location of the right of the element
- var right = w + x;
-
- // The distance from the cursor to the bottom of the visible area,
- // adjusted so that we don't scroll if the cursor is beyond the
- // element drag constraints
- var toBot = (clientH + st - y - this.deltaY);
-
- // The distance from the cursor to the right of the visible area
- var toRight = (clientW + sl - x - this.deltaX);
-
-
- // How close to the edge the cursor must be before we scroll
- // var thresh = (document.all) ? 100 : 40;
- var thresh = 40;
-
- // How many pixels to scroll per autoscroll op. This helps to reduce
- // clunky scrolling. IE is more sensitive about this ... it needs this
- // value to be higher.
- var scrAmt = (document.all) ? 80 : 30;
-
- // Scroll down if we are near the bottom of the visible page and the
- // obj extends below the crease
- if ( bot > clientH && toBot < thresh ) {
- window.scrollTo(sl, st + scrAmt);
- }
-
- // Scroll up if the window is scrolled down and the top of the object
- // goes above the top border
- if ( y < st && st > 0 && y - st < thresh ) {
- window.scrollTo(sl, st - scrAmt);
- }
-
- // Scroll right if the obj is beyond the right border and the cursor is
- // near the border.
- if ( right > clientW && toRight < thresh ) {
- window.scrollTo(sl + scrAmt, st);
- }
-
- // Scroll left if the window has been scrolled to the right and the obj
- // extends past the left border
- if ( x < sl && sl > 0 && x - sl < thresh ) {
- window.scrollTo(sl - scrAmt, st);
- }
- }
- },
-
- /**
- * Finds the location the element should be placed if we want to move
- * it to where the mouse location less the click offset would place us.
- * @method getTargetCoord
- * @param {int} iPageX the X coordinate of the click
- * @param {int} iPageY the Y coordinate of the click
- * @return an object that contains the coordinates (Object.x and Object.y)
- * @private
- */
- getTargetCoord: function(iPageX, iPageY) {
-
-
- var x = iPageX - this.deltaX;
- var y = iPageY - this.deltaY;
-
- if (this.constrainX) {
- if (x < this.minX) { x = this.minX; }
- if (x > this.maxX) { x = this.maxX; }
- }
-
- if (this.constrainY) {
- if (y < this.minY) { y = this.minY; }
- if (y > this.maxY) { y = this.maxY; }
- }
-
- x = this.getTick(x, this.xTicks);
- y = this.getTick(y, this.yTicks);
-
-
- return {x:x, y:y};
- },
-
- /*
- * Sets up config options specific to this class. Overrides
- * YAHOO.util.DragDrop, but all versions of this method through the
- * inheritance chain are called
- */
- applyConfig: function() {
- YAHOO.util.DD.superclass.applyConfig.call(this);
- this.scroll = (this.config.scroll !== false);
- },
-
- /*
- * Event that fires prior to the onMouseDown event. Overrides
- * YAHOO.util.DragDrop.
- */
- b4MouseDown: function(e) {
- this.setStartPosition();
- // this.resetConstraints();
- this.autoOffset(YAHOO.util.Event.getPageX(e),
- YAHOO.util.Event.getPageY(e));
- },
-
- /*
- * Event that fires prior to the onDrag event. Overrides
- * YAHOO.util.DragDrop.
- */
- b4Drag: function(e) {
- this.setDragElPos(YAHOO.util.Event.getPageX(e),
- YAHOO.util.Event.getPageY(e));
- },
-
- toString: function() {
- return ("DD " + this.id);
- }
-
- //////////////////////////////////////////////////////////////////////////
- // Debugging ygDragDrop events that can be overridden
- //////////////////////////////////////////////////////////////////////////
- /*
- startDrag: function(x, y) {
- },
-
- onDrag: function(e) {
- },
-
- onDragEnter: function(e, id) {
- },
-
- onDragOver: function(e, id) {
- },
-
- onDragOut: function(e, id) {
- },
-
- onDragDrop: function(e, id) {
- },
-
- endDrag: function(e) {
- }
-
- */
-
-});
-/**
- * A DragDrop implementation that inserts an empty, bordered div into
- * the document that follows the cursor during drag operations. At the time of
- * the click, the frame div is resized to the dimensions of the linked html
- * element, and moved to the exact location of the linked element.
- *
- * References to the "frame" element refer to the single proxy element that
- * was created to be dragged in place of all DDProxy elements on the
- * page.
- *
- * @class DDProxy
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the linked html element
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DDProxy in addition to those in DragDrop:
- * resizeFrame, centerFrame, dragElId
- */
-YAHOO.util.DDProxy = function(id, sGroup, config) {
- if (id) {
- this.init(id, sGroup, config);
- this.initFrame();
- }
-};
-
-/**
- * The default drag frame div id
- * @property YAHOO.util.DDProxy.dragElId
- * @type String
- * @static
- */
-YAHOO.util.DDProxy.dragElId = "ygddfdiv";
-
-YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
-
- /**
- * By default we resize the drag frame to be the same size as the element
- * we want to drag (this is to get the frame effect). We can turn it off
- * if we want a different behavior.
- * @property resizeFrame
- * @type boolean
- */
- resizeFrame: true,
-
- /**
- * By default the frame is positioned exactly where the drag element is, so
- * we use the cursor offset provided by YAHOO.util.DD. Another option that works only if
- * you do not have constraints on the obj is to have the drag frame centered
- * around the cursor. Set centerFrame to true for this effect.
- * @property centerFrame
- * @type boolean
- */
- centerFrame: false,
-
- /**
- * Creates the proxy element if it does not yet exist
- * @method createFrame
- */
- createFrame: function() {
- var self = this;
- var body = document.body;
-
- if (!body || !body.firstChild) {
- setTimeout( function() { self.createFrame(); }, 50 );
- return;
- }
-
- var div = this.getDragEl();
-
- if (!div) {
- div = document.createElement("div");
- div.id = this.dragElId;
- var s = div.style;
-
- s.position = "absolute";
- s.visibility = "hidden";
- s.cursor = "move";
- s.border = "2px solid #aaa";
- s.zIndex = 999;
-
- // appendChild can blow up IE if invoked prior to the window load event
- // while rendering a table. It is possible there are other scenarios
- // that would cause this to happen as well.
- body.insertBefore(div, body.firstChild);
- }
- },
-
- /**
- * Initialization for the drag frame element. Must be called in the
- * constructor of all subclasses
- * @method initFrame
- */
- initFrame: function() {
- this.createFrame();
- },
-
- applyConfig: function() {
- YAHOO.util.DDProxy.superclass.applyConfig.call(this);
-
- this.resizeFrame = (this.config.resizeFrame !== false);
- this.centerFrame = (this.config.centerFrame);
- this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId);
- },
-
- /**
- * Resizes the drag frame to the dimensions of the clicked object, positions
- * it over the object, and finally displays it
- * @method showFrame
- * @param {int} iPageX X click position
- * @param {int} iPageY Y click position
- * @private
- */
- showFrame: function(iPageX, iPageY) {
- var el = this.getEl();
- var dragEl = this.getDragEl();
- var s = dragEl.style;
-
- this._resizeProxy();
-
- if (this.centerFrame) {
- this.setDelta( Math.round(parseInt(s.width, 10)/2),
- Math.round(parseInt(s.height, 10)/2) );
- }
-
- this.setDragElPos(iPageX, iPageY);
-
- YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible");
- },
-
- /**
- * The proxy is automatically resized to the dimensions of the linked
- * element when a drag is initiated, unless resizeFrame is set to false
- * @method _resizeProxy
- * @private
- */
- _resizeProxy: function() {
- if (this.resizeFrame) {
- var DOM = YAHOO.util.Dom;
- var el = this.getEl();
- var dragEl = this.getDragEl();
-
- var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth" ), 10);
- var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth" ), 10);
- var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10);
- var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth" ), 10);
-
- if (isNaN(bt)) { bt = 0; }
- if (isNaN(br)) { br = 0; }
- if (isNaN(bb)) { bb = 0; }
- if (isNaN(bl)) { bl = 0; }
-
-
- var newWidth = Math.max(0, el.offsetWidth - br - bl);
- var newHeight = Math.max(0, el.offsetHeight - bt - bb);
-
-
- DOM.setStyle( dragEl, "width", newWidth + "px" );
- DOM.setStyle( dragEl, "height", newHeight + "px" );
- }
- },
-
- // overrides YAHOO.util.DragDrop
- b4MouseDown: function(e) {
- this.setStartPosition();
- var x = YAHOO.util.Event.getPageX(e);
- var y = YAHOO.util.Event.getPageY(e);
- this.autoOffset(x, y);
- this.setDragElPos(x, y);
- },
-
- // overrides YAHOO.util.DragDrop
- b4StartDrag: function(x, y) {
- // show the drag frame
- this.showFrame(x, y);
- },
-
- // overrides YAHOO.util.DragDrop
- b4EndDrag: function(e) {
- YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden");
- },
-
- // overrides YAHOO.util.DragDrop
- // By default we try to move the element to the last location of the frame.
- // This is so that the default behavior mirrors that of YAHOO.util.DD.
- endDrag: function(e) {
- var DOM = YAHOO.util.Dom;
- var lel = this.getEl();
- var del = this.getDragEl();
-
- // Show the drag frame briefly so we can get its position
- // del.style.visibility = "";
- DOM.setStyle(del, "visibility", "");
-
- // Hide the linked element before the move to get around a Safari
- // rendering bug.
- //lel.style.visibility = "hidden";
- DOM.setStyle(lel, "visibility", "hidden");
- YAHOO.util.DDM.moveToEl(lel, del);
- //del.style.visibility = "hidden";
- DOM.setStyle(del, "visibility", "hidden");
- //lel.style.visibility = "";
- DOM.setStyle(lel, "visibility", "");
- },
-
- toString: function() {
- return ("DDProxy " + this.id);
- }
-
-});
-/**
- * A DragDrop implementation that does not move, but can be a drop
- * target. You would get the same result by simply omitting implementation
- * for the event callbacks, but this way we reduce the processing cost of the
- * event listener and the callbacks.
- * @class DDTarget
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the element that is a drop target
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- * Valid properties for DDTarget in addition to those in
- * DragDrop:
- * none
- */
-YAHOO.util.DDTarget = function(id, sGroup, config) {
- if (id) {
- this.initTarget(id, sGroup, config);
- }
-};
-
-// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop();
-YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
- toString: function() {
- return ("DDTarget " + this.id);
- }
-});
-YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/element/README b/interface/ispconfig/interface/js/yui/element/README
deleted file mode 100644
index 1076b61a62fd5161384bc106ba2c997b080d842f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/element/README
+++ /dev/null
@@ -1,7 +0,0 @@
-Element Release Notes
-
-*** version 2.2.0 ***
-
-* beta introduction (broken out of TabView for general use)
-
- * The Element class provides a wrapper for HTMLElements in the DOM and makes simpler common tasks such as adding listeners, manipulating the DOM, and setting and getting attributes.
diff --git a/interface/ispconfig/interface/js/yui/element/element-beta-debug.js b/interface/ispconfig/interface/js/yui/element/element-beta-debug.js
deleted file mode 100644
index f430460fe23d80881839d93fd304b8f4b89c8b6f..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/element/element-beta-debug.js
+++ /dev/null
@@ -1,906 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * Provides Attribute configurations.
- * @namespace YAHOO.util
- * @class Attribute
- * @constructor
- * @param hash {Object} The intial Attribute.
- * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance.
- */
-
-YAHOO.util.Attribute = function(hash, owner) {
- if (owner) {
- this.owner = owner;
- this.configure(hash, true);
- }
-};
-
-YAHOO.util.Attribute.prototype = {
- /**
- * The name of the attribute.
- * @property name
- * @type String
- */
- name: undefined,
-
- /**
- * The value of the attribute.
- * @property value
- * @type String
- */
- value: null,
-
- /**
- * The owner of the attribute.
- * @property owner
- * @type YAHOO.util.AttributeProvider
- */
- owner: null,
-
- /**
- * Whether or not the attribute is read only.
- * @property readOnly
- * @type Boolean
- */
- readOnly: false,
-
- /**
- * Whether or not the attribute can only be written once.
- * @property writeOnce
- * @type Boolean
- */
- writeOnce: false,
-
- /**
- * The attribute's initial configuration.
- * @private
- * @property _initialConfig
- * @type Object
- */
- _initialConfig: null,
-
- /**
- * Whether or not the attribute's value has been set.
- * @private
- * @property _written
- * @type Boolean
- */
- _written: false,
-
- /**
- * The method to use when setting the attribute's value.
- * The method recieves the new value as the only argument.
- * @property method
- * @type Function
- */
- method: null,
-
- /**
- * The validator to use when setting the attribute's value.
- * @property validator
- * @type Function
- * @return Boolean
- */
- validator: null,
-
- /**
- * Retrieves the current value of the attribute.
- * @method getValue
- * @return {any} The current value of the attribute.
- */
- getValue: function() {
- return this.value;
- },
-
- /**
- * Sets the value of the attribute and fires beforeChange and change events.
- * @method setValue
- * @param {Any} value The value to apply to the attribute.
- * @param {Boolean} silent If true the change events will not be fired.
- * @return {Boolean} Whether or not the value was set.
- */
- setValue: function(value, silent) {
- var beforeRetVal;
- var owner = this.owner;
- var name = this.name;
-
- var event = {
- type: name,
- prevValue: this.getValue(),
- newValue: value
- };
-
- if (this.readOnly || ( this.writeOnce && this._written) ) {
- return false; // write not allowed
- }
-
- if (this.validator && !this.validator.call(owner, value) ) {
- return false; // invalid value
- }
-
- if (!silent) {
- beforeRetVal = owner.fireBeforeChangeEvent(event);
- if (beforeRetVal === false) {
- YAHOO.log('setValue ' + name +
- 'cancelled by beforeChange event', 'info', 'Attribute');
- return false;
- }
- }
-
- if (this.method) {
- this.method.call(owner, value);
- }
-
- this.value = value;
- this._written = true;
-
- event.type = name;
-
- if (!silent) {
- this.owner.fireChangeEvent(event);
- }
-
- return true;
- },
-
- /**
- * Allows for configuring the Attribute's properties.
- * @method configure
- * @param {Object} map A key-value map of Attribute properties.
- * @param {Boolean} init Whether or not this should become the initial config.
- */
- configure: function(map, init) {
- map = map || {};
- this._written = false; // reset writeOnce
- this._initialConfig = this._initialConfig || {};
-
- for (var key in map) {
- if ( key && YAHOO.lang.hasOwnProperty(map, key) ) {
- this[key] = map[key];
- if (init) {
- this._initialConfig[key] = map[key];
- }
- }
- }
- },
-
- /**
- * Resets the value to the initial config value.
- * @method resetValue
- * @return {Boolean} Whether or not the value was set.
- */
- resetValue: function() {
- return this.setValue(this._initialConfig.value);
- },
-
- /**
- * Resets the attribute config to the initial config state.
- * @method resetConfig
- */
- resetConfig: function() {
- this.configure(this._initialConfig);
- },
-
- /**
- * Resets the value to the current value.
- * Useful when values may have gotten out of sync with actual properties.
- * @method refresh
- * @return {Boolean} Whether or not the value was set.
- */
- refresh: function(silent) {
- this.setValue(this.value, silent);
- }
-};
-
-(function() {
- var Lang = YAHOO.util.Lang;
-
- /*
- Copyright (c) 2006, Yahoo! Inc. All rights reserved.
- Code licensed under the BSD License:
- http://developer.yahoo.net/yui/license.txt
- */
-
- /**
- * Provides and manages YAHOO.util.Attribute instances
- * @namespace YAHOO.util
- * @class AttributeProvider
- * @uses YAHOO.util.EventProvider
- */
- YAHOO.util.AttributeProvider = function() {};
-
- YAHOO.util.AttributeProvider.prototype = {
-
- /**
- * A key-value map of Attribute configurations
- * @property _configs
- * @protected (may be used by subclasses and augmentors)
- * @private
- * @type {Object}
- */
- _configs: null,
- /**
- * Returns the current value of the attribute.
- * @method get
- * @param {String} key The attribute whose value will be returned.
- */
- get: function(key){
- var configs = this._configs || {};
- var config = configs[key];
-
- if (!config) {
- YAHOO.log(key + ' not found', 'error', 'AttributeProvider');
- return undefined;
- }
-
- return config.value;
- },
-
- /**
- * Sets the value of a config.
- * @method set
- * @param {String} key The name of the attribute
- * @param {Any} value The value to apply to the attribute
- * @param {Boolean} silent Whether or not to suppress change events
- * @return {Boolean} Whether or not the value was set.
- */
- set: function(key, value, silent){
- var configs = this._configs || {};
- var config = configs[key];
-
- if (!config) {
- YAHOO.log('set failed: ' + key + ' not found',
- 'error', 'AttributeProvider');
- return false;
- }
-
- return config.setValue(value, silent);
- },
-
- /**
- * Returns an array of attribute names.
- * @method getAttributeKeys
- * @return {Array} An array of attribute names.
- */
- getAttributeKeys: function(){
- var configs = this._configs;
- var keys = [];
- var config;
- for (var key in configs) {
- config = configs[key];
- if ( Lang.hasOwnProperty(configs, key) &&
- !Lang.isUndefined(config) ) {
- keys[keys.length] = key;
- }
- }
-
- return keys;
- },
-
- /**
- * Sets multiple attribute values.
- * @method setAttributes
- * @param {Object} map A key-value map of attributes
- * @param {Boolean} silent Whether or not to suppress change events
- */
- setAttributes: function(map, silent){
- for (var key in map) {
- if ( Lang.hasOwnProperty(map, key) ) {
- this.set(key, map[key], silent);
- }
- }
- },
-
- /**
- * Resets the specified attribute's value to its initial value.
- * @method resetValue
- * @param {String} key The name of the attribute
- * @param {Boolean} silent Whether or not to suppress change events
- * @return {Boolean} Whether or not the value was set
- */
- resetValue: function(key, silent){
- var configs = this._configs || {};
- if (configs[key]) {
- this.set(key, configs[key]._initialConfig.value, silent);
- return true;
- }
- return false;
- },
-
- /**
- * Sets the attribute's value to its current value.
- * @method refresh
- * @param {String | Array} key The attribute(s) to refresh
- * @param {Boolean} silent Whether or not to suppress change events
- */
- refresh: function(key, silent){
- var configs = this._configs;
-
- key = ( ( Lang.isString(key) ) ? [key] : key ) ||
- this.getAttributeKeys();
-
- for (var i = 0, len = key.length; i < len; ++i) {
- if ( // only set if there is a value and not null
- configs[key[i]] &&
- ! Lang.isUndefined(configs[key[i]].value) &&
- ! Lang.isNull(configs[key[i]].value) ) {
- configs[key[i]].refresh(silent);
- }
- }
- },
-
- /**
- * Adds an Attribute to the AttributeProvider instance.
- * @method register
- * @param {String} key The attribute's name
- * @param {Object} map A key-value map containing the
- * attribute's properties.
- * @deprecated Use setAttributeConfig
- */
- register: function(key, map) {
- this.setAttributeConfig(key, map);
- },
-
-
- /**
- * Returns the attribute's properties.
- * @method getAttributeConfig
- * @param {String} key The attribute's name
- * @private
- * @return {object} A key-value map containing all of the
- * attribute's properties.
- */
- getAttributeConfig: function(key) {
- var configs = this._configs || {};
- var config = configs[key] || {};
- var map = {}; // returning a copy to prevent overrides
-
- for (key in config) {
- if ( Lang.hasOwnProperty(config, key) ) {
- map[key] = config[key];
- }
- }
-
- return map;
- },
-
- /**
- * Sets or updates an Attribute instance's properties.
- * @method setAttributeConfig
- * @param {String} key The attribute's name.
- * @param {Object} map A key-value map of attribute properties
- * @param {Boolean} init Whether or not this should become the intial config.
- */
- setAttributeConfig: function(key, map, init) {
- var configs = this._configs || {};
- map = map || {};
- if (!configs[key]) {
- map.name = key;
- configs[key] = new YAHOO.util.Attribute(map, this);
- } else {
- configs[key].configure(map, init);
- }
- },
-
- /**
- * Sets or updates an Attribute instance's properties.
- * @method configureAttribute
- * @param {String} key The attribute's name.
- * @param {Object} map A key-value map of attribute properties
- * @param {Boolean} init Whether or not this should become the intial config.
- */
- configureAttribute: function(key, map, init) {
- this.setAttributeConfig(key, map, init);
- },
-
- /**
- * Resets an attribute to its intial configuration.
- * @method resetAttributeConfig
- * @param {String} key The attribute's name.
- * @private
- */
- resetAttributeConfig: function(key){
- var configs = this._configs || {};
- configs[key].resetConfig();
- },
-
- /**
- * Fires the attribute's beforeChange event.
- * @method fireBeforeChangeEvent
- * @param {String} key The attribute's name.
- * @param {Obj} e The event object to pass to handlers.
- */
- fireBeforeChangeEvent: function(e) {
- var type = 'before';
- type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change';
- e.type = type;
- return this.fireEvent(e.type, e);
- },
-
- /**
- * Fires the attribute's change event.
- * @method fireChangeEvent
- * @param {String} key The attribute's name.
- * @param {Obj} e The event object to pass to the handlers.
- */
- fireChangeEvent: function(e) {
- e.type += 'Change';
- return this.fireEvent(e.type, e);
- }
- };
-
- YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider);
-})();
-
-(function() {
-// internal shorthand
-var Dom = YAHOO.util.Dom,
- EventPublisher = YAHOO.util.EventPublisher,
- AttributeProvider = YAHOO.util.AttributeProvider;
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes.
- * @module element
- * @namespace YAHOO.util
- * @requires yahoo, dom, event
- * @beta
- */
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes.
- * @class Element
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param el {HTMLElement | String} The html element that
- * represents the Element.
- * @param {Object} map A key-value map of initial config names and values
- */
-YAHOO.util.Element = function(el, map) {
- if (arguments.length) {
- this.init(el, map);
- }
-};
-
-YAHOO.util.Element.prototype = {
- /**
- * Dom events supported by the Element instance.
- * @property DOM_EVENTS
- * @type Object
- */
- DOM_EVENTS: null,
-
- /**
- * Wrapper for HTMLElement method.
- * @method appendChild
- * @param {Boolean} deep Whether or not to do a deep clone
- */
- appendChild: function(child) {
- child = child.get ? child.get('element') : child;
- this.get('element').appendChild(child);
- },
-
- /**
- * Wrapper for HTMLElement method.
- * @method getElementsByTagName
- * @param {String} tag The tagName to collect
- */
- getElementsByTagName: function(tag) {
- return this.get('element').getElementsByTagName(tag);
- },
-
- /**
- * Wrapper for HTMLElement method.
- * @method hasChildNodes
- * @return {Boolean} Whether or not the element has childNodes
- */
- hasChildNodes: function() {
- return this.get('element').hasChildNodes();
- },
-
- /**
- * Wrapper for HTMLElement method.
- * @method insertBefore
- * @param {HTMLElement} element The HTMLElement to insert
- * @param {HTMLElement} before The HTMLElement to insert
- * the element before.
- */
- insertBefore: function(element, before) {
- element = element.get ? element.get('element') : element;
- before = (before && before.get) ? before.get('element') : before;
-
- this.get('element').insertBefore(element, before);
- },
-
- /**
- * Wrapper for HTMLElement method.
- * @method removeChild
- * @param {HTMLElement} child The HTMLElement to remove
- */
- removeChild: function(child) {
- child = child.get ? child.get('element') : child;
- this.get('element').removeChild(child);
- return true;
- },
-
- /**
- * Wrapper for HTMLElement method.
- * @method replaceChild
- * @param {HTMLElement} newNode The HTMLElement to insert
- * @param {HTMLElement} oldNode The HTMLElement to replace
- */
- replaceChild: function(newNode, oldNode) {
- newNode = newNode.get ? newNode.get('element') : newNode;
- oldNode = oldNode.get ? oldNode.get('element') : oldNode;
- return this.get('element').replaceChild(newNode, oldNode);
- },
-
-
- /**
- * Registers Element specific attributes.
- * @method initAttributes
- * @param {Object} map A key-value map of initial attribute configs
- */
- initAttributes: function(map) {
- map = map || {};
- var element = Dom.get(map.element) || null;
-
- /**
- * The HTMLElement the Element instance refers to.
- * @config element
- * @type HTMLElement
- */
- this.setAttributeConfig('element', {
- value: element,
- readOnly: true
- });
- },
-
- /**
- * Adds a listener for the given event. These may be DOM or
- * customEvent listeners. Any event that is fired via fireEvent
- * can be listened for. All handlers receive an event object.
- * @method addListener
- * @param {String} type The name of the event to listen for
- * @param {Function} fn The handler to call when the event fires
- * @param {Any} obj A variable to pass to the handler
- * @param {Object} scope The object to use for the scope of the handler
- */
- addListener: function(type, fn, obj, scope) {
- var el = this.get('element');
- var scope = scope || this;
-
- el = this.get('id') || el;
-
- if (!this._events[type]) { // create on the fly
- if ( this.DOM_EVENTS[type] ) {
- YAHOO.util.Event.addListener(el, type, function(e) {
- if (e.srcElement && !e.target) { // supplement IE with target
- e.target = e.srcElement;
- }
- this.fireEvent(type, e);
- }, obj, scope);
- }
-
- this.createEvent(type, this);
- this._events[type] = true;
- }
-
- this.subscribe.apply(this, arguments); // notify via customEvent
- },
-
-
- /**
- * Alias for addListener
- * @method on
- * @param {String} type The name of the event to listen for
- * @param {Function} fn The function call when the event fires
- * @param {Any} obj A variable to pass to the handler
- * @param {Object} scope The object to use for the scope of the handler
- */
- on: function() { this.addListener.apply(this, arguments); },
-
-
- /**
- * Remove an event listener
- * @method removeListener
- * @param {String} type The name of the event to listen for
- * @param {Function} fn The function call when the event fires
- */
- removeListener: function(type, fn) {
- this.unsubscribe.apply(this, arguments);
- },
-
- /**
- * Wrapper for Dom method.
- * @method addClass
- * @param {String} className The className to add
- */
- addClass: function(className) {
- Dom.addClass(this.get('element'), className);
- },
-
- /**
- * Wrapper for Dom method.
- * @method getElementsByClassName
- * @param {String} className The className to collect
- * @param {String} tag (optional) The tag to use in
- * conjunction with class name
- * @return {Array} Array of HTMLElements
- */
- getElementsByClassName: function(className, tag) {
- return Dom.getElementsByClassName(className, tag,
- this.get('element') );
- },
-
- /**
- * Wrapper for Dom method.
- * @method hasClass
- * @param {String} className The className to add
- * @return {Boolean} Whether or not the element has the class name
- */
- hasClass: function(className) {
- return Dom.hasClass(this.get('element'), className);
- },
-
- /**
- * Wrapper for Dom method.
- * @method removeClass
- * @param {String} className The className to remove
- */
- removeClass: function(className) {
- return Dom.removeClass(this.get('element'), className);
- },
-
- /**
- * Wrapper for Dom method.
- * @method replaceClass
- * @param {String} oldClassName The className to replace
- * @param {String} newClassName The className to add
- */
- replaceClass: function(oldClassName, newClassName) {
- return Dom.replaceClass(this.get('element'),
- oldClassName, newClassName);
- },
-
- /**
- * Wrapper for Dom method.
- * @method setStyle
- * @param {String} property The style property to set
- * @param {String} value The value to apply to the style property
- */
- setStyle: function(property, value) {
- var el = this.get('element');
- if (!el) {
- this._queue[this._queue.length] = ['setStyle', arguments];
- return false;
- }
- return Dom.setStyle(this.get('element'), property, value);
- },
-
- /**
- * Wrapper for Dom method.
- * @method getStyle
- * @param {String} property The style property to retrieve
- * @return {String} The current value of the property
- */
- getStyle: function(property) {
- return Dom.getStyle(this.get('element'), property);
- },
-
- /**
- * Apply any queued set calls.
- * @method fireQueue
- */
- fireQueue: function() {
- var queue = this._queue;
- for (var i = 0, len = queue.length; i < len; ++i) {
- this[queue[i][0]].apply(this, queue[i][1]);
- }
- },
-
- /**
- * Appends the HTMLElement into either the supplied parentNode.
- * @method appendTo
- * @param {HTMLElement | Element} parentNode The node to append to
- * @param {HTMLElement | Element} before An optional node to insert before
- */
- appendTo: function(parent, before) {
- parent = (parent.get) ? parent.get('element') : Dom.get(parent);
-
- this.fireEvent('beforeAppendTo', {
- type: 'beforeAppendTo',
- target: parent
- });
-
-
- before = (before && before.get) ?
- before.get('element') : Dom.get(before);
- var element = this.get('element');
-
- if (!element) {
- YAHOO.log('appendTo failed: element not available',
- 'error', 'Element');
- return false;
- }
-
- if (!parent) {
- YAHOO.log('appendTo failed: parent not available',
- 'error', 'Element');
- return false;
- }
-
- if (element.parent != parent) {
- if (before) {
- parent.insertBefore(element, before);
- } else {
- parent.appendChild(element);
- }
- }
-
- YAHOO.log(element + 'appended to ' + parent);
-
- this.fireEvent('appendTo', {
- type: 'appendTo',
- target: parent
- });
- },
-
- get: function(key) {
- var configs = this._configs || {};
- var el = configs.element; // avoid loop due to 'element'
- if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) {
- return el.value[key];
- }
-
- return AttributeProvider.prototype.get.call(this, key);
- },
-
- set: function(key, value, silent) {
- var el = this.get('element');
- if (!el) {
- this._queue[this._queue.length] = ['set', arguments];
- if (this._configs[key]) {
- this._configs[key].value = value; // so "get" works while queueing
-
- }
- return;
- }
-
- // set it on the element if not configured and is an HTML attribute
- if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
- _registerHTMLAttr.call(this, key);
- }
-
- return AttributeProvider.prototype.set.apply(this, arguments);
- },
-
- setAttributeConfig: function(key, map, init) {
- var el = this.get('element');
-
- if (el && !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
- _registerHTMLAttr.call(this, key, map);
- } else {
- AttributeProvider.prototype.setAttributeConfig.apply(this, arguments);
- }
- },
-
- getAttributeKeys: function() {
- var el = this.get('element');
- var keys = AttributeProvider.prototype.getAttributeKeys.call(this);
-
- //add any unconfigured element keys
- for (var key in el) {
- if (!this._configs[key]) {
- keys[key] = keys[key] || el[key];
- }
- }
-
- return keys;
- },
-
- init: function(el, attr) {
- this._queue = this._queue || [];
- this._events = this._events || {};
- this._configs = this._configs || {};
- attr = attr || {};
- attr.element = attr.element || el || null;
-
- this.DOM_EVENTS = {
- 'click': true,
- 'keydown': true,
- 'keypress': true,
- 'keyup': true,
- 'mousedown': true,
- 'mousemove': true,
- 'mouseout': true,
- 'mouseover': true,
- 'mouseup': true
- };
-
- var readyHandler = function() {
- this.initAttributes(attr);
- this.setAttributes(attr, true);
- this.fireQueue();
- this.fireEvent('contentReady', {
- type: 'contentReady',
- target: attr.element
- });
- };
-
- if ( YAHOO.lang.isString(el) ) {
- _registerHTMLAttr.call(this, 'id', { value: el });
- YAHOO.util.Event.onAvailable(el, function() {
- attr.element = Dom.get(el);
- this.fireEvent('available', {
- type: 'available',
- target: attr.element
- });
- }, this, true);
-
- YAHOO.util.Event.onContentReady(el, function() {
- readyHandler.call(this);
- }, this, true);
- } else {
- readyHandler.call(this);
- }
- }
-};
-
-/**
- * Sets the value of the property and fires beforeChange and change events.
- * @private
- * @method _registerHTMLAttr
- * @param {YAHOO.util.Element} element The Element instance to
- * register the config to.
- * @param {String} key The name of the config to register
- * @param {Object} map A key-value map of the config's params
- */
-var _registerHTMLAttr = function(key, map) {
- var el = this.get('element');
- map = map || {};
- map.name = key;
- map.method = map.method || function(value) {
- el[key] = value;
- };
- map.value = map.value || el[key];
- this._configs[key] = new YAHOO.util.Attribute(map, this);
-};
-
-/**
- * Fires when the Element's HTMLElement can be retrieved by Id.
- * See: Element.addListener
- * Event fields:
- * <String> type
available
- * <HTMLElement>
- * target
the HTMLElement bound to this Element instance
- *
Usage:
- * var handler = function(e) {var target = e.target};
- * myTabs.addListener('available', handler);
- * @event available
- */
-
-/**
- * Fires when the Element's HTMLElement subtree is rendered.
- * See: Element.addListener
- * Event fields:
- * <String> type
contentReady
- * <HTMLElement>
- * target
the HTMLElement bound to this Element instance
- *
Usage:
- * var handler = function(e) {var target = e.target};
- * myTabs.addListener('contentReady', handler);
- * @event contentReady
- */
-
-
-YAHOO.augment(YAHOO.util.Element, AttributeProvider);
-})();
-
-YAHOO.register("element", YAHOO.util.Element, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/element/element-beta-min.js b/interface/ispconfig/interface/js/yui/element/element-beta-min.js
deleted file mode 100644
index 621181ed6c87412d4bcd679cbe904aecf34ae3fd..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/element/element-beta-min.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-
-YAHOO.util.Attribute=function(hash,owner){if(owner){this.owner=owner;this.configure(hash,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(value,silent){var beforeRetVal;var owner=this.owner;var name=this.name;var event={type:name,prevValue:this.getValue(),newValue:value};if(this.readOnly||(this.writeOnce&&this._written)){return false;}
-if(this.validator&&!this.validator.call(owner,value)){return false;}
-if(!silent){beforeRetVal=owner.fireBeforeChangeEvent(event);if(beforeRetVal===false){return false;}}
-if(this.method){this.method.call(owner,value);}
-this.value=value;this._written=true;event.type=name;if(!silent){this.owner.fireChangeEvent(event);}
-return true;},configure:function(map,init){map=map||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var key in map){if(key&&YAHOO.lang.hasOwnProperty(map,key)){this[key]=map[key];if(init){this._initialConfig[key]=map[key];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(silent){this.setValue(this.value,silent);}};(function(){var Lang=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(key){var configs=this._configs||{};var config=configs[key];if(!config){return undefined;}
-return config.value;},set:function(key,value,silent){var configs=this._configs||{};var config=configs[key];if(!config){return false;}
-return config.setValue(value,silent);},getAttributeKeys:function(){var configs=this._configs;var keys=[];var config;for(var key in configs){config=configs[key];if(Lang.hasOwnProperty(configs,key)&&!Lang.isUndefined(config)){keys[keys.length]=key;}}
-return keys;},setAttributes:function(map,silent){for(var key in map){if(Lang.hasOwnProperty(map,key)){this.set(key,map[key],silent);}}},resetValue:function(key,silent){var configs=this._configs||{};if(configs[key]){this.set(key,configs[key]._initialConfig.value,silent);return true;}
-return false;},refresh:function(key,silent){var configs=this._configs;key=((Lang.isString(key))?[key]:key)||this.getAttributeKeys();for(var i=0,len=key.length;iSee: Element.addListener
- * Event fields:
- * <String> type
available
- * <HTMLElement>
- * target
the HTMLElement bound to this Element instance
- *
Usage:
- * var handler = function(e) {var target = e.target};
- * myTabs.addListener('available', handler);
- * @event available
- */
-
-/**
- * Fires when the Element's HTMLElement subtree is rendered.
- * See: Element.addListener
- * Event fields:
- * <String> type
contentReady
- * <HTMLElement>
- * target
the HTMLElement bound to this Element instance
- *
Usage:
- * var handler = function(e) {var target = e.target};
- * myTabs.addListener('contentReady', handler);
- * @event contentReady
- */
-
-
-YAHOO.augment(YAHOO.util.Element, AttributeProvider);
-})();
-
-YAHOO.register("element", YAHOO.util.Element, {version: "2.2.0", build: "127"});
diff --git a/interface/ispconfig/interface/js/yui/event/README b/interface/ispconfig/interface/js/yui/event/README
deleted file mode 100644
index 99fb0e565f249cfb054eedbd88c72d1d83976dae..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/event/README
+++ /dev/null
@@ -1,161 +0,0 @@
-
-YUI Library - Event - Release Notes
-
-2.2.0
-
- * YAHOO.util.KeyListener was moved from the container package into event.
-
- * The Safari bug that made it so preventDefault would not work with click
- and double-click listeners on anchor tags was resolved in version 2.0.4.
- The workaround (using DOM0 events for these instead of the normal DOM2
- events) is now only used for releases prior to 2.0.4.
-
- * getListeners/purgeElement now work correctly with unload listeners
-
- * When legacyEvents are used (Safari<2.0.4 click events), if there was an
- existing DOM0 event that the utility replaced, it is executed along with
- the listeners that were added with the utility.
-
- * Restored Event.regCE for compatibility with a beta release of the library
- that in use in an external API.
-
- * unsubscribe in CustomEvent and EventProvider will remove all listeners
- if the listener is omitted.
-
- * Added unsubscribeAll to EventProvider
-
- * Added Event.lastError which stores the most recent error object if
- a browser-specific add/remove listener call throws an exception.
-
-0.12.2
-
- * Fixed a bug introduced in 0.12.1 release caused nested onAvailable
- calls to fail.
-
-0.12.1
-
- * If an error is thrown during the browser-specific add/remove lister call,
- addListener/removeListener will catch the error and return false.
-
- * onAvailable array items are nulled out instead of deleted when completed to
- get around an Opera issue introduced in a recent version of the browser.
-
-0.12.0
-
- * If the function argument is not provided to Event.removeListener, all
- all listeners for the specified event type on the element will be removed.
-
- * CustomEvent now has an optional parameter that defines the signature of
- the listeners for this event. Two signatures are supported:
-
- YAHOO.util.CustomEvent.LIST:
- param1: event name
- param2: array of arguments provided to fire()
- param3: the custom object supplied to subscribe()
-
- YAHOO.util.CustomEvent.FLAT:
- param1: the first argument provided to fire()
- param2: the custom object supplied to subscribe()
-
- The new flat signature makes it possible to provide a better API
- when using custom events, and it makes it possible to transparently
- wrap DOM events.
-
- * The parameters for overriding scope in both Event.addListener, and
- CustomEvent.subscribe have been augmented. In addition to the
- previous behavior where a true value would make the previous parameter
- the execution scope, an object can be supplied instead. If an object
- is provided, that object becomes the scope obj. This makes it possible
- to pass a both a custom object and adjust the scope to a different object.
-
- * Added EventProvider, which is a wrapper for CustomEvent that makes it
- possible to subscribe to events by name, whether or not the event has
- been created. This class was designed to be used with YAHOO.augment.
- EventProvider custom events are created with the new FLAT listener
- signature.
-
- * CustomEvent subscribers can return false to stop the propagation of
- the event.
-
- * CustomEvents now have an onSubscribe custom event that can used to the
- case where a subscriber subscribes to an one-time event that has already
- happened. Also provides a way for the implementer to defer initialization
- logic until after the first subscription.
-
- * Event.getCharCode now always returns keyCode if charCode is not available.
-
- * Added Event.onContentReady, which is similar to onAvailable, but it also
- checks simblings to try to determine when the element's children are
- available.
-
-0.11.4
-
- * Fixed a memory leak in IE6 that occurred when the utility was hosted in
- an iframe.
-
- * Fixed an issue with Safari click listeners when listeners were removed.
-
-0.11.3
-
- * The listener cache is now pruned when events are removed. This fixes
- a performance issue when adding many listeners, removing them, and
- adding them again repeatedly.
-
- * Safari click listeners will work correctly if a bound element is removed
- from the DOM and a new element with the same ID is added.
-
- * Removed the code that automatically unsubscribed custom event listeners.
-
-0.11.0
-
- * Added Event.purgeElement which will remove all listeners added via
- addListener from the supplied element. If an optional "type" parameter
- is supplied, only events of that type will be removed. Optionally, the
- purge can be performed recursively on the element's children as well.
-
- * Added Event.getListeners which will return all listeners attached to
- a given element.. either all listeners or listeners of a specific type.
-
- * getTarget now automatically resolves text nodes. The optional parameter
- for this feature is now deprecated.
-
- * getRelatedTarget now resolves text nodes for the browsers that return the
- text node rather than its host HTML element.
-
- * CustomEvent now logs the custom event activity if the logger widget is available
-
-0.10.0
-
- * Added Safari dblclick to the list of legacy events.
-
- * When multiple identical event handlers are defined, multiple calls
- to removeListener can now remove all of them.
-
- * removeListener works properly for unload events
-
- * Legacy event bookkeeping is more efficient, improving the performance for
- adding Safari click events.
-
- * _unload() is more efficient, improving the page transition experience in
- Safari in particular.
-
- * addListener, removeListener now return false if the function argument is
- not valid.
-
- * Fixed an operator precedence issue in getCharCode.
-
- * Added Event.getXY, which returns [Event.getPageX(e), Event.getPageY(e)]
-
- * Added Event.onAvailable, which will execute the callback when the element
- with the supplied id is found. Currently searches periodically until the
- window load event or for up to 10 seconds after the onAvailable method
- was executed.
-
- * The lazy listener attachment process now will poll beyond the window load
- event in order to better handle the case when a listener is defined
- late in the page but before the element is in the dom.
-
- * Fixed browser detection for Opera installations reporting as IE.
-
- * It is now possible to remove and re-add legacy events (Safari click event).
-
diff --git a/interface/ispconfig/interface/js/yui/event/event-debug.js b/interface/ispconfig/interface/js/yui/event/event-debug.js
deleted file mode 100644
index 43d97a7019777fb483906e22d237de43de2b904a..0000000000000000000000000000000000000000
--- a/interface/ispconfig/interface/js/yui/event/event-debug.js
+++ /dev/null
@@ -1,2076 +0,0 @@
-/*
-Copyright (c) 2007, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.2.0
-*/
-/**
- * The Event Utility provides utilities for managing DOM Events and tools
- * for building event systems
- *
- * @module event
- * @title Event Utility
- * @namespace YAHOO.util
- * @requires yahoo
- */
-
-// The first instance of Event will win if it is loaded more than once.
-// @TODO this needs to be changed so that only the state data that needs to
-// be preserved is kept, while methods are overwritten/added as needed.
-// This means that the module pattern can't be used.
-if (!YAHOO.util.Event) {
-
-/**
- * The event utility provides functions to add and remove event listeners,
- * event cleansing. It also tries to automatically remove listeners it
- * registers during the unload event.
- *
- * @class Event
- * @static
- */
- YAHOO.util.Event = function() {
-
- /**
- * True after the onload event has fired
- * @property loadComplete
- * @type boolean
- * @static
- * @private
- */
- var loadComplete = false;
-
- /**
- * Cache of wrapped listeners
- * @property listeners
- * @type array
- * @static
- * @private
- */
- var listeners = [];
-
- /**
- * User-defined unload function that will be fired before all events
- * are detached
- * @property unloadListeners
- * @type array
- * @static
- * @private
- */
- var unloadListeners = [];
-
- /**
- * Cache of DOM0 event handlers to work around issues with DOM2 events
- * in Safari
- * @property legacyEvents
- * @static
- * @private
- */
- var legacyEvents = [];
-
- /**
- * Listener stack for DOM0 events
- * @property legacyHandlers
- * @static
- * @private
- */
- var legacyHandlers = [];
-
- /**
- * The number of times to poll after window.onload. This number is
- * increased if additional late-bound handlers are requested after
- * the page load.
- * @property retryCount
- * @static
- * @private
- */
- var retryCount = 0;
-
- /**
- * onAvailable listeners
- * @property onAvailStack
- * @static
- * @private
- */
- var onAvailStack = [];
-
- /**
- * Lookup table for legacy events
- * @property legacyMap
- * @static
- * @private
- */
- var legacyMap = [];
-
- /**
- * Counter for auto id generation
- * @property counter
- * @static
- * @private
- */
- var counter = 0;
-
- /**
- * addListener/removeListener can throw errors in unexpected scenarios.
- * These errors are suppressed, the method returns false, and this property
- * is set
- * @property lastError
- * @type Error
- */
- var lastError = null;
-
- return {
-
- /**
- * The number of times we should look for elements that are not
- * in the DOM at the time the event is requested after the document
- * has been loaded. The default is 200@amp;50 ms, so it will poll
- * for 10 seconds or until all outstanding handlers are bound
- * (whichever comes first).
- * @property POLL_RETRYS
- * @type int
- * @static
- * @final
- */
- POLL_RETRYS: 200,
-
- /**
- * The poll interval in milliseconds
- * @property POLL_INTERVAL
- * @type int
- * @static
- * @final
- */
- POLL_INTERVAL: 20,
-
- /**
- * Element to bind, int constant
- * @property EL
- * @type int
- * @static
- * @final
- */
- EL: 0,
-
- /**
- * Type of event, int constant
- * @property TYPE
- * @type int
- * @static
- * @final
- */
- TYPE: 1,
-
- /**
- * Function to execute, int constant
- * @property FN
- * @type int
- * @static
- * @final
- */
- FN: 2,
-
- /**
- * Function wrapped for scope correction and cleanup, int constant
- * @property WFN
- * @type int
- * @static
- * @final
- */
- WFN: 3,
-
- /**
- * Object passed in by the user that will be returned as a
- * parameter to the callback, int constant
- * @property OBJ
- * @type int
- * @static
- * @final
- */
- OBJ: 3,
-
- /**
- * Adjusted scope, either the element we are registering the event
- * on or the custom object passed in by the listener, int constant
- * @property ADJ_SCOPE
- * @type int
- * @static
- * @final
- */
- ADJ_SCOPE: 4,
-
- /**
- * Safari detection is necessary to work around the preventDefault
- * bug that makes it so you can't cancel a href click from the
- * handler. Since this function has been used outside of this
- * utility, it was changed to detect all KHTML browser to be more
- * friendly towards the non-Safari browsers that share the engine.
- * Internally, the preventDefault bug detection now uses the
- * webkit property.
- * @property isSafari
- * @private
- * @static
- * @deprecated
- */
- isSafari: (/KHTML/gi).test(navigator.userAgent),
-
- /**
- * If WebKit is detected, we keep track of the version number of
- * the engine.
- * Safari 1.3.2 (312.6): 312.8.1 <-- currently the latest
- * available on Mac OSX 10.3.
- * Safari 2.0.2: 416 <-- hasOwnProperty introduced
- * Safari 2.0.4: 418 <-- preventDefault fixed (I believe)
- * Safari 2.0.4 (419.3): 418.9.1 <-- current release
- *
- * http://developer.apple.com/internet/safari/uamatrix.html
- * @property webkit
- */
- webkit: function() {
- var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);
- if (v&&v[1]) {
- return v[1];
- }
- return null;
- }(),
-
- /**
- * IE detection needed to properly calculate pageX and pageY.
- * capabilities checking didn't seem to work because another
- * browser that does not provide the properties have the values
- * calculated in a different manner than IE.
- * @property isIE
- * @private
- * @static
- */
- isIE: (!this.webkit && !navigator.userAgent.match(/opera/gi) &&
- navigator.userAgent.match(/msie/gi)),
-
- /**
- * poll handle
- * @property _interval
- * @private
- */
- _interval: null,
-
- /**
- * @method startInterval
- * @static
- * @private
- */
- startInterval: function() {
- if (!this._interval) {
- var self = this;
- var callback = function() { self._tryPreloadAttach(); };
- this._interval = setInterval(callback, this.POLL_INTERVAL);
- // this.timeout = setTimeout(callback, i);
- }
- },
-
- /**
- * Executes the supplied callback when the item with the supplied
- * id is found. This is meant to be used to execute behavior as
- * soon as possible as the page loads. If you use this after the
- * initial page load it will poll for a fixed time for the element.
- * The number of times it will poll and the frequency are
- * configurable. By default it will poll for 10 seconds.
- *
- * @method onAvailable
- *
- * @param {string} p_id the id of the element to look for.
- * @param {function} p_fn what to execute when the element is found.
- * @param {object} p_obj an optional object to be passed back as
- * a parameter to p_fn.
- * @param {boolean} p_override If set to true, p_fn will execute
- * in the scope of p_obj
- *
- * @static
- */
- onAvailable: function(p_id, p_fn, p_obj, p_override) {
- onAvailStack.push( { id: p_id,
- fn: p_fn,
- obj: p_obj,
- override: p_override,
- checkReady: false } );
-
- retryCount = this.POLL_RETRYS;
- this.startInterval();
- },
-
- /**
- * Works the same way as onAvailable, but additionally checks the
- * state of sibling elements to determine if the content of the
- * available element is safe to modify.
- *
- * @method onContentReady
- *
- * @param {string} p_id the id of the element to look for.
- * @param {function} p_fn what to execute when the element is ready.
- * @param {object} p_obj an optional object to be passed back as
- * a parameter to p_fn.
- * @param {boolean} p_override If set to true, p_fn will execute
- * in the scope of p_obj
- *
- * @static
- */
- onContentReady: function(p_id, p_fn, p_obj, p_override) {
- onAvailStack.push( { id: p_id,
- fn: p_fn,
- obj: p_obj,
- override: p_override,
- checkReady: true } );
-
- retryCount = this.POLL_RETRYS;
- this.startInterval();
- },
-
- /**
- * Appends an event handler
- *
- * @method addListener
- *
- * @param {Object} el The html element to assign the
- * event to
- * @param {String} sType The type of event to append
- * @param {Function} fn The method the event invokes
- * @param {Object} obj An arbitrary object that will be
- * passed as a parameter to the handler
- * @param {boolean} override If true, the obj passed in becomes
- * the execution scope of the listener
- * @return {boolean} True if the action was successful or defered,
- * false if one or more of the elements
- * could not have the listener attached,
- * or if the operation throws an exception.
- * @static
- */
- addListener: function(el, sType, fn, obj, override) {
-
-
- if (!fn || !fn.call) {
- // this.logger.debug("Error, function is not valid " + fn);
- return false;
- }
-
- // The el argument can be an array of elements or element ids.
- if ( this._isValidCollection(el)) {
- var ok = true;
- for (var i=0,len=el.length; i= 0) {
- cacheItem = listeners[index];
- }
-
- if (!el || !cacheItem) {
- // this.logger.debug("cached listener not found");
- return false;
- }
-
- // this.logger.debug("Removing handler: " + el + ", " + sType);
-
- if (this.useLegacyEvent(el, sType)) {
- var legacyIndex = this.getLegacyIndex(el, sType);
- var llist = legacyHandlers[legacyIndex];
- if (llist) {
- for (i=0, len=llist.length; i 0);
- }
-
- // onAvailable
- var notAvail = [];
- for (var i=0,len=onAvailStack.length; i 0) {
- for (var i=0,len=searchList.length; i 0) {
- j = listeners.length;
- while (j) {
- index = j-1;
- l = listeners[index];
- if (l) {
- EU.removeListener(l[EU.EL], l[EU.TYPE],
- l[EU.FN], index);
- }
- j = j - 1;
- }
- l=null;
-
- EU.clearCache();
- }
-
- for (i=0,len=legacyEvents.length; i
- * YAHOO.util.CustomEvent.LIST:
- *
- * param1: event name
- * param2: array of arguments sent to fire
- * param3: a custom object supplied by the subscriber
- *
- *
- * YAHOO.util.CustomEvent.FLAT
- *
- * param1: the first argument passed to fire. If you need to
- * pass multiple parameters, use and array or object literal
- * param2: a custom object supplied by the subscriber
- *
- *
- *
- * @property signature
- * @type int
- */
- this.signature = signature || YAHOO.util.CustomEvent.LIST;
-
- /**
- * The subscribers to this event
- * @property subscribers
- * @type Subscriber[]
- */
- this.subscribers = [];
-
- if (!this.silent) {
- YAHOO.log( "Creating " + this, "info", "Event" );
- }
-
- var onsubscribeType = "_YUICEOnSubscribe";
-
- // Only add subscribe events for events that are not generated by
- // CustomEvent
- if (type !== onsubscribeType) {
-
- /**
- * Custom events provide a custom event that fires whenever there is
- * a new subscriber to the event. This provides an opportunity to
- * handle the case where there is a non-repeating event that has
- * already fired has a new subscriber.
- *
- * @event subscribeEvent
- * @type YAHOO.util.CustomEvent
- * @param {Function} fn The function to execute
- * @param {Object} obj An object to be passed along when the event
- * fires
- * @param {boolean|Object} override If true, the obj passed in becomes
- * the execution scope of the listener.
- * if an object, that object becomes the
- * the execution scope.
- */
- this.subscribeEvent =
- new YAHOO.util.CustomEvent(onsubscribeType, this, true);
-
- }
-};
-
-/**
- * Subscriber listener sigature constant. The LIST type returns three
- * parameters: the event type, the array of args passed to fire, and
- * the optional custom object
- * @property YAHOO.util.CustomEvent.LIST
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.LIST = 0;
-
-/**
- * Subscriber listener sigature constant. The FLAT type returns two
- * parameters: the first argument passed to fire and the optional
- * custom object
- * @property YAHOO.util.CustomEvent.FLAT
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.FLAT = 1;
-
-YAHOO.util.CustomEvent.prototype = {
-
- /**
- * Subscribes the caller to this event
- * @method subscribe
- * @param {Function} fn The function to execute
- * @param {Object} obj An object to be passed along when the event
- * fires
- * @param {boolean|Object} override If true, the obj passed in becomes
- * the execution scope of the listener.
- * if an object, that object becomes the
- * the execution scope.
- */
- subscribe: function(fn, obj, override) {
- if (this.subscribeEvent) {
- this.subscribeEvent.fire(fn, obj, override);
- }
-
- this.subscribers.push( new YAHOO.util.Subscriber(fn, obj, override) );
- },
-
- /**
- * Unsubscribes subscribers.
- * @method unsubscribe
- * @param {Function} fn The subscribed function to remove, if not supplied
- * all will be removed
- * @param {Object} obj The custom object passed to subscribe. This is
- * optional, but if supplied will be used to
- * disambiguate multiple listeners that are the same
- * (e.g., you subscribe many object using a function
- * that lives on the prototype)
- * @return {boolean} True if the subscriber was found and detached.
- */
- unsubscribe: function(fn, obj) {
-
- if (!fn) {
- return this.unsubscribeAll();
- }
-
- var found = false;
- for (var i=0, len=this.subscribers.length; i
- * The type of event
- * All of the arguments fire() was executed with as an array
- * The custom object (if any) that was passed into the subscribe()
- * method
- *
- * @method fire
- * @param {Object*} arguments an arbitrary set of parameters to pass to
- * the handler.
- * @return {boolean} false if one of the subscribers returned false,
- * true otherwise
- */
- fire: function() {
- var len=this.subscribers.length;
- if (!len && this.silent) {
- return true;
- }
-
- var args=[], ret=true, i;
-
- for (i=0; i" + (i+1) + ": " + s,
- "info", "Event" );
- }
-
- var scope = s.getScope(this.scope);
-
- if (this.signature == YAHOO.util.CustomEvent.FLAT) {
- var param = null;
- if (args.length > 0) {
- param = args[0];
- }
- ret = s.fn.call(scope, param, s.obj);
- } else {
- ret = s.fn.call(scope, this.type, args, s.obj);
- }
- if (false === ret) {
- if (!this.silent) {
- YAHOO.log("Event cancelled, subscriber " + i +
- " of " + len);
- }
-
- //break;
- return false;
- }
- }
- }
-
- return true;
- },
-
- /**
- * Removes all listeners
- * @method unsubscribeAll
- * @return {int} The number of listeners unsubscribed
- */
- unsubscribeAll: function() {
- for (var i=0, len=this.subscribers.length; i
- *
- * scope: defines the default execution scope. If not defined
- * the default scope will be this instance.
- *
- *
- * silent: if true, the custom event will not generate log messages.
- * This is false by default.
- *
- *
- * onSubscribeCallback: specifies a callback to execute when the
- * event has a new subscriber. This will fire immediately for
- * each queued subscriber if any exist prior to the creation of
- * the event.
- *
- *
- *
- * @return {CustomEvent} the custom event
- *
- */
- createEvent: function(p_type, p_config) {
-
- this.__yui_events = this.__yui_events || {};
- var opts = p_config || {};
- var events = this.__yui_events;
-
- if (events[p_type]) {
- YAHOO.log("EventProvider: error, event already exists");
- } else {
-
- var scope = opts.scope || this;
- var silent = opts.silent || null;
-
- var ce = new YAHOO.util.CustomEvent(p_type, scope, silent,
- YAHOO.util.CustomEvent.FLAT);
- events[p_type] = ce;
-
- if (opts.onSubscribeCallback) {
- ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
- }
-
- this.__yui_subscribers = this.__yui_subscribers || {};
- var qs = this.__yui_subscribers[p_type];
-
- if (qs) {
- for (var i=0; i
- * The first argument fire() was executed with
- * The custom object (if any) that was passed into the subscribe()
- * method
- *
- * @method fireEvent
- * @param p_type {string} the type, or name of the event
- * @param arguments {Object*} an arbitrary set of parameters to pass to
- * the handler.
- * @return {boolean} the return value from CustomEvent.fire, or null if
- * the custom event does not exist.
- */
- fireEvent: function(p_type, arg1, arg2, etc) {
-
- this.__yui_events = this.__yui_events || {};
- var ce = this.__yui_events[p_type];
-
- if (ce) {
- var args = [];
- for (var i=1; i=0){cacheItem=listeners[index];}
-if(!el||!cacheItem){return false;}
-if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i0);}
-var notAvail=[];for(var i=0,len=onAvailStack.length;i0){for(var i=0,len=searchList.length;i0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);}
-j=j-1;}
-l=null;EU.clearCache();}
-for(i=0,len=legacyEvents.length;i0){param=args[0];}
-ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);}
-if(false===ret){if(!this.silent){}
-return false;}}}
-return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i= 0) {
- cacheItem = listeners[index];
- }
-
- if (!el || !cacheItem) {
- return false;
- }
-
-
- if (this.useLegacyEvent(el, sType)) {
- var legacyIndex = this.getLegacyIndex(el, sType);
- var llist = legacyHandlers[legacyIndex];
- if (llist) {
- for (i=0, len=llist.length; i 0);
- }
-
- // onAvailable
- var notAvail = [];
- for (var i=0,len=onAvailStack.length; i 0) {
- for (var i=0,len=searchList.length; i 0) {
- j = listeners.length;
- while (j) {
- index = j-1;
- l = listeners[index];
- if (l) {
- EU.removeListener(l[EU.EL], l[EU.TYPE],
- l[EU.FN], index);
- }
- j = j - 1;
- }
- l=null;
-
- EU.clearCache();
- }
-
- for (i=0,len=legacyEvents.length; i
- * YAHOO.util.CustomEvent.LIST:
- *
- * param1: event name
- * param2: array of arguments sent to fire
- * param3: a custom object supplied by the subscriber
- *
- *
- * YAHOO.util.CustomEvent.FLAT
- *
- * param1: the first argument passed to fire. If you need to
- * pass multiple parameters, use and array or object literal
- * param2: a custom object supplied by the subscriber
- *
- *
- *
- * @property signature
- * @type int
- */
- this.signature = signature || YAHOO.util.CustomEvent.LIST;
-
- /**
- * The subscribers to this event
- * @property subscribers
- * @type Subscriber[]
- */
- this.subscribers = [];
-
- if (!this.silent) {
- }
-
- var onsubscribeType = "_YUICEOnSubscribe";
-
- // Only add subscribe events for events that are not generated by
- // CustomEvent
- if (type !== onsubscribeType) {
-
- /**
- * Custom events provide a custom event that fires whenever there is
- * a new subscriber to the event. This provides an opportunity to
- * handle the case where there is a non-repeating event that has
- * already fired has a new subscriber.
- *
- * @event subscribeEvent
- * @type YAHOO.util.CustomEvent
- * @param {Function} fn The function to execute
- * @param {Object} obj An object to be passed along when the event
- * fires
- * @param {boolean|Object} override If true, the obj passed in becomes
- * the execution scope of the listener.
- * if an object, that object becomes the
- * the execution scope.
- */
- this.subscribeEvent =
- new YAHOO.util.CustomEvent(onsubscribeType, this, true);
-
- }
-};
-
-/**
- * Subscriber listener sigature constant. The LIST type returns three
- * parameters: the event type, the array of args passed to fire, and
- * the optional custom object
- * @property YAHOO.util.CustomEvent.LIST
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.LIST = 0;
-
-/**
- * Subscriber listener sigature constant. The FLAT type returns two
- * parameters: the first argument passed to fire and the optional
- * custom object
- * @property YAHOO.util.CustomEvent.FLAT
- * @static
- * @type int
- */
-YAHOO.util.CustomEvent.FLAT = 1;
-
-YAHOO.util.CustomEvent.prototype = {
-
- /**
- * Subscribes the caller to this event
- * @method subscribe
- * @param {Function} fn The function to execute
- * @param {Object} obj An object to be passed along when the event
- * fires
- * @param {boolean|Object} override If true, the obj passed in becomes
- * the execution scope of the listener.
- * if an object, that object becomes the
- * the execution scope.
- */
- subscribe: function(fn, obj, override) {
- if (this.subscribeEvent) {
- this.subscribeEvent.fire(fn, obj, override);
- }
-
- this.subscribers.push( new YAHOO.util.Subscriber(fn, obj, override) );
- },
-
- /**
- * Unsubscribes subscribers.
- * @method unsubscribe
- * @param {Function} fn The subscribed function to remove, if not supplied
- * all will be removed
- * @param {Object} obj The custom object passed to subscribe. This is
- * optional, but if supplied will be used to
- * disambiguate multiple listeners that are the same
- * (e.g., you subscribe many object using a function
- * that lives on the prototype)
- * @return {boolean} True if the subscriber was found and detached.
- */
- unsubscribe: function(fn, obj) {
-
- if (!fn) {
- return this.unsubscribeAll();
- }
-
- var found = false;
- for (var i=0, len=this.subscribers.length; i
- * The type of event
- * All of the arguments fire() was executed with as an array
- * The custom object (if any) that was passed into the subscribe()
- * method
- *
- * @method fire
- * @param {Object*} arguments an arbitrary set of parameters to pass to
- * the handler.
- * @return {boolean} false if one of the subscribers returned false,
- * true otherwise
- */
- fire: function() {
- var len=this.subscribers.length;
- if (!len && this.silent) {
- return true;
- }
-
- var args=[], ret=true, i;
-
- for (i=0; i 0) {
- param = args[0];
- }
- ret = s.fn.call(scope, param, s.obj);
- } else {
- ret = s.fn.call(scope, this.type, args, s.obj);
- }
- if (false === ret) {
- if (!this.silent) {
- }
-
- //break;
- return false;
- }
- }
- }
-
- return true;
- },
-
- /**
- * Removes all listeners
- * @method unsubscribeAll
- * @return {int} The number of listeners unsubscribed
- */
- unsubscribeAll: function() {
- for (var i=0, len=this.subscribers.length; i
- *
- * scope: defines the default execution scope. If not defined
- * the default scope will be this instance.
- *
- *
- * silent: if true, the custom event will not generate log messages.
- * This is false by default.
- *
- *
- * onSubscribeCallback: specifies a callback to execute when the
- * event has a new subscriber. This will fire immediately for
- * each queued subscriber if any exist prior to the creation of
- * the event.
- *
- *
- *
- * @return {CustomEvent} the custom event
- *
- */
- createEvent: function(p_type, p_config) {
-
- this.__yui_events = this.__yui_events || {};
- var opts = p_config || {};
- var events = this.__yui_events;
-
- if (events[p_type]) {
- } else {
-
- var scope = opts.scope || this;
- var silent = opts.silent || null;
-
- var ce = new YAHOO.util.CustomEvent(p_type, scope, silent,
- YAHOO.util.CustomEvent.FLAT);
- events[p_type] = ce;
-
- if (opts.onSubscribeCallback) {
- ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
- }
-
- this.__yui_subscribers = this.__yui_subscribers || {};
- var qs = this.__yui_subscribers[p_type];
-
- if (qs) {
- for (var i=0; i
- * The first argument fire() was executed with
- * The custom object (if any) that was passed into the subscribe()
- * method
- *
- * @method fireEvent
- * @param p_type {string} the type, or name of the event
- * @param arguments {Object*} an arbitrary set of parameters to pass to
- * the handler.
- * @return {boolean} the return value from CustomEvent.fire, or null if
- * the custom event does not exist.
- */
- fireEvent: function(p_type, arg1, arg2, etc) {
-
- this.__yui_events = this.__yui_events || {};
- var ce = this.__yui_events[p_type];
-
- if (ce) {
- var args = [];
- for (var i=1; i