diff --git a/.gitignore b/.gitignore index d009b25..5a83cbb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .buildpath +.idea + .project .settings/org.eclipse.php.core.prefs diff --git a/app/controllers/admin.php b/app/controllers/admin.php index 1f2540c..85a5cf4 100644 --- a/app/controllers/admin.php +++ b/app/controllers/admin.php @@ -89,6 +89,3 @@ public function doChangeLang() { header("location:index.php"); } } - - -?> \ No newline at end of file diff --git a/app/controllers/collection.php b/app/controllers/collection.php index a53382c..6c4ab03 100644 --- a/app/controllers/collection.php +++ b/app/controllers/collection.php @@ -1071,6 +1071,4 @@ public function doCollectionExport() { public function doCollectionImport() { $this->redirect("db.dbImport", array( "db" => xn("db") )); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/controllers/db.php b/app/controllers/db.php index e4c305b..3915ca4 100644 --- a/app/controllers/db.php +++ b/app/controllers/db.php @@ -121,13 +121,13 @@ public function doDbTransfer() { //start to transfer $targetOptions = array(); if ($this->target_auth) { - $targetOptions["username"] = $this->target_username; + $targetOptions["username"] = $this->target_username; $targetOptions["password"] = $this->target_password; } $targetConnection = new RMongo("mongodb://" . $this->target_host . ":" . $this->target_port, $targetOptions); $targetDb = $targetConnection->selectDB($this->db); if ($this->target_auth) { - // "authenticate" can only be used between 1.0.1 - 1.2.11 + // "authenticate" can only be used between 1.0.1 - 1.2.11 if (RMongo::compareVersion("1.0.1") >= 0 && RMongo::compareVersion("1.2.11") < 0) { $targetDb->authenticate($this->target_username, $this->target_password); } @@ -497,6 +497,4 @@ public function doDropDatabase() { $this->ret = $this->_highlight($ret, "json"); $this->display("dropDatabaseResult"); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/controllers/field.php b/app/controllers/field.php index 63073a4..ede42b4 100644 --- a/app/controllers/field.php +++ b/app/controllers/field.php @@ -131,7 +131,7 @@ function doNew() { $dataType = xn("data_type"); $value = xn("value"); $boolValue = xn("bool_value"); - $integerValue = xn("integer_value"); + $integerValue = xn("integer_value"); $longValue = xn("long_value"); $doubleValue = xn("double_value"); $mixedValue = xn("mixed_value"); @@ -150,11 +150,11 @@ function doNew() { $this->_outputJson(array( "code" => 400, "message" => $e->getMessage())); } - $fieldType = ""; - if ($dataType == "integer") { - $fieldType = "integer"; - } else if ($dataType == "long") { - $fieldType = "long"; + $fieldType = ""; + if ($dataType == "integer") { + $fieldType = "integer"; + } else if ($dataType == "long") { + $fieldType = "long"; } if (!$keep) { @@ -226,7 +226,7 @@ function doLoad() { $type = "boolean"; break; case "integer": - $type = "integer"; + $type = "integer"; break; case "long": $type = "long"; @@ -242,11 +242,11 @@ function doLoad() { $type = "mixed"; break; case "object": - // int64 is returned as object (Kyryl Bilokurov ) - if (get_class($data) == "MongoInt64") { - $type = "long"; - } else { - $type = "mixed"; + // int64 is returned as object (Kyryl Bilokurov ) + if (get_class($data) == "MongoInt64") { + $type = "long"; + } else { + $type = "mixed"; } break; case "resource": @@ -284,7 +284,7 @@ function doUpdate() { $dataType = xn("data_type"); $value = xn("value"); $boolValue = xn("bool_value"); - $integerValue = xn("integer_value"); + $integerValue = xn("integer_value"); $longValue = xn("long_value"); $doubleValue = xn("double_value"); $mixedValue = xn("mixed_value"); @@ -304,10 +304,10 @@ function doUpdate() { } $fieldType = ""; - if ($dataType=="integer") { - $fieldType = "integer"; - } else if ($dataType == "long") { - $fieldType = "long"; + if ($dataType=="integer") { + $fieldType = "integer"; + } else if ($dataType == "long") { + $fieldType = "long"; } $ret = array(); if ($id) { @@ -429,6 +429,4 @@ function doCreateIndex() { $this->_outputJson(array( "code" => 300, "message" => $ret["err"])); } } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/controllers/index.php b/app/controllers/index.php index c3041e2..5dbdbf2 100644 --- a/app/controllers/index.php +++ b/app/controllers/index.php @@ -8,6 +8,3 @@ public function doIndex() { $this->redirect("admin.index"); } } - - -?> \ No newline at end of file diff --git a/app/controllers/login.php b/app/controllers/login.php index b0d047e..4f9d163 100644 --- a/app/controllers/login.php +++ b/app/controllers/login.php @@ -57,5 +57,3 @@ public function doIndex() { } } } - -?> \ No newline at end of file diff --git a/app/controllers/logout.php b/app/controllers/logout.php index 71a9c26..dc716ee 100644 --- a/app/controllers/logout.php +++ b/app/controllers/logout.php @@ -13,5 +13,3 @@ function doIndex() { $this->redirect("login.index"); } } - -?> \ No newline at end of file diff --git a/app/controllers/plugins.php b/app/controllers/plugins.php index c7a88f3..5cc2b1f 100644 --- a/app/controllers/plugins.php +++ b/app/controllers/plugins.php @@ -11,6 +11,4 @@ public function doIndex() { $this->display(); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/controllers/server.php b/app/controllers/server.php index 16c0fa8..5b14fa6 100644 --- a/app/controllers/server.php +++ b/app/controllers/server.php @@ -303,6 +303,4 @@ public function doReplication() { $this->display(); } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/funcs/functions.php b/app/funcs/functions.php index 8bcf238..af588e2 100644 --- a/app/funcs/functions.php +++ b/app/funcs/functions.php @@ -235,6 +235,4 @@ function json_format($json) } return $new_json; -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/funcs/render.php b/app/funcs/render.php index f40eb92..7079578 100644 --- a/app/funcs/render.php +++ b/app/funcs/render.php @@ -492,5 +492,3 @@ function render_server_response($response) { function render_url($action, array $params = array()) { echo url($action, $params); } - -?> \ No newline at end of file diff --git a/app/funcs/rock.php b/app/funcs/rock.php index e018d91..9f4a090 100644 --- a/app/funcs/rock.php +++ b/app/funcs/rock.php @@ -256,6 +256,4 @@ function rock_real_value($mongodb, $dataType, $format, $value) { break; } return $realValue; -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/langs/de_de/message.php b/app/langs/de_de/message.php index 8e99f58..2a60192 100644 --- a/app/langs/de_de/message.php +++ b/app/langs/de_de/message.php @@ -192,5 +192,3 @@ $message["loginandrock"] = "Login und abrocken"; $message["changeconfig"] = "Vielleicht möchten Sie ihren Benutzernamen und Passwort in config.php ändern."; $message["rockmongocredits"] = "Powered by RockMongo v" . (ROCK_MONGO_VERSION) . ", auf neue Version prüfen."; - -?> \ No newline at end of file diff --git a/app/langs/en_us/message.php b/app/langs/en_us/message.php index d0c45c0..afe1aa3 100644 --- a/app/langs/en_us/message.php +++ b/app/langs/en_us/message.php @@ -215,5 +215,3 @@ $message["loginandrock"] = "Login and Rock"; $message["changeconfig"] = "You may change your username and password in config.php."; $message["rockmongocredits"] = "Powered by RockMongo v" . (ROCK_MONGO_VERSION) . ", check out new version here.   [Donate 10 dollars]"; - -?> \ No newline at end of file diff --git a/app/langs/es_es/message.php b/app/langs/es_es/message.php index 3ade106..6398e2e 100644 --- a/app/langs/es_es/message.php +++ b/app/langs/es_es/message.php @@ -192,5 +192,3 @@ $message["loginandrock"] = "Iniciar sesión and Rock"; $message["changeconfig"] = "Debe cambiar su nombre de usuario y contraseña en el config.php."; $message["rockmongocredits"] = "Desarrollado por RockMongo v" . (ROCK_MONGO_VERSION) . ", echa un vistazo a la nueva versión aquí."; - -?> \ No newline at end of file diff --git a/app/langs/fr_fr/message.php b/app/langs/fr_fr/message.php index 62f394c..28b87ab 100644 --- a/app/langs/fr_fr/message.php +++ b/app/langs/fr_fr/message.php @@ -208,4 +208,3 @@ $message["changeconfig"] = "Vous devriez changer votre nom d'utilisateur et mot de passe dans le fichier config.php"; $message["rockmongocredits"] = "Powered by RockMongo v" . (ROCK_MONGO_VERSION) . ", check out new version here."; -?> diff --git a/app/langs/it_it/message.php b/app/langs/it_it/message.php index 4e251f0..eee4ddc 100644 --- a/app/langs/it_it/message.php +++ b/app/langs/it_it/message.php @@ -207,4 +207,3 @@ $message["changeconfig"] = "Puoi cambiare la tua username e la password nel file config.php"; $message["rockmongocredits"] = "Powered by RockMongo v" . (ROCK_MONGO_VERSION) . ", verifica nuove versione disponibili."; -?> diff --git a/app/langs/ja_jp/message.php b/app/langs/ja_jp/message.php index 3ab6c93..190cfeb 100644 --- a/app/langs/ja_jp/message.php +++ b/app/langs/ja_jp/message.php @@ -67,5 +67,3 @@

See http://rockmongo.com for more details.

If you have any questions, please send email to me: iwind.liu@gmail.com .

'; - -?> \ No newline at end of file diff --git a/app/langs/pt_br/message.php b/app/langs/pt_br/message.php index 5c21220..304eb5f 100644 --- a/app/langs/pt_br/message.php +++ b/app/langs/pt_br/message.php @@ -68,4 +68,3 @@

Se vocêem alguma dúvida, me envie um email: iwind.liu@gmail.com .

'; -?> \ No newline at end of file diff --git a/app/langs/pt_pt/message.php b/app/langs/pt_pt/message.php index 30a6716..c0b6e83 100644 --- a/app/langs/pt_pt/message.php +++ b/app/langs/pt_pt/message.php @@ -68,4 +68,3 @@

Se têm alguma dúvida, envie um email para: iwind.liu@gmail.com .

'; -?> \ No newline at end of file diff --git a/app/langs/ru_ru/message.php b/app/langs/ru_ru/message.php index e8a30cd..4723102 100644 --- a/app/langs/ru_ru/message.php +++ b/app/langs/ru_ru/message.php @@ -207,4 +207,3 @@ $message["changeconfig"] = "Можно изменить имя пользователя и пароль в config.php."; $message["rockmongocredits"] = "Работает на RockMongo v" . (ROCK_MONGO_VERSION) . ", посмотреть новую версию."; -?> diff --git a/app/langs/tr_tr/message.php b/app/langs/tr_tr/message.php index b08a0e6..2b28ea1 100644 --- a/app/langs/tr_tr/message.php +++ b/app/langs/tr_tr/message.php @@ -207,4 +207,3 @@ $message["changeconfig"] = "Kullanıcı adı ve parolanızı config.php dosyasından değiştirebilirsiniz."; $message["rockmongocredits"] = "RockMongo v" . (ROCK_MONGO_VERSION) . " ile güçlendirilmiştir, yeni sürümü kontrol edin.   [10 Dolar Bağışla]"; -?> diff --git a/app/langs/zh_cn/message.php b/app/langs/zh_cn/message.php index fcb662c..a797758 100644 --- a/app/langs/zh_cn/message.php +++ b/app/langs/zh_cn/message.php @@ -77,5 +77,3 @@

请访问 http://rockmongo.com 获取更多信息.

如果有任何问题和反馈,请发送邮件到:iwind.liu@gmail.com .

'; - -?> \ No newline at end of file diff --git a/app/langs/zh_tw/message.php b/app/langs/zh_tw/message.php index 7139576..8ef9a92 100644 --- a/app/langs/zh_tw/message.php +++ b/app/langs/zh_tw/message.php @@ -78,4 +78,3 @@

如果有任何問題和反饋,請發送郵件到:iwind.liu@gmail.com .

'; -?> \ No newline at end of file diff --git a/app/lib/core/REvent.php b/app/lib/core/REvent.php index 51d55a2..3102d81 100644 --- a/app/lib/core/REvent.php +++ b/app/lib/core/REvent.php @@ -83,4 +83,3 @@ public static function remove($event, $callback) { } } -?> \ No newline at end of file diff --git a/app/lib/core/RFilter.php b/app/lib/core/RFilter.php index 5cdcf11..3bd77ac 100644 --- a/app/lib/core/RFilter.php +++ b/app/lib/core/RFilter.php @@ -88,5 +88,3 @@ public static function remove($dataType, $filter) { } } } - -?> \ No newline at end of file diff --git a/app/lib/core/RPlugin.php b/app/lib/core/RPlugin.php index a9d53ef..371e549 100644 --- a/app/lib/core/RPlugin.php +++ b/app/lib/core/RPlugin.php @@ -108,14 +108,14 @@ public static function load() { */ public static function plugins() { $configPlugins = array(); - require(__ROOT__ . DS . "configs" . DS . "rplugin.php"); - if (empty($plugins) || !is_array($plugins)) { - return $configPlugins; - } - foreach ($plugins as $name => $plugin) { - $dir = __ROOT__ . DS . "plugins" . DS . $name; - if (!is_dir($dir)) { - $dir = dirname(dirname(__ROOT__)) . DS . "plugins" . DS . $name; + require(__ROOT__ . DS . "configs" . DS . "rplugin.php"); + if (empty($plugins) || !is_array($plugins)) { + return $configPlugins; + } + foreach ($plugins as $name => $plugin) { + $dir = __ROOT__ . DS . "plugins" . DS . $name; + if (!is_dir($dir)) { + $dir = dirname(dirname(__ROOT__)) . DS . "plugins" . DS . $name; } $pluginConfig = array( "name" => null, @@ -125,7 +125,7 @@ public static function plugins() { "description" => null, "version" => null, "url" => null, - "enabled" => isset($plugin["enabled"]) ? $plugin["enabled"] : false + "enabled" => isset($plugin["enabled"]) ? $plugin["enabled"] : false ); $descFile = $dir . "/desc.php"; @@ -134,20 +134,20 @@ public static function plugins() { if (isset($config["name"])) { $pluginConfig["name"] = $config["name"]; } - if (isset($config["code"])) { - $pluginConfig["code"] = $config["code"]; + if (isset($config["code"])) { + $pluginConfig["code"] = $config["code"]; } - if (isset($config["author"])) { - $pluginConfig["author"] = $config["author"]; + if (isset($config["author"])) { + $pluginConfig["author"] = $config["author"]; } - if (isset($config["description"])) { - $pluginConfig["description"] = $config["description"]; + if (isset($config["description"])) { + $pluginConfig["description"] = $config["description"]; } if (isset($config["version"])) { $pluginConfig["version"] = $config["version"]; } - if (isset($config["url"])) { - $pluginConfig["url"] = $config["url"]; + if (isset($config["url"])) { + $pluginConfig["url"] = $config["url"]; } } @@ -157,5 +157,3 @@ public static function plugins() { return $configPlugins; } } - -?> \ No newline at end of file diff --git a/app/lib/ext/RExtController.php b/app/lib/ext/RExtController.php index 24f527c..ec584be 100644 --- a/app/lib/ext/RExtController.php +++ b/app/lib/ext/RExtController.php @@ -67,4 +67,3 @@ function isAjax() { } } -?> \ No newline at end of file diff --git a/app/lib/mime/types.php b/app/lib/mime/types.php index 21e4f4e..089d479 100644 --- a/app/lib/mime/types.php +++ b/app/lib/mime/types.php @@ -186,5 +186,3 @@ "xwd" => "image/x-xwindowdump", "z" => "application/x-compress", "zip" => "application/zip"); - -?> \ No newline at end of file diff --git a/app/lib/mongo/RMongo.php b/app/lib/mongo/RMongo.php index 7331152..9dbb894 100644 --- a/app/lib/mongo/RMongo.php +++ b/app/lib/mongo/RMongo.php @@ -290,5 +290,3 @@ static function lastInsertId() { return self::$_lastId; } } - -?> \ No newline at end of file diff --git a/app/lib/mongo/RMongoException.php b/app/lib/mongo/RMongoException.php index 69982a1..c497535 100644 --- a/app/lib/mongo/RMongoException.php +++ b/app/lib/mongo/RMongoException.php @@ -7,5 +7,3 @@ class RMongoException extends MongoException { } - -?> \ No newline at end of file diff --git a/app/lib/mongo/RObject.php b/app/lib/mongo/RObject.php index 03354a9..91399e2 100644 --- a/app/lib/mongo/RObject.php +++ b/app/lib/mongo/RObject.php @@ -327,4 +327,3 @@ function offsetUnset($index) { } } -?> \ No newline at end of file diff --git a/app/lib/mongo/RQuery.php b/app/lib/mongo/RQuery.php index cac2510..0dfbf7c 100644 --- a/app/lib/mongo/RQuery.php +++ b/app/lib/mongo/RQuery.php @@ -598,4 +598,3 @@ function db() { } } -?> \ No newline at end of file diff --git a/app/lib/page/RPage.php b/app/lib/page/RPage.php index 04735ec..b6426c3 100644 --- a/app/lib/page/RPage.php +++ b/app/lib/page/RPage.php @@ -488,5 +488,3 @@ static function pageWithStyle($style, array $params = null) { } } - -?> \ No newline at end of file diff --git a/app/lib/page/lang/de_de.php b/app/lib/page/lang/de_de.php index d08c619..7a2d2df 100644 --- a/app/lib/page/lang/de_de.php +++ b/app/lib/page/lang/de_de.php @@ -13,5 +13,3 @@ $message["pager_input_pageno"] = "Springen zu:"; $message["pager_current_pageno"] = "Aktuell: %d "; $message["pager_total_page"] = "Total: %d "; - -?> \ No newline at end of file diff --git a/app/lib/page/lang/default.php b/app/lib/page/lang/default.php index ad2253c..27073cd 100644 --- a/app/lib/page/lang/default.php +++ b/app/lib/page/lang/default.php @@ -13,5 +13,3 @@ $message["pager_input_pageno"] = "输入页数"; $message["pager_current_pageno"] = "第 %d 页"; $message["pager_total_page"] = "共 %d 页"; - -?> \ No newline at end of file diff --git a/app/lib/page/lang/en.php b/app/lib/page/lang/en.php index 221331a..eec9f3f 100644 --- a/app/lib/page/lang/en.php +++ b/app/lib/page/lang/en.php @@ -13,5 +13,3 @@ $message["pager_input_pageno"] = "Turn To:"; $message["pager_current_pageno"] = "Current: %d "; $message["pager_total_page"] = "Total: %d "; - -?> \ No newline at end of file diff --git a/app/lib/page/lang/en_us.php b/app/lib/page/lang/en_us.php index 221331a..17a636a 100644 --- a/app/lib/page/lang/en_us.php +++ b/app/lib/page/lang/en_us.php @@ -14,4 +14,3 @@ $message["pager_current_pageno"] = "Current: %d "; $message["pager_total_page"] = "Total: %d "; -?> \ No newline at end of file diff --git a/app/lib/page/lang/es_es.php b/app/lib/page/lang/es_es.php index 061ed33..36e8cfa 100644 --- a/app/lib/page/lang/es_es.php +++ b/app/lib/page/lang/es_es.php @@ -14,4 +14,3 @@ $message["pager_current_pageno"] = "Actual: %d "; $message["pager_total_page"] = "Total: %d "; -?> \ No newline at end of file diff --git a/app/lib/page/lang/ru_ru.php b/app/lib/page/lang/ru_ru.php index 2ae7082..a1be5aa 100755 --- a/app/lib/page/lang/ru_ru.php +++ b/app/lib/page/lang/ru_ru.php @@ -14,4 +14,3 @@ $message["pager_current_pageno"] = "Текущая: %d "; $message["pager_total_page"] = "Всего: %d "; -?> diff --git a/app/lib/page/lang/zh.php b/app/lib/page/lang/zh.php index 2e69b21..4343d86 100644 --- a/app/lib/page/lang/zh.php +++ b/app/lib/page/lang/zh.php @@ -13,5 +13,3 @@ $message["pager_input_pageno"] = "输入页数"; $message["pager_current_pageno"] = "第 %d 页"; $message["pager_total_page"] = "共 %d 页"; - -?> \ No newline at end of file diff --git a/app/lib/page/lang/zh_cn.php b/app/lib/page/lang/zh_cn.php index 2e69b21..e4dabe4 100644 --- a/app/lib/page/lang/zh_cn.php +++ b/app/lib/page/lang/zh_cn.php @@ -14,4 +14,3 @@ $message["pager_current_pageno"] = "第 %d 页"; $message["pager_total_page"] = "共 %d 页"; -?> \ No newline at end of file diff --git a/app/models/MCollection.php b/app/models/MCollection.php index f31b637..a34bb26 100644 --- a/app/models/MCollection.php +++ b/app/models/MCollection.php @@ -76,4 +76,3 @@ static function info(MongoDB $db, $collection) { } } -?> \ No newline at end of file diff --git a/app/models/MDb.php b/app/models/MDb.php index 1f21b1c..42e419d 100644 --- a/app/models/MDb.php +++ b/app/models/MDb.php @@ -65,6 +65,4 @@ static function listCollections(MongoDB $db) { } return $collections; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/app/models/MServer.php b/app/models/MServer.php index 4346784..4930806 100644 --- a/app/models/MServer.php +++ b/app/models/MServer.php @@ -253,11 +253,11 @@ public function docsNatureOrder() { return $this->_docsNatureOrder; } - /** + /** * Set documents highlight render * - * @param string $render can be "default" or "plain" - * @since 1.1.6 + * @param string $render can be "default" or "plain" + * @since 1.1.6 */ public function setDocsRender($render) { $renders = array( "default", "plain" ); @@ -338,7 +338,7 @@ public function auth($username, $password, $db = "admin") { //authenticate if (!empty($this->_mongoUser)) { - // "authenticate" can only be used between 1.0.1 - 1.2.11 + // "authenticate" can only be used between 1.0.1 - 1.2.11 if (RMongo::compareVersion("1.0.1") >= 0 && RMongo::compareVersion("1.2.11") < 0) { return $this->_mongo ->selectDB($db) @@ -349,7 +349,7 @@ public function auth($username, $password, $db = "admin") { else { //authenticate if (!empty($this->_mongoUser)) { - // "authenticate" can only be used between 1.0.1 - 1.2.11 + // "authenticate" can only be used between 1.0.1 - 1.2.11 if (RMongo::compareVersion("1.0.1") >= 0 && RMongo::compareVersion("1.2.11") < 0) { return $this->_mongo ->selectDB($db) @@ -467,5 +467,3 @@ public static function currentServer() { return self::$_currentServer; } } - -?> \ No newline at end of file diff --git a/app/models/MUser.php b/app/models/MUser.php index 5089af8..a683ca3 100644 --- a/app/models/MUser.php +++ b/app/models/MUser.php @@ -122,5 +122,3 @@ public static function userInSession() { return null; } } - -?> \ No newline at end of file diff --git a/config.php b/config.php index 8abdd42..695fb98 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,7 @@ $MONGO = array(); $MONGO["features"]["log_query"] = "on";//log queries -$MONGO["features"]["theme"] = "default";//theme +$MONGO["features"]["theme"] = "devel";//theme $MONGO["features"]["plugins"] = "on";//plugins $i = 0; @@ -27,7 +27,7 @@ //$MONGO["servers"][$i]["mongo_pass"] = "MONGO_PASSWORD";//mongo authentication password, works only if mongo_auth=false $MONGO["servers"][$i]["mongo_auth"] = false;//enable mongo authentication? -$MONGO["servers"][$i]["control_auth"] = true;//enable control users, works only if mongo_auth=false +$MONGO["servers"][$i]["control_auth"] = false;//enable control users, works only if mongo_auth=false $MONGO["servers"][$i]["control_users"]["admin"] = "admin";//one of control users ["USERNAME"]=PASSWORD, works only if mongo_auth=false $MONGO["servers"][$i]["ui_only_dbs"] = "";//databases to display @@ -50,5 +50,3 @@ $MONGO["servers"][$i]["control_users"]["admin"] = "password"; $i ++; **/ - -?> \ No newline at end of file diff --git a/index.php b/index.php index 3f71ff4..cfbb0df 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,4 @@ rock_check_version(); rock_init_lang(); rock_init_plugins(); -Rock::start(); - -?> \ No newline at end of file +Rock::start(); \ No newline at end of file diff --git a/rock.php b/rock.php index 53df5f8..67028af 100644 --- a/rock.php +++ b/rock.php @@ -4,7 +4,7 @@ define("__ROOT__", dirname(__FILE__) . DS . "app"); define("__VERSION__", "0.0.1"); define("nil", "nil_" . uniqid(microtime(true))); -define("PHP_VERSION_5_3", version_compare(PHP_VERSION, "5.3.0")>=0); +define("PHP_VERSION_5_3", version_compare(PHP_VERSION, "5.3.0") >= 0); if (!defined("__ENV__")) { define("__ENV__", "dev"); } @@ -22,7 +22,7 @@ */ class Rock { private static $_controller; - + /** * Start application * @@ -51,8 +51,7 @@ public static function start() { $mainRoot = dirname(dirname(__ROOT__)) . DS . "plugins" . DS . substr($name, 1, strpos($name, ".") - 1); } $name = substr($name, strpos($name, ".") + 1); - } - else { + } else { $isInPlugin = false; $mainRoot = __ROOT__; } @@ -62,6 +61,7 @@ public static function start() { trigger_error("file '{$file}' of controller '{$controller}' is not found", E_USER_ERROR); } require($file); + $class = ucfirst(rock_name_to_java($controller)) . "Controller"; if (!class_exists($class, false)) { $file = realpath($file); @@ -71,7 +71,7 @@ public static function start() { if (!($obj instanceof RController)) { trigger_error("controller class '{$class}' must be a subclass of RController", E_USER_ERROR); } - + define("__ACTION__", $action); $obj->setRoot($mainRoot); $obj->setAction($action); @@ -80,11 +80,11 @@ public static function start() { $obj->setInPlugin($isInPlugin); $obj->exec(); } - + public static function setController($controller) { self::$_controller = $controller; - } - + } + /** * get current running controller object * @@ -92,7 +92,7 @@ public static function setController($controller) { */ public static function controller() { return self::$_controller; - } + } } /** @@ -104,16 +104,16 @@ class RController { private $_path; private $_name; private $_inPlugin = false; - + /** - * set current action name + * set current action name * * @param string $action action name */ public function setAction($action) { $this->_action = $action; } - + /** * Get action name * @@ -122,15 +122,15 @@ public function setAction($action) { public function action() { return $this->_action; } - + public function setRoot($root) { $this->_root = $root; } - + public function root() { return $this->_root; - } - + } + /** * Set controller file path * @@ -139,7 +139,7 @@ public function root() { public function setPath($path) { $this->_path = $path; } - + /** * Set controller name * @@ -148,7 +148,7 @@ public function setPath($path) { public function setName($name) { $this->_name = $name; } - + /** * Get controller name * @@ -157,7 +157,7 @@ public function setName($name) { public function name() { return $this->_name; } - + /** * Set if the controller is in a plugin * @@ -166,35 +166,35 @@ public function name() { public function setInPlugin($isInPlugin) { $this->_inPlugin = $isInPlugin; } - + /** * Call before actions * */ public function onBefore() { - + } - + /** * Call after actions * */ public function onAfter() { - + } - + /** * Execute action * */ public function exec() { Rock::setController($this); - + if (class_exists("RPlugin")) { RPlugin::callBefore(); } $this->onBefore(); - + $method = "do" . $this->_action; if (!method_exists($this, $method)) { trigger_error("can not find action '{$this->_action}' in class '" . get_class($this) . "'", E_USER_ERROR); @@ -203,13 +203,13 @@ public function exec() { if (is_object($ret) && ($ret instanceof RView)) { $ret->display(); } - + $this->onAfter(); if (class_exists("RPlugin")) { RPlugin::callAfter(); } } - + /** * Display View * @@ -221,10 +221,11 @@ public function display($action = null) { } $view = null; if ($this->_inPlugin) { - $view = dirname(dirname($this->_path)) . "/views/" . str_replace(".", "/", $this->_name) . "/{$action}.php"; - } - else { - $view = dirname(__ROOT__) . DS . rock_theme_path() . "/views/" . str_replace(".", "/", $this->_name) . "/{$action}.php"; + $view = dirname(dirname($this->_path)) . "/views/" . str_replace(".", "/", $this->_name) . "/{$action}.php"; + } else { + $view = dirname(__ROOT__) . DS . rock_theme_path() . "/views/" . str_replace( + ".", "/", $this->_name + ) . "/{$action}.php"; } if (is_file($view)) { extract(get_object_vars($this), EXTR_OVERWRITE); @@ -238,7 +239,7 @@ public function display($action = null) { * */ class RModel { - + } /** @@ -251,13 +252,13 @@ class RView { * */ public function display() { - + } } /** * print data to screen - * + * * @param mixed $data1 data to be printed */ function p($data1 = null) { @@ -265,8 +266,7 @@ function p($data1 = null) { foreach ($args as $arg) { if (is_null($arg)) { $arg = "NULL"; - } - else if (is_bool($arg)) { + } else if (is_bool($arg)) { $arg = $arg ? "TRUE" : "FALSE"; } echo "\n" . print_r($arg, true) . "\n\n"; @@ -316,7 +316,7 @@ function rock_filter_param($param, $filter = true) { /** * get parameter value - * + * * different from x($name), the value will not be filtered (trim or htmlspecialchars) * * @param string $name parameter name @@ -327,7 +327,7 @@ function xn($name = nil) { if ($name == nil) { return array_merge(rock_filter_param($GLOBALS["ROCK_HTTP_VARS"], false), $GLOBALS["ROCK_USER_VARS"]); } - + if (array_key_exists($name, $GLOBALS["ROCK_USER_VARS"])) { return $GLOBALS["ROCK_USER_VARS"][$name]; } @@ -350,7 +350,7 @@ function xi($name) { /** * import a class file - * + * * @param string $class full class name * @param boolean $isClass if file is class */ @@ -359,19 +359,18 @@ function import($class, $isClass = true) { if ($isClass && class_exists($className, false)) { return $className; } - + $file = null; if (strstr($class, "@")) { $trace = debug_backtrace(); $calledFile = $trace[0]["file"]; $count = substr_count($class, "@"); $dir = $calledFile; - for ($i = 0; $i < $count; $i ++) { + for ($i = 0; $i < $count; $i++) { $dir = dirname($dir); } $file = $dir . "/" . str_replace(".", "/", str_replace("@.", "", $class)) . ".php"; - } - else { + } else { $file = __ROOT__ . "/" . str_replace(".", "/", $class) . ".php"; } if (empty($GLOBALS["ROCK_LOADED"]) || !in_array($file, $GLOBALS["ROCK_LOADED"])) { @@ -383,9 +382,9 @@ function import($class, $isClass = true) { /** * get configuration value - * + * * support __PLATFORM__ - * + * * o("config.name") - find in app/configs/config.php directory * o("@.config") - find config.php in current directory * o("@.config.servers") - find config.php in current directory @@ -397,7 +396,7 @@ function o($config) { if (isset($GLOBALS["ROCK_CONFIGS"][$config])) { return $GLOBALS["ROCK_CONFIGS"][$config]; } - + $file = null; $option = null; $pieces = explode(".", $config); @@ -406,18 +405,17 @@ function o($config) { $calledFile = $trace[0]["file"]; $count = substr_count($config, "@"); $dir = $calledFile; - for ($i = 0; $i < $count; $i ++) { + for ($i = 0; $i < $count; $i++) { unset($pieces[$i]); $dir = dirname($dir); } $filename = array_shift($pieces); $file = $dir . "/" . $filename . "@" . __PLATFORM__ . ".php"; - } - else { + } else { $filename = array_shift($pieces); $file = __ROOT__ . "/configs/" . $filename . "@" . __PLATFORM__ . ".php"; } - + $options = $pieces; $ret = require($file); @@ -431,7 +429,7 @@ function o($config) { return null; } $ret = rock_array_get($ret, $options); - + $GLOBALS["ROCK_CONFIGS"][$config] = $ret; return $ret; } @@ -441,13 +439,16 @@ function o($config) { * * Example:
* load_xml_config --> loadXmlConfig - * + * * @param string $name name to be converted * @return string */ function rock_name_to_java($name) { - $name = preg_replace("/_([a-zA-Z])/e", "strtoupper('\\1')", $name); - return $name; + return preg_replace_callback( + '/_([a-zA-Z])/', function ($matches) { + return strtoupper(reset($matches)); + }, $name + ); } /** @@ -457,7 +458,7 @@ function rock_name_to_java($name) { * @param array|string $keys key or keys, can be a.b.c * @return mixed * @see rock_array_set - */ + */ function rock_array_get(array $array, $keys) { if (is_array($keys) && empty($keys)) { return $array; @@ -471,7 +472,7 @@ function rock_array_get(array $array, $keys) { if (count($keys) == 1) { $firstKey = array_pop($keys); $firstKey = str_replace("\\.", ".", $firstKey); - return array_key_exists($firstKey, $array)?$array[$firstKey]:null; + return array_key_exists($firstKey, $array) ? $array[$firstKey] : null; } $lastKey = array_pop($keys); $lastKey = str_replace("\\.", ".", $lastKey); @@ -480,13 +481,12 @@ function rock_array_get(array $array, $keys) { $key = str_replace("\\.", ".", $key); if (is_array($lastArray) && array_key_exists($key, $lastArray)) { $lastArray = $lastArray[$key]; - } - else { + } else { return null; } } - - return (is_array($lastArray) && array_key_exists($lastKey, $lastArray))? $lastArray[$lastKey] : null; + + return (is_array($lastArray) && array_key_exists($lastKey, $lastArray)) ? $lastArray[$lastKey] : null; } @@ -517,13 +517,13 @@ function rock_array_set(array $array, $keys, $value) { } $lastKey = array_pop($keys); $lastKey = str_replace("\.", ".", $lastKey); - $lastConfig = &$array; + $lastConfig = & $array; foreach ($keys as $key) { $key = str_replace("\.", ".", $key); if (!isset($lastConfig[$key]) || !is_array($lastConfig[$key])) { $lastConfig[$key] = array(); } - $lastConfig = &$lastConfig[$key]; + $lastConfig = & $lastConfig[$key]; } $lastConfig[$lastKey] = $value; return $array; @@ -531,17 +531,17 @@ function rock_array_set(array $array, $keys, $value) { /** * pick values from an array, the make it as keys - * + * * * $array = array( * array("a" => 11, "b" => 12), * array("a" => 21, "b" => 22) * //... * ); - * + * * $array2 = rock_array_combine($array, "a", "b"); * - * + * * then $array2 will be: * * array( @@ -549,20 +549,20 @@ function rock_array_set(array $array, $keys, $value) { * 21 => 22 * ); * - * + * * if $valueName not be set, the element value be "value": - * + * * * $array2 = rock_array_combine($array, "a"); - * + * * array( * 11 => array("a" => 11, "b" => 12), * 21 => array("a" => 21, "b" => 22) * ); * - * + * * support dot (.) operator in keyName and valueName: - * - rock_array_combine($array, "a.b", "a.c"); + * - rock_array_combine($array, "a.b", "a.c"); * $array[n][a][b] will be "key",$array[n][a][c] value be"value", here, n is index * * @param array $array array values to combine from @@ -579,8 +579,7 @@ function rock_array_combine($array, $keyName, $valueName = null) { $value = is_null($valueName) ? $row : rock_array_get($row, $valueName); if ($keyValue) { $ret[$keyValue] = $value; - } - else { + } else { $ret[] = $value; } } @@ -600,8 +599,7 @@ function rock_lang($code) { require($file); if (isset($message) && is_array($message)) { $GLOBALS["ROCK_LANGS"] = $message; - } - else { + } else { $GLOBALS["ROCK_LANGS"] = array(); } } @@ -613,7 +611,7 @@ function rock_lang($code) { } $GLOBALS["ROCK_LANGS"] = array_merge($message, $GLOBALS["ROCK_LANGS"]); } - + $args = func_get_args(); unset($args[0]); if (empty($args)) { @@ -631,10 +629,10 @@ function rock_check_version() { if (!isset($MONGO["servers"][0]["host"])) { return; } - + //version 1.0.x foreach ($MONGO["servers"] as $index => $server) { - foreach($server as $param => $value) { + foreach ($server as $param => $value) { switch ($param) { case "host": $server["mongo_host"] = $value; @@ -682,8 +680,7 @@ function rock_init_lang() { $firstLang = ""; if (strstr($_SERVER["HTTP_ACCEPT_LANGUAGE"], ",")) { list($firstLang) = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]); - } - else { + } else { $firstLang = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; } if ($firstLang) { @@ -712,6 +709,4 @@ function rock_init_plugins() { import("lib.core.REvent"); import("lib.core.RFilter"); RPlugin::load(); -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/themes/devel/css/collection.css b/themes/devel/css/collection.css new file mode 100644 index 0000000..c2dd212 --- /dev/null +++ b/themes/devel/css/collection.css @@ -0,0 +1,50 @@ +/** fields and hints list **/ +.fieldsmenu { + float: right; + margin-right: 100px; + margin-top: 0px; + background-color: #eee; + border-left: 1px #ccc solid; + border-top: 1px #ccc solid; + border-right: 2px #ccc solid; + border-bottom: 2px #ccc solid; + padding-left: 3px; + position: absolute; + display: none; + width: 400px; +} + +.fieldsmenu ul { + list-style-type: none; + margin: 0; + padding: 0 +} + +.fieldsmenu ul li { + float: left; + width: 200px +} + +/** operation menu **/ +#field_menu a { + display: block; +} + +#field_menu a:hover { + display: block; + background-color: #ccc +} + +#field_menu a:active { + display: block; + color: blue +} + +/** colors **/ +a.disabled { + color: gray +} + +a.disabled:active { + color: gray +} \ No newline at end of file diff --git a/themes/devel/css/global.css b/themes/devel/css/global.css new file mode 100644 index 0000000..f029625 --- /dev/null +++ b/themes/devel/css/global.css @@ -0,0 +1,181 @@ +* { + font-size: 14px; + font-family: monospace; +} + +html, body { + height: 100% +} + +body { + margin: 0; + padding: 0; +} + +a { + text-decoration: none; + color: #004499; + line-height: 1.5 +} + +a:hover { + color: blue +} + +/** select options **/ +.select_hosts { + width: 150px; +} + +/** common **/ +.clear { + clear: both +} + +.page span a { + font-weight: bold; + color: red +} + +blockquote { + padding: 0px; + margin: 0; + border: 1px #ccc solid; + background-color: #eee +} + +.error { + padding: 0px; + margin: 10px 0; + border: 1px #ccc solid; + background-color: #eee; + color: red +} + +.message { + padding: 0px; + margin: 10px 0; + border: 1px #ccc solid; + background-color: #eee; + color: green +} + +.operation { + padding: 3px; + border-bottom: 1px #999 solid; + margin-bottom: 5px; +} + +.operation a { + font-size: 14px; +} + +.operation a.current { + font-weight: bold; + text-decoration: underline +} + +.gap { + height: 20px +} + +.big { + font-size: 14px +} + +h3 { + padding-bottom: 0; + margin-top: 0; + padding-bottom: 3px; + border-bottom: 1px #cc9 solid; + margin-bottom: 7px; + font-size: 14px +} + +h3 a { + font-size: 14px +} + +ul.list { + list-style: none; + width: 600px; + margin: 0; + padding: 0; +} + +ul.list li { + float: left; + width: 200px; +} + +img { + border: 0 +} + +/** left **/ +.dbs { + margin: 0; + padding: 0; + list-style: none; +} + +.dbs li { + padding-left: 20px; +} + +.dbs ul { + padding: 0; + margin: 0; + list-style: none; +} + +.dbs ul li { + padding-left: 20; + border-bottom: 0 +} + +/** collection **/ +.query { + background-color: #eeefff +} + +.field_orders p { + height: 14px; + margin-top: 0 +} + +/** top **/ +.top { + border-bottom: 1px #666 solid; + background-color: #ccc; +} + +.top select { + height: 18px; + background-color: #ccc; + border: 0 +} + +.top .left { + float: left +} + +.top .right { + float: right +} + +.menu, #field_menu, .doc_menu { + float: right; + margin-right: 100px; + margin-top: 0px; + background-color: #eee; + border-left: 1px #ccc solid; + border-top: 1px #ccc solid; + border-right: 2px #ccc solid; + border-bottom: 2px #ccc solid; + padding-left: 3px; + padding-right: 3px; + position: absolute; + display: none; + min-width: 100px; +} \ No newline at end of file diff --git a/themes/devel/css/jquery-ui-1.8.4.smoothness.css b/themes/devel/css/jquery-ui-1.8.4.smoothness.css new file mode 100644 index 0000000..5980f4a --- /dev/null +++ b/themes/devel/css/jquery-ui-1.8.4.smoothness.css @@ -0,0 +1,1864 @@ +/* + * jQuery UI CSS Framework @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { + display: none; +} + +.ui-helper-hidden-accessible { + position: absolute; + left: -99999999px; +} + +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} + +.ui-helper-clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} + +.ui-helper-clearfix { + display: inline-block; +} + +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { + height: 1%; +} + +.ui-helper-clearfix { + display: block; +} + +/* end clearfix */ +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter: Alpha(Opacity=0); +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +/* + * jQuery UI CSS Framework @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px + */ + +/* Component containers +----------------------------------*/ +.ui-widget { + font-family: Verdana, Arial, sans-serif; + font-size: 1.1em; +} + +.ui-widget .ui-widget { + font-size: 1em; +} + +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { + font-family: Verdana, Arial, sans-serif; + font-size: 1em; +} + +.ui-widget-content { + border: 1px solid #aaaaaa; + background: #ffffff url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; + color: #222222; +} + +.ui-widget-content a { + color: #222222; +} + +.ui-widget-header { + border: 1px solid #aaaaaa; + background: #cccccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; + color: #222222; + font-weight: bold; +} + +.ui-widget-header a { + color: #222222; +} + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { + border: 1px solid #d3d3d3; + background: #e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #555555; +} + +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { + color: #555555; + text-decoration: none; +} + +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { + border: 1px solid #999999; + background: #dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #212121; +} + +.ui-state-hover a, .ui-state-hover a:hover { + color: #212121; + text-decoration: none; +} + +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { + border: 1px solid #aaaaaa; + background: #ffffff url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #212121; +} + +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { + color: #212121; + text-decoration: none; +} + +.ui-widget :active { + outline: none; +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { + border: 1px solid #fcefa1; + background: #fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; + color: #363636; +} + +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a, .ui-widget-header .ui-state-highlight a { + color: #363636; +} + +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { + border: 1px solid #cd0a0a; + background: #fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; + color: #cd0a0a; +} + +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { + color: #cd0a0a; +} + +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { + color: #cd0a0a; +} + +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { + font-weight: bold; +} + +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { + opacity: .7; + filter: Alpha(Opacity=70); + font-weight: normal; +} + +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { + opacity: .35; + filter: Alpha(Opacity=35); + background-image: none; +} + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + width: 16px; + height: 16px; + background-image: url(../images/ui-icons_222222_256x240.png); +} + +.ui-widget-content .ui-icon { + background-image: url(../images/ui-icons_222222_256x240.png); +} + +.ui-widget-header .ui-icon { + background-image: url(../images/ui-icons_222222_256x240.png); +} + +.ui-state-default .ui-icon { + background-image: url(../images/ui-icons_888888_256x240.png); +} + +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon { + background-image: url(../images/ui-icons_454545_256x240.png); +} + +.ui-state-active .ui-icon { + background-image: url(../images/ui-icons_454545_256x240.png); +} + +.ui-state-highlight .ui-icon { + background-image: url(../images/ui-icons_2e83ff_256x240.png); +} + +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon { + background-image: url(../images/ui-icons_cd0a0a_256x240.png); +} + +/* positioning */ +.ui-icon-carat-1-n { + background-position: 0 0; +} + +.ui-icon-carat-1-ne { + background-position: -16px 0; +} + +.ui-icon-carat-1-e { + background-position: -32px 0; +} + +.ui-icon-carat-1-se { + background-position: -48px 0; +} + +.ui-icon-carat-1-s { + background-position: -64px 0; +} + +.ui-icon-carat-1-sw { + background-position: -80px 0; +} + +.ui-icon-carat-1-w { + background-position: -96px 0; +} + +.ui-icon-carat-1-nw { + background-position: -112px 0; +} + +.ui-icon-carat-2-n-s { + background-position: -128px 0; +} + +.ui-icon-carat-2-e-w { + background-position: -144px 0; +} + +.ui-icon-triangle-1-n { + background-position: 0 -16px; +} + +.ui-icon-triangle-1-ne { + background-position: -16px -16px; +} + +.ui-icon-triangle-1-e { + background-position: -32px -16px; +} + +.ui-icon-triangle-1-se { + background-position: -48px -16px; +} + +.ui-icon-triangle-1-s { + background-position: -64px -16px; +} + +.ui-icon-triangle-1-sw { + background-position: -80px -16px; +} + +.ui-icon-triangle-1-w { + background-position: -96px -16px; +} + +.ui-icon-triangle-1-nw { + background-position: -112px -16px; +} + +.ui-icon-triangle-2-n-s { + background-position: -128px -16px; +} + +.ui-icon-triangle-2-e-w { + background-position: -144px -16px; +} + +.ui-icon-arrow-1-n { + background-position: 0 -32px; +} + +.ui-icon-arrow-1-ne { + background-position: -16px -32px; +} + +.ui-icon-arrow-1-e { + background-position: -32px -32px; +} + +.ui-icon-arrow-1-se { + background-position: -48px -32px; +} + +.ui-icon-arrow-1-s { + background-position: -64px -32px; +} + +.ui-icon-arrow-1-sw { + background-position: -80px -32px; +} + +.ui-icon-arrow-1-w { + background-position: -96px -32px; +} + +.ui-icon-arrow-1-nw { + background-position: -112px -32px; +} + +.ui-icon-arrow-2-n-s { + background-position: -128px -32px; +} + +.ui-icon-arrow-2-ne-sw { + background-position: -144px -32px; +} + +.ui-icon-arrow-2-e-w { + background-position: -160px -32px; +} + +.ui-icon-arrow-2-se-nw { + background-position: -176px -32px; +} + +.ui-icon-arrowstop-1-n { + background-position: -192px -32px; +} + +.ui-icon-arrowstop-1-e { + background-position: -208px -32px; +} + +.ui-icon-arrowstop-1-s { + background-position: -224px -32px; +} + +.ui-icon-arrowstop-1-w { + background-position: -240px -32px; +} + +.ui-icon-arrowthick-1-n { + background-position: 0 -48px; +} + +.ui-icon-arrowthick-1-ne { + background-position: -16px -48px; +} + +.ui-icon-arrowthick-1-e { + background-position: -32px -48px; +} + +.ui-icon-arrowthick-1-se { + background-position: -48px -48px; +} + +.ui-icon-arrowthick-1-s { + background-position: -64px -48px; +} + +.ui-icon-arrowthick-1-sw { + background-position: -80px -48px; +} + +.ui-icon-arrowthick-1-w { + background-position: -96px -48px; +} + +.ui-icon-arrowthick-1-nw { + background-position: -112px -48px; +} + +.ui-icon-arrowthick-2-n-s { + background-position: -128px -48px; +} + +.ui-icon-arrowthick-2-ne-sw { + background-position: -144px -48px; +} + +.ui-icon-arrowthick-2-e-w { + background-position: -160px -48px; +} + +.ui-icon-arrowthick-2-se-nw { + background-position: -176px -48px; +} + +.ui-icon-arrowthickstop-1-n { + background-position: -192px -48px; +} + +.ui-icon-arrowthickstop-1-e { + background-position: -208px -48px; +} + +.ui-icon-arrowthickstop-1-s { + background-position: -224px -48px; +} + +.ui-icon-arrowthickstop-1-w { + background-position: -240px -48px; +} + +.ui-icon-arrowreturnthick-1-w { + background-position: 0 -64px; +} + +.ui-icon-arrowreturnthick-1-n { + background-position: -16px -64px; +} + +.ui-icon-arrowreturnthick-1-e { + background-position: -32px -64px; +} + +.ui-icon-arrowreturnthick-1-s { + background-position: -48px -64px; +} + +.ui-icon-arrowreturn-1-w { + background-position: -64px -64px; +} + +.ui-icon-arrowreturn-1-n { + background-position: -80px -64px; +} + +.ui-icon-arrowreturn-1-e { + background-position: -96px -64px; +} + +.ui-icon-arrowreturn-1-s { + background-position: -112px -64px; +} + +.ui-icon-arrowrefresh-1-w { + background-position: -128px -64px; +} + +.ui-icon-arrowrefresh-1-n { + background-position: -144px -64px; +} + +.ui-icon-arrowrefresh-1-e { + background-position: -160px -64px; +} + +.ui-icon-arrowrefresh-1-s { + background-position: -176px -64px; +} + +.ui-icon-arrow-4 { + background-position: 0 -80px; +} + +.ui-icon-arrow-4-diag { + background-position: -16px -80px; +} + +.ui-icon-extlink { + background-position: -32px -80px; +} + +.ui-icon-newwin { + background-position: -48px -80px; +} + +.ui-icon-refresh { + background-position: -64px -80px; +} + +.ui-icon-shuffle { + background-position: -80px -80px; +} + +.ui-icon-transfer-e-w { + background-position: -96px -80px; +} + +.ui-icon-transferthick-e-w { + background-position: -112px -80px; +} + +.ui-icon-folder-collapsed { + background-position: 0 -96px; +} + +.ui-icon-folder-open { + background-position: -16px -96px; +} + +.ui-icon-document { + background-position: -32px -96px; +} + +.ui-icon-document-b { + background-position: -48px -96px; +} + +.ui-icon-note { + background-position: -64px -96px; +} + +.ui-icon-mail-closed { + background-position: -80px -96px; +} + +.ui-icon-mail-open { + background-position: -96px -96px; +} + +.ui-icon-suitcase { + background-position: -112px -96px; +} + +.ui-icon-comment { + background-position: -128px -96px; +} + +.ui-icon-person { + background-position: -144px -96px; +} + +.ui-icon-print { + background-position: -160px -96px; +} + +.ui-icon-trash { + background-position: -176px -96px; +} + +.ui-icon-locked { + background-position: -192px -96px; +} + +.ui-icon-unlocked { + background-position: -208px -96px; +} + +.ui-icon-bookmark { + background-position: -224px -96px; +} + +.ui-icon-tag { + background-position: -240px -96px; +} + +.ui-icon-home { + background-position: 0 -112px; +} + +.ui-icon-flag { + background-position: -16px -112px; +} + +.ui-icon-calendar { + background-position: -32px -112px; +} + +.ui-icon-cart { + background-position: -48px -112px; +} + +.ui-icon-pencil { + background-position: -64px -112px; +} + +.ui-icon-clock { + background-position: -80px -112px; +} + +.ui-icon-disk { + background-position: -96px -112px; +} + +.ui-icon-calculator { + background-position: -112px -112px; +} + +.ui-icon-zoomin { + background-position: -128px -112px; +} + +.ui-icon-zoomout { + background-position: -144px -112px; +} + +.ui-icon-search { + background-position: -160px -112px; +} + +.ui-icon-wrench { + background-position: -176px -112px; +} + +.ui-icon-gear { + background-position: -192px -112px; +} + +.ui-icon-heart { + background-position: -208px -112px; +} + +.ui-icon-star { + background-position: -224px -112px; +} + +.ui-icon-link { + background-position: -240px -112px; +} + +.ui-icon-cancel { + background-position: 0 -128px; +} + +.ui-icon-plus { + background-position: -16px -128px; +} + +.ui-icon-plusthick { + background-position: -32px -128px; +} + +.ui-icon-minus { + background-position: -48px -128px; +} + +.ui-icon-minusthick { + background-position: -64px -128px; +} + +.ui-icon-close { + background-position: -80px -128px; +} + +.ui-icon-closethick { + background-position: -96px -128px; +} + +.ui-icon-key { + background-position: -112px -128px; +} + +.ui-icon-lightbulb { + background-position: -128px -128px; +} + +.ui-icon-scissors { + background-position: -144px -128px; +} + +.ui-icon-clipboard { + background-position: -160px -128px; +} + +.ui-icon-copy { + background-position: -176px -128px; +} + +.ui-icon-contact { + background-position: -192px -128px; +} + +.ui-icon-image { + background-position: -208px -128px; +} + +.ui-icon-video { + background-position: -224px -128px; +} + +.ui-icon-script { + background-position: -240px -128px; +} + +.ui-icon-alert { + background-position: 0 -144px; +} + +.ui-icon-info { + background-position: -16px -144px; +} + +.ui-icon-notice { + background-position: -32px -144px; +} + +.ui-icon-help { + background-position: -48px -144px; +} + +.ui-icon-check { + background-position: -64px -144px; +} + +.ui-icon-bullet { + background-position: -80px -144px; +} + +.ui-icon-radio-off { + background-position: -96px -144px; +} + +.ui-icon-radio-on { + background-position: -112px -144px; +} + +.ui-icon-pin-w { + background-position: -128px -144px; +} + +.ui-icon-pin-s { + background-position: -144px -144px; +} + +.ui-icon-play { + background-position: 0 -160px; +} + +.ui-icon-pause { + background-position: -16px -160px; +} + +.ui-icon-seek-next { + background-position: -32px -160px; +} + +.ui-icon-seek-prev { + background-position: -48px -160px; +} + +.ui-icon-seek-end { + background-position: -64px -160px; +} + +.ui-icon-seek-start { + background-position: -80px -160px; +} + +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { + background-position: -80px -160px; +} + +.ui-icon-stop { + background-position: -96px -160px; +} + +.ui-icon-eject { + background-position: -112px -160px; +} + +.ui-icon-volume-off { + background-position: -128px -160px; +} + +.ui-icon-volume-on { + background-position: -144px -160px; +} + +.ui-icon-power { + background-position: 0 -176px; +} + +.ui-icon-signal-diag { + background-position: -16px -176px; +} + +.ui-icon-signal { + background-position: -32px -176px; +} + +.ui-icon-battery-0 { + background-position: -48px -176px; +} + +.ui-icon-battery-1 { + background-position: -64px -176px; +} + +.ui-icon-battery-2 { + background-position: -80px -176px; +} + +.ui-icon-battery-3 { + background-position: -96px -176px; +} + +.ui-icon-circle-plus { + background-position: 0 -192px; +} + +.ui-icon-circle-minus { + background-position: -16px -192px; +} + +.ui-icon-circle-close { + background-position: -32px -192px; +} + +.ui-icon-circle-triangle-e { + background-position: -48px -192px; +} + +.ui-icon-circle-triangle-s { + background-position: -64px -192px; +} + +.ui-icon-circle-triangle-w { + background-position: -80px -192px; +} + +.ui-icon-circle-triangle-n { + background-position: -96px -192px; +} + +.ui-icon-circle-arrow-e { + background-position: -112px -192px; +} + +.ui-icon-circle-arrow-s { + background-position: -128px -192px; +} + +.ui-icon-circle-arrow-w { + background-position: -144px -192px; +} + +.ui-icon-circle-arrow-n { + background-position: -160px -192px; +} + +.ui-icon-circle-zoomin { + background-position: -176px -192px; +} + +.ui-icon-circle-zoomout { + background-position: -192px -192px; +} + +.ui-icon-circle-check { + background-position: -208px -192px; +} + +.ui-icon-circlesmall-plus { + background-position: 0 -208px; +} + +.ui-icon-circlesmall-minus { + background-position: -16px -208px; +} + +.ui-icon-circlesmall-close { + background-position: -32px -208px; +} + +.ui-icon-squaresmall-plus { + background-position: -48px -208px; +} + +.ui-icon-squaresmall-minus { + background-position: -64px -208px; +} + +.ui-icon-squaresmall-close { + background-position: -80px -208px; +} + +.ui-icon-grip-dotted-vertical { + background-position: 0 -224px; +} + +.ui-icon-grip-dotted-horizontal { + background-position: -16px -224px; +} + +.ui-icon-grip-solid-vertical { + background-position: -32px -224px; +} + +.ui-icon-grip-solid-horizontal { + background-position: -48px -224px; +} + +.ui-icon-gripsmall-diagonal-se { + background-position: -64px -224px; +} + +.ui-icon-grip-diagonal-se { + background-position: -80px -224px; +} + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-tl { + -moz-border-radius-topleft: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; +} + +.ui-corner-tr { + -moz-border-radius-topright: 4px; + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; +} + +.ui-corner-bl { + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.ui-corner-br { + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.ui-corner-top { + -moz-border-radius-topleft: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; +} + +.ui-corner-bottom { + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.ui-corner-right { + -moz-border-radius-topright: 4px; + -webkit-border-top-right-radius: 4px; + border-top-right-radius: 4px; + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.ui-corner-left { + -moz-border-radius-topleft: 4px; + -webkit-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.ui-corner-all { + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; +} + +/* Overlays */ +.ui-widget-overlay { + background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; + opacity: .30; + filter: Alpha(Opacity=30); +} + +.ui-widget-shadow { + margin: -8px 0 0 -8px; + padding: 8px; + background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; + opacity: .30; + filter: Alpha(Opacity=30); + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; +} + +/* + * jQuery UI Resizable @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizable#theming + */ +.ui-resizable { + position: relative; +} + +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + z-index: 99999; + display: block; +} + +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { + display: none; +} + +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0; +} + +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0; +} + +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0; + height: 100%; +} + +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0; + height: 100%; +} + +.ui-resizable-se { + cursor: se-resize; + width: 12px; + height: 12px; + right: 1px; + bottom: 1px; +} + +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: -5px; + bottom: -5px; +} + +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: -5px; + top: -5px; +} + +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: -5px; + top: -5px; +} + +/* + * jQuery UI Selectable @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectable#theming + */ +.ui-selectable-helper { + position: absolute; + z-index: 100; + border: 1px dotted black; +} + +/* + * jQuery UI Accordion @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion#theming + */ +/* IE/Win - Fix animation bug - #4615 */ +.ui-accordion { + width: 100%; +} + +.ui-accordion .ui-accordion-header { + cursor: pointer; + position: relative; + margin-top: 1px; + zoom: 1; +} + +.ui-accordion .ui-accordion-li-fix { + display: inline; +} + +.ui-accordion .ui-accordion-header-active { + border-bottom: 0 !important; +} + +.ui-accordion .ui-accordion-header a { + display: block; + font-size: 1em; + padding: .5em .5em .5em .7em; +} + +.ui-accordion-icons .ui-accordion-header a { + padding-left: 2.2em; +} + +.ui-accordion .ui-accordion-header .ui-icon { + position: absolute; + left: .5em; + top: 50%; + margin-top: -8px; +} + +.ui-accordion .ui-accordion-content { + padding: 1em 2.2em; + border-top: 0; + margin-top: -2px; + position: relative; + top: 1px; + margin-bottom: 2px; + overflow: auto; + display: none; + zoom: 1; +} + +.ui-accordion .ui-accordion-content-active { + display: block; +} + +/* + * jQuery UI Autocomplete @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete#theming + */ +.ui-autocomplete { + position: absolute; + cursor: default; +} + +/* workarounds */ +* html .ui-autocomplete { + width: 1px; +} + +/* without this, the menu expands to 100% in IE6 */ + +/* + * jQuery UI Menu @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Menu#theming + */ +.ui-menu { + list-style: none; + padding: 2px; + margin: 0; + display: block; + float: left; +} + +.ui-menu .ui-menu { + margin-top: -3px; +} + +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + zoom: 1; + float: left; + clear: left; + width: 100%; +} + +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: .2em .4em; + line-height: 1.5; + zoom: 1; +} + +.ui-menu .ui-menu-item a.ui-state-hover, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} + +/* + * jQuery UI Button @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Button#theming + */ +.ui-button { + display: inline-block; + position: relative; + padding: 0; + margin-right: .1em; + text-decoration: none !important; + cursor: pointer; + text-align: center; + zoom: 1; + overflow: visible; +} + +/* the overflow property removes extra width in IE */ +.ui-button-icon-only { + width: 2.2em; +} + +/* to make room for the icon, a width needs to be set here */ +button.ui-button-icon-only { + width: 2.4em; +} + +/* button elements seem to need a little more width */ +.ui-button-icons-only { + width: 3.4em; +} + +button.ui-button-icons-only { + width: 3.7em; +} + +/*button text element */ +.ui-button .ui-button-text { + display: block; + line-height: 1.4; +} + +.ui-button-text-only .ui-button-text { + padding: .4em 1em; +} + +.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { + padding: .4em; + text-indent: -9999999px; +} + +.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { + padding: .4em 1em .4em 2.1em; +} + +.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { + padding: .4em 2.1em .4em 1em; +} + +.ui-button-text-icons .ui-button-text { + padding-left: 2.1em; + padding-right: 2.1em; +} + +/* no icon support for input elements, provide padding by default */ +input.ui-button { + padding: .4em 1em; +} + +/*button icon element(s) */ +.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { + position: absolute; + top: 50%; + margin-top: -8px; +} + +.ui-button-icon-only .ui-icon { + left: 50%; + margin-left: -8px; +} + +.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { + left: .5em; +} + +.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { + right: .5em; +} + +.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { + right: .5em; +} + +/*button sets*/ +.ui-buttonset { + margin-right: 7px; +} + +.ui-buttonset .ui-button { + margin-left: 0; + margin-right: -.3em; +} + +/* workarounds */ +button.ui-button::-moz-focus-inner { + border: 0; + padding: 0; +} + +/* reset extra padding in Firefox */ +/* + * jQuery UI Dialog @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog#theming + */ +.ui-dialog { + position: absolute; + padding: .2em; + width: 300px; + overflow: hidden; +} + +.ui-dialog .ui-dialog-titlebar { + padding: .5em 1em .3em; + position: relative; +} + +.ui-dialog .ui-dialog-title { + float: left; + margin: .1em 16px .2em 0; +} + +.ui-dialog .ui-dialog-titlebar-close { + position: absolute; + right: .3em; + top: 50%; + width: 19px; + margin: -10px 0 0 0; + padding: 1px; + height: 18px; +} + +.ui-dialog .ui-dialog-titlebar-close span { + display: block; + margin: 1px; +} + +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { + padding: 0; +} + +.ui-dialog .ui-dialog-content { + position: relative; + border: 0; + padding: .5em 1em; + background: none; + overflow: auto; + zoom: 1; +} + +.ui-dialog .ui-dialog-buttonpane { + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + margin: .5em 0 0 0; + padding: .3em 1em .5em .4em; +} + +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: right; +} + +.ui-dialog .ui-dialog-buttonpane button { + margin: .5em .4em .5em 0; + cursor: pointer; +} + +.ui-dialog .ui-resizable-se { + width: 14px; + height: 14px; + right: 3px; + bottom: 3px; +} + +.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + +/* + * jQuery UI Slider @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider#theming + */ +.ui-slider { + position: relative; + text-align: left; +} + +.ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 1.2em; + height: 1.2em; + cursor: default; +} + +.ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + font-size: .7em; + display: block; + border: 0; + background-position: 0 0; +} + +.ui-slider-horizontal { + height: .8em; +} + +.ui-slider-horizontal .ui-slider-handle { + top: -.3em; + margin-left: -.6em; +} + +.ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; +} + +.ui-slider-horizontal .ui-slider-range-min { + left: 0; +} + +.ui-slider-horizontal .ui-slider-range-max { + right: 0; +} + +.ui-slider-vertical { + width: .8em; + height: 100px; +} + +.ui-slider-vertical .ui-slider-handle { + left: -.3em; + margin-left: 0; + margin-bottom: -.6em; +} + +.ui-slider-vertical .ui-slider-range { + left: 0; + width: 100%; +} + +.ui-slider-vertical .ui-slider-range-min { + bottom: 0; +} + +.ui-slider-vertical .ui-slider-range-max { + top: 0; +} + +/* + * jQuery UI Tabs @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs#theming + */ +.ui-tabs { + position: relative; + padding: .2em; + zoom: 1; +} + +/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +.ui-tabs .ui-tabs-nav { + margin: 0; + padding: .2em .2em 0; +} + +.ui-tabs .ui-tabs-nav li { + list-style: none; + float: left; + position: relative; + top: 1px; + margin: 0 .2em 1px 0; + border-bottom: 0 !important; + padding: 0; + white-space: nowrap; +} + +.ui-tabs .ui-tabs-nav li a { + float: left; + padding: .5em 1em; + text-decoration: none; +} + +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { + margin-bottom: 0; + padding-bottom: 1px; +} + +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { + cursor: text; +} + +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { + cursor: pointer; +} + +/* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { + display: block; + border-width: 0; + padding: 1em 1.4em; + background: none; +} + +.ui-tabs .ui-tabs-hide { + display: none !important; +} + +/* + * jQuery UI Datepicker @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker { + width: 17em; + padding: .2em .2em 0; +} + +.ui-datepicker .ui-datepicker-header { + position: relative; + padding: .2em 0; +} + +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { + position: absolute; + top: 2px; + width: 1.8em; + height: 1.8em; +} + +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { + top: 1px; +} + +.ui-datepicker .ui-datepicker-prev { + left: 2px; +} + +.ui-datepicker .ui-datepicker-next { + right: 2px; +} + +.ui-datepicker .ui-datepicker-prev-hover { + left: 1px; +} + +.ui-datepicker .ui-datepicker-next-hover { + right: 1px; +} + +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} + +.ui-datepicker .ui-datepicker-title { + margin: 0 2.3em; + line-height: 1.8em; + text-align: center; +} + +.ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin: 1px 0; +} + +.ui-datepicker select.ui-datepicker-month-year { + width: 100%; +} + +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { + width: 49%; +} + +.ui-datepicker table { + width: 100%; + font-size: .9em; + border-collapse: collapse; + margin: 0 0 .4em; +} + +.ui-datepicker th { + padding: .7em .3em; + text-align: center; + font-weight: bold; + border: 0; +} + +.ui-datepicker td { + border: 0; + padding: 1px; +} + +.ui-datepicker td span, .ui-datepicker td a { + display: block; + padding: .2em; + text-align: right; + text-decoration: none; +} + +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: .7em 0 0 0; + padding: 0 .2em; + border-left: 0; + border-right: 0; + border-bottom: 0; +} + +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + margin: .5em .2em .4em; + cursor: pointer; + padding: .2em .6em .3em .6em; + width: auto; + overflow: visible; +} + +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { + width: auto; +} + +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} + +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} + +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} + +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} + +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} + +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { + border-left-width: 0; +} + +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} + +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} + +.ui-datepicker-row-break { + clear: both; + width: 100%; +} + +/* RTL support */ +.ui-datepicker-rtl { + direction: rtl; +} + +.ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} + +.ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} + +.ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} + +.ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} + +.ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} + +.ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} + +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { + float: right; +} + +.ui-datepicker-rtl .ui-datepicker-group { + float: right; +} + +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} + +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display /**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +} + +/* + * jQuery UI Progressbar @VERSION + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar#theming + */ +.ui-progressbar { + height: 2em; + text-align: left; +} + +.ui-progressbar .ui-progressbar-value { + margin: -1px; + height: 100%; +} \ No newline at end of file diff --git a/themes/devel/css/layout-default-1.3.0.css b/themes/devel/css/layout-default-1.3.0.css new file mode 100644 index 0000000..0b9dcb8 --- /dev/null +++ b/themes/devel/css/layout-default-1.3.0.css @@ -0,0 +1,167 @@ +/* + * Default Layout Theme + * + * Created for jquery.layout + * + * Copyright (c) 2010 + * Fabrizio Balliano (http://www.fabrizioballiano.net) + * Kevin Dalman (http://allpro.net) + * + * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html) + * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses. + * + * Last Updated: 2010-02-10 + * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars + */ + +/* + * DEFAULT FONT + * Just to make demo-pages look better - not actually relevant to Layout! + */ +body { + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 100%; + *font-size: 80%; +} + +/* + * PANES & CONTENT-DIVs + */ +.ui-layout-pane { + /* all 'panes' */ + background: #FFF; + border: 1px solid #BBB; + /* DO NOT add scrolling (or padding) to 'panes' that have a content-div, + otherwise you may get double-scrollbars - on the pane AND on the content-div + */ + padding: 0px; + overflow: auto; +} + +/* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */ +.ui-layout-content { + padding: 10px; + position: relative; /* contain floated or positioned elements */ + overflow: auto; /* add scrolling to content-div */ +} + +/* + * RESIZER-BARS + */ +.ui-layout-resizer { + /* all 'resizer-bars' */ + background: #DDD; + border: 1px solid #BBB; + border-width: 0; +} + +.ui-layout-resizer-drag { + /* REAL resizer while resize in progress */ +} + +.ui-layout-resizer-hover { + /* affects both open and closed states */ +} + +/* NOTE: It looks best when 'hover' and 'dragging' are set to the same color, + otherwise color shifts while dragging when bar can't keep up with mouse */ +.ui-layout-resizer-open-hover, /* hover-color to 'resize' */ +.ui-layout-resizer-dragging { + /* resizer beging 'dragging' */ + background: #C4E1A4; +} + +.ui-layout-resizer-dragging { + /* CLONED resizer being dragged */ + border-left: 1px solid #BBB; + border-right: 1px solid #BBB; +} + +/* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */ +.ui-layout-resizer-dragging-limit { + /* CLONED resizer at min or max size-limit */ + background: #E1A4A4; /* red */ +} + +.ui-layout-resizer-closed-hover { + /* hover-color to 'slide open' */ + background: #EBD5AA; +} + +.ui-layout-resizer-sliding { + /* resizer when pane is 'slid open' */ + opacity: .10; /* show only a slight shadow */ + filter: alpha(opacity=10); +} + +.ui-layout-resizer-sliding-hover { + /* sliding resizer - hover */ + opacity: 1.00; /* on-hover, show the resizer-bar normally */ + filter: alpha(opacity=100); +} + +/* sliding resizer - add 'outside-border' to resizer on-hover + * this sample illustrates how to target specific panes and states */ +.ui-layout-resizer-north-sliding-hover { + border-bottom-width: 1px; +} + +.ui-layout-resizer-south-sliding-hover { + border-top-width: 1px; +} + +.ui-layout-resizer-west-sliding-hover { + border-right-width: 1px; +} + +.ui-layout-resizer-east-sliding-hover { + border-left-width: 1px; +} + +/* + * TOGGLER-BUTTONS + */ +.ui-layout-toggler { + border: 1px solid #BBB; /* match pane-border */ + background-color: #BBB; +} + +.ui-layout-resizer-hover .ui-layout-toggler { + opacity: .60; + filter: alpha(opacity=60); +} + +.ui-layout-toggler-hover, /* need when NOT resizable */ +.ui-layout-resizer-hover .ui-layout-toggler-hover { + /* need specificity when IS resizable */ + background-color: #FC6; + opacity: 1.00; + filter: alpha(opacity=100); +} + +.ui-layout-toggler-north, +.ui-layout-toggler-south { + border-width: 0 1px; /* left/right borders */ +} + +.ui-layout-toggler-west, +.ui-layout-toggler-east { + border-width: 1px 0; /* top/bottom borders */ +} + +/* hide the toggler-button when the pane is 'slid open' */ +.ui-layout-resizer-sliding ui-layout-toggler { + display: none; +} + +/* + * style the text we put INSIDE the togglers + */ +.ui-layout-toggler .content { + color: #666; + font-size: 12px; + font-weight: bold; + width: 100%; + padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */ +} + diff --git a/themes/devel/favicon.ico b/themes/devel/favicon.ico new file mode 100644 index 0000000..f4bb9b1 Binary files /dev/null and b/themes/devel/favicon.ico differ diff --git a/themes/devel/images/accept.png b/themes/devel/images/accept.png new file mode 100644 index 0000000..b9e2389 Binary files /dev/null and b/themes/devel/images/accept.png differ diff --git a/themes/devel/images/add.png b/themes/devel/images/add.png new file mode 100644 index 0000000..61d2595 Binary files /dev/null and b/themes/devel/images/add.png differ diff --git a/themes/devel/images/arrow_refresh.png b/themes/devel/images/arrow_refresh.png new file mode 100644 index 0000000..9af2755 Binary files /dev/null and b/themes/devel/images/arrow_refresh.png differ diff --git a/themes/devel/images/connect.png b/themes/devel/images/connect.png new file mode 100644 index 0000000..632f852 Binary files /dev/null and b/themes/devel/images/connect.png differ diff --git a/themes/devel/images/cross.png b/themes/devel/images/cross.png new file mode 100644 index 0000000..f9aaf5c Binary files /dev/null and b/themes/devel/images/cross.png differ diff --git a/themes/devel/images/database.png b/themes/devel/images/database.png new file mode 100644 index 0000000..a1d556d Binary files /dev/null and b/themes/devel/images/database.png differ diff --git a/themes/devel/images/databases.png b/themes/devel/images/databases.png new file mode 100644 index 0000000..bbee967 Binary files /dev/null and b/themes/devel/images/databases.png differ diff --git a/themes/devel/images/error.png b/themes/devel/images/error.png new file mode 100644 index 0000000..f5ba881 Binary files /dev/null and b/themes/devel/images/error.png differ diff --git a/themes/devel/images/exclamation.png b/themes/devel/images/exclamation.png new file mode 100644 index 0000000..466be2a Binary files /dev/null and b/themes/devel/images/exclamation.png differ diff --git a/themes/devel/images/grid.png b/themes/devel/images/grid.png new file mode 100644 index 0000000..57d8224 Binary files /dev/null and b/themes/devel/images/grid.png differ diff --git a/themes/devel/images/key.png b/themes/devel/images/key.png new file mode 100644 index 0000000..529fce2 Binary files /dev/null and b/themes/devel/images/key.png differ diff --git a/themes/devel/images/menuitem_hover.png b/themes/devel/images/menuitem_hover.png new file mode 100644 index 0000000..0bb6bd5 Binary files /dev/null and b/themes/devel/images/menuitem_hover.png differ diff --git a/themes/devel/images/page_copy.png b/themes/devel/images/page_copy.png new file mode 100644 index 0000000..2915370 Binary files /dev/null and b/themes/devel/images/page_copy.png differ diff --git a/themes/devel/images/page_white_delete.png b/themes/devel/images/page_white_delete.png new file mode 100644 index 0000000..5d6fbe9 Binary files /dev/null and b/themes/devel/images/page_white_delete.png differ diff --git a/themes/devel/images/page_white_edit.png b/themes/devel/images/page_white_edit.png new file mode 100644 index 0000000..c86f032 Binary files /dev/null and b/themes/devel/images/page_white_edit.png differ diff --git a/themes/devel/images/page_white_paintbrush.png b/themes/devel/images/page_white_paintbrush.png new file mode 100644 index 0000000..ff10d65 Binary files /dev/null and b/themes/devel/images/page_white_paintbrush.png differ diff --git a/themes/devel/images/page_white_swoosh.png b/themes/devel/images/page_white_swoosh.png new file mode 100644 index 0000000..78dbd4b Binary files /dev/null and b/themes/devel/images/page_white_swoosh.png differ diff --git a/themes/devel/images/report.png b/themes/devel/images/report.png new file mode 100644 index 0000000..3f8afb5 Binary files /dev/null and b/themes/devel/images/report.png differ diff --git a/themes/devel/images/server.png b/themes/devel/images/server.png new file mode 100644 index 0000000..e0e5d15 Binary files /dev/null and b/themes/devel/images/server.png differ diff --git a/themes/devel/images/submenu_bullet.png b/themes/devel/images/submenu_bullet.png new file mode 100644 index 0000000..1951469 Binary files /dev/null and b/themes/devel/images/submenu_bullet.png differ diff --git a/themes/devel/images/table.png b/themes/devel/images/table.png new file mode 100644 index 0000000..50b4b0a Binary files /dev/null and b/themes/devel/images/table.png differ diff --git a/themes/devel/images/ui-bg_flat_0_aaaaaa_40x100.png b/themes/devel/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 0000000..5b5dab2 Binary files /dev/null and b/themes/devel/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/themes/devel/images/ui-bg_flat_75_ffffff_40x100.png b/themes/devel/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 0000000..ac8b229 Binary files /dev/null and b/themes/devel/images/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/themes/devel/images/ui-bg_glass_55_fbf9ee_1x400.png b/themes/devel/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 0000000..ad3d634 Binary files /dev/null and b/themes/devel/images/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/themes/devel/images/ui-bg_glass_65_ffffff_1x400.png b/themes/devel/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 0000000..42ccba2 Binary files /dev/null and b/themes/devel/images/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/themes/devel/images/ui-bg_glass_75_dadada_1x400.png b/themes/devel/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 0000000..5a46b47 Binary files /dev/null and b/themes/devel/images/ui-bg_glass_75_dadada_1x400.png differ diff --git a/themes/devel/images/ui-bg_glass_75_e6e6e6_1x400.png b/themes/devel/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000..86c2baa Binary files /dev/null and b/themes/devel/images/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/themes/devel/images/ui-bg_glass_95_fef1ec_1x400.png b/themes/devel/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000..4443fdc Binary files /dev/null and b/themes/devel/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/themes/devel/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/themes/devel/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 0000000..7c9fa6c Binary files /dev/null and b/themes/devel/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/themes/devel/images/ui-icons_222222_256x240.png b/themes/devel/images/ui-icons_222222_256x240.png new file mode 100644 index 0000000..b273ff1 Binary files /dev/null and b/themes/devel/images/ui-icons_222222_256x240.png differ diff --git a/themes/devel/images/ui-icons_2e83ff_256x240.png b/themes/devel/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..09d1cdc Binary files /dev/null and b/themes/devel/images/ui-icons_2e83ff_256x240.png differ diff --git a/themes/devel/images/ui-icons_454545_256x240.png b/themes/devel/images/ui-icons_454545_256x240.png new file mode 100644 index 0000000..59bd45b Binary files /dev/null and b/themes/devel/images/ui-icons_454545_256x240.png differ diff --git a/themes/devel/images/ui-icons_888888_256x240.png b/themes/devel/images/ui-icons_888888_256x240.png new file mode 100644 index 0000000..6d02426 Binary files /dev/null and b/themes/devel/images/ui-icons_888888_256x240.png differ diff --git a/themes/devel/images/ui-icons_cd0a0a_256x240.png b/themes/devel/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000..2ab019b Binary files /dev/null and b/themes/devel/images/ui-icons_cd0a0a_256x240.png differ diff --git a/themes/devel/images/ui-icons_ffffff_256x240.png b/themes/devel/images/ui-icons_ffffff_256x240.png new file mode 100644 index 0000000..42f8f99 Binary files /dev/null and b/themes/devel/images/ui-icons_ffffff_256x240.png differ diff --git a/themes/devel/images/world.png b/themes/devel/images/world.png new file mode 100644 index 0000000..160e86b Binary files /dev/null and b/themes/devel/images/world.png differ diff --git a/themes/devel/views/admin/about.php b/themes/devel/views/admin/about.php new file mode 100644 index 0000000..612d92b --- /dev/null +++ b/themes/devel/views/admin/about.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/devel/views/admin/dbs.php b/themes/devel/views/admin/dbs.php new file mode 100644 index 0000000..7d122e9 --- /dev/null +++ b/themes/devel/views/admin/dbs.php @@ -0,0 +1,114 @@ + + +
+
+ " target="right">
+
" target="right">
+
+ +
+
diff --git a/themes/devel/views/admin/index.php b/themes/devel/views/admin/index.php new file mode 100644 index 0000000..1a51ccf --- /dev/null +++ b/themes/devel/views/admin/index.php @@ -0,0 +1,135 @@ + + + RockMongo + + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+ + +
+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/themes/devel/views/admin/top.php b/themes/devel/views/admin/top.php new file mode 100644 index 0000000..67b7159 --- /dev/null +++ b/themes/devel/views/admin/top.php @@ -0,0 +1,43 @@ + + +
+
+ + | | " target="right" title="">" target="right" + title=""> +
+
| + | | "width:100px", + "onchange" => "window.top.location='index.php?action=admin.changeLang&lang='+this.value" + ) + ); ?> | " target="right">RockMongo v +
+
+
\ No newline at end of file diff --git a/themes/devel/views/collection/collectionDuplicate.php b/themes/devel/views/collection/collectionDuplicate.php new file mode 100644 index 0000000..e64f304 --- /dev/null +++ b/themes/devel/views/collection/collectionDuplicate.php @@ -0,0 +1,29 @@ +

»

+ + +

+ +

+ + +

+ +

+ + + +
+ :
+
+ :
+ "/>
+
+ checked="checked"/>
+
+ checked="checked"/>
+ "/> +
\ No newline at end of file diff --git a/themes/devel/views/collection/collectionIndexes.php b/themes/devel/views/collection/collectionIndexes.php new file mode 100644 index 0000000..26bce2d --- /dev/null +++ b/themes/devel/views/collection/collectionIndexes.php @@ -0,0 +1,43 @@ +

» [">]

+ + + + + + + + + + + + + + + + + + +
Y $db, + "collection" => $collection, + "index" => $index["name"] + ) + ) + ); + ?>"onclick="return window.confirm(' \'\'?');">
\ No newline at end of file diff --git a/themes/devel/views/collection/collectionProps.php b/themes/devel/views/collection/collectionProps.php new file mode 100644 index 0000000..1f4d503 --- /dev/null +++ b/themes/devel/views/collection/collectionProps.php @@ -0,0 +1,27 @@ +

»

+ + +

+ +

+ + +

+ +

+ + +
+ :
+
+ :
+ checked="checked"/>
+ :
+
+ :
+
+ "/>
+ +
+ +
\ No newline at end of file diff --git a/themes/devel/views/collection/collectionRename.php b/themes/devel/views/collection/collectionRename.php new file mode 100644 index 0000000..68825e4 --- /dev/null +++ b/themes/devel/views/collection/collectionRename.php @@ -0,0 +1,37 @@ +

»

+ + +

+ + +

+ + +
+ + :
+
+ :
+ "/>
+
+ checked="checked" />
+ "/> +
+ + + +
+ +
+ +
+
+ + + + + + \ No newline at end of file diff --git a/themes/devel/views/collection/collectionStats.php b/themes/devel/views/collection/collectionStats.php new file mode 100644 index 0000000..a8895d2 --- /dev/null +++ b/themes/devel/views/collection/collectionStats.php @@ -0,0 +1,36 @@ +

» [">]

+ + + + + + $stat): ?> + + + + + + + + + + $stat): ?> + + + + + + +
db..stats()
" . var_export($stat, true) . ""); + } else { + if (in_array($name, array("size", "storageSize", "lastExtentSize", "totalIndexSize"))) { + $stat = round($stat / 1024 / 1024, 2) . "m"; + } + h($stat); + } + ?>
{top:1}
diff --git a/themes/devel/views/collection/collectionValidate.php b/themes/devel/views/collection/collectionValidate.php new file mode 100644 index 0000000..186199f --- /dev/null +++ b/themes/devel/views/collection/collectionValidate.php @@ -0,0 +1,8 @@ +

»

+ +
+ +
+ +
+
diff --git a/themes/devel/views/collection/createIndex.php b/themes/devel/views/collection/createIndex.php new file mode 100644 index 0000000..205aafb --- /dev/null +++ b/themes/devel/views/collection/createIndex.php @@ -0,0 +1,76 @@ + + + + + + +

» $db, + "collection" => $collection + ) + ) + ); + ?>"> »

+ + +

+ + +
+ + + + + + + + + + + + + + + + + + + + +
+
+
"/>
+
\ No newline at end of file diff --git a/themes/devel/views/collection/createRow.php b/themes/devel/views/collection/createRow.php new file mode 100644 index 0000000..6140889 --- /dev/null +++ b/themes/devel/views/collection/createRow.php @@ -0,0 +1,38 @@ + + +

»

+ + +

+ + +

+ + +
+ :
+ +
+ +
+
+ "/> +
\ No newline at end of file diff --git a/themes/devel/views/collection/explainQuery.php b/themes/devel/views/collection/explainQuery.php new file mode 100644 index 0000000..4d8843e --- /dev/null +++ b/themes/devel/views/collection/explainQuery.php @@ -0,0 +1,12 @@ + +

+ + + +
+ +
+ +
+
+ \ No newline at end of file diff --git a/themes/devel/views/collection/index.php b/themes/devel/views/collection/index.php new file mode 100644 index 0000000..8eba583 --- /dev/null +++ b/themes/devel/views/collection/index.php @@ -0,0 +1,537 @@ + + + + + + + + + + +

+ + +
+
+ + + "/> + "/> + + + + + + + + + + + +
+
+ +
style="display:none"> + New Object(see Updating + operators):
+ +
+
+ +

"/>

+

"/>

+

"/>

+

"/>

+
+ + style="display:none"> + + Fields() | + Hints() | + + + + + + style="display:none"> + | + : + +
"/> " + onclick="explainQuery(this.form)"/> + " onclick="window.location=' $db, "collection" => $collection, "format" => xn("format"))) + ); ?>'"/> + Cost s +

+ + +
+
+
    + +
  • + +
+
+
+
+
    + $field): ?> +
  • ">
  • + +
+
+ + +
+
+ + + + + +
+ Update + Query + SortASC + SortDESC + ------ + Rename + Remove + Clear + + ------ + New + + ------ + Indexes + ------ + Hide + Show +
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/themes/devel/views/collection/modifyRow.php b/themes/devel/views/collection/modifyRow.php new file mode 100644 index 0000000..9cb6a4e --- /dev/null +++ b/themes/devel/views/collection/modifyRow.php @@ -0,0 +1,46 @@ + + +

» '' []

+ + +

+ +

+ + +

+ +

+ + +
+ :
+
+ _id:
+ " size="72"/> +
+ :
+
+ "/> " + onclick="window.location=''"/> +
\ No newline at end of file diff --git a/themes/devel/views/collection/queryHistory.php b/themes/devel/views/collection/queryHistory.php new file mode 100644 index 0000000..1dda2da --- /dev/null +++ b/themes/devel/views/collection/queryHistory.php @@ -0,0 +1,18 @@ + + + + + + + + + +
+
+
[">] +
+
+
+
+ \ No newline at end of file diff --git a/themes/devel/views/collection/removeCollection.php b/themes/devel/views/collection/removeCollection.php new file mode 100644 index 0000000..f3f6e73 --- /dev/null +++ b/themes/devel/views/collection/removeCollection.php @@ -0,0 +1,4 @@ +

» .

+ \ No newline at end of file diff --git a/themes/devel/views/db/addUser.php b/themes/devel/views/db/addUser.php new file mode 100644 index 0000000..3134371 --- /dev/null +++ b/themes/devel/views/db/addUser.php @@ -0,0 +1,21 @@ +

»

+ + + +
+

+
+ :
+ "/>
+ :
+
+ :
+
+
+
+ "/> +
+
\ No newline at end of file diff --git a/themes/devel/views/db/auth.php b/themes/devel/views/db/auth.php new file mode 100644 index 0000000..b39820f --- /dev/null +++ b/themes/devel/views/db/auth.php @@ -0,0 +1,30 @@ +

»

+ + + + + + + + + + + + + + + + + + +
IDUserRead OnlyOperation
$db, "user" => $user["user"]))); ?>" + onclick="return window.confirm('Are you sure to remove user \'\'?')">Remove +
+ +

+ Official + Document: Control Access to MongoDB Instances with Authentication +

\ No newline at end of file diff --git a/themes/devel/views/db/dbExport.php b/themes/devel/views/db/dbExport.php new file mode 100644 index 0000000..2bd08ca --- /dev/null +++ b/themes/devel/views/db/dbExport.php @@ -0,0 +1,42 @@ + + +

»

+ + +
+ + + [] +
    + + + + +
  • + + +
+
+
+
+ checked="checked" />
+ :
+ + +

+ "/> +
+ + + :
+ + \ No newline at end of file diff --git a/themes/devel/views/db/dbImport.php b/themes/devel/views/db/dbImport.php new file mode 100644 index 0000000..71b6352 --- /dev/null +++ b/themes/devel/views/db/dbImport.php @@ -0,0 +1,35 @@ +

»

+ +

+ +

+ + + +

.js file exported with RockMongo:

+ +
+ + JS File:
+ "/> +
+ +
+

+ +

+ + +

.json file exported with mongoexport:

+ +
+ + Import to collection name:
+ JSON File:
+ "/> +
\ No newline at end of file diff --git a/themes/devel/views/db/dbTransfer.php b/themes/devel/views/db/dbTransfer.php new file mode 100644 index 0000000..474c418 --- /dev/null +++ b/themes/devel/views/db/dbTransfer.php @@ -0,0 +1,79 @@ + + +

»

+ + +

+ +

+ + +

+ +

+ + + +
+
+

[]

+
    + + + + +
  • + + +
+
+
+
+
+

+ + + + + + + + + + + + + + + + + + + + + +
:
:
?checked="checked" + value="1"/>
:
:
+
+
+
+

+ checked="checked"/> +

+
+
+

+ "/> +
+
\ No newline at end of file diff --git a/themes/devel/views/db/dropDatabase.php b/themes/devel/views/db/dropDatabase.php new file mode 100644 index 0000000..ac0773f --- /dev/null +++ b/themes/devel/views/db/dropDatabase.php @@ -0,0 +1,12 @@ +

»

+ +

+ ? +

+

+ +

+" + onclick="window.location=' $db, "confirm" => 1))); ?>'"/> " + onclick="window.location=' $db))); ?>'"/> \ No newline at end of file diff --git a/themes/devel/views/db/dropDatabaseResult.php b/themes/devel/views/db/dropDatabaseResult.php new file mode 100644 index 0000000..86a6b92 --- /dev/null +++ b/themes/devel/views/db/dropDatabaseResult.php @@ -0,0 +1,17 @@ +

»

+ +
+ +
+ +
+
+ +

+ " + onclick="window.location=''"/> +

+ + \ No newline at end of file diff --git a/themes/devel/views/db/index.php b/themes/devel/views/db/index.php new file mode 100644 index 0000000..83f9083 --- /dev/null +++ b/themes/devel/views/db/index.php @@ -0,0 +1,50 @@ + + +

+ +
+ +
+ + + $value): ?> + + + + + +
\ No newline at end of file diff --git a/themes/devel/views/db/newCollection.php b/themes/devel/views/db/newCollection.php new file mode 100644 index 0000000..3acbaae --- /dev/null +++ b/themes/devel/views/db/newCollection.php @@ -0,0 +1,22 @@ +

»

+ + +

+ +

+ + + +
+ :
+
+ :
+ checked="checked" />
+ :
+
+ :
+
+ "/> +
\ No newline at end of file diff --git a/themes/devel/views/db/profile.php b/themes/devel/views/db/profile.php new file mode 100644 index 0000000..d33a030 --- /dev/null +++ b/themes/devel/views/db/profile.php @@ -0,0 +1,19 @@ +

»

+ + + +

+ + +
+ : sec)); ?>
+ +
+ + +

\ No newline at end of file diff --git a/themes/devel/views/db/profileLevel.php b/themes/devel/views/db/profileLevel.php new file mode 100644 index 0000000..a4d40b8 --- /dev/null +++ b/themes/devel/views/db/profileLevel.php @@ -0,0 +1,45 @@ +

»

+ + + +
+
+ + : +
+
+ + + "/> +
+
+ + \ No newline at end of file diff --git a/themes/devel/views/db/repairDatabase.php b/themes/devel/views/db/repairDatabase.php new file mode 100644 index 0000000..58dc2c5 --- /dev/null +++ b/themes/devel/views/db/repairDatabase.php @@ -0,0 +1,8 @@ +

»

+ +
+ : +
+ +
+
\ No newline at end of file diff --git a/themes/devel/views/exception.php b/themes/devel/views/exception.php new file mode 100644 index 0000000..ac73a78 --- /dev/null +++ b/themes/devel/views/exception.php @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/themes/devel/views/footer.php b/themes/devel/views/footer.php new file mode 100644 index 0000000..121ae87 --- /dev/null +++ b/themes/devel/views/footer.php @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/themes/devel/views/header.php b/themes/devel/views/header.php new file mode 100644 index 0000000..4cd88ae --- /dev/null +++ b/themes/devel/views/header.php @@ -0,0 +1,23 @@ + + + + + !!! RockMongo !!! + + + + + + + + + \ No newline at end of file diff --git a/themes/devel/views/login/index.php b/themes/devel/views/login/index.php new file mode 100644 index 0000000..e9d2e38 --- /dev/null +++ b/themes/devel/views/login/index.php @@ -0,0 +1,93 @@ + + +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Log-in:
Host
:
:
Non-Admin users:
DB Name(s):
More » +
"/>
+
+ + +
\ No newline at end of file diff --git a/themes/devel/views/server/command.php b/themes/devel/views/server/command.php new file mode 100644 index 0000000..f567193 --- /dev/null +++ b/themes/devel/views/server/command.php @@ -0,0 +1,41 @@ +
+ +
+ +» + + +

+ + +
+ +
+ : + + : +
+ "/> +
+ + + +
+ +
+ +
+
+ \ No newline at end of file diff --git a/themes/devel/views/server/createDatabase.php b/themes/devel/views/server/createDatabase.php new file mode 100644 index 0000000..3cad0aa --- /dev/null +++ b/themes/devel/views/server/createDatabase.php @@ -0,0 +1,22 @@ +

"> » +

+ + + +

+ + +

+ + + + + + +
+ :
+ "/>
+ "/> +
\ No newline at end of file diff --git a/themes/devel/views/server/databases.php b/themes/devel/views/server/databases.php new file mode 100644 index 0000000..46f0983 --- /dev/null +++ b/themes/devel/views/server/databases.php @@ -0,0 +1,30 @@ +
+ +
+ +"> + + + + + + + + + + + + + + + + + + + + + + +
$db["name"]))); ?>">
\ No newline at end of file diff --git a/themes/devel/views/server/execute.php b/themes/devel/views/server/execute.php new file mode 100644 index 0000000..d144210 --- /dev/null +++ b/themes/devel/views/server/execute.php @@ -0,0 +1,67 @@ + +
+ +
+ +» Javascript API + + + +

+ + +
+ +
+ +
style="display:none"> + + $argument): ?> +
+ #[JSON]

+
+ + +
+ : + :"/> +
+ +
+ + + +
+ +
+ +
+
+ \ No newline at end of file diff --git a/themes/devel/views/server/index.php b/themes/devel/views/server/index.php new file mode 100644 index 0000000..5550bb8 --- /dev/null +++ b/themes/devel/views/server/index.php @@ -0,0 +1,80 @@ +
+ +
+ + + + + + + + +
(db.serverCmdLineOpts()) +
+
+ + + + + + $value): ?> + + + + + +
+
+ + + + + + $value): ?> + + + + + +
+
+ + + + + + + + + + + $value): ?> + + + + + + +
+ +
+ + + + + + $value): ?> + + + + + +
+ ({buildinfo:1}) +
+ +
diff --git a/themes/devel/views/server/killOp.php b/themes/devel/views/server/killOp.php new file mode 100644 index 0000000..98e588c --- /dev/null +++ b/themes/devel/views/server/killOp.php @@ -0,0 +1,13 @@ +

"> » ''

+ + + +
+ +
+ +
+
+ \ No newline at end of file diff --git a/themes/devel/views/server/processlist.php b/themes/devel/views/server/processlist.php new file mode 100644 index 0000000..eda5352 --- /dev/null +++ b/themes/devel/views/server/processlist.php @@ -0,0 +1,62 @@ +
+ +
+ + + + + + + "ID", + "desc" => "Description", + "client" => "Client", + "active" => "Active", + "lockType" => "LockType", + "waitingForLock" => "Waiting", + "secs_running" => "SecsRunning", + "op" => "Operation", + "ns" => "NameSpace" + ) as $param => $desc):?> + + + + + + "ID", + "desc" => "Description", + "client" => "Client", + "active" => "Active", + "lockType" => "LockType", + "waitingForLock" => "Waiting", + "secs_running" => "SecsRunning", + "op" => "Operation", + "ns" => "NameSpace", + ) as $param => $desc):?> + + + + + + + + + +
(db.$cmd.sys.inprog.find({$all:1}))
rowspan="2"> + + + 1): ?> [ $prog["opid"]))); ?>" + onclick="return window.confirm(' \'\'?')">] + + +

-----
\ No newline at end of file diff --git a/themes/devel/views/server/replication.php b/themes/devel/views/server/replication.php new file mode 100644 index 0000000..e4ccff8 --- /dev/null +++ b/themes/devel/views/server/replication.php @@ -0,0 +1,80 @@ +
+ +
+ + + + + + $value): ?> + + + + + +
(db.getReplicationInfo())
+ + +
+ + + + + + $value): ?> + + + + + +
( "local", "collection" => "me"))); ?>">local.me) +
+ + + +
+ + + + + + + + + + $value): ?> + + + + + + +
( "local", "collection" => "slaves"))); ?>">local.slaves) +
+ + + +
+ + + + + + + + + + $value): ?> + + + + + + +
( "local", "collection" => "sources")) + ); ?>">local.sources) +
+ \ No newline at end of file diff --git a/themes/devel/views/server/status.php b/themes/devel/views/server/status.php new file mode 100644 index 0000000..db7e780 --- /dev/null +++ b/themes/devel/views/server/status.php @@ -0,0 +1,15 @@ +
+ +
+ + + + + + $value): ?> + + + + + +
({serverStatus:1})