From ef68436ac04da078ffdcacd7e1f785473a303d45 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Mon, 3 Oct 2011 00:56:18 +0100 Subject: [PATCH] First version of the newly restructured repository --- .gitignore | 2 + LICENCE.txt | 661 ++ README.md | 57 + backend/php/properties/php.properties.json | 4 + backend/php/src/configuration.php | 36 + backend/php/src/dump.php | 103 + backend/php/src/index.php | 744 ++ backend/php/src/json/JSON.php | 806 ++ backend/php/src/objects/class.database.php | 79 + .../php/src/objects/class.onetimepassword.php | 400 + .../objects/class.onetimepasswordstatus.php | 368 + backend/php/src/objects/class.pog_base.php | 143 + backend/php/src/objects/class.record.php | 436 ++ .../php/src/objects/class.recordversion.php | 381 + backend/php/src/objects/class.user.php | 502 ++ .../php/src/objects/ignore_objects.txt | 0 backend/php/src/plugins/IPlugin.php | 48 + backend/php/src/plugins/base64_install.sql | 172 + backend/php/src/plugins/base64_uninstall.sql | 20 + backend/php/src/plugins/plugin.base64.php | 128 + .../additional_table_structures.sql | 0 .../data_initialization.sql | 0 .../src/setup/data_initialization/howto.txt | 13 + .../data_initialization/read_dump_lib.php | 205 + backend/php/src/setup/index.php | 717 ++ backend/php/src/setup/rpc.php | 227 + backend/php/src/setup/setup.css | 77 + .../src/setup/setup_images/background_id.gif | Bin 0 -> 359 bytes .../php/src/setup/setup_images/button_add.gif | Bin 0 -> 167 bytes .../src/setup/setup_images/button_delete.gif | Bin 0 -> 281 bytes .../setup_images/button_toolbar_author.gif | Bin 0 -> 2037 bytes .../setup_images/button_toolbar_help.gif | Bin 0 -> 1910 bytes .../setup_images/button_toolbar_homepage.gif | Bin 0 -> 1939 bytes .../setup_images/button_toolbar_left.gif | Bin 0 -> 636 bytes .../src/setup/setup_images/button_update.gif | Bin 0 -> 273 bytes .../src/setup/setup_images/folderclose.gif | Bin 0 -> 62 bytes .../php/src/setup/setup_images/folderopen.gif | Bin 0 -> 61 bytes .../php/src/setup/setup_images/generate.jpg | Bin 0 -> 1678 bytes .../setup/setup_images/gradient_container.gif | Bin 0 -> 179 bytes .../php/src/setup/setup_images/loading.gif | Bin 0 -> 1141 bytes .../php/src/setup/setup_images/mini_pog.jpg | Bin 0 -> 16299 bytes .../setup/setup_images/pog_setup_closed.jpg | Bin 0 -> 2029 bytes .../src/setup/setup_images/pog_setup_open.jpg | Bin 0 -> 2398 bytes .../setup/setup_images/setup_attachtables.jpg | Bin 0 -> 2106 bytes .../src/setup/setup_images/setup_bottom3.jpg | Bin 0 -> 499 bytes .../setup/setup_images/setup_bottom3tile.jpg | Bin 0 -> 311 bytes .../setup/setup_images/setup_collapseall.jpg | Bin 0 -> 2074 bytes .../setup/setup_images/setup_deleteall.jpg | Bin 0 -> 1778 bytes .../setup/setup_images/setup_expandall.jpg | Bin 0 -> 1974 bytes .../src/setup/setup_images/setup_footer.jpg | Bin 0 -> 1145 bytes .../setup/setup_images/setup_generateform.jpg | Bin 0 -> 2535 bytes .../src/setup/setup_images/setup_logo1.jpg | Bin 0 -> 7992 bytes .../src/setup/setup_images/setup_logo2.jpg | Bin 0 -> 7931 bytes .../src/setup/setup_images/setup_logo3.jpg | Bin 0 -> 6683 bytes .../src/setup/setup_images/setup_pogmeup.gif | Bin 0 -> 1420 bytes .../src/setup/setup_images/setup_proceed.gif | Bin 0 -> 839 bytes .../src/setup/setup_images/setup_recheck.jpg | Bin 0 -> 4074 bytes .../setup/setup_images/setup_regenerate.jpg | Bin 0 -> 2167 bytes .../setup_images/setup_toolbargradient.jpg | Bin 0 -> 667 bytes .../setup/setup_images/setup_updateall.jpg | Bin 0 -> 2340 bytes .../src/setup/setup_images/setup_welcome.jpg | Bin 0 -> 3849 bytes .../setup_images/tab_activeobjectleft.gif | Bin 0 -> 145 bytes .../setup_images/tab_activeobjectright.gif | Bin 0 -> 477 bytes .../setup_images/tab_diagnosticresults.gif | Bin 0 -> 368 bytes .../setup_images/tab_diagnosticresults_on.gif | Bin 0 -> 371 bytes .../setup/setup_images/tab_manageobjects.gif | Bin 0 -> 364 bytes .../setup_images/tab_manageobjects_on.gif | Bin 0 -> 371 bytes .../setup_images/tab_manageplugins_off.gif | Bin 0 -> 460 bytes .../setup_images/tab_manageplugins_on.gif | Bin 0 -> 1220 bytes .../src/setup/setup_images/tab_separator.gif | Bin 0 -> 154 bytes .../php/src/setup/setup_images/tab_setup.gif | Bin 0 -> 258 bytes .../src/setup/setup_images/tab_setup_on.gif | Bin 0 -> 472 bytes .../setup/setup_images/toolbar_separator.gif | Bin 0 -> 324 bytes .../setup/setup_library/authentication.php | 30 + .../src/setup/setup_library/class.zipfile.php | 212 + .../src/setup/setup_library/inc.footer.php | 6 + .../src/setup/setup_library/inc.header.php | 36 + .../src/setup/setup_library/setup_misc.php | 2357 ++++++ .../php/src/setup/setup_library/upgrade.php | 140 + .../php/src/setup/setup_library/xPandMenu.css | 55 + .../php/src/setup/setup_library/xPandMenu.js | 273 + .../php/src/setup/setup_library/xPandMenu.php | 233 + backend/php/src/test.php | 15 + .../python/properties/python.properties.json | 0 backend/python/src/app.yaml | 20 + backend/python/src/clipperz.py | 708 ++ doc/install.php.txt | 31 + frontend/beta/css/clipperz/clipperz.css | 3238 ++++++++ frontend/beta/css/clipperz/compact.css | 162 + frontend/beta/css/clipperz/ie.css | 351 + .../beta/css/clipperz/ytheme-clipperz.css | 141 + .../beta/css/yui-extensions/basic-dialog.css | 250 + frontend/beta/css/yui-extensions/button.css | 86 + frontend/beta/css/yui-extensions/core.css | 53 + frontend/beta/css/yui-extensions/dd.css | 81 + frontend/beta/css/yui-extensions/grid.css | 584 ++ .../beta/css/yui-extensions/inline-editor.css | 60 + frontend/beta/css/yui-extensions/layout.css | 228 + frontend/beta/css/yui-extensions/qtips.css | 70 + .../beta/css/yui-extensions/reset-min.css | 29 + .../beta/css/yui-extensions/resizable.css | 160 + frontend/beta/css/yui-extensions/tabs.css | 152 + frontend/beta/css/yui-extensions/toolbar.css | 115 + frontend/beta/css/yui-extensions/tree.css | 193 + .../beta/css/yui-extensions/ytheme-aero.css | 361 + .../beta/css/yui-extensions/ytheme-gray.css | 300 + .../beta/css/yui-extensions/ytheme-vista.css | 403 + frontend/beta/css/yui/calendar.css | 189 + frontend/beta/css/yui/container.css | 240 + frontend/beta/css/yui/fonts.css | 62 + frontend/beta/css/yui/grids.css | 116 + frontend/beta/css/yui/logger.css | 49 + frontend/beta/css/yui/menu.css | 328 + frontend/beta/css/yui/reset.css | 43 + frontend/beta/css/yui/tree.css | 132 + frontend/beta/html/index_template.html | 100 + frontend/beta/images/cardBlockLowerBorder.gif | 0 .../images/cardBlockLowerRoundedCorner.gif | 0 frontend/beta/images/cardFiltersSprite.gif | 0 .../beta/images/cardsBlockRoundCorners.gif | 0 .../clipperz/basic-dialog/btn-sprite.gif | 0 .../images/clipperz/basic-dialog/close.gif | 0 .../images/clipperz/basic-dialog/close.png | 0 .../clipperz/basic-dialog/close_over.gif | 0 .../images/clipperz/basic-dialog/e-handle.gif | 0 .../clipperz/basic-dialog/hd-sprite.gif | 0 .../images/clipperz/basic-dialog/progress.gif | 0 .../clipperz/basic-dialog/progress2.gif | 0 .../images/clipperz/basic-dialog/s-handle.gif | 0 .../clipperz/basic-dialog/se-handle.gif | 0 .../default/basic-dialog/btn-sprite.gif | 0 .../images/default/basic-dialog/close.gif | 0 .../images/default/basic-dialog/e-handle.gif | 0 .../images/default/basic-dialog/hd-sprite.gif | 0 .../images/default/basic-dialog/progress.gif | 0 .../images/default/basic-dialog/progress2.gif | 0 .../images/default/basic-dialog/s-handle.gif | 0 .../images/default/basic-dialog/se-handle.gif | 0 frontend/beta/images/directLogin/toggle.png | 0 frontend/beta/images/directLoginBox.png | 0 frontend/beta/images/entropyBackground.gif | 0 frontend/beta/images/exportLogo.png | 0 frontend/beta/images/favicon.ico | 0 frontend/beta/images/flags/br.png | 0 frontend/beta/images/flags/cn.png | 0 frontend/beta/images/flags/de.png | 0 frontend/beta/images/flags/en.png | 0 frontend/beta/images/flags/es.png | 0 frontend/beta/images/flags/it.png | 0 frontend/beta/images/flags/jp.png | 0 frontend/beta/images/flags/ru.png | 0 frontend/beta/images/grippie.png | 0 .../images/importActiveStepsSeparator.png | 0 .../beta/images/importStepsBackground.png | 0 .../images/importStepsLabelsBackground.png | 0 .../importStepsLeftLabelsBackground.png | 0 frontend/beta/images/importStepsSeparator.png | 0 frontend/beta/images/languageBox.png | 0 frontend/beta/images/loginFormBox.png | 0 frontend/beta/images/loginInfoBackground.png | 0 .../beta/images/loginInfoInnerBackground.png | 0 frontend/beta/images/logo.gif | 0 frontend/beta/images/menubarSprite.gif | 0 .../beta/images/newRecordPanelBackground.gif | 0 .../beta/images/newRecordPanelBackground.png | 0 frontend/beta/images/passwordAssistant.png | 0 frontend/beta/images/read-only.gif | 0 frontend/beta/images/read-only.png | 0 frontend/beta/images/read-only_background.png | 0 .../beta/images/recordFilterBackground.png | 0 frontend/beta/images/rss.gif | 0 frontend/beta/images/scrambledValue.gif | 0 frontend/beta/images/scrambledValue.png | 0 frontend/beta/images/smiles.gif | 0 frontend/beta/images/smiles_big.gif | 0 frontend/beta/images/smiles_small.gif | 0 frontend/beta/images/test-database.png | 0 frontend/beta/js/Bookmarklet.js | 400 + frontend/beta/js/BookmarkletHash.js | 47 + frontend/beta/js/Bookmarklet_IE.js | 23 + frontend/beta/js/Clipperz/Base.js | 308 + frontend/beta/js/Clipperz/ByteArray.js | 1426 ++++ frontend/beta/js/Clipperz/CSVProcessor.js | 348 + frontend/beta/js/Clipperz/Crypto/AES.js | 836 ++ frontend/beta/js/Clipperz/Crypto/Base.js | 1852 +++++ frontend/beta/js/Clipperz/Crypto/BigInt.js | 1760 +++++ .../beta/js/Clipperz/Crypto/BigInt_scoped.js | 1649 ++++ frontend/beta/js/Clipperz/Crypto/ECC.js | 960 +++ .../Clipperz/Crypto/ECC/BinaryField/Curve.js | 461 ++ .../Crypto/ECC/BinaryField/FiniteField.js | 526 ++ .../Clipperz/Crypto/ECC/BinaryField/Point.js | 67 + .../Clipperz/Crypto/ECC/BinaryField/Value.js | 377 + frontend/beta/js/Clipperz/Crypto/PRNG.js | 854 +++ frontend/beta/js/Clipperz/Crypto/RSA.js | 151 + frontend/beta/js/Clipperz/Crypto/SHA.js | 296 + frontend/beta/js/Clipperz/Crypto/SRP.js | 331 + frontend/beta/js/Clipperz/DOM.js | 131 + frontend/beta/js/Clipperz/Date.js | 305 + .../js/Clipperz/KeePassExportProcessor.js | 251 + .../beta/js/Clipperz/NotificationCenter.js | 325 + .../js/Clipperz/PM/BookmarkletProcessor.js | 288 + .../Clipperz/PM/Components/BaseComponent.js | 124 + .../PM/Components/Compact/CompactHeader.js | 86 + .../PM/Components/Compact/CompactInterface.js | 312 + .../PM/Components/Compact/LoginForm.js | 189 + .../Import/CSVImport/CSVImportColumns.js | 174 + .../Import/CSVImport/CSVImportFields.js | 247 + .../Import/CSVImport/CSVImportHeader.js | 240 + .../Import/CSVImport/CSVImportNotes.js | 212 + .../Import/CSVImport/CSVImportTitle.js | 189 + .../Components/Import/CSVImportComponent.js | 548 ++ .../Import/ClipperzImportComponent.js | 212 + .../Components/Import/ExcelImportComponent.js | 134 + .../Import/GenericImportComponent.js | 523 ++ .../Import/KeePassImportComponent.js | 450 ++ .../PM/Components/Import/MainComponent.js | 332 + .../Import/PasswordPlusImportComponent.js | 315 + .../Import/RoboFormImportComponent.js | 392 + .../js/Clipperz/PM/Components/MessageBox.js | 224 + .../PM/Components/OTP/MainComponent.js | 490 ++ .../PM/Components/Panels/AccountPanel.js | 784 ++ .../PM/Components/Panels/BasePanel.js | 96 + .../PM/Components/Panels/ContactsPanel.js | 105 + .../PM/Components/Panels/DataPanel.js | 486 ++ .../PM/Components/Panels/LoginPanel.js | 1114 +++ .../PM/Components/Panels/LogoutPanel.js | 73 + .../PM/Components/Panels/MainPanel.js | 906 +++ .../PM/Components/Panels/ToolsPanel.js | 305 + .../PM/Components/PasswordEntropyDisplay.js | 118 + .../PM/Components/PasswordGenerator.js | 285 + .../Clipperz/PM/Components/Printing/Footer.js | 28 + .../Clipperz/PM/Components/Printing/Header.js | 28 + .../Clipperz/PM/Components/Printing/Record.js | 95 + .../RecordDetail/AbstractComponent.js | 105 + .../RecordDetail/AbstractFieldSubComponent.js | 77 + .../Components/RecordDetail/CreationWizard.js | 317 + .../DirectLoginBindingComponent.js | 174 + .../RecordDetail/DirectLoginComponent.js | 362 + .../RecordDetail/DirectLoginValueComponent.js | 257 + .../RecordDetail/DirectLoginsComponent.js | 199 + .../RecordDetail/FieldButtonComponent.js | 117 + .../Components/RecordDetail/FieldComponent.js | 189 + .../RecordDetail/FieldDragHandler.js | 59 + .../RecordDetail/FieldLabelComponent.js | 141 + .../RecordDetail/FieldTypeComponent.js | 157 + .../RecordDetail/FieldValueComponent.js | 275 + .../RecordDetail/HeaderComponent.js | 165 + .../Components/RecordDetail/MainComponent.js | 758 ++ .../Components/RecordDetail/NotesComponent.js | 240 + .../Components/RecordDetail/TitleComponent.js | 137 + .../Components/TabPanel/TabPanelController.js | 158 + .../Clipperz/PM/Components/TextFormField.js | 310 + frontend/beta/js/Clipperz/PM/Connection.js | 584 ++ frontend/beta/js/Clipperz/PM/Crypto.js | 503 ++ .../js/Clipperz/PM/DataModel/DirectLogin.js | 536 ++ .../PM/DataModel/DirectLoginBinding.js | 113 + .../Clipperz/PM/DataModel/DirectLoginInput.js | 229 + .../PM/DataModel/DirectLoginReference.js | 192 + .../beta/js/Clipperz/PM/DataModel/Header.js | 751 ++ .../Clipperz/PM/DataModel/OneTimePassword.js | 333 + .../PM/DataModel/OneTimePasswordManager.js | 280 + .../beta/js/Clipperz/PM/DataModel/Record.js | 759 ++ .../js/Clipperz/PM/DataModel/RecordField.js | 220 + .../js/Clipperz/PM/DataModel/RecordVersion.js | 535 ++ .../js/Clipperz/PM/DataModel/Statistics.js | 133 + .../beta/js/Clipperz/PM/DataModel/User.js | 904 +++ .../Clipperz/PM/DataModel/UserPreferences.js | 197 + frontend/beta/js/Clipperz/PM/Date.js | 193 + frontend/beta/js/Clipperz/PM/Main.js | 588 ++ frontend/beta/js/Clipperz/PM/Proxy.js | 173 + .../beta/js/Clipperz/PM/Proxy/Proxy.JSON.js | 100 + .../PM/Proxy/Proxy.Offline.DataStore.js | 804 ++ .../js/Clipperz/PM/Proxy/Proxy.Offline.js | 73 + .../beta/js/Clipperz/PM/Proxy/Proxy.PHP.js | 259 + .../beta/js/Clipperz/PM/Proxy/Proxy.Test.js | 94 + frontend/beta/js/Clipperz/PM/Strings.js | 231 + .../PM/Strings/MessagePanelConfigurations.js | 389 + .../js/Clipperz/PM/Strings/Strings_de-DE.js | 352 + .../js/Clipperz/PM/Strings/Strings_el-GR.js | 701 ++ .../js/Clipperz/PM/Strings/Strings_en-CA.js | 43 + .../js/Clipperz/PM/Strings/Strings_en-GB.js | 43 + .../js/Clipperz/PM/Strings/Strings_en-US.js | 1259 +++ .../js/Clipperz/PM/Strings/Strings_es-ES.js | 480 ++ .../js/Clipperz/PM/Strings/Strings_fr-FR.js | 362 + .../js/Clipperz/PM/Strings/Strings_he-IL.js | 40 + .../js/Clipperz/PM/Strings/Strings_it-IT.js | 694 ++ .../js/Clipperz/PM/Strings/Strings_ja-JP.js | 808 ++ .../js/Clipperz/PM/Strings/Strings_pt-BR.js | 478 ++ .../js/Clipperz/PM/Strings/Strings_pt-PT.js | 42 + .../js/Clipperz/PM/Strings/Strings_ru-RU.js | 440 ++ .../js/Clipperz/PM/Strings/Strings_zh-CN.js | 477 ++ frontend/beta/js/Clipperz/PM/Toll.js | 193 + frontend/beta/js/Clipperz/Profile.js | 485 ++ frontend/beta/js/Clipperz/Set.js | 167 + frontend/beta/js/Clipperz/Signal.js | 71 + frontend/beta/js/Clipperz/Style.js | 73 + frontend/beta/js/Clipperz/YUI/Collapser.js | 73 + frontend/beta/js/Clipperz/YUI/DomHelper.js | 465 ++ frontend/beta/js/Clipperz/YUI/DomQuery.js | 710 ++ frontend/beta/js/Clipperz/YUI/Drawer.js | 238 + .../beta/js/Clipperz/YUI/IBLayoutManager.js | 114 + .../beta/js/Clipperz/YUI/IBLayoutRegion.js | 249 + frontend/beta/js/Clipperz/YUI/MessageBox.js | 265 + frontend/beta/js/JSON/json2.js | 481 ++ frontend/beta/js/MochiKit/Async.js | 683 ++ frontend/beta/js/MochiKit/Base.js | 1403 ++++ frontend/beta/js/MochiKit/Color.js | 902 +++ frontend/beta/js/MochiKit/Controls.js | 1388 ++++ frontend/beta/js/MochiKit/DOM.js | 1267 +++ frontend/beta/js/MochiKit/DateTime.js | 216 + frontend/beta/js/MochiKit/DragAndDrop.js | 824 ++ frontend/beta/js/MochiKit/Format.js | 304 + frontend/beta/js/MochiKit/Iter.js | 843 ++ frontend/beta/js/MochiKit/Logging.js | 321 + frontend/beta/js/MochiKit/LoggingPane.js | 374 + frontend/beta/js/MochiKit/MochiKit.js | 154 + frontend/beta/js/MochiKit/MockDOM.js | 115 + frontend/beta/js/MochiKit/New.js | 1 + frontend/beta/js/MochiKit/Position.js | 246 + frontend/beta/js/MochiKit/Selector.js | 431 ++ frontend/beta/js/MochiKit/Signal.js | 864 +++ frontend/beta/js/MochiKit/Sortable.js | 589 ++ frontend/beta/js/MochiKit/Style.js | 444 ++ frontend/beta/js/MochiKit/Test.js | 181 + frontend/beta/js/MochiKit/Visual.js | 1976 +++++ frontend/beta/js/MochiKit/__package__.js | 18 + frontend/beta/js/YUI-extensions/Bench.js | 40 + frontend/beta/js/YUI-extensions/CSS.js | 208 + .../js/YUI-extensions/CompositeElement.js | 140 + .../beta/js/YUI-extensions/CustomTagReader.js | 40 + frontend/beta/js/YUI-extensions/Date.js | 407 + frontend/beta/js/YUI-extensions/DomHelper.js | 416 + frontend/beta/js/YUI-extensions/Element.js | 2157 ++++++ .../beta/js/YUI-extensions/EventManager.js | 456 ++ frontend/beta/js/YUI-extensions/JSON.js | 132 + frontend/beta/js/YUI-extensions/KeyMap.js | 135 + frontend/beta/js/YUI-extensions/Layer.js | 246 + .../beta/js/YUI-extensions/MixedCollection.js | 344 + frontend/beta/js/YUI-extensions/State.js | 264 + .../beta/js/YUI-extensions/UpdateManager.js | 484 ++ frontend/beta/js/YUI-extensions/anim/Actor.js | 759 ++ .../beta/js/YUI-extensions/anim/Animator.js | 482 ++ .../YUI-extensions/data/AbstractDataModel.js | 226 + .../YUI-extensions/data/DefaultDataModel.js | 339 + .../js/YUI-extensions/data/JSONDataModel.js | 81 + .../YUI-extensions/data/LoadableDataModel.js | 330 + frontend/beta/js/YUI-extensions/data/Tree.js | 412 + .../js/YUI-extensions/data/XMLDataModel.js | 274 + .../beta/js/YUI-extensions/dd/DragSource.js | 218 + .../beta/js/YUI-extensions/dd/DragZone.js | 64 + .../beta/js/YUI-extensions/dd/DropTarget.js | 45 + .../beta/js/YUI-extensions/dd/DropZone.js | 81 + .../beta/js/YUI-extensions/dd/Registry.js | 80 + .../js/YUI-extensions/dd/ScrollManager.js | 171 + .../beta/js/YUI-extensions/dd/StatusProxy.js | 110 + .../grid/AbstractColumnModel.js | 131 + .../YUI-extensions/grid/DefaultColumnModel.js | 325 + .../beta/js/YUI-extensions/grid/EditorGrid.js | 16 + .../grid/EditorSelectionModel.js | 182 + frontend/beta/js/YUI-extensions/grid/Grid.js | 965 +++ .../beta/js/YUI-extensions/grid/GridDD.js | 101 + .../beta/js/YUI-extensions/grid/GridView.js | 790 ++ .../js/YUI-extensions/grid/PagedGridView.js | 194 + .../js/YUI-extensions/grid/SelectionModel.js | 445 ++ .../YUI-extensions/grid/editor/CellEditor.js | 91 + .../grid/editor/CheckboxEditor.js | 60 + .../YUI-extensions/grid/editor/DateEditor.js | 268 + .../grid/editor/NumberEditor.js | 166 + .../grid/editor/SelectEditor.js | 37 + .../YUI-extensions/grid/editor/TextEditor.js | 110 + .../layout/BasicLayoutRegion.js | 265 + .../js/YUI-extensions/layout/BorderLayout.js | 281 + .../layout/BorderLayoutRegions.js | 207 + .../js/YUI-extensions/layout/ContentPanels.js | 325 + .../js/YUI-extensions/layout/LayoutManager.js | 135 + .../js/YUI-extensions/layout/LayoutRegion.js | 496 ++ .../layout/LayoutStateManager.js | 68 + .../layout/SplitLayoutRegion.js | 282 + .../js/YUI-extensions/tree/AsyncTreeNode.js | 58 + .../js/YUI-extensions/tree/TreeDragZone.js | 43 + .../js/YUI-extensions/tree/TreeDropZone.js | 228 + .../beta/js/YUI-extensions/tree/TreeFilter.js | 105 + .../beta/js/YUI-extensions/tree/TreeLoader.js | 107 + .../beta/js/YUI-extensions/tree/TreeNode.js | 300 + .../beta/js/YUI-extensions/tree/TreeNodeUI.js | 452 ++ .../beta/js/YUI-extensions/tree/TreePanel.js | 213 + .../YUI-extensions/tree/TreeSelectionModel.js | 195 + .../beta/js/YUI-extensions/tree/TreeSorter.js | 49 + .../js/YUI-extensions/widgets/BasicDialog.js | 1046 +++ .../beta/js/YUI-extensions/widgets/Button.js | 185 + .../js/YUI-extensions/widgets/DatePicker.js | 344 + .../js/YUI-extensions/widgets/InlineEditor.js | 216 + .../js/YUI-extensions/widgets/MessageBox.js | 230 + .../js/YUI-extensions/widgets/QuickTips.js | 311 + .../js/YUI-extensions/widgets/Resizable.js | 586 ++ .../js/YUI-extensions/widgets/SplitBar.js | 468 ++ .../js/YUI-extensions/widgets/TabPanel.js | 756 ++ .../js/YUI-extensions/widgets/TaskPanel.js | 0 .../js/YUI-extensions/widgets/TemplateView.js | 766 ++ .../beta/js/YUI-extensions/widgets/Toolbar.js | 296 + frontend/beta/js/YUI-extensions/yutil.js | 637 ++ frontend/beta/js/YUI/animation.js | 1272 ++++ frontend/beta/js/YUI/autocomplete.js | 3066 ++++++++ frontend/beta/js/YUI/calendar.js | 4239 +++++++++++ frontend/beta/js/YUI/connection.js | 960 +++ frontend/beta/js/YUI/container.js | 4561 +++++++++++ frontend/beta/js/YUI/dom.js | 881 +++ frontend/beta/js/YUI/dragdrop.js | 2940 +++++++ frontend/beta/js/YUI/event.js | 1738 +++++ frontend/beta/js/YUI/logger.js | 1559 ++++ frontend/beta/js/YUI/menu.js | 6780 +++++++++++++++++ frontend/beta/js/YUI/slider.js | 1113 +++ frontend/beta/js/YUI/tabview.js | 1950 +++++ frontend/beta/js/YUI/treeview.js | 2182 ++++++ frontend/beta/js/YUI/yahoo.js | 145 + frontend/beta/properties/beta.properties.json | 183 + .../beta/properties/creditsAndCopyrights.txt | 335 + frontend/gamma/css/clipperz/clipperz.css | 4520 +++++++++++ frontend/gamma/css/clipperz/compact.css | 162 + frontend/gamma/css/clipperz/iPhone.css | 464 ++ frontend/gamma/css/clipperz/ie.css | 356 + frontend/gamma/graphics/CoverActions.opacity | Bin 0 -> 25547 bytes frontend/gamma/graphics/Features.opacity | Bin 0 -> 140849 bytes frontend/gamma/graphics/GridSorting.opacity | Bin 0 -> 14681 bytes frontend/gamma/graphics/Logo.opacity | Bin 0 -> 10647 bytes frontend/gamma/graphics/Marks.opacity | Bin 0 -> 25340 bytes .../gamma/graphics/RegisterButton.opacity | Bin 0 -> 44806 bytes frontend/gamma/graphics/Star.opacity | Bin 0 -> 16210 bytes frontend/gamma/graphics/Tips.opacity | Bin 0 -> 46046 bytes frontend/gamma/html/exitPage_template.html | 140 + frontend/gamma/html/index_template.html | 62 + frontend/gamma/html/mobile_template.html | 87 + frontend/gamma/js/Bookmarklet.js | 801 ++ frontend/gamma/js/BookmarkletHash.js | 47 + frontend/gamma/js/Bookmarklet_1.js | 400 + frontend/gamma/js/Bookmarklet_2.js | 767 ++ frontend/gamma/js/Bookmarklet_IE.js | 23 + frontend/gamma/js/Clipperz/Async.js | 707 ++ frontend/gamma/js/Clipperz/Base.js | 531 ++ frontend/gamma/js/Clipperz/ByteArray.js | 1501 ++++ frontend/gamma/js/Clipperz/CSVProcessor.js | 349 + frontend/gamma/js/Clipperz/Crypto/AES.js | 869 +++ frontend/gamma/js/Clipperz/Crypto/Base.js | 1852 +++++ frontend/gamma/js/Clipperz/Crypto/BigInt.js | 1760 +++++ .../gamma/js/Clipperz/Crypto/BigInt_scoped.js | 1649 ++++ .../Clipperz/Crypto/ECC/BinaryField/Curve.js | 550 ++ .../Crypto/ECC/BinaryField/FiniteField.js | 526 ++ .../Clipperz/Crypto/ECC/BinaryField/Point.js | 67 + .../Clipperz/Crypto/ECC/BinaryField/Value.js | 386 + .../js/Clipperz/Crypto/ECC/StandardCurves.js | 239 + frontend/gamma/js/Clipperz/Crypto/PRNG.js | 855 +++ frontend/gamma/js/Clipperz/Crypto/RSA.js | 151 + frontend/gamma/js/Clipperz/Crypto/SHA.js | 301 + frontend/gamma/js/Clipperz/Crypto/SRP.js | 331 + frontend/gamma/js/Clipperz/DOM.js | 139 + frontend/gamma/js/Clipperz/Date.js | 305 + .../js/Clipperz/KeePassExportProcessor.js | 196 + .../gamma/js/Clipperz/KeyValueObjectStore.js | 176 + frontend/gamma/js/Clipperz/Logging.js | 42 + .../js/Clipperz/PM/BookmarkletProcessor.js | 196 + frontend/gamma/js/Clipperz/PM/Connection.js | 619 ++ frontend/gamma/js/Clipperz/PM/Crypto.js | 513 ++ .../js/Clipperz/PM/DataModel/DirectLogin.js | 1076 +++ .../PM/DataModel/DirectLoginBinding.js | 125 + .../PM/DataModel/DirectLoginFormValue.js | 107 + .../Clipperz/PM/DataModel/DirectLoginInput.js | 203 + .../PM/DataModel/EncryptedRemoteObject.js | 551 ++ .../Clipperz/PM/DataModel/OneTimePassword.js | 357 + .../PM/DataModel/Record.Version.Field.js | 167 + .../Clipperz/PM/DataModel/Record.Version.js | 336 + .../gamma/js/Clipperz/PM/DataModel/Record.js | 881 +++ .../PM/DataModel/User.Header.Legacy.js | 187 + .../DataModel/User.Header.OneTimePasswords.js | 128 + .../PM/DataModel/User.Header.Preferences.js | 53 + .../PM/DataModel/User.Header.RecordIndex.js | 705 ++ .../gamma/js/Clipperz/PM/DataModel/User.js | 817 ++ frontend/gamma/js/Clipperz/PM/Date.js | 201 + frontend/gamma/js/Clipperz/PM/Proxy.js | 172 + .../gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js | 94 + .../PM/Proxy/Proxy.Offline.DataStore.js | 811 ++ .../js/Clipperz/PM/Proxy/Proxy.Offline.js | 67 + .../gamma/js/Clipperz/PM/Proxy/Proxy.Test.js | 167 + frontend/gamma/js/Clipperz/PM/Strings.js | 295 + .../PM/Strings/MessagePanelConfigurations.js | 389 + .../Clipperz/PM/Strings/Strings_defaults.js | 390 + .../js/Clipperz/PM/Strings/Strings_en-US.js | 1341 ++++ frontend/gamma/js/Clipperz/PM/Toll.js | 194 + .../PM/UI/Canvas/CoverActions/download.js | 120 + .../PM/UI/Canvas/CoverActions/look.js | 208 + .../PM/UI/Canvas/Features/directLogin.js | 209 + .../Clipperz/PM/UI/Canvas/Features/protect.js | 237 + .../Clipperz/PM/UI/Canvas/Features/share.js | 1719 +++++ .../Clipperz/PM/UI/Canvas/Features/store.js | 310 + .../Clipperz/PM/UI/Canvas/GraphicFunctions.js | 68 + .../js/Clipperz/PM/UI/Canvas/Logo/normal.js | 65 + .../PM/UI/Canvas/Marks/exclamationMark.js | 280 + .../js/Clipperz/PM/UI/Canvas/Marks/info.js | 391 + .../PM/UI/Canvas/Marks/questionMark.js | 438 ++ .../PM/UI/Canvas/RegisterButton/normal.js | 403 + .../js/Clipperz/PM/UI/Canvas/Star/normal.js | 153 + .../js/Clipperz/PM/UI/Canvas/Tips/close.js | 156 + .../js/Clipperz/PM/UI/Canvas/Tips/open.js | 163 + .../PM/UI/Common/Components/BaseComponent.js | 611 ++ .../PM/UI/Common/Components/Button.js | 108 + .../PM/UI/Common/Components/ComponentSlot.js | 64 + .../UI/Common/Components/FaviconComponent.js | 91 + .../Components/MessagePanelWithProgressBar.js | 164 + .../Components/PasswordEntropyDisplay.js | 140 + .../PM/UI/Common/Components/ProgressBar.js | 73 + .../Common/Components/SimpleMessagePanel.js | 282 + .../UI/Common/Components/TabPanelComponent.js | 69 + .../PM/UI/Common/Components/Tooltip.js | 216 + .../UI/Common/Components/TranslatorWidget.js | 170 + .../Common/Controllers/DirectLoginRunner.js | 267 + .../Controllers/ProgressBarController.js | 143 + .../Common/Controllers/TabPanelController.js | 188 + .../UI/Common/Controllers/WizardController.js | 31 + .../Clipperz/PM/UI/Compact/MainController.js | 59 + .../PM/UI/Web/Components/AccountPanel.js | 148 + .../Clipperz/PM/UI/Web/Components/AppPage.js | 78 + .../UI/Web/Components/BookmarkletComponent.js | 109 + .../UI/Web/Components/CardDialogComponent.js | 881 +++ .../CardDialogRecordDirectLoginComponent.js | 182 + .../CardDialogRecordFieldComponent.js | 190 + .../PM/UI/Web/Components/ColumnManager.js | 203 + .../CreateNewCardSplashComponent.js | 71 + .../PM/UI/Web/Components/DataPanel.js | 111 + .../PM/UI/Web/Components/DateColumnManager.js | 72 + .../Components/DeleteObjectColumnManager.js | 70 + .../Components/DirectLoginColumnManager.js | 90 + .../DirectLoginEditingBindingComponent.js | 168 + .../Components/DirectLoginEditingComponent.js | 481 ++ .../DirectLoginEditingFormValueComponent.js | 179 + .../Components/DirectLoginsColumnManager.js | 271 + .../UI/Web/Components/FaviconColumnManager.js | 89 + .../PM/UI/Web/Components/GridComponent.js | 262 + .../UI/Web/Components/ImageColumnManager.js | 68 + .../PM/UI/Web/Components/LinkColumnManager.js | 92 + .../PM/UI/Web/Components/LoginForm.js | 203 + .../PM/UI/Web/Components/LoginPage.js | 206 + .../PM/UI/Web/Components/LoginProgress.js | 155 + .../Components/NewUserCreationComponent.js | 430 ++ .../js/Clipperz/PM/UI/Web/Components/Page.js | 71 + .../PM/UI/Web/Components/PageFooter.js | 71 + .../PM/UI/Web/Components/PageHeader.js | 184 + .../PM/UI/Web/Components/PasswordTooltip.js | 164 + .../PM/UI/Web/Components/RulerComponent.js | 324 + .../PM/UI/Web/Components/TabSidePanel.js | 193 + .../PM/UI/Web/Components/TextColumnManager.js | 53 + .../PM/UI/Web/Components/ToolsPanel.js | 113 + .../Web/Components/UnlockPasswordComponent.js | 184 + .../PM/UI/Web/Components/UserInfoBox.js | 346 + .../PM/UI/Web/Controllers/AppController.js | 329 + .../Web/Controllers/CardDialogController.js | 652 ++ .../PM/UI/Web/Controllers/CardsController.js | 207 + .../DirectLoginWizardController.js | 611 ++ .../Web/Controllers/DirectLoginsController.js | 145 + .../PM/UI/Web/Controllers/FilterController.js | 158 + .../PM/UI/Web/Controllers/GridController.js | 374 + .../PM/UI/Web/Controllers/LoginController.js | 259 + .../PM/UI/Web/Controllers/MainController.js | 218 + .../Controllers/NewUserWizardController.js | 469 ++ .../PM/UI/iPhone/Components/CardDetail.js | 166 + .../PM/UI/iPhone/Components/CardList.js | 204 + .../PM/UI/iPhone/Components/LoginForm.js | 181 + .../UI/iPhone/Controllers/MainController.js | 372 + frontend/gamma/js/Clipperz/Set.js | 167 + frontend/gamma/js/Clipperz/Signal.js | 71 + frontend/gamma/js/Clipperz/Style.js | 94 + frontend/gamma/js/Clipperz/Visual.js | 368 + frontend/gamma/js/Clipperz/YUI/DomHelper.js | 481 ++ frontend/gamma/js/Clipperz/YUI/DomQuery.js | 714 ++ frontend/gamma/js/Clipperz/YUI/Utils.js | 98 + frontend/gamma/js/JSON/json2.js | 481 ++ frontend/gamma/js/MochiKit/Async.js | 640 ++ frontend/gamma/js/MochiKit/Base.js | 1452 ++++ frontend/gamma/js/MochiKit/Color.js | 832 ++ frontend/gamma/js/MochiKit/DOM.js | 1144 +++ frontend/gamma/js/MochiKit/DateTime.js | 173 + frontend/gamma/js/MochiKit/DragAndDrop.js | 766 ++ frontend/gamma/js/MochiKit/Format.js | 309 + frontend/gamma/js/MochiKit/Iter.js | 790 ++ frontend/gamma/js/MochiKit/Logging.js | 262 + frontend/gamma/js/MochiKit/LoggingPane.js | 327 + frontend/gamma/js/MochiKit/MochiKit.js | 136 + frontend/gamma/js/MochiKit/MockDOM.js | 115 + frontend/gamma/js/MochiKit/Position.js | 218 + frontend/gamma/js/MochiKit/Selector.js | 387 + frontend/gamma/js/MochiKit/Signal.js | 888 +++ frontend/gamma/js/MochiKit/Sortable.js | 569 ++ frontend/gamma/js/MochiKit/Style.js | 558 ++ frontend/gamma/js/MochiKit/Test.js | 144 + frontend/gamma/js/MochiKit/Text.js | 577 ++ frontend/gamma/js/MochiKit/Visual.js | 1975 +++++ frontend/gamma/js/MochiKit/__package__.js | 18 + frontend/gamma/js/main.js | 109 + frontend/gamma/js/main_iPhone.js | 60 + .../gamma/properties/creditsAndCopyrights.txt | 336 + .../gamma/properties/gamma.properties.json | 189 + .../gamma/properties/mobile.properties.json | 119 + .../tests/SimpleTest/SimpleTest.Async.js | 169 + frontend/gamma/tests/SimpleTest/SimpleTest.js | 424 ++ frontend/gamma/tests/SimpleTest/TestRunner.js | 233 + frontend/gamma/tests/SimpleTest/test.css | 28 + frontend/gamma/tests/index.html | 56 + .../tests/tests/Bookmarklet/Bookmarklet.css | 201 + .../gamma/tests/tests/Bookmarklet/Fail.html | 113 + .../tests/tests/Bookmarklet/Twitter.html | 113 + .../tests/tests/Bookmarklet/ZeroClipboard.swf | Bin 0 -> 1071 bytes .../tests/tests/Bookmarklet/background.png | Bin 0 -> 10335 bytes .../gamma/tests/tests/Bookmarklet/close.png | Bin 0 -> 3984 bytes .../tests/Bookmarklet/close_selected.png | Bin 0 -> 3995 bytes .../gamma/tests/tests/Bookmarklet/copy.png | Bin 0 -> 5241 bytes .../tests/tests/Bookmarklet/copy_selected.png | Bin 0 -> 5169 bytes .../gamma/tests/tests/Bookmarklet/error.png | Bin 0 -> 4682 bytes .../gamma/tests/tests/Bookmarklet/hint.png | Bin 0 -> 3999 bytes .../gamma/tests/tests/Bookmarklet/index.html | 42 + .../gamma/tests/tests/Bookmarklet/info.png | Bin 0 -> 4781 bytes .../gamma/tests/tests/Clipperz/Async.html | 53 + .../gamma/tests/tests/Clipperz/Async.test.js | 687 ++ frontend/gamma/tests/tests/Clipperz/Base.html | 55 + .../gamma/tests/tests/Clipperz/Base.test.js | 367 + .../gamma/tests/tests/Clipperz/ByteArray.html | 71 + .../tests/tests/Clipperz/ByteArray.test.js | 893 +++ .../tests/tests/Clipperz/Crypto/AES.html | 292 + .../Clipperz/Crypto/AES.performance.html | 344 + .../tests/tests/Clipperz/Crypto/Base.html | 428 ++ .../tests/tests/Clipperz/Crypto/BigInt.html | 478 ++ .../Clipperz/Crypto/ECC.B283.deferred.html | 155 + .../ECC.BinaryField.FiniteField.B283.html | 209 + .../Crypto/ECC.BinaryField.FiniteField.html | 183 + .../Crypto/ECC.BinaryField.Value.html | 496 ++ .../Clipperz/Crypto/ECC.K283.deferred.html | 160 + .../Clipperz/Crypto/JSCrypto_vs_Clipperz.html | 70 + .../Crypto/JSCrypto_vs_Clipperz.test.js | 418 + .../tests/tests/Clipperz/Crypto/PRNG.html | 117 + .../tests/tests/Clipperz/Crypto/RSA.html | 90 + .../tests/tests/Clipperz/Crypto/SHA.html | 175 + .../tests/tests/Clipperz/Crypto/SHA.test.js | 84 + .../tests/tests/Clipperz/Crypto/SRP.html | 161 + .../tests/tests/Clipperz/Crypto/Usage.html | 122 + .../tests/tests/Clipperz/Crypto/index.html | 58 + .../tests/tests/Clipperz/Crypto/jscrypto.js | 1577 ++++ frontend/gamma/tests/tests/Clipperz/DOM.html | 58 + .../gamma/tests/tests/Clipperz/DOM.test.js | 82 + frontend/gamma/tests/tests/Clipperz/Date.html | 54 + .../gamma/tests/tests/Clipperz/Date.test.js | 66 + .../Clipperz/KeePassExportProcessor.data.js | 910 +++ .../Clipperz/KeePassExportProcessor.html | 59 + .../Clipperz/KeePassExportProcessor.test.js | 141 + .../tests/Clipperz/KeyValueObjectStore.html | 52 + .../Clipperz/KeyValueObjectStore.test.js | 255 + .../Clipperz/PM/BookmarkletProcessor.html | 59 + .../Clipperz/PM/BookmarkletProcessor.test.js | 132 + .../tests/Clipperz/PM/Connection.data.js | 841 ++ .../tests/tests/Clipperz/PM/Connection.html | 71 + .../tests/Clipperz/PM/Connection.test.js | 255 + .../gamma/tests/tests/Clipperz/PM/Crypto.html | 281 + .../PM/Crypto_performanceEvaluation.html | 153 + .../tests/tests/Clipperz/PM/Crypto_test.html | 169 + .../Clipperz/PM/DataModel/DirectLogin.html | 103 + .../Clipperz/PM/DataModel/DirectLogin.test.js | 195 + .../DirectLoginConfigurations.data.js | 33 + .../PM/DataModel/EncryptedRemoteObject.html | 66 + .../DataModel/EncryptedRemoteObject.test.js | 225 + .../PM/DataModel/OneTimePassword.html | 105 + .../PM/DataModel/OneTimePassword.test.js | 198 + .../tests/Clipperz/PM/DataModel/Record.html | 98 + .../Clipperz/PM/DataModel/Record.test.js | 1285 ++++ .../tests/Clipperz/PM/DataModel/User.data.js | 1941 +++++ .../Clipperz/PM/DataModel/User.data.old.js | 172 + .../tests/Clipperz/PM/DataModel/User.html | 106 + .../tests/Clipperz/PM/DataModel/User.test.js | 2082 +++++ .../tests/Clipperz/PM/DataModel/index.html | 47 + .../gamma/tests/tests/Clipperz/PM/Date.html | 59 + .../tests/tests/Clipperz/PM/Date.test.js | 90 + .../gamma/tests/tests/Clipperz/PM/Proxy.html | 65 + .../tests/tests/Clipperz/PM/Proxy.test.js | 117 + .../gamma/tests/tests/Clipperz/PM/Toll.html | 62 + .../tests/tests/Clipperz/PM/Toll.test.js | 202 + .../PM/UI/Web/Controllers/MainController.html | 64 + .../UI/Web/Controllers/MainController.test.js | 90 + .../Clipperz/PM/UI/Web/Controllers/index.html | 46 + .../tests/tests/Clipperz/PM/UI/Web/index.html | 45 + .../tests/tests/Clipperz/PM/UI/index.html | 45 + .../gamma/tests/tests/Clipperz/PM/index.html | 56 + .../Clipperz/RoboFormExportProcessor.html | 210 + frontend/gamma/tests/tests/Clipperz/Set.html | 54 + .../gamma/tests/tests/Clipperz/Set.test.js | 165 + .../gamma/tests/tests/Clipperz/index.html | 49 + .../tests/Clipperz/index_googleCode.html | 50 + .../tests/tests/Clipperz/index_testECC.html | 50 + .../CardDialogEditing_test.js | 238 + .../Components/CardDialogEditing/User.data.js | 1881 +++++ .../CardDialogEditing/dragAndDrop_test.js | 128 + .../Components/CardDialogEditing/index.html | 133 + .../Components/CardDialogNew/User.data.js | 977 +++ .../CardDialogNew/cardDialogNew_test.js | 127 + .../tests/Components/CardDialogNew/index.html | 117 + .../tests/tests/Components/FullApp/README.txt | 1 + .../tests/Components/FullApp/User.data.js | 1044 +++ .../tests/tests/Components/FullApp/index.html | 243 + .../tests/Components/FullApp/main_test.js | 114 + .../Components/GridLayout/GridLayout_test.js | 119 + .../GridLayout/TestPageComponent.js | 102 + .../tests/Components/GridLayout/User.data.js | 977 +++ .../tests/Components/GridLayout/index.html | 135 + .../tests/Components/GridLayout/test.css | 43 + .../tests/Components/ProgressBar/index.html | 120 + .../ProgressBar/progressBar_test.js | 125 + .../Components/SimpleMessagePanel/index.html | 115 + .../simpleMessagePanel_test.js | 95 + .../tests/Components/Tooltips/index.html | 143 + .../Components/Tooltips/tooltips_test.js | 117 + .../Components/UnlockPassword/User.data.js | 977 +++ .../Components/UnlockPassword/index.html | 117 + .../UnlockPassword/unlockPassword_test.js | 136 + .../CrossWindowsBookmarklet_test.js | 66 + .../crossWindowsBookmarklet/index.html | 73 + frontend/gamma/tests/tests/index.html | 48 + properties/license.txt | 22 + scripts/build | 5 + scripts/builder/backendBuilder.py | 89 + scripts/builder/cssmin.py | 223 + scripts/builder/frontendBuilder.py | 398 + scripts/builder/jsmin.py | 246 + scripts/builder/main.py | 166 + scripts/builder/phpBuilder.py | 14 + scripts/builder/pythonBuilder.py | 14 + 729 files changed, 232898 insertions(+) create mode 100644 .gitignore create mode 100644 LICENCE.txt create mode 100644 README.md create mode 100644 backend/php/properties/php.properties.json create mode 100644 backend/php/src/configuration.php create mode 100644 backend/php/src/dump.php create mode 100644 backend/php/src/index.php create mode 100644 backend/php/src/json/JSON.php create mode 100644 backend/php/src/objects/class.database.php create mode 100644 backend/php/src/objects/class.onetimepassword.php create mode 100644 backend/php/src/objects/class.onetimepasswordstatus.php create mode 100644 backend/php/src/objects/class.pog_base.php create mode 100644 backend/php/src/objects/class.record.php create mode 100644 backend/php/src/objects/class.recordversion.php create mode 100644 backend/php/src/objects/class.user.php rename README => backend/php/src/objects/ignore_objects.txt (100%) create mode 100644 backend/php/src/plugins/IPlugin.php create mode 100644 backend/php/src/plugins/base64_install.sql create mode 100644 backend/php/src/plugins/base64_uninstall.sql create mode 100644 backend/php/src/plugins/plugin.base64.php create mode 100644 backend/php/src/setup/data_initialization/additional_table_structures.sql create mode 100644 backend/php/src/setup/data_initialization/data_initialization.sql create mode 100644 backend/php/src/setup/data_initialization/howto.txt create mode 100644 backend/php/src/setup/data_initialization/read_dump_lib.php create mode 100644 backend/php/src/setup/index.php create mode 100644 backend/php/src/setup/rpc.php create mode 100644 backend/php/src/setup/setup.css create mode 100644 backend/php/src/setup/setup_images/background_id.gif create mode 100644 backend/php/src/setup/setup_images/button_add.gif create mode 100644 backend/php/src/setup/setup_images/button_delete.gif create mode 100644 backend/php/src/setup/setup_images/button_toolbar_author.gif create mode 100644 backend/php/src/setup/setup_images/button_toolbar_help.gif create mode 100644 backend/php/src/setup/setup_images/button_toolbar_homepage.gif create mode 100644 backend/php/src/setup/setup_images/button_toolbar_left.gif create mode 100644 backend/php/src/setup/setup_images/button_update.gif create mode 100644 backend/php/src/setup/setup_images/folderclose.gif create mode 100644 backend/php/src/setup/setup_images/folderopen.gif create mode 100644 backend/php/src/setup/setup_images/generate.jpg create mode 100644 backend/php/src/setup/setup_images/gradient_container.gif create mode 100644 backend/php/src/setup/setup_images/loading.gif create mode 100644 backend/php/src/setup/setup_images/mini_pog.jpg create mode 100644 backend/php/src/setup/setup_images/pog_setup_closed.jpg create mode 100644 backend/php/src/setup/setup_images/pog_setup_open.jpg create mode 100644 backend/php/src/setup/setup_images/setup_attachtables.jpg create mode 100644 backend/php/src/setup/setup_images/setup_bottom3.jpg create mode 100644 backend/php/src/setup/setup_images/setup_bottom3tile.jpg create mode 100644 backend/php/src/setup/setup_images/setup_collapseall.jpg create mode 100644 backend/php/src/setup/setup_images/setup_deleteall.jpg create mode 100644 backend/php/src/setup/setup_images/setup_expandall.jpg create mode 100644 backend/php/src/setup/setup_images/setup_footer.jpg create mode 100644 backend/php/src/setup/setup_images/setup_generateform.jpg create mode 100644 backend/php/src/setup/setup_images/setup_logo1.jpg create mode 100644 backend/php/src/setup/setup_images/setup_logo2.jpg create mode 100644 backend/php/src/setup/setup_images/setup_logo3.jpg create mode 100644 backend/php/src/setup/setup_images/setup_pogmeup.gif create mode 100644 backend/php/src/setup/setup_images/setup_proceed.gif create mode 100644 backend/php/src/setup/setup_images/setup_recheck.jpg create mode 100644 backend/php/src/setup/setup_images/setup_regenerate.jpg create mode 100644 backend/php/src/setup/setup_images/setup_toolbargradient.jpg create mode 100644 backend/php/src/setup/setup_images/setup_updateall.jpg create mode 100644 backend/php/src/setup/setup_images/setup_welcome.jpg create mode 100644 backend/php/src/setup/setup_images/tab_activeobjectleft.gif create mode 100644 backend/php/src/setup/setup_images/tab_activeobjectright.gif create mode 100644 backend/php/src/setup/setup_images/tab_diagnosticresults.gif create mode 100644 backend/php/src/setup/setup_images/tab_diagnosticresults_on.gif create mode 100644 backend/php/src/setup/setup_images/tab_manageobjects.gif create mode 100644 backend/php/src/setup/setup_images/tab_manageobjects_on.gif create mode 100644 backend/php/src/setup/setup_images/tab_manageplugins_off.gif create mode 100644 backend/php/src/setup/setup_images/tab_manageplugins_on.gif create mode 100644 backend/php/src/setup/setup_images/tab_separator.gif create mode 100644 backend/php/src/setup/setup_images/tab_setup.gif create mode 100644 backend/php/src/setup/setup_images/tab_setup_on.gif create mode 100644 backend/php/src/setup/setup_images/toolbar_separator.gif create mode 100644 backend/php/src/setup/setup_library/authentication.php create mode 100644 backend/php/src/setup/setup_library/class.zipfile.php create mode 100644 backend/php/src/setup/setup_library/inc.footer.php create mode 100644 backend/php/src/setup/setup_library/inc.header.php create mode 100644 backend/php/src/setup/setup_library/setup_misc.php create mode 100644 backend/php/src/setup/setup_library/upgrade.php create mode 100644 backend/php/src/setup/setup_library/xPandMenu.css create mode 100644 backend/php/src/setup/setup_library/xPandMenu.js create mode 100644 backend/php/src/setup/setup_library/xPandMenu.php create mode 100644 backend/php/src/test.php create mode 100644 backend/python/properties/python.properties.json create mode 100644 backend/python/src/app.yaml create mode 100644 backend/python/src/clipperz.py create mode 100644 doc/install.php.txt create mode 100644 frontend/beta/css/clipperz/clipperz.css create mode 100644 frontend/beta/css/clipperz/compact.css create mode 100644 frontend/beta/css/clipperz/ie.css create mode 100644 frontend/beta/css/clipperz/ytheme-clipperz.css create mode 100644 frontend/beta/css/yui-extensions/basic-dialog.css create mode 100644 frontend/beta/css/yui-extensions/button.css create mode 100644 frontend/beta/css/yui-extensions/core.css create mode 100644 frontend/beta/css/yui-extensions/dd.css create mode 100644 frontend/beta/css/yui-extensions/grid.css create mode 100644 frontend/beta/css/yui-extensions/inline-editor.css create mode 100644 frontend/beta/css/yui-extensions/layout.css create mode 100644 frontend/beta/css/yui-extensions/qtips.css create mode 100644 frontend/beta/css/yui-extensions/reset-min.css create mode 100644 frontend/beta/css/yui-extensions/resizable.css create mode 100644 frontend/beta/css/yui-extensions/tabs.css create mode 100644 frontend/beta/css/yui-extensions/toolbar.css create mode 100644 frontend/beta/css/yui-extensions/tree.css create mode 100644 frontend/beta/css/yui-extensions/ytheme-aero.css create mode 100644 frontend/beta/css/yui-extensions/ytheme-gray.css create mode 100644 frontend/beta/css/yui-extensions/ytheme-vista.css create mode 100644 frontend/beta/css/yui/calendar.css create mode 100644 frontend/beta/css/yui/container.css create mode 100644 frontend/beta/css/yui/fonts.css create mode 100644 frontend/beta/css/yui/grids.css create mode 100644 frontend/beta/css/yui/logger.css create mode 100644 frontend/beta/css/yui/menu.css create mode 100644 frontend/beta/css/yui/reset.css create mode 100644 frontend/beta/css/yui/tree.css create mode 100644 frontend/beta/html/index_template.html create mode 100644 frontend/beta/images/cardBlockLowerBorder.gif create mode 100644 frontend/beta/images/cardBlockLowerRoundedCorner.gif create mode 100644 frontend/beta/images/cardFiltersSprite.gif create mode 100644 frontend/beta/images/cardsBlockRoundCorners.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/btn-sprite.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/close.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/close.png create mode 100644 frontend/beta/images/clipperz/basic-dialog/close_over.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/e-handle.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/hd-sprite.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/progress.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/progress2.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/s-handle.gif create mode 100644 frontend/beta/images/clipperz/basic-dialog/se-handle.gif create mode 100644 frontend/beta/images/default/basic-dialog/btn-sprite.gif create mode 100644 frontend/beta/images/default/basic-dialog/close.gif create mode 100644 frontend/beta/images/default/basic-dialog/e-handle.gif create mode 100644 frontend/beta/images/default/basic-dialog/hd-sprite.gif create mode 100644 frontend/beta/images/default/basic-dialog/progress.gif create mode 100644 frontend/beta/images/default/basic-dialog/progress2.gif create mode 100644 frontend/beta/images/default/basic-dialog/s-handle.gif create mode 100644 frontend/beta/images/default/basic-dialog/se-handle.gif create mode 100644 frontend/beta/images/directLogin/toggle.png create mode 100644 frontend/beta/images/directLoginBox.png create mode 100644 frontend/beta/images/entropyBackground.gif create mode 100644 frontend/beta/images/exportLogo.png create mode 100644 frontend/beta/images/favicon.ico create mode 100644 frontend/beta/images/flags/br.png create mode 100644 frontend/beta/images/flags/cn.png create mode 100644 frontend/beta/images/flags/de.png create mode 100644 frontend/beta/images/flags/en.png create mode 100644 frontend/beta/images/flags/es.png create mode 100644 frontend/beta/images/flags/it.png create mode 100644 frontend/beta/images/flags/jp.png create mode 100644 frontend/beta/images/flags/ru.png create mode 100644 frontend/beta/images/grippie.png create mode 100644 frontend/beta/images/importActiveStepsSeparator.png create mode 100644 frontend/beta/images/importStepsBackground.png create mode 100644 frontend/beta/images/importStepsLabelsBackground.png create mode 100644 frontend/beta/images/importStepsLeftLabelsBackground.png create mode 100644 frontend/beta/images/importStepsSeparator.png create mode 100644 frontend/beta/images/languageBox.png create mode 100644 frontend/beta/images/loginFormBox.png create mode 100644 frontend/beta/images/loginInfoBackground.png create mode 100644 frontend/beta/images/loginInfoInnerBackground.png create mode 100644 frontend/beta/images/logo.gif create mode 100644 frontend/beta/images/menubarSprite.gif create mode 100644 frontend/beta/images/newRecordPanelBackground.gif create mode 100644 frontend/beta/images/newRecordPanelBackground.png create mode 100644 frontend/beta/images/passwordAssistant.png create mode 100644 frontend/beta/images/read-only.gif create mode 100644 frontend/beta/images/read-only.png create mode 100644 frontend/beta/images/read-only_background.png create mode 100644 frontend/beta/images/recordFilterBackground.png create mode 100644 frontend/beta/images/rss.gif create mode 100644 frontend/beta/images/scrambledValue.gif create mode 100644 frontend/beta/images/scrambledValue.png create mode 100644 frontend/beta/images/smiles.gif create mode 100644 frontend/beta/images/smiles_big.gif create mode 100644 frontend/beta/images/smiles_small.gif create mode 100644 frontend/beta/images/test-database.png create mode 100644 frontend/beta/js/Bookmarklet.js create mode 100644 frontend/beta/js/BookmarkletHash.js create mode 100644 frontend/beta/js/Bookmarklet_IE.js create mode 100644 frontend/beta/js/Clipperz/Base.js create mode 100644 frontend/beta/js/Clipperz/ByteArray.js create mode 100644 frontend/beta/js/Clipperz/CSVProcessor.js create mode 100644 frontend/beta/js/Clipperz/Crypto/AES.js create mode 100644 frontend/beta/js/Clipperz/Crypto/Base.js create mode 100644 frontend/beta/js/Clipperz/Crypto/BigInt.js create mode 100644 frontend/beta/js/Clipperz/Crypto/BigInt_scoped.js create mode 100644 frontend/beta/js/Clipperz/Crypto/ECC.js create mode 100644 frontend/beta/js/Clipperz/Crypto/ECC/BinaryField/Curve.js create mode 100644 frontend/beta/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js create mode 100644 frontend/beta/js/Clipperz/Crypto/ECC/BinaryField/Point.js create mode 100644 frontend/beta/js/Clipperz/Crypto/ECC/BinaryField/Value.js create mode 100644 frontend/beta/js/Clipperz/Crypto/PRNG.js create mode 100644 frontend/beta/js/Clipperz/Crypto/RSA.js create mode 100644 frontend/beta/js/Clipperz/Crypto/SHA.js create mode 100644 frontend/beta/js/Clipperz/Crypto/SRP.js create mode 100644 frontend/beta/js/Clipperz/DOM.js create mode 100644 frontend/beta/js/Clipperz/Date.js create mode 100644 frontend/beta/js/Clipperz/KeePassExportProcessor.js create mode 100644 frontend/beta/js/Clipperz/NotificationCenter.js create mode 100644 frontend/beta/js/Clipperz/PM/BookmarkletProcessor.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/BaseComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Compact/CompactInterface.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Compact/LoginForm.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImport/CSVImportColumns.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImport/CSVImportFields.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImport/CSVImportHeader.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImport/CSVImportNotes.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImport/CSVImportTitle.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/CSVImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/ClipperzImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/ExcelImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/GenericImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/KeePassImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/MainComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/PasswordPlusImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Import/RoboFormImportComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/MessageBox.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/OTP/MainComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/AccountPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/BasePanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/DataPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/LogoutPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Panels/ToolsPanel.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/PasswordEntropyDisplay.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/PasswordGenerator.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Printing/Footer.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Printing/Header.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/Printing/Record.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/AbstractComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/AbstractFieldSubComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/CreationWizard.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/DirectLoginBindingComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/DirectLoginComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/DirectLoginValueComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/DirectLoginsComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldButtonComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldDragHandler.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldLabelComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldTypeComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/FieldValueComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/HeaderComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/MainComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/NotesComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/RecordDetail/TitleComponent.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/TabPanel/TabPanelController.js create mode 100644 frontend/beta/js/Clipperz/PM/Components/TextFormField.js create mode 100644 frontend/beta/js/Clipperz/PM/Connection.js create mode 100644 frontend/beta/js/Clipperz/PM/Crypto.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/DirectLogin.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/DirectLoginBinding.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/DirectLoginInput.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/DirectLoginReference.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/Header.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/OneTimePassword.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/OneTimePasswordManager.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/Record.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/RecordField.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/RecordVersion.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/Statistics.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/User.js create mode 100644 frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js create mode 100644 frontend/beta/js/Clipperz/PM/Date.js create mode 100644 frontend/beta/js/Clipperz/PM/Main.js create mode 100644 frontend/beta/js/Clipperz/PM/Proxy.js create mode 100755 frontend/beta/js/Clipperz/PM/Proxy/Proxy.JSON.js create mode 100644 frontend/beta/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js create mode 100644 frontend/beta/js/Clipperz/PM/Proxy/Proxy.Offline.js create mode 100755 frontend/beta/js/Clipperz/PM/Proxy/Proxy.PHP.js create mode 100644 frontend/beta/js/Clipperz/PM/Proxy/Proxy.Test.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/MessagePanelConfigurations.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_de-DE.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_el-GR.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_en-CA.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_en-GB.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_en-US.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_es-ES.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_fr-FR.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_he-IL.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_it-IT.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_ja-JP.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_pt-BR.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_pt-PT.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_ru-RU.js create mode 100644 frontend/beta/js/Clipperz/PM/Strings/Strings_zh-CN.js create mode 100644 frontend/beta/js/Clipperz/PM/Toll.js create mode 100644 frontend/beta/js/Clipperz/Profile.js create mode 100644 frontend/beta/js/Clipperz/Set.js create mode 100644 frontend/beta/js/Clipperz/Signal.js create mode 100644 frontend/beta/js/Clipperz/Style.js create mode 100644 frontend/beta/js/Clipperz/YUI/Collapser.js create mode 100644 frontend/beta/js/Clipperz/YUI/DomHelper.js create mode 100644 frontend/beta/js/Clipperz/YUI/DomQuery.js create mode 100644 frontend/beta/js/Clipperz/YUI/Drawer.js create mode 100644 frontend/beta/js/Clipperz/YUI/IBLayoutManager.js create mode 100644 frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js create mode 100644 frontend/beta/js/Clipperz/YUI/MessageBox.js create mode 100644 frontend/beta/js/JSON/json2.js create mode 100644 frontend/beta/js/MochiKit/Async.js create mode 100644 frontend/beta/js/MochiKit/Base.js create mode 100644 frontend/beta/js/MochiKit/Color.js create mode 100644 frontend/beta/js/MochiKit/Controls.js create mode 100644 frontend/beta/js/MochiKit/DOM.js create mode 100644 frontend/beta/js/MochiKit/DateTime.js create mode 100644 frontend/beta/js/MochiKit/DragAndDrop.js create mode 100644 frontend/beta/js/MochiKit/Format.js create mode 100644 frontend/beta/js/MochiKit/Iter.js create mode 100644 frontend/beta/js/MochiKit/Logging.js create mode 100644 frontend/beta/js/MochiKit/LoggingPane.js create mode 100644 frontend/beta/js/MochiKit/MochiKit.js create mode 100644 frontend/beta/js/MochiKit/MockDOM.js create mode 100644 frontend/beta/js/MochiKit/New.js create mode 100644 frontend/beta/js/MochiKit/Position.js create mode 100644 frontend/beta/js/MochiKit/Selector.js create mode 100644 frontend/beta/js/MochiKit/Signal.js create mode 100644 frontend/beta/js/MochiKit/Sortable.js create mode 100644 frontend/beta/js/MochiKit/Style.js create mode 100644 frontend/beta/js/MochiKit/Test.js create mode 100644 frontend/beta/js/MochiKit/Visual.js create mode 100644 frontend/beta/js/MochiKit/__package__.js create mode 100644 frontend/beta/js/YUI-extensions/Bench.js create mode 100644 frontend/beta/js/YUI-extensions/CSS.js create mode 100644 frontend/beta/js/YUI-extensions/CompositeElement.js create mode 100644 frontend/beta/js/YUI-extensions/CustomTagReader.js create mode 100644 frontend/beta/js/YUI-extensions/Date.js create mode 100644 frontend/beta/js/YUI-extensions/DomHelper.js create mode 100644 frontend/beta/js/YUI-extensions/Element.js create mode 100644 frontend/beta/js/YUI-extensions/EventManager.js create mode 100644 frontend/beta/js/YUI-extensions/JSON.js create mode 100644 frontend/beta/js/YUI-extensions/KeyMap.js create mode 100644 frontend/beta/js/YUI-extensions/Layer.js create mode 100644 frontend/beta/js/YUI-extensions/MixedCollection.js create mode 100644 frontend/beta/js/YUI-extensions/State.js create mode 100644 frontend/beta/js/YUI-extensions/UpdateManager.js create mode 100644 frontend/beta/js/YUI-extensions/anim/Actor.js create mode 100644 frontend/beta/js/YUI-extensions/anim/Animator.js create mode 100644 frontend/beta/js/YUI-extensions/data/AbstractDataModel.js create mode 100644 frontend/beta/js/YUI-extensions/data/DefaultDataModel.js create mode 100644 frontend/beta/js/YUI-extensions/data/JSONDataModel.js create mode 100644 frontend/beta/js/YUI-extensions/data/LoadableDataModel.js create mode 100644 frontend/beta/js/YUI-extensions/data/Tree.js create mode 100644 frontend/beta/js/YUI-extensions/data/XMLDataModel.js create mode 100644 frontend/beta/js/YUI-extensions/dd/DragSource.js create mode 100644 frontend/beta/js/YUI-extensions/dd/DragZone.js create mode 100644 frontend/beta/js/YUI-extensions/dd/DropTarget.js create mode 100644 frontend/beta/js/YUI-extensions/dd/DropZone.js create mode 100644 frontend/beta/js/YUI-extensions/dd/Registry.js create mode 100644 frontend/beta/js/YUI-extensions/dd/ScrollManager.js create mode 100644 frontend/beta/js/YUI-extensions/dd/StatusProxy.js create mode 100644 frontend/beta/js/YUI-extensions/grid/AbstractColumnModel.js create mode 100644 frontend/beta/js/YUI-extensions/grid/DefaultColumnModel.js create mode 100644 frontend/beta/js/YUI-extensions/grid/EditorGrid.js create mode 100644 frontend/beta/js/YUI-extensions/grid/EditorSelectionModel.js create mode 100644 frontend/beta/js/YUI-extensions/grid/Grid.js create mode 100644 frontend/beta/js/YUI-extensions/grid/GridDD.js create mode 100644 frontend/beta/js/YUI-extensions/grid/GridView.js create mode 100644 frontend/beta/js/YUI-extensions/grid/PagedGridView.js create mode 100644 frontend/beta/js/YUI-extensions/grid/SelectionModel.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/CellEditor.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/CheckboxEditor.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/DateEditor.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/NumberEditor.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/SelectEditor.js create mode 100644 frontend/beta/js/YUI-extensions/grid/editor/TextEditor.js create mode 100644 frontend/beta/js/YUI-extensions/layout/BasicLayoutRegion.js create mode 100644 frontend/beta/js/YUI-extensions/layout/BorderLayout.js create mode 100644 frontend/beta/js/YUI-extensions/layout/BorderLayoutRegions.js create mode 100644 frontend/beta/js/YUI-extensions/layout/ContentPanels.js create mode 100644 frontend/beta/js/YUI-extensions/layout/LayoutManager.js create mode 100644 frontend/beta/js/YUI-extensions/layout/LayoutRegion.js create mode 100644 frontend/beta/js/YUI-extensions/layout/LayoutStateManager.js create mode 100644 frontend/beta/js/YUI-extensions/layout/SplitLayoutRegion.js create mode 100644 frontend/beta/js/YUI-extensions/tree/AsyncTreeNode.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeDragZone.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeDropZone.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeFilter.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeLoader.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeNode.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeNodeUI.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreePanel.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeSelectionModel.js create mode 100644 frontend/beta/js/YUI-extensions/tree/TreeSorter.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/BasicDialog.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/Button.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/DatePicker.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/InlineEditor.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/MessageBox.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/QuickTips.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/Resizable.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/SplitBar.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/TabPanel.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/TaskPanel.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/TemplateView.js create mode 100644 frontend/beta/js/YUI-extensions/widgets/Toolbar.js create mode 100644 frontend/beta/js/YUI-extensions/yutil.js create mode 100644 frontend/beta/js/YUI/animation.js create mode 100644 frontend/beta/js/YUI/autocomplete.js create mode 100644 frontend/beta/js/YUI/calendar.js create mode 100644 frontend/beta/js/YUI/connection.js create mode 100644 frontend/beta/js/YUI/container.js create mode 100644 frontend/beta/js/YUI/dom.js create mode 100644 frontend/beta/js/YUI/dragdrop.js create mode 100644 frontend/beta/js/YUI/event.js create mode 100644 frontend/beta/js/YUI/logger.js create mode 100644 frontend/beta/js/YUI/menu.js create mode 100644 frontend/beta/js/YUI/slider.js create mode 100644 frontend/beta/js/YUI/tabview.js create mode 100644 frontend/beta/js/YUI/treeview.js create mode 100644 frontend/beta/js/YUI/yahoo.js create mode 100644 frontend/beta/properties/beta.properties.json create mode 100644 frontend/beta/properties/creditsAndCopyrights.txt create mode 100644 frontend/gamma/css/clipperz/clipperz.css create mode 100644 frontend/gamma/css/clipperz/compact.css create mode 100644 frontend/gamma/css/clipperz/iPhone.css create mode 100644 frontend/gamma/css/clipperz/ie.css create mode 100644 frontend/gamma/graphics/CoverActions.opacity create mode 100644 frontend/gamma/graphics/Features.opacity create mode 100644 frontend/gamma/graphics/GridSorting.opacity create mode 100644 frontend/gamma/graphics/Logo.opacity create mode 100644 frontend/gamma/graphics/Marks.opacity create mode 100644 frontend/gamma/graphics/RegisterButton.opacity create mode 100644 frontend/gamma/graphics/Star.opacity create mode 100644 frontend/gamma/graphics/Tips.opacity create mode 100644 frontend/gamma/html/exitPage_template.html create mode 100644 frontend/gamma/html/index_template.html create mode 100644 frontend/gamma/html/mobile_template.html create mode 100644 frontend/gamma/js/Bookmarklet.js create mode 100644 frontend/gamma/js/BookmarkletHash.js create mode 100644 frontend/gamma/js/Bookmarklet_1.js create mode 100644 frontend/gamma/js/Bookmarklet_2.js create mode 100644 frontend/gamma/js/Bookmarklet_IE.js create mode 100644 frontend/gamma/js/Clipperz/Async.js create mode 100644 frontend/gamma/js/Clipperz/Base.js create mode 100644 frontend/gamma/js/Clipperz/ByteArray.js create mode 100644 frontend/gamma/js/Clipperz/CSVProcessor.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/AES.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/Base.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/BigInt.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/BigInt_scoped.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Curve.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Point.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Value.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/ECC/StandardCurves.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/PRNG.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/RSA.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/SHA.js create mode 100644 frontend/gamma/js/Clipperz/Crypto/SRP.js create mode 100644 frontend/gamma/js/Clipperz/DOM.js create mode 100644 frontend/gamma/js/Clipperz/Date.js create mode 100644 frontend/gamma/js/Clipperz/KeePassExportProcessor.js create mode 100644 frontend/gamma/js/Clipperz/KeyValueObjectStore.js create mode 100644 frontend/gamma/js/Clipperz/Logging.js create mode 100644 frontend/gamma/js/Clipperz/PM/BookmarkletProcessor.js create mode 100644 frontend/gamma/js/Clipperz/PM/Connection.js create mode 100644 frontend/gamma/js/Clipperz/PM/Crypto.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/DirectLogin.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginBinding.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginFormValue.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginInput.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/EncryptedRemoteObject.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/OneTimePassword.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.Field.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/Record.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Legacy.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/User.Header.OneTimePasswords.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Preferences.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/User.Header.RecordIndex.js create mode 100644 frontend/gamma/js/Clipperz/PM/DataModel/User.js create mode 100644 frontend/gamma/js/Clipperz/PM/Date.js create mode 100644 frontend/gamma/js/Clipperz/PM/Proxy.js create mode 100755 frontend/gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js create mode 100644 frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js create mode 100644 frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.js create mode 100644 frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Test.js create mode 100644 frontend/gamma/js/Clipperz/PM/Strings.js create mode 100644 frontend/gamma/js/Clipperz/PM/Strings/MessagePanelConfigurations.js create mode 100644 frontend/gamma/js/Clipperz/PM/Strings/Strings_defaults.js create mode 100644 frontend/gamma/js/Clipperz/PM/Strings/Strings_en-US.js create mode 100644 frontend/gamma/js/Clipperz/PM/Toll.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/download.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/look.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/protect.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/share.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/store.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/GraphicFunctions.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Logo/normal.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/info.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/questionMark.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Star/normal.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/close.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/open.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/BaseComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/Button.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/ComponentSlot.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/FaviconComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/MessagePanelWithProgressBar.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/PasswordEntropyDisplay.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/ProgressBar.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/TabPanelComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/Tooltip.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Components/TranslatorWidget.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/DirectLoginRunner.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/ProgressBarController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/TabPanelController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/WizardController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Compact/MainController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/AccountPanel.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/AppPage.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/BookmarkletComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordDirectLoginComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordFieldComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/ColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/CreateNewCardSplashComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DataPanel.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DateColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DeleteObjectColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingBindingComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingFormValueComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginsColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/GridComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/ImageColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/LinkColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginForm.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginPage.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginProgress.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/Page.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageFooter.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageHeader.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/PasswordTooltip.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/RulerComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/TabSidePanel.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/TextColumnManager.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/ToolsPanel.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/UnlockPasswordComponent.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Components/UserInfoBox.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardDialogController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardsController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginWizardController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginsController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/FilterController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/GridController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/LoginController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/MainController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/NewUserWizardController.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/iPhone/Components/CardDetail.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/iPhone/Components/CardList.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/iPhone/Components/LoginForm.js create mode 100644 frontend/gamma/js/Clipperz/PM/UI/iPhone/Controllers/MainController.js create mode 100644 frontend/gamma/js/Clipperz/Set.js create mode 100644 frontend/gamma/js/Clipperz/Signal.js create mode 100644 frontend/gamma/js/Clipperz/Style.js create mode 100644 frontend/gamma/js/Clipperz/Visual.js create mode 100644 frontend/gamma/js/Clipperz/YUI/DomHelper.js create mode 100644 frontend/gamma/js/Clipperz/YUI/DomQuery.js create mode 100644 frontend/gamma/js/Clipperz/YUI/Utils.js create mode 100644 frontend/gamma/js/JSON/json2.js create mode 100644 frontend/gamma/js/MochiKit/Async.js create mode 100644 frontend/gamma/js/MochiKit/Base.js create mode 100644 frontend/gamma/js/MochiKit/Color.js create mode 100644 frontend/gamma/js/MochiKit/DOM.js create mode 100644 frontend/gamma/js/MochiKit/DateTime.js create mode 100644 frontend/gamma/js/MochiKit/DragAndDrop.js create mode 100644 frontend/gamma/js/MochiKit/Format.js create mode 100644 frontend/gamma/js/MochiKit/Iter.js create mode 100644 frontend/gamma/js/MochiKit/Logging.js create mode 100644 frontend/gamma/js/MochiKit/LoggingPane.js create mode 100644 frontend/gamma/js/MochiKit/MochiKit.js create mode 100644 frontend/gamma/js/MochiKit/MockDOM.js create mode 100644 frontend/gamma/js/MochiKit/Position.js create mode 100644 frontend/gamma/js/MochiKit/Selector.js create mode 100644 frontend/gamma/js/MochiKit/Signal.js create mode 100644 frontend/gamma/js/MochiKit/Sortable.js create mode 100644 frontend/gamma/js/MochiKit/Style.js create mode 100644 frontend/gamma/js/MochiKit/Test.js create mode 100644 frontend/gamma/js/MochiKit/Text.js create mode 100644 frontend/gamma/js/MochiKit/Visual.js create mode 100644 frontend/gamma/js/MochiKit/__package__.js create mode 100644 frontend/gamma/js/main.js create mode 100644 frontend/gamma/js/main_iPhone.js create mode 100644 frontend/gamma/properties/creditsAndCopyrights.txt create mode 100644 frontend/gamma/properties/gamma.properties.json create mode 100644 frontend/gamma/properties/mobile.properties.json create mode 100644 frontend/gamma/tests/SimpleTest/SimpleTest.Async.js create mode 100644 frontend/gamma/tests/SimpleTest/SimpleTest.js create mode 100644 frontend/gamma/tests/SimpleTest/TestRunner.js create mode 100644 frontend/gamma/tests/SimpleTest/test.css create mode 100755 frontend/gamma/tests/index.html create mode 100644 frontend/gamma/tests/tests/Bookmarklet/Bookmarklet.css create mode 100644 frontend/gamma/tests/tests/Bookmarklet/Fail.html create mode 100644 frontend/gamma/tests/tests/Bookmarklet/Twitter.html create mode 100755 frontend/gamma/tests/tests/Bookmarklet/ZeroClipboard.swf create mode 100644 frontend/gamma/tests/tests/Bookmarklet/background.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/close.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/close_selected.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/copy.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/copy_selected.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/error.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/hint.png create mode 100644 frontend/gamma/tests/tests/Bookmarklet/index.html create mode 100644 frontend/gamma/tests/tests/Bookmarklet/info.png create mode 100644 frontend/gamma/tests/tests/Clipperz/Async.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Async.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/Base.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Base.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/ByteArray.html create mode 100644 frontend/gamma/tests/tests/Clipperz/ByteArray.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/AES.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/AES.performance.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/Base.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/BigInt.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/ECC.B283.deferred.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.B283.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.Value.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/ECC.K283.deferred.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/PRNG.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/RSA.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/SHA.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/SHA.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/Usage.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Crypto/jscrypto.js create mode 100644 frontend/gamma/tests/tests/Clipperz/DOM.html create mode 100644 frontend/gamma/tests/tests/Clipperz/DOM.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/Date.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Date.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.data.js create mode 100644 frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.html create mode 100644 frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.html create mode 100644 frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Connection.data.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Connection.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Connection.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Crypto.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Crypto_performanceEvaluation.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Crypto_test.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLoginConfigurations.data.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.old.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/DataModel/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Date.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Date.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Proxy.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Proxy.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Toll.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/Toll.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/UI/Web/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/UI/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/PM/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/RoboFormExportProcessor.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Set.html create mode 100644 frontend/gamma/tests/tests/Clipperz/Set.test.js create mode 100644 frontend/gamma/tests/tests/Clipperz/index.html create mode 100644 frontend/gamma/tests/tests/Clipperz/index_googleCode.html create mode 100644 frontend/gamma/tests/tests/Clipperz/index_testECC.html create mode 100644 frontend/gamma/tests/tests/Components/CardDialogEditing/CardDialogEditing_test.js create mode 100644 frontend/gamma/tests/tests/Components/CardDialogEditing/User.data.js create mode 100644 frontend/gamma/tests/tests/Components/CardDialogEditing/dragAndDrop_test.js create mode 100644 frontend/gamma/tests/tests/Components/CardDialogEditing/index.html create mode 100644 frontend/gamma/tests/tests/Components/CardDialogNew/User.data.js create mode 100644 frontend/gamma/tests/tests/Components/CardDialogNew/cardDialogNew_test.js create mode 100644 frontend/gamma/tests/tests/Components/CardDialogNew/index.html create mode 100644 frontend/gamma/tests/tests/Components/FullApp/README.txt create mode 100644 frontend/gamma/tests/tests/Components/FullApp/User.data.js create mode 100644 frontend/gamma/tests/tests/Components/FullApp/index.html create mode 100644 frontend/gamma/tests/tests/Components/FullApp/main_test.js create mode 100644 frontend/gamma/tests/tests/Components/GridLayout/GridLayout_test.js create mode 100644 frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js create mode 100644 frontend/gamma/tests/tests/Components/GridLayout/User.data.js create mode 100644 frontend/gamma/tests/tests/Components/GridLayout/index.html create mode 100644 frontend/gamma/tests/tests/Components/GridLayout/test.css create mode 100644 frontend/gamma/tests/tests/Components/ProgressBar/index.html create mode 100644 frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js create mode 100644 frontend/gamma/tests/tests/Components/SimpleMessagePanel/index.html create mode 100644 frontend/gamma/tests/tests/Components/SimpleMessagePanel/simpleMessagePanel_test.js create mode 100644 frontend/gamma/tests/tests/Components/Tooltips/index.html create mode 100644 frontend/gamma/tests/tests/Components/Tooltips/tooltips_test.js create mode 100644 frontend/gamma/tests/tests/Components/UnlockPassword/User.data.js create mode 100644 frontend/gamma/tests/tests/Components/UnlockPassword/index.html create mode 100644 frontend/gamma/tests/tests/Components/UnlockPassword/unlockPassword_test.js create mode 100644 frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/CrossWindowsBookmarklet_test.js create mode 100644 frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/index.html create mode 100644 frontend/gamma/tests/tests/index.html create mode 100644 properties/license.txt create mode 100755 scripts/build create mode 100644 scripts/builder/backendBuilder.py create mode 100644 scripts/builder/cssmin.py create mode 100644 scripts/builder/frontendBuilder.py create mode 100644 scripts/builder/jsmin.py create mode 100755 scripts/builder/main.py create mode 100644 scripts/builder/phpBuilder.py create mode 100644 scripts/builder/pythonBuilder.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e317a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target +*.pyc \ No newline at end of file diff --git a/LICENCE.txt b/LICENCE.txt new file mode 100644 index 0000000..2def0e8 --- /dev/null +++ b/LICENCE.txt @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..be11d8c --- /dev/null +++ b/README.md @@ -0,0 +1,57 @@ +# Clipperz Password Manager # + +This is the code of [Clipperz][clipperz] [Password Manager][password-manager] + +More details + +ALL the code included in this project, if not otherwise stated, is released with +the AGPL licence (see LICENCE.txt), and all rights are reserved to Clipperz src. + + +## CONTRIBUTIONS ## + +Clipperz is very interested in accepting patches in the form of pull requests, but in +order to avoid jeopardizing the ownership of the code base, we will require every +developer to sign Clipperz [Contribution Agreement][contributor-agreement] + + +## BUILDING ## + +In order to build the deployable version, you need to invoke the following command: + + ./scripts/build clean install debug --frontends beta --backends php + + +The output will be available in the `target` folder, with a separate folder for each build backend (initially this will be just a `php` folder). +The script, invoked with these parameters, will build both the full version (`install` -> index.html) and the debug version (index_debug.html) of the /beta frontend using the PHP backend. + +At the moment this is the only combination that (kind of) works, but this script will be gradually extended to be able to build also the /gamma frontend (whose code is already in the repository) and possibly also other backends (Python AppEngine being the very first candidate, and a JavaScript version per node.js another interesting option) + + +## INSTALLING ## + +### PHP + MySQL backend ### + +At the moment the only backend that the build script can successfully create is the PHP + MySQL one. + +#### PHP #### +Once the project has been successfully build, the application needs to be moved in a location where the web server can run it. Everything that is needed is located into `target/php`. + +#### MySQL #### +The application needs a simple MySQL database; to configure all the credentials to access the previously allocated DB, edit the file found in `php/configuration.php`. You need to edit the file actually used by the web server; this will usually be the one moved into the right place in the previous step. +Once the application is in place, and the DB credentials have been configured, you should initialize the DB itself; in order to do so, just point your browser at the following url: `http:////php/setup/index.php`. +Here you will find the standard [POG][pog] setup page: it should be enough to click the "POG me up!" button at the bottom of the page, and then the "Process" button on the next page. +The POG interface will allow also a very basic access to the DB data that may be useful to check that the application is actually writing something on the DB (even if you will not be able to make much sense out of the data you will see, as they are all encrypted!) + +More information about bilding the PHP backend may be found in the `doc/install.php.txt` file. + + +## WARNING ## + +The resulting application has not been fully tested, so there may be still problems due to the new build script or some other changes that were done due to the new repository structure. So, for the moment, **use it at your own risk!** + + +[clipperz]: http://www.clipperz.com +[password-manager]: https://www.clipperz.com/beta +[contributor-agreement]: http://www.clipperz.com/open_source/contributor_agreement +[pog]: http://www.phpobjectgenerator.com/ \ No newline at end of file diff --git a/backend/php/properties/php.properties.json b/backend/php/properties/php.properties.json new file mode 100644 index 0000000..32d5084 --- /dev/null +++ b/backend/php/properties/php.properties.json @@ -0,0 +1,4 @@ +{ + "request.path": "../index.php", + "should.pay.toll": "false" +} \ No newline at end of file diff --git a/backend/php/src/configuration.php b/backend/php/src/configuration.php new file mode 100644 index 0000000..291e3a1 --- /dev/null +++ b/backend/php/src/configuration.php @@ -0,0 +1,36 @@ + \ No newline at end of file diff --git a/backend/php/src/dump.php b/backend/php/src/dump.php new file mode 100644 index 0000000..d4e8544 --- /dev/null +++ b/backend/php/src/dump.php @@ -0,0 +1,103 @@ +Get($_SESSION["userId"]); + $records = $user->GetRecordList(); + + $recordString = ""; + $isFirstRecord = true; + + $c = count($records); + for ($i=0; $i<$c; $i++) { + $currentRecord = $records[$i]; + $recordVersions = $currentRecord->GetRecordversionList(); + + + if ($isFirstRecord == true) { + $isFirstRecord = false; + } else { + $recordString = $recordString . ",\n"; + } + + $versionString = ""; + $isFirstVersion = true; + + $cc = count($recordVersions); + for ($ii=0; $ii<$cc; $ii++) { + $currentVersion = $recordVersions[$ii]; + + if ($isFirstVersion == true) { + $isFirstVersion = false; + } else { + $versionString = $versionString . ",\n"; + } + + $versionsString = $versionString . "\t\t\t\t\t\t'" . $currentVersion->reference . "': {\n" . + "\t\t\t\t\t\t\theader: '" . $currentVersion->header . "',\n" . + "\t\t\t\t\t\t\tdata: '" . $currentVersion->data . "',\n" . + "\t\t\t\t\t\t\tversion: '" . $currentVersion->version . "',\n" . + "\t\t\t\t\t\t\tcreationDate: '" . $currentVersion->creation_date . "',\n" . + "\t\t\t\t\t\t\tupdateDate: '" . $currentVersion->update_date . "',\n" . + "\t\t\t\t\t\t\taccessDate: '" . $currentVersion->access_date . "'\n" . + "\t\t\t\t\t\t}"; + } + + $recordString = $recordString . "\t\t\t\t'" . $currentRecord->reference . "': {\n" . + "\t\t\t\t\tdata: '" . $currentRecord->data . "',\n" . + "\t\t\t\t\tversion: '" . $currentRecord->version . "',\n" . + "\t\t\t\t\tcreationDate: '" . $currentRecord->creation_date . "',\n" . + "\t\t\t\t\tupdateDate: '" . $currentRecord->update_date . "',\n" . + "\t\t\t\t\taccessDate: '" . $currentRecord->access_date . "',\n" . + "\t\t\t\t\tcurrentVersion: '" . $currentVersion->reference . "',\n" . + "\t\t\t\t\tversions: {\n" . + $versionsString . "\n" . + "\t\t\t\t\t}\n" . + "\t\t\t\t}"; + } + + + $data = "_clipperz_dump_data_ = {\n" . + "\tusers:{\n" . + "\t\t'catchAllUser': {\n" . + "\t\t\t__masterkey_test_value__: 'masterkey',\n" . + "\t\t\ts: '112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00',\n" . + "\t\t\tv: '112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00'\n" . + "\t\t},\n" . + "\t\t'" . $user->username . "': {\n" . + "\t\t\ts: '" . $user->srp_s . "',\n" . + "\t\t\tv: '" . $user->srp_v . "',\n" . + "\t\t\tversion: '" . $user->auth_version . "',\n" . + "\t\t\tmaxNumberOfRecords: '" . "100" . "',\n" . + "\t\t\tuserDetails: '" . $user->header . "',\n" . + "\t\t\tstatistics: '" . $user->statistics . "',\n" . + "\t\t\tuserDetailsVersion: '" . $user->version . "',\n" . + "\t\t\trecords: {\n" . + $recordString . "\n" . + "\t\t\t}\n" . + "\t\t}\n" . + "\t}\n" . + "}\n" . + "\n" . + "Clipperz.PM.Proxy.defaultProxy = new Clipperz.PM.Proxy.Offline();\n" . + "Clipperz.Crypto.PRNG.defaultRandomGenerator().fastEntropyAccumulationForTestingPurpose();" . + "\n"; + + session_write_close(); + + echo str_replace("/*offline_data_placeholder*/", $data, $htmlContent); +?> \ No newline at end of file diff --git a/backend/php/src/index.php b/backend/php/src/index.php new file mode 100644 index 0000000..eb3d75a --- /dev/null +++ b/backend/php/src/index.php @@ -0,0 +1,744 @@ +decode($content); + } +} + +if ( !function_exists('json_encode') ) { + function json_encode($content) { + require_once 'json/JSON.php'; + $json = new Services_JSON; + + return $json->encode($content); + } +} + +//----------------------------------------------------------------------------- +// 'dec2base', 'base2dec' and 'digits' are functions found on the following +// PHP manual page: http://ch2.php.net/manual/en/ref.bc.php +// + +function dec2base($dec, $base, $digits=FALSE) { + if ($base<2 or $base>256) { + die("Invalid Base: ".$base); + } + + bcscale(0); + $value=""; + if (!$digits) { + $digits = digits($base); + } + + while ($dec > $base-1) { + $rest = bcmod($dec, $base); + $dec = bcdiv($dec, $base); + $value = $digits[$rest].$value; + } + + $value=$digits[intval($dec)].$value; + + return (string)$value; +} + +//............................................................................. + +// convert another base value to its decimal value +function base2dec($value, $base, $digits=FALSE) { + if ($base<2 or $base>256) { + die("Invalid Base: ".$base); + } + + bcscale(0); + if ($base<37) { + $value=strtolower($value); + } + + if (!$digits) { + $digits=digits($base); + } + + $size = strlen($value); + $dec="0"; + for ($loop=0; $loop<$size; $loop++) { + $element = strpos($digits, $value[$loop]); + $power = bcpow($base, $size-$loop-1); + $dec = bcadd($dec, bcmul($element,$power)); + } + + return (string)$dec; +} + +//............................................................................. + +function digits($base) { + if ($base>64) { + $digits=""; + for ($loop=0; $loop<256; $loop++) { + $digits.=chr($loop); + } + } else { + $digits ="0123456789abcdefghijklmnopqrstuvwxyz"; + $digits.="ABCDEFGHIJKLMNOPQRSTUVWXYZ-_"; + } + + $digits=substr($digits,0,$base); + + return (string)$digits; +} + +//----------------------------------------------------------------------------- + +function clipperz_hash($value) { + return hash("sha256", hash("sha256", $value, true)); +} + +//----------------------------------------------------------------------------- + +function clipperz_randomSeed() { + $result; + + srand((double) microtime()*1000000); + $result = ""; + + while(strlen($result) < 64) { + $result = $result.dec2base(rand(), 16); + } + + $result = substr($result, 0, 64); + + return $result; +} + +//----------------------------------------------------------------------------- + +function updateUserCredentials($parameters, &$user) { + $user->username = $parameters["C"]; + $user->srp_s = $parameters["s"]; + $user->srp_v = $parameters["v"]; + $user->auth_version = $parameters["version"]; +} + +function updateUserData($parameters, &$user) { + $user->header = $parameters["header"]; + $user->statistics = $parameters["statistics"]; + $user->version = $parameters["version"]; + $user->lock = $parameters["lock"]; +} + +function updateRecordData($parameters, &$record, &$recordVersion) { + $recordData = $parameters["record"]; + $record->reference = $recordData["reference"]; + $record->data = $recordData["data"]; + $record->version = $recordData["version"]; + + $recordVersionData = $parameters["currentRecordVersion"]; + $recordVersion->reference = $recordVersionData ["reference"]; + $recordVersion->data = $recordVersionData ["data"]; + $recordVersion->version = $recordVersionData ["version"]; + $recordVersion->previous_version_id = $recordVersionData ["previousVersion"]; + $recordVersion->previous_version_key = $recordVersionData ["previousVersionKey"]; +} + +//----------------------------------------------------------------------------- + +function updateOTPStatus(&$otp, $status) { + $otpStatus = new onetimepasswordstatus(); + $selectedStatuses = $otpStatus->GetList(array(array("code", "=", $status))); + $otpStatus = $selectedStatuses[0]; + $otp->SetOnetimepasswordstatus($otpStatus); +} + +function updateOTP($parameters, &$otp, $status) { + $otp->reference = $parameters["reference"]; + $otp->key = $parameters["key"]; + $otp->key_checksum = $parameters["keyChecksum"]; + $otp->data = $parameters["data"]; + $otp->version = $parameters["version"]; + + updateOTPStatus($otp, $status); +} + +function resetOTP(&$otp, $status) { + $otp->data = ""; + updateOTPStatus($otp, $status); + $otp->Save(); +} + +//----------------------------------------------------------------------------- + +function fixOTPStatusTable() { + $otpStatus = new onetimepasswordstatus(); + $otpStatusList = $otpStatus->GetList(); + if (count($otpStatusList) != 4) { + $otpStatus->DeleteList(); + + $otpStatus->code = "ACTIVE"; $otpStatus->name = "Active"; $otpStatus->description = "Active"; $otpStatus->SaveNew(); + $otpStatus->code = "REQUESTED"; $otpStatus->name = "Requested"; $otpStatus->description = "Requested"; $otpStatus->SaveNew(); + $otpStatus->code = "USED"; $otpStatus->name = "Used"; $otpStatus->description = "Used"; $otpStatus->SaveNew(); + $otpStatus->code = "DISABLED"; $otpStatus->name = "Disabled"; $otpStatus->description = "Disabled"; $otpStatus->SaveNew(); + } +} + +//----------------------------------------------------------------------------- + +function arrayContainsValue($array, $value) { + $object = NULL; + for ($i=0; $iSave(); + + $result["lock"] = $user->lock; + $result["result"] = "done"; + } + break; + + case "handshake": +error_log("handshake"); + $srp_g = "2"; + $srp_n = base2dec("115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3", 16); + + $message = $parameters["message"]; + + //============================================================= + if ($message == "connect") { + $user= new user(); + $_SESSION["C"] = $parameters["parameters"]["C"]; + $_SESSION["A"] = $parameters["parameters"]["A"]; + + $userList = $user->GetList(array(array("username", "=", $_SESSION["C"]))); + + if (count($userList) == 1) { + $currentUser = $userList[ 0 ]; + + if (array_key_exists("otpId", $_SESSION)) { + $otp = new onetimepassword(); + $otp = $otp->Get($_SESSION["otpId"]); + + if ($otp->GetUser()->userId != $currentUser->userId) { + throw new Exception("User missmatch between the current session and 'One Time Password' user"); + } else if ($otp->GetOnetimepasswordstatus()->code != "REQUESTED") { + throw new Exception("Tring to use an 'One Time Password' in the wrong state"); + } + + resetOTP($otp, "USED"); + $result["oneTimePassword"] = $otp->reference; + } + + $_SESSION["s"] = $currentUser->srp_s; + $_SESSION["v"] = $currentUser->srp_v; + $_SESSION["userId"] = $currentUser->userId; + } else { + $_SESSION["s"] = "112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00"; + $_SESSION["v"] = "112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00"; + } + + $_SESSION["b"] = clipperz_randomSeed(); +// $_SESSION["b"] = "5761e6c84d22ea3c5649de01702d60f674ccfe79238540eb34c61cd020230c53"; + $_SESSION["B"] = dec2base(bcadd(base2dec($_SESSION["v"], 16), bcpowmod($srp_g, base2dec($_SESSION["b"], 16), $srp_n)), 16); + + $result["s"] = $_SESSION["s"]; + $result["B"] = $_SESSION["B"]; + + //============================================================= + } else if ($message == "credentialCheck") { +error_log("credentialCheck"); + $u = clipperz_hash(base2dec($_SESSION["B"],16)); + $A = base2dec($_SESSION["A"], 16); + $S = bcpowmod(bcmul($A, bcpowmod(base2dec($_SESSION["v"], 16), base2dec($u, 16), $srp_n)), base2dec($_SESSION["b"], 16), $srp_n); + $K = clipperz_hash($S); + $M1 = clipperz_hash($A.base2dec($_SESSION["B"],16).$K); + +//$result["B"] = $_SESSION["B"]; +//$result["u"] = $u; +//$result["A"] = $A; +//$result["S"] = $S; +//$result["K"] = $K; +//$result["M1"] = $M1; +//$result["_M1"] = $parameters["parameters"]["M1"]; + + if ($M1 == $parameters["parameters"]["M1"]) { + $_SESSION["K"] = $K; + $M2 = clipperz_hash($A.$M1.$K); + + $result["M2"] = $M2; + $result["connectionId"] = ""; + $result["loginInfo"] = array(); + $result["loginInfo"]["latest"] = array(); + $result["loginInfo"]["current"] = array(); + $result["offlineCopyNeeded"] = "false"; + $result["lock"] = "----"; + } else { + $result["error"] = "?"; + } + //============================================================= + } else if ($message == "oneTimePassword") { +error_log("oneTimePassword"); +//{ +// "message":"oneTimePassword", +// "version":"0.2", +// "parameters":{ +// "oneTimePasswordKey":"06dfa7f428081f8b2af98b0895e14e18af90b0ef2ff32828e55cc2ac6b24d29b", +// "oneTimePasswordKeyChecksum":"60bcba3f72e56f6bb3f0ff88509b9a0e5ec730dfa71daa4c1e892dbd1b0c360d" +// } +//} + $otp = new onetimepassword(); + $otpList = $otp->GetList(array(array("key", "=", $parameters["parameters"]["oneTimePasswordKey"]))); + + if (count($otpList) == 1) { + $currentOtp = $otpList[0]; + + if ($currentOtp->GetOnetimepasswordstatus()->code == "ACTIVE") { + if ($currentOtp->key_checksum == $parameters["parameters"]["oneTimePasswordKeyChecksum"]) { + $_SESSION["userId"] = $currentOtp->GetUser()->userId; + $_SESSION["otpId"] = $currentOtp->onetimepasswordId; + + $result["data"] = $currentOtp->data; + $result["version"] = $currentOtp->version; + + resetOTP($currentOtp, "REQUESTED"); + } else { + resetOTP($currentOtp, "DISABLED"); + throw new Exception("The requested One Time Password has been disabled, due to a wrong keyChecksum"); + } + } else { + throw new Exception("The requested One Time Password was not active"); + } + } else { + throw new Exception("The requested One Time Password has not been found"); + } + + //============================================================= + } + + break; + + case "message": +error_log("message"); + if ($parameters["srpSharedSecret"] == $_SESSION["K"]) { + $message = $parameters["message"]; + + //============================================================= + if ($message == "getUserDetails") { +//{"message":"getUserDetails", "srpSharedSecret":"f18e5cf7c3a83b67d4db9444af813ee48c13daf4f8f6635397d593e52ba89a08", "parameters":{}} + $user = new user(); + $user = $user->Get($_SESSION["userId"]); + + $result["header"] = $user->header; + $result["statistics"] = $user->statistics; + $result["version"] = $user->version; + + //============================================================= + } else if ($message == "addNewRecords") { +/* +//{ +// "message":"addNewRecords", +// "srpSharedSecret":"b58fdf62acebbcb67f63d28c0437f166069f45690c648cd4376a792ae7a325f7", +// "parameters":{ +// "records":[ +// { +// "record":{ +// "reference":"fda703707fee1fff42443124cd0e705f5bea0ac601758d81b2e832705339a610", +// "data":"OBSGtcb6blXq/xaYG.....4EqlQqgAvITN", +// "version":"0.3" +// }, +// "currentRecordVersion":{ +// "reference":"83ad301525c18f2afd72b6ac82c0a713382e1ef70ac69935ca7e2869dd4ff980", +// "recordReference":"fda703707fee1fff42443124cd0e705f5bea0ac601758d81b2e832705339a610", +// "data":"NXJ5jiZhkd0CMiwwntAq....1TjjF+SGfE=", +// "version":"0.3", +// "previousVersion":"3e174a86afc322271d8af28bc062b0f1bfd7344fad01212cd08b2757c4b199c4", +// "previousVersionKey":"kozaaGCzXWr71LbOKu6Z3nz520V..5U85tSBvb+u44twttv54Kw==" +// } +// } +// ], +// "user":{ +// "header":"{\"reco...ersion\":\"0.1\"}", +// "statistics":"rKI6nR6iqggygQJ3SQ58bFUX", +// "version":"0.3", +// "lock":"----" +// } +// } +//} +*/ + $user = new user(); + $record = new record(); + $recordVersion = new recordversion(); + + $user = $user->Get($_SESSION["userId"]); + updateUserData($parameters["parameters"]["user"], $user); + + $recordParameterList = $parameters["parameters"]["records"]; + $c = count($recordParameterList); + for ($i=0; $i<$c; $i++) { + updateRecordData($recordParameterList[$i], $record, $recordVersion); + + $record->SaveNew(); + $recordVersion->SaveNew(); + + $record->AddRecordversion($recordVersion); + $user->AddRecord($record); + + $record->Save(); + $recordVersion->Save(); + } + + $user->Save(); + + $result["lock"] = $user->lock; + $result["result"] = "done"; + + //============================================================= + } else if ($message == "getRecordDetail") { +//{ +// "message":"getRecordDetail", +// "srpSharedSecret":"4c00dcb66a9f2aea41a87e4707c526874e2eb29cc72d2c7086837e53d6bf2dfe", +// "parameters":{ +// "reference":"740009737139a189cfa2b1019a6271aaa39467b59e259706564b642ff3838d50" +// } +//} +// +// result = { +// currentVersion:{ +// reference:"88943d709c3ea2442d4f58eaaec6409276037e5a37e0a6d167b9dad9e947e854", +// accessDate:"Wed, 13 February 2008 14:25:12 UTC", +// creationDate:"Tue, 17 April 2007 17:17:52 UTC", +// version:"0.2", +// data:"xI3WXddQLFtL......EGyKnnAVik", +// updateDate:"Tue, 17 April 2007 17:17:52 UTC", +// header:"####" +// } +// reference:"13a5e52976337ab210903cd04872588e1b21fb72bc183e91aa25c494b8138551", +// oldestUsedEncryptedVersion:"0.2", +// accessDate:"Wed, 13 February 2008 14:25:12 UTC", +// creationDate:"Wed, 14 March 2007 13:53:11 UTC", +// version:"0.2", +// updatedDate:"Tue, 17 April 2007 17:17:52 UTC", +// data:"0/BjzyY6jeh71h...pAw2++NEyylGhMC5C5f5m8pBApYziN84s4O3JQ3khW/1UttQl4=" +// } + $record = new record(); + + $recordList = $record->GetList(array(array("reference", "=", $parameters["parameters"]["reference"]))); + $currentRecord = $recordList[0]; + $currentRecordVersions = $currentRecord->GetRecordversionList(); + $currentVersion = $currentRecordVersions[0]; + + $result["currentVersion"] = array(); + $result["currentVersion"]["reference"] = $currentVersion->reference; + $result["currentVersion"]["data"] = $currentVersion->data; + $result["currentVersion"]["header"] = $currentVersion->header; + $result["currentVersion"]["version"] = $currentVersion->version; + $result["currentVersion"]["creationDate"] = $currentVersion->creation_date; + $result["currentVersion"]["updateDate"] = $currentVersion->update_date; + $result["currentVersion"]["accessDate"] = $currentVersion->access_date; + + $result["reference"] = $currentRecord->reference; + $result["data"] = $currentRecord->data; + $result["version"] = $currentRecord->version; + $result["creationDate"] = $currentRecord->creation_date; + $result["updateDate"] = $currentRecord->update_date; + $result["accessDate"] = $currentRecord->access_date; + $result["oldestUsedEncryptedVersion"] = "---"; + + //============================================================= + } else if ($message == "updateData") { +//{ +// "message":"updateData", +// "srpSharedSecret":"4e4aadb1d64513ec4dd42f5e8d5b2d4363de75e4424b6bcf178c9d6a246356c5", +// "parameters":{ +// "records":[ +// { +// "record":{ +// "reference":"740009737139a189cfa2b1019a6271aaa39467b59e259706564b642ff3838d50", +// "data":"8hgR0Z+JDrUa812polDJ....JnZUKXNEqKI", +// "version":"0.3" +// }, +// "currentRecordVersion":{ +// "reference":"b1d82aeb9a0c4f6584bea68ba80839f43dd6ede79791549e29a1860554b144ee", +// "recordReference":"740009737139a189cfa2b1019a6271aaa39467b59e259706564b642ff3838d50", +// "data":"2d/UgKxxV+kBPV9GRUE.....VGonDoW0tqefxOJo=", +// "version":"0.3", +// "previousVersion":"55904195249037394316d3be3f5e78f08073170103bf0e7ab49a911c159cb0be", +// "previousVersionKey":"YWiaZeMIVHaIl96OWW+2e8....6d6nHbn6cr2NA/dbQRuC2w==" +// } +// } +// ], +// "user":{ +// "header":"{\"rec.....sion\":\"0.1\"}", +// "statistics":"tt3uU9hWBy8rNnMckgCnxMJh", +// "version":"0.3", +// "lock":"----" +// } +// } +//} + + $user = new user(); + $user = $user->Get($_SESSION["userId"]); + updateUserData($parameters["parameters"]["user"], $user); + $user->Save(); + + $recordParameterList = $parameters["parameters"]["records"]; + $c = count($recordParameterList); + for ($i=0; $i<$c; $i++) { + $recordList = $user->GetRecordList(array(array("reference", "=", $recordParameterList[$i]["record"]["reference"]))); + $currentRecord = $recordList[0]; + $currentRecordVersions = $currentRecord->GetRecordversionList(); + $currentVersion = $currentRecordVersions[0]; + + updateRecordData($recordParameterList[$i], $currentRecord, $currentVersion); + + + $currentRecord->Save(); + $currentVersion->Save(); + } + + + $result["lock"] = $user->lock; + $result["result"] = "done"; + + //============================================================= + } else if ($message == "deleteRecords") { +//{ +// "message":"deleteRecords", +// "srpSharedSecret":"4a64982f7ee366954ec50b9efea62a902a097ef111410c2aa7c4d5343bd1cdd1", +// "parameters":{ +// "recordReferences":["46494c81d10b80ab190d41e6806ef63869cfcc7a0ab8fe98cc3f93de4729bb9a"], +// "user":{ +// "header":"{\"rec...rsion\":\"0.1\"}", +// "statistics":"44kOOda0xYZjbcugJBdagBQx", +// "version":"0.3", +// "lock":"----" +// } +// } +//} + $user = new user(); + $user = $user->Get($_SESSION["userId"]); + + $recordReferenceList = $parameters["parameters"]["recordReferences"]; + $recordList = array(); + $c = count($recordReferenceList); + for ($i=0; $i<$c; $i++) { + array_push($recordList, array("reference", "=", $recordReferenceList[$i])); + } + + $record = new record(); + $record->DeleteList($recordList, true); + + updateUserData($parameters["parameters"]["user"], $user); + $user->Save(); + + $result["recordList"] = $recordList; + $result["lock"] = $user->lock; + $result["result"] = "done"; + + //============================================================= + } else if ($message == "deleteUser") { +//{"message":"deleteUser", "srpSharedSecret":"e8e4ca6544dca49c95b3647d8358ad54c317048b74d2ac187ac25f719c9bac58", "parameters":{}} + $user = new user(); + $user->Get($_SESSION["userId"]); + $user->Delete(true); + + $result["result"] = "ok"; + + //============================================================= + } else if ($message == "addNewOneTimePassword") { +//{ +// "message":"addNewOneTimePassword", +// "srpSharedSecret":"96fee4af06c09ce954fe7a9f87970e943449186bebf70bac0af1d6ebb818dabb", +// "parameters":{ +// "user":{ +// "header":"{\"records\":{\"index\":{\"419ea6....rsion\":\"0.1\"}", +// "statistics":"rrlwNbDt83rpWT4S72upiVsC", +// "version":"0.3", +// "lock":"----" +// }, +// "oneTimePassword":{ +// "reference":"29e26f3a2aae61fe5cf58c45296c6df4f3dceafe067ea550b455be345f44123c", +// "key":"afb848208758361a96a298b9db08995cf036011747809357a90645bc93fdfa03", +// "keyChecksum":"d1599ae443b5a566bfd93c0aeec4c81b42c0506ee09874dae050449580bb3486", +// "data":"hsyY8DHksgR52x6c4j7XAtIUeY.....dxsr3XWt7CbGg==", +// "version":"0.3" +// } +// } +//} + + fixOTPStatusTable(); + + $user = new user(); + $user = $user->Get($_SESSION["userId"]); + + $otp = new onetimepassword(); + updateOTP($parameters["parameters"]["oneTimePassword"], $otp, "ACTIVE"); + $user->AddOnetimepassword($otp); + + updateUserData($parameters["parameters"]["user"], $user); + $user->Save(); + + $result["lock"] = $user->lock; + $result["result"] = "done"; + + //============================================================= + } else if ($message == "updateOneTimePasswords") { +//{ +// "message":"updateOneTimePasswords", +// "srpSharedSecret":"c78f8ed099ea421f4dd0a4e02dbaf1f7da925f0088188d99399874ff064a3d27", +// "parameters":{ +// "user":{ +// "header":"{\"reco...sion\":\"0.1\"}", +// "statistics":"UeRq75RZHzDC7elzrh/+OB5d", +// "version":"0.3", +// "lock":"----" +// }, +// "oneTimePasswords":["f5f44c232f239efe48ab81a6236deea1a840d52946f7d4d782dad52b4c5359ce"] +// } +//} + + $user = new user(); + $user = $user->Get($_SESSION["userId"]); + + $validOtpReferences = $parameters["parameters"]["oneTimePasswords"]; + + $otpList = $user->GetOnetimepasswordList(); + $c = count($otpList); + for ($i=0; $i<$c; $i++) { + $currentOtp = $otpList[$i]; + if (arrayContainsValue($validOtpReferences, $currentOtp->reference) == false) { + $currentOtp->Delete(); + } + } + + updateUserData($parameters["parameters"]["user"], $user); + $user->Save(); + + $result["result"] = $user->lock; + + //============================================================= + } else if ($message == "getOneTimePasswordsDetails") { + + //============================================================= + } else if ($message == "getLoginHistory") { + $result["result"] = array(); + + //============================================================= + } else if ($message == "upgradeUserCredentials") { +//{ +// "message":"upgradeUserCredentials", +// "srpSharedSecret":"f1c25322e1478c8fb26063e9eef2f6fc25e0460065a31cb718f80bcff8f8a735", +// "parameters":{ +// "user":{ +// "header":"{\"reco...sion\":\"0.1\"}", +// "statistics":"s72Xva+w7CLgH+ihwqwXUbyu", +// "version":"0.3", +// "lock":"----" +// }, +// "credentials":{ +// "C":"57d15a8afbc1ae08103bd991d387ddfd8d26824276476fe709d754f098b6c26d", +// "s":"d6735fc0486f391c4f3c947928f9e61a2418e7bed2bc9b25bb43f93acc52f636", +// "v":"540c2ebbf941a481b6b2c9026c07fb46e8202e4408ed96864a696deb622baece", +// "version":"0.2" +// }, +// "oneTimePasswords":{ +// "923cdc61c4b877b263236124c44d69b459d240453a461cce8ddf7518b423ca94": "1HD6Ta0xsifEDhDwE....9WDK6tvrS6w==", +// "fb1573cb9497652a81688a099a524fb116e604c6fbc191cf33406eb8438efa5f": "CocN0cSxLmMRdgNF9....o3xhGUEY68Q==" +// } +// } +//} + + $user = new user(); + $user->Get($_SESSION["userId"]); + + $otp = new onetimepassword(); + + updateUserCredentials($parameters["parameters"]["credentials"], $user); + updateUserData($parameters["parameters"]["user"], $user); + + $otpList = $parameters["parameters"]["oneTimePasswords"]; + foreach($otpList as $otpReference=>$otpData) { + $otpList = $otp->GetList(array(array("reference", "=", $otpReference))); + $currentOtp = $otpList[0]; + $currentOtp->data = $otpData; + $currentOtp->Save(); + } + + $user->Save(); + + $result["lock"] = $user->lock; + $result["result"] = "done"; + + //============================================================= + } else if ($message == "echo") { + $result["result"] = $parameters; + } + + //============================================================= + } else { + $result["error"] = "Wrong shared secret!"; + } + break; + + case "logout": +error_log("logout"); + session_destroy(); + break; + + default: +error_log("default"); + $result["result"] = $parameters; + break; + } + + session_write_close(); + + echo(json_encode($result)); +error_log("result: ".json_encode($result)); +?> \ No newline at end of file diff --git a/backend/php/src/json/JSON.php b/backend/php/src/json/JSON.php new file mode 100644 index 0000000..0cddbdd --- /dev/null +++ b/backend/php/src/json/JSON.php @@ -0,0 +1,806 @@ + + * @author Matt Knapp + * @author Brett Stimmerman + * @copyright 2005 Michal Migurski + * @version CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $ + * @license http://www.opensource.org/licenses/bsd-license.php + * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 + */ + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_SLICE', 1); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_STR', 2); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_ARR', 3); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_OBJ', 4); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_CMT', 5); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_LOOSE_TYPE', 16); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_SUPPRESS_ERRORS', 32); + +/** + * Converts to and from JSON format. + * + * Brief example of use: + * + * + * // create a new instance of Services_JSON + * $json = new Services_JSON(); + * + * // convert a complexe value to JSON notation, and send it to the browser + * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); + * $output = $json->encode($value); + * + * print($output); + * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]] + * + * // accept incoming POST data, assumed to be in JSON notation + * $input = file_get_contents('php://input', 1000000); + * $value = $json->decode($input); + * + */ +class Services_JSON +{ + /** + * constructs a new JSON instance + * + * @param int $use object behavior flags; combine with boolean-OR + * + * possible values: + * - SERVICES_JSON_LOOSE_TYPE: loose typing. + * "{...}" syntax creates associative arrays + * instead of objects in decode(). + * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression. + * Values which can't be encoded (e.g. resources) + * appear as NULL instead of throwing errors. + * By default, a deeply-nested resource will + * bubble up with an error, so all return values + * from encode() should be checked with isError() + */ + function Services_JSON($use = 0) + { + $this->use = $use; + } + + /** + * convert a string from one UTF-16 char to one UTF-8 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf16 UTF-16 character + * @return string UTF-8 character + * @access private + */ + function utf162utf8($utf16) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16'); + } + + $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); + + switch(true) { + case ((0x7F & $bytes) == $bytes): + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x7F & $bytes); + + case (0x07FF & $bytes) == $bytes: + // return a 2-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xC0 | (($bytes >> 6) & 0x1F)) + . chr(0x80 | ($bytes & 0x3F)); + + case (0xFFFF & $bytes) == $bytes: + // return a 3-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xE0 | (($bytes >> 12) & 0x0F)) + . chr(0x80 | (($bytes >> 6) & 0x3F)) + . chr(0x80 | ($bytes & 0x3F)); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * convert a string from one UTF-8 char to one UTF-16 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf8 UTF-8 character + * @return string UTF-16 character + * @access private + */ + function utf82utf16($utf8) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8'); + } + + switch(strlen($utf8)) { + case 1: + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return $utf8; + + case 2: + // return a UTF-16 character from a 2-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x07 & (ord($utf8{0}) >> 2)) + . chr((0xC0 & (ord($utf8{0}) << 6)) + | (0x3F & ord($utf8{1}))); + + case 3: + // return a UTF-16 character from a 3-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr((0xF0 & (ord($utf8{0}) << 4)) + | (0x0F & (ord($utf8{1}) >> 2))) + . chr((0xC0 & (ord($utf8{1}) << 6)) + | (0x7F & ord($utf8{2}))); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * encodes an arbitrary variable into JSON format + * + * @param mixed $var any number, boolean, string, array, or object to be encoded. + * see argument 1 to Services_JSON() above for array-parsing behavior. + * if var is a strng, note that encode() always expects it + * to be in ASCII or UTF-8 format! + * + * @return mixed JSON string representation of input var or an error if a problem occurs + * @access public + */ + function encode($var) + { + switch (gettype($var)) { + case 'boolean': + return $var ? 'true' : 'false'; + + case 'NULL': + return 'null'; + + case 'integer': + return (int) $var; + + case 'double': + case 'float': + return (float) $var; + + case 'string': + // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT + $ascii = ''; + $strlen_var = strlen($var); + + /* + * Iterate over every character in the string, + * escaping with a slash or encoding to UTF-8 where necessary + */ + for ($c = 0; $c < $strlen_var; ++$c) { + + $ord_var_c = ord($var{$c}); + + switch (true) { + case $ord_var_c == 0x08: + $ascii .= '\b'; + break; + case $ord_var_c == 0x09: + $ascii .= '\t'; + break; + case $ord_var_c == 0x0A: + $ascii .= '\n'; + break; + case $ord_var_c == 0x0C: + $ascii .= '\f'; + break; + case $ord_var_c == 0x0D: + $ascii .= '\r'; + break; + + case $ord_var_c == 0x22: + case $ord_var_c == 0x2F: + case $ord_var_c == 0x5C: + // double quote, slash, slosh + $ascii .= '\\'.$var{$c}; + break; + + case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)): + // characters U-00000000 - U-0000007F (same as ASCII) + $ascii .= $var{$c}; + break; + + case (($ord_var_c & 0xE0) == 0xC0): + // characters U-00000080 - U-000007FF, mask 110XXXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, ord($var{$c + 1})); + $c += 1; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF0) == 0xE0): + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2})); + $c += 2; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF8) == 0xF0): + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3})); + $c += 3; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFC) == 0xF8): + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4})); + $c += 4; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFE) == 0xFC): + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4}), + ord($var{$c + 5})); + $c += 5; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + } + } + + return '"'.$ascii.'"'; + + case 'array': + /* + * As per JSON spec if any array key is not an integer + * we must treat the the whole array as an object. We + * also try to catch a sparsely populated associative + * array with numeric keys here because some JS engines + * will create an array with empty indexes up to + * max_index which can cause memory issues and because + * the keys, which may be relevant, will be remapped + * otherwise. + * + * As per the ECMA and JSON specification an object may + * have any string as a property. Unfortunately due to + * a hole in the ECMA specification if the key is a + * ECMA reserved word or starts with a digit the + * parameter is only accessible using ECMAScript's + * bracket notation. + */ + + // treat as a JSON object + if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) { + $properties = array_map(array($this, 'name_value'), + array_keys($var), + array_values($var)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + } + + // treat it like a regular array + $elements = array_map(array($this, 'encode'), $var); + + foreach($elements as $element) { + if(Services_JSON::isError($element)) { + return $element; + } + } + + return '[' . join(',', $elements) . ']'; + + case 'object': + $vars = get_object_vars($var); + + $properties = array_map(array($this, 'name_value'), + array_keys($vars), + array_values($vars)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + + default: + return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) + ? 'null' + : new Services_JSON_Error(gettype($var)." can not be encoded as JSON string"); + } + } + + /** + * array-walking function for use in generating JSON-formatted name-value pairs + * + * @param string $name name of key to use + * @param mixed $value reference to an array element to be encoded + * + * @return string JSON-formatted name-value pair, like '"name":value' + * @access private + */ + function name_value($name, $value) + { + $encoded_value = $this->encode($value); + + if(Services_JSON::isError($encoded_value)) { + return $encoded_value; + } + + return $this->encode(strval($name)) . ':' . $encoded_value; + } + + /** + * reduce a string by removing leading and trailing comments and whitespace + * + * @param $str string string value to strip of comments and whitespace + * + * @return string string value stripped of comments and whitespace + * @access private + */ + function reduce_string($str) + { + $str = preg_replace(array( + + // eliminate single line comments in '// ...' form + '#^\s*//(.+)$#m', + + // eliminate multi-line comments in '/* ... */' form, at start of string + '#^\s*/\*(.+)\*/#Us', + + // eliminate multi-line comments in '/* ... */' form, at end of string + '#/\*(.+)\*/\s*$#Us' + + ), '', $str); + + // eliminate extraneous space + return trim($str); + } + + /** + * decodes a JSON string into appropriate variable + * + * @param string $str JSON-formatted string + * + * @return mixed number, boolean, string, array, or object + * corresponding to given JSON input string. + * See argument 1 to Services_JSON() above for object-output behavior. + * Note that decode() always returns strings + * in ASCII or UTF-8 format! + * @access public + */ + function decode($str) + { + $str = $this->reduce_string($str); + + switch (strtolower($str)) { + case 'true': + return true; + + case 'false': + return false; + + case 'null': + return null; + + default: + $m = array(); + + if (is_numeric($str)) { + // Lookie-loo, it's a number + + // This would work on its own, but I'm trying to be + // good about returning integers where appropriate: + // return (float)$str; + + // Return float or int, as appropriate + return ((float)$str == (integer)$str) + ? (integer)$str + : (float)$str; + + } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) { + // STRINGS RETURNED IN UTF-8 FORMAT + $delim = substr($str, 0, 1); + $chrs = substr($str, 1, -1); + $utf8 = ''; + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c < $strlen_chrs; ++$c) { + + $substr_chrs_c_2 = substr($chrs, $c, 2); + $ord_chrs_c = ord($chrs{$c}); + + switch (true) { + case $substr_chrs_c_2 == '\b': + $utf8 .= chr(0x08); + ++$c; + break; + case $substr_chrs_c_2 == '\t': + $utf8 .= chr(0x09); + ++$c; + break; + case $substr_chrs_c_2 == '\n': + $utf8 .= chr(0x0A); + ++$c; + break; + case $substr_chrs_c_2 == '\f': + $utf8 .= chr(0x0C); + ++$c; + break; + case $substr_chrs_c_2 == '\r': + $utf8 .= chr(0x0D); + ++$c; + break; + + case $substr_chrs_c_2 == '\\"': + case $substr_chrs_c_2 == '\\\'': + case $substr_chrs_c_2 == '\\\\': + case $substr_chrs_c_2 == '\\/': + if (($delim == '"' && $substr_chrs_c_2 != '\\\'') || + ($delim == "'" && $substr_chrs_c_2 != '\\"')) { + $utf8 .= $chrs{++$c}; + } + break; + + case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)): + // single, escaped unicode character + $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2))) + . chr(hexdec(substr($chrs, ($c + 4), 2))); + $utf8 .= $this->utf162utf8($utf16); + $c += 5; + break; + + case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F): + $utf8 .= $chrs{$c}; + break; + + case ($ord_chrs_c & 0xE0) == 0xC0: + // characters U-00000080 - U-000007FF, mask 110XXXXX + //see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 2); + ++$c; + break; + + case ($ord_chrs_c & 0xF0) == 0xE0: + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 3); + $c += 2; + break; + + case ($ord_chrs_c & 0xF8) == 0xF0: + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 4); + $c += 3; + break; + + case ($ord_chrs_c & 0xFC) == 0xF8: + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 5); + $c += 4; + break; + + case ($ord_chrs_c & 0xFE) == 0xFC: + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 6); + $c += 5; + break; + + } + + } + + return $utf8; + + } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) { + // array, or object notation + + if ($str{0} == '[') { + $stk = array(SERVICES_JSON_IN_ARR); + $arr = array(); + } else { + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = array(); + } else { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = new stdClass(); + } + } + + array_push($stk, array('what' => SERVICES_JSON_SLICE, + 'where' => 0, + 'delim' => false)); + + $chrs = substr($str, 1, -1); + $chrs = $this->reduce_string($chrs); + + if ($chrs == '') { + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } else { + return $obj; + + } + } + + //print("\nparsing {$chrs}\n"); + + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c <= $strlen_chrs; ++$c) { + + $top = end($stk); + $substr_chrs_c_2 = substr($chrs, $c, 2); + + if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) { + // found a comma that is not inside a string, array, etc., + // OR we've reached the end of the character list + $slice = substr($chrs, $top['where'], ($c - $top['where'])); + array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false)); + //print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + // we are in an array, so just push an element onto the stack + array_push($arr, $this->decode($slice)); + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + // we are in an object, so figure + // out the property name and set an + // element in an associative array, + // for now + $parts = array(); + + if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // "name":value pair + $key = $this->decode($parts[1]); + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // name:value pair, where name is unquoted + $key = $parts[1]; + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } + + } + + } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) { + // found a quote, and we are not inside a string + array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c})); + //print("Found start of string at {$c}\n"); + + } elseif (($chrs{$c} == $top['delim']) && + ($top['what'] == SERVICES_JSON_IN_STR) && + ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) { + // found a quote, we're in a string, and it's not escaped + // we know that it's not escaped becase there is _not_ an + // odd number of backslashes at the end of the string so far + array_pop($stk); + //print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '[') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-bracket, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false)); + //print("Found start of array at {$c}\n"); + + } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) { + // found a right-bracket, and we're in an array + array_pop($stk); + //print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '{') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-brace, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false)); + //print("Found start of object at {$c}\n"); + + } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) { + // found a right-brace, and we're in an object + array_pop($stk); + //print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($substr_chrs_c_2 == '/*') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a comment start, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false)); + $c++; + //print("Found start of comment at {$c}\n"); + + } elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) { + // found a comment end, and we're in one now + array_pop($stk); + $c++; + + for ($i = $top['where']; $i <= $c; ++$i) + $chrs = substr_replace($chrs, ' ', $i, 1); + + //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } + + } + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + return $obj; + + } + + } + } + } + + /** + * @todo Ultimately, this should just call PEAR::isError() + */ + function isError($data, $code = null) + { + if (class_exists('pear')) { + return PEAR::isError($data, $code); + } elseif (is_object($data) && (get_class($data) == 'services_json_error' || + is_subclass_of($data, 'services_json_error'))) { + return true; + } + + return false; + } +} + +if (class_exists('PEAR_Error')) { + + class Services_JSON_Error extends PEAR_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + parent::PEAR_Error($message, $code, $mode, $options, $userinfo); + } + } + +} else { + + /** + * @todo Ultimately, this class shall be descended from PEAR_Error + */ + class Services_JSON_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + + } + } + +} + +?> diff --git a/backend/php/src/objects/class.database.php b/backend/php/src/objects/class.database.php new file mode 100644 index 0000000..e8a13f7 --- /dev/null +++ b/backend/php/src/objects/class.database.php @@ -0,0 +1,79 @@ +Database Connection class. +* @author Php Object Generator +* @version 3.0d / PHP5.1 +* @see http://www.phpobjectgenerator.com/ +* @copyright Free for personal & commercial use. (Offered under the BSD license) +*/ + Class Database +{ + public $connection; + + private function Database() + { + $databaseName = $GLOBALS['configuration']['db']; + $serverName = $GLOBALS['configuration']['host']; + $databaseUser = $GLOBALS['configuration']['user']; + $databasePassword = $GLOBALS['configuration']['pass']; + $databasePort = $GLOBALS['configuration']['port']; + $this->connection = mysql_connect ($serverName.":".$databasePort, $databaseUser, $databasePassword); + if ($this->connection) + { + if (!mysql_select_db ($databaseName)) + { + throw new Exception('I cannot find the specified database "'.$databaseName.'". Please edit configuration.php.'); + } + } + else + { + throw new Exception('I cannot connect to the database. Please edit configuration.php with your database configuration.'); + } + } + + public static function Connect() + { + static $database = null; + if (!isset($database)) + { + $database = new Database(); + } + return $database->connection; + } + + public static function Reader($query, $connection) + { + $cursor = mysql_query($query, $connection); + return $cursor; + } + + public static function Read($cursor) + { + return mysql_fetch_assoc($cursor); + } + + public static function NonQuery($query, $connection) + { + mysql_query($query, $connection); + $result = mysql_affected_rows($connection); + if ($result == -1) + { + return false; + } + return $result; + + } + + public static function Query($query, $connection) + { + $result = mysql_query($query, $connection); + return mysql_num_rows($result); + } + + public static function InsertOrUpdate($query, $connection) + { + $result = mysql_query($query, $connection); + return intval(mysql_insert_id($connection)); + } +} +?> diff --git a/backend/php/src/objects/class.onetimepassword.php b/backend/php/src/objects/class.onetimepassword.php new file mode 100644 index 0000000..90d5f1d --- /dev/null +++ b/backend/php/src/objects/class.onetimepassword.php @@ -0,0 +1,400 @@ +onetimepassword class with integrated CRUD methods. +* @author Php Object Generator +* @version POG 3.0d / PHP5.1 +* @copyright Free for personal & commercial use. (Offered under the BSD license) +* @link http://www.phpobjectgenerator.com/?language=php5.1&wrapper=pog&objectName=onetimepassword&attributeList=array+%28%0A++0+%3D%3E+%27user%27%2C%0A++1+%3D%3E+%27onetimepasswordstatus%27%2C%0A++2+%3D%3E+%27reference%27%2C%0A++3+%3D%3E+%27key%27%2C%0A++4+%3D%3E+%27key_checksum%27%2C%0A++5+%3D%3E+%27data%27%2C%0A++6+%3D%3E+%27version%27%2C%0A++7+%3D%3E+%27creation_date%27%2C%0A++8+%3D%3E+%27request_date%27%2C%0A++9+%3D%3E+%27usage_date%27%2C%0A%29&typeList=array+%28%0A++0+%3D%3E+%27BELONGSTO%27%2C%0A++1+%3D%3E+%27BELONGSTO%27%2C%0A++2+%3D%3E+%27VARCHAR%28255%29%27%2C%0A++3+%3D%3E+%27VARCHAR%28255%29%27%2C%0A++4+%3D%3E+%27VARCHAR%28255%29%27%2C%0A++5+%3D%3E+%27TEXT%27%2C%0A++6+%3D%3E+%27VARCHAR%28255%29%27%2C%0A++7+%3D%3E+%27TIMESTAMP%27%2C%0A++8+%3D%3E+%27TIMESTAMP%27%2C%0A++9+%3D%3E+%27TIMESTAMP%27%2C%0A%29 +*/ +include_once('class.pog_base.php'); +class onetimepassword extends POG_Base +{ + public $onetimepasswordId = ''; + + /** + * @var INT(11) + */ + public $userId; + + /** + * @var INT(11) + */ + public $onetimepasswordstatusId; + + /** + * @var VARCHAR(255) + */ + public $reference; + + /** + * @var VARCHAR(255) + */ + public $key; + + /** + * @var VARCHAR(255) + */ + public $key_checksum; + + /** + * @var TEXT + */ + public $data; + + /** + * @var VARCHAR(255) + */ + public $version; + + /** + * @var TIMESTAMP + */ + public $creation_date; + + /** + * @var TIMESTAMP + */ + public $request_date; + + /** + * @var TIMESTAMP + */ + public $usage_date; + + public $pog_attribute_type = array( + "onetimepasswordId" => array('db_attributes' => array("NUMERIC", "INT")), + "user" => array('db_attributes' => array("OBJECT", "BELONGSTO")), + "onetimepasswordstatus" => array('db_attributes' => array("OBJECT", "BELONGSTO")), + "reference" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "key" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "key_checksum" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "data" => array('db_attributes' => array("TEXT", "TEXT")), + "version" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "creation_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "request_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "usage_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + ); + public $pog_query; + + + /** + * Getter for some private attributes + * @return mixed $attribute + */ + public function __get($attribute) + { + if (isset($this->{"_".$attribute})) + { + return $this->{"_".$attribute}; + } + else + { + return false; + } + } + + function onetimepassword($reference='', $key='', $key_checksum='', $data='', $version='', $creation_date='', $request_date='', $usage_date='') + { + $this->reference = $reference; + $this->key = $key; + $this->key_checksum = $key_checksum; + $this->data = $data; + $this->version = $version; + $this->creation_date = $creation_date; + $this->request_date = $request_date; + $this->usage_date = $usage_date; + } + + + /** + * Gets object from database + * @param integer $onetimepasswordId + * @return object $onetimepassword + */ + function Get($onetimepasswordId) + { + $connection = Database::Connect(); + $this->pog_query = "select * from `onetimepassword` where `onetimepasswordid`='".intval($onetimepasswordId)."' LIMIT 1"; + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $this->onetimepasswordId = $row['onetimepasswordid']; + $this->userId = $row['userid']; + $this->onetimepasswordstatusId = $row['onetimepasswordstatusid']; + $this->reference = $this->Unescape($row['reference']); + $this->key = $this->Unescape($row['key']); + $this->key_checksum = $this->Unescape($row['key_checksum']); + $this->data = $this->Unescape($row['data']); + $this->version = $this->Unescape($row['version']); + $this->creation_date = $row['creation_date']; + $this->request_date = $row['request_date']; + $this->usage_date = $row['usage_date']; + } + return $this; + } + + + /** + * Returns a sorted array of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array $onetimepasswordList + */ + function GetList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $connection = Database::Connect(); + $sqlLimit = ($limit != '' ? "LIMIT $limit" : ''); + $this->pog_query = "select * from `onetimepassword` "; + $onetimepasswordList = Array(); + if (sizeof($fcv_array) > 0) + { + $this->pog_query .= " where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $this->pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) != 1) + { + $this->pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? "BASE64_DECODE(".$fcv_array[$i][2].")" : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "BASE64_DECODE(`".$fcv_array[$i][0]."`) ".$fcv_array[$i][1]." ".$value; + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$this->Escape($fcv_array[$i][2])."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + } + } + if ($sortBy != '') + { + if (isset($this->pog_attribute_type[$sortBy]['db_attributes']) && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $sortBy = "BASE64_DECODE($sortBy) "; + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "onetimepasswordid"; + } + $this->pog_query .= " order by ".$sortBy." ".($ascending ? "asc" : "desc")." $sqlLimit"; + $thisObjectName = get_class($this); + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $onetimepassword = new $thisObjectName(); + $onetimepassword->onetimepasswordId = $row['onetimepasswordid']; + $onetimepassword->userId = $row['userid']; + $onetimepassword->onetimepasswordstatusId = $row['onetimepasswordstatusid']; + $onetimepassword->reference = $this->Unescape($row['reference']); + $onetimepassword->key = $this->Unescape($row['key']); + $onetimepassword->key_checksum = $this->Unescape($row['key_checksum']); + $onetimepassword->data = $this->Unescape($row['data']); + $onetimepassword->version = $this->Unescape($row['version']); + $onetimepassword->creation_date = $row['creation_date']; + $onetimepassword->request_date = $row['request_date']; + $onetimepassword->usage_date = $row['usage_date']; + $onetimepasswordList[] = $onetimepassword; + } + return $onetimepasswordList; + } + + + /** + * Saves the object to the database + * @return integer $onetimepasswordId + */ + function Save() + { + $connection = Database::Connect(); + $this->pog_query = "select `onetimepasswordid` from `onetimepassword` where `onetimepasswordid`='".$this->onetimepasswordId."' LIMIT 1"; + $rows = Database::Query($this->pog_query, $connection); + if ($rows > 0) + { + $this->pog_query = "update `onetimepassword` set + `userid`='".$this->userId."', + `onetimepasswordstatusid`='".$this->onetimepasswordstatusId."', + `reference`='".$this->Escape($this->reference)."', + `key`='".$this->Escape($this->key)."', + `key_checksum`='".$this->Escape($this->key_checksum)."', + `data`='".$this->Escape($this->data)."', + `version`='".$this->Escape($this->version)."', + `creation_date`='".$this->creation_date."', + `request_date`='".$this->request_date."', + `usage_date`='".$this->usage_date."' where `onetimepasswordid`='".$this->onetimepasswordId."'"; + } + else + { + $this->pog_query = "insert into `onetimepassword` (`userid`, `onetimepasswordstatusid`, `reference`, `key`, `key_checksum`, `data`, `version`, `creation_date`, `request_date`, `usage_date` ) values ( + '".$this->userId."', + '".$this->onetimepasswordstatusId."', + '".$this->Escape($this->reference)."', + '".$this->Escape($this->key)."', + '".$this->Escape($this->key_checksum)."', + '".$this->Escape($this->data)."', + '".$this->Escape($this->version)."', + '".$this->creation_date."', + '".$this->request_date."', + '".$this->usage_date."' )"; + } + $insertId = Database::InsertOrUpdate($this->pog_query, $connection); + if ($this->onetimepasswordId == "") + { + $this->onetimepasswordId = $insertId; + } + return $this->onetimepasswordId; + } + + + /** + * Clones the object and saves it to the database + * @return integer $onetimepasswordId + */ + function SaveNew() + { + $this->onetimepasswordId = ''; + return $this->Save(); + } + + + /** + * Deletes the object from the database + * @return boolean + */ + function Delete() + { + $connection = Database::Connect(); + $this->pog_query = "delete from `onetimepassword` where `onetimepasswordid`='".$this->onetimepasswordId."'"; + return Database::NonQuery($this->pog_query, $connection); + } + + + /** + * Deletes a list of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param bool $deep + * @return + */ + function DeleteList($fcv_array) + { + if (sizeof($fcv_array) > 0) + { + $connection = Database::Connect(); + $pog_query = "delete from `onetimepassword` where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) !== 1) + { + $pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$this->Escape($fcv_array[$i][2])."'"; + } + else + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$fcv_array[$i][2]."'"; + } + } + } + return Database::NonQuery($pog_query, $connection); + } + } + + + /** + * Associates the user object to this one + * @return boolean + */ + function GetUser() + { + $user = new user(); + return $user->Get($this->userId); + } + + + /** + * Associates the user object to this one + * @return + */ + function SetUser(&$user) + { + $this->userId = $user->userId; + } + + + /** + * Associates the onetimepasswordstatus object to this one + * @return boolean + */ + function GetOnetimepasswordstatus() + { + $onetimepasswordstatus = new onetimepasswordstatus(); + return $onetimepasswordstatus->Get($this->onetimepasswordstatusId); + } + + + /** + * Associates the onetimepasswordstatus object to this one + * @return + */ + function SetOnetimepasswordstatus(&$onetimepasswordstatus) + { + $this->onetimepasswordstatusId = $onetimepasswordstatus->onetimepasswordstatusId; + } +} +?> \ No newline at end of file diff --git a/backend/php/src/objects/class.onetimepasswordstatus.php b/backend/php/src/objects/class.onetimepasswordstatus.php new file mode 100644 index 0000000..f0ef08a --- /dev/null +++ b/backend/php/src/objects/class.onetimepasswordstatus.php @@ -0,0 +1,368 @@ +onetimepasswordstatus class with integrated CRUD methods. +* @author Php Object Generator +* @version POG 3.0d / PHP5.1 MYSQL +* @see http://www.phpobjectgenerator.com/plog/tutorials/45/pdo-mysql +* @copyright Free for personal & commercial use. (Offered under the BSD license) +* @link http://www.phpobjectgenerator.com/?language=php5.1&wrapper=pdo&pdoDriver=mysql&objectName=onetimepasswordstatus&attributeList=array+%28%0A++0+%3D%3E+%27onetimepassword%27%2C%0A++1+%3D%3E+%27code%27%2C%0A++2+%3D%3E+%27name%27%2C%0A++3+%3D%3E+%27description%27%2C%0A%29&typeList=array%2B%2528%250A%2B%2B0%2B%253D%253E%2B%2527HASMANY%2527%252C%250A%2B%2B1%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B2%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B3%2B%253D%253E%2B%2527TEXT%2527%252C%250A%2529 +*/ +include_once('class.pog_base.php'); +class onetimepasswordstatus extends POG_Base +{ + public $onetimepasswordstatusId = ''; + + /** + * @var private array of onetimepassword objects + */ + private $_onetimepasswordList = array(); + + /** + * @var VARCHAR(255) + */ + public $code; + + /** + * @var VARCHAR(255) + */ + public $name; + + /** + * @var TEXT + */ + public $description; + + public $pog_attribute_type = array( + "onetimepasswordstatusId" => array('db_attributes' => array("NUMERIC", "INT")), + "onetimepassword" => array('db_attributes' => array("OBJECT", "HASMANY")), + "code" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "name" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "description" => array('db_attributes' => array("TEXT", "TEXT")), + ); + public $pog_query; + + + /** + * Getter for some private attributes + * @return mixed $attribute + */ + public function __get($attribute) + { + if (isset($this->{"_".$attribute})) + { + return $this->{"_".$attribute}; + } + else + { + return false; + } + } + + function onetimepasswordstatus($code='', $name='', $description='') + { + $this->_onetimepasswordList = array(); + $this->code = $code; + $this->name = $name; + $this->description = $description; + } + + + /** + * Gets object from database + * @param integer $onetimepasswordstatusId + * @return object $onetimepasswordstatus + */ + function Get($onetimepasswordstatusId) + { + $connection = Database::Connect(); + $this->pog_query = "select * from `onetimepasswordstatus` where `onetimepasswordstatusid`='".intval($onetimepasswordstatusId)."' LIMIT 1"; + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $this->onetimepasswordstatusId = $row['onetimepasswordstatusid']; + $this->code = $this->Unescape($row['code']); + $this->name = $this->Unescape($row['name']); + $this->description = $this->Unescape($row['description']); + } + return $this; + } + + + /** + * Returns a sorted array of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array $onetimepasswordstatusList + */ + function GetList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $connection = Database::Connect(); + $sqlLimit = ($limit != '' ? "LIMIT $limit" : ''); + $this->pog_query = "select * from `onetimepasswordstatus` "; + $onetimepasswordstatusList = Array(); + if (sizeof($fcv_array) > 0) + { + $this->pog_query .= " where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $this->pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) != 1) + { + $this->pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? "BASE64_DECODE(".$fcv_array[$i][2].")" : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "BASE64_DECODE(`".$fcv_array[$i][0]."`) ".$fcv_array[$i][1]." ".$value; + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$this->Escape($fcv_array[$i][2])."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + } + } + if ($sortBy != '') + { + if (isset($this->pog_attribute_type[$sortBy]['db_attributes']) && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $sortBy = "BASE64_DECODE($sortBy) "; + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "onetimepasswordstatusid"; + } + $this->pog_query .= " order by ".$sortBy." ".($ascending ? "asc" : "desc")." $sqlLimit"; + $thisObjectName = get_class($this); + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $onetimepasswordstatus = new $thisObjectName(); + $onetimepasswordstatus->onetimepasswordstatusId = $row['onetimepasswordstatusid']; + $onetimepasswordstatus->code = $this->Unescape($row['code']); + $onetimepasswordstatus->name = $this->Unescape($row['name']); + $onetimepasswordstatus->description = $this->Unescape($row['description']); + $onetimepasswordstatusList[] = $onetimepasswordstatus; + } + return $onetimepasswordstatusList; + } + + + /** + * Saves the object to the database + * @return integer $onetimepasswordstatusId + */ + function Save($deep = true) + { + $connection = Database::Connect(); + $this->pog_query = "select `onetimepasswordstatusid` from `onetimepasswordstatus` where `onetimepasswordstatusid`='".$this->onetimepasswordstatusId."' LIMIT 1"; + $rows = Database::Query($this->pog_query, $connection); + if ($rows > 0) + { + $this->pog_query = "update `onetimepasswordstatus` set + `code`='".$this->Escape($this->code)."', + `name`='".$this->Escape($this->name)."', + `description`='".$this->Escape($this->description)."' where `onetimepasswordstatusid`='".$this->onetimepasswordstatusId."'"; + } + else + { + $this->pog_query = "insert into `onetimepasswordstatus` (`code`, `name`, `description` ) values ( + '".$this->Escape($this->code)."', + '".$this->Escape($this->name)."', + '".$this->Escape($this->description)."' )"; + } + $insertId = Database::InsertOrUpdate($this->pog_query, $connection); + if ($this->onetimepasswordstatusId == "") + { + $this->onetimepasswordstatusId = $insertId; + } + if ($deep) + { + foreach ($this->_onetimepasswordList as $onetimepassword) + { + $onetimepassword->onetimepasswordstatusId = $this->onetimepasswordstatusId; + $onetimepassword->Save($deep); + } + } + return $this->onetimepasswordstatusId; + } + + + /** + * Clones the object and saves it to the database + * @return integer $onetimepasswordstatusId + */ + function SaveNew($deep = false) + { + $this->onetimepasswordstatusId = ''; + return $this->Save($deep); + } + + + /** + * Deletes the object from the database + * @return boolean + */ + function Delete($deep = false, $across = false) + { + if ($deep) + { + $onetimepasswordList = $this->GetOnetimepasswordList(); + foreach ($onetimepasswordList as $onetimepassword) + { + $onetimepassword->Delete($deep, $across); + } + } + $connection = Database::Connect(); + $this->pog_query = "delete from `onetimepasswordstatus` where `onetimepasswordstatusid`='".$this->onetimepasswordstatusId."'"; + return Database::NonQuery($this->pog_query, $connection); + } + + + /** + * Deletes a list of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param bool $deep + * @return + */ + function DeleteList($fcv_array, $deep = false, $across = false) + { + if (sizeof($fcv_array) > 0) + { + if ($deep || $across) + { + $objectList = $this->GetList($fcv_array); + foreach ($objectList as $object) + { + $object->Delete($deep, $across); + } + } + else + { + $connection = Database::Connect(); + $pog_query = "delete from `onetimepasswordstatus` where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) !== 1) + { + $pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$this->Escape($fcv_array[$i][2])."'"; + } + else + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$fcv_array[$i][2]."'"; + } + } + } + return Database::NonQuery($pog_query, $connection); + } + } + } + + + /** + * Gets a list of onetimepassword objects associated to this one + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array of onetimepassword objects + */ + function GetOnetimepasswordList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $onetimepassword = new onetimepassword(); + $fcv_array[] = array("onetimepasswordstatusId", "=", $this->onetimepasswordstatusId); + $dbObjects = $onetimepassword->GetList($fcv_array, $sortBy, $ascending, $limit); + return $dbObjects; + } + + + /** + * Makes this the parent of all onetimepassword objects in the onetimepassword List array. Any existing onetimepassword will become orphan(s) + * @return null + */ + function SetOnetimepasswordList(&$list) + { + $this->_onetimepasswordList = array(); + $existingOnetimepasswordList = $this->GetOnetimepasswordList(); + foreach ($existingOnetimepasswordList as $onetimepassword) + { + $onetimepassword->onetimepasswordstatusId = ''; + $onetimepassword->Save(false); + } + $this->_onetimepasswordList = $list; + } + + + /** + * Associates the onetimepassword object to this one + * @return + */ + function AddOnetimepassword(&$onetimepassword) + { + $onetimepassword->onetimepasswordstatusId = $this->onetimepasswordstatusId; + $found = false; + foreach($this->_onetimepasswordList as $onetimepassword2) + { + if ($onetimepassword->onetimepasswordId > 0 && $onetimepassword->onetimepasswordId == $onetimepassword2->onetimepasswordId) + { + $found = true; + break; + } + } + if (!$found) + { + $this->_onetimepasswordList[] = $onetimepassword; + } + } +} +?> \ No newline at end of file diff --git a/backend/php/src/objects/class.pog_base.php b/backend/php/src/objects/class.pog_base.php new file mode 100644 index 0000000..6a8f570 --- /dev/null +++ b/backend/php/src/objects/class.pog_base.php @@ -0,0 +1,143 @@ +Execute(); + } + + /** + * constructor + * + * @return POG_Base + */ + private function POG_Base() + { + } + + + function SetFieldAttribute($fieldName, $attributeName, $attributeValue) + { + if (isset($this->pog_attribute_type[$fieldName]) && isset($this->pog_attribute_type[$fieldName][$attributeName])) + { + $this->pog_attribute_type[$fieldName][$attributeName] = $attributeValue; + } + } + + function GetFieldAttribute($fieldName, $attributeName) + { + if (isset($this->pog_attribute_type[$fieldName]) && isset($this->pog_attribute_type[$fieldName][$attributeName])) + { + return $this->pog_attribute_type[$fieldName][$attributeName]; + } + return null; + } + + /////////////////////////// + // Data manipulation + /////////////////////////// + + /** + * This function will try to encode $text to base64, except when $text is a number. This allows us to Escape all data before they're inserted in the database, regardless of attribute type. + * @param string $text + * @return string encoded to base64 + */ + public function Escape($text) + { + if ($GLOBALS['configuration']['db_encoding'] && !is_numeric($text)) + { + return base64_encode($text); + } + return addslashes($text); + } + + /** + * Enter description here... + * + * @param unknown_type $text + * @return unknown + */ + public function Unescape($text) + { + if ($GLOBALS['configuration']['db_encoding'] && !is_numeric($text)) + { + return base64_decode($text); + } + return stripcslashes($text); + } + + + //////////////////////////////// + // Table -> Object Mapping + //////////////////////////////// + + /** + * Executes $query against database and returns the result set as an array of POG objects + * + * @param string $query. SQL query to execute against database + * @param string $objectClass. POG Object type to return + * @param bool $lazy. If true, will also load all children/sibling + */ + public function FetchObjects($query, $objectClass, $lazy = true) + { + $databaseConnection = Database::Connect(); + $result = Database::Query($query, $databaseConnection); + $objectList = $this->CreateObjects($result, $objectClass, $lazy); + return $objectList; + } + + private function CreateObjects($mysql_result, $objectClass, $lazyLoad = true) + { + $objectList = array(); + while ($row = mysql_fetch_assoc($mysql_result)) + { + $pog_object = new $objectClass(); + $this->PopulateObjectAttributes($row, $pog_object); + $objectList[] = $pog_object; + } + return $objectList; + } + + private function PopulateObjectAttributes($fetched_row, $pog_object) + { + foreach ($this->GetAttributes($pog_object) as $column) + { + $pog_object->{$column} = $this->Unescape($fetched_row[strtolower($column)]); + } + return $pog_object; + } + + private function GetAttributes($object) + { + $columns = array(); + foreach ($object->pog_attribute_type as $att => $properties) + { + if ($properties['db_attributes'][0] != 'OBJECT') + { + $columns[] = $att; + } + } + return $columns; + } + + //misc + public static function IsColumn($value) + { + if (strlen($value) > 2) + { + if (substr($value, 0, 1) == '`' && substr($value, strlen($value) - 1, 1) == '`') + { + return true; + } + return false; + } + return false; + } +} +?> \ No newline at end of file diff --git a/backend/php/src/objects/class.record.php b/backend/php/src/objects/class.record.php new file mode 100644 index 0000000..a269e75 --- /dev/null +++ b/backend/php/src/objects/class.record.php @@ -0,0 +1,436 @@ +record class with integrated CRUD methods. +* @author Php Object Generator +* @version POG 3.0e / PHP5.1 MYSQL +* @see http://www.phpobjectgenerator.com/plog/tutorials/45/pdo-mysql +* @copyright Free for personal & commercial use. (Offered under the BSD license) +* @link http://www.phpobjectgenerator.com/?language=php5.1&wrapper=pdo&pdoDriver=mysql&objectName=record&attributeList=array+%28%0A++0+%3D%3E+%27user%27%2C%0A++1+%3D%3E+%27recordversion%27%2C%0A++2+%3D%3E+%27reference%27%2C%0A++3+%3D%3E+%27data%27%2C%0A++4+%3D%3E+%27version%27%2C%0A++5+%3D%3E+%27creation_date%27%2C%0A++6+%3D%3E+%27update_date%27%2C%0A++7+%3D%3E+%27access_date%27%2C%0A%29&typeList=array%2B%2528%250A%2B%2B0%2B%253D%253E%2B%2527BELONGSTO%2527%252C%250A%2B%2B1%2B%253D%253E%2B%2527HASMANY%2527%252C%250A%2B%2B2%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B3%2B%253D%253E%2B%2527LONGTEXT%2527%252C%250A%2B%2B4%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B5%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2B%2B6%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2B%2B7%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2529 +*/ +include_once('class.pog_base.php'); +class record extends POG_Base +{ + public $recordId = ''; + + /** + * @var INT(11) + */ + public $userId; + + /** + * @var private array of recordversion objects + */ + private $_recordversionList = array(); + + /** + * @var VARCHAR(255) + */ + public $reference; + + /** + * @var LONGTEXT + */ + public $data; + + /** + * @var VARCHAR(255) + */ + public $version; + + /** + * @var TIMESTAMP + */ + public $creation_date; + + /** + * @var TIMESTAMP + */ + public $update_date; + + /** + * @var TIMESTAMP + */ + public $access_date; + + public $pog_attribute_type = array( + "recordId" => array('db_attributes' => array("NUMERIC", "INT")), + "user" => array('db_attributes' => array("OBJECT", "BELONGSTO")), + "recordversion" => array('db_attributes' => array("OBJECT", "HASMANY")), + "reference" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "data" => array('db_attributes' => array("TEXT", "LONGTEXT")), + "version" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "creation_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "update_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "access_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + ); + public $pog_query; + + + /** + * Getter for some private attributes + * @return mixed $attribute + */ + public function __get($attribute) + { + if (isset($this->{"_".$attribute})) + { + return $this->{"_".$attribute}; + } + else + { + return false; + } + } + + function record($reference='', $data='', $version='', $creation_date='', $update_date='', $access_date='') + { + $this->_recordversionList = array(); + $this->reference = $reference; + $this->data = $data; + $this->version = $version; + $this->creation_date = $creation_date; + $this->update_date = $update_date; + $this->access_date = $access_date; + } + + + /** + * Gets object from database + * @param integer $recordId + * @return object $record + */ + function Get($recordId) + { + $connection = Database::Connect(); + $this->pog_query = "select * from `record` where `recordid`='".intval($recordId)."' LIMIT 1"; + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $this->recordId = $row['recordid']; + $this->userId = $row['userid']; + $this->reference = $this->Unescape($row['reference']); + $this->data = $this->Unescape($row['data']); + $this->version = $this->Unescape($row['version']); + $this->creation_date = $row['creation_date']; + $this->update_date = $row['update_date']; + $this->access_date = $row['access_date']; + } + return $this; + } + + + /** + * Returns a sorted array of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array $recordList + */ + function GetList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $connection = Database::Connect(); + $sqlLimit = ($limit != '' ? "LIMIT $limit" : ''); + $this->pog_query = "select * from `record` "; + $recordList = Array(); + if (sizeof($fcv_array) > 0) + { + $this->pog_query .= " where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $this->pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) != 1) + { + $this->pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? "BASE64_DECODE(".$fcv_array[$i][2].")" : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "BASE64_DECODE(`".$fcv_array[$i][0]."`) ".$fcv_array[$i][1]." ".$value; + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$this->Escape($fcv_array[$i][2])."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + } + } + if ($sortBy != '') + { + if (isset($this->pog_attribute_type[$sortBy]['db_attributes']) && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $sortBy = "BASE64_DECODE($sortBy) "; + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "recordid"; + } + $this->pog_query .= " order by ".$sortBy." ".($ascending ? "asc" : "desc")." $sqlLimit"; + $thisObjectName = get_class($this); + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $record = new $thisObjectName(); + $record->recordId = $row['recordid']; + $record->userId = $row['userid']; + $record->reference = $this->Unescape($row['reference']); + $record->data = $this->Unescape($row['data']); + $record->version = $this->Unescape($row['version']); + $record->creation_date = $row['creation_date']; + $record->update_date = $row['update_date']; + $record->access_date = $row['access_date']; + $recordList[] = $record; + } + return $recordList; + } + + + /** + * Saves the object to the database + * @return integer $recordId + */ + function Save($deep = true) + { + $connection = Database::Connect(); + $this->pog_query = "select `recordid` from `record` where `recordid`='".$this->recordId."' LIMIT 1"; + $rows = Database::Query($this->pog_query, $connection); + if ($rows > 0) + { + $this->pog_query = "update `record` set + `userid`='".$this->userId."', + `reference`='".$this->Escape($this->reference)."', + `data`='".$this->Escape($this->data)."', + `version`='".$this->Escape($this->version)."', + `creation_date`='".$this->creation_date."', + `update_date`='".$this->update_date."', + `access_date`='".$this->access_date."' where `recordid`='".$this->recordId."'"; + } + else + { + $this->pog_query = "insert into `record` (`userid`, `reference`, `data`, `version`, `creation_date`, `update_date`, `access_date` ) values ( + '".$this->userId."', + '".$this->Escape($this->reference)."', + '".$this->Escape($this->data)."', + '".$this->Escape($this->version)."', + '".$this->creation_date."', + '".$this->update_date."', + '".$this->access_date."' )"; + } + $insertId = Database::InsertOrUpdate($this->pog_query, $connection); + if ($this->recordId == "") + { + $this->recordId = $insertId; + } + if ($deep) + { + foreach ($this->_recordversionList as $recordversion) + { + $recordversion->recordId = $this->recordId; + $recordversion->Save($deep); + } + } + return $this->recordId; + } + + + /** + * Clones the object and saves it to the database + * @return integer $recordId + */ + function SaveNew($deep = false) + { + $this->recordId = ''; + return $this->Save($deep); + } + + + /** + * Deletes the object from the database + * @return boolean + */ + function Delete($deep = false, $across = false) + { + if ($deep) + { + $recordversionList = $this->GetRecordversionList(); + foreach ($recordversionList as $recordversion) + { + $recordversion->Delete($deep, $across); + } + } + $connection = Database::Connect(); + $this->pog_query = "delete from `record` where `recordid`='".$this->recordId."'"; + return Database::NonQuery($this->pog_query, $connection); + } + + + /** + * Deletes a list of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param bool $deep + * @return + */ + function DeleteList($fcv_array, $deep = false, $across = false) + { + if (sizeof($fcv_array) > 0) + { + if ($deep || $across) + { + $objectList = $this->GetList($fcv_array); + foreach ($objectList as $object) + { + $object->Delete($deep, $across); + } + } + else + { + $connection = Database::Connect(); + $pog_query = "delete from `record` where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) !== 1) + { + $pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$this->Escape($fcv_array[$i][2])."'"; + } + else + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$fcv_array[$i][2]."'"; + } + } + } + return Database::NonQuery($pog_query, $connection); + } + } + } + + + /** + * Associates the user object to this one + * @return boolean + */ + function GetUser() + { + $user = new user(); + return $user->Get($this->userId); + } + + + /** + * Associates the user object to this one + * @return + */ + function SetUser(&$user) + { + $this->userId = $user->userId; + } + + + /** + * Gets a list of recordversion objects associated to this one + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array of recordversion objects + */ + function GetRecordversionList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $recordversion = new recordversion(); + $fcv_array[] = array("recordId", "=", $this->recordId); + $dbObjects = $recordversion->GetList($fcv_array, $sortBy, $ascending, $limit); + return $dbObjects; + } + + + /** + * Makes this the parent of all recordversion objects in the recordversion List array. Any existing recordversion will become orphan(s) + * @return null + */ + function SetRecordversionList(&$list) + { + $this->_recordversionList = array(); + $existingRecordversionList = $this->GetRecordversionList(); + foreach ($existingRecordversionList as $recordversion) + { + $recordversion->recordId = ''; + $recordversion->Save(false); + } + $this->_recordversionList = $list; + } + + + /** + * Associates the recordversion object to this one + * @return + */ + function AddRecordversion(&$recordversion) + { + $recordversion->recordId = $this->recordId; + $found = false; + foreach($this->_recordversionList as $recordversion2) + { + if ($recordversion->recordversionId > 0 && $recordversion->recordversionId == $recordversion2->recordversionId) + { + $found = true; + break; + } + } + if (!$found) + { + $this->_recordversionList[] = $recordversion; + } + } +} +?> \ No newline at end of file diff --git a/backend/php/src/objects/class.recordversion.php b/backend/php/src/objects/class.recordversion.php new file mode 100644 index 0000000..3fbc436 --- /dev/null +++ b/backend/php/src/objects/class.recordversion.php @@ -0,0 +1,381 @@ +recordversion class with integrated CRUD methods. +* @author Php Object Generator +* @version POG 3.0e / PHP5.1 MYSQL +* @see http://www.phpobjectgenerator.com/plog/tutorials/45/pdo-mysql +* @copyright Free for personal & commercial use. (Offered under the BSD license) +* @link http://www.phpobjectgenerator.com/?language=php5.1=pdo&pdoDriver=mysql&objectName=recordversion&attributeList=array+%28%0A++0+%3D%3E+%27record%27%2C%0A++1+%3D%3E+%27reference%27%2C%0A++2+%3D%3E+%27header%27%2C%0A++3+%3D%3E+%27data%27%2C%0A++4+%3D%3E+%27version%27%2C%0A++5+%3D%3E+%27previous_version_key%27%2C%0A++6+%3D%3E+%27previous_version_id%27%2C%0A++7+%3D%3E+%27creation_date%27%2C%0A++8+%3D%3E+%27update_date%27%2C%0A++9+%3D%3E+%27access_date%27%2C%0A%29&typeList=array%2B%2528%250A%2B%2B0%2B%253D%253E%2B%2527BELONGSTO%2527%252C%250A%2B%2B1%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B2%2B%253D%253E%2B%2527LONGTEXT%2527%252C%250A%2B%2B3%2B%253D%253E%2B%2527LONGTEXT%2527%252C%250A%2B%2B4%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B5%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B6%2B%253D%253E%2B%2527INT%2527%252C%250A%2B%2B7%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2B%2B8%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2B%2B9%2B%253D%253E%2B%2527TIMESTAMP%2527%252C%250A%2529 +*/ +include_once('class.pog_base.php'); +class recordversion extends POG_Base +{ + public $recordversionId = ''; + + /** + * @var INT(11) + */ + public $recordId; + + /** + * @var VARCHAR(255) + */ + public $reference; + + /** + * @var LONGTEXT + */ + public $header; + + /** + * @var LONGTEXT + */ + public $data; + + /** + * @var VARCHAR(255) + */ + public $version; + + /** + * @var VARCHAR(255) + */ + public $previous_version_key; + + /** + * @var INT + */ + public $previous_version_id; + + /** + * @var TIMESTAMP + */ + public $creation_date; + + /** + * @var TIMESTAMP + */ + public $update_date; + + /** + * @var TIMESTAMP + */ + public $access_date; + + public $pog_attribute_type = array( + "recordversionId" => array('db_attributes' => array("NUMERIC", "INT")), + "record" => array('db_attributes' => array("OBJECT", "BELONGSTO")), + "reference" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "header" => array('db_attributes' => array("TEXT", "LONGTEXT")), + "data" => array('db_attributes' => array("TEXT", "LONGTEXT")), + "version" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "previous_version_key" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "previous_version_id" => array('db_attributes' => array("NUMERIC", "INT")), + "creation_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "update_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + "access_date" => array('db_attributes' => array("NUMERIC", "TIMESTAMP")), + ); + public $pog_query; + + + /** + * Getter for some private attributes + * @return mixed $attribute + */ + public function __get($attribute) + { + if (isset($this->{"_".$attribute})) + { + return $this->{"_".$attribute}; + } + else + { + return false; + } + } + + function recordversion($reference='', $header='', $data='', $version='', $previous_version_key='', $previous_version_id='', $creation_date='', $update_date='', $access_date='') + { + $this->reference = $reference; + $this->header = $header; + $this->data = $data; + $this->version = $version; + $this->previous_version_key = $previous_version_key; + $this->previous_version_id = $previous_version_id; + $this->creation_date = $creation_date; + $this->update_date = $update_date; + $this->access_date = $access_date; + } + + + /** + * Gets object from database + * @param integer $recordversionId + * @return object $recordversion + */ + function Get($recordversionId) + { + $connection = Database::Connect(); + $this->pog_query = "select * from `recordversion` where `recordversionid`='".intval($recordversionId)."' LIMIT 1"; + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $this->recordversionId = $row['recordversionid']; + $this->recordId = $row['recordid']; + $this->reference = $this->Unescape($row['reference']); + $this->header = $this->Unescape($row['header']); + $this->data = $this->Unescape($row['data']); + $this->version = $this->Unescape($row['version']); + $this->previous_version_key = $this->Unescape($row['previous_version_key']); + $this->previous_version_id = $this->Unescape($row['previous_version_id']); + $this->creation_date = $row['creation_date']; + $this->update_date = $row['update_date']; + $this->access_date = $row['access_date']; + } + return $this; + } + + + /** + * Returns a sorted array of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array $recordversionList + */ + function GetList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $connection = Database::Connect(); + $sqlLimit = ($limit != '' ? "LIMIT $limit" : ''); + $this->pog_query = "select * from `recordversion` "; + $recordversionList = Array(); + if (sizeof($fcv_array) > 0) + { + $this->pog_query .= " where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $this->pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) != 1) + { + $this->pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? "BASE64_DECODE(".$fcv_array[$i][2].")" : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "BASE64_DECODE(`".$fcv_array[$i][0]."`) ".$fcv_array[$i][1]." ".$value; + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$this->Escape($fcv_array[$i][2])."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + } + } + if ($sortBy != '') + { + if (isset($this->pog_attribute_type[$sortBy]['db_attributes']) && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $sortBy = "BASE64_DECODE($sortBy) "; + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "recordversionid"; + } + $this->pog_query .= " order by ".$sortBy." ".($ascending ? "asc" : "desc")." $sqlLimit"; + $thisObjectName = get_class($this); + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $recordversion = new $thisObjectName(); + $recordversion->recordversionId = $row['recordversionid']; + $recordversion->recordId = $row['recordid']; + $recordversion->reference = $this->Unescape($row['reference']); + $recordversion->header = $this->Unescape($row['header']); + $recordversion->data = $this->Unescape($row['data']); + $recordversion->version = $this->Unescape($row['version']); + $recordversion->previous_version_key = $this->Unescape($row['previous_version_key']); + $recordversion->previous_version_id = $this->Unescape($row['previous_version_id']); + $recordversion->creation_date = $row['creation_date']; + $recordversion->update_date = $row['update_date']; + $recordversion->access_date = $row['access_date']; + $recordversionList[] = $recordversion; + } + return $recordversionList; + } + + + /** + * Saves the object to the database + * @return integer $recordversionId + */ + function Save() + { + $connection = Database::Connect(); + $this->pog_query = "select `recordversionid` from `recordversion` where `recordversionid`='".$this->recordversionId."' LIMIT 1"; + $rows = Database::Query($this->pog_query, $connection); + if ($rows > 0) + { + $this->pog_query = "update `recordversion` set + `recordid`='".$this->recordId."', + `reference`='".$this->Escape($this->reference)."', + `header`='".$this->Escape($this->header)."', + `data`='".$this->Escape($this->data)."', + `version`='".$this->Escape($this->version)."', + `previous_version_key`='".$this->Escape($this->previous_version_key)."', + `previous_version_id`='".$this->Escape($this->previous_version_id)."', + `creation_date`='".$this->creation_date."', + `update_date`='".$this->update_date."', + `access_date`='".$this->access_date."' where `recordversionid`='".$this->recordversionId."'"; + } + else + { + $this->pog_query = "insert into `recordversion` (`recordid`, `reference`, `header`, `data`, `version`, `previous_version_key`, `previous_version_id`, `creation_date`, `update_date`, `access_date` ) values ( + '".$this->recordId."', + '".$this->Escape($this->reference)."', + '".$this->Escape($this->header)."', + '".$this->Escape($this->data)."', + '".$this->Escape($this->version)."', + '".$this->Escape($this->previous_version_key)."', + '".$this->Escape($this->previous_version_id)."', + '".$this->creation_date."', + '".$this->update_date."', + '".$this->access_date."' )"; + } + $insertId = Database::InsertOrUpdate($this->pog_query, $connection); + if ($this->recordversionId == "") + { + $this->recordversionId = $insertId; + } + return $this->recordversionId; + } + + + /** + * Clones the object and saves it to the database + * @return integer $recordversionId + */ + function SaveNew() + { + $this->recordversionId = ''; + return $this->Save(); + } + + + /** + * Deletes the object from the database + * @return boolean + */ + function Delete() + { + $connection = Database::Connect(); + $this->pog_query = "delete from `recordversion` where `recordversionid`='".$this->recordversionId."'"; + return Database::NonQuery($this->pog_query, $connection); + } + + + /** + * Deletes a list of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param bool $deep + * @return + */ + function DeleteList($fcv_array) + { + if (sizeof($fcv_array) > 0) + { + $connection = Database::Connect(); + $pog_query = "delete from `recordversion` where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) !== 1) + { + $pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$this->Escape($fcv_array[$i][2])."'"; + } + else + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$fcv_array[$i][2]."'"; + } + } + } + return Database::NonQuery($pog_query, $connection); + } + } + + + /** + * Associates the record object to this one + * @return boolean + */ + function GetRecord() + { + $record = new record(); + return $record->Get($this->recordId); + } + + + /** + * Associates the record object to this one + * @return + */ + function SetRecord(&$record) + { + $this->recordId = $record->recordId; + } +} +?> \ No newline at end of file diff --git a/backend/php/src/objects/class.user.php b/backend/php/src/objects/class.user.php new file mode 100644 index 0000000..f92c7ac --- /dev/null +++ b/backend/php/src/objects/class.user.php @@ -0,0 +1,502 @@ +user class with integrated CRUD methods. +* @author Php Object Generator +* @version POG 3.0e / PHP5.1 MYSQL +* @see http://www.phpobjectgenerator.com/plog/tutorials/45/pdo-mysql +* @copyright Free for personal & commercial use. (Offered under the BSD license) +* @link http://www.phpobjectgenerator.com/?language=php5.1&wrapper=pdo&pdoDriver=mysql&objectName=user&attributeList=array+%28%0A++0+%3D%3E+%27username%27%2C%0A++1+%3D%3E+%27srp_s%27%2C%0A++2+%3D%3E+%27srp_v%27%2C%0A++3+%3D%3E+%27header%27%2C%0A++4+%3D%3E+%27statistics%27%2C%0A++5+%3D%3E+%27auth_version%27%2C%0A++6+%3D%3E+%27version%27%2C%0A++7+%3D%3E+%27lock%27%2C%0A++8+%3D%3E+%27record%27%2C%0A++9+%3D%3E+%27onetimepassword%27%2C%0A%29&typeList=array%2B%2528%250A%2B%2B0%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B1%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B2%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B3%2B%253D%253E%2B%2527LONGTEXT%2527%252C%250A%2B%2B4%2B%253D%253E%2B%2527LONGTEXT%2527%252C%250A%2B%2B5%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B6%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B7%2B%253D%253E%2B%2527VARCHAR%2528255%2529%2527%252C%250A%2B%2B8%2B%253D%253E%2B%2527HASMANY%2527%252C%250A%2B%2B9%2B%253D%253E%2B%2527HASMANY%2527%252C%250A%2529 +*/ +include_once('class.pog_base.php'); +class user extends POG_Base +{ + public $userId = ''; + + /** + * @var VARCHAR(255) + */ + public $username; + + /** + * @var VARCHAR(255) + */ + public $srp_s; + + /** + * @var VARCHAR(255) + */ + public $srp_v; + + /** + * @var LONGTEXT + */ + public $header; + + /** + * @var LONGTEXT + */ + public $statistics; + + /** + * @var VARCHAR(255) + */ + public $auth_version; + + /** + * @var VARCHAR(255) + */ + public $version; + + /** + * @var VARCHAR(255) + */ + public $lock; + + /** + * @var private array of record objects + */ + private $_recordList = array(); + + /** + * @var private array of onetimepassword objects + */ + private $_onetimepasswordList = array(); + + public $pog_attribute_type = array( + "userId" => array('db_attributes' => array("NUMERIC", "INT")), + "username" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "srp_s" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "srp_v" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "header" => array('db_attributes' => array("TEXT", "LONGTEXT")), + "statistics" => array('db_attributes' => array("TEXT", "LONGTEXT")), + "auth_version" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "version" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "lock" => array('db_attributes' => array("TEXT", "VARCHAR", "255")), + "record" => array('db_attributes' => array("OBJECT", "HASMANY")), + "onetimepassword" => array('db_attributes' => array("OBJECT", "HASMANY")), + ); + public $pog_query; + + + /** + * Getter for some private attributes + * @return mixed $attribute + */ + public function __get($attribute) + { + if (isset($this->{"_".$attribute})) + { + return $this->{"_".$attribute}; + } + else + { + return false; + } + } + + function user($username='', $srp_s='', $srp_v='', $header='', $statistics='', $auth_version='', $version='', $lock='') + { + $this->username = $username; + $this->srp_s = $srp_s; + $this->srp_v = $srp_v; + $this->header = $header; + $this->statistics = $statistics; + $this->auth_version = $auth_version; + $this->version = $version; + $this->lock = $lock; + $this->_recordList = array(); + $this->_onetimepasswordList = array(); + } + + + /** + * Gets object from database + * @param integer $userId + * @return object $user + */ + function Get($userId) + { + $connection = Database::Connect(); + $this->pog_query = "select * from `user` where `userid`='".intval($userId)."' LIMIT 1"; + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $this->userId = $row['userid']; + $this->username = $this->Unescape($row['username']); + $this->srp_s = $this->Unescape($row['srp_s']); + $this->srp_v = $this->Unescape($row['srp_v']); + $this->header = $this->Unescape($row['header']); + $this->statistics = $this->Unescape($row['statistics']); + $this->auth_version = $this->Unescape($row['auth_version']); + $this->version = $this->Unescape($row['version']); + $this->lock = $this->Unescape($row['lock']); + } + return $this; + } + + + /** + * Returns a sorted array of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array $userList + */ + function GetList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $connection = Database::Connect(); + $sqlLimit = ($limit != '' ? "LIMIT $limit" : ''); + $this->pog_query = "select * from `user` "; + $userList = Array(); + if (sizeof($fcv_array) > 0) + { + $this->pog_query .= " where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $this->pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) != 1) + { + $this->pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? "BASE64_DECODE(".$fcv_array[$i][2].")" : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "BASE64_DECODE(`".$fcv_array[$i][0]."`) ".$fcv_array[$i][1]." ".$value; + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$this->Escape($fcv_array[$i][2])."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + else + { + $value = POG_Base::IsColumn($fcv_array[$i][2]) ? $fcv_array[$i][2] : "'".$fcv_array[$i][2]."'"; + $this->pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." ".$value; + } + } + } + } + if ($sortBy != '') + { + if (isset($this->pog_attribute_type[$sortBy]['db_attributes']) && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$sortBy]['db_attributes'][0] != 'SET') + { + if ($GLOBALS['configuration']['db_encoding'] == 1) + { + $sortBy = "BASE64_DECODE($sortBy) "; + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "$sortBy "; + } + } + else + { + $sortBy = "userid"; + } + $this->pog_query .= " order by ".$sortBy." ".($ascending ? "asc" : "desc")." $sqlLimit"; + $thisObjectName = get_class($this); + $cursor = Database::Reader($this->pog_query, $connection); + while ($row = Database::Read($cursor)) + { + $user = new $thisObjectName(); + $user->userId = $row['userid']; + $user->username = $this->Unescape($row['username']); + $user->srp_s = $this->Unescape($row['srp_s']); + $user->srp_v = $this->Unescape($row['srp_v']); + $user->header = $this->Unescape($row['header']); + $user->statistics = $this->Unescape($row['statistics']); + $user->auth_version = $this->Unescape($row['auth_version']); + $user->version = $this->Unescape($row['version']); + $user->lock = $this->Unescape($row['lock']); + $userList[] = $user; + } + return $userList; + } + + + /** + * Saves the object to the database + * @return integer $userId + */ + function Save($deep = true) + { + $connection = Database::Connect(); + $this->pog_query = "select `userid` from `user` where `userid`='".$this->userId."' LIMIT 1"; + $rows = Database::Query($this->pog_query, $connection); + if ($rows > 0) + { + $this->pog_query = "update `user` set + `username`='".$this->Escape($this->username)."', + `srp_s`='".$this->Escape($this->srp_s)."', + `srp_v`='".$this->Escape($this->srp_v)."', + `header`='".$this->Escape($this->header)."', + `statistics`='".$this->Escape($this->statistics)."', + `auth_version`='".$this->Escape($this->auth_version)."', + `version`='".$this->Escape($this->version)."', + `lock`='".$this->Escape($this->lock)."'where `userid`='".$this->userId."'"; + } + else + { + $this->pog_query = "insert into `user` (`username`, `srp_s`, `srp_v`, `header`, `statistics`, `auth_version`, `version`, `lock`) values ( + '".$this->Escape($this->username)."', + '".$this->Escape($this->srp_s)."', + '".$this->Escape($this->srp_v)."', + '".$this->Escape($this->header)."', + '".$this->Escape($this->statistics)."', + '".$this->Escape($this->auth_version)."', + '".$this->Escape($this->version)."', + '".$this->Escape($this->lock)."')"; + } + $insertId = Database::InsertOrUpdate($this->pog_query, $connection); + if ($this->userId == "") + { + $this->userId = $insertId; + } + if ($deep) + { + foreach ($this->_recordList as $record) + { + $record->userId = $this->userId; + $record->Save($deep); + } + foreach ($this->_onetimepasswordList as $onetimepassword) + { + $onetimepassword->userId = $this->userId; + $onetimepassword->Save($deep); + } + } + return $this->userId; + } + + + /** + * Clones the object and saves it to the database + * @return integer $userId + */ + function SaveNew($deep = false) + { + $this->userId = ''; + return $this->Save($deep); + } + + + /** + * Deletes the object from the database + * @return boolean + */ + function Delete($deep = false, $across = false) + { + if ($deep) + { + $recordList = $this->GetRecordList(); + foreach ($recordList as $record) + { + $record->Delete($deep, $across); + } + $onetimepasswordList = $this->GetOnetimepasswordList(); + foreach ($onetimepasswordList as $onetimepassword) + { + $onetimepassword->Delete($deep, $across); + } + } + $connection = Database::Connect(); + $this->pog_query = "delete from `user` where `userid`='".$this->userId."'"; + return Database::NonQuery($this->pog_query, $connection); + } + + + /** + * Deletes a list of objects that match given conditions + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param bool $deep + * @return + */ + function DeleteList($fcv_array, $deep = false, $across = false) + { + if (sizeof($fcv_array) > 0) + { + if ($deep || $across) + { + $objectList = $this->GetList($fcv_array); + foreach ($objectList as $object) + { + $object->Delete($deep, $across); + } + } + else + { + $connection = Database::Connect(); + $pog_query = "delete from `user` where "; + for ($i=0, $c=sizeof($fcv_array); $i<$c; $i++) + { + if (sizeof($fcv_array[$i]) == 1) + { + $pog_query .= " ".$fcv_array[$i][0]." "; + continue; + } + else + { + if ($i > 0 && sizeof($fcv_array[$i-1]) !== 1) + { + $pog_query .= " AND "; + } + if (isset($this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes']) && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'NUMERIC' && $this->pog_attribute_type[$fcv_array[$i][0]]['db_attributes'][0] != 'SET') + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$this->Escape($fcv_array[$i][2])."'"; + } + else + { + $pog_query .= "`".$fcv_array[$i][0]."` ".$fcv_array[$i][1]." '".$fcv_array[$i][2]."'"; + } + } + } + return Database::NonQuery($pog_query, $connection); + } + } + } + + + /** + * Gets a list of record objects associated to this one + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array of record objects + */ + function GetRecordList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $record = new record(); + $fcv_array[] = array("userId", "=", $this->userId); + $dbObjects = $record->GetList($fcv_array, $sortBy, $ascending, $limit); + return $dbObjects; + } + + + /** + * Makes this the parent of all record objects in the record List array. Any existing record will become orphan(s) + * @return null + */ + function SetRecordList(&$list) + { + $this->_recordList = array(); + $existingRecordList = $this->GetRecordList(); + foreach ($existingRecordList as $record) + { + $record->userId = ''; + $record->Save(false); + } + $this->_recordList = $list; + } + + + /** + * Associates the record object to this one + * @return + */ + function AddRecord(&$record) + { + $record->userId = $this->userId; + $found = false; + foreach($this->_recordList as $record2) + { + if ($record->recordId > 0 && $record->recordId == $record2->recordId) + { + $found = true; + break; + } + } + if (!$found) + { + $this->_recordList[] = $record; + } + } + + + /** + * Gets a list of onetimepassword objects associated to this one + * @param multidimensional array {("field", "comparator", "value"), ("field", "comparator", "value"), ...} + * @param string $sortBy + * @param boolean $ascending + * @param int limit + * @return array of onetimepassword objects + */ + function GetOnetimepasswordList($fcv_array = array(), $sortBy='', $ascending=true, $limit='') + { + $onetimepassword = new onetimepassword(); + $fcv_array[] = array("userId", "=", $this->userId); + $dbObjects = $onetimepassword->GetList($fcv_array, $sortBy, $ascending, $limit); + return $dbObjects; + } + + + /** + * Makes this the parent of all onetimepassword objects in the onetimepassword List array. Any existing onetimepassword will become orphan(s) + * @return null + */ + function SetOnetimepasswordList(&$list) + { + $this->_onetimepasswordList = array(); + $existingOnetimepasswordList = $this->GetOnetimepasswordList(); + foreach ($existingOnetimepasswordList as $onetimepassword) + { + $onetimepassword->userId = ''; + $onetimepassword->Save(false); + } + $this->_onetimepasswordList = $list; + } + + + /** + * Associates the onetimepassword object to this one + * @return + */ + function AddOnetimepassword(&$onetimepassword) + { + $onetimepassword->userId = $this->userId; + $found = false; + foreach($this->_onetimepasswordList as $onetimepassword2) + { + if ($onetimepassword->onetimepasswordId > 0 && $onetimepassword->onetimepasswordId == $onetimepassword2->onetimepasswordId) + { + $found = true; + break; + } + } + if (!$found) + { + $this->_onetimepasswordList[] = $onetimepassword; + } + } +} +?> \ No newline at end of file diff --git a/README b/backend/php/src/objects/ignore_objects.txt similarity index 100% rename from README rename to backend/php/src/objects/ignore_objects.txt diff --git a/backend/php/src/plugins/IPlugin.php b/backend/php/src/plugins/IPlugin.php new file mode 100644 index 0000000..3e39e70 --- /dev/null +++ b/backend/php/src/plugins/IPlugin.php @@ -0,0 +1,48 @@ + \ No newline at end of file diff --git a/backend/php/src/plugins/base64_install.sql b/backend/php/src/plugins/base64_install.sql new file mode 100644 index 0000000..40401d6 --- /dev/null +++ b/backend/php/src/plugins/base64_install.sql @@ -0,0 +1,172 @@ +-- base64.sql - MySQL base64 encoding/decoding functions +-- Copyright (C) 2006 Ian Gulliver +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of version 2 of the GNU General Public License as +-- published by the Free Software Foundation. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +DROP TABLE IF EXISTS base64_data | +CREATE TABLE base64_data (c CHAR(1) BINARY, val TINYINT) | +INSERT INTO base64_data VALUES + ('A',0), ('B',1), ('C',2), ('D',3), ('E',4), ('F',5), ('G',6), ('H',7), ('I',8), ('J',9), + ('K',10), ('L',11), ('M',12), ('N',13), ('O',14), ('P',15), ('Q',16), ('R',17), ('S',18), ('T',19), + ('U',20), ('V',21), ('W',22), ('X',23), ('Y',24), ('Z',25), ('a',26), ('b',27), ('c',28), ('d',29), + ('e',30), ('f',31), ('g',32), ('h',33), ('i',34), ('j',35), ('k',36), ('l',37), ('m',38), ('n',39), + ('o',40), ('p',41), ('q',42), ('r',43), ('s',44), ('t',45), ('u',46), ('v',47), ('w',48), ('x',49), + ('y',50), ('z',51), ('0',52), ('1',53), ('2',54), ('3',55), ('4',56), ('5',57), ('6',58), ('7',59), + ('8',60), ('9',61), ('+',62), ('/',63), ('=',0) | + + +DROP FUNCTION IF EXISTS BASE64_DECODE | +CREATE FUNCTION BASE64_DECODE (input BLOB) + RETURNS BLOB + CONTAINS SQL + DETERMINISTIC + SQL SECURITY INVOKER +BEGIN + DECLARE ret BLOB DEFAULT ''; + DECLARE done TINYINT DEFAULT 0; + + IF input IS NULL THEN + RETURN NULL; + END IF; + +each_block: + WHILE NOT done DO BEGIN + DECLARE accum_value BIGINT UNSIGNED DEFAULT 0; + DECLARE in_count TINYINT DEFAULT 0; + DECLARE out_count TINYINT DEFAULT 3; + +each_input_char: + WHILE in_count < 4 DO BEGIN + DECLARE first_char CHAR(1); + + IF LENGTH(input) = 0 THEN + RETURN ret; + END IF; + + SET first_char = SUBSTRING(input,1,1); + SET input = SUBSTRING(input,2); + + BEGIN + DECLARE tempval TINYINT UNSIGNED; + DECLARE error TINYINT DEFAULT 0; + DECLARE base64_getval CURSOR FOR SELECT val FROM base64_data WHERE c = first_char; + DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET error = 1; + + OPEN base64_getval; + FETCH base64_getval INTO tempval; + CLOSE base64_getval; + + IF error THEN + ITERATE each_input_char; + END IF; + + SET accum_value = (accum_value << 6) + tempval; + END; + + SET in_count = in_count + 1; + + IF first_char = '=' THEN + SET done = 1; + SET out_count = out_count - 1; + END IF; + END; END WHILE; + + -- We've now accumulated 24 bits; deaccumulate into bytes + + -- We have to work from the left, so use the third byte position and shift left + WHILE out_count > 0 DO BEGIN + SET ret = CONCAT(ret,CHAR((accum_value & 0xff0000) >> 16)); + SET out_count = out_count - 1; + SET accum_value = (accum_value << 8) & 0xffffff; + END; END WHILE; + + END; END WHILE; + + RETURN ret; +END | + +DROP FUNCTION IF EXISTS BASE64_ENCODE | +CREATE FUNCTION BASE64_ENCODE (input BLOB) + RETURNS BLOB + CONTAINS SQL + DETERMINISTIC + SQL SECURITY INVOKER +BEGIN + DECLARE ret BLOB DEFAULT ''; + DECLARE done TINYINT DEFAULT 0; + + IF input IS NULL THEN + RETURN NULL; + END IF; + +each_block: + WHILE NOT done DO BEGIN + DECLARE accum_value BIGINT UNSIGNED DEFAULT 0; + DECLARE in_count TINYINT DEFAULT 0; + DECLARE out_count TINYINT; + +each_input_char: + WHILE in_count < 3 DO BEGIN + DECLARE first_char CHAR(1); + + IF LENGTH(input) = 0 THEN + SET done = 1; + SET accum_value = accum_value << (8 * (3 - in_count)); + LEAVE each_input_char; + END IF; + + SET first_char = SUBSTRING(input,1,1); + SET input = SUBSTRING(input,2); + + SET accum_value = (accum_value << 8) + ASCII(first_char); + + SET in_count = in_count + 1; + END; END WHILE; + + -- We've now accumulated 24 bits; deaccumulate into base64 characters + + -- We have to work from the left, so use the third byte position and shift left + CASE + WHEN in_count = 3 THEN SET out_count = 4; + WHEN in_count = 2 THEN SET out_count = 3; + WHEN in_count = 1 THEN SET out_count = 2; + ELSE RETURN ret; + END CASE; + + WHILE out_count > 0 DO BEGIN + BEGIN + DECLARE out_char CHAR(1); + DECLARE base64_getval CURSOR FOR SELECT c FROM base64_data WHERE val = (accum_value >> 18); + + OPEN base64_getval; + FETCH base64_getval INTO out_char; + CLOSE base64_getval; + + SET ret = CONCAT(ret,out_char); + SET out_count = out_count - 1; + SET accum_value = accum_value << 6 & 0xffffff; + END; + END; END WHILE; + + CASE + WHEN in_count = 2 THEN SET ret = CONCAT(ret,'='); + WHEN in_count = 1 THEN SET ret = CONCAT(ret,'=='); + ELSE BEGIN END; + END CASE; + + END; END WHILE; + + RETURN ret; +END | diff --git a/backend/php/src/plugins/base64_uninstall.sql b/backend/php/src/plugins/base64_uninstall.sql new file mode 100644 index 0000000..02b9b6b --- /dev/null +++ b/backend/php/src/plugins/base64_uninstall.sql @@ -0,0 +1,20 @@ +-- base64.sql - MySQL base64 encoding/decoding functions +-- Copyright (C) 2006 Ian Gulliver +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of version 2 of the GNU General Public License as +-- published by the Free Software Foundation. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +DROP TABLE IF EXISTS base64_data | +DROP FUNCTION IF EXISTS BASE64_DECODE | +DROP FUNCTION IF EXISTS BASE64_ENCODE | \ No newline at end of file diff --git a/backend/php/src/plugins/plugin.base64.php b/backend/php/src/plugins/plugin.base64.php new file mode 100644 index 0000000..323f861 --- /dev/null +++ b/backend/php/src/plugins/plugin.base64.php @@ -0,0 +1,128 @@ +version; + } + + function Base64($sourceObject, $argv) + { + $this->sourceObject = $sourceObject; + $this->argv = $argv; + } + + function Execute() + { + return null; + } + + function SetupRender() + { + if (isset($_POST['install_base64']) || isset($_POST['uninstall_base64'])) + { + $this->SetupExecute(); + } + else + { + $out = "This plugin allows you to install and uninstall a base64 custom function to and from your database. + You can then set \$configuration['db_encoding'] = 1 so that all data is transparently encoded and decoded + with the minimal overhead possible. Enabling data encoding has quite a few advantages:

+ + "; + $out .= "

"; + } + else + { + $out .= "\n\tChecking MySQL function....NOT INSTALLED"; + $out .= "\n\tChecking db_encoding status ignored"; + $out .= "\n\n---------------------------------------------------"; + $out .= "\nClick the INSTALL button below to install the base64 function to your database."; + $out .= "
"; + } + $out .= ""; + echo $out; + } + } + + function AuthorPage() + { + return null; + } + + + function SetupExecute() + { + $out = ''; + $connection = Database::Connect(); + if (isset($_POST['install_base64']) && isset($_POST['install_base64']) == true) + { + $initialData = file_get_contents('../plugins/base64_install.sql'); + $statements = explode('|', $initialData); + if (sizeof($statements) > 0) + { + foreach ($statements as $statement) + { + if (trim($statement) != '') + { + Database::NonQuery($statement, $connection); + } + } + } + $out .= ""; + } + else if (isset($_POST['uninstall_base64']) && $_POST['uninstall_base64'] == true) + { + $initialData = file_get_contents('../plugins/base64_uninstall.sql'); + $statements = explode('|', $initialData); + if (sizeof($statements) > 0) + { + foreach ($statements as $statement) + { + if (trim($statement) != '') + { + Database::NonQuery($statement, $connection); + } + } + } + $out .= ""; + } + echo $out; + } + + function IsBase64FunctionInstalled() + { + $sql1 = "show function status where Db='".$GLOBALS['configuration']['db']."' and (Name='BASE64_DECODE' or Name='BASE64_ENCODE')"; + $sql2 = "show tables like 'base64_data'"; + $connection = Database::Connect(); + $result = Database::Query($sql1, $connection); + $result2 = Database::Query($sql2, $connection); + if ($result == 2 && $result2 == 1) + { + return true; + } + return false; + } +} diff --git a/backend/php/src/setup/data_initialization/additional_table_structures.sql b/backend/php/src/setup/data_initialization/additional_table_structures.sql new file mode 100644 index 0000000..e69de29 diff --git a/backend/php/src/setup/data_initialization/data_initialization.sql b/backend/php/src/setup/data_initialization/data_initialization.sql new file mode 100644 index 0000000..e69de29 diff --git a/backend/php/src/setup/data_initialization/howto.txt b/backend/php/src/setup/data_initialization/howto.txt new file mode 100644 index 0000000..a6f0e24 --- /dev/null +++ b/backend/php/src/setup/data_initialization/howto.txt @@ -0,0 +1,13 @@ +Hello there, + +To make use of the Data Initialization feature in POG Setup, put your insert statements in the data_initialization.sql file. (One per line). +Then, on step 1 of Setup, choose "Drop, recreate tables and reset data": + +This will + +1. Drop any tables that have the same name as the object(s) you have in the objects folder. +2. Recreate the tables and indexes(if needed) +3. Execute the insert statements in data_initialization.sql one by one. + +Regards, +The POG Team \ No newline at end of file diff --git a/backend/php/src/setup/data_initialization/read_dump_lib.php b/backend/php/src/setup/data_initialization/read_dump_lib.php new file mode 100644 index 0000000..ed579ab --- /dev/null +++ b/backend/php/src/setup/data_initialization/read_dump_lib.php @@ -0,0 +1,205 @@ + add the current substring to the + // returned array + if (!$i) { + $ret[] = array('query' => $sql, 'empty' => $nothing); + return TRUE; + } + // Backquotes or no backslashes before quotes: it's indeed the + // end of the string -> exit the loop + elseif ($string_start == '`' || $sql[$i-1] != '\\') { + $string_start = ''; + $in_string = FALSE; + break; + } + // one or more Backslashes before the presumed end of string... + else { + // ... first checks for escaped backslashes + $j = 2; + $escaped_backslash = FALSE; + while ($i-$j > 0 && $sql[$i-$j] == '\\') { + $escaped_backslash = !$escaped_backslash; + $j++; + } + // ... if escaped backslashes: it's really the end of the + // string -> exit the loop + if ($escaped_backslash) { + $string_start = ''; + $in_string = FALSE; + break; + } + // ... else loop + else { + $i++; + } + } // end if...elseif...else + } // end for + } // end if (in string) + + // lets skip comments (/*, -- and #) + elseif (($char == '-' && $sql_len > $i + 2 && $sql[$i + 1] == '-' && $sql[$i + 2] <= ' ') || $char == '#' || ($char == '/' && $sql_len > $i + 1 && $sql[$i + 1] == '*')) { + $i = strpos($sql, $char == '/' ? '*/' : "\n", $i); + // didn't we hit end of string? + if ($i === FALSE) { + break; + } + if ($char == '/') { + $i++; + } + } + + // We are not in a string, first check for delimiter... + elseif ($char == ';') { + // if delimiter found, add the parsed part to the returned array + $ret[] = array('query' => substr($sql, 0, $i), 'empty' => $nothing); + $nothing = TRUE; + $sql = ltrim(substr($sql, min($i + 1, $sql_len))); + $sql_len = strlen($sql); + if ($sql_len) { + $i = -1; + } else { + // The submited statement(s) end(s) here + return TRUE; + } + } // end elseif (is delimiter) + + // ... then check for start of a string,... + elseif (($char == '"') || ($char == '\'') || ($char == '`')) { + $in_string = TRUE; + $nothing = FALSE; + $string_start = $char; + } // end elseif (is start of string) + + elseif ($nothing) { + $nothing = FALSE; + } + + // loic1: send a fake header each 30 sec. to bypass browser timeout + $time1 = time(); + if ($time1 >= $time0 + 30) { + $time0 = $time1; + header('X-pmaPing: Pong'); + } // end if + } // end for + + // add any rest to the returned array + if (!empty($sql) && preg_match('@[^[:space:]]+@', $sql)) { + $ret[] = array('query' => $sql, 'empty' => $nothing); + } + + return TRUE; +} // end of the 'PMA_splitSqlFile()' function + + +/** + * Reads (and decompresses) a (compressed) file into a string + * + * @param string the path to the file + * @param string the MIME type of the file, if empty MIME type is autodetected + * + * @global array the phpMyAdmin configuration + * + * @return string the content of the file or + * boolean FALSE in case of an error. + */ +function PMA_readFile($path, $mime = '') { + global $cfg; + + if (!file_exists($path)) { + return FALSE; + } + switch ($mime) { + case '': + $file = @fopen($path, 'rb'); + if (!$file) { + return FALSE; + } + $test = fread($file, 3); + fclose($file); + if ($test[0] == chr(31) && $test[1] == chr(139)) { + return PMA_readFile($path, 'application/x-gzip'); + } + if ($test == 'BZh') { + return PMA_readFile($path, 'application/x-bzip'); + } + return PMA_readFile($path, 'text/plain'); + case 'text/plain': + $file = @fopen($path, 'rb'); + if (!$file) { + return FALSE; + } + $content = fread($file, filesize($path)); + fclose($file); + break; + case 'application/x-gzip': + if ($cfg['GZipDump'] && @function_exists('gzopen')) { + $file = @gzopen($path, 'rb'); + if (!$file) { + return FALSE; + } + $content = ''; + while (!gzeof($file)) { + $content .= gzgetc($file); + } + gzclose($file); + } else { + return FALSE; + } + break; + case 'application/x-bzip': + if ($cfg['BZipDump'] && @function_exists('bzdecompress')) { + $file = @fopen($path, 'rb'); + if (!$file) { + return FALSE; + } + $content = fread($file, filesize($path)); + fclose($file); + $content = bzdecompress($content); + } else { + return FALSE; + } + break; + default: + return FALSE; + } + return $content; +} + +?> diff --git a/backend/php/src/setup/index.php b/backend/php/src/setup/index.php new file mode 100644 index 0000000..4087961 --- /dev/null +++ b/backend/php/src/setup/index.php @@ -0,0 +1,717 @@ + + + 0 && $_SESSION['diagnosticsSuccessful']==false) +{ +?> +
+
+
+
+
POG setup diagnostics
+
Setup performs unit tests on all your objects in the object directory and makes sure they're OK.
This makes sure that your objects can talk to your database correctly. This can also be useful if you modify / customize the objects manually and want to make sure they still work once you're done. +

The diagnostics screen on the right shows the results of those tests. If all tests pass successfully, you can be assured that all objects are working correctly. +
+
+
+
+ + + + + + + + +
 
+$ignoreObject){ + $ignoreObjects[$key] = trim($ignoreObject); + } + + $dir = opendir('../objects/'); + $objects = array(); + while(($file = readdir($dir)) !== false) + { + if(strlen($file) > 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && $file != "class.database.php" && $file != "class.pog_base.php") + { + $objects[] = $file; + include_once("../objects/{$file}"); + } + } + closedir($dir); + if (sizeof($objects) == 0) + { + $errors++; + AddError("[objects] folder does not contain any POG object."); + } + + if ($errors == 0) + { + $dir = opendir($GLOBALS['configuration']['plugins_path']); + $plugins = array(); + + while(($file = readdir($dir)) !== false) + { + if(file_exists($GLOBALS['configuration']['plugins_path']."/IPlugin.php")) + { + include_once($GLOBALS['configuration']['plugins_path']."/IPlugin.php"); + } + if(strlen($file) > 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && strtolower(substr($file, 0, 6)) == 'plugin') + { + include_once($GLOBALS['configuration']['plugins_path']."/{$file}"); + $pluginName = GetPluginName($file); + if ($pluginName != '') + { + $plugins[] = $file; + } + + } + } + closedir($dir); + } + + /** + * verify configuration info + */ + if ($errors == 0) + { + AddTrace('File Structure....OK!'); + if (!@mysql_connect ($GLOBALS['configuration']['host'].":".$GLOBALS['configuration']['port'], $GLOBALS['configuration']['user'], $GLOBALS['configuration']['pass'])) + { + $errors++; + AddError('Cannot connect to the specified database server. Edit configuration.php'); + } + if (isset($GLOBALS['configuration']['db_encoding']) && $GLOBALS['configuration']['db_encoding'] == 1 && !Base64::IsBase64FunctionInstalled()) + { + $errors++; + AddError('$configuration[db_encoding] needs to be set to 0 until you install the base64 plugin. Set db_encoding to 0 by editing configuration.php, run setup again and go to the "Manage Plugins" tab. Install the base64 plugin. Then you can set db_encoding = 1'); + } + if ($errors == 0) + { + if (!@mysql_select_db ($GLOBALS['configuration']['db'])) + { + $errors++; + AddError('Cannot find the specified database "'.$GLOBALS['configuration']['db'].'". Edit configuration.php'); + } + } + } + + /** + * verify storage status + */ + + if ($errors == 0) + { + AddTrace("Configuration Info....OK!\n"); + AddTrace("Storage Status"); + foreach($objects as $object) + { + $objectName = GetObjectName("../objects/".$object); + eval ('$instance = new '.$objectName.'();'); + if (TestStorageExists($objectName, "mysql")) + { + if (isset($_POST['pog_table']) && ($_POST['pog_table'] == "recreate" || $_POST['pog_table'] == "recreate_import")) + { + if (!TestDeleteStorage($instance)) + { + $errors++; + AddError("Dropping table '".strtolower($objectName)."' failed. Drop and recreate the table manually."); + } + else + { + if (!TestCreateStorage("../objects/".$object)) + { + $errors++; + AddError("Creating table [".strtolower($objectName)."] failed. Create the table manually using the generated SQL query in the object header."); + } + else + { + AddTrace("\tDropping & Recreating table [".strtolower($objectName)."]....OK!"); + } + } + } + else + { + if (!TestAlterStorage($instance)) + { + $errors++; + AddError("Aligning [$objectName] with table '".strtolower($objectName)."' failed. Alter the table manually so that object attributes and table columns match."); + } + else + { + AddTrace("\tAligning [$objectName] with table '".strtolower($objectName)."'....OK!"); + } + } + } + else + { + if (!TestCreateStorage("../objects/".$object)) + { + $errors++; + AddError("Creating table [".strtolower($objectName)."] failed. Create the table manually using the generated SQL query in the object header."); + } + else + { + AddTrace("\tCreating table [".strtolower($objectName)."]....OK!"); + } + } + } + } + + $objectNameList = array(); + + /** + * Initialize test data? + */ + if (isset($_POST['pog_table']) && $_POST['pog_table'] == 'recreate_import') + { + $initialData = file_get_contents('data_initialization/data_initialization.sql'); + PMA_splitSqlFile($statements, $initialData, 4); + if (sizeof($statements) > 0) + { + foreach ($statements as $statement) + { + if (!TestExecuteQuery($statement['query'])) + + { + $errors++; + AddError('Statement "'.$statement['query'].'" failed'); + } + } + } + $structure_changes = file_get_contents('data_initialization/additional_table_structures.sql'); + unset($statements); + PMA_splitSqlFile($statements, $structure_changes, 4); + if (sizeof($statements) > 0) + { + foreach ($statements as $statement) + { + if (!TestExecuteQuery($statement['query'])) + + { + $errors++; + AddError('Statement "'.$statement['query'].'" failed'); + } + } + } + } + + + /** + * verify object status + */ + $objectNameList = array(); + foreach($objects as $object) + { + $objectName = GetObjectName("../objects/".$object); + if (isset($objectName) && array_search($objectName, $ignoreObjects) ===false) + { + $objectNameList[] = $objectName; + } + } + + if ($errors == 0) + { + $pluginNameList = array(); + foreach($plugins as $plugin) + { + $pluginName = GetPluginName($plugin); + if ($pluginName != '') + { + $pluginNameList[] = $pluginName; + } + } + } + + + if ($errors == 0 && isset($_POST['pog_test']) && $_POST['pog_test'] == 'yes') + { + AddTrace("\nPOG Essentials"); + + $_SESSION['links'] = array(); + + $objectCount = 1; + foreach($objects as $object) + { + $objectName = GetObjectName("../objects/".$object); + if (isset($objectName) && array_search($objectName, $ignoreObjects) ===false) + { + eval('$instance = new '.$objectName.'();'); + AddTrace("\t[".$objectName."]"); + + $link = GetAtLink("../objects/".$object); + $_SESSION['links'][$objectName] = $link; + + if (!TestEssentials($instance)) + { + $errors++; + AddError("Object $objectName failed essential tests"); + } + if ($objectCount != sizeof($objects)) + { + AddTrace("\t***"); + } + } + $objectCount++; + } + } + + + if ($errors == 0 && isset($_POST['pog_test']) && $_POST['pog_test'] == 'yes') + { + AddTrace("\nPOG Relations PreRequisites"); + $objectCount = 1; + foreach ($objects as $object) + { + $objectName = GetObjectName("../objects/".$object); + if (isset($objectName) && array_search($objectName, $ignoreObjects) ===false) + { + eval('$instance = new '.$objectName.'();'); + AddTrace("\t[".$objectName."]"); + if (!TestRelationsPreRequisites($instance, $objectNameList, $objectName, $ignoreObjects)) + { + $errors++; + } + if ($objectCount != sizeof($objects)) + { + AddTrace("\t***"); + } + } + $objectCount++; + } + } + + + if ($errors == 0 && isset($_POST['pog_test']) && $_POST['pog_test'] == 'yes') + { + AddTrace("\nPOG Relations"); + $objectCount = 1; + foreach ($objects as $object) + { + $objectName = GetObjectName("../objects/".$object); + if (isset($objectName) && array_search($objectName, $ignoreObjects) ===false) + { + eval('$instance = new '.$objectName.'();'); + AddTrace("\t[".$objectName."]"); + if (!TestRelations($instance, $objectNameList, $ignoreObjects)) + { + $errors++; + AddError("Object $objectName failed relations tests"); + } + if ($objectCount != sizeof($objects)) + { + AddTrace("\t***"); + } + } + $objectCount++; + } + } + if ($errors == 0) + { + $_SESSION['diagnosticsSuccessful'] = true; + } + if(isset($_POST['pog_test']) && $_POST['pog_test'] == 'no') + { + AddTrace("\nUNIT TESTS NOT PERFORMED. FOUND $errors ERROR(S)"); + } + else + { + AddTrace("\nCHECKED ".count($objectNameList)." OBJECT(S). FOUND $errors ERROR(S)".($errors == 0 ? ". HURRAY!" : ":")); + } + AddTrace("---------------------------------------------------"); + if (isset($_SESSION['errorMessages'])) + { + $errorMessages = unserialize($_SESSION['errorMessages']); + } + $traceMessages = unserialize($_SESSION['traceMessages']); + $diagnostics = ''; + foreach ($traceMessages as $traceMessage) + { + $diagnostics .= "\n$traceMessage"; + } + if (isset($errorMessages)) + { + foreach ($errorMessages as $errorMessage) + { + $diagnostics .= "\n$errorMessage\n"; + } + } + $_SESSION['fileNames'] = serialize($objects); + $_SESSION['objectNameList'] = serialize($objectNameList); + if (isset($pluginNameList)) + { + $_SESSION['pluginNameList'] = serialize($pluginNameList); + } + } + echo "


"; + if ($_SESSION['diagnosticsSuccessful']) + { + echo ''; + } + unset($_POST, $instanceId, $_SESSION['traceMessages'], $_SESSION['errorMessages']); +?> +
+
+ +
+
+
+
+
POG documentation summary
+

The following 3 documents summarize what POG is all about:

+ 1. POG Essentials

+ 2. POG Object Relations

+ 3. POG SOAP API +
+
+
+
+ + + + + + + 0) + { +?> + + +
+ + +
+
delete allexpand allcollapse allupdate all objects
+ GetList(array(array($instanceId, ">", "0"))); + foreach ($instanceList as $instance) + { + $instance->Delete(); + } + unset($_GET); + } + echo '
'; + $_SESSION['fileNames'] = serialize($fileNames); + $_SESSION['objectNameList'] = serialize($objectNameList); +?> + +
+
+
+
+sndReq('GetList', '', '$objectName', '', '', '', '$objectName');"; +} +else if ($_SESSION['diagnosticsSuccessful'] && $_GET['plugins']) +{ +?> +
+
+
+
+
POG documentation summary
+

The following 3 documents summarize what POG is all about:

+ 1. POG Essentials

+ 2. POG Object Relations

+ 3. POG SOAP API +
+
+
+
+ + + + + + + +
+ + +
+
+ + + AuthorPage() != null) + { + ?> + + + + +
+
'; + $pluginInstance->SetupRender(); + echo '
'; + $_SESSION['pluginNameList'] = serialize($pluginNameList); +?> + +
+
+ +
+ +
+
+
+ +
What is POG Setup?
POG Setup is an extension of the online Php Object Generator. It is meant to help the veteran POG user and the novice alike. +

POG Setup is a 3 step process which:

+ 1. Creates tables for your generated objects.

+ 2. Performs diagnostics tests on all objects within your 'objects' directory.

+ 3. Provides a light interface to your object tables.
+
+
+
+ + + + + + + +
+
+
+ +
What is POG?
POG generates PHP objects with integrated CRUD methods to dramatically accelerate web application development in PHP.
+
POG allows developers to easily map object attributes onto columns of a database table without having to write SQL queries.
+
What is POG Setup?
You've generated one or more objects using Php Object Generator ... Now what?
+
POG SETUP is an answer to this question and takes the POG experience one step further. The Setup process automates table creation, unit testing and provides a light scaffolding environment.
+
+
If you are ready to get POG'd up, click on thebutton below to proceed. Doing this will:

+ + + + + + + + + +
TABLES: + +
TESTS: + +

+
+ +
+
+ +
+
+
+
+ + + + diff --git a/backend/php/src/setup/rpc.php b/backend/php/src/setup/rpc.php new file mode 100644 index 0000000..2e2d0c1 --- /dev/null +++ b/backend/php/src/setup/rpc.php @@ -0,0 +1,227 @@ + 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && $file != "class.database.php" && $file != "configuration.php" && $file != "setup.php" && $file != "class.pog_base.php") + { + $objects[] = $file; + } +} +closedir($dir); +foreach ($objects as $object) +{ + include_once("../objects/{$object}"); +} + +eval ('$instance = new '.$objectName.'();'); +$attributeList = array_keys(get_object_vars($instance)); +$noOfExternalAttributes = sizeof($attributeList) - 3; + +// get object id to perform action. required for Delete() and Update() +$objectId = isset($_REQUEST['objectid']) ? $_REQUEST['objectid'] : ''; + +// get the ids of all open nodes before action is performed +$openNodes = isset($_REQUEST['opennodes']) ? explode('-', $_REQUEST['opennodes']) : ''; + +// get action to perform +$action = $_GET['action']; + +$currentNode = -1; +if (isset($_GET['currentnode'])) +{ + // get the node id on which the action is performed. required for Delete() and Update() + $currentNode = $_GET['currentnode']; + $currentNodeParts = explode('Xnode', $currentNode); + if (isset($currentNodeParts[1])) + { + $currentNode = $currentNodeParts[1]; + } +} +$root = new XMenu(); + +if ($openNodes != '') +{ + foreach ($openNodes as $openNode) + { + $openNodeParts = explode('Xtree', $openNode); + $noParts = sizeof($openNodeParts); + + // all open nodes when action is initiated + if ($noParts > 0 && is_numeric($openNodeParts[$noParts - 1])) + { + // initialize all open nodes + $root->visibleNodes[] = $openNodeParts[$noParts - 1]; + } + } +} +// perform requested action +switch($action) +{ + case 'Add': + eval ('$instance = new '.$objectName.'();'); + $attributeList = array_keys(get_object_vars($instance)); + foreach($attributeList as $attribute) + { + if ($attribute != "pog_attribute_type" && $attribute!= "pog_query") + { + if (isset($instance->pog_attribute_type[$attribute])) + { + if (isset($_GET[$attribute])) + { + $instance->{$attribute} = $_GET[$attribute]; + } + } + } + } + if ($instance->Save()) + { + for ($i = 0; $i < sizeof($root->visibleNodes); $i++) + { + if ($root->visibleNodes[$i] > ($noOfExternalAttributes + 2)) + { + $root->visibleNodes[$i] += ($noOfExternalAttributes + 1); + } + } + } + RefreshTree($anchor, $root); + break; + case 'Refresh': + RefreshTree($objectName, $root, $offset, $limit); + break; + case 'GetList': + RefreshTree($anchor, $root, $offset, $limit); + break; + case 'DeleteDeep': + case 'Delete': + eval ('$instance = new '.$objectName.'();'); + $instance->Get($objectId); + $instance->Delete(($action == 'DeleteDeep')); + for ($i = 0; $i < sizeof($root->visibleNodes); $i++) + { + if ($root->visibleNodes[$i] > ($noOfExternalAttributes + 2)) + { + if (intval($root->visibleNodes[$i]) == intval($openNodeParts[$noParts - 1])) + { + $root->visibleNodes[$i] = null; + } + else if ($root->visibleNodes[$i] > $currentNode) + { + $root->visibleNodes[$i] -= ($noOfExternalAttributes + 1); + } + } + } + RefreshTree($anchor, $root); + break; + case 'Update': + eval ('$instance = new '.$objectName.'();'); + $instance->Get($objectId); + $attributeList = array_keys(get_object_vars($instance)); + foreach($attributeList as $attribute) + { + if ($attribute != "pog_attribute_type" && $attribute!= "pog_query") + { + if (isset($instance->pog_attribute_type[$attribute])) + { + if (isset($_GET[$attribute])) + { + $instance->{$attribute} = $_GET[$attribute]; + } + } + } + } + $instance->Save(); + RefreshTree($anchor, $root); + break; + } + + /** + * Refreshes the tree after an operation while preserving node statuses + * + * @param unknown_type $objectName + * @param unknown_type $root + */ + function RefreshTree($objectName, $root, $offset = '', $limit = '') + { + if ($limit == '') + { + $offset = 0; + $limit = 50; + } + $sqlLimit = "$offset, $limit"; + + $js = "new Array("; + eval ('$instance = new '.$objectName.'();'); + $recCount = GetNumberOfRecords(strtolower($objectName)); + $attributeList = array_keys(get_object_vars($instance)); + $instanceList = $instance->GetList(array(array(strtolower($objectName)."Id",">",0)), strtolower($objectName)."Id", false, $sqlLimit); + $x = 0; + $masterNode = &$root->addItem(new XNode("".$objectName." {Dimensions:[".sizeof($instanceList)."]}", false, "setup_images/folderclose.gif","setup_images/folderopen.gif")); + $node = &$masterNode->addItem(new XNode("ADD RECORD", false,"setup_images/folderclose.gif","setup_images/folderopen.gif")); + foreach($attributeList as $attribute) + { + if ($attribute != "pog_attribute_type" && $attribute!= "pog_query") + { + if ($x != 0 && isset($instance->pog_attribute_type[$attribute])) + { + $js .= '"'.$attribute.'",'; + $thisValue = ConvertAttributeToHtml($attribute, $instance->pog_attribute_type[$attribute]['db_attributes'], $instance->{$attribute}, $instance->{$attributeList[0]}); + $subnode = &$node->addItem(new XNode("
".$attribute." {".$instance->pog_attribute_type[$attribute]['db_attributes'][1]."}
".$thisValue."
", false,'',"setup_images/folderopen.gif")); + } + } + $x++; + } + $js = trim($js, ","); + $js .= ")"; + $subnode = &$node->addItem(new XNode("
", false,'',"folderopen.gif")); + + if ($instanceList != null) + { + foreach($instanceList as $instance) + { + ConvertObjectToNode($instance, $masterNode, $js, $objectName); + } + } + + $menu_html_code = $root->generateTree(); + $menu_html_code .= ""; + $table = "


".$pre.$menu_html_code."
"; + echo $table; + } +?> diff --git a/backend/php/src/setup/setup.css b/backend/php/src/setup/setup.css new file mode 100644 index 0000000..3c59e53 --- /dev/null +++ b/backend/php/src/setup/setup.css @@ -0,0 +1,77 @@ +.container {background:url('./setup_images/gradient_container.gif') top left repeat-x} +.logo {width:234px;height:191px;position:relative;float:left;background:url('./setup_images/setup_logo1.jpg') top left no-repeat} +.logo2 {width:234px;height:191px;position:relative;float:left;background:url('./setup_images/setup_logo2.jpg') top left no-repeat} +.logo3 {width:234px;height:191px;position:relative;float:left;background:url('./setup_images/setup_logo3.jpg') top left no-repeat} +.bottom3 {float:left;display:inline;position:relative;width:100%;background:url('./setup_images/setup_bottom3tile.jpg') top left repeat-x} +.toolbar {float:left;display:inline;width:100%;height:42px;background-color:#444;background:url('./setup_images/setup_toolbargradient.jpg') top left repeat-x} +body {margin:0 auto;padding:0;color:#828282;background:#fff;font:normal 10px Verdana} +.activetab {font-weight:bold;color:#7B7F0E;background:#ccc} +.error {background:#f00} +.warning {background:#0cf} +.succeed {background:#0f0} +.header {width:90%;height:90px;padding:15px 0 0 15px} +.footer {width:90%;padding-left:15px;vertical-align:middle;height:35px} +.footer img {vertical-align:middle;height:35px} +.toolbar img {display:inline} +.bottom3 img {display:inline} +.left {width:234px;height:550px;z-Index:9;position:absolute;} +.text {width:194px;height:319px;line-height:15px;position:relative;float:left;padding:22px} +.gold {color:#998D05;font-weight:bold;display:block;} +.middle {width:617px;padding-left:234px;height:596px;color:#404855} +.middle2 {float:left;position:relative;padding:20px 0 0 22px;width:594px;background:#E7E9EE} +.middle33 {height:596px;position:relative;padding-left:234px;color:#404855} +.middle3 {float:left;position:relative;width:100%;background:#E7E9EE} +.subtabs {padding-top:35px;float:left;position:relative} +#tabs {width:617px;height:20px;float:left} +#tabs3 {width:100%;height:20px;float:left} +#tabs img,#tabs3 img {float:left;border:none} +.middle img,.middle input,.middle2 img,.middle2 input {display:inline;margin:0;padding:0} +a {text-decoration:none;color:#7F7714} +input.i {position:relative;padding:2px 3px;width:200px;color:#5A4F64;font-size:9px;vertical-align:middle;border-top:1px solid #404040;border-left:1px solid #404040;border-right:1px solid #D1D0CC;border-bottom:1px solid #D1D0CC; background-color:#F7F7F7;} +textarea {width:575px;height:325px;font-size:12px;border-top:1px solid #404040;border-left:1px solid #404040;border-right:1px solid #D1D0CC;border-bottom:1px solid #D1D0CC} +textarea.t {width:450px;height:50px;font-size:12px;border-top:1px solid #404040; color:#5A4F64; border-left:1px solid #404040;border-right:1px solid #D1D0CC;border-bottom:1px solid #D1D0CC; background-color:#F7F7F7;} +select.s, input.c {border-top:1px solid #404040; color:#5A4F64; border-left:1px solid #404040;border-right:1px solid #D1D0CC;border-bottom:1px solid #D1D0CC; background-color:#F7F7F7;} +.ss{font-size:95%;} +table {position:relative;display:inline;background:#E8E9EE} +td {height:25px} +.id {font-weight:bold;padding-left:5px} +div#nifty {background:#E7E9EE;margin-top:40px;position:relative;float:left;width:617px} +div.nifty{margin-top:0;background:#E7E9EE} +b.rtop,b.rbottom {display:block;background:#FFF} +b.rtop b {display:block;height:1px;overflow:hidden;background:#FFF} +b.rbottom b {display:block;height:1px;overflow:hidden;background:#E7E9EE} +b.r1 {margin:0 5px} +b.r2 {margin:0 3px} +b.r3 {margin:0 2px} +b.rtop b.r4,b.rbottom b.r4 {margin:0 1px;height:2px} +.col1,.col2 {padding-left:15px;padding-right:15px;margin-left:10px;line-height:14px;color:#848484;position:relative;width:250px;height:270px;display:inline;float:left} +.col3 {width:300px;padding-left:150px;padding-right:150px;height:190px;display:block;float:left color:#848484} +#header {float:left;width:100%;line-height:normal;} +#header ul {margin:0;padding:8px 10px 0;list-style:none;color:#818183} +#header li {float:left;background:url("norm_right.gif") no-repeat right top;margin-right:5px;padding:0} +#header a {display:block;background:url("norm_left.gif") no-repeat left top;padding:3px 8px 2px;color:#B1B97D} +#header #current {background-image:url("./setup_images/tab_activeobjectright.gif")} +#header #current a {background-image:url("./setup_images/tab_activeobjectleft.gif");padding:3px 8px 2px;font-weight:bold;color:#867C1D} +#header #inactive {padding:3px 3px 2px 5px;font-weight:bold} +a.deleteDeep:hover +{ +text-decoration:none; +background-color:#9a1818; +color:#fff; +} +a.deleteShallow:hover +{ +text-decoration:none; +background-color:#f3e508; +color:#000; +} +a.deleteCancel:hover +{ +text-decoration:none; +background-color:#bee8b6; +color:#000; +} +.nav +{ +padding-left:80px; +} \ No newline at end of file diff --git a/backend/php/src/setup/setup_images/background_id.gif b/backend/php/src/setup/setup_images/background_id.gif new file mode 100644 index 0000000000000000000000000000000000000000..363cc1cf941e1f10e261a5f8a042b7235cb528e4 GIT binary patch literal 359 zcmV-t0hsM)j$~<` zD3K&+YqCJ0D8eG#c&_h!@BhC;qY+aChK+!7$!t2G(5N)pI1~c1z+iyrdcWYXcuX#v z4atLXpk+_r@Ob=y*eV)ZZc@(g%h3i00u2ZOU4Dp(P(lF;3wwMHl9QB`mY0~BmJbaM z4FU{(3k+L|rc@7o4Qr>ZO%Dft2L`USN|34!wyq0>ege9?r=f@kslukKes{>H0824&&GgWZ4e6TTXW*_5?{% z(6sb1rwpTQ$HX=zPw4QAU09{#;;$=|DyQ2lZC6&eou!7EEC%DL9hp6R_a&#Lwc*!- V81c5q*y#8OxtKUfS*cI}06Ru`O6>pu literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/button_delete.gif b/backend/php/src/setup/setup_images/button_delete.gif new file mode 100644 index 0000000000000000000000000000000000000000..31cc30f6968d044cb46c1dc800fdef8b3a2332cf GIT binary patch literal 281 zcmV+!0p|WkNk%w1VK)E{0K@&0WyT9P#=iT4rmzSBQsH(8B zv*P6Gx4FHltF5%Qy58XB!o>jg(4e8Cqok&pnw;k7?cCnu z*000G+;3tk`X`X1Rl3m-ba4dHtEuY?< z0(|cSC66$dBI-;44S~Q}7#@d>ZDcf>tU;MV(nw$~9)v4PrB+Eo(U6!%0Rr%NU|O!T z)poodI|3Lw0)QP9bb5P3hHHt4ClLpNfdhpfXNHMnlq(sMfq?~+ifC1NnwFN9l9GjwkB_jhpvT9x#Kfn!ra`u?fBgLX z%*?3q@$tjMu&1Y(sHmB$s-32$mj3?!hlhfxshg^*pTNMY?(Xi&%B7^FlBK1SuCAt{ zqLGJ(fo*MTbaZdT#Il^6oNH@op`nn_(5%0|seF8ObaZgV#kP=;kgu+8tLrHP4&v$Ley+S<3bs;jG*x3{6SwYA&Z#>vUN&d#>4 zudl?!wUm^GuCABg-^{zav&YAz*x0{uu&|$jfp~&~dCtzNiGEb{r&s)_U`)n_3`oI{QUT2 zWMs+7rQY7YA^8LV00000EC2ui07L*M000R80RIUbNU)&6g9sBUTqqEq!-o(fN}Ncs zqQ#32`Dxt9v7^V2AVZ2AsZpQFlPFWFT*ZvufSSwX4^!R`-b=OSY`pvuM+*T`QKJ+qZD- z_^GhSj~%#p;er9fCvRRpV7~bsoY#Zl!-vrkXtYgLBL}$gJLjJpL#A-XrT)aIB>*<9Bx>RBNtwH4s=rV z9sO)EML$yj5+@A( z#L>*0a>m&~KYQTO&pU#usiq2uCWL{TElWM5& zrxlv2Q7R{d^rOTEDx_LzrSru9D(gJy7_$fjHzbmX5e`%k!6&l@E9|hu7Hh0QhfH7% z63jNsEHMx)bC5RzR4afsF=VUlw%m5xtvU<^AVCdAlxyy}Mlf)QLETv9t^o|in~(_f z(i?#(MC7aQzWLfvfiCsZ`$a!rh;RwP0Vk~R!VCwz!ow?!Gj0tOS8Q>`4&Vau!(Q~` z#R?sJAqN7gnzO>&UA^wSRkB<{N}OaA<~UqCbkIKvDJAP80n0t__Z2QZAG3}vVZITiOrsjpc#AWR;Ef}&g))Lb$2!_E2=Aa{AGiU>KKk*GZ|p)B0Qtss zj9`$2L}U{D!AL!100)qaq$DNz3=J^yl93 ThX~|F&1zcnn%JynKmY(c2}NRL literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/button_toolbar_help.gif b/backend/php/src/setup/setup_images/button_toolbar_help.gif new file mode 100644 index 0000000000000000000000000000000000000000..324f1d43ec470f489e7c205ce8ceea972ba34c16 GIT binary patch literal 1910 zcmV-+2Z{JcNk%w1VLAXO0QUd@baZdIxuu7Pg5Tf3-QB(K@89g~+tbsr>gv|q+`HS` zy4BUQ+1a?)*S65mt>ECowY8h!;l<B^pppNwP^!fSup`nnfs-5=s_Nb_+hK7I1$)v=@vY(%g`}_N&qmseFt!!*+!^5zq zrk13nlIG^-;Nak;rIi2w|D~mquCAuPzp06diKnNPz`(1_%&3r%kh;2}-QB*ctD)ZB zzs1G1$jGH_ZEMcXs-K^h(9o>U&$`OWzSq~+!NH=!!osbsqw4DF(9plQxS*Vzobd4Q z$;qkJ)yk2Pk(HH*ot>TI(8|iE$jGnA z$h)hntF5h?h=_l-wx!0#xRR2Eva+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rOTGe$SL!!S-VC@iha}O z&4LOXJ9h3A7v|izf4`V8&yk}?9T`rZI_=1M?)(Kuw#!$pIvU@&dCSrC?!EhtW{(~} zab$e{;-#a>o44;AnLd8{?D+ND_a8qU&Hw!UXKum7CDZY^{a`ak{ga3j8xs3u1(dz+ zEL^9u9W#YKjFT33&U#49jZ0{{w-6^Q@< literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/button_update.gif b/backend/php/src/setup/setup_images/button_update.gif new file mode 100644 index 0000000000000000000000000000000000000000..1ee086f801471333371ca9811893ccfb9caf5109 GIT binary patch literal 273 zcmZ?wbhEHbG-nWCIKsfNW9ROv(`J1A_G9sqWw-7;xOV;ay$4TDoH}#%+@*_`uV1`; z?a`ALCr+Mu`uxq=a~IE^zc^#&?B_4vF%S(Df3kqp>VQa)oeZpf2`YUlne#GMt;>16 zuYiZSA?N&|g2@;3uGt@S3V+qxqxq!wn1}?&5#{`)I@=hUa;61%uq?a8k#a^^zBhUE zO_L0rd8|hte-PEY_-)UPmh0i}%mthrJf&529o6ZzNtv3=%v>BLVTrXp(-XBB`KHwL mm1XyqXJ;)^V{Fy0x6@#3OU>N0dCS&q3)b%3wOdb-!5RSZxNd*| literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/folderclose.gif b/backend/php/src/setup/setup_images/folderclose.gif new file mode 100644 index 0000000000000000000000000000000000000000..112a78412c698ca9ca4758c8796dcd650d4efc32 GIT binary patch literal 62 zcmZ?wbhEHbcDcK`qY literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/folderopen.gif b/backend/php/src/setup/setup_images/folderopen.gif new file mode 100644 index 0000000000000000000000000000000000000000..443dd4ee22802937e94211f21d119a5904fc4260 GIT binary patch literal 61 zcmZ?wbhEHb~6tpo5amj@-skB^1P1DRRQp>F-F_%y*1S`!YFcUM|OoD32%3aga z8EZ19TyZziG)-IFkZ@^GbX2l%373d*eCDZX{^~u?xzD-3_nvd_Usu{EeG9C0-R-g) z03i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om)Qa(J8wYy8Tn3fo(^Q9)i)RV%9j} zAE2&agwNh(d}GhiK1}Oqdi2Aw)`QXR>zK`1Xq(N}5&eOl)xy%tLqGEOIam@(vp%8U%Xd{vwiV}418k0abNV6FkO|Y_ zcR~$!swf8)q7_u}v`B8)iV%%Mxp$lyeOh3sFlu`iuQ*`mTj?^r$(}&#qTqN>v1zzp zVI(r`!hAKXb924NqF&yTvBb0agT$wVm18QY7krxG&D37LB?TTD%nUAk&KzrGs@4AQ LpIq6(rQE*(Y^%V- literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/gradient_container.gif b/backend/php/src/setup/setup_images/gradient_container.gif new file mode 100644 index 0000000000000000000000000000000000000000..a6430f8b7f536bd1a256f6d6ad340a6336299bf0 GIT binary patch literal 179 zcmV;k08IZ!Nk%w1VF&N#Ib=yL zXo>=C>%MU8K6Gv0c-`#$j{Lx&5D_REkI2Aa$!t2G(57HYty-_xDr3vt629Q?VN5QY h&*X%9tv0yd@VG%iuhT{NynfH``~QG}f`cFt06P#>X@~#- literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/loading.gif b/backend/php/src/setup/setup_images/loading.gif new file mode 100644 index 0000000000000000000000000000000000000000..bf510daca026ca666c43682a7265f8bb8d7ea018 GIT binary patch literal 1141 zcmb`_XHQ#a6u|N8J;2z6kg&moOcUZjN7A%3X#yl^o2E_Z0NRq4M@W1CBm^(u9^dP0 zN8k`fDHZ~&Rcyz_27?(k!h$jc2noazOMpP^y{9Pd%Zj|~`2fH3m(GcL6nX3R3jrp; zrV-ZH*JrU<^78VMlanP9Npy7d(b3V~-rmH-#KFPA>gwvy(9qo6+~VTm%*@R0?(XL1 zre3el$;s*O@2{<`Ei5c-Yip~isYy*ujf;!h*w|QES?TEL7#kZ43ky3uJS-?E*xufr zpPz4SZQbABUszaJT3RYDF4kx?6%`c}Mb*{Sm6es5Os1`^t(~2n`1ttr^mL=qI6FHV z8ynlu(4bbUo0^(zHk(u`wOXx3MMa&Rod$!Uxw+YFHYX$`^z`%$3=CvsWR#Yc#>B+n zIKI5RoS2xHpP%2@*f>5uzP7d&9v-e#Dn~{}T3T94N=l}ur$3UX*Vij6D<>x> z)6&vNlI-p6wcG7oU0wC{^(iSS!^6XagM&#)N$u_J)z#JA-QCB>$JqZm;$x>L5zn99 zzxOmEG(^gvo#5grkiml*s$xfb5KXz1OCp3i!oU4%G-aa?7lx(M8F-|Ui&zGkz$)*26*JOS0 z9t50KU=ObgSxDgV7kn9jn=3qo@Z_Qu1YhLZaQVB-Wdw;w$z@`0kP-!AF8-=-1Z)+_ zR5J-$G3|Hq`u7lgj(GM%EQf*k?mD>p05_W4IdH|h3iu*2Se`cz(x+rxBh16Cx$J1{rv8HM$%`LWNnDf!+BB D{O-KY literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/mini_pog.jpg b/backend/php/src/setup/setup_images/mini_pog.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3cbf683a1551c4d807168e8c99f0faf32050d76d GIT binary patch literal 16299 zcmeG@XIN9qwmY5Bdy^8R2}tiql^O-<)e1>~P!dc+5er9DJYqpnK|w_krP&TB2pqtU z6$B|FBA_B7h*;=o-t164*L&abzVF^2?{o6)z1OTVv(}omXC`}Q*iYG=kl->0q636L zA|NO5gVijLi)7ffNLxP9o-XJBgevU-u+x7S`f$LJ$^#n&!pMw*w(J zX9q%Mz8%0P)A}N`kh5i@yQa(gPIvZ?eEA;Y<=C{=)&)Ya2Oxe<4kG^sN@H zeB&3L5)t}41+cF{LR^p*q>DlA7N?x*IoS1)#55GoF50GIchHM$f8#XENTR{}CFN7`_M1g#*V%ru{+aqOKVzsMuZ?F5@?I&=!C;!3^^(& z=nA8O2J07!VDz>g5QR0k?omIeuN2h9NKCc$6eBSWJ}P5j1#l{cHyVHvrzObt-bO6S z%UKovxdy6pDzKkHyeLkcLXZ_SRM&Gqg7#X`${&{^^Of)_z=*J%dg01-Pema^R(Gqw#j6mGi`v9b)shJGFB>4=@1)Y z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VjGwKmdbfQeYfgmx>r$ndn*LUBl_7n z1l`KttY?><9(1YpReK28Q~q{ZbL;r6kAA4P+|QRp{UTs4d9iIVVb@tZxp#)PRd4yn)0~w zS`X5$b(#`uU3wy#A98X$W0Rlp24gSr5)0DL_m7>kF4*2(xMr^AM&>c0p1VzXWbv6* zZgaV-8{_oqBsW}g9&p^9s|;Tndmaj`nt0G%OtY{|pLAyT>Xr?KXnC|0{LEw2X}~^i z4mK7ABc8!~7Ye~F7VTc~z19^V`vqz|45R zR;7H?k&FB0?pcWT+w75LuE^pH*uOs}+Aoocul44;!J%stm^7*5VnJBQjy`j%_KR1F z&UYs_-N^L)@TlwA;kR{r>c1-45KibYE6>kn83o&ZH`Vt?=yNN{w+Ve2Yq+ei7J1(<0R$J{o?Xqn zT&~7+BD@6$i(8MU`!bX&(E6ayE~&wjn9ODg2IB@_A4ZI5sI+y6Lf{adci;1Wvs9QRKjyHl+eKIJD}vKb_s{;YndL{nmfhKH8QLw2l5eS< zqMqkJZMYcMeEo1vOaUEEN}U||-CW}|vc7}EbRP7w>b!1ZusoJ2_z&B-V{_DPX?I02 z#)Eto2)YvsSx@H&#C z>-UC@1xN)M3Wa7hzmXa9Tn-Ps_Z_)qU|*q;*D)nMK>l1d7yQ)qe=}!UcRtvhT08!e z;IqQ^?Re1~!t@+7Z}K=1FWg=4Bp>GPpoI&2PsN{+J8lZHyil%$5apgy#y7?8m%U|w zyI{ynm2c6DfFlRbgo&bFmt}{0WaA(DJ#pBvN~25IPy9k$$U05vyjxR_FtZF~6L!^T GZ2zBE$N9Vf literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/pog_setup_open.jpg b/backend/php/src/setup/setup_images/pog_setup_open.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4417e8c164fbeb41751c96071cb4be303f199787 GIT binary patch literal 2398 zcma)6c_5Tq8$Yv}#xOI6tizbn)y)#2TavL(Gx_4;c7>*lU1Z;v>|04FTQsOa*|H{4 z%2JV}(wC9Yr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g b/backend/php/src/setup/setup_images/setup_attachtables.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0ffeafad32c96b5792495782c883e5d4c2f42359 GIT binary patch literal 2106 zcmaKn2{_d29>@Rx|7-?fCWcOyj1XmxbxtZtWEvqejMGJB8!bdcL>+6H!4YE+DzZ!r z-Do0?TuUP|C`)4}OG;Tv97UNko$fj3>ABByKkxJW-uJhEUs1p41t4c*O|}L=2mrjr z2N2By7^@I3-wOZ;zySbo5QpXg84K?KPdeb;AdY~dAs`Nb{sty~!Qf&GgCpQyK_C%- zf<&TF5-1cBjh2)|qouzGgu!44I0B7CqBlsPr8daQh>?~3v*^E<^f&MOzP~+D1AvhL zwgXfchyfrB2*ZFPK2RW*Emi`Gb^Zk$g+PLk1R4YZ7$`RX0K(u90x1Uo2nd2p!4Vt2 zrNFO00gxE1`bK$F7hWT+fUTfOqdOZ=3_UG8s5r&w{V_(4v0IIa)>R}4@p1qThar%t zzXpRC2n$oEq*5*5@&+E!w>G{DtiTr_#trXv8}SrGgMhSHAB2Hn0CQk1m-pzS>t2t& zlFfE?rB)$~f$`6Jx%#;Xod=aCuV|cze^+&}>7qPm^m)G0bx6Mn4=S}<)ytiB?7BKt z%n^Q#&c0j6J-v1~hLaQF%|&>1Nt5Hf7_USG^z2V zx~zI?E^lnM`0|}nD+A;8UbP2DE_oFz2yTqKaSz*CK5{*yb{n@$L=$)=*y3@oiUaSX znD?1s$8>NiKeYGD+eIOKD^Cq)6t?;!Wdgz!Uq7m)-6+Eji z>!K69Qko!bfCwqA`KparPsnB>uDt+G&SRBKa`P^BIA6U8Ta=3gY;-+5O?xH-W+ z3N$<(0TsICA@nmziqgIlewR8|YZZ+?WhY@1uN;rQ=Syu^qV-(Fj`FnUi-6V)ypCWo zza}Vm7g=e_wpp#v7H~6LUcvo)HD$rT1ooKd{AGnT7L-}~Qj3yXcc$c|mozWk(Shng z)T`X53GcML&N1kbQ#NEUl38@(%*)K)L$Oy=TcF{60pdcH0le`2RcN+B_gM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?XpY>q zK2aj`&E0jV_E?freCTSj#vRs;uPI&2+Ak!G@QFQZzOO(*ePq3W@z(n`In=i+A!S|! zQ1~JD91CkJUpF5NjVzwnHK5adba2VDaCd!gpo$-RhAiF;o{=v;^GnD0RsUZK7IjyJ|1CV5fNcw z8EI*08F@HhWM^mR<>8eO5Ri}(6%>_%OAyQWe}F-dgF%8Rl9^GEfk}{&S&;Gn5r#0J zvzdX8L;@_V9E?DKBm!hIG6^s;FfpTuGBOD&vN#H&D+PM^76T7ZDU%?xAcH-_rMorL hmp=Q_bE$m2)KtMxRC9^uF;*RRAX+h%6f*z62>{XbFXR9K literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_bottom3tile.jpg b/backend/php/src/setup/setup_images/setup_bottom3tile.jpg new file mode 100644 index 0000000000000000000000000000000000000000..abbe75d3dfb22c240ec33927c5b3a21a928b3a10 GIT binary patch literal 311 zcma)&Jqp4=5JtaAHk+7T<1R@cBmplXh#;bZ;2AVl7FHJac3#9|r0@cE{xlvyyu!Lz zh-l**28K7oFpN2w8`O9(8h{+2vH^34?yu*|4G0WC$EpXSUbUJnP}SCuxnc{>81oqS zJl^0oMZkF=WEhGtluEu(GHR(-B;zPvBj$kC)!blF}2RKk1 zA3>qeXbc*S!eTi&u~_cUfnXTsKyqMFC@c>bmWzjvmkl4^$EJTf?%&ntbAKpS7r!9Dic5E6#idwv21A<-BF%z=d<07Go^A0Px0=0NcSz=1#@c_0+} z_agM+D*z{ek`WZb6V#u2$!3@59CPq>L<<|+X4=VN8Z;U;PgaleVy-VK3+aljC~yT|A`a5X43u^DqvKXdlAE_ z`7EbE;^HC0zZkQ%1sto3imuots@>%vdkjBnv~icbbNxiNFJXeI{)l#r(b#tO?DX=s zzJImIvty|kvQXbBF*fEl^JKM&UU+y5!YnU3m?>7hrFA~fOYj7lWZ-V;5>;n;SuUE` zB?8kYCYK6X_3$gE2;q_b5_dtIvSOX@|*OG)m2ga-->>rYB1 zFL*iOjnX(nV>J`&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Xavk;8xzTh90( zE8fzIsaRfm*4J6FXgGQ}$?&N1KH=#7^fc&x8Zp6zL3Ev+#<)&9wSs9UOj89#UAzdt IFI5fx1$42%IsgCw literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_expandall.jpg b/backend/php/src/setup/setup_images/setup_expandall.jpg new file mode 100644 index 0000000000000000000000000000000000000000..52751dd594d66f1e2b92f268c662c8af205784df GIT binary patch literal 1974 zcmb_XdpOi-8~**~HwR_-$R|y5HfUXDS=OOlr&@}}_^9MC-)P(2Z~y=9_qv|AOswNMk3KN7&Jyk7AJwM?5Cp77xs7d_r5=w zxD6mk0s8@82qXY70tgX6aTjn+VjBWrki_R7Kp;^d9FjtV5(SimzX0x9M&bbg0f8_q zghKo-eM$oaq?`hZD3I4IEaxa{`!IYR_63^;k*M{1q#hn=aMF={D%k;skgWcBA_ybM zLBxEjr-G?N&_nnwf&5BZyC#W+5KjPD2$YzF2!I{1S=P|G;b)s>YcTt7b;Ww4>hYPa z`(^fJiblQN5f{rtvsRmuVM*S*no90X_5SfSw1_&DZst9u5e>yjEY8!TRhvnkEAhHh-Dwj)u7eXKYqSs3mCQJ4uJ74q zriI>p`*id(_d2i?BJ3E^^rC_&!$-R3hf)rQZe(HylE&TdslAC#i2v%f3%R%F#%Ys$ zJXFE`qRI3ubaIAYc`)7Cb|CSw+LC3k@~ERShn^9$-a?XDrC9)rT0foj(wfPqakWSW zhRG@(8t1kg&q3r|uaWV#` zYjjzIHD%=}%v7nV8e5Qh`HZ8lCA4L_2U!L-+zxO*aPAjZMYmPMUkD|92Ki?%_YMZo z-d92arVpg09;p&NH5Ua}eO>ZmH z{qU?cN9DsJdHak^bj-L->EO}|EiA4#MPE}|5GVA(kJePV!+XtBVYB9W{yAphBOErX zfxL%#xLJMPr?4BVp2)NSwnO~uH`FH;7q;i#8y%ODDSusiKAWVk>MOD6XVYm)Yj7MO zw+0!m&!jOX`PLWabEkCTD>oXuSFYRZ5&IQzP(ZE8M|_6D$wW;{nEsAshVi6)Z(N0M z_`Fi|@GLQuS>ZH{oYrJ`>9JBzIZtayU6DQ5Fi7Rh%v2upx-&L)jfU(* zv_)l+!m6xErQbaiaFL{}<4SpX(brw2@P>{jJcuP!*W9*kdMI2BkULf9EAET5Z`QisdP2$TQ4SGh(^sek z!mF%7x2_q7>wNypBET&4in&6YW7v;o_QtEqweW`t6pQPKyN16KyPFfA#*8hH0~q`#oOUUb zM#m;1-S5!pWzyY!R7_kBY~VH(+SVd+WbCP_fJ|3Y^XRFmkDJMv)mM{SE|cAKU3s}o z7Vj$BXM|X$!+in=>#BX^6TLVHjUTo3(vI2=sbsFwdD}LvT@!)RnzWEQL7nHFd|nb6 z&g_Fp|BI?sd?FL{al%>PFvT6_occpw)}J}oA_mq7>36r!3s)O!!;Wp1@6^A~X6%@( zk7NneYadX{c^6u|6_;+S{o_DZG|KAYkRYYR9P_mgf((Px^)AVX zUUK$Qn3Y~}R&ZmXO0!w)=3v-z|7zILb~EXdwcb>n@>TjYcz{VTZ9W=-fW0Z3AK1Up zf-k~Y(0>|qVgKN8kQ0la^=#&rvaMNtOnmdT-#n&?ZNzG0CCq4iJxy!kKKe}8tmP3N zHBw;sxcf=Mx5HXz*>E`xy&bzCPtwJyC|G9dOcddRj2KXi9eAamkf1#$7`x?nya9XK zsz)EpD`_vqYHF24qKICKhvXK=xHSfdrw<|>{YzMZmd2F@hA-yUM`NMgrE#Ky%k-+SZ`tGQt1Dt4s_UD2uf~DyrEY$FO7pBWO@Fs5c;4pI49+r1bl#Mu zrvBC{Z?DVP6cE_?EtW#8(t zQ%|76b$dQncnD1w4ksrkJU?{B;mrbSmjJI0qaJWod%5dtQ1O~tYihJw`q&UIWGL|? P_&iZI(EhJdP(1!$;U+S{ literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_footer.jpg b/backend/php/src/setup/setup_images/setup_footer.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4b57b2408d1d0105440dc6db95bd7bcf955eabb0 GIT binary patch literal 1145 zcmex=fiY(89pR!otGJ!p6$V#>oc6+#GCd9Nauy zT-;n-JOVsmAi%@NFTl^oBP=W;A}lN;EiEl04+o6w?CiWeyb=Ne5>ldqqEc`PVj2Gr zF$i)nC^Kj?GYT>=2{JMZGX6ipuo>uXRz^mk^WlJ*g_Vt+i4iEsj4Hv%#LUVfz`)4D z$il=7*TMw!IE#RSfgr1)kdcTgn;VR08NyMMD8cg}}tZ#)%&m9=vF<@#Ftn3_L*FnFN^yfo{Lb z;J033?E!(C=k2_$C&wyfUkzCH-14}!_kHp7zkhW9@*Gl{f-E@MW5_7Ot4AvOf4#2k%!`ExlF7ij@y<-s@~(Se~zVe11qEGwZtbVT=8n z1OGF4wI7cD_}Cv35Fo2A@Lbr#$(=SYlPxnpyOpabEZc0Y=}ujS=+?y$Rm>n&*DSca zM3jS_Tdm?B0QDkbQ((eOrR^t|F)10${0<2$Mxc6uOD;08Z@s@4~=_Oc(-Pu&FQ}-Zv$PJH=BR-m!5dt z*5ux60=1um#fDd4`>eAKhcG`DEs0@l@fOugHd K+W5`?e-i*a(Qn8A literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_generateform.jpg b/backend/php/src/setup/setup_images/setup_generateform.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1da87334fde2e7631bb3ae94ef8f4cb1902a5cbf GIT binary patch literal 2535 zcmaJ>2|SeD8h_t;XED|p!k~l^nIUD1WF$*u8zM=PLf0@&wuIu#nxxDqMIw==5V}Pw zI~9YhQ6gJJWbNupxbLJ?_xJtobI$Ks{^y+MJkNQ~Im=zkeE@E^iJ1uiA^^Y*Zou+5 zfHw*_;uQpd01^NIDhz!B6b#%Lhus0U3K#()Kokj~c?AFfA_D-51pt^R0KmRq?gkyQpJ^>*?n1qDB zPx>MFSFAtRty;@f0G~kSqd;7a^k1IGHt@4{ebXg*N~Z2n-rRVOJc02nfInBW0NxED?3X zEe1AnY8pFAYOKhD{jib#)nxc zv-wO$Vatx?Hvm5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JmuFX zjgz7mb<=fZDc;O3y&ezCZQ|4NOnH`>eEMp{z;~Y@>=S3*lG<}&=NBEmz9H3!gfhW@ zRQc9>ZYM5c)2CFX&CQ$aZuO0x!5o>=_8>|I>TC&2L$e}HukAbb5w#}0PAuFz$)G|o zJHYs~#ADxYeZhq+wT=r(S)O$#R84c7UDa%gQ%-WE3A96zvX&lfbj=7y_C<5X?aYlW zvB`r@jn5Gz;d}?QDrvg*`P9A+!xv4X2^?V^&>WDMWCvOn(z_%`J4D{zh~Hc1dhWr! zzh*r%NGw@}jGWz#@4oZo`){CH#L}H zm8Y?58B-2RSMPqPh)?s>u9Uf&V&VV%OE5NTJkN5Q33=o!@x&|dGKA(XtJ7;2U&S4f z(0H|1Rlc#TBuS1ZXTO4i#PGzrbPYS~q=Ax0z}K?5D}46ll(4ao-ucqWklqFE`LC3X zdo6HX!6wzMTGGsdx%ikYZ#|;xsFaZDAK*Sl`G*(on2IE-`O%x15BJ$f(kH)4WnUh) z4cDV!-Pao}CiulB*D=4MRJ3NuRU^7-BNw0X4!*RnKi`?1hGcFJ)vqM(Dz=_F)-$l5 zq2KIf&#uiM_k83z+9P3kwLmE~_#3ZON~gB0Qy6?>_M9HQHfixL*khq>Yj1MdT;qH; zqg4HOFuiy6(&6e76)cj~+_)l^*_UlNc+wUZo$pd@EggYICMveJTZ!`1riIh(0%gK^ LR{Fxb<=6iO|IG$# literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_logo1.jpg b/backend/php/src/setup/setup_images/setup_logo1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..65305707889b4181836998277f3ed334b58c76cf GIT binary patch literal 7992 zcma)gcRZWl`*#SjH>LKTr8S~vRn1yOTbq^`wJCy9CDh((S8A&gd(@^@Z9!v1sJ&vh z6vdb7eLTJ`T>6oqvFjgA2qX01;jZfjIxt{8He9C;>P? zTp%tH0TBpDfPeKA4geQOg~vgSFA7rBvvlVaqoE@RNt ziF+@xYV09InMZ}tBhM3jjp}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AvbQm7yjlwSCI1%JmXpMcuETogQNgNg z%$LMy5-FmT=mE~Lj*7sFXisd(#29uo5@Q_eA6TSpI8K&!B(r1fUKAy!1!tKj^G~g? wCSYckBBcAz=l*|FUx;fer<44;@5r~^RYCH0u;6;QJ_rB&$5!qilH(HnKTwU?U;qFB literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_logo3.jpg b/backend/php/src/setup/setup_images/setup_logo3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8d97149b82ae90eee1fa736cfd1924896f75d8b0 GIT binary patch literal 6683 zcmd^DcQl+`w|}%Dx~MUF35g);5D_N4x`Y&c2xGJ{O7s>Hf=CdA=n-9_x6ujFiI!lD z78Bi!-h(Ue_uhBi@BPZU>#qCPy}xHYYn{E%dG`M8v(DLPKj&=xY!;x`Qqxoeh=>8e z`uqXT)&K@o4>-~XAOc7M0JwRsA^@~dYiBD2VBK=AAv(hXApnS!l$4AVL`DX>06KrE zC_o?zDr!nfDoRRfdg|XnPfbflPe)75$jHRR$jAW(gE_eW1Q9toISn-p8$CT6J2L|_ z`=1^E-Nso9z(4^s0V^a#3;;0$5eWm)*=GQKPMes7h=}N%=pP^hk&u!T6H%P&{=VZp zXcAH~5IsOdLPAVTN=*zRrJy_i=$8csQZn9)5+EoaBeTBikR*TH2-Ab?hvb$)F}Lqo zNmZ1&v&g=G{47=_#Dguf{64%*K-IePtDu??go1(S+#b>SypV!O{>FfaftchXuY^7$ zDb&*SUS?3t`?4XjjZd3=l8^bNn3!+J4xdc`)FkI_8AuoaCE(=V(|-e9A}Hs2$wpu< z=I}~Jj2^|m#x13OVczC#N6{@nFeDfE79!F!rj>dfiyp%Y7Ej(2B|9>g&o+|)DF zRo;H8D!cbj-2A6kNxW)`o@@q6c_OHa!~yh`CLgS4SyO|qj;>6Hf*sf|EW6GQ%EkHu zUo%E&o9jK`pdM^^Ov|N7C6F9T2W`3sY|vyl17(6SH7TuT(X08kE>OEJonyX#agm)? zAY&XFF*iXKp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6XvnsggW)Db>mePh+Z8 z^MvfN)lwO*{$c%3!;}T97hIG4#{>x?L-xapM1WIbL aebkhL6Ewcw{@ZNu%0FC)5EIj#Vg3V*Z#3%w literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_pogmeup.gif b/backend/php/src/setup/setup_images/setup_pogmeup.gif new file mode 100644 index 0000000000000000000000000000000000000000..ab95cb7852546571aacdcfca3848cd75e7be074a GIT binary patch literal 1420 zcmV;71#|jGNk%w1VF&?00J8u9_4fJa>F&$S(6_Ev)X$u$s;oh!59sE~r|X5^;pOY> z@YdMe@bUHY^5nk0!Nl^dA^8LV00000EC2ui00;p<000F4Fvv-(y*TU5yZ>M)j$~<` zXsWJk>%MR-&vb3yc&_h!@BhG{a7Zi~kI1BQ$!t2G(5Q4uty-_xtai)odcWXGVoWZZ z&*-#z&2GEj@c1~qBQNgwynfH``~QG}f`f#GWOO!m3j&Odj*pO$l9QB`mY0~Bns}45rl+W>s;jK6uCK7MvataP0-U3sF9~=Gv%kQ>!o$R<3V6A?ET9X;&d<=% zzqrcFiwx4)+S|?yx5?Efpb6aN=I5=vbK&BPzUc7r+zQ|9?E>=o`p@1A;PxVT;oC>B z;H-K8NeDE^u;D6%2?H*2ND&%?i`alcj0j?(w2Q3&K(4}A5tYc03g%=y=#Qhsfxr&P zl-a=4N|^)>*fiDPK+Xm=0Vp`humORfLy4M9V8FnF04rl{blJhL2Tj#<{6e$rBxSI7aI)SLh)XFcg6ShwtQ)+l@J z@;9Rh6t>uCdyO*CwJf6T!R68RrrIb^I?7_H%+=Hw0J1vuzg3^YT-%QT%?sCHH^Md6 zT5lu}BVZ@axYn&cu5~I5w5;dgNPal;;FgBm&{P%nH)#9KI@AZEbErr4Ov+lebiX=jrag=CAPa^xoj*A^8LV00000EC2ui0B8bD000F4kjY7_y*TU5yZ>M)j$~<` zXsWJk>%MR-&vb3yc&_h!@BhG{a7Zi~kI1BQ$!t2G(5Q4uty-_xtai)odcWYXcuX#v z&*-#z&2Fmz@VIs;jK4oSCq(mywXQkcqg4y1Ib9e|o@rbi>1L#xe)V%FE2n&dd%D z2hr5k*4NnC+SLQy-rwNi;^XAy=I7|?>g(+7-rMl;^4HJx_Rh!o`uqI-{{H|23LHqV zpuvL(6DnNDu%W|;5F<*QNU@^Dix@L%+{m$`$B!WYLy8 zoJq5$&6_xL>fFh*r_Y~2g9;rgvp@j=M3X9Q1E9cw0!yPxE#tJo(WzLoW@$R0fmN+w z!zwXKmTXr82Cj--%eDtsacI#(ZA-UqjjCR~#x;UON zx9{J;g9{%{ytwh>$dfBy&b+zv=g^}|Z!X}|f)@({2$;^jU;qN(!C!A7fIxum=m7%w z9^e6c7v;~VpU;o|dh_fF06-8P>38!AJP_XW0sxc;o`2y5fE0ZUx^Z841XKrJd*Jc6 z34RfNXQ2ZXnzz7&<~1l{8~@p-Ap`Lp03rg32neBz;l&r7|%vs_CYjcIxRqwtXt<61$CRY7qmRswxo!gu3dhJRHysthDOzPOZ4o5KgYV Rx-gEby#_mitlmTb06Y0!v%dfU literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_recheck.jpg b/backend/php/src/setup/setup_images/setup_recheck.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0b0bcb70aaa6c70c7a4c25513b1583767d1f45fa GIT binary patch literal 4074 zcmeHKdr;F?7QT6c5P@G30R;_tfWjJSfHFumF%W?SDw06jBHa`kc}RmoH(Q}X&|*QB z5J*B0q*a7iU_^!*5LCdfSiq=I2#EM#3y8G1iey28kZg)$|L*L}I_|9J&OP_c_nmvr zy=Tt-t5 z7L@^k_FmrSAs9fI0|K~NzYGaQz;Rd@5kWiLm`XB@01U#+LI?;jz@jJ|HyK}L9O6+< z$%tzme&pTSnyIT({ygJ!f7fBM4}QhSF6iUsUfD19hkG-35nye)Da)HEzeDKfyi;#o z-qz(cG{d)Hvo|UdA*xOU&L`)E>Toy>PO--@s@)=a66Q>pyOw5KEoo0xfDr zlm#7{Zsij$m1l4@W_dYG?4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G-l^1b8%_* z*>P0R84b(RAl_8CpxR5(T^mNxJLLo(YGTz6JTErnI5)ArVWbm|GqsWI|0+;MexCXo z)4iTcz0LBUb`Gang_*@SWAwP+TJR!j;dt`4Ge@+GwlxzM2AIQt%HHm?{zwbrt@(!4 ZA&O4IhP%6bZ_IYfe)$c21GVYSzX3dKkF)>) literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_regenerate.jpg b/backend/php/src/setup/setup_images/setup_regenerate.jpg new file mode 100644 index 0000000000000000000000000000000000000000..878d6bc4e77ddfddac91edadef74acc9647f448f GIT binary patch literal 2167 zcmb7>dpOf?AIHD*-DYzb!z5DA456r*Gg-vsFga|=AwAe689yBqDiVgrp~)%aTyjXE zNlFqqRB{-lIg}91p+u{&Jp1)@{jTTt$MeVYy07cLKcDyg{#>8Weccry7+V6Nc00E!?05}PyMF3?%3-P4`w8ugPvM~b00wR9_3L_9I+(9S| z`X?|r>=$sjs3<~I6ploSi6M~^e+L4BAPfpa!r@3saiqAU6iSGc)GyQTL*hT#-|PO$ zHXZ|L1h4~e0U>BW1PuYvkd1brSU5HafDnjq(BHt|q9PyyiWF)>{l6{%2nZE{!KDER z6aYa40)&eHDiIOtFaQmgkrl<_aiwxp`a$P@72PWt7&QxDgb&MwP~2)6<9bO?-hgBy z>FJy6GO`>9+5Zt9R~g z9V(GkE+}l8SceM^d8P&SBU5`1jQ#Nwyil#($qtC^JX*fk7zJrLC_l-)Yw1_d`Q}B8 zep@9Ty5NB&r1G*KU{5ll)Ek zKFW%;%5>NOAl|_awKuArY)_^QCgh>63#`Vk>$4>etFyTuX=8)L%@6SE*i5>|aDE3p zj5c0ru)joX*nfXT?g=dp*=$ntoEMUiIQq}`xTdXrS~W+NyQrV1Rk^0x@k8u~3FVr@ z-NVVz-?IS_Vtb`pui}aC;V>Y$rFiStgiBIWpN1_0U10O)y4SKeFmJ7}c{f*|}W#Gp|Kv z&78(1rqkIyDQ=jn#7(y+hg?7M3ppu)nT<^f+6P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/setup_updateall.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2b8be2478e41afc3a566fd9ead060a1133518f07 GIT binary patch literal 2340 zcmcIic{tST9{Be4pnPa0KrFNgGRRO8^80 z08ilo1PcJ#JjBEA8UO;I001}$LrVbagl7QN3-D|fMnD2C5DkF;0z~LRph63Q!k~Wu z28VqI9F9PUAP{gQQdAU)6#F|s5C{YYg(2Z^r1&=EHgO4*5E2sKi~eKN@pnt?b@^(pFq!UnM1Zx1%`PCQQIn`fo`6-Ei+!l>Suv-!<@w!x~3O(H8Eusf(CE49mK9K^=_WUg^{ z+cWz0=F-Ma`qw&K_N@cSS?n7NOq@%Xfihw7O3xW{I!XR`NSlcLb0cj@e>d7ine9=< z(Jl8*!Te+>EAc^_{D8Oa!7l_rZ$s;E_E)}^jNKRxahmgIQgcdq6TW97XAq!5y}g9J zuE`kVr}T*sz1|2BFO6-a5TChExw5{DIum-{@Ud5(;ki~9x-Acj5?Rq&%Bs($E`}wk z&Dh9sG27p-2Mw`R|6DsC~cO^o@>#F|Bg!oaL(HI!m~ zL0nx624mDTn6N_aNt^!EeS74q?l2+5GOC}nIx9cw98%V(>X8WbxW=;W4}5TOT$13# zcCf}9bGojEd;3(I&&?-nt-LK$G+{KoMOEGsn>DT19&|1FmG4$ds(9(yHGSRbLv#!F z(yKLY#n3DI{3(o?Zw9mootdI8w?%XwYCg19HXeD{?qkQu<{W>ApA-UBk4mZ!uz3;~ zO1QwedhtO(J=cE!*jWx6rC8S>*Vc~5qS3_Dy;jD3+)-XA_OkKvLVS0gYiHSlU+oJf z(b@jEgKyo$C6}e%9P}YfL`)@z`9Q0N+rX^Z_2%BwtKyae`I_W6Ipj?9nON)oeb${- z=GL|gKM!HgMKks{Er?Zjs0)BO{YThK>fdtbud{KEN^=f4YO4S^=PSxH*@i9(xEmqc zBlbAkHj3elZMW>RfE8T9ORj6oWOdiyAg2ao^qi4S#AP%5ic|)U|Kp4SXZTqF;JyOJ z7xa+uO2v3Fal`KV(j@_)k-1vNHo9Tx)>Zvv*k!J0SJq3YEjePNBeOctCZ;=i+Ny(X8Io%xg=Y2e%{;IUBDvor_715Hh zKrM1J7W;7Qwnhm+W4_M)sLrHc%kn6seb9AH_&_rf3FO$>mo*@)eOj*DCJpA{yDCcj z=}_6gb%?$R=rhkJ>CSN#GoSc7CHG2`m9#WtI_Ekf&QCzwr7Z&RwdpUma&;)dT0E9j zSntsNTl$&DNl^;g(%sxC)H?D2>ZX*c0o(tYS4kN%PDl71jyhROY$pBIVQ@R-AM09-%{3k5fDRSG%YS{~ z#u>Swdxfe_rXiPY654|F+Y!{-k}STY@ze3fjlHz~w3K)@jC|&xZ9~rNqv!5l3ibG- zi9Sn@nmzH;%Th?qr2(um<(j7M`DOL=ir(t9k0WapkAJlg_sc)avRU(}_b!`vQDBt?5mpCnK!W<*+DPRl=WRNlQz zecZ&Q;ToM<%G^;wqhMd{^jw(-=SU1U)%?iOos(8!v%zA;gc3T59LYK`W2eqwzRZ4I zihDt)ptSVEv+d-Ro02LEGknXl^-m5W!-rH2rcU2?H%v1~PHsu|zTH7c?KW`LQ^BGo zEo>L=#%-4`4<(Wx4cxC%bH#Pdn@-A1S^vbpxe&7Fh|J>Dx&Bp8r&z84@L+6Iwy_$E zX4+5f8|b@iYvqve&4}YZHPOFHEex29;cM9U!1uMk_@kiD26;UMYbF44D%<{yaK8uu z&b-M*o!wZTma5vxMFCJX7$IyI&ZicdO!5`1*mwT7oYm#0YkN%hocC7f$lF*4jfYD- LjQX!#h+y=0*hm@p literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/setup_welcome.jpg b/backend/php/src/setup/setup_images/setup_welcome.jpg new file mode 100644 index 0000000000000000000000000000000000000000..59a03e44c4033c54505b7f05d8ec8e3437ceace6 GIT binary patch literal 3849 zcmds33pkY98ead5%Z$q~$V_u8jZ3N>GDxa1DVI{Noj3@Qz1_AXCd4*JDZ86?<#IML zNiGq#2OX3MC4{DN$)!OP6AdzkgUrnN(dnsu?9S7E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b3iNH^?DvaRbcHH*U7Zq9Kp~Ht-y*01Z*RlFLsrKPTNZa$$qFzQKf^9Yo@<%0~ z2H#~`3H{w)V^RwH$koNx7CTD!pzJsTC1S8$-3Q@NQRzfMBxi zlH5HnX2Xb628GxEtenNc3K&zg3ic5+M$$dUS7_Y+o^I39L09Ibb^5WAr>5Vewc3ry z>=w6dH*f2~sT-#~u+R(s{6@gB7PxgTK?Ew*R3VN;4 zEo+?;;i&Qr*%8lvh3zo}ZivPwre3=WY1>WJsI;D0=iYCs6PDb4G2gg*(po z#?GkSMJ_A83Wa`|KF$@o_BpPEQtl~cscp`w^bo%n`RBh5cg_wbbguYgndC|DlOyhp3Jj2!Th>(8qX{Sqw28d4`pN+owaNsR0o6b2C(C=HQPNTKa z-;6~$+zblIaD*c5bu%z6|1D55(7)6)-(pim4bN$>>rSR~(+k@h9=_S3w$NIf2 zACjiRG3OKtaYI5C%BJy>Ou#H|+{7@tsv|pop6llm>YMZPi@x4USJRf5 zLz1Ibj-sERQL-~z2Bg?Ilfq_xiB*Qf1MyY!M~%v@<_MH7!VK++%IVqIn-gZ3n7wvY z`X$UJkNlEdNw1;7Z%(F=+uvr8geP=c^RGUVHY6X;$64^_1>o`G|a3 zlWV@GrefOlt%Nb%!v^PiEE8$4(M)x$|D%#T;tr2W;Vfyz06Unum{00$t{X5EhoKw?A_ghUOka_sH WgQUj)r!nggfgaj0*L#{K>iQ=~Zo+8* literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/tab_activeobjectleft.gif b/backend/php/src/setup/setup_images/tab_activeobjectleft.gif new file mode 100644 index 0000000000000000000000000000000000000000..c80504a30f115925e976e5e610e829c7f134cfe7 GIT binary patch literal 145 zcmV;C0B-+BNk%w1VF>`10J8u9>FLk^|Nrsv;q2_z@bKRK{rl|f)%yDL{{H^!>(lG& z((v%#{r&v@{{8#=_xk$vA^8LV00000EC2ui00{t=000C&Fi81C0+SKIad1Y*A;lna z&2nFLk^|NrXh(CX^Z{r&v$@!;(2)$Hun^z`WW_wM)i z@ALEJ|Ns8(?%DPA>htsDA^8LV00000EC2ui0FVKe000F45XecZy*TU5yZ>M)j$~<` zXsWJYLj-WZ&U9_xc&_ifJvgzRa7Zi~kI1BE0aH4k(5Q4eRLH2s;jK6uCK7Mva__cwzs&sy1Tr+zQ4f1!o$SH#>dFX%FE2n&d<=% z($mz{*4NnC+S}aS-rwNi;^XAy=I7|?>g(+7?(gvN^7Hid_V@Vt`uqI-{{H|23LHqV zpuvL(6DnNDu%W|;5F<*QNU@^Dix@L%+{m$`$B!V2Ly8 zoJq5$&6_xL>fFh*r_Y~2g9;r=w5ZXeNRujE%CxD|r%fO6_0N*eN{&smIcng}sSqy+djKvCL TDi2^F==0c#00azRL;wIg;87mj literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/tab_diagnosticresults.gif b/backend/php/src/setup/setup_images/tab_diagnosticresults.gif new file mode 100644 index 0000000000000000000000000000000000000000..f0e9a5b72dec5dcdac9fe709b351ea4fd12050ff GIT binary patch literal 368 zcmV-$0gwJiNk%w1VTk|~0J8u9`}_O%_xI%G=<4k5^Yr)k`1-A}y5QpG^z`)g_4WAp z`0VZO^7HlK*`A^8LV00000EC2ui0Eqw;000F4@I42B3Lz!LyZ>M)j$~<` zD5_yf(+u6Kb(VElbz~$J-<-y|G&E3Dl@ZsU}TIaRwHgE|YAJS6v%#}%zBy*iyi3K9dmnU7q OoGD2r&6|lL0029*#mYti literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/tab_diagnosticresults_on.gif b/backend/php/src/setup/setup_images/tab_diagnosticresults_on.gif new file mode 100644 index 0000000000000000000000000000000000000000..e2b8002e6abeb3a3fe75a8235f15002248530d8d GIT binary patch literal 371 zcmV-(0gV1fNk%w1VT%A20J8u9@bdP9dJw|K&Dh%B>gww3?Cksd`{(KI$;{IB_V)4d z@$d2V!^h6$=VA^8LV00000EC2ui0E++>000F4(3qskKqBkSyZ>M)j$~eq|dcR6gM>MTcu)%h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xBEyT#@*9G!OQ%&7yHF5Em_d}W^Kv95FHZrwcl z>cz{uZ?oRt`uyef{`YTRPZbk={Iv5s)24~;`tuG{vhdmoYpho^YM=2#kimgZ`cV6? zSBW<57w?+)bDMUlywFWn>J<6!sdy{Q=*fvbf$H4d5=Lo~P0c=F7pFtYM+SqL25u<&rZfU?&dkBy6tc1y@xX&i89WMp9H;Neh6 zc)-leDitDeaMRM$(+!eO&GFp4?Cfld?68c00|%HVGIH4L*pTSR#4q5b5qoOO%FD|G z7JJS0+PdoM3IQ9Hhz$=9oo8U@$v9!~aMjJt8JAb>wNh+mV`gV#(AaR`(5>ASpI_Bx zB|0)Pu<)38Y}mfx;o&f0lZMp{&g@4fC_BGvaCBs0Q=a5?@6Hq!&U0akJqZd64|Hsq zKXVz|-Yc84m(E*%tk34r`sT|S>C-Qqttx+YV^6iS>_dhIjyvh``@gNdUHbXynRM%N zt-r<}?%$Z2UN3j&6^G!liL)1O_1kA$c4PI$-(m50ZGL}xeS3TVe7U#Z1&#+^cHdvK zulUDx-{rF!uJ28MQ1!(z{aWqMr)COG{}?qCoBUbBAJj>lTRyK=>4EyZ9DcWQxfYgb zD->F#{~f>I`e|;3XtO+*cxZX+#R`cYBQMnliPm{-$$bt?Ka(f8Y%)uk=yBG2Nk%w1VG#fn0J8u9|NsB}{r&v>{Qmy_`T6gx3L^!4@i`uh6&`}^|p z^7i)j?d|RO`1tSd@9XR9A^8LV00000EC2ui01*Hb000C>aDYjx1wr0DlHS%pWMDN6 zhgVWVpp5G@2u>5kK*uZs9w3ZEFZO!~eTc%5m^2Jm0Ybs)lTwM+XDK?>g1A>`w%R3! Iw}c1)JEM3}1ONa4 literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/tab_setup.gif b/backend/php/src/setup/setup_images/tab_setup.gif new file mode 100644 index 0000000000000000000000000000000000000000..a4a5a750c8256c7d7c3d462aa2acab6eb915efc7 GIT binary patch literal 258 zcmV+d0sa0*Nk%w1VMYKH0J8u9_xSq9%hTZE=JfRR_4W1m`1t$#`~Cg>M)g4tqG z(o_%+BD`=c&vb3yF!B(Ep*9K!13)YqkI1BQ$t*G)ibk){KqQ*jtQMOeZ_^Z{B?R^y&BS-#2dE{rdIm;p69?zkK)o`}dzef4=|t z_3z)mS8v{X`}Xbo_wP@hx%Bk;n_GA8{rmUtb^_n*G) zJ$T~7r>_T(o;h{)@`sP#UcY{Q=-AojDuEB5zA?}SDE?#t8>|B&L4IOj`|5BqX@Ula zOz(m8lQ~xNFRUoJrK7^e{g6SCL%?dmh6*3O+2>zunXy=rg@xlyS&*TD0@uX4^Y4HE zZ)j|);u7Ft6BRDxWD*n+Z=N`5@+5H)K_*v5HnA!5=Fb;nV{~KTS+HVd6Az0!zr?DI zo0KH@JrpW8@0!o0;Hj`u@lf;O-E|6H2NoPvY&v?ZMnRt8)co^RhtA);edFxyvkMd$ zt{gn`;MVh(O3xlXzPjS@{RgjKefjo%-lHd{@BXNH^NrzIad_Un?e!mb$mVS4ms*<5 ybKkOu<>O?#PGRGBJ6CK>HffTx?cx>=Qt4o3_xf~`fp_U~9<5}l&kPzI4AubUchO7$ literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_images/toolbar_separator.gif b/backend/php/src/setup/setup_images/toolbar_separator.gif new file mode 100644 index 0000000000000000000000000000000000000000..e061b56f511246dd2e2a9555de16e1b197ec223e GIT binary patch literal 324 zcmV-K0lWT3Nk%w1VFLgs0M!5h-QB(5;KJkM$ko-e>gv|e(5=eKrq0f*%*?6h=g-p8 zui@dv?Cjh1_3F#Zr`y}Q+1a?$)3My#yXffC<>kxs^XKvL;@8)<-`~LR@88JCqR-5m z#l)A~+P1TCUwy|dT`11Yz`}X$k`ug?!{P@YqrQY7Y0000000000 z00000A^8LV00000EC2ui00RIg000JIz@5-W%o%aWn)1eMj2abF#j>(wIvK`>K_C$( zuSvp{pp+#~V?X1E8 literal 0 HcmV?d00001 diff --git a/backend/php/src/setup/setup_library/authentication.php b/backend/php/src/setup/setup_library/authentication.php new file mode 100644 index 0000000..6a6954a --- /dev/null +++ b/backend/php/src/setup/setup_library/authentication.php @@ -0,0 +1,30 @@ + 0 && $GLOBALS['configuration']['setup_password'] != "" && (!isset($_SESSION['authenticated']) || !$_SESSION['authenticated'])) +{ + if ($_POST['setup_password'] == $GLOBALS['configuration']['setup_password']) + { + $_SESSION['authenticated'] = true; + } + $_POST = null; +} +if ((!isset($_SESSION['authenticated']) || !$_SESSION['authenticated']) && $GLOBALS['configuration']['setup_password'] != "") +{ +?> + + + +Php Object Generator Setup <?=$GLOBALS['configuration']['versionNumber'].$GLOBALS['configuration']['revisionNumber']?> + + +
+

+

+ +

+
+
+ + \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/class.zipfile.php b/backend/php/src/setup/setup_library/class.zipfile.php new file mode 100644 index 0000000..4bbe779 --- /dev/null +++ b/backend/php/src/setup/setup_library/class.zipfile.php @@ -0,0 +1,212 @@ + compressedData[] = $feedArrayRow; + + $newOffset = strlen(implode("", $this->compressedData)); + + $addCentralRecord = "\x50\x4b\x01\x02"; + $addCentralRecord .="\x00\x00"; + $addCentralRecord .="\x0a\x00"; + $addCentralRecord .="\x00\x00"; + $addCentralRecord .="\x00\x00"; + $addCentralRecord .="\x00\x00\x00\x00"; + $addCentralRecord .= pack("V",0); + $addCentralRecord .= pack("V",0); + $addCentralRecord .= pack("V",0); + $addCentralRecord .= pack("v", strlen($directoryName) ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $ext = "\x00\x00\x10\x00"; + $ext = "\xff\xff\xff\xff"; + $addCentralRecord .= pack("V", 16 ); + + $addCentralRecord .= pack("V", $this -> oldOffset ); + $this -> oldOffset = $newOffset; + + $addCentralRecord .= $directoryName; + + $this -> centralDirectory[] = $addCentralRecord; + } + + /** + * Function to add file(s) to the specified directory in the archive + * + * @param $directoryName string + * + */ + + function addFile($data, $directoryName) { + + $directoryName = str_replace("\\", "/", $directoryName); + + $feedArrayRow = "\x50\x4b\x03\x04"; + $feedArrayRow .= "\x14\x00"; + $feedArrayRow .= "\x00\x00"; + $feedArrayRow .= "\x08\x00"; + $feedArrayRow .= "\x00\x00\x00\x00"; + + $uncompressedLength = strlen($data); + $compression = crc32($data); + $gzCompressedData = gzcompress($data); + $gzCompressedData = substr( substr($gzCompressedData, 0, strlen($gzCompressedData) - 4), 2); + $compressedLength = strlen($gzCompressedData); + $feedArrayRow .= pack("V",$compression); + $feedArrayRow .= pack("V",$compressedLength); + $feedArrayRow .= pack("V",$uncompressedLength); + $feedArrayRow .= pack("v", strlen($directoryName) ); + $feedArrayRow .= pack("v", 0 ); + $feedArrayRow .= $directoryName; + + $feedArrayRow .= $gzCompressedData; + + $feedArrayRow .= pack("V",$compression); + $feedArrayRow .= pack("V",$compressedLength); + $feedArrayRow .= pack("V",$uncompressedLength); + + $this -> compressedData[] = $feedArrayRow; + + $newOffset = strlen(implode("", $this->compressedData)); + + $addCentralRecord = "\x50\x4b\x01\x02"; + $addCentralRecord .="\x00\x00"; + $addCentralRecord .="\x14\x00"; + $addCentralRecord .="\x00\x00"; + $addCentralRecord .="\x08\x00"; + $addCentralRecord .="\x00\x00\x00\x00"; + $addCentralRecord .= pack("V",$compression); + $addCentralRecord .= pack("V",$compressedLength); + $addCentralRecord .= pack("V",$uncompressedLength); + $addCentralRecord .= pack("v", strlen($directoryName) ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("v", 0 ); + $addCentralRecord .= pack("V", 32 ); + + $addCentralRecord .= pack("V", $this -> oldOffset ); + $this -> oldOffset = $newOffset; + + $addCentralRecord .= $directoryName; + + $this -> centralDirectory[] = $addCentralRecord; + } + + /** + * Fucntion to return the zip file + * + * @return zipfile (archive) + */ + + function getZippedfile() { + + $data = implode("", $this -> compressedData); + $controlDirectory = implode("", $this -> centralDirectory); + + return + $data. + $controlDirectory. + $this -> endOfCentralDirectory. + pack("v", sizeof($this -> centralDirectory)). + pack("v", sizeof($this -> centralDirectory)). + pack("V", strlen($controlDirectory)). + pack("V", strlen($data)). + "\x00\x00"; + } + + /** + * + * Function to force the download of the archive as soon as it is created + * + * @param archiveName string - name of the created archive file + */ + + function forceDownload($archiveName) { + $headerInfo = ''; + header("Pragma: public"); + header("Expires: 0"); + header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); + header("Cache-Control: private",false); + header("Content-Type: application/zip"); + header("Content-Disposition: attachment; filename=".basename($archiveName).";" ); + header("Content-Transfer-Encoding: binary"); + echo $this->getZippedfile(); + + } + + /** + * Generates zip file from POG package. + * + * @param multi-d array $package + * @param array $paths + */ + function addPOGPackage($package, $paths=array()) + { + + $i = 0; + foreach ($package as $key=>$value) + { + $path = ''; + foreach ($paths as $p) + { + $path .= (($path == '') ? $p : "/$p"); + } + if (strpos($key, ".") == false) + { + $paths[] = $key; + $this->addDirectory((($path == '') ? "$key/" : "$path/$key/")); + $this->addPOGPackage($package[$key], &$paths); + } + else + { + $this->addFile(base64_decode($value), (($path == '') ? $key : "$path/$key")); + } + if ($i == (sizeof($package)-1)) + { + array_pop($paths); + } + $i++; + } + } +} +?> \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/inc.footer.php b/backend/php/src/setup/setup_library/inc.footer.php new file mode 100644 index 0000000..d00549d --- /dev/null +++ b/backend/php/src/setup/setup_library/inc.footer.php @@ -0,0 +1,6 @@ + +
PHP Object Generator | +POG Weblog | +Google group | +Tutorials | +Contact us \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/inc.header.php b/backend/php/src/setup/setup_library/inc.header.php new file mode 100644 index 0000000..e53b36d --- /dev/null +++ b/backend/php/src/setup/setup_library/inc.header.php @@ -0,0 +1,36 @@ + + + +Php Object Generator Setup <?=$GLOBALS['configuration']['versionNumber'].$GLOBALS['configuration']['revisionNumber']?> + + + + + +
+ + + +
\ No newline at end of file diff --git a/backend/php/src/setup/setup_library/setup_misc.php b/backend/php/src/setup/setup_library/setup_misc.php new file mode 100644 index 0000000..f0e4f0e --- /dev/null +++ b/backend/php/src/setup/setup_library/setup_misc.php @@ -0,0 +1,2357 @@ + $property) + { + if (isset($property['db_attributes'][2])) + //length is specified, for e.g. if attribute = VARCHAR(255), $property[2]=255 + { + $limit = explode(',', $property['db_attributes'][2]); + //field is limited + if (intval($limit[0]) > 0) + { + if (isset($limit[1]) && intval($limit[1]) > 0) + { + //decimal, enum, set + $attribute_testValues[$attribute] = substr(${$property['db_attributes'][1]}, 0, ceil($limit[0]*0.6)).".".substr(${$property['db_attributes'][1]}, 0, $limit[1]); + } + else + { + $attribute_testValues[$attribute] = substr(${$property['db_attributes'][1]}, 0, ceil($limit[0] * 0.6)); + } + } + } + else + //length not specified, but we still need to account for default mysql behavior + //for eg, FLOAT(X), if X isn't specified, mysql defaults to (10,2). + { + if ($property['db_attributes'][1] == "FLOAT" || $property['db_attributes'][1] == "DOUBLE") + { + $attribute_testValues[$attribute] = "1234.56"; + } + else if ($property['db_attributes'][1] != "HASMANY" && $property['db_attributes'][1] != "BELONGSTO" && $property['db_attributes'][1] != "JOIN") + { + $attribute_testValues[$attribute] = ${$property['db_attributes'][1]}; + } + } + } + return $attribute_testValues; + } + + /** + * Specifies how object attributes are rendered during scaffolding (step 3 of the setup process) + * Todo: Can be improved but satisfactory for now + * @param string $attributeName + * @param string $attributeType + * @param string $attributeValue + * @param int $objectId + * @return string $html + */ + function ConvertAttributeToHtml($attributeName, $attributeProperties, $attributeValue='', $objectId='') + { + switch ($attributeProperties[1]) + { + case "ENUM": + $enumParts = explode(',', $attributeProperties[2]); + $html = ""; + break; + case "HASMANY": + case "JOIN": + case "BELONGSTO": + $html = $attributeValue; + break; + case "MEDIUMBLOB": + $html = "sorry. cannot render attribute of type LONGBLOB"; + break; + case "LONGBLOB": + $html = "sorry. cannot render attribute of type LONGBLOB"; + break; + case "TEXT": + case "LONGTEXT": + case "BINARY": + case "MEDIUMTEXT": + case "TINYTEXT": + case "VARCHAR": + case "TINYBLOB": + case "BLOB": + $html = ""; + break; + case "DATETIME": + case "DATE": + case "TIMESTAMP": + case "TIME": + case "YEAR": + case "DECIMAL": + case "DOUBLE": + case "FLOAT": + case "BIGINT": + case "INT": + case "YEAR": + case "SMALLINT": + case "MEDIUMINT": + case "TINYINT": + case "CHAR": + $html = ""; + break; + default: + $html = substr($attributeValue, 0, 500); + if (strlen($attributeValue) > 500) + { + $html .= "..."; + } + break; + } + return $html; + } + + /** + * Renders an object as an Xtree Node + * + * @param unknown_type $child + */ + function ConvertObjectToNode(&$instance, &$masterNode, $js, $anchor, $once = false) + { + $attributeList = array_keys(get_object_vars($instance)); + $objectName = $className = get_class($instance); + $node = &$masterNode->addItem(new XNode("[".$instance->{strtolower($className)."Id"}."] ", false,"setup_images/folderclose.gif","setup_images/folderopen.gif")); + + //regular attributes + foreach($attributeList as $attribute) + { + if ($attribute != "pog_attribute_type" && $attribute!= "pog_query" ) + { + if (isset($instance->pog_attribute_type[$attribute])) + { + $thisValue = ConvertAttributeToHtml($attribute, $instance->pog_attribute_type[$attribute]['db_attributes'], $instance->{$attribute}, $instance->{$attributeList[0]}); + $subnode = &$node->addItem(new XNode("
".$attribute."{".$instance->pog_attribute_type[$attribute]['db_attributes'][1]."}
".str_replace("\0", "", $thisValue)."

", false,'',"setup_images/folderopen.gif")); + } + } + } + + //parents, children and mapping + foreach ($instance->pog_attribute_type as $attribute_name => $attrubute_type) + { + if ($attrubute_type['db_attributes'][1] == "HASMANY" || $attrubute_type['db_attributes'][1] == "BELONGSTO" || $attrubute_type['db_attributes'][1] == "JOIN") + { + if ($attrubute_type['db_attributes'][1] == "BELONGSTO") + { + eval ('$value = $instance->'.strtolower($attribute_name).'Id;'); + $thisValue = ConvertAttributeToHtml($attribute_name, $attrubute_type['db_attributes'], $value, ''); + $subnode = &$node->addItem(new XNode("
".$attribute_name."{".($attrubute_type['db_attributes'][1] == "HASMANY" ? "CHILD" : "PARENT")."}
".$thisValue."

", false,'',"setup_images/folderopen.gif")); + } + else + { + $value = ''; + eval('$siblingList = $instance->Get'.ucfirst(strtolower($attribute_name)).'List();'); + if (sizeof($siblingList) > 0) + { + $myNode = &$node->addItem(new XNode("[".$attribute_name."List]{Dimensions:[".sizeof($siblingList)."]}", false, "setup_images/folderclose.gif","setup_images/folderopen.gif", true)); + $child = $siblingList[0]; + $js2 = "new Array("; + $attributeList = array_keys(get_object_vars($child)); + $x=0; + foreach($attributeList as $attribute) + { + if ($attribute != "pog_attribute_type" && $attribute!= "pog_query") + { + if ($x != 0 && isset($child->pog_attribute_type[$attribute])) + { + $js2 .= '"'.$attribute.'",'; + } + } + $x++; + } + $js2 = trim($js2, ","); + $js2 .= ")"; + + if (!$once) + { + foreach ($siblingList as $child) + { + /*$value .= $child->{strtolower($attribute_name)."Id"} . ",";*/ + if ($attrubute_type['db_attributes'][1] == "JOIN") + { + ConvertObjectToNode($child, $myNode, $js2, $anchor, true); + } + else + { + ConvertObjectToNode($child, $myNode, $js2, $anchor); + } + } + } + } + else + { + $node->addItem(new XNode("[".$attribute_name."List]{Dimensions:[0]}

", false, '',"setup_images/folderopen.gif")); + } + } + } + } + $subnode = &$node->addItem(new XNode("
{strtolower($objectName).'Id'}."\", this.parentNode.parentNode.parentNode.parentNode.id, $js, \"$anchor\");return false;'>
", false,'',"folderopen.gif")); + } + + + /** + * Populates object attributes with test values + * + * @param unknown_type $object + * @return unknown + */ + function PopulateTestValues(&$object) + { + $attributeList = array_keys(get_object_vars($object)); + $type_value = InitializeTestValues($object->pog_attribute_type); + + $objectName = get_class($object); + foreach($attributeList as $attribute) + { + if (isset($object->pog_attribute_type[$attribute])) + { + if (isset($type_value[$attribute])) + { + $object->{$attribute} = $type_value[$attribute]; + } + else if ($object->pog_attribute_type[$attribute]['db_attributes'][0] != "OBJECT") + { + $object->{$attribute} = "1"; + } + } + } + eval ("\$object -> ".strtolower($objectName)."Id = '';"); + return $object; + } + + /** + * Extracts @link from object file + * + * @param unknown_type $objectFilePath + * @return unknown + */ + function GetAtLink($objectFilePath) + { + $link = ''; + $content = file_get_contents($objectFilePath); + $contentParts = split("",$content); + if (isset($contentParts[1])) + { + $contentParts2 = split("",$contentParts[1]); + } + if (isset($contentParts2[0])) + { + $className = trim($contentParts2[0]); + } + if (isset($className)) + { + $linkParts1 = split("\*\/", $contentParts[1]); + $linkParts2 = split("\@link", $linkParts1[0]); + if (isset($linkParts2[1])) + { + $link = $linkParts2[1]; + } + if (isset($GLOBALS['configuration']['homepage']) && isset($link)) + { + $linkParts = explode('?', $link); + if (isset($linkParts[1])) + { + $link = $GLOBALS['configuration']['homepage'].'/?'.$linkParts[1]; + } + } + } + return $link; + } + + /** + * Extracts object name from object file. Do not rely on filename. + * + * @param unknown_type $objectFilePath + */ + function GetObjectName($objectFilePath) + { + $content = file_get_contents($objectFilePath); + $contentParts = split("",$content); + if (isset($contentParts[1])) + { + $contentParts2 = split("",$contentParts[1]); + } + if (isset($contentParts2[0])) + { + $className = trim($contentParts2[0]); + } + return $className; + } + + /** + * Gets plugin name based on filename + * + * @param unknown_type $fileName + * @return unknown + */ + function GetPluginName($fileName) + { + $fileNameParts = explode('.', $fileName); + if (strtolower($fileName) != "iplugin.php" && strtolower($fileNameParts[0]) == 'plugin' && strtolower($fileNameParts[2]) == 'php') + { + return $fileNameParts[1]; + } + return ''; + } + + /** + * Adds message to error queue + * + * @param unknown_type $error + */ + function AddError($error) + { + if (isset($_SESSION['errorMessages'])) + { + $errorMessages = unserialize($_SESSION['errorMessages']); + if (array_search($error, $errorMessages) === false) + { + $errorMessages[] = $error; + } + } + else + { + $errorMessages = array(); + $errorMessages[] = $error; + } + $_SESSION['errorMessages'] = serialize($errorMessages); + } + + /** + * Add message to tracing queue + * + * @param unknown_type $trace + */ + function AddTrace($trace) + { + if (isset($_SESSION['traceMessages'])) + { + $traceMessages = unserialize($_SESSION['traceMessages']); + $traceMessages[] = $trace; + } + else + { + $traceMessages = array(); + $traceMessages[] = $trace; + } + $_SESSION['traceMessages'] = serialize($traceMessages); + } + + /** + * Unit tests + */ + + /** + * Test the base 5 CRUD methods + * + * @param unknown_type $instance + * @return unknown + */ + function TestEssentials($instance, $optimizeAsWell = true) + { + if(TestIsMapping($instance)) + { + return true; + } + $errors = 0; + if (!TestSave($instance)) + { + $errors++; + } + if (!TestSaveNew($instance)) + { + $errors++; + } + if (!TestDelete($instance)) + { + $errors++; + } + if (!TestGetList($instance)) + { + $errors++; + } + if (!TestDeleteList($instance)) + { + $errors++; + } + if ($optimizeAsWell) + { + if (!TestOptimizeStorage(strtolower(get_class($instance)))) + { + $errors++; + } + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Enter description here... + * + * @param unknown_type $instance + * @return unknown + */ + function TestRelationsPreRequisites($instance, $allObjectsList, $thisObjectName, $ignoreObjects) + { + if(TestIsMapping($instance)) + { + AddTrace("\tIs Mapping (OK)"); + return true; + } + if (TestIsSingle($instance)) + { + AddTrace("\tIs single (OK)"); + return true; + } + else + { + if (!TestParentChildLink($instance, $allObjectsList, $thisObjectName, $ignoreObjects) || !TestAssociationLink($instance, $allObjectsList, $thisObjectName, $ignoreObjects)) + { + return false; + } + else + { + AddTrace("\tIs properly connected (OK)"); + return true; + } + } + } + + /** + * Test the optional object relations methods + * + * @param unknown_type $instance + * @return unknown + */ + function TestRelations($instance, $ignoreObjects) + { + $errors=0; + if (TestIsParent($instance)) + { + if (!TestAddChild($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestGetChildrenList($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestDeleteDeep_Child($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestSaveDeep_Child($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestSetChildrenList($instance, true, $ignoreObjects)) + { + $errors++; + } + } + if (TestIsChild($instance)) + { + if (!TestSetParent($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestGetParent($instance, true, $ignoreObjects)) + { + $errors++; + } + } + if (TestIsSibling($instance)) + { + if (!TestAddSibling($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestGetSiblingList($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestSaveDeep_Sibling($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestDeleteDeep_Sibling($instance, true, $ignoreObjects)) + { + $errors++; + } + if (!TestSetSiblingList($instance, true, $ignoreObjects)) + { + $errors++; + } + } + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Tests whether object table already exists + * + */ + function TestStorageExists($objectName, $databaseType = "mysql") + { + switch ($databaseType) + { + case "mysql": + $query = "show tables like '".strtolower($objectName)."'"; + break; + case "sqlite": + $query = "select name FROM sqlite_master WHERE type='table' and name='".strtolower($objectName)."'"; + break; + case "pgsql": + $query = "select table_name FROM information_schema.tables WHERE table_schema = 'public' and table_name='".strtolower($objectName)."'"; + break; + case "odbc": + //assume mssql + $query = "select * from information_schema.tables where table_type = 'BASE TABLE' and table_name='".strtolower($objectName)."'"; + break; + case "firebird": + AddError("POG Setup doesn't support automatic table detection for Firebird databases yet. Therefore, your objects/tables may be misaligned. If POG Essential tests failed, this may very well be the case. Create the tables manually and re-run setup."); + return true; + break; + } + + $connection = Database::Connect(); + $rows = Database::Query($query, $connection); + if ($rows > 0) + { + return true; + } + return false; + } + + /** + * Creates the table to store objects + * + */ + function TestCreateStorage($objectFilePath, $databaseType = "mysql") + { + if ($databaseType == "firebird") + { + AddError("POG Setup doesn't support automatic table creation for Firebird databases yet. Therefore, your objects/tables may be misaligned. If POG Essential tests failed, this may very well be the case. Create the tables manually and re-run setup."); + return true; + } + + $objectName = GetObjectName($objectFilePath); + + //extract sql + $content = file_get_contents($objectFilePath); + $contentParts = split("",$content); + if (isset($contentParts[1])) + { + $contentParts2 = split("",$contentParts[1]); + } + if (isset($contentParts2[0])) + { + $className = trim($contentParts2[0]); + } + if (isset($className)) + { + $sqlParts = split(";",$contentParts[0]); + $sqlPart = split("CREATE",$sqlParts[0]); + $sql = "CREATE ".$sqlPart[1].";"; + + //execute sql + $connection = Database::Connect(); + if (Database::NonQuery($sql, $connection) !== false) + { + return true; + } + } + AddError("Query failed: $sql"); + return false; + } + + /** + * Drops the table for the corresponding object + * + */ + function TestDeleteStorage($object, $databaseType = "mysql") + { + $tableName = strtolower(get_class($object)); + $connection = Database::Connect(); + if (Database::NonQuery('drop table `'.strtolower($tableName).'`', $connection) !== false) + { + return true; + } + return false; + } + + /** + * Executes an arbitrary query + * + * @param unknown_type $query + */ + function TestExecuteQuery($query) + { + $connection = Database::Connect(); + if ($query == "") + { + return true; + } + if (Database::NonQuery($query, $connection) !== false) + { + return true; + } + return false; + } + + /** + * Enter description here... + * + * @param unknown_type $object + * @return unknown + */ + function TestAlterStorage($object, $databaseType = "mysql") + { + if ($databaseType != "mysql") + { + AddTrace("POG Setup doesn't support table automatic alteration for non-MySQL databases yet. Therefore, your objects/tables may be misaligned. If POG Essential tests failed, this may very well be the case. Drop and recreate the tables and re-run setup."); + return true; + } + + //find object attributes/table columns mismatch + $tableName = strtolower(get_class($object)); + $columns = array(); + + $query = "describe `$tableName` "; + $connection = Database::Connect(); + $cursor = Database::Reader($query, $connection); + if ($cursor !== false) + { + while ($row = Database::Read($cursor)) + { + $columns[$row["Field"]] = $row["Type"]; + } + + $attribute_types = $object -> pog_attribute_type; + $lowerAttributes = array(); + foreach (array_keys($attribute_types) as $key) + { + $lowerAttributes[strtolower($key)] = $attribute_types[$key]; + } + + //columns to remove + $columnsToRemove = array_diff(array_keys($columns), array_keys($lowerAttributes)); + + //columns to add + $columnsToAdd = array_diff(array_keys($lowerAttributes), array_keys($columns)); + + //columns whose type has changed + $otherColumns = array_intersect(array_keys($lowerAttributes), array_keys($columns)); + + $columnsToModify = array(); + foreach ($otherColumns as $otherColumn) + { + $type = strtolower($lowerAttributes[$otherColumn]['db_attributes'][1]); + if ($type == 'enum' || $type == 'set') + { + $enumPartsObj = explode(',', strtolower($lowerAttributes[$otherColumn]['db_attributes'][2])); + $parts = explode('(',$columns[$otherColumn]); + $parts2 = explode(')',$parts[1]); + $enumpartsDb = explode(',', strtolower(trim($parts2[0]))); + foreach ($enumPartsObj as $ep) + { + if (array_search(trim($ep), $enumpartsDb) === false) + { + $type .= "(".$lowerAttributes[$otherColumn]['db_attributes'][2].")"; + $columnsToModify[$otherColumn] = $type; + break; + } + } + } + else + { + if (isset($lowerAttributes[$otherColumn]['db_attributes'][2])) + { + $type .= "(".$lowerAttributes[$otherColumn]['db_attributes'][2].")"; + } + if (strpos(strtolower($columns[$otherColumn]), $type) === false && $type != "hasmany" && $type != "join") + { + if ($type == "belongsto") + { + $columnsToModify[strtolower($otherColumn)] = "int"; + } + else + { + $columnsToModify[$otherColumn] = $type; + } + } + } + } + + $columnsToRemove2 = array(); + foreach ($columnsToRemove as $c) + { + $columnsToRemove2[] = strtolower($c); + } + + $columnsToRemove = $columnsToRemove2; + + $columnsToAdd2 = array(); + foreach ($columnsToAdd as $c) + { + if ($lowerAttributes[$c]['db_attributes'][1] != "HASMANY" && $lowerAttributes[$c]['db_attributes'][1] != "JOIN") + { + if ($lowerAttributes[$c]['db_attributes'][1] == "BELONGSTO") + { + $colMarkedForDeletion = array_search(strtolower($c)."id", $columnsToRemove); + if ($colMarkedForDeletion === false) //this is clumsy, until we think of something better + { + $columnsToAdd2[] = strtolower($c)."id int"; + } + else + { + //remove entry from columnsToRemove since they are the same. Will lose data if dropped & recreated + array_splice($columnsToRemove, $colMarkedForDeletion, 1); + } + } + else + { + $columnsToAdd2[] = $c; + } + } + } + + $common = array(); + $common = array_intersect($columnsToAdd2, $columnsToRemove); + + $columnsToAdd = array(); + foreach ($columnsToAdd2 as $col) + { + if (array_search($col, $common) === false) + { + $columnsToAdd[] = $col; + } + } + $columnsToRemove2 = array(); + foreach ($columnsToRemove as $col) + { + if (array_search($col, $common) === false) + { + $columnsToRemove2[] = $col; + } + } + + + if (sizeof($columnsToAdd) == 0 && sizeof($columnsToRemove2) == 0 && sizeof($columnsToModify) == 0) + { + return true; + } + + //construct query + $query = "alter table `$tableName` "; + + foreach ($columnsToRemove2 as $remove) + { + $query .= "drop column `$remove`,"; + } + + foreach ($columnsToAdd as $add) + { + $columnType = ''; + if (isset($lowerAttributes[$add])) + { + $columnType = strtolower($lowerAttributes[$add]['db_attributes'][1]); + } + if (isset($lowerAttributes[$add]['db_attributes'][2])) + { + $columnType .= "(".$lowerAttributes[$add]['db_attributes'][2].")"; + } + if ($columnType != '') + { + $query .= "add column `$add` $columnType,"; + } + else + { + $query .= "add column $add,"; + } + } + + + foreach (array_keys($columnsToModify) as $modify) + { + $query .= "modify `$modify` ".$columnsToModify[$modify].","; + } + $query = trim($query, ','); + //execute query + + if (Database::NonQuery($query, $connection) !== false) + { + return true; + } + } + AddError("Query failed: $query"); + return false; + } + + /** + * Optimizes the table by running mysql optimize + * + * @param unknown_type $objectName + * @return unknown + */ + function TestOptimizeStorage($objectName) + { + $connection = Database::Connect(); + if (Database::NonQuery("optimize table `".strtolower($objectName)."`", $connection) !== false) + { + AddTrace("\tOptimizing....OK!"); + return true; + } + return false; + } + + /** + * Unit test for Save() + * + */ + function TestSave($object, $trace=true) + { + $className = get_class($object); + $object = PopulateTestValues($object); + $objectId = false; + $object->{strtolower($className)."Id"} = ""; + $objectId = $object->Save(false); + + if(!$objectId) + { + if ($trace) + { + AddTrace("\tSave() failed"); + AddError("Query failed: ".$object->pog_query); + } + return false; + } + //cleanup test data + $query = "delete from `".strtolower($className)."` where ".strtolower($className)."id = '".$objectId."';"; + $connection = Database::Connect(); + Database::NonQuery($query, $connection); + if ($trace) + { + AddTrace("\tSave()....OK!"); + } + return true; + } + + /** + * Unit test for SaveNew() + * + */ + function TestSaveNew($object, $trace = true) + { + $className = get_class($object); + if(!TestSave($object, false)) + { + if ($trace) + { + AddTrace("\tSaveNew() ignored"); + } + return false; + } + $objectId = $object->SaveNew(false); + if ($objectId) + { + $query = "delete from `".strtolower($className)."` where ".strtolower($className)."Id = '".$objectId."';"; + $connection = Database::Connect(); + Database::NonQuery($query, $connection); + if ($trace) + { + AddTrace("\tSaveNew()....OK!"); + } + return true; + } + if ($trace) + { + AddTrace("\tSaveNew() failed"); + AddError("Query failed: ".$object->pog_query); + } + return false; + } + + /** + * Unit test for GetList(). Implicitly tests Get() + * + */ + function TestGetList($object, $trace = true) + { + if ($trace) + { + AddTrace("\tGetList()"); + } + $errors = 0; + if (TestSave($object,false) && TestSaveNew($object, false) && TestDelete($object, false)) + { + $className = get_class($object); + $objectList = $object->GetList(array(array(strtolower($className)."Id", ">", 0))); + $oldCount = count($objectList); + $object = PopulateTestValues($object); + $objectId = false; + $object->{strtolower($className)."Id"} = 0; + $objectId = $object->Save(false); + $objectId2 = $object->SaveNew(false); + $objectId3 = $object->SaveNew(false); + + + //Test Multiple Conditions + $objectList = $object->GetList(array(array(strtolower($className)."Id", ">=",$objectId), array(strtolower($className)."Id", "<=", $objectId+2)), strtolower($className)."Id", false, 2); + if (sizeof($objectList) != 2) + { + //Test Limit + if ($trace) + { + AddTrace("\t\tLimit failed"); + AddError('ERROR: GetList() :sizeof(list) != \$limit\n'); + AddError("Query failed: ".$object->pog_query); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\t\tLimit....OK!"); + } + } + if ($objectList[1]->{strtolower($className)."Id"} > $objectList[0]->{strtolower($className)."Id"}) + { + //Test Sorting + if ($trace) + { + AddTrace("\t\tSorting failed"); + AddError("ERROR: GetList() :list is not properly sorted"); + AddError("Query failed: ".$object->pog_query); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\t\tSorting....OK!"); + } + } + if ($errors == 0) + { + $objectList = $object->GetList(array(array(strtolower($className)."Id", ">=",$objectId), array(strtolower($className)."Id", "<=", $objectId+2)), strtolower($className)."Id", false, 3); + foreach ($objectList as $object) + { + $attributeList = array_keys(get_object_vars($object)); + foreach ($attributeList as $attribute) + { + if (isset($object->pog_attribute_type[$attribute])) + { + if (isset($type_value[$attribute])) + { + if ($object->{$attribute} != $type_value[$attribute]) + { + if($trace) + { + AddError("WARNING: Failed to retrieve attribute `$attribute`. Expecting `".$type_value[$attribute]."`; found `".$object->{$attribute}."`. Check that column `$attribute` in the `$className` table is of type `".$object->pog_attribute_type[$attribute]['db_attributes'][1]."`"); + } + } + } + } + } + $object->Delete(); + } + return true; + } + else + { + if ($trace) + { + AddTrace("\tGetList() failed"); + AddError("Query failed: ".$object->pog_query); + } + return false; + } + } + if ($trace) + { + AddTrace("\tGetList() ignored"); + } + return false; + } + + /** + * Unit test for Delete() + * + */ + function TestDelete($object, $trace = true) + { + if(!TestSave($object, false)) + { + if ($trace) + { + AddTrace("\tDelete() ignored"); + } + return false; + } + $object = PopulateTestValues($object); + $object->Save(false); + if ($object->Delete(false)) + { + if ($trace) + { + AddTrace("\tDelete()....OK!"); + } + return true; + } + if ($trace) + { + AddTrace("\tDelete() failed"); + AddError("Query failed: ".$object->pog_query); + } + return false; + } + + /** + * Unit Test for DeleteList() + * + * @param unknown_type $object + * @param unknown_type $trace + */ + function TestDeleteList($object, $trace = true) + { + $className = get_class($object); + if(!TestSave($object, false) || !TestGetList($object, false)) + { + if ($trace) + { + AddTrace("\tDeleteList() ignored"); + } + return false; + } + + $object = PopulateTestValues($object); + + $originalCount = GetNumberOfRecords($className); + + $objectId = false; + $object->{strtolower($className)."Id"} = 0; + $objectId = $object->Save(false); + $objectId2 = $object->SaveNew(false); + $objectId3 = $object->SaveNew(false); + + $className = get_class($object); + $object->DeleteList(array(array(strtolower($className)."Id", "=", $objectId), array("or"), array(strtolower($className)."Id", "=", $objectId2), array("or"), array(strtolower($className)."Id", "=", $objectId3))); + + $newCount = GetNumberOfRecords($className); + + if ($newCount == $originalCount) + { + if ($trace) + { + AddTrace("\tDeleteList()....OK!"); + } + return true; + } + + if ($trace) + { + AddTrace("\tDeleteList() failed"); + AddError("Query failed: ".$object->pog_query); + } + return false; + } + + /** + * Tests whether the object is connected at all + * + * @param unknown_type $object + * @param unknown_type $allObjectsList + */ + function TestIsSingle($object) + { + $attribute_types = $object->pog_attribute_type; + + //get all child classes + $childrenList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + //get all parent classes + $parentsList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "BELONGSTO") + { + $parentsList[] = $key; + } + } + + //get all associations + $associationsList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $associationsList[] = $key; + } + } + + if (sizeof($childrenList) == 0 && sizeof($parentsList) == 0 && sizeof($associationsList) == 0) + { + return true; + } + return false; + } + + /** + * Tests that all parents have children and vice-versa + * + * @param unknown_type $object + * @param unknown_type $allObjectsList + * @param unknown_type $thisObjectName + * @return unknown + */ + function TestParentChildLink($object, $allObjectsList, $thisObjectName = '', $ignoreObjects) + { + $attribute_types = $object->pog_attribute_type; + + //get all child classes + $childrenList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + //get all parent classes + $parentsList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "BELONGSTO") + { + $parentsList[] = $key; + } + } + + $errors = 0; + foreach ($childrenList as $child) + { + if (array_search($child, $allObjectsList) === false) + { + $errors++; + AddError("$thisObjectName refers to $child as {Child}, which couldn't be found. Generate the $child object with reference to $thisObjectName as {Parent}"); + } + else + { + //test that child refers to this object as parent + eval ("\$childInstance = new $child();"); + $childAttributes = array_keys($childInstance->pog_attribute_type); + if (array_search($thisObjectName, $childAttributes) === false) + { + $errors++; + AddError("$thisObjectName refers to $child as {Child}, but $child does not refer to $thisObjectName as {Parent}. Relations need to be reciprocal."); + } + } + } + + foreach ($parentsList as $parent) + { + if (array_search($parent, $allObjectsList) === false) + { + $errors++; + AddError("$thisObjectName refers to $parent as parent, which couldn't be found. Generate the $parent object with reference to $thisObjectName as {Child}"); + } + else + { + //test that parent refers to this object as child + eval ("\$parentInstance = new $parent();"); + $parentAttributes = array_keys($parentInstance->pog_attribute_type); + if (array_search($thisObjectName, $parentAttributes) === false) + { + $errors++; + AddError("$thisObjectName refers to $parent as {Parent}, but $parent does not refer to $thisObjectName as {Child}. Relations need to be reciprocal."); + } + } + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Tests that all Joins have reciprocal links + * + * @param unknown_type $object + * @param unknown_type $allObjectsList + * @param unknown_type $thisObjectName + */ + function TestAssociationLink($object, $allObjectsList, $thisObjectName = '', $ignoreObjects) + { + $attribute_types = $object->pog_attribute_type; + + //get all join classes + $associationsList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $associationsList[] = $key; + } + } + + $errors = 0; + foreach ($associationsList as $association) + { + if (array_search($association, $allObjectsList) === false) + { + $errors++; + AddError("$thisObjectName refers to $association as {SIBLING}, which couldn't be found. Generate the $association object with reference to $thisObjectName as {SIBLING}"); + } + else + { + //test that association refers to this object as map + eval ("\$associationInstance = new $association();"); + $associationAttributes = array_keys($associationInstance->pog_attribute_type); + if (array_search($thisObjectName, $associationAttributes) === false) + { + $errors++; + AddError("$thisObjectName refers to $association as {SIBLING}, but $association does not refer to $thisObjectName as {SIBLING}. Relations need to be reciprocal."); + } + } + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test to see if object is a parent + * + * @param unknown_type $object + */ + function TestIsParent($object) + { + $attribute_types = $object->pog_attribute_type; + foreach ($attribute_types as $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + return true; + } + } + return false; + } + + /** + * Unit test to see if object is child + * + * @param unknown_type $object + */ + function TestIsChild($object) + { + $attribute_types = $object->pog_attribute_type; + foreach ($attribute_types as $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "BELONGSTO") + { + return true; + } + } + return false; + } + + /** + * Unit test to see if object is Sibling + * + * @param unknown_type $object + * @return unknown + */ + function TestIsSibling($object) + { + $attribute_types = $object->pog_attribute_type; + foreach ($attribute_types as $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + return true; + } + } + return false; + } + + /** + * Unit test to see if object is a Mapping object + * + * @param unknown_type $object + */ + function TestIsMapping($object) + { + $funcs = get_class_methods(get_class($object)); + foreach ($funcs as $func) + { + if (strtolower($func) == "addmapping") + { + return true; + } + } + return false; + } + + /** + * Unit test for Save($deep) + * + * @param unknown_type $object + */ + function TestSaveDeep_Child($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + if (!TestAddChild($object, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tSave(deep) ignored"); + AddError("Save(deep) ignored since AddChild could not be performed"); + } + return false; + } + if (!TestGetChildrenList($object, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tSave(deep) ignored"); + AddError("Save(deep) ignored since GetChildrenList could not be performed"); + } + return false; + } + if (!TestDeleteDeep_Child($object, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tSave(deep) ignored"); + AddError("Save(deep) ignored since Delete(deep) could not be performed"); + } + return false; + } + + //get all child classes + $childrenList = array(); + eval("\$object = new $thisObjectName();"); + $object = PopulateTestValues($object); + $attribute_types = $object->pog_attribute_type; + + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + $errors = 0; + foreach ($childrenList as $child) + { + //instantiate + eval("\$childInstance = new $child();"); + $childInstance = PopulateTestValues($childInstance); + + //add children + eval ("\$object -> Add$child(\$childInstance);"); + } + + //test + if (!$object->Save(true)) + { + $errors++; + return false; + } + + foreach ($childrenList as $child) + { + //instantiate + eval("\$childArray = \$object->Get".$child."List();"); + if (sizeof($childArray) == 0) + { + if ($trace) + { + AddTrace("\tSave($child) failed"); + + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\tSave($child)....OK!"); + } + } + } + + //cleanup + $object->Delete(true); + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for Save($deep) + * + * @param unknown_type $object + * @return unknown + */ + function TestSaveDeep_Sibling($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + if (!TestAddSibling($object, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tSave(deep) ignored"); + AddError("Save(deep) ignored since AddSibling could not be performed"); + } + return false; + } + if (!TestGetSiblingList($object, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tSave(deep) ignored"); + AddError("Save(deep) ignored since GetSiblingList could not be performed"); + } + return false; + } + + //get all sibling classes + $siblingList = array(); + eval("\$object = new $thisObjectName();"); + $object = PopulateTestValues($object); + $attribute_types = $object->pog_attribute_type; + + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $siblingList[] = $key; + } + } + + $errors = 0; + + $siblingStore = array(); + + foreach ($siblingList as $sibling) + { + //instantiate + eval("\$siblingInstance = new $sibling();"); + $siblingStore[] = $siblingInstance; + $siblingInstance = PopulateTestValues($siblingInstance); + + //add children + eval ("\$object -> Add$sibling(\$siblingInstance);"); + } + + //test + if (!$object->Save(true)) + { + $errors++; + return false; + } + + foreach ($siblingList as $sibling) + { + //instantiate + eval("\$siblingArray = \$object->Get".$sibling."List();"); + if (sizeof($siblingArray) == 0) + { + if ($trace) + { + AddTrace("\tSave($sibling) failed"); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\tSave($sibling)....OK!"); + } + } + } + + //cleanup + $object->Delete(); + foreach($siblingStore as $stored) + { + $stored->Delete(); + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for Delete($deep) + * + * @param unknown_type $object + */ + function TestDeleteDeep_Child($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + $attribute_types = $object->pog_attribute_type; + + if (!TestSetParent($object, false, $ignoreObjects)) + { + AddTrace("\tDelete(deep) ignored"); + return false; + } + //get all child classes + $childrenList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + $errors = 0; + + $object = PopulateTestValues($object); + $objectId = $object->Save(false); + + + $childrenStore = array(); + foreach ($childrenList as $child) + { + //instantiate + eval("\$childInstance = new $child();"); + $childInstance = PopulateTestValues($childInstance); + eval("\$childInstance -> Set".$thisObjectName."(\$object);"); + $childInstance -> Save(); + $childrenStore[] = &$childInstance; + } + + //test + if (!$object->Delete(true)) + { + $errors++; + } + + foreach ($childrenList as $child) + { + eval("\$childInstance = new $child();"); + $parentList = $childInstance->GetList(array(array(strtolower($thisObjectName)."Id", "=", $objectId))); + if (sizeof($parentList) > 0) + { + if ($trace) + { + AddTrace("\tDelete($child) failed"); + $errors++; + } + } + else + { + if ($trace) + { + AddTrace("\tDelete($child)....OK!"); + } + } + } + + //cleanup + foreach ($childrenStore as $child); + { + $child->Delete(); + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for Delete($deep) + * + * @param unknown_type $object + * @param unknown_type $trace + */ + function TestDeleteDeep_Sibling($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + $attribute_types = $object->pog_attribute_type; + + if (!TestAddSibling($object, false, $ignoreObjects) || !TestSaveDeep_Sibling($object, false, $ignoreObjects)) + { + AddTrace("\tDelete(deep) ignored"); + return false; + } + //get all sibling classes + $siblingList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $siblingList[] = $key; + } + } + + $errors = 0; + + $object = PopulateTestValues($object); + $object->Save(false); + + $siblingStore = array(); + foreach ($siblingList as $sibling) + { + //instantiate + eval("\$siblingInstance = new $sibling();"); + $siblingInstance = PopulateTestValues($siblingInstance); + eval("\$siblingInstance->Add".$thisObjectName."(\$object);"); + $siblingId = $siblingInstance->Save(); + $siblingStore[] = $siblingId; + } + + //test + if (!$object->Delete(false, true)) + { + $errors++; + } + + $x = 0; + foreach ($siblingList as $sibling) + { + eval("\$siblingInstance = new $sibling();"); + $siblingLeft = $siblingInstance->GetList(array(array(strtolower($sibling)."Id", "=", $siblingStore[$x]))); + if (sizeof($siblingLeft) > 0) + { + if ($trace) + { + AddTrace("\tDelete($sibling) failed"); + $errors++; + } + } + else + { + if ($trace) + { + AddTrace("\tDelete($sibling)....OK!"); + } + } + $x++; + } + + + //cleanup + $object->Delete(); + $x = 0; + foreach ($siblingList as $sibling) + { + eval("\$siblingInstance = new $sibling();"); + if (isset($siblingStore[$x]) && $siblingStore[$x] != '') + { + eval ("\$siblingInstance->".strtolower($sibling)."Id = ".$siblingStore[$x].";"); + $siblingInstance->Delete(); + } + $x++; + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for SetParent() + * + * @param unknown_type $object + */ + function TestSetParent($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + $attribute_types = $object->pog_attribute_type; + + //get all parent classes + $parentList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "BELONGSTO") + { + $parentList[] = $key; + } + } + + $errors = 0; + foreach ($parentList as $parent) + { + //instantiate + eval("\$parentInstance = new $parent();"); + + //save + $parentInstance = PopulateTestValues($parentInstance); + $parentInstance -> Save(false); + + //set parent + eval ("\$object -> Set$parent(\$parentInstance);"); + + eval ("\$objectId = \$object->".strtolower($parent)."Id;"); + + eval ("\$parentId = \$parentInstance->".strtolower($parent)."Id;"); + + if ($objectId != $parentId) + { + if ($trace) + { + AddTrace("\tSet$parent() failed"); + AddError("Could not set $parent as {Parent} of $thisObjectName"); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\tSet$parent()....OK!"); + } + } + //cleanup (delete parent) + $parentInstance -> Delete(false); + eval ("\$object->".strtolower($parent)."Id = '';"); + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for GetParent() + * + * @param unknown_type $object + */ + function TestGetParent($object, $ignoreObjects) + { + $thisObjectName = get_class($object); + eval ("\$object = new $thisObjectName();"); + + $attribute_types = $object->pog_attribute_type; + + //get all parent classes + $parentList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "BELONGSTO") + { + $parentList[] = $key; + } + } + + $errors = 0; + + foreach ($parentList as $parent) + { + /*if (TestSetParent($object, false)) + {*/ + //instantiate + eval("\$parentInstance = new $parent();"); + + //save + $parentInstance = PopulateTestValues($parentInstance); + $parentInstance -> Save(false); + + + //set parent + eval ("\$object -> Set$parent(\$parentInstance);"); + + eval("\$myParent = \$object->Get$parent();"); + + eval ("\$objectId = \$object->".strtolower($parent)."Id;"); + + eval ("\$parentId = \$myParent->".strtolower($parent)."Id;"); + + if ($objectId != $parentId) + { + AddTrace("\tGet$parent() failed"); + AddError("Could not retrieve parent object $parent"); + $errors++; + } + else + { + AddTrace("\tGet$parent()....OK!"); + } + + //cleanup (delete parent) + $parentInstance -> Delete(false); + /*} + else + { + AddTrace("\tGet$parent() ignored"); + }*/ + } + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for AddChild() + * + * @param unknown_type $object + */ + function TestAddChild($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + eval ("\$object = new $thisObjectName();"); + $attribute_types = $object->pog_attribute_type; + + $object = PopulateTestValues($object); + + //get all child classes + $childrenList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + $errors = 0; + foreach ($childrenList as $child) + { + //instantiate + eval ("\$childInstance = new $child();"); + $childInstance = PopulateTestValues($childInstance); + + //instantiate other + eval("\$childInstance2 = new $child();"); + $childInstance2 = PopulateTestValues($childInstance2); + + //add children + eval ("\$object -> Add$child(\$childInstance);"); + eval ("\$object -> Add$child(\$childInstance2);"); + + //verify that children were added + + eval ("\$children = \$object->".strtolower($child)."List;"); + + if (sizeof($children) != 2) + { + if ($trace) + { + AddTrace("\tAdd$child() failed"); + AddError("Could not add child object $child"); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\tAdd$child()....OK!"); + } + } + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for GetChildrenList() + * + * @param unknown_type $object + */ + function TestGetChildrenList($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + eval ("\$object = new $thisObjectName();"); + $attribute_types = $object->pog_attribute_type; + $errors = 0; + + //get all child classes + $childrenList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + //save shallow + $object = PopulateTestValues($object); + $object->Save(false); + + + foreach ($childrenList as $child) + { + //instantiate + eval("\$childInstance = new $child();"); + $childInstance = PopulateTestValues($childInstance); + + if (!TestSetParent($childInstance, false, $ignoreObjects)) + { + AddTrace("\tGetChildrenList() ignored"); + return false; + } + eval("\$childInstance->Set".$thisObjectName."(\$object);"); + + $childInstance->Save(); + + + + //try getting all children + eval ("\$children = \$object -> Get".$child."List();"); + if (sizeof($children) != 1) + { + AddTrace("\tGet".$child."List() failed"); + AddError("Could not get children list"); + $errors++; + } + + //cleanup + $childInstance->Delete(); + + if ($errors == 0 && $trace) + { + AddTrace("\tGet".$child."List()....OK!"); + } + } + + $object->Delete(false); + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit Test for SetChildrenList + * + * @param unknown_type $object + * @param unknown_type $trace + * @return unknown + */ + function TestSetChildrenList($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + if (!TestSaveDeep_Child($object, false, $ignoreObjects)) + { + AddTrace("\tSetChildrenList(deep) ignored"); + AddError("SetChildrenList ignored since SaveDeep could not be performed"); + return false; + } + + //get all child classes + $childrenList = array(); + eval("\$object = new $thisObjectName();"); + $object = PopulateTestValues($object); + $attribute_types = $object->pog_attribute_type; + + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "HASMANY") + { + $childrenList[] = $key; + } + } + + $errors = 0; + foreach ($childrenList as $child) + { + //instantiate + $childInstanceList = array(); + eval("\$childInstance = new $child();"); + eval("\$childInstance2 = new $child();"); + $childInstance = PopulateTestValues($childInstance); + $childInstance2 = PopulateTestValues($childInstance2); + + //add children to array + $childInstanceList[] = $childInstance; + $childInstanceList[] = $childInstance2; + + eval ("\$object -> Set".$child."List(\$childInstanceList);"); + } + + //test + if (!$object->Save(true)) + { + $errors++; + return false; + } + + foreach ($childrenList as $child) + { + //instantiate + eval("\$childArray = \$object->Get".$child."List();"); + if (sizeof($childArray) == 0) + { + AddTrace("\tSet($child)List failed"); + $errors++; + } + else + { + AddTrace("\tSet($child)List....OK!"); + } + } + + //cleanup + $object->Delete(true); + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit Test for AddSibling() + * + * @param unknown_type $object + * @param unknown_type $trace + * @return unknown + */ + function TestAddSibling($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + eval ("\$object = new $thisObjectName();"); + $attribute_types = $object->pog_attribute_type; + + $object = PopulateTestValues($object); + + //get all sibling classes + $siblingList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $siblingList[] = $key; + } + } + + $errors = 0; + foreach ($siblingList as $sibling) + { + //instantiate + eval ("\$siblingInstance = new $sibling();"); + $siblingInstance = PopulateTestValues($siblingInstance); + + //instantiate other + eval("\$siblingInstance2 = new $sibling();"); + $siblingInstance2 = PopulateTestValues($siblingInstance2); + + //add sibling + eval ("\$object -> Add$sibling(\$siblingInstance);"); + eval ("\$object -> Add$sibling(\$siblingInstance2);"); + + //verify that slbings were added + eval ("\$siblings = \$object->".strtolower($sibling)."List;"); + + if (sizeof($siblings) != 2) + { + if ($trace) + { + AddTrace("\tAdd$sibling() failed"); + AddError("Could not add sibling object $sibling"); + } + $errors++; + } + else + { + if ($trace) + { + AddTrace("\tAdd$sibling()....OK!"); + } + } + } + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for GetSiblingList() + * + * @param unknown_type $object + * @param unknown_type $trace + * @return unknown + */ + function TestGetSiblingList($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + eval ("\$object = new $thisObjectName();"); + $attribute_types = $object->pog_attribute_type; + $errors = 0; + + //get all sibling classes + $siblingList = array(); + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $siblingList[] = $key; + } + } + + $object = PopulateTestValues($object); + + $siblingsStore = array(); + + foreach ($siblingList as $sibling) + { + //instantiate + eval("\$siblingInstance = new $sibling();"); + $siblingsStore[] = $siblingInstance; + $siblingInstance = PopulateTestValues($siblingInstance); + + if (!TestAddSibling($siblingInstance, false, $ignoreObjects)) + { + if ($trace) + { + AddTrace("\tGetSiblingList() ignored"); + } + return false; + } + eval("\$object->Add".$sibling."(\$siblingInstance);"); + + } + + $object->Save(); + + foreach ($siblingList as $sibling) + { + + //try getting all siblings + eval ("\$siblings = \$object -> Get".$sibling."List();"); + if (sizeof($siblings) != 1) + { + if ($trace) + { + AddTrace("\tGet".$sibling."List() failed"); + AddError("Could not get sibling list"); + } + $errors++; + } + else if ($trace) + { + AddTrace("\tGet".$sibling."List()....OK!"); + } + } + + foreach ($siblingsStore as $stored) + { + $stored->Delete(); + } + + $object->Delete(false); + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Unit test for SetSiblingList() + * + * @param unknown_type $object + * @param unknown_type $trace + */ + function TestSetSiblingList($object, $trace = true, $ignoreObjects) + { + $thisObjectName = get_class($object); + if (!TestSaveDeep_Sibling($object, false, $ignoreObjects)) + { + AddTrace("\tSetSiblingList(deep) ignored"); + AddError("SetSiblingList ignored since SaveDeep could not be performed"); + return false; + } + + //get all sibling classes + $siblingList = array(); + eval("\$object = new $thisObjectName();"); + $object = PopulateTestValues($object); + $attribute_types = $object->pog_attribute_type; + + foreach ($attribute_types as $key => $attribute_array) + { + if ($attribute_array['db_attributes'][1] == "JOIN") + { + $siblingList[] = $key; + } + } + + $errors = 0; + foreach ($siblingList as $sibling) + { + //instantiate + $siblingInstanceList = array(); + eval("\$siblingInstance = new $sibling();"); + eval("\$siblingInstance2 = new $sibling();"); + $siblingInstance = PopulateTestValues($siblingInstance); + $siblingInstance2 = PopulateTestValues($siblingInstance2); + + //add sibling to array + $siblingInstanceList[] = $siblingInstance; + $siblingInstanceList[] = $siblingInstance2; + + eval ("\$object -> Set".$sibling."List(\$siblingInstanceList);"); + } + + //test + if (!$object->Save(true)) + { + $errors++; + return false; + } + + foreach ($siblingList as $sibling) + { + //instantiate + eval("\$siblingArray = \$object->Get".$sibling."List();"); + if (sizeof($siblingArray) == 0) + { + if ($trace) + { + AddTrace("\tSet($sibling)List failed"); + } + $errors++; + } + else if ($trace) + { + AddTrace("\tSet($sibling)List....OK!"); + } + } + + //cleanup + $object->Delete(false, true); + + if ($errors == 0) + { + return true; + } + return false; + } + + /** + * Creates the mapping name + * + * @param unknown_type $objectName1 + * @param unknown_type $objectName2 + * @return unknown + */ + function MappingName($objectName1, $objectName2) + { + $array = array($objectName1, $objectName2); + sort($array); + return implode($array)."Map"; + } + + /** + * Gets total no. of records; + */ + function GetNumberOfRecords($objectName) + { + $sql = 'select count(*) from `'.strtolower($objectName)."`"; + $connection = Database::Connect(); + $cursor = Database::Reader($sql, $connection); + if ($cursor !== false) + { + while($row = Database::Read($cursor)) + { + return $row['count(*)']; + } + } + return 0; + } +?> \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/upgrade.php b/backend/php/src/setup/setup_library/upgrade.php new file mode 100644 index 0000000..122da58 --- /dev/null +++ b/backend/php/src/setup/setup_library/upgrade.php @@ -0,0 +1,140 @@ + 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && $file != "class.database.php" && $file != "configuration.php" && $file != "setup.php" && $file != "class.pog_base.php") + { + $objects[] = $file; + } + } + closedir($dir); + $i = 0; + foreach($objects as $object) + { + $content = file_get_contents($path."/".$object); + $contentParts = split("",$content); + if (isset($contentParts[1])) + { + $contentParts2 = split("",$contentParts[1]); + } + if (isset($contentParts2[0])) + { + $className = trim($contentParts2[0]); + } + if (isset($className)) + { + eval ('include_once("../../objects/class.'.strtolower($className).'.php");'); + $instance = new $className(); + if (!TestIsMapping($instance)) + { + $objectNameList[] = $className; + + $linkParts1 = split("\*\/", $contentParts[1]); + $linkParts2 = split("\@link", $linkParts1[0]); + $link = $linkParts2[1]; + $options = false; + if ($GLOBALS['configuration']['proxy_host'] != false && + $GLOBALS['configuration']['proxy_port'] != false && + $GLOBALS['configuration']['proxy_username'] != false && + $GLOBALS['configuration']['proxy_password'] != false) + { + $options = array( + 'proxy_host' => $GLOBALS['configuration']['proxy_host'], + 'proxy_port' => $GLOBALS['configuration']['proxy_port'], + 'proxy_login' => $GLOBALS['configuration']['proxy_username'], + 'proxy_password' => $GLOBALS['configuration']['proxy_password'] + ); + } + $client = new SoapClient( + $GLOBALS['configuration']['soap'], + $options) ; + if ($i == 0) + { + $package = unserialize($client->GeneratePackageFromLink($link)); + } + else + { + $objectString = $client->GenerateObjectFromLink($link); + $package["objects"]["class.".strtolower($className).".php"] = $objectString; + } + } + } + $i++; + } + + + //upgrade mapping classes if any + foreach ($objectNameList as $objectName) + { + $instance = new $objectName(); + foreach ($instance->pog_attribute_type as $key => $attribute_type) + { + if ($attribute_type['db_attributes'][1] == "JOIN") + { + $mappingString = $client->GenerateMapping($objectName, $key, (isset($GLOBALS['configuration']['pdoDriver']) ? 'php5.1' :'php5'), (isset($GLOBALS['configuration']['pdoDriver']) ? 'pdo' :'pog'), (isset($GLOBALS['configuration']['pdoDriver']) ? 'mysql' :'')); + $package["objects"]['class.'.strtolower(MappingName($objectName, $key)).'.php'] = $mappingString; + } + } + } + + $zipfile = new createZip(); + $zipfile -> addPOGPackage($package); + $zipfile -> forceDownload("pog.".time().".zip"); + } + + /** + * Checks if POG generator has been updated + * + * @return unknown + */ + function UpdateAvailable() + { + $client = new SoapClient($GLOBALS['configuration']['soap']); + $generatorVersion = base64_decode($client -> GetGeneratorVersion()); + if ($generatorVersion != $GLOBALS['configuration']['versionNumber'].$GLOBALS['configuration']['revisionNumber']) + { + return true; + } + else + { + return false; + } + } + + if (UpdateAvailable()) + { + UpdateAllObjects("../../objects/"); + } + else + { + echo ""; + } +?> \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/xPandMenu.css b/backend/php/src/setup/setup_library/xPandMenu.css new file mode 100644 index 0000000..744debe --- /dev/null +++ b/backend/php/src/setup/setup_library/xPandMenu.css @@ -0,0 +1,55 @@ +#container { + width:500px; + background-color:#E7E9EE; +} +.Xtree, .XtreeRoot { + list-style-type:none; + margin:15px 20px; +} +.Xtree { + /* Indentation of a sub-item compared to its parent */ + padding-left:25px; + margin-left:3px; + border-left:1px dotted #998D05; + width:100%; +} +.Xnode { + /* Top and bottom space for a node item */ + margin-top:-3px;margin-bottom:3px; + /* Height of the node item */ + height:20px; + /* Node background color */ + background:#E7E9EE; + /* Font specifications for a node */ + font-weight:bold; + font-size:10px; + cursor:pointer; + vertical-align:middle; + width:100%; +} +.Xnode img{ vertical-align:middle; } +.Xleaf { + /* Top and bottom space for a leaf item */ + margin-top:-10px;margin-bottom:1px; + /* Height of the leag item */ + /* Leaf background color */ + /* Font specifications for a leaf */ + font-weight:normal; + font-size:10px; + padding:2px; +} +.Xnode a { + text-decoration:none; +} +.Xnode a:hover { + color:red; + text-decoration:underline; +} +.Xleaf a { + text-decoration:none; +} +.Xleaf a:hover { + color:red; + text-decoration:none; + background:#eee; +} \ No newline at end of file diff --git a/backend/php/src/setup/setup_library/xPandMenu.js b/backend/php/src/setup/setup_library/xPandMenu.js new file mode 100644 index 0000000..7f9a632 --- /dev/null +++ b/backend/php/src/setup/setup_library/xPandMenu.js @@ -0,0 +1,273 @@ +/******************************** +* xPandMenu MULTI-LEVEL class +********************************* +* Javascript file +********************************* +* Patrick Brosset +* patrickbrosset@gmail.com +********************************* +* 02/2005 +*********************************/ + + +// Show / hide a sub-menu +function xMenuShowHide(obj) +{ + + if(obj.style.display == 'none'){ + obj.style.display = 'block'; + }else{ + obj.style.display = 'none'; + } + +} + + +// Toggle expanded / collapsed versions of items' images +function xSwapImg(imgDiv,srcImg,srcAltImg){ + + /* Update by Christian Vallee + ==> No need to specify absolute URL for images anymore, this feature will find it on its own */ + + // looking for the images' root URL based on the current image + var str = imgDiv.src; + var pos = str.search(srcImg); + // if the URL root wasn't found using the first image, try with the alternative one + if ( pos == -1 ) { pos = str.search(srcAltImg); } + // extracting the URL root + var root = str.substring(0,pos); + // adding the root the image path supplied + srcImg = root.concat(srcImg); + srcAltImg = root.concat(srcAltImg); + + /* End Update */ + + if(imgDiv.src == srcImg){ + imgDiv.src = srcAltImg; + }else{ + imgDiv.src = srcImg; + } + +} + + +// Restore the menu state when the page loads +function xRestoreState() +{ + //restore list state + var name = "xMenuState"; + var start = document.cookie.indexOf(name+"="); + if(start != -1) + { + var len = start+name.length+1; + if ((!start) && (name != document.cookie.substring(0,name.length))) return null; + if (start == -1) return null; + var end = document.cookie.indexOf(";",len); + if (end == -1) end = document.cookie.length; + var value = unescape(document.cookie.substring(len,end)); + var values = value.split("|"); + for(i=0;i>"); + var imgs = couple[1].split(","); + for(var il in imgs) + { + document.getElementById(imgs[il]).src = couple[0]; + } + } + } +} + +//Get the ids of all open nodes +function getOpenNodes() +{ + value = new Array(); + var myLists = document.getElementsByTagName("UL"); + for(i=0;i>" + value[imgPath] + "[]"; + } + var cook = str.substring(0,str.length-2); + document.cookie = "xMenuStateImg=" + escape(cook) + ";"; +} + +function createRequestObject() +{ + var ro; + if (window.XMLHttpRequest) + { + ro = new XMLHttpRequest(); + } + else + { + ro = new ActiveXObject('MSXML2.XMLHTTP.3.0'); + } + return ro; +} + +var http = createRequestObject(); + +function refTree(offset, limit, objectName) +{ + http = createRequestObject(); + var req = './rpc.php?action=Refresh&offset='+offset+'&limit='+limit+'&objectname='+objectName; + http.open('get', req); + http.onreadystatechange = handleResponse; + http.send(null); +} + +function sndReq(action, openNodes, objectName, objectId, currentNode, attributes, anchor) +{ + + + http = createRequestObject(); + var req = './rpc.php?action='+action+'&opennodes='+openNodes+'&objectname='+objectName+'&objectid='+objectId+'¤tnode='+currentNode+'&anchor='+anchor; + if (action == "Add") + { + for (i=0; iindent = 0; + $this->first = true; + $this->treeCount = 0; + $this->imgCount = 0; + $this->output = ""; + } + + + + // addItem, adds a child to this menu + // Takes a XNode object reference as argument + function &addItem(&$node) + { + $this->items[] = &$node; + return $this->items[count($this->items) - 1]; + } + + + + // generateTree, generates the HTML code (UL list) for the dynamic tree-view + function generateTree($root = false) + { + if(!$root) $root = $this; + + if($this->first){ + $this->output .= $this->codeIndent()."
    \n"; + $this->first = false; + }else{ + if (array_search($this->treeCount, $this->visibleNodes) !== false) + { + $this->output .= $this->codeIndent()."
      treeCount."\" class=\"Xtree\" style=\"display:block;\">\n"; + } + else + { + $this->output .= $this->codeIndent()."
        treeCount."\" class=\"Xtree\" style=\"display:none;\">\n"; + } + } + $this->treeCount ++; + foreach($root->items as $myChild){ + $this->imgCount ++; + if($myChild->img){ + if($myChild->alt_img){ + $img_js = "xSwapImg(document.getElementById('Ximg".$this->imgCount."'),'".$myChild->img."','".$myChild->alt_img."');"; + }else{ + $img_js = ""; + } + if (array_search($this->treeCount, $this->visibleNodes) !== false) + { + $img = "treeCount."'));\" id=\"Ximg".$this->imgCount."\" src=\"".$myChild->alt_img."\" border=\"0\">  "; + } + else + { + $img = "treeCount."'));\" id=\"Ximg".$this->imgCount."\" src=\"".$myChild->img."\" border=\"0\">  "; + } + }else{ + $img = "";$img_js = ""; + } + if($myChild->link){ + $href_open = "link."\">"; + $href_close = ""; + }else{ + $href_open = ""; + $href_close = ""; + } + if(count($myChild->items) != 0){ + $this->output .= $this->codeIndent()."
      • treeCount."\">
        ".$href_open.$img.$myChild->name.$href_close."
      • \n"; + $this->indent ++; + $this->generateTree($myChild); + }else{ + $this->output .= $this->codeIndent()."
      • ".$href_open.$img.$myChild->name.$href_close."
      • \n"; + } + } + $this->output .= $this->codeIndent()."
      \n"; + $this->indent --; + + return $this->output; + } + + + + // saveTree and restoreTree - thanks to Niels Fanoe (niels.f@noee.dk) for giving me the idea + + // saveTree, save the generated HTML code to a file for future use without generating again + function saveTree($filename = "xMenuCache.html") + { + $file = new File(); + $file->write($this->output,$filename); + $file->printError(); + return $filename; + } + + + + // restoreTree, returns the previously generated HTML code stored in a file + // Call this method STATICALLY for easier use: XMenu::restoreTree("xPandMenuCode.html"); + function restoreTree($filename = "xMenuCache.html") + { + $file = new File(); + $menu = $file->read($filename); + $error = $file->getError(); + if(!empty($error)) return false; + else return $menu; + } + + + + // codeIndent, only used to create a nice and readable HTML code (indents the UL and LI tags) + function codeIndent() + { + $str = ""; + for($i=0;$i<$this->indent;$i++){ + $str .= " "; + } + return $str; + } + + +} + + + + +// XNode class: A node item in the menu +class XNode +{ + + + // Name assigned to this node (Text shown on the item) + var $name; + + // Link for the item (if any) + var $link; + + // Sub-items of this node + var $items = array(); + + // Absolute URL of this node's icon + var $img; + + // Absolute URL of this node's icon (alternate, used for expanded and collapsed states) + var $alt_img; + + + + // constructor + // $name: text shown for this item + // $link: where does this item links to when clicked (optional) + // $img and $alt_img: images displayed next to this item (absolute paths to images must be used) + function XNode($name,$link = false,$img = LEAF_DEFAULT_IMG,$alt_img = LEAF_DEFAULT_ALT_IMG) + { + $this->name = $name; + $this->link = $link; + $this->img = $img; + $this->alt_img = $alt_img; + } + + + + // addItem, adds a subnode under this node + // Takes a XNode object reference as argument + function &addItem(&$node) + { + if($this->img == LEAF_DEFAULT_IMG){$this->img = NODE_DEFAULT_IMG;} + if($this->alt_img == LEAF_DEFAULT_ALT_IMG){$this->alt_img = NODE_DEFAULT_ALT_IMG;} + $this->items[] = &$node; + return $this->items[count($this->items) - 1]; + } + + + +} + +?> \ No newline at end of file diff --git a/backend/php/src/test.php b/backend/php/src/test.php new file mode 100644 index 0000000..827ee66 --- /dev/null +++ b/backend/php/src/test.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/backend/python/properties/python.properties.json b/backend/python/properties/python.properties.json new file mode 100644 index 0000000..e69de29 diff --git a/backend/python/src/app.yaml b/backend/python/src/app.yaml new file mode 100644 index 0000000..5e085a9 --- /dev/null +++ b/backend/python/src/app.yaml @@ -0,0 +1,20 @@ +application: clipperz +version: 1 +runtime: python +api_version: 1 + +handlers: +- url: /json + script: clipperz.py + +- url: /css + static_dir: css + +- url: /js + static_dir: js + +- url: /images + static_dir: images + +- url: /.* + script: clipperz.py diff --git a/backend/python/src/clipperz.py b/backend/python/src/clipperz.py new file mode 100644 index 0000000..c8d91de --- /dev/null +++ b/backend/python/src/clipperz.py @@ -0,0 +1,708 @@ +# +# Copyright 2008-2011 Clipperz Srl +# +# This file is part of Clipperz's Javascript Crypto Library. +# Javascript Crypto Library provides web developers with an extensive +# and efficient set of cryptographic functions. The library aims to +# obtain maximum execution speed while preserving modularity and +# reusability. +# For further information about its features and functionalities please +# refer to http://www.clipperz.com +# +# * Javascript Crypto Library is free software: you can redistribute +# it and/or modify it under the terms of the GNU Affero General Public +# License as published by the Free Software Foundation, either version +# 3 of the License, or (at your option) any later version. +# +# * Javascript Crypto Library is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU Affero General Public License for more details. +# +# * You should have received a copy of the GNU Affero General Public +# License along with Javascript Crypto Library. If not, see +# . +# + +import os +import cgi +import wsgiref.handlers + +import datetime +import uuid +import random +import hashlib + +import logging + +from google.appengine.api import users +from google.appengine.ext import webapp +from google.appengine.ext import db +from google.appengine.ext.webapp import template + +from django.utils import simplejson + +#============================================================================== + +sessionTimeout = datetime.timedelta(minutes=-2) + +def randomSeed(): + return hex(random.getrandbits(32*8))[2:-1] + +def clipperzHash(aString): + #logging.info(">>> string: " + aString) + firstRound = hashlib.sha256() + firstRound.update(aString) + #logging.info("firstRound: " + firstRound.hexdigest() + " - " + firstRound.digest()) + result = hashlib.sha256() + result.update(firstRound.digest()) + #logging.info("<<< finalResul: " + result.hexdigest()) + + return result.hexdigest() + +#============================================================================== + +class User(db.Model): + username = db.StringProperty() + srp_s = db.StringProperty() + srp_v = db.StringProperty() + header = db.TextProperty() + statistics = db.TextProperty() + auth_version= db.StringProperty() + version = db.StringProperty() + lock = db.StringProperty() + + def updateCredentials(self, someCredentials): + self.username = someCredentials['C'] + self.srp_s = someCredentials['s'] + self.srp_v = someCredentials['v'] + self.auth_version = someCredentials['version'] + + def update(self, someData): + self.header = someData['header'] + self.statistics = someData['statistics'] + self.version = someData['version'] + self.lock = someData['lock'] + +#------------------------------------------------------------------------------ + +class Record(db.Model): + user = db.ReferenceProperty(User) + reference = db.StringProperty() + data = db.TextProperty() + version = db.StringProperty() + creation_date = db.DateTimeProperty(auto_now_add=True) + update_date = db.DateTimeProperty(auto_now_add=True) + access_date = db.DateTimeProperty(auto_now_add=True) + +#------------------------------------------------------------------------------ + +class RecordVersion(db.Model): + record = db.ReferenceProperty(Record) + reference = db.StringProperty() + header = db.TextProperty() + data = db.TextProperty() + version = db.StringProperty() + previousVersionKey = db.StringProperty() + previousVersion = db.SelfReferenceProperty() + creation_date = db.DateTimeProperty(auto_now_add=True) + update_date = db.DateTimeProperty(auto_now_add=True) + access_date = db.DateTimeProperty(auto_now_add=True) + + def update(self, someData): + recordData = someData['record']; + self.parent().reference = recordData['reference'] + self.parent().data = recordData['data'] + self.parent().version = recordData['version'] + self.parent().update_date = datetime.datetime.now() + + recordVersionData = someData['currentRecordVersion']; + self.reference = recordVersionData ['reference'] + self.data = recordVersionData ['data'] + self.version = recordVersionData ['version'] + #self.previous_version = #recordVersionData ['previousVersion'] + self.previous_version_key = recordVersionData ['previousVersionKey'] + self.update_date = datetime.datetime.now() + +#------------------------------------------------------------------------------ + +class OneTimePassword(db.Model): + user = db.ReferenceProperty(User) + status = db.StringProperty() + reference = db.StringProperty() + keyValue = db.StringProperty() + keyChecksum = db.StringProperty() + data = db.TextProperty() + version = db.StringProperty() + creation_date = db.DateTimeProperty(auto_now_add=True) + request_date = db.DateTimeProperty() + usage_date = db.DateTimeProperty() + + def update(self, someParameters, aStatus): + self.reference = someParameters['reference'] + self.keyValue = someParameters['key'] + self.keyChecksum = someParameters['keyChecksum'] + self.data = someParameters['data'] + self.version = someParameters['version'] + self.status = aStatus + + def reset(self, aStatus): + self.data = "" + self.status = aStatus + + return self + +#------------------------------------------------------------------------------ + +class Session(db.Expando): + sessionId = db.StringProperty() + access_date = db.DateTimeProperty() + +#============================================================================== + +class MainPage(webapp.RequestHandler): + def get(self): + path = os.path.join(os.path.dirname(__file__), 'static%s' % self.request.path) + self.response.out.write(template.render(path, {})) + +#============================================================================== + +class XHR(webapp.RequestHandler): + + #========================================================================== + + def get(self): + logging.info("self.request.path: " + self.request.path) + if self.request.path == "/dump": + session = self.getSession() + userData = {} + offline_data_placeholder = "" + + user = db.Query(User).filter('username =', session.C).get() + + userData['users'] = { + 'catchAllUser': { + '__masterkey_test_value__': 'masterkey', + 's': '112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00', + 'v': '112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00' + } + } + + records = {} + for currentRecord in db.Query(Record).ancestor(user): + versions = {} + for currentVersion in db.Query(RecordVersion).ancestor(currentRecord): + versions[currentVersion.reference] ={ + 'header': currentVersion.header, + 'data': currentVersion.data, + 'version': currentVersion.version, + 'creationDate': str(currentVersion.creation_date), + 'updateDate': str(currentVersion.update_date), + 'accessDate': str(currentVersion.access_date) + } + + records[currentRecord.reference] = { + 'data': currentRecord.data, + 'version': currentRecord.version, + 'creationDate': str(currentRecord.creation_date), + 'updateDate': str(currentRecord.update_date), + 'accessDate': str(currentRecord.access_date), + 'currentVersion': currentVersion.reference, + 'versions': versions + } + + userData['users'][user.username] = { + 's': user.srp_s, + 'v': user.srp_v, + 'version': user.auth_version, + 'maxNumberOfRecords': '100', + 'userDetails': user.header, + 'statistics': user.statistics, + 'userDetailsVersion': user.version, + 'records': records + } + + offline_data_placeholder = offline_data_placeholder + "_clipperz_dump_data_ = " + simplejson.dumps(userData, indent=4) + "\n" + offline_data_placeholder = offline_data_placeholder + "Clipperz.PM.Proxy.defaultProxy = new Clipperz.PM.Proxy.Offline();" + "\n" + offline_data_placeholder = offline_data_placeholder + "Clipperz.Crypto.PRNG.defaultRandomGenerator().fastEntropyAccumulationForTestingPurpose();" + "\n" + + path = os.path.join(os.path.dirname(__file__), 'static/dump.html') + + self.response.headers.add_header('Content-Type', 'text/html') + self.response.headers.add_header('Content-Disposition', 'attachment', filename='Clipperz.html') + self.response.out.write(template.render(path, {'offline_data_placeholder': offline_data_placeholder})) + + #========================================================================== + + def post(self): + method = self.request.get('method') + parameters = simplejson.loads(self.request.get('parameters')) + session = self.getSession() + result = {}; + + #---------------------------------------------------------------------- + + if method == 'registration': + message = parameters['message']; + + if message == 'completeRegistration': + user = User() + + user.updateCredentials(parameters['credentials']) + user.update(parameters['user']) + user.put() + + result['lock'] = user.lock + result['result'] = "done" + + #---------------------------------------------------------------------- + + elif method == 'handshake': + srp_g = 2L + srp_n = long("0x%s" % "115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3", 16) + + message = parameters['message']; + + #------------------------------------------------------------------ + + if message == 'connect': + session.C = parameters['parameters']['C'] + session.A = parameters['parameters']['A'] + + user = db.Query(User).filter('username =', session.C).get() + + if user != None: + try: + optId = session.otpId + + oneTimePassword = db.Query(OneTimePassword).filter('keyValue =', optId).get() + + if oneTimePassword.parent().username != user.username: + oneTimePassword.reset('DISABLED').put() + raise Exception, "User missmatch between the current session and 'One Time Password' user" + elif oneTimePassword.status != 'REQUESTED': + oneTimePassword.reset('DISABLED').put() + raise Exception, "Tring to use an 'One Time Password' in the wrong state" + + oneTimePassword.reset("USED").put() + + result['oneTimePassword'] = oneTimePassword.reference + + except Exception, detail: + logging.error("connect.optId: " + str(detail)) + + session.s = user.srp_s + session.v = user.srp_v + else: + session.s = "112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00" + session.v = "112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00" + + session.b = randomSeed() + session.B = hex(long("0x%s" % session.v, 16) + pow(srp_g, long("0x%s" %session.b, 16), srp_n))[2:-1] + + result['s'] = session.s + result['B'] = session.B + + #------------------------------------------------------------------ + + elif message == 'credentialCheck': + B = long("0x%s" % session.B, 16) + b = long("0x%s" % session.b, 16) + A = long("0x%s" % session.A, 16) + v = long("0x%s" % session.v, 16) + u = long("0x%s" % clipperzHash(str(B)), 16) + n = srp_n + + S = pow((A * pow(v, u, n)), b, n) + K = clipperzHash(str(S)) + M1 = clipperzHash(str(A) + str(B) + K) + + if M1 == parameters['parameters']['M1']: + session.K = K + M2 = clipperzHash(str(A) + M1 + K) + + result['M2'] = M2 + result["connectionId"] = "" + result["loginInfo"] = {} + result["loginInfo"]["latest"] = {} + result["loginInfo"]["current"] = {} + result["offlineCopyNeeded"] = "false"; + result["lock"] = "----"; + else: + result['error'] = "?" + + #------------------------------------------------------------------ + + elif message == 'oneTimePassword': + oneTimePassword = db.Query(OneTimePassword).filter("keyValue =", parameters["parameters"]["oneTimePasswordKey"]).get() + + if oneTimePassword != None: + if oneTimePassword.status == 'ACTIVE': + if oneTimePassword.keyChecksum == parameters['parameters']['oneTimePasswordKeyChecksum']: + #session.userId = str(oneTimePassword.parent().username) + session.otpId = str(oneTimePassword.keyValue) + + result['data'] = oneTimePassword.data + result['version'] = oneTimePassword.version + + oneTimePassword.reset('REQUESTED').put() + + else: + oneTimePassword.reset('DISABLED').put() + raise Exception, "The requested One Time Password has been disabled, due to a wrong keyChecksum" + else: + raise Exception, "The requested One Time Password was not active" + else: + raise Exception, "The requested One Time Password has not been found" + + #---------------------------------------------------------------------- + + elif method == 'message': + if parameters['srpSharedSecret'] == session.K: + message = parameters['message'] + + if message == 'getUserDetails': + # {"message":"getUserDetails", "srpSharedSecret":"f18e5cf7c3a83b67d4db9444af813ee48c13daf4f8f6635397d593e52ba89a08", "parameters":{}} + user = db.Query(User).filter('username =', session.C).get() + + result['header'] = user.header; + result['statistics'] = user.statistics; + result['version'] = user.version; + + elif message == "addNewRecords": + user = db.Query(User).filter('username =', session.C).get() + result = db.run_in_transaction(self.addNewRecords, session, user, parameters) + + """ + user = db.Query(User).filter('username =', session.C).get() + user.update(parameters['parameters']['user']) + + for recordParameter in parameters['parameters']['records']: + record = Record(parent=user) + record.put() + recordVersion = RecordVersion(parent=record) + recordVersion.put() + + recordVersion.update(recordParameter) + + record.put() + recordVersion.put() + + user.put(); + + result['lock'] = user.lock + result['result'] = 'done' + """ + + elif message == 'getRecordDetail': + record = db.Query(Record).ancestor(db.Query(User).filter('username =', session.C).get()).filter('reference =', parameters["parameters"]["reference"]).get() + recordVersion = db.Query(RecordVersion).ancestor(record).get() + + result['currentVersion'] = {} + result['currentVersion']['reference'] = recordVersion.reference + result['currentVersion']['data'] = recordVersion.data + result['currentVersion']['header'] = recordVersion.header + result['currentVersion']['version'] = recordVersion.version + result['currentVersion']['creationDate'] = str(recordVersion.creation_date) + result['currentVersion']['updateDate'] = str(recordVersion.update_date) + result['currentVersion']['accessDate'] = str(recordVersion.access_date) + + result['reference'] = record.reference + result['data'] = record.data + result['version'] = record.version + result['creationDate'] = str(record.creation_date) + result['updateDate'] = str(record.update_date) + result['accessDate'] = str(record.access_date) + result['oldestUsedEncryptedVersion'] = "---" + + elif message == 'updateData': + user = db.Query(User).filter('username =', session.C).get() + user.update(parameters['parameters']['user']) + + for recordParameter in parameters['parameters']['records']: + logging.info('reference =' + recordParameter['record']['reference']) + record = db.Query(Record).ancestor(user).filter('reference =', recordParameter['record']['reference']).get() + recordVersion = db.Query(RecordVersion).ancestor(record).get() + + recordVersion.update(recordParameter) + + recordVersion.put() + recordVersion.parent().put() + + user.put(); + + result['lock'] = user.lock + result['result'] = 'done' + + elif message == 'deleteRecords': + user = db.Query(User).filter('username =', session.C).get() + user.update(parameters['parameters']['user']) + + for recordReference in parameters['parameters']['recordReferences']: + record = db.Query(Record).ancestor(user).filter('reference =', recordReference).get() + #recordVersion = db.Query(RecordVersion).ancestor(record).get() + + db.delete(db.Query(RecordVersion).ancestor(record)) + record.delete() + + user.put() + + result['lock'] = user.lock + result['result'] = 'done' + + elif message == 'deleteUser': + user = db.Query(User).filter('username =', session.C).get() + db.delete(db.Query(RecordVersion).ancestor(user)) + db.delete(db.Query(Record).ancestor(user)) + user.delete() + + elif message == 'addNewOneTimePassword': + user = db.Query(User).filter('username =', session.C).get() + user.update(parameters['parameters']['user']) + + oneTimePassword = OneTimePassword(parent=user) + oneTimePassword.update(parameters['parameters']['oneTimePassword'], "ACTIVE") + oneTimePassword.put() + + user.put() + + result['lock'] = user.lock + result['result'] = 'done' + + elif message == 'updateOneTimePasswords': + user = db.Query(User).filter('username =', session.C).get() + user.update(parameters['parameters']['user']) + + validOtpReferences = parameters['parameters']['oneTimePasswords'] + for currentOtp in db.Query(OneTimePassword).ancestor(user): + if currentOtp.reference in validOtpReferences: + pass + else: + currentOtp.delete() + + user.put() + + result['result'] = user.lock + + elif message == 'getOneTimePasswordsDetails': + pass + + elif message == 'getLoginHistory': + result["result"] = [] + + elif message == 'upgradeUserCredentials': + user = db.Query(User).filter('username =', session.C).get() + + user.updateCredentials(parameters['parameters']['credentials']) + user.update(parameters['parameters']['user']) + + for oneTimePasswordReference in parameters['parameters']['oneTimePasswords']: + oneTimePassword = db.Query(OneTimePassword).ancestor(user).filter("reference =", oneTimePasswordReference).get() + + if oneTimePassword != None: + oneTimePassword.data = parameters['parameters']['oneTimePasswords'][oneTimePasswordReference] + oneTimePassword.put() + + user.put() + + result['lock'] = user.lock + result['result'] = 'done' + + """ + $user = new user(); + $user->Get($_SESSION["userId"]); + + $otp = new onetimepassword(); + + updateUserCredentials($parameters["parameters"]["credentials"], $user); + updateUserData($parameters["parameters"]["user"], $user); + + $otpList = $parameters["parameters"]["oneTimePasswords"]; + foreach($otpList as $otpReference=>$otpData) { + $otpList = $otp->GetList(array(array("reference", "=", $otpReference))); + $currentOtp = $otpList[0]; + $currentOtp->data = $otpData; + $currentOtp->Save(); + } + + $user->Save(); + + $result["lock"] = $user->lock; + $result["result"] = "done"; + """ + + #============================================================= + + """ + java.util.Map result; + + try { + java.util.Map credentials; + + if (someParameters.get("credentials") != null) { + credentials = (java.util.Map)someParameters.get("credentials"); + } else { + credentials = someParameters; + } + + aUser.setUsername((java.lang.String)credentials.get("C")); + aUser.setSrpS((java.lang.String)credentials.get("s")); + aUser.setSrpV((java.lang.String)credentials.get("v")); + aUser.setVersion((java.lang.String)credentials.get("version")); + + if (someParameters.get("user") != null) { + com.clipperz.dataModel.EncoderHelper.updateWithMap(aUser, (java.util.Map)someParameters.get("user")); + } + + if (someParameters.get("oneTimePasswords") != null) { + java.util.Map updatedOneTimePasswords; + java.util.List usersOneTimePasswords; + int i,c; + + updatedOneTimePasswords = (java.util.Map)someParameters.get("oneTimePasswords"); + usersOneTimePasswords = com.clipperz.dataModel.OneTimePassword.oneTimePasswordsForUser(this.user()); + c = usersOneTimePasswords.size(); + for (i=0; i>> getSession (%d) => %s" % (db.Query(Session).count(), str(map(lambda v: v.sessionId, db.Query(Session).fetch(100)))) ) + result = None + try: + sessionId = self.request.cookies['sessionId'] + except: + sessionId = None + + #logging.info("wannabe sessionId: " + str(sessionId)) + + if sessionId != None: + #query = db.Query(Session) + #query.filter('sessionId =', sessionId) + + #result = query.get() + + #result = db.Query(Session).filter('sessionId =', str(sessionId)).filter('access_date >', (datetime.datetime.utcnow() - sessionTimeout)).get() + result = db.Query(Session).filter('sessionId =', str(sessionId)).get() + #logging.info("searching session on datastore. Found: " + str(result)) + + if result == None: + sessionId = str(uuid.uuid4()) + #logging.info("creating a new session with sessionId=" + str(sessionId)) + result = Session(sessionId=sessionId) + + result.access_date = datetime.datetime.utcnow() + result.put() + + #logging.info("<<< getSession (%d)" % db.Query(Session).count()) + + return result + + #========================================================================== + + def saveSession(self, aSession): + #logging.info(">>> saveSession (%d)" % db.Query(Session).count()) + #self.response.set_cookie('sessionId', aSession.sessionId, max_age=360, path='/', domain='example.org', secure=True) + aSession.put() + self.response.headers.add_header('Set-Cookie', 'sessionId=' + str(aSession.sessionId), path='/') + self.cleanOldSessions() + #logging.info("<<< saveSession (%d)" % db.Query(Session).count()) + + #========================================================================== + + def cleanOldSessions(self): + query = db.Query(Session).filter('accessDate <', (datetime.datetime.utcnow() - sessionTimeout)) + + expiredSessions = query.count(); + if expiredSessions != 0: + #logging.info("deleting %d sessions" % expiredSessions) + pass + + """ + try: + db.delete(query) + except Exception, exception: + logging.error("some issues raised while deleting the expired sessions") + logging.error("exception type: " + str(type(exception))) + logging.error("exception: " + str(exception)) + """ + pass + +#============================================================================== + +def main(): + application = webapp.WSGIApplication([('/xhr', XHR), ('/dump', XHR), ('/.*', MainPage)], debug=True) + wsgiref.handlers.CGIHandler().run(application) + +if __name__ == "__main__": + main() + diff --git a/doc/install.php.txt b/doc/install.php.txt new file mode 100644 index 0000000..d3a40e8 --- /dev/null +++ b/doc/install.php.txt @@ -0,0 +1,31 @@ +Instructions on how to install and configure your personal instance of the Clipperz application + +Configure the settings on the /php/configuration.php file. +The most important configuration options are the one to connect to the MySQL database: +- $configuration['db'] = 'clipperz'; // database name +- $configuration['host'] = 'localhost'; // database host +- $configuration['user'] = 'root'; // database user +- $configuration['pass'] = 'pass'; // database password +- $configuration['port'] = '3306'; // database port + + +The MySQL database configured above, should already exists, but the setup procedure will take care of creating all the tables used by the application. + +Once the configuration are setup, you should load the /php/setup/index.php page. +Following the instructions, the script will generate all the database objects, and run some tests to double-check that everything works fine. +In the first page you have to press the "POG me up!" button at the bottom of the page; in the next page, if all the checks are successful, a "Proceed" button will be enabled below the main text area. Clicking the "Proceed" button you will access the tab of the POG application that enable you to inspect and edit the content of the database used by the Clipperz application. + +Once the application is successfully installed, it is probably a good idea to remove, disable or protect the whole "/php/setup/" folder, in order to avoid anyone from deleting random records from the database. Your data will not be leaked, but it would be possible to delete them anyway. + +At this point the database should be ready to run. + +The PHP code is quite simple, but there are a few dependency on external library that you may have to include, depending of the version of PHP you are using. + +- PDO: http://ca.php.net/pdo +- JSON: http://aurore.net/projects/php-json/ +- BCMath: http://it.php.net/bc + +The code has been compiled using PHP 5.1.6 +The POG class definitions have been configure for use with PHP 5.1+ + +For added convenience, we have added a page at /php/test.php that reports the detailed PHP configuration available on your computer. \ No newline at end of file diff --git a/frontend/beta/css/clipperz/clipperz.css b/frontend/beta/css/clipperz/clipperz.css new file mode 100644 index 0000000..b0601a2 --- /dev/null +++ b/frontend/beta/css/clipperz/clipperz.css @@ -0,0 +1,3238 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* @override + https://www.example.com/css/clipperz.css + http://www.example.com/css/clipperz.css + https://www.example.com/concurrency/css/clipperz.css + https://www.clipperz.com/beta-connection/css/clipperz.css + https://www.example.com/import/css/clipperz.css +*/ + +body { +/* margin-left: 15px; margin-right: 15px;*/ + background-color: white; + color: black; + font-family: Helvetica, Arial, Geneva, sans-serif; +} + +table { +/* width: 100%; */ +} + +/* @group Header */ + +div#applicationVersionType { + position: fixed; + top: 0; + left: 0; + width: 120px; + height: 120px; + z-index: 99999; +} + +div#applicationVersionType.readOnly { +/* background: url(../images/read-only.png) no-repeat fixed -5px -8px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAI0AAACSCAYAAAB43knrAAAABGdBTUEAANbY1E9YMg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nUMDFs7aP59QNk5901XEe426aDRw8LAsLnN9thU+8qXi9uO4z59L2mzCke9DpZ6BiZ8zdSK5bjRV6MoOmgadeA0MDAMTUfhqVq9+S4VmiYVEu0nA8PWITSKCoMGhwZPMwPD1hE0NTpoWtRNA0V7zMCwGaCpVaFpU+HQthYVFAaGrR009eq+S6dt9FsbA8PmDY323YCKDg5FB4zCwLB5Q+PUQaPfNFAYGLZ20LR6QQOdPGZjc0Pj8gKFje2SZjNTEWSLbLPzJWBjaNgYGjaGho2hYWNo2NgYGjaGho2hYWNo2BgaNjaGhi1A9n8BBgBfmCD4GUFjiQAAAABJRU5ErkJgggo=) no-repeat fixed -5px -8px; +} + +div#applicationVersionType.TEST { +/* background: url(../images/test-database.png) no-repeat fixed -5px -8px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAACGCAYAAAD+UDnVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADMlJREFUeNrtnX+MXFUVx99OaaFLwdIfKrTQym81hsQCmiiIYPUP+R0ggXSL0KYgBKMBUUn9QVJMTIx/dDet1EAT21qEQM1iirKEFrKBGlOpbBoK6Lqhu6CLTJ2hdKY7O3s9575777v3zczuzPs19807L/lm29lt3+bd7/vcc8499z3HSc/RBcqBZoNOBM0DnQb6BGj5m+udjWyjw0i1+udPnD64RmeBFoNOEdfvBHFNuxhjDsqRfwgqMoLdeu1B53G4RheBzhbXaz5orriWOcMMRITO1UvfcX4P1+hK0ArQeaAzxLXrrmsGy8mQnBF6uzrKCM992+mHa3QzaCXoUtAFoKWghaCTQXPSRIaEjNDl+5p+7VrrPA/XaJ1mhkuEGZaAFjQ0g6VkoKkhoJ68w9kL1+h+0BrQjWKa+Lw2TSxIExmmNcJbZISG2nm7MwjXaD3oPlAP6BrQ5VoA+UktgLQ+myAjBNSO1c4rcI0eBj0AWiumiK+DvgD6jJZango6STODYyMZyAgBtX218ypcow2gB0F3g24DXQ26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ZWW9WUIcgIHUiGAK1qYVNJMkLK6gw2t6rRPd+GCiS1qhEZrG1Vo3u9zauW1KpGZKAYgchARiAykBGIDGQEIgMZgchARiAykBGIDGQEIkPiZiAjEBnICEQGMgKRgYxAZCAjEBnICEQGMgKRgYxAZCAjEBnICEQGMgKRgYxAZAhjBjICkYGMQGQgIxAZyAhEBjICkYGMQGQgI5DRmjADGYHIQEYgMnjavtp5lYxAZJBG2AD6IRkhw2TYebszCN97GPQDYYQeMkIGyfDkHc5e+Hw96AHQ3cII15ERMkSGZ9Y4z+9a6wzAZ/eD7gOtBd0GuhZ0JRkhQ2SAYx3oLtAa0CrQzaCrQVeALiYjZIgMYvBRNwoarARdBlpBRsgeGVYK4ZRwOeiLoItAF4CWkxGyRQaMCS4RUwKa4NOgc0FngT5ORsgWGS4UOh90DmgZ6HTQYtB8MkK2yLAUdCZoiZgSFgkanArqBs0hI2SHDAtAC4UB5gsTzAOdREbIHhlO1jRXTAn6tJAjI2SHDHM0zdZMIGlARsgQGWZpymkGIBNkjQxBX/tL6jzRRSCRGUi1+j+w3nFdxUGuNgAAAABJRU5ErkJgggo=) no-repeat fixed -5px -8px; +} + +div#applicationVersionType.LIVE { + display: none; + visibility: hidden; +} + +div#applicationVersionType.DEBUG { + display: none; + visibility: hidden; +} + +div#header { + background-color: #336; +/* border-bottom: 8px solid #ff9400;*/ +} + +div#logoFrame { +/* float: left; */ +/* height: 44px; */ + min-height: 44px; + background-color: #333366; +} + +div#logoFrame > a { + font-size: 12pt; +} + +img#logo { + padding-left: 15px; +} + +h5.clipperzPayoff { + color: white; + font-size: 10pt; + font-weight: normal; + padding-left: 20px; + display: inline; + vertical-align: 7px; + white-space: nowrap; +} + +/* @group Misc links + */ +div#miscLinks { + float: right; + top: 0; + right: 15px; +} + +div#miscLinks ul { + padding-top: 5px; + padding-right: 3px; +} + +div#miscLinks ul li { + display: inline; + padding-left: 5px; + padding-right: 5px; +} + +div#miscLinks ul li a { + color: #ff9404; + text-decoration: none; + font-size: 10pt; +} + +div#miscLinks ul li a:hover { + text-decoration: underline; +} + +/* @end */ + +/* @end */ + +/* @group Menu */ + +div#mainTabs { +/* background: #ff9400 url(../images/menubarSprite.gif) repeat-x; */ + background: #ff9400 url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) repeat-x; + height: 26px; +} + +/* @group Exit links */ + +ul#exitLinks { + padding-left: 5px; + padding-top: 3px; +} + +ul#exitLinks li { + display: inline; + font-size: 10pt; + padding-left: 20px; +} + +ul#exitLinks li a { + color: white; + text-decoration: none; +} + +ul#exitLinks li a:hover { + color: #333366; +} +/* +ul#logoutBlock { + padding-top: 3px; +} + +ul#logoutBlock li { + line-height: 14px; +} + +td.logoutTD { + width: auto; +} +*/ + +/* @end */ + +/* @group Menus */ + +div#menus { + padding-right: 1px; + position: absolute; + right: 20; + top: 44px; +/* background: url(../images/menubarSprite.gif) no-repeat right -26px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat right -26px; +} + + +div#menus table { + padding-left: 1px; +/* background: url(../images/menubarSprite.gif) no-repeat 0 -52px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat 0 -52px; +} + +div#menus table tbody tr td { + cursor: pointer; +} + +div#menus table tbody tr td div { +/* background: url(../images/menubarSprite.gif) no-repeat right -52px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat right -52px; +} + +div#menus table tbody tr td div a { + display: block; + color: white; + font-size: 10pt; + text-decoration: none; + padding: 0px 15px; +/* background: url(../images/menubarSprite.gif) no-repeat left -26px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat left -26px; + height: 26px; + line-height: 26px; +} + +div#menus table tbody tr td.hover div a { + color: #333366; +} + +/* @group .selected */ +div#menus table tbody tr td.selectedTab { +/* background: url(../images/menubarSprite.gif) repeat-x right -78px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) repeat-x right -78px; +} + +div#menus table tbody tr td.selectedTab div { +/* background: url(../images/menubarSprite.gif) no-repeat right -130px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat right -130px; +} + +div#menus table tbody tr td.selectedTab div a { + color: #333366; +/* background: url(../images/menubarSprite.gif) no-repeat left -104px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCcAOYAANN7AKNfAP2zTf/KgO7QppVXAKJeALFmAOCkTfKtTZhZAPWvTaVgAJ5cAPCsTd2hTdygTaxjAOinTc13APySAOe8gO6rTfSuTZFVAKdhAOqIAN+jTfuyTZJVAO+LAPmxTeuqTbBlAKGDWbFnAOKkTaFdAOmoTfevTeSkTZdXAK9lAPyzTY9TAO+rTeamTfGMALKNWf60TeSmTZ1bAN+BAJpZAP/apvmyTZRWAKliAKpjAJxaAK1lAOiHAPaPANh9APyTANd9APSOANyBAPqQAPiPANF6ANB5AOOEANV9AOaGANV8AOyKANyAAPWPAP6UAPiQANp/AOGDANp+AOaFAOCDAO2KANJ6AP2TAPqRAOOFAM95APSNAP2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAJwAAAeigANdQBRZUD5cLx5MGj1USFU0Q1E/SwBXWxUTNjECKxw3HycLFwkOLRYgJhIuMigkCBsPBBAwIwchKjwROjkZDAEGJQ0zOzUKKQU4HRgiLBVHRgBJQVNNNFJaSj0aVh4vQk5FRBRYTwMTIhgdOAUpCjU7Mw0lBgEMGTk6ETwqIQcjYLAg8GADAhIoZLiQYAKEhRYOElxYcOLDDQ4rBMSwASEQADsK) no-repeat left -104px; +} + +/* @end */ +/* +ul#menus li { + display: inline; + padding: 4px 15px; + margin-right: 2px; + color: white; + cursor: pointer; + line-height: 16px; + border: 1px solid white; + border-bottom: 0px; + position: relative; + top: -5px; +} + +ul#menus li:hover { + border: 1px solid #ff9400; + border-bottom: 0px; +} + +ul#menus li.selectedTab { + border: 1px solid #ff9400; + background-color: #ff9400; + border-bottom: 0px; + color: #333366; +} + +ul#menus li.selectedTab:hover { + border: 1px solid #ff9400; + background-color: #ff9400; + border-bottom: 0px; + padding: 4px 15px; + color: #333366; +} +*/ + +/* @end */ + +/* @end */ + +/* @group Content */ + +div#content { + margin-top: 15px; +} + +div#main { + padding-top: 15px; +/* margin-left: 15px; margin-right: 15px;*/ +} + +div#main ul li.selectedPanel { + padding: 0px 15px; +} + +div#main ul li#recordsPanel { + padding: 0px; +} + +div#main ul li ul li.selectedPanel { + padding: 0px; +} + +/* @group Login page */ + + +/* @group Service description */ +div.clipperzServiceDescription { + color: #666666; + padding-left: 10px; + margin-right: 20px; +} + +div.clipperzServiceDescription h2 { + color: #ff9400; + font-size: 20pt; + margin-bottom: 15px; +} + +div.clipperzServiceDescription ul li h3 { +} + +div.clipperzServiceDescription ul li ul { + list-style-position: outside; + list-style-type: disc; + color: #ff9400; + margin-bottom: 15px; + margin-left: 20px; +} + +div.clipperzServiceDescription ul li ul li p { + display: inline; + color: #999999; + font-size: 11pt; +} + +div.clipperzServiceDescription ul li a { + color: #333366; + font-weight: bold; +} + +/* @end */ + +/* @group Form */ + +div.clipperzLoginForm { +/* border: 4px solid #ff9400; */ + color: #999999; + font-size: 11pt; + width: 400px; + height: 350px; +} + +div.clipperzLoginForm a { + margin-left: 10px; + color: #333366; + text-decoration: none; + font-weight: bold; +} + +div.clipperzLoginForm a:hover { + text-decoration: underline; +} + +div.clipperzLoginForm div.loginFormHeaderBox { + padding: 30px 20px 0px 20px; +/* background: url(../images/loginFormBox.png) no-repeat -3px top; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAABMAAAAAvCAIAAACKdSGFAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAv4SURBVHja7N3Zj1vlG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sEf96p7bIea99f18prAWa5IT5xvvWPMInx+AACQ06gVSwsQmXOnuguyjAwCzdUhbFWn7r0p+6gMHq44WpzZ/dcYCSZ8EFmMUTH9hgWAdUouiLpCO11i3tGeP857wdfMCaYljU1jlq4z2EqWrjTd1ruHjBBCAExoSJm57tJvlPIEEgOkd0masWYHUwaIEqY7TbPKqe9qHxxpIIKRlsqlAWizYdFZbG+lud38ry4VafQJpi7B1CqtIVQYb78is4iMEEIATGhImurja3e+B++IAMNt4UY/MleGgbpshYzMdHepMsYqjafUj0QqELA1U00pIOx1NS6NlhU12vcV79AGO8dCHA3pny58sUS00fpfI8SkCCMAJDQkTm3Ml7GY5AGC2gaP79ED7pO5inUgk3GeP1h7JVSDcNdKaoc1NsHkK7oTVtuxT2FKBdG9i2URWPjAA7WITrjRn2EcHAFoZNepY0IaGNmBzZ65Ob4+USSBM1bFpMaQbC5EbtetPB9iF1S2QTKMH0Ea20wPzVwEg6AhS10Z6Nz6ZnHHnVdIVCF+BNPZ//6a1kW3/08EKpFsj+dgAtL1A2uCGUQ4AzKNJzpGf5CqwRJrkQk/gCrALq1VHm1IPAG3hTrtyjywDANz6aPL2jCkBLBEtLaN0p0C4a7IBoF2aVuxwQQAAABZrgZw+wmN4B6CN3F0fuBoAAADhKZBcMgALipwBAAAISYFkeAdg4Uoj2QIAABDCAgkAAAAAoEACAAAAAHDLBZLZZQAAAABAgQxQHVmqBGAh6OFA09MGAAAAi6xAevUDPLheAG4DAgcAAGBxF0gAAAAAwBL3fwEGAGLpZ+CuDirCAAAAAElFTkSuQmCCCg==) no-repeat -3px top; +} + +div.clipperzLoginForm h3 { + color: #666666; + font-size: 14pt; + padding: 0px 15px 8px 15px; + border-bottom: 1px dotted #ff9400; +} + +div.clipperzLoginForm form table.formLayout { + color: #999999; + font-size: 10pt; + padding: 0px 25px; +} + +div.clipperzLoginForm form table tbody tr.formFieldTR td { + height: 22px; +} + +input.loginFormField { + font-size: 10pt; + height: 20px; + width: 251px; +/* width: 330px; */ +} + +div.passwordTypeChooser { + padding-top: 2px; + width: 250px; + padding-bottom: 8px; +} + +/* @group Login form */ + +input.passwordTypeCheckbox { + margin-top: 2px; + margin-right: 5px; +} + +div.oneTimePassword input { + width: 59px; + height: 20px; + font-size: 8pt; +} + +div.oneTimePassword span { + font-size: 7px; + padding: 0px 1px; + color: #666666; +} + +div.clipperzLoginForm div.loginForm { + text-align: left; +/* background: url(../images/loginFormBox.png) repeat-y -408px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAABMAAAAAvCAIAAACKdSGFAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAv4SURBVHja7N3Zj1vlGcfxY3u8e7ZMokCUNCIbVdIAQrlAkZAIoSigFoTaSOWmN73oQiWqUlX9D0oXEL0A2steRSqV2kRViygpaaAsEpCKQNIkbRayTZaZTGbz2B7bfY6f8eM3niU+E0/EnPl+VE09M6aDjtWf3t857xKpVqseACxC27Z998MPfzfHGyqVyuTkZKFQGB8fHx0dHRkZuXbt2uDg4Df6v9V40zMlriSAYF6O28s/rtyzfPny7ppsNpvJZJLJZDwej0QitxhfpVJJ42tsbGx4eHhoaGhgYOCbl54mvgC0K76WLVvW29vb1dWVy+XS6bTGVzQanft/I8plBBBi7j0yfc1dMwDtJWVvxrQBgFCiQAIIf4dkMAdgUQfO3M8zAeBWsiVowlAgAQAAvqBju5vOJQOAdgVOi02SVAIAAPgiDuZu+hMAuP05Q4EEAAAAALSEAgkAAAAAoEACAACESMlLNL4pjnBBAATghMYNYUKBBAAACA3bJlGMVbsbvxi/yMUBEIATGhImukfXPHbqokACAAB8oXuj7Y44HulpvGPkLFcJQABOaGiYNOUMBRIAAGBxt0d3bBeNRkeiKxpvOvsmFwpAAE5oSJhIpDTdomqxQ3Ys0L/ejKfocpY3sKSGPrN9CwAIGqpaIM/Ftt5deXfqp6f2edt/zsUB0KqTe+2lhImmyjwGaW0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mN4B6CN3F0fuBoAAADhKZBcMgALipwBAAAISYFkeAdg4Uoj2QIAABDCAgkAAAAAoEACAAAAAHDLBZLZZQAAAABAgQxQHVmqBGAh6OFA09MGAAAAi6xAevUDPLheAG4DAgcAAGBxF0gAAAAAwBL3fwEGAGLpZ+CuDirCAAAAAElFTkSuQmCCCg==) repeat-y -408px; + margin: 0px; +} + +div.clipperzLoginForm form table.formLayout { + margin: 7px 10px 4px; +} + +div.loginForm div.loginFormFooterBox { + padding: 0px 20px 30px 20px; +/* background: url(../images/loginFormBox.png) no-repeat -813px bottom; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAABMAAAAAvCAIAAACKdSGFAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAv4SURBVHja7N3Zj1vlGcfxY3u8e7ZMokCUNCIbVdIAQrlAkZAIoSigFoTaSOWmN73oQiWqUlX9D0oXEL0A2steRSqV2kRViygpaaAsEpCKQNIkbRayTZaZTGbz2B7bfY6f8eM3niU+E0/EnPl+VE09M6aDjtWf3t857xKpVqseACxC27Z998MPfzfHGyqVyuTkZKFQGB8fHx0dHRkZuXbt2uDg4Df6v9V40zMlriSAYF6O28s/rtyzfPny7ppsNpvJZJLJZDwej0QitxhfpVJJ42tsbGx4eHhoaGhgYOCbl54mvgC0K76WLVvW29vb1dWVy+XS6bTGVzQanft/I8plBBBi7j0yfc1dMwDtJWVvxrQBgFCiQAIIf4dkMAdgUQfO3M8zAeBWsiVowlAgAQAAvqBju5vOJQOAdgVOi02SVAIAAPgiDuZu+hMAuP05Q4EEAAAAALSEAgkAAAAAoEACAACESMlLNL4pjnBBAATghMYNYUKBBAAACA3bJlGMVbsbvxi/yMUBEIATGhImukfXPHbqokACAAB8oXuj7Y44HulpvGPkLFcJQABOaGiYNOUMBRIAAGBxt0d3bBeNRkeiKxpvOvsmFwpAAE5oSJhIpDTdomqxQ3Ys0L/ejK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m1IPAG3hTrtyjywDANz6aPL2jCkBLBEtLaN0p0C4a7IBoF2aVuxwQQAAABZrgZw+wmN4B6CN3F0fuBoAAADhKZBcMgALipwBAAAISYFkeAdg4Uoj2QIAABDCAgkAAAAAoEACAAAAAHDLBZLZZQAAAABAgQxQHVmqBGAh6OFA09MGAAAAi6xAevUDPLheAG4DAgcAAGBxF0gAAAAAwBL3fwEGAGLpZ+CuDirCAAAAAElFTkSuQmCCCg==) no-repeat -813px bottom; +} + +div.loginForm ul { + padding: 8px 15px 8px 15px; + border-top: 1px dotted #ff9400; +} + +div.loginFormButtonFooter { + padding: 0px 40px 10px; +} + +/* @end */ + +/* @group Registration form */ + +div.clipperzLoginForm div.registrationForm { + text-align: left; +/* background: url(../images/loginFormBox.png) repeat-y -408px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAABMAAAAAvCAIAAACKdSGFAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAv4SURBVHja7N3Zj1vlGcfxY3u8e7ZMokCUNCIbVdIAQrlAkZAIoSigFoTaSOWmN73oQiWqUlX9D0oXEL0A2steRSqV2kRViygpaaAsEpCKQNIkbRayTZaZTGbz2B7bfY6f8eM3niU+E0/EnPl+VE09M6aDjtWf3t857xKpVqseACxC27Z998MPfzfHGyqVyuTkZKFQGB8fHx0dHRkZuXbt2uDg4Df6v9V40zMlriSAYF6O28s/rtyzfPny7ppsNpvJZJLJZDwej0QitxhfpVJJ42tsbGx4eHhoaGhgYOCbl54mvgC0K76WLVvW29vb1dWVy+XS6bTGVzQanft/I8plBBBi7j0yfc1dMwDtJWVvxrQBgFCiQAIIf4dkMAdgUQfO3M8zAeBWsiVowlAgAQAAvqBju5vOJQOAdgVOi02SVAIAAPgiDuZu+hMAuP05Q4EEAAAAALSEAgkAAAAAoEACAACESMlLNL4pjnBBAATghMYNYUKBBAAACA3bJlGMVbsbvxi/yMUBEI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QTKMH0Ea20wPzVwEg6AhS10Z6Nz6ZnHHnVdIVCF+BNPZ//6a1kW3/08EKpFsj+dgAtL1A2uCGUQ4AzKNJzpGf5CqwRJrkQk/gCrALq1VHm1IPAG3hTrtyjywDANz6aPL2jCkBLBEtLaN0p0C4a7IBoF2aVuxwQQAAABZrgZw+wmN4B6CN3F0fuBoAAADhKZBcMgALipwBAAAISYFkeAdg4Uoj2QIAABDCAgkAAAAAoEACAAAAAHDLBZLZZQAAAABAgQxQHVmqBGAh6OFA09MGAAAAi6xAevUDPLheAG4DAgcAAGBxF0gAAAAAwBL3fwEGAGLpZ+CuDirCAAAAAElFTkSuQmCCCg==) repeat-y -408px; + margin: 0px; +} + +div.clipperzLoginForm div.registrationForm form a { + margin: 0px; +} +div.registrationForm form table.formLayout { + padding: 10px; +/* padding: 4px 10px;*/ + margin: 0px 20px; +} + + +/* +div.clipperzLoginForm form.read-only table.formLayout { + background-image: url(../images/read-only_background.png); +} + +div.panelBody form.read-only table.panelBody { + background-image: url(../images/read-only_background.png); +} + +*/ + +div.clipperzLoginForm form.read-only table.formLayout, div.panelBody form.read-only table.panelBody, div.clipperzSubPanel span.read-only, div.read-only { +/* background-image: url(../images/read-only_background.png); */ + background-image: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAT8SURBVHjaxJppc9NIEIZbshTHxkACNhRHQVGQAwJF8cv5FxRfdosjCVeyG7aA3U3sOM7tIxLdGmFLmkMz40lwpSo+ZtR69HbPdLfkxZsvD6AyW4XkFSd/cP0ZwOW7wL32vwLsfgDwMt9FOKHeBGg+B6jM5McPjwG2/8T/Bzjn1yQyUAG48QKg1uJtdD8D9P7ibTRuow08L8/Pjx/0AP593Q8gqM9CpRowCJw9vwBw6TZv4PA7gvwNENYKEPMI/gTAD/PjRycAnXUcM8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0erEGEBrlqVZMKJVACOqUHv1XaNC57gBOG9hlELsfAY53Ehv+dB3AFUdKdC0gPo0hWLCr7mNfmBImMTFi7pSBYCD0RIGzXuyGhRLrAohZdUwUIFjSGJ0NECLkVyeEiEx6sRvs/qNmjT1tTIwvXgRkA3Mt2eoU9SVZrF4vVglxihC7a24grj4AuHK/kGu56sUqISSpuMqdSiAm9xBLO4Ar1h1AVXmah3hmDTHJtUz7TrGNO5lCROzJn5NyCAYy2PeMGwWmEKTEroUSJ4XVSQLBHnP68QoJ4moyIU5P1JthD5JxSqQb0a/CK8pAXLknhjjpYC70JmnZ5Gz4ipjYeZekHTkbNI+Oz0Pg2O/9nwIMAFYA4szm5y3UAAAAAElFTkSuQmCCCg==); +} + +div.registrationForm div.loginFormFooterBox { + padding: 0px 20px 30px 20px; +/* background: url(../images/loginFormBox.png) no-repeat -813px bottom; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAABMAAAAAvCAIAAACKdSGFAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAv4SURBVHja7N3Zj1vlGcfxY3u8e7ZMokCUNCIbVdIAQrlAkZAIoSigFoTaSOWmN73oQiWqUlX9D0oXEL0A2steRSqV2kRViygpaaAsEpCKQNIkbRayTZaZTGbz2B7bfY6f8eM3niU+E0/EnPl+VE09M6aDjtWf3t857xKpVqseACxC27Z998MPfzfHGyqVyuTkZKFQGB8fHx0dHRkZuXbt2uDg4Df6v9V40zMlriSAYF6O28s/rtyzfPny7ppsNpvJZJLJZDwej0QitxhfpVJJ42tsbGx4eHhoaGhgYOCbl54mvgC0K76WLVvW29vb1dWVy+XS6bTGVzQanft/I8plBBBi7j0yfc1dMwDtJWVvxrQBgFCiQAIIf4dkMAdgUQfO3M8zAeBWsiVowlAgAQAAvqBju5vOJQOAdgVOi02SVAIAAPgiDuZu+hMAuP05Q4EEAAAAALSEAgkAAAAAoEACAACES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ZNepY0IaGNmBzZ65Ob4+USSBM1bFpMaQbC5EbtetPB9iF1S2QTKMH0Ea20wPzVwEg6AhS10Z6Nz6ZnHHnVdIVCF+BNPZ//6a1kW3/08EKpFsj+dgAtL1A2uCGUQ4AzKNJzpGf5CqwRJrkQk/gCrALq1VHm1IPAG3hTrtyjywDANz6aPL2jCkBLBEtLaN0p0C4a7IBoF2aVuxwQQAAABZrgZw+wmN4B6CN3F0fuBoAAADhKZBcMgALipwBAAAISYFkeAdg4Uoj2QIAABDCAgkAAAAAoEACAAAAAHDLBZLZZQAAAABAgQxQHVmqBGAh6OFA09MGAAAAi6xAevUDPLheAG4DAgcAAGBxF0gAAAAAwBL3fwEGAGLpZ+CuDirCAAAAAElFTkSuQmCCCg==) no-repeat -813px bottom; +} + +div.registrationForm ul { + padding: 8px 15px 8px 15px; + border-top: 1px dotted #ff9400; +} + +/* @end */ + + +/* @end */ + +/* @group Registration splash */ + +div#splashMessage table { + width: auto; + color: #333366; + font-size: 10pt; + padding: 10px; +} + +div#splashMessage span { + color: #666666; +} + +div#splashMessage table span.label { + color: #999999; + padding-right: 10px; +} + +div#splashMessage table span.value { + color: #666666; + font-weight: bold; +} + +div#splashMessage input { + margin-right: 5px; +} +/* @end */ + +/* @group Browser compatibility box */ + +div.browserCompatibilityBox { + color: #666666; + padding: 0px 0px; +/* border: 4px solid #ff9400; */ + font-weight: bold; + text-align: center; + width: 400px; +} + +div.browserCompatibilityBox p { + margin: 0px 50px; +} +div.browserCompatibilityBox a { + color: #666666; +} + +/* @end */ + +/* @group Language switch */ + +li#loginPanel { + padding: 0px 15px; +} + +div.loginPanelSwitchLanguageBox { + color: #666666; + padding: 12px 0px 10px 0px; +/* border: 4px solid #ff9400; */ + font-weight: bold; + text-align: center; + height: 75px; +/* background: url(../images/languageBox.png) no-repeat 19px -15px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAWUAAABpCAIAAABtUqUjAAANIWlDQ1BJQ0MgUHJ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W3vWy93548c6Ha7aZq2221JDS0x7F2Mev0LSSPNi06nMxgMhsPh3Hw1PdP6x98fffrJ4LNHXj7wqoorR4Ft4/tlK/a6Pe/Fr8Qvfb23Z+9Up9PpdrudTidN09Y6Xe4cf/9COhdufZHn+XA4rKqqqirf91tx9LWXsizLiqIoiqIsy6qqPM9zfwLYCtqG0I92mXSkaZqmabfbnZqa0rxot9tSX0iJMeb1Ec8pMaTTWZalJoKEhTzf7/cHg0Ge5/rbsiybvHsANenl1zoPkD6jVBbdbrfX68mUROYj2rywH8I6HwmCoKoqOQkJAqksJEeiKJL2Z7/fz/Nc6o7hcKiB0vAfAICNhoV+rmtepGmqk5Fut6v9i1arpUskY56PeE6dI5GRpqmen8xQkiTJskzzoixL8gKYmJHrpCQv4jiWpQmZhnQ6HRmqbrPTfoga8xGpW6qqiqJII0D6GtrRkMmIFhfkBTBJwTr3OimJDPenVBZy1db4r+90z8bddJugg8FAO6DSvJAJi7eh00l8AOMycu+4t/7RLlkgF1noGoVUHHoVVd2w8OrOR6qq2tiGDcMwz/M4jouikLBwOxf0O4HJ0BaGBIHeuiHpEK1zK4u6X8pbr75wI0OPJ4eXmHCnIbqe6lFTAFvJrRFGuhjuPV/ubSPehumC6UANRrL8iRsKGhP6pJQVFBfAJLmrJJoa7n1lesNIs6/7b5IXQlNDfuoDbXCOhAUlBrB1RhoZmhfe0/HhNU2K/+18k8NY/1zTQfPC3TNhAWydjT1Lt8/oJshmDzTGkfx5uyIsgMnYmAibz4in9sZgBmDEXaQArMgLAFbkBQAr8gKAFXkBwIq8AGBFXgCwIi8AWJEXAKzICwBW/wV04SbMTUL/WgAAAABJRU5ErkJgggo=) no-repeat 19px -15px; + width: 400px; + margin: 0px; +} + +option.disabledOption { + color: #999999; +} + +/* @end */ + +/* @end */ + +/* @group Record page */ +div.mainPanelMinHeightDiv { + width: 15px; + min-width: 15px; + height: 200px; +} + +table#mainPanelTABLE { + width: 100%; +} + +/* @group Direct logins */ + +div#directLoginsBlock { + width: 230px; + padding: 0px; +/* border: 4px solid #ff9400;*/ +/* background: url(../images/directLoginBox.png) repeat-y -262px bottom; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAvIAAAAtCAIAAABDDhjIAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAtrSURBVHja7J1tjFxVGcefnZk77y+727VbK9uXLRpNS0X6gpRaMFqoigpIodX4xS8axQ9GEqNBjVFp1QThAxGIgRhNmhQIRWOpDQ1xS6XEVtjSwhbqlr5tbWd3Z99mZ+7Om2fm2Xnu6ey2mTszt7uw/1+am7kzNws597n3/O5zznluU6FQIABAmXw+n8lkTNNMpVJjY2MjIyOJRGJwcPCeC1utg76XQUOBq8Fjhnx8tn3HvHnzmpubo9FoKBQKBoM+n88wDJfLdYU/sHr1tw8deqLKgE8mk8PDw0NDQwMDAwh4MBsCvqWlJRKJhMPhQCBQTcArXGhGAACYyzSV0HfRJmA2hGVFiFYZmdAaMLdQD69oBAAgMeCDCrQGAAAAANAaAAAAH1AKpGVx8jk0CHCcfHb68IPWAAAAqA0ek1LbFEWtb1MX0DLAcZLn5eN4U7NMprE7TgqtAQAA2MwlXYjaqn5F62/60ETAccbOWBFHLXo06s4NrQEAAFCV2fDSWbVVn5NNMeu3/iNoH+A48dctrXG16NFoK3MDrQEAgLkuNFaXUO5L4q5O64jeF9BKwHF6d8nHi65l4jR2/wy0BgAAYDZN8ljsKnHGuMH6+ew+SifQSsBBkn3U1yV7pz2rOA4lIKv3G2gNAADMdafhPoP7D7fbrbZjxjWJwvzJI3ImHd6GhgIO8tovqJDnjxcKHWnjQx6PR6LRVjk+j3P/kxWvZcBbGsCVb6xVfgkAcOIC5P5DN5tjdNN6Kg8/HXmMVnyHYp1oK9B4+rvp7adl72hhnbsEm40tp3FEa1hfeJvP5yucRv8VACqP5U/74ChxAr8BwOmHCs72c19iGIbX633LfeuKbFezqzT8lJ+g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rDB9wVsdPw8JOkanSn0eUGojOnIudyWqMnbKSeNW/1gsJSf682p7GtNVJQWKl6oP8VV6FctyC2DGu5gbN03lksfZTsK0pObswbP2D6N3rK2C1DCQCo0mwqEjaq+5GBp4pZNaI18BggSBTJe8fkNR0syvJ6hIrl3DXfz6vSGv3V3Ow0itaB/dYRS7+KkwecvtEWw+zoH3gvOrg/3n6L0ny5q+JOCkBjzUafWKMMhnsjvuIueauxtgZq2mwNmMtyLLGk52zcGrIrv1J9eXfb2RoZhPKmrTqwxTrCADjN4ttFa3yp0yoIpRCqmA0SNgA0/FGbuxnWFy5soyPPvRAaUI0i6+tYK76hRkwksJetkUGo4tsSsoPWEeEOnDngOJEl8tGXifN0RY5JwzAk+w2zAcAJuZFifTLkROXCH1OTNJAbqMy0ZqOnbURlGlt7rFqtETFnpym+MSQ7YB0RWoizCJzXGsue/dl4xSoMZGsAuDpyw+9Y0G1m2kXdMBuYzdRdfdKMngts4H/X3gLvbBnVo3gKaetnvMMSXAW8UStwC2nWGk4iYm4NAFetr5JOSC46vbwCrkRwObOp8ifHtUZKaEvukdP+OGFgZhHJ1of5ayhJCQBoYKeFjCmYWartA/RxKDYbtB2YWfSZwihsCgAAoFqt0WeBQWvALEHSh1PfHgwAAABacyWt0astSZUCAGZWa6aWN8W4PgAAQGuqMhvS5tmg4cCMo0cjnAYAAIANranoSJCtATOOJGlgMwAAAGxrDToPMDtBZAIAALCtNXoXgo4EQGgAAAC877UGAAAAAABaAwAAAAAwa7QGOX8AAAAAvI+1ZqrKYBkUmA1MXdoN7QYAgDnO/wUYABme+D8+TaFnAAAAAElFTkSuQmCCCg==) repeat-y -262px bottom; +} + +div#directLoginsBlock div.directLoginsBlockHeaderBox { +/* background: url(../images/directLoginBox.png) no-repeat -11px -13px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAvIAAAAtCAIAAABDDhjIAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYm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wecvtEWw+zoH3gvOrg/3n6L0ny5q+JOCkBjzUafWKMMhnsjvuIueauxtgZq2mwNmMtyLLGk52zcGrIrv1J9eXfb2RoZhPKmrTqwxTrCADjN4ttFa3yp0yoIpRCqmA0SNgA0/FGbuxnWFy5soyPPvRAaUI0i6+tYK76hRkwksJetkUGo4tsSsoPWEeEOnDngOJEl8tGXifN0RY5JwzAk+w2zAcAJuZFifTLkROXCH1OTNJAbqMy0ZqOnbURlGlt7rFqtETFnpym+MSQ7YB0RWoizCJzXGsue/dl4xSoMZGsAuDpyw+9Y0G1m2kXdMBuYzdRdfdKMngts4H/X3gLvbBnVo3gKaetnvMMSXAW8UStwC2nWGk4iYm4NAFetr5JOSC46vbwCrkRwObOp8ifHtUZKaEvukdP+OGFgZhHJ1of5ayhJCQBoYKeFjCmYWartA/RxKDYbtB2YWfSZwihsCgAAoFqt0WeBQWvALEHSh1PfHgwAAABacyWt0astSZUCAGZWa6aWN8W4PgAAQGuqMhvS5tmg4cCMo0cjnAYAAIANranoSJCtATOOJGlgMwAAAGxrDToPMDtBZAIAALCtNXoXgo4EQGgAAAC877UGAAAAAABaAwAAAAAwa7QGOX8AAAAAvI+1ZqrKYBkUmA1MXdoN7QYAgDnO/wUYABme+D8+TaFnAAAAAElFTkSuQmCCCg==) no-repeat -11px -13px; +} + +div#directLoginsBlock h3 { + text-align: center; + color: #666666; + padding-top: 12px; + padding-bottom: 5px; + margin: 0px 10px 0px 10px; + border-bottom: 1px dotted #ff9400; + font-size: 12pt; +} + +ul#directLogins { +/* padding: 7px 20px 45px 20px; */ + padding: 7px 12px 45px 12px; + min-height: 200px; +/* background: url(../images/directLoginBox.png) no-repeat -513px bottom; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAvIAAAAtCAIAAABDDhjIAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAtrSURBVHja7J1tjFxVGcefnZk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IueauxtgZq2mwNmMtyLLGk52zcGrIrv1J9eXfb2RoZhPKmrTqwxTrCADjN4ttFa3yp0yoIpRCqmA0SNgA0/FGbuxnWFy5soyPPvRAaUI0i6+tYK76hRkwksJetkUGo4tsSsoPWEeEOnDngOJEl8tGXifN0RY5JwzAk+w2zAcAJuZFifTLkROXCH1OTNJAbqMy0ZqOnbURlGlt7rFqtETFnpym+MSQ7YB0RWoizCJzXGsue/dl4xSoMZGsAuDpyw+9Y0G1m2kXdMBuYzdRdfdKMngts4H/X3gLvbBnVo3gKaetnvMMSXAW8UStwC2nWGk4iYm4NAFetr5JOSC46vbwCrkRwObOp8ifHtUZKaEvukdP+OGFgZhHJ1of5ayhJCQBoYKeFjCmYWartA/RxKDYbtB2YWfSZwihsCgAAoFqt0WeBQWvALEHSh1PfHgwAAABacyWt0astSZUCAGZWa6aWN8W4PgAAQGuqMhvS5tmg4cCMo0cjnAYAAIANranoSJCtATOOJGlgMwAAAGxrDToPMDtBZAIAALCtNXoXgo4EQGgAAAC877UGAAAAAABaAwAAAAAwa7QGOX8AAAAAvI+1ZqrKYBkUmA1MXdoN7QYAgDnO/wUYABme+D8+TaFnAAAAAElFTkSuQmCCCg==) no-repeat -513px bottom; +} + +ul#directLogins li { + border-top: 1px solid white; + border-bottom: 1px solid white; + padding: 1px 0px; + width: 206px; +} + +ul#directLogins li.hover { + border-top: 1px solid #ffc880; + border-bottom: 1px solid #ffc880; + background-color: #fff9f2; + cursor: pointer; +} + +ul#directLogins li img { + width: 16px; + height: 16px; +} + +ul#directLogins li div { +} + +/* @group Direct logins description */ + +div#directLoginsDescription { + padding: 6px 20px 50px 20px; + color: #999999; + font-size: 10pt; +/* background: url(../images/directLoginBox.png) no-repeat -513px bottom; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAvIAAAAtCAIAAABDDhjIAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZ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6L0ny5q+JOCkBjzUafWKMMhnsjvuIueauxtgZq2mwNmMtyLLGk52zcGrIrv1J9eXfb2RoZhPKmrTqwxTrCADjN4ttFa3yp0yoIpRCqmA0SNgA0/FGbuxnWFy5soyPPvRAaUI0i6+tYK76hRkwksJetkUGo4tsSsoPWEeEOnDngOJEl8tGXifN0RY5JwzAk+w2zAcAJuZFifTLkROXCH1OTNJAbqMy0ZqOnbURlGlt7rFqtETFnpym+MSQ7YB0RWoizCJzXGsue/dl4xSoMZGsAuDpyw+9Y0G1m2kXdMBuYzdRdfdKMngts4H/X3gLvbBnVo3gKaetnvMMSXAW8UStwC2nWGk4iYm4NAFetr5JOSC46vbwCrkRwObOp8ifHtUZKaEvukdP+OGFgZhHJ1of5ayhJCQBoYKeFjCmYWartA/RxKDYbtB2YWfSZwihsCgAAoFqt0WeBQWvALEHSh1PfHgwAAABacyWt0astSZUCAGZWa6aWN8W4PgAAQGuqMhvS5tmg4cCMo0cjnAYAAIANranoSJCtATOOJGlgMwAAAGxrDToPMDtBZAIAALCtNXoXgo4EQGgAAAC877UGAAAAAABaAwAAAAAwa7QGOX8AAAAAvI+1ZqrKYBkUmA1MXdoN7QYAgDnO/wUYABme+D8+TaFnAAAAAElFTkSuQmCCCg==) no-repeat -513px bottom; +} + +div#directLoginsDescription p { + padding-bottom: 8px; +} + +div#directLoginsDescription a { + color: #333366; +} + +div#directLoginsDescription ul { + padding-left: 20px; + list-style-position: outside; + list-style-type: circle; + color: #ff9400; + padding-bottom: 10px; +} + +div#directLoginsDescription ul li { + padding-bottom: 3px; +} + +div#directLoginsDescription ul li p { + display: inline; + color: #999999; +} + +/* @end */ + +/* @group Direct login [open] */ + +ul#directLogins li a.directLoginItemTitle { + color: #336; + font-size: 10pt; + line-height: 16px; +} + +ul#directLogins li table { + width: 100%; +} + +ul#directLogins li a.directLoginItemTitle:hover { + text-decoration: underline; +} + +/* @end */ + +/* @group Direct login [edit] */ + +ul#directLogins li a.directLoginItemEditButton { + visibility: visible; + color: white; + font-size: 8pt; +/* background-color: #ff9400;*/ + padding: 0px 5px; + line-height: 14px; +} + +ul#directLogins li.hover a.directLoginItemEditButton { + visibility: visible; + color: #ff9400; +/* border-top: 3px solid #fff9f2;*/ +} + +ul#directLogins li.hover a.directLoginItemEditButton:hover { + color: #35306b; +} + +/* @end */ + +/* @end */ + +/* @group Records */ + +div#recordListBlock { + width: 250px; + min-height: 200px; +} + +div#recordListFilterHeader { +/* background: url(../images/cardFiltersSprite.gif) repeat-x 0 -114px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) repeat-x 0 -114px; +} + +/* @group Record filters */ + + +div#recordFiltersTableWrapper { +/* padding: 0px; border: 0px; margin: 0px; */ + margin-left: 15px; + padding-left: 1px; +/* background: url(../images/cardFiltersSprite.gif) no-repeat left -38px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat left -38px; + height: 19px; +} + +div#recordFiltersDIV table { + padding-right: 1px; +/* background: url(../images/cardFiltersSprite.gif) no-repeat right -19px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat right -19px; +} + +div#recordFiltersDIV table tbody tr td { + cursor: pointer; + height: 19px; +} + +div#recordFiltersDIV table tbody tr td div { +/* background: url(../images/cardFiltersSprite.gif) no-repeat right -38px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat right -38px; +} + +div#recordFiltersDIV table tbody tr td div a { + display: block; + padding: 0px 10px; + font-size: 8pt; + color: white; + line-height: 19px; + height: 19px; +/* background: url(../images/cardFiltersSprite.gif) no-repeat left -19px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat left -19px; +} + +div#recordFiltersDIV table tbody tr td:hover div a { + color: #ff9400; +} +/* @group selected */ + +div#recordFiltersDIV table tbody tr td.selectedTab { + height: 19px; +/* background: url(../images/cardFiltersSprite.gif) repeat-x -57px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) repeat-x -57px; +} + +div#recordFiltersDIV table tbody tr td.selectedTab div { +/* background: url(../images/cardFiltersSprite.gif) no-repeat right -95px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat right -95px; +} + +div#recordFiltersDIV table tbody tr td.selectedTab div a { +/* background: url(../images/cardFiltersSprite.gif) no-repeat left -76px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCFAOYAAISEuaen6ZSU0KCg4IKCt8zM9bOz0qWl552d3JGRzJqb2Gpqlaio7MfH7oeHvcTF6snJ8ZeX1IKCtr+/48HB5cLC6La216Oj5IyLxLy83nd3p3JyoGdnkrm53Li42YCAtMvL9LKy0W5umnl5qo6OyHR1o3BwnY+PqcrK8nt7rrW11X5+sYaFuuDg+WZmj7294Gtrl9HR5MbG7LS01KOjxH5+somJwYaHvH9/so+OyIaGvJKSzamp7IuMxImJwJua2JeX1aKj5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAABAIUAAAd8gAUMAQcXAwgKEQIJJBg2NwAEBjUtICgQDTIPFRQTLxkdHhYqMzEhNA4sABIfKykjGiUbJiIwCxwnLgUEADo+PTk7AkA/CANBBwE8BjgtHAswIiYbJRojKSsfEgAsDqY0MyoWHh0ZLxMUFQ8yDRAoILmChIaIioyOkJI1gQA7Cg==) no-repeat left -76px; +} + +div#recordFiltersDIV table tbody tr td.selectedTab:hover div a { + color: white; +} + + + +/* @end */ + +/* @group record filter - SEARCH */ + +div#recordFiltersSearchPanel { + position: absolute; +} + +div#recordFiltersSearchInnerPanel { + padding: 10px 24px 25px 24px; +/* background: url(../images/recordFilterBackground.png) no-repeat -10px -138px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAADMCAYAAACC5k2uAAANIWlDQ1BJQ0MgUHJvZmlsZQAAeJyV13k0lG8bB/BrFsYyZhhjDyO77LKHLJFItmwp2bdhJiZRypIUIkso2iiSFC0kEtWPLCHJkq2oyJI9kmXeP6R6f+f9ve95rz+ecz3385xz389zzud7nxsAr+FKpZKRABAQSAuyNjEgOTg6kTBdgAJewAEzaLi6B1P1LS3N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TtvAXTnr0v464xuBlFrjVm1QzHdGjNqH6K4aJgPU6R8FkcbrQ1whywuCIHap2rrSgNTVhob/+f4exnAxr9i251ejZTuZwuS5pQGYlbdY+F+J/PiaJZwuGAE3ga7CIRqB8NFw02JKmqfvnUzFj8yAM7Oj4b/5u2Ho6Z2PNztvLqvbZhnG1L2GYf7B7jiuXjUWo+5jYnUDkefFofDLawSDsDGn/H7+2C9NebVPmSZVxoPtx/6p2MzX3Ley6GKm+YErY0JOh53/5gFpRvvDlP82QbhALJpanE4Tl1LpXY8Om8j72f9S8/NeplxSN2PkVw03PSprHSjXTTc+oY7rJG6h4OYAKluf5HuvnaHKk21L/ByF3stqD0TaXiP9RQNqfdDlUBLr/LGSmNRb71O6N36Mw0WRwEbf53DRcDtc34gGt7onGn09JnBebyru+fwF0j9UVT3wxP/dGxe2wJczDpnCN3WOvw3bhcN/3Ephw8az2tn7YyHHxH/ClP/qlOJ2QaQVefZFT8gLhKd90k5REPK/13eD4i79b8OuvzM+dwe4GLTbb3DD4d0ekyknILhnK8d1X/eQsf9Sy2IEg3gzJZazOxcZ+wMSu6Wa2c92+sQDcCG/98IAAAAAAAAAAAAAAAAAAAAALAS/Q8LAUdRAb/LqgAAAABJRU5ErkJgggo=) no-repeat -10px -138px; +} + +form#recordFilterSearchForm { +} + +input#recordFilterSearchValue { + width: 200px; +} + +/* @end */ + +/* @end */ +/* +div#mainContent { + padding-left: 15px; +} +*/ +div#recordListAndDetailBlock { +} + +table#recordListAndDetailBlockTABLE { + width: 100%; +/* background: url(../images/cardBlockLowerBorder.gif) repeat-x 0 bottom; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhBwAZANUAAP///6qq7tzc+OLi+eXl+vz8/v7+/9/f+dnZ9/b2/fr7/vT0/fv7/vLy/Ojo+vj5/vT1/dnZ+Ovq++3t+/n5/e3t/Orq+/n5/u7t/Orr+/Dv/PPy/PLy/e/v/OXk+tna9/38/uvq+ufn++Df+P7+/vX1/fj5/fz9/+jo+9/f+Ojn++/w/P79//v6/vb3/efo+u3u/Pf3/ejn+vDw/PDw+/X0/e/w+/f2/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAHABkAAAZoQIBwSCwaj8ikEkAyOFnOAqhALZwYCkZLkaVQHpfLw+SKJRK3M2RRKy0WkA2H06hvNDMbbdXRVCYYMBUYExYSIRkSGRYiMi8qDg4oBJSVHgOYmQMpIweengKhogIIEREIHwgIAaytAUEAOwo=) repeat-x 0 bottom; +} + +td#recordDetailSeparatorTD { + border-bottom: 1px solid #aaaaee; +} + +table#recordListAndDetailBlockTABLE tbody tr td { +} + +div#recordListBlockHeader { + background-color: #333366; +/* border-bottom: 2px solid #aaaaee; */ +} + +div#recordListBlockHeader table.recordListBlockHeaderTABLE { + width: 100%; + height: 30px; + color: white; +/* background: url(../images/cardsBlockRoundCorners.gif) no-repeat right -51px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhCQBkALMMAP///z8/b7e3yaKiufX19zQ0Zzw8bVxchaSkuz4+bltbhDk5av///wAAAAAAAAAAACH5BAEAAAwALAAAAAAJAGQAAARTEEhAhgplimCYl8jijYAwnkRwjkO3MsfrJTJT1Hiu73zv/8CgcEgsGo/IpHJZKyQOA8IEMDIEBJMXQvJaYGUBgswwqClqKtmNyW673/C4fE4/RgAAOwo=) no-repeat right -51px; +} + +div#recordListBlockHeader table.recordListBlockHeaderTABLE tbody tr td.recordBlockTitleTD { +/* background: url(../images/cardsBlockRoundCorners.gif) no-repeat left 0px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhCQBkALMMAP///z8/b7e3yaKiufX19zQ0Zzw8bVxchaSkuz4+bltbhDk5av///wAAAAAAAAAAACH5BAEAAAwALAAAAAAJAGQAAARTEEhAhgplimCYl8jijYAwnkRwjkO3MsfrJTJT1Hiu73zv/8CgcEgsGo/IpHJZKyQOA8IEMDIEBJMXQvJaYGUBgswwqClqKtmNyW673/C4fE4/RgAAOwo=) no-repeat left 0px; +} + +/* +table#recordListButtonsTABLE { + width: auto; + margin-right: 10px; + position: static; + float: right; +} +*/ +div#recordListBlockHeader table.recordListBlockHeaderTABLE h3 { + color: white; + padding-left: 10px; + padding-top: 3px; +} + +div#recordListBlock h3 { + padding: 8px 0px 2px 10px; +/* margin-right: 8px; */ + color: #666666; +} + +div#recordListBlockHeaderButtons { + padding-top: 5px; + padding-right: 0px; +} + +div.recordButton { + padding: 2px; +} + +td#recordDetailSeparatorTD { + width: 1px; +} + +ul#records { + margin-top: 6px; + list-style-type: none; + padding-bottom: 15px; +} + +ul#records li { + list-style-position: inside; + padding: 1px 5px 1px 8px; + border: 1px solid white; + color: #35306b; +} + +ul#records li.hover { + color: #ff9400; + border: 1px solid #f5f5ff; + border-top: 1px solid #aaaaee; + border-bottom: 1px solid #aaaaee; + background-color: #f5f5ff; +} + +ul#records li.selected { + background-color: #ddddff; + color: #ff9400; + border: 1px solid #ddddff; +/* border: 2px solid #35306b; */ +/* border-right: 1px dotted #333366; */ + padding: 1px 6px 1px 8px; +/* background-color: #35306b; */ +} + +ul#records li span { + color: #35306b; + text-decoration: none; + line-height: 16px; + font-size: 10pt; + cursor: pointer; +} + +ul#records li.selected span { +/* color: white; */ + color: #333366; +} + +/* @group Bottom rounded corners */ + +td#cardBoxLowerLeftTD { +/* background: url(../images/cardBlockLowerRoundedCorner.gif) no-repeat left -32px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhCQBkANUyAP////Ly/PDw/O3t/OLi+ejo+vz8//n5/urq++Xl+tzc+Ovr+/z8/t/f+Pv6/vb3/fT0/f7+//v7/vT1/efo+/79/8vL9fr6/uXl+e3t+/3+/9jY9/b2/vX1/d/f+ff2/fb2/fj5/uHh+dnZ+OLi+rOz8NnZ99vb+LKy7/r7/6ur7sDA8vLy/f7+/vn4/u/w/Pj4/vX0/P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAADIALAAAAAAJAGQAAAb3QJlwSCwaj8ikcslsOp/QqHRKfQKu2Kx2y+16v+BtRFNpjSuRisHAYKzdDMfFIZE7UpfQYa8/wFwfDyAcgSAPHB0QExCJExMxAZGSkSwClpeWLwObnAMZGQsLCAiipAgUFAUFqaoFGwkJGLCyGBIEBCS3uQQAIhYNwA0eHlcnFgrIyFgiJRYmIyNZEhsrKCpV2Nna29zd3t9h4eLj5FdoFRoRLegRcG9uBhcpdnVzLjB8ewchHIIPHxwMfYjhiJEiRiwmTXqBCdOnTpxMSQzVapUqVLRmwdqgqyMBCcOCNbAgAkAyZBZOXIFmwkKJkldUoFixQUKWIAA7Cg==) no-repeat left -32px; +} + +td#cardBoxLowerRightTD { +/* background: url(../images/cardBlockLowerRoundedCorner.gif) no-repeat right -82px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhCQBkANUyAP////Ly/PDw/O3t/OLi+ejo+vz8//n5/urq++Xl+tzc+Ovr+/z8/t/f+Pv6/vb3/fT0/f7+//v7/vT1/efo+/79/8vL9fr6/uXl+e3t+/3+/9jY9/b2/vX1/d/f+ff2/fb2/fj5/uHh+dnZ+OLi+rOz8NnZ99vb+LKy7/r7/6ur7sDA8vLy/f7+/vn4/u/w/Pj4/vX0/P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAADIALAAAAAAJAGQAAAb3QJlwSCwaj8ikcslsOp/QqHRKfQKu2Kx2y+16v+BtRFNpjSuRisHAYKzdDMfFIZE7UpfQYa8/wFwfDyAcgSAPHB0QExCJExMxAZGSkSwClpeWLwObnAMZGQsLCAiipAgUFAUFqaoFGwkJGLCyGBIEBCS3uQQAIhYNwA0eHlcnFgrIyFgiJRYmIyNZEhsrKCpV2Nna29zd3t9h4eLj5FdoFRoRLegRcG9uBhcpdnVzLjB8ewchHIIPHxwMfYjhiJEiRiwmTXqBCdOnTpxMSQzVapUqVLRmwdqgqyMBCcOCNbAgAkAyZBZOXIFmwkKJkldUoFixQUKWIAA7Cg==) no-repeat right -82px; +} + +/* @end */ + +/* @group New record panel */ + +div#newRecordPanel { + position: absolute; + margin-left: 20px; + width: 400px; + height: 160px; +} + +div#newRecordInnerPanel { + width: 400px; + height: 160px; +/* background: url(../images/newRecordPanelBackground.png) no-repeat 0 -165px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAY4AAAFQCAYAAACoMJkjAAANIWlDQ1BJQ0MgUHJvZmlsZQAAeJyV13k0lG8bB/BrFsYyZhhjDyO7iLITskQi2feS7AwzMQkpS1KILKFoQWihKJGoqH5kSUghoajIkj1Llnn/kOr9nff3vue9/njO9dzPc859P885n+99bgC8miuVSkYCgH8ALdDSSI9k7+BIwnQCBnDAA1gQdnULouqam5vCP9Z8JyAAADrkXKlU8j+/9x8LF2jv4AiAkAUAotd6vxMAiIfWe2sAIB6lUWkACG8AILp5u7oDIMIBQDbQ2lIfAHEDAHBe630lAOAOrfcNAIALdvOiASC6ARgJAe4+AQCYcQBGbXePIDcAnCwAuLsHufkD4JIBwMzfn+IOgPsIAFJu1EAaAJ4JAOTsHRxJ60t2igdQ4gNgMvk9djQdoDwXQGrv7zHRBwDcrgB5ib/HZi0BAQAI7tYgT8XtAACAwOoBMPTT6bMSAJhUgNUUOn05j05fvQaA6gWoJbsdCQz++b8QiBaA/3W//s0/C4UAQAIgxBCFyDBUODqc4QRjJCaa6SSzAXMdy2nWM9g4trO4CnZvjhRCCmcq8TxXOnc6TyZvHT9FIHtTtuBloQbSEZG8zddEW8WPSRRKtkufkCna0ikXvfW2fM+209vvKX5QPqtSoTqgnqRRpTmklab9RGdUN0Pvmf7ErizDeqMZ46t7mkzm9+aZvdrXZt5m0W65Yn3L5q1tp12Xfbcj2umuc+/+vgP9Lh8OfjyEdXvo/tnji+eQ17D3V58RPy7yU/9vAROUSerU4enAmaA52tyR78HzRxdCFkOXwn4cWwlfOb4aIR35NhpxEhmDOoWOZTjNeAYTxxTPnMByljURm8R2DpeMT2FP5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KhPtggGwO/Vjb7mhr0x2b8Zw1NGuPW7E8PRUfW5jItOGoxOjo4V6AEpQbkZ/tLEQ/dHG3GC/zRiGI0I8AHZjp3Bsx3Duoow66ksJSolG/c+PpE1zqqrssFz/Ox6NUrZy3m0+huEoE+r1cIxvA4BR9VNV5VTTdm25GcN4lMf6neL1OY23NBxl5FGed2tL+UHKvEaZUC/zIvXTWxHCAXAn4wf8csqpPkFezvTcrD0v0Zh6tBExXTgi3vwD1N8rP0gr+sUr4RgfbYgFQF59grsEoYw8tmJ0PqN+6e3U/5Nj2nDE4IM0xj5IfXK8xKJ+v0f9aqrxuREAbm+nK6vKYznudnZYejHlKapilgfs8RDUT0eVWOw00nCaCmB3xv/7asTo9MBOIan//42p/g9HsRcH6/pVUuMhGf9afX0Adqc+ahi/PaL+OP71mdjL3/J3mvS+3aW7AOSNj0B2epxZMIr9PHg7JQWwd3Y6jQUAAAAAAAAAAAAAAAAAAAAAMK3/BX4vwOY3EngcAAAAAElFTkSuQmCCCg==) no-repeat 0 -165px; +} + +div.newRecordInnerInnerPanel { + background-color: white; + padding: 0px; + margin-left: 23px; + margin-right: 25px; +} + +div#newRecordPanel h2 { + color: #666666; + font-size: 12pt; + font-weight: bold; + padding: 5px 10px; +} + +div#newRecordPanel table#newRecordPanelDataTABLE { + width: 340px; + color: #999999; + padding-bottom: 5px; +} + +div#newRecordPanel table td.newRecordPanelLabelTD { + padding-left: 10px; + padding-top: 3px; + font-size: 9pt; + width: 100px; +} + +div#newRecordPanel table td.newRecordPanelLabelTD span { + font-size: 8pt; +} + +div#newRecordPanel input { + width: 100%; +} + +/* +div#newRecordPanel textarea { + width: 100%; + height: 50px; +} +*/ + +div#newRecordPanelButtonsBox { + border-top: 1px dotted #333366; + padding-top: 5px; +} + + +div#newRecordPanelButtonsBox table#newRecordPanelButtonsBoxTABLE { + width: 100%; +} + +div#newRecordPanelButtonsBox table tbody tr td.newRecordPanelButtonTD { + padding-right: 10; +} + +/* @end */ + +/* @end */ + +/* @group Record detail */ + +div.recordDetailDataBox { + padding: 0px; + padding-top: 5px; +/* padding: 0px 0px 0px 10px; */ +} + +div#recordDetail { + border-top: 4px solid #ddddff; +} + +div#recordDetail table.recordDetailDataBoxTABLE { + width: 100%; +} + +div#recordDetail form table tbody { + color: #35306b; + font-size: 10pt; +} + +div.recordTitleBlock { + color: #666666; + padding: 8px; + font-size: 12pt; +} + +div.recordTitleBlock h2 { + color: #333366; +} + +form.processingRecordFORM div.recordTitleBlock { + color: #444444; + background-color: #ddddff; + padding: 8px; +/* margin-right: 8px; */ + font-size: 12pt; +} + +form.recordDataForm div.recordTitleBlock { + color: #444444; + background-color: #ddddff; + padding: 8px; + font-size: 12pt; + +/* margin-right: 8px; */ +} + +div.recordTitleBlock input { + width: 100%; +} + +span.noteFieldLabel { + display: block; + color: #cccccc; + font-size: 8pt; +} + +div.noteFieldContent { + color: #666666; + font-size: 8pt; + padding: 3px 0px 5px 0px; +/* border-bottom: 1px dotted #333366; */ + margin-bottom: 5px; +} + +.resizable-textarea { +/* width: 95%; */ +} +.resizable-textarea .grippie { + height: 5px; +/* background: #eee url(../images/grippie.png) no-repeat center 1px; */ + background: #eee url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAFCAMAAACD1meMAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAGUExURbu7u////3iwjPUAAAACdFJOU/8A5bcwSgAAABRJREFUeNpiYMADGHEDBhroAwgwAA9QADeT0qnSAAAAAElFTkSuQmCCCg==) no-repeat center 1px; + border: 1px solid #ddd; + border-top-width: 0; + cursor: s-resize; +} + +div.noteFieldContent textarea { +/* margin-right: 10px;*/ + font-size: 8pt; + width: 100%; + height: 50px; +/* color: #666666; */ +} + +div.noteFieldContent div.viewMode { +/* max-height: 100px; */ + overflow: auto; +} + +tr.recordFieldsTR { + background-color: #ff9400; /* #ffc880 */ +} + +tr.recordFieldsTR td { + padding: 2px 0px 1px 0px; + color: white; + font-size: 9pt; + border-bottom: 6px solid white; +/* border-left: 1px solid white; */ +} + +div.Clipperz_recordFieldLabel { + color: #999999; +} + +div.Clipperz_recordFieldLabel input { + font-size: 10pt; + width: 100%; +/* color: #666666; */ +} + +div.Clipperz_recordFieldData { + color: #666666; +} + +div.Clipperz_recordFieldData a { + color: #333366; +} + +div.Clipperz_recordFieldData input { + font-size: 10pt; + width: 100%; +/* color: #666666; */ +} + +/* +td.removeFieldButton { + padding-left: 10px; +} +*/ +/* +div.addFieldButton { + padding-left: 8px; +} +*/ + +td.fieldTypeTD { + width: 70px; + color: #999999; + white-space: nowrap; + overflow: hidden; + text-align: right; +} + +td.fieldTypeTD select { + min-width: 68px; + width: 68px; + font-size: 10pt; +} + +table.recordDetailButtonsTABLE { + width: 100%; +} + +/* @group Scrambled value */ + +div.Clipperz_recordFieldData a.scrambleLink { + display: block; + text-align: left; + font-size: 8pt; + text-decoration: none; + color: #ff9400; +} + +div.Clipperz_recordFieldData div.passwordBackground, div.passwordEntropy { +/* background: url(../images/entropyBackground.gif) repeat-x 0 0; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAQCWAOYAABb8Ev9KAP81AP8hABvxAP86AP95AP9qAP8FAP8HAP9QAP9SAP9wAPCGAP8PAP9jAP8XAP9EAP88AP8+AP9UAP9bAP8bAP8JAP8tAP9WAAj6AAv5AP8rAP8fANSUAP8zANGWAMScAP9AAA/3AP8lADvhAF7PAOyIALGmAI23AC/nAJG2ADPlAHXDAOSMAEfbACfrAL2gAKGuAP8RAM2YAIW8AP9YAMiaAIG+AELdAHrBAGbLAP8ZAP99AD7fABfzAKWsAP9mAP9IAP9GAPuBAP8jAMGeAP9rAP9xAP9CAP8TAP8vADfjAP8VABT0AP9OAPiDAP8dAP9gAFbTAKmqAP9oAPSEAP9iANyQAJW0AJ2vAIq6AP8TEh/vALWkAP91AH6/AP9MAP84AP94AE7XAP82AP8LAP8oAP97AGLOANiSAG7HAP8wAFrRAP8DAOCOAP9tAP9zAP9aAP8nAP8NAGrJAOiKAHHGAFLVAJmyAK2nACPtALmiAErZAP9eACvpACH5BAAAAAAALAAAAAABAJYAAAeJgFxuCAkXZnQOM0pNEDwWUR0DRSRzZxwYS2wfAmViBRITIkkRQ0IBYU8KCxQZNnIVflJXD0FVB0dwDEhxX2MGaD1EUFYNJ3Yub1hqHiA0NyFGMXxeKHpUQDJaeVkrKVs1OGA6LXdrdTtpJm1TeGR9Lzk+JUwsKn8we10EP04jGxoAAgocSLBgwEAAOwo=) repeat-x 0 0; +} + +div.Clipperz_recordFieldData input.scrambledField { + font-size: 1pt; + + width: 71px; + height: 16px; + color: white; + padding-top: 4px; + border: 0px solid white; +/* background: transparent url(../images/scrambledValue.png) no-repeat 0 0px; */ + background: transparent url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAEcAAAAgCAYAAABAQWX9AAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAANXSURBVHja7FgxixNBFJ6TEyFXxEBiYWFEuCKHcEJio6RRIZAycF3qjWU67xcEr0par04Q7mA7hSAWErVyC1GTIiAmoMUlcHeFQblC53uZWTbJzmZ3cazmwUBm5+ObN9978zb7Nv5wY8Z87ZKRwIjz78SZTqes2+2ywWAQiqTX6xE+jOnkjoE/5OMgkjiTyYTZts3G43GoHRzHIXwY08kdA3/Mx/5acRDR2WymZBmNRoHz5ezwcunkjoF3AsT6ysepnGzKH1AbqufzeZZOp91N2+02PYc1m033eaPRIBzwcnOkM7BYr1QqrFQqaeeOiMdmBT5u8bHnEeJAZBHWn/LxZEGcbDZLKktnZYrCvBsnEgl6ViwWad17v2U6e0XQzR0DbwkhvLVGXq09IRzZxvL/HCjdarXcCFSrVdpcZYg+iqAUoV6vu4f0uz66uGPga6Igk4Z8vOIjFViQQQ7npdNyrjosIgYHECE5D3qT6OKOiHdE9qREtsi5+m0FMjicy+Uoqrir2ERV/TudDh3OsizCwzFg/QqkTu4Y+JqoN0d8PBMi7S8X65XMwf0EOQxFDIfJZDIr7HAEWImBM3DMD6ubOyL+VNQVFN1HQpgjb61R1hxj5vPBiGPE0WibL/tGBJM5Rpz/IM7P8ykbfuiyyThcz+Xb5x7hw5hO7hj46P2c2fmE9d/Z7OwkXM/lx9AhfBjTyR0Df1zeCdHPQUQvfqt7Lmcno8D5cnZ4uXRyx8BH7+dAbah+fTvPtpJpd9OPr9vs+3DOV37cdJ+/ed4gHPAXv+abI53BgfWd+xW2XShp546Id3imFPgb2refw9ccvrbaz7l6LctTfkqE3hSFuRvzCFy+Mm8B3LxdpIN577dMZ68Iurmj4vnhLSGEW2vk1eJri/2cF18Wv62g9Hu75abi7sMqba4yRB9FUIpwr1J3D+l3fXRxx8DXuCiHQpRw/ZzRpx45L52Wc9VhETE4gAjJubLnopE7Ip76N1yUFLIF12ltPwepDuUzN3IUVdxVbNJ/aysi1aHD3S1b7A7HwzFg/QqkTu4YeGSN28+BSKH6Obifuw/mPRcUMRwmkVzti8CRBMdKDJyBY1tJdT9HF3dEPPVzuCDr+znLNceY+Xww4hhxNNpfAQYAoVB5BoFW//8AAAAASUVORK5CYIIK) no-repeat 0 0px; +} + +div.Clipperz_recordFieldData input.scrambledField:focus { + color: #b5d5ff; + border: 0px solid white; +/* background: transparent url(../images/scrambledValue.png) no-repeat 0 -16px; */ + background: transparent url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAEcAAAAgCAYAAABAQWX9AAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAANXSURBVHja7FgxixNBFJ6TEyFXxEBiYWFEuCKHcEJio6RRIZAycF3qjWU67xcEr0par04Q7mA7hSAWErVyC1GTIiAmoMUlcHeFQblC53uZWTbJzmZ3cazmwUBm5+ObN9978zb7Nv5wY8Z87ZKRwIjz78SZTqes2+2ywWAQiqTX6xE+jOnkjoE/5OMgkjiTyYTZts3G43GoHRzHIXwY08kdA3/Mx/5acRDR2WymZBmNRoHz5ezwcunkjoF3AsT6ysepnGzKH1AbqufzeZZOp91N2+02PYc1m033eaPRIBzwcnOkM7BYr1QqrFQqaeeOiMdmBT5u8bHnEeJAZBHWn/LxZEGcbDZLKktnZYrCvBsnEgl6ViwWad17v2U6e0XQzR0DbwkhvLVGXq09IRzZxvL/HCjdarXcCFSrVdpcZYg+iqAUoV6vu4f0uz66uGPga6Igk4Z8vOIjFViQQQ7npdNyrjosIgYHECE5D3qT6OKOiHdE9qREtsi5+m0FMjicy+Uoqrir2ERV/TudDh3OsizCwzFg/QqkTu4Y+JqoN0d8PBMi7S8X65XMwf0EOQxFDIfJZDIr7HAEWImBM3DMD6ubOyL+VNQVFN1HQpgjb61R1hxj5vPBiGPE0WibL/tGBJM5Rpz/IM7P8ykbfuiyyThcz+Xb5x7hw5hO7hj46P2c2fmE9d/Z7OwkXM/lx9AhfBjTyR0Df1zeCdHPQUQvfqt7Lmcno8D5cnZ4uXRyx8BH7+dAbah+fTvPtpJpd9OPr9vs+3DOV37cdJ+/ed4gHPAXv+abI53BgfWd+xW2XShp546Id3imFPgb2refw9ccvrbaz7l6LctTfkqE3hSFuRvzCFy+Mm8B3LxdpIN577dMZ68Iurmj4vnhLSGEW2vk1eJri/2cF18Wv62g9Hu75abi7sMqba4yRB9FUIpwr1J3D+l3fXRxx8DXuCiHQpRw/ZzRpx45L52Wc9VhETE4gAjJubLnopE7Ip76N1yUFLIF12ltPwepDuUzN3IUVdxVbNJ/aysi1aHD3S1b7A7HwzFg/QqkTu4YeGSN28+BSKH6Obifuw/mPRcUMRwmkVzti8CRBMdKDJyBY1tJdT9HF3dEPPVzuCDr+znLNceY+Xww4hhxNNpfAQYAoVB5BoFW//8AAAAASUVORK5CYIIK) no-repeat 0 -16px; +} + +div.Clipperz_recordFieldData span.scrambledFieldLabel { + display: block; + color: #999999; + font-size: 11px; + padding-left: 10px; +} + +/* +div.passwordTooltip { + position: absolute; + padding: 30px 30px 30px 40px; + font-size: 10pt; + font-weight: bold; + color: black; + background: url(../images/tooltipBackground.png) no-repeat 0 -30px; + width: 335px; + height: 148px; + z-index: 10000; +} +*/ +/* @end */ + +/* @group Editing mask */ + +div#recordDetailEditModeHeaderMask { + position: absolute; + top: 0px; + left: 0px; + width: 100%; + height: 119px; + z-index: 20000; + overflow: hidden; +/* + border: 10px solid red; +*/ +} + +div#recordDetailEditModeVerticalMask { + width: 511px; + position: absolute; + top: 119px; + left: 0px; + z-index: 20000; + overflow: hidden; +/* + height: 100%; + border: 10px solid red; +*/ +} + +/* @end */ + +/* @group Direct logins (record detail) */ + +div.directLoginsRecordBox { + margin: 10px 0px 10px 0px; + border-top: 4px solid #ff9400; /* #ffc880 */ + border-bottom: 4px solid #ff9400; /* #ffc880 */ +} + +div.directLoginsRecordBox textarea { + color: #666666; +} + +div.recordDetailNoDirectLoginDescriptionBox { + padding: 5px 5px 0px 5px; +} +div.directLoginsRecordBox p { + font-size: 10pt; + color: #999999; + padding-bottom: 5px; +} + +div.directLoginDetailTitle a { + color: #333366; + font-size: 10pt; + font-weight: normal; +} + +div.directLoginDetailTitle input { + width: 100%; +} + +div.recordDetailDescriptionBox { + padding: 10px 10px; + color: #666666; +} + +div.recordDetailDescriptionBox h5 { + padding: 10px 10px; + padding: 5px 0px 10px 0px; +} + +div.recordDetailDescriptionBox p { + color: #999999; + padding-bottom: 10px; +} + +div.recordDetailDescriptionBox a { + color: #333366; +} + +div.directLoginsRecordBox h3 { + color: #666666; + padding: 5px 0px 0px 5px; + margin: 0px 0px 5px 0px; + font-size: 12pt; +} + +div.directLoginsRecordBox span { + color: #999999; +} + +table.directLoginBindings { + width: auto; + padding-top: 10px; + padding-bottom: 5px; +} + +table.directLoginBindings td.directLoginBindingLabelTD { + padding-right: 20px; +} + +table.directLoginBindings td.directLoginBindingLabelTD span { + font-weight: bold; + color: #bbbbbb; +} + +table.directLoginBindings td.directLoginBindingValueTD span{ + color: #999999; +} + +table.directLoginBindings td.directLoginDataLabelTD { + padding-right: 20px; +} + +table.directLoginBindings td.directLoginDataLabelTD span { + color: #bbbbbb; +} + +table.directLoginBindings td.directLoginDataValueTD span{ + color: #999999; +} + +div.directLoginsRecordBox ul { +} + +div.directLoginsRecordBox ul li { + padding: 5px 0px 5px 0px; + border-top: 1px dotted #ff9400; +} + +div.directLoginsRecordBox ul li span { + font-size: 10pt; + padding-left: 5px; +} + +div.directLoginsRecordBox ul li a.directLoginFavicon { + width: 16px; + height: 16px; +} + +div.directLoginsRecordBox div.addDirectLoginBox { + border-top: 1px dotted #ff9400; + padding: 5px 0px 10px 0px; +} + +div.directLoginsRecordBox div.addDirectLoginBox div.addDirectLoginBoxContent { + padding-left: 35px; +} + +/* +div.directLoginsRecordBox div.addDirectLoginBox textarea { + width: 80%; + height: 50px; + margin-left: 30px; + margin-bottom: 10px; +} +*/ + +div.directLoginsRecordBox div.addDirectLoginBox div { +/* margin-left: 30px; */ +} + +/* @group toogle button */ + +div.directLoginCollapseLink { + display: inline-block; + width: 15px; + height: 15px; + cursor: pointer; +/* background: url(../images/directLogin/toggle.png) no-repeat; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAIAAAC0Ujn1AAANIWlDQ1BJQ0MgUHJvZmlsZQAAeJyV13k0lG8bB/BrFsYyZhhjDyO7iLITskQi2feS7AwzMQkpS1KILKFoQWihKJGoqH5kSUghoajIkj1Llnn/kOr9nff3vue9/njO9dzPc859P885n+99bgC8miuVSkYCgH8ALdDSSI9k7+BIwnQCBnDAA1gQdnULouqam5vCP9Z8JyAAADrkXKlU8j+/9x8LF2jv4AiAkAUAotd6vxMAiIfWe2sAIB6lUWkACG8AILp5u7oDIMIBQDbQ2lIfAHEDAHBe630lAOAOrfcNAIALdvOiASC6ARgJAe4+AQCYcQBGbXePIDcAnCwAuLsHufkD4JIBwMzfn+IOgPsIAFJu1EAaAJ4JAOTsHRxJ60t2igdQ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xmuzmaYzonH7QwMDD9+/Dpy6IqPe83r1x+RxVnwa2NgYGAQMyGohI2NRUxcgJ2dlTij2QUZmNkZnOcxKHjiMZSdnZWFhTmvMMAvwJKJCSUMcBjNysOgk8ZgVs/Agi802DlYPb1Ms/P8+fi4sEj/xwQHcv6/uYJFHBV0day8efMxHgXYUgiVwPDJ6CPaaNR0/foiwwoDLKrCTjGIm8J5Hz9+dXeqxExaZZVhwaG2cC6qq0X1GcRNGZjYECJMLAyCWgxixsiq+Pm545NceXlRsgkHB5utvS6yCEaAOM9jYEIqCpjYGVzmMzCiK0tMdmdjQ/iYh4czNcNLTEwAr9HCOgxayQysPAwMDAws3AyqoQwSZuhqGBg4ONiqaiO5uNghXF4+rogoBzQ12KLRshUaJkzMDDa9WBQwMDAwMNjY6ejoKrKwMHNwsNU1RrOwMBNhNBsPg9NsBgYGBtuJDBxCuIxmYGCorov88+evjq6CkbEqpuxoGTIsjAYAPTy7g/tBa3gAAAAASUVORK5CYIIK) no-repeat; + overflow: hidden; +} + +div.directLoginCollapseLink.collapser-collapsed { + background-position: 0px 0px; +} + +/*div.directLoginCollapseLink.collapser-collapsed.hover {*/ +div.directLoginCollapseLink.hover { + background-position: -13px 0px; +} + +div.directLoginCollapseLink.collapser-expanded { + background-position: 0px -13px; +} + +div.directLoginCollapseLink.collapser-expanded.hover { + background-position: -13px -13px; +} + +/* @end */ + +/* @end */ + +/* @end */ + +/* @group Record creation wizard */ + +div.recordCreationWizard { + padding: 10px; +} + +div.recordCreationWizardTitleBox { + padding-bottom: 5px; + border-bottom: 1px solid #ff9400; + margin-bottom: 10px; +} + +div.recordCreationWizardTitleBox h5 { + padding: 5px; + color: #666666; + font-size: 13pt; +} + +div.recordCreationWizardTitleBox p { + padding: 5px; + font-size: 10pt; + color: #999999; +} + +/* +div.recordCreationWizard ul { + padding: 5px; + list-style-type: none; + list-style-position: outside; +} + +div.recordCreationWizard ul li h4 { + font-size: 11pt; + font-weight: bold; + color: #ff9400; + text-decoration: none; + padding-bottom: 2px; + cursor: pointer; +} + +div.recordCreationWizard ul li table tr td { + font-size: 9pt; + color: #999999; + padding-left: 5px; + padding-bottom: 10px; +} +*/ + +div.newRecordWizardHeader { + margin-top: 10px; + border-top: 3px double #ff9400; + padding-top: 5px; +} + +div.newRecordWizardFooter { + border-top: 1px solid #ff9400; + padding-top: 5px; + padding-bottom: 5px; + border-bottom: 3px double #ff9400; +} + +/* +div.recordCreationWizard ul li table input { + margin-top: 3px; +} +*/ + +/* @end */ + +/* @end */ + +/* @group Account page */ + +div#changePassphraseBlock form table.panelBody tbody tr td { + vertical-align: top; + height: 25px +} + +div#changePassphraseBlock form table.panelBody tbody tr td span.formLabel { + line-height: 20px; +} + +div.panelBody form table.panelBody { + padding: 10px; + color: #999999; + font-size: 10pt; + line-height: 9pt; +} + +div.panelBody form table.panelBody span.formLabel { + padding-right: 5px; +} + +div.panelBody form table.panelBody tbody tr td input[type=text] { + width: 250px; +} + +div.panelBody form table.panelBody tbody tr td input[type=password] { + width: 250px; +} + +div.panelBody form table.panelBody tbody tr td input { + margin-right: 10px; +} + +div#deleteAccountBlock { + height: 200px; + min-height: 200px; +} + + +/* @end */ + +/* @group Tools page */ + +/* @group Bookmarklet */ + +a.bookmarkletLink { + display: block; + margin: 0px 0px 0px 35px; + padding: 15px; + color: #333366; + font-weight: bold; + border: 1px dotted #6666aa; + width: 200px; + text-align: center; +} + +div.bookmarkletConfiguration { + padding-bottom: 10px; +} + +div.bookmarkletConfiguration p { + color: #666666; + display: block; + padding-top: 5px; + font-weight: bold; +} + +div.bookmarkletConfiguration textarea { + color: #666666; + font-size: 8pt; + width: 300px; + height: 100px; +} + + + +/* @end */ + +/* @group Compact link */ + +div#compactLinkBox a { + display: block; + margin: 10px 0px 10px 0px; + padding: 15px; + color: #333366; + font-weight: bold; + border: 1px dotted #6666aa; + width: 200px; + text-align: center; + font-size: 12pt; +} + + + +/* @end */ + +/* @end */ + +/* @group Exit */ +/* +div#exitBlock { + padding: 10px 30px; + width: 60%; + color: #999999; +} + +div#exitBlock h2 { + padding-bottom: 5px; +} + +div#exitBlock h3 { + padding-top: 20px; + padding-bottom: 5px; +} + +div#exitBlock ul li ul { + padding-left: 20px; + list-style-type: disc; +} + +div#exitBlock ul li ul li { + color: #ff9400; + padding-bottom: 5px; +} + +div#exitBlock ul li ul li span { + color: #999999; +} +*/ +/* @end */ + +/* @end */ + +/* @group Yui-Ext customization */ + +div.ydlg-dlg-body { + background-color: white; +} + +/* @group Splash dialog */ +div#alert div.ydlg-dlg-body { + background-color: white; +} + +div#splashMessage { +/* border: 4px solid #ff9400;*/ +/* border-bottom: 1px solid #ff9400; */ + padding: 10px; + color: #666666; + background-color: white; +} + +div#splashMessage p { + margin-bottom: 0px; + font-weight: normal; +} + +div#splashMessage p a { + color: #333366; +} + +div#splashMessage ul { + list-style-type: disc; + list-style-position: outside; + padding-bottom: 10px; +} + +div#splashMessage ul li { + margin-left: 20px; + padding-bottom: 5px; + color: #ff9400; +} + +div#splashMessage ul li p { + display: inline; + font-size: 10pt; + color: #999999; +} + +/* @end */ + +/* @end */ + +/* @group subMenu */ + +ul.subMenu { + width: 200px; + min-width: 200px; + max-width: 200px; + + color: #35306b; + padding-top: 10px; +} + +ul.subMenu li { + padding: 5px 10px 5px 10px; + cursor: pointer; + border: 1px solid white; + font-size: 10pt; +} + +ul.subMenu li.hover { + border: 1px dotted #ff9400; +} + +ul.subMenu li.selectedTab { + background-color: #ff9400; + border: 1px solid #ff9400; + color: white; +} + +/* @end */ + +/* @group tabPanels */ + +li.hiddenPanel { + display: none; +} + +div.clipperzSubPanel { + color: #35306b; + padding-left: 10px; + border-left: 4px solid #ff9400; + min-height: 200px; +} + +div.clipperzSubPanel span.read-only { +/* background-image: url(../images/read-only_background.png); */ + display: block; + color: #666666; + padding: 10px; + font-weight: bold; +} + +div.clipperzSubPanel h5 { + border-bottom: 1px dotted #ff9400; + padding: 10px; + color: #666666; +} + +div.clipperzLoginForm form h5.errorMessage { + margin: 0px 20px; + padding: 10px 10px; + color: #ff9400; + border-bottom: 1px dotted #ff9400; + font-size: 12pt; +} + +div.panelBody form h5.errorMessage { + color: #ff9400; +} + +div.clipperzSubPanel div.clipperzSubPanelButtonBox { + border-top: 1px dotted #ff9400; + padding: 10px; +} + +a#printingLink, a#offlineCopyLink, a#exportLink { + color: #333366; + font-weight: bold; + padding: 10px 10px 10px 10px; +} +/* +div.clipperzSubPanel a { + color: #333366; + font-weight: bold; + padding: 100px; +} +*/ + +tr.openPreferenceBlock div.preferenceBlockTitle { + padding: 10px 0px 0px; +} + +tr.openPreferenceBlock div.panelDescription p { + padding-bottom: 0px; +} + + +div.preferenceBlockTitle { + padding-bottom: 8px; + font-weight: bold; + color: #999999; +} + +div.panelDescription { + max-width: 450px; + padding: 10px; + font-size: 10pt; + color: #999999; +} + +div.panelDescription h3 { + font-size: 12pt; + color: #666666; + padding-top: 20px; + padding-bottom: 4px; +} + +div.panelDescription h5 { + padding-left: 0px; + border-bottom: 0px; +} + +div.panelDescription h5 a { + color: #333366; + text-decoration: none; +} + +div.panelDescription h5 a:hover { + text-decoration: underline; +} + +div.panelDescription ol { + padding-left: 25px; + list-style-position: outside; + list-style-type: decimal; + color: #ff9400; +} + +div.panelDescription ol li { + padding-bottom: 4px; +} + +div.panelDescription ol li p { + display: inline; + color: #999999; +} + + +div.panelDescription p { + padding-bottom: 10px; +} + +div.panelDescription p a { + color: #333366; + text-decoration: none; +} + +div.panelDescription p a:hover { + text-decoration: underline; +} + +/* @group SubSubTabs */ +ul.subSubMenu { + padding-left: 10px; + padding-bottom: 3px; +} + +ul.subSubMenu li { + font-size: 10pt; + color: #666666; + display: inline; + padding: 3px 10px; + cursor: pointer; +} + +ul.subSubMenu li.selectedTab { + color: white; + background-color: #333366; + cursor: default; +} + + + +/* @end */ + +/* @end */ + +/* @group Footer */ + +div#footer { + margin-top: 20px; + border-top: 1px solid #999999; + padding: 5px; + color: #666666; + text-align: center; + font-size: 8pt; +} + +div#footer a { + color: #333366; +} + +div#rss { + display: inline; + float: right; +} + +div#rss a { + vertical-align: middle; +} + +/* @end */ + +/* @group Main */ + +div#main h3.loading { + padding: 20px; + color: #666666; +} + +div#javaScriptAlert { + margin: 20px; + border: 4px solid #ff9403; + padding: 15px; +/* width: 70%; */ + max-width: 400px; + color: #999999; + font-size: 12pt; +} + +div#javaScriptAlert h1 { + color: #ff9403; + font-size: 28pt; + padding-bottom: 10px; +} + +div#javaScriptAlert h3 { + color: #333366; + padding-top: 10px; + padding-bottom: 10px; + font-size: 16pt; +} + +div#javaScriptAlert h5 { + color: #666666; + font-size: 12pt; +} + +input:focus { + background-color: #ffeac0; +} + +textarea:focus { + background-color: #ffeac0; +} + +/* @end */ + +/* @group Lock */ + +div#lockMessage { + color: #666666; + font-size: 10pt; +} + +div#lockMessage p { + padding-bottom: 15px; +} + +div#lockMessage form input { + width: 100%; +} +/* @end */ + +/* @group Password entropy display */ + +div.passwordEntropy { + margin-top: 0px; + margin-bottom: 4px; + height: 3px; + font-size: 1pt; +/* background: url(../images/entropyBackground.gif) repeat-x 0 0; */ + line-height: 3px; +} + +/* @end */ + + +div#miscLinks ul li a.highlightedHeader { +/* + color: white; + font-size: 12pt; + font-weight: bold; +*/ +} + +/* @group Donate */ + +a#donateHeaderLink.highlightedHeader { + font-weight: bold; +} + +img#donateHeaderIcon { + padding-top: 5px; + margin-bottom: -5px; +} + +div#miscLinks ul { + display: inline; +} + +/* @group Donate Splash */ + +div#donateMessage { + margin-left: 5px; +} + +div#donateMessage div.donateSplashPanelIcon { + float: left; + text-align: center; + width: 100px; + height: 70px; +} + +div#donateMessage div.donateSplashPanelDescription { + font-size: 11pt; + + color: #666666; + line-height: 23px; +} + +div#donateMessage div.donateSplashPanelDescription ul { + color: #aaaaaa; + padding-left: 5; + margin-bottom: 5px; + list-style-type: disc; + list-style-position: inside; +} + +div#donateMessage div.donateSplashPanelDescription ul li p { + display: inline; + color: #666666; +} + +div#donateMessage div.donateSplashPanelDescription a { + text-decoration: none; + color: #333366; +} + +div#donateMessage div a:hover { + text-decoration: underline; +} + +div#donateSplash div.ydlg-dlg-body div.ydlg-ft { + padding-right: 130px; +} + +/* @end */ + + +/* @end */ + +/* @group Password Generator */ + +div.Clipperz_PasswordGenerator_button { +/* background: url(../images/passwordAssistant.png) 0 22px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAuCAMAAADuvZJ5AAACZFBMVEX///8APHTHyc4zM2bAwsn+/v/6+vrW2N/z9fjw8vX5/P329/ra3OH92InllwD4sjDd3+T+/v7/8M/3+Pnd3uL80nklV4P3+vwWTX7r7fLj5+v19vng4ujo6u9cXYW7vcuVlq56laiPkKtcXISpqr+EhaP09fnNz9fy9Pd9mar8ymnP0dmNjqmBgqHZ2+FniKDf4en6wVD8znFVfaJFRnR7lan5ukH+3ZX6xFnO0Nnn6e/09PCAgaH7x2H29vNtbpJXWIHw8/Z1dpfz9PjU1uCNnqHf4eiwscX29vTl5+319fF/f5/a3OLy8u5qi6Jmh6D2+fuHiKVsjKT09fji5Ov9/fzX2uLx8ew4OGr3+vv4tTXd3+WtrsP09O9gYIjy8u380nq/wdBmZoxWVoD7ymrz8+5VVoBYWYI7O2y+wM3u3K16fJw5OWo9PW6Ula+oqb/Z2+Dq7PFVVYC8vs4+Pm79249sbpGvsMTw8OtKcZP8znLttUf4szDr6OL6ukH6wFD+35rq6OH29vLs6+bv6NK/x8rs6+T5vUnt6ub5vUjs6+Xg3dTr6OH91YL+/v394Jv7yGCjrrRIbpDo5d+xt7bz8e7Az93x8Or47dPm493V3+i/ztvp5uDq5+Dm49y2vb3l4tvv7ujb1836+vn91YH4+PeEhnH4tDXk4tnk4tr5tzv7z3L6xFjt7OX4+Pb7+/rx8Ov5uDvvtUnw7urw7+n80Xro5d7n5N3u7eb6wFH6vkn5tzr4tzv6vUn19PL29PL19fK/ztzu7ef6w1jw8Orr6uPr6+X5ukLi39aDhG/5tDX6x2HHdGeUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAeRJREFUOMtjYGPADdgYFMUYMYGEPkhO0bVFCBPMcDUFyollifJiAtEsMaAcY4MoKyYQ7WcEyZmLckGAeCSXuHiAoziILWoOlisV5YYAaTVp52BubjVpIFu0FCzHK8oBAxocHJ5WYJYoL1iuV5QTDly8ixwC3YAM0SVguYQEScnC4vzyGBV3lWRmIJAzkJQU3QqWMzKSlVXNYYYBE5uSvBDZ1VVgOa0UKak0uBSzvVR2WZhUihZYznaCjEyik5Kuqk5cBFAuNylDKVrmtC1Y7rCFABT4ZKaD7bMUEFhjAZarN+SBAj0edQVlZQVtngKenYZgufZd7EhAXh5M7e0Ey9UdZ8EEZmZguY2rmDDBnt1AOQbGU1EimCBqOUhOYhM/FlBTLQGU81/Ghw2c9AOlGE2s6SWIAT8gPw0aT8OiZZYxOA0eFMQC+maD02BoKJY0uH4/OMzYFmNJg/s2g+WWrsOSBqd2gOU8PLCkwQ21YDk7OyxpcHoPWK7pAJY0uGUuWM7LC0saXDgHLGdtjSUNHpoMlouNxZIGd2wDy6WmYkmDa7eD5Xx9saTBrplgufh4LGmwbR5YLjwcSxo8ugAsV3EESxpsXAFOg83HsMit7AanwdYTWOQWzQenwcqJwphgyiTy0yAAb2mGoAo92xQAAAAASUVORK5CYIIK) 0 22px; + width: 27px; + height: 22px; +} + +div.Clipperz_PasswordGenerator_button.hover { +/* background: url(../images/passwordAssistant.png) 0 -1px; */ + background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAuCAMAAADuvZJ5AAACZFBMVEX///8APHTHyc4zM2bAwsn+/v/6+vrW2N/z9fjw8vX5/P329/ra3OH92InllwD4sjDd3+T+/v7/8M/3+Pnd3uL80nklV4P3+vwWTX7r7fLj5+v19vng4ujo6u9cXYW7vcuVlq56laiPkKtcXISpqr+EhaP09fnNz9fy9Pd9mar8ymnP0dmNjqmBgqHZ2+FniKDf4en6wVD8znFVfaJFRnR7lan5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AT8gPw0aT8OiZZYxOA0eFMQC+maD02BoKJY0uH4/OMzYFmNJg/s2g+WWrsOSBqd2gOU8PLCkwQ21YDk7OyxpcHoPWK7pAJY0uGUuWM7LC0saXDgHLGdtjSUNHpoMlouNxZIGd2wDy6WmYkmDa7eD5Xx9saTBrplgufh4LGmwbR5YLjwcSxo8ugAsV3EESxpsXAFOg83HsMit7AanwdYTWOQWzQenwcqJwphgyiTy0yAAb2mGoAo92xQAAAAASUVORK5CYIIK) 0 -1px; +} + +table tbody tr td span.passwordGeneratorLength { + padding: 0px; + margin: 0px; +} + +table tbody tr td span.passwordGeneratorLength span { + padding: 0px; + margin: 0px; + color: #bbbbbb; + font-size: 9pt; +} + +span.passwordGeneratorLength span.passwordGeneratorLengthValue { + padding-left: 3px; + font-weight: bold; +} + +div#passwordGenerator div.ydlg-bd { + overflow: hidden; +} + +form.passwordGenerator input.clipperz_passwordGenerator_password { + width: 95%; +} + +form.passwordGenerator table { + width: 95%; +} + +form.passwordGenerator table > tbody > tr > td { + white-space: nowrap; +} + +form.passwordGenerator td span { + padding-left: 3px; + padding-right: 10px; + font-size: 9pt; + color: #666666; +} + +/* @end */ + +/* @group IE Read-only header */ + +div#logoFrame a { + text-decoration: none; +} + +div#logoFrame a span { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: bold; + font-size: 24pt; + padding-top: 10px; + padding-left: 10px; +} +span.clipperzLogoSpan { + color: white; +} + +div#logoFrame a span span.clipperzLogoZSpan { + padding-left: 0px; + color: #ff9400; +} + + +/* @end */ + +span.activeText { + cursor: pointer; +} + +/* @group LoginInfo */ + +/* @group login panel */ + +div#loginInfoWrapper { + margin-left: 10px; +} + +div#loginInfo { + padding: 0px; + margin: 0px; + border: 0px; + width: 389px; + background: url(../images/loginInfoBackground.png) repeat-y -405px 0; +} + +div#loginInfo div.header { + background: url(../images/loginInfoBackground.png) no-repeat 0 0; + min-height: 20px; + height: 20px; +} + +div#loginInfo div.footer { + background: url(../images/loginInfoBackground.png) 389px -5px; + min-height: 20px; + height: 20px; +} + +div#loginInfo div.content { + padding-left: 20px; + padding-right: 25px; +} + +div#loginInfo div.content div { +} + +div#loginInfo div.content h4 { + font-weight: normal; + color: #666666; + font-size: 18pt; + padding-bottom: 10px; + padding-left: 10px; +} + + +/* @group Now + */ + +div#loginInfo div.loginInfo_now { + padding-left: 10px; + padding-right: 0px; +} + +div#loginInfo div.loginInfo_now div.text { + width: 200px; + color: #666666; + line-height: 20px; + float: left; + padding-bottom: 15px; +} + +div#loginInfo div.loginInfo_now div.icons { + text-align: right; + float: right; + width: 110px; +} + +div#loginInfo div.loginInfo_now div.icons img { + margin-left: 4px; +} + +div#loginInfo div.loginInfo_latest div.icons { + text-align: right; + float: right; + width: 110px; +} + +div#loginInfo div.loginInfo_latest div.icons img { + margin-left: 4px; +} + + + +/* @end */ + +/* @group Latest */ +div#loginInfo div.content div.loginInfo_latest { + background: url(../images/loginInfoInnerBackground.png) repeat-y -349px 0px; + width: 349px; + min-width: 349px; + clear: both; +} + +div#loginInfo div.loginInfo_latest div.inner_header { + background: url(../images/loginInfoInnerBackground.png) 0px 0px; + min-height: 6px; + height: 6px; + max-height: 6px; + font-size: 1px; +} + +div#loginInfo div.loginInfo_latest div.content { + padding-left: 12px; + padding-right: 5px; +} + +div#loginInfo div.loginInfo_latest div.text { + float: left; + width: 200px; + line-height: 20px; + color: #666666; + padding-bottom: 5px; +} + +div#loginInfo div.loginInfo_latest div.inner_footer { + + background: url(../images/loginInfoInnerBackground.png) 349px -9px; + min-height: 6px; + height: 6px; + max-height: 6px; + font-size: 1px; + clear: both; +} + +a#fullLoginHistoryLink { + font-size: 9pt; + color: #666666; + text-align: center; + padding: 5px 10px; + clear: both; + display: block; + text-decoration: none; + border-top: 1px dotted white; +} + +/* @end */ + +/* @group Download offline-copy warning */ + +table#shouldDownloadOfflineCopyWarningBox { + clear: both; + margin-top: 10px; +} + +div#loginInfo table tbody tr td.offlineCopyDownloadWarningIconTD img { +} + +a#offlineCopyDownloadWarningLink { + font-weight: bold; + color: #666666; + text-decoration: none; +} + +div#loginInfo div.content div.offlineCopyDownloadWarning h4 { + padding: 5px 10px 2px; + font-size: 11pt; +} + +div#loginInfo div.content div.offlineCopyDownloadWarning p { + color: #999999; + padding: 0px 10px 10px; +} + +/* @end */ + + + +/* @end */ + +/* @group history */ + + +table#loginHistoryTable { + padding-left: 2px; + padding-bottom: 15px; + padding-right: 50px; + font-size: 9pt; + color: #666666; +} + + +table#loginHistoryTable tr.zebra_even { + background-color: #f2f2f2; +} + +table#loginHistoryTable td.loginHistoryValues { + padding: 5px 10px; +} + +table#loginHistoryTable td.loginHistoryValues div.currentSession { + color: green; + font-size: 11pt; +} + +table#loginHistoryTable td.loginHistoryValues div.elapsedTime { + font-size: 11pt; +} + +table#loginHistoryTable td.loginHistoryValues div.fullDate { + font-size: 9pt; + color: #999999; +} + +table#loginHistoryTable td.loginHistoryValues div.loginHistoryIP { + padding-top: 3px; +} + +table#loginHistoryTable td.loginHistoryValues div.loginHistoryIP span.loginHistoryIPLabel { + padding-right: 5px; +} + +table#loginHistoryTable img { + display: block; + margin: 5px; +} + + +td.loginHistoryCountry, td.loginHistoryBrowser, td.loginHistoryOperatingSystem { + padding-left: 10px; + padding-right: 10px; + padding-bottom: 5px; +} + + +/* @end */ + +/* @end */ + +/* @group OTP */ + +div#oneTimePasswordList { + width: 700px; +} + +div#oneTimePasswords_header { + background-color: #ddddff; + padding: 5px; +} + +div#oneTimePasswords_header div ul { + padding-top: 3px; +} + +div#oneTimePasswords_header div ul li { + font-size: 9pt; + padding: 0px 5px; + display: inline; +} + +div#oneTimePasswords_header div ul li span { + color: #999999; +} + +div#oneTimePasswords_header div ul li a { + color: #333366; + text-decoration: none; +} + +table.oneTimePassword { + width: 100%; + padding: 0px 0px ; +} + +table.oneTimePassword tbody tr td { + border-bottom: 2px solid white; +} + +table.oneTimePassword tbody tr.oneTimePassword_used { + background-color: #f0f0f0; +} + +table.oneTimePassword tbody tr td input.otpCheckbox { + margin: 5px 10px 5px 10px; +} + +table.oneTimePassword tbody tr.oneTimePassword_used td span.oneTimePassword_value { + color: #aaaaaa; +} + +span.oneTimePassword_value { + color: #555555; + line-height: 22px; + font-size: 11pt; + font-family: monospace; + white-space: nowrap; +} + +span.disabledOneTimePassword { + font-size: 10pt; + display: block; + color: #999999; + font-style: italic; + padding-top: 5px; + font-weight: bold; +} + +div.oneTimePassword_usageStats { + padding-left: 20px; + padding-bottom: 5px; +} + +div.oneTimePassword_usageStats div.oneTimePassword_usageDateDescription { + line-height: 22px; + font-size: 10pt; + color: #999999; + font-weight: bold; +} + +div.oneTimePassword_usageStats div.oneTimePassword_usageDate { + color: #aaaaaa; + font-size: 9pt; +} + +div.oneTimePassword_usageStats div.oneTimePassword_usageDetails img { + padding: 5px; +} + +div.oneTimePassword_usageStats div.oneTimePassword_IP { + font-size: 9pt; + color: #999999; +} + +div.oneTimePassword_usageStats div.oneTimePassword_IP span.oneTimePassword_IPLabel { + padding-right: 4px; +} + +div.oneTimePassword_noPasswordPresent { + color: #999999; + padding: 10px; +} + + + +/* @group Calendar + */ + +div.calendarWidget { + text-align: right; +} + +table.calendarWidget { + font-size: 8pt; + color: #666666; +} + +table.calendarWidget td.daysOfWeek { + padding: 0px 3px; + color: white; + background-color: #ff9400; +} + +table.calendarWidget td.day { + text-align: right; +} + +table.calendarWidget td.day span { + padding: 0px 3px; +} + +table.calendarWidget td.day span.saturday { + font-weight: bold; +} + +table.calendarWidget td.day span.sunday { + font-weight: bold; + color: #ff9400; +} + +table.calendarWidget td.day span.today { + border: 1px solid #666666; + font-weight: bold; +} + +/* @end */ + + + +/* @end */ + +/* + +div.loadingMessage { + +} + +*/ + +/* @group Loading panel */ + +div.loadingMessage { + padding: 10px; + color: #666666; +} + +div.loadingMessage h6 { + font-size: 12pt; +} + +div.loadingMessage p { + font-size: 10pt; + padding: 5px 0px; +} + + +/* @end */ + +/* @group Import */ + +/* @group Formats */ + +/* +div.importFormats ul li { + width: 400px; + max-width: 400px; + min-width: 400px; + padding: 10px; + border: 1px solid white; +} + +div.importFormats ul li:hover { + border: 1px solid #ff9400; +} + +div.importFormats ul li.disabled:hover { + border: 1px solid white; +} + +div.importFormats ul li h4 { + font-size: 10pt; +} + +div.importFormats ul li:hover h4 { + font-size: 10pt; +} + +div.importFormats ul li.disabled h4 { + color: #888888; +} + +div.importFormats ul li p { + font-size: 9pt; + color: #999999; + padding: 5px 0px 5px 10px; +} +*/ +div.importFormats { + border-top: 3px double #ff9400; + padding-top: 10px; + border-bottom: 3px double #ff9400; + padding-bottom: 10px; + +} + +div.importFormats a { + color: #333366; + text-decoration: none; +} + +div.importFormats a:hover { + text-decoration: underline; +} + +ul.radioList { + padding: 5px; + list-style-type: none; + list-style-position: outside; +} + +ul.radioList li h4 { + font-size: 11pt; + font-weight: bold; + color: #ff9400; + text-decoration: none; + padding-bottom: 2px; + cursor: pointer; +} + +ul.radioList li.disabled h4 { + color: #666666; + cursor: auto; +} + +ul.radioList li table tr td { + font-size: 9pt; + color: #999999; + padding-left: 5px; + padding-bottom: 10px; +} + +div.templateDescription { + max-width: 420px; + padding: 2px 0px 5px; + font-size: 10pt; + color: #999999; +} + + +/* +div.importFormats ul { + padding: 5px; + list-style-type: none; + list-style-position: outside; +} + +div.importFormats ul li h4 { + font-size: 11pt; + font-weight: bold; + color: #ff9400; + text-decoration: none; + padding-bottom: 2px; + cursor: pointer; +} + +div.importFormats ul li.disabled h4 { + color: #666666; + cursor: auto; +} + +div.importFormats ul li table tr td { + font-size: 9pt; + color: #999999; + padding-left: 5px; + padding-bottom: 10px; +} + +*/ + + + + + + +.clickableElement { + cursor: pointer; +} + + + + +/* @end */ + + +div.wizardComponent h3 { + color: #666666; + padding: 10px; + margin-bottom: 10px; + border-bottom: 1px dotted #ff9400; +} + +/* @group Steps */ + +/* @group bar */ + +div.importWizardStepsBox { + height: 53px; + min-height: 53px; + max-height: 53px; + + padding-left: 18px; + margin-left: -10px; + + width:600px; + + background: url(../images/importStepsBackground.png) no-repeat; +} + +div.importWizardStepsInnerBox { + float: left; + + height: 53px; + min-height: 53px; + max-height: 53px; + + background: url(../images/importStepsBackground.png) repeat-x 0 -53px; +} + +div.importWizardStepsBoxFooter { + float: left; + + height: 53px; + min-height: 53px; + max-height: 53px; + + width: 18px; + min-width: 18px; + max-width: 18px; + + background: url(../images/importStepsBackground.png) no-repeat -9px -106px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td { + padding-top: 9px; +} +div.importWizardStepsBox table.importWizardSteps tbody tr td div { + height: 23px; + min-height: 23px; + max-height: 23px; + + padding: 0px; + padding-left: 4px; + margin: 0px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td div span { + color: #333366; + font-size: 9pt; + + height: 23px; + min-height: 23px; + max-height: 23px; + + display: block; + padding-right: 4px; + line-height: 22px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.current div { + padding-left: 8px; + background: url(../images/importStepsLabelsBackground.png) repeat-x 0 0px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.current div span { + color: white; + padding-right: 8px; + background: url(../images/importStepsLabelsBackground.png) repeat-x right -23px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.currentProcessing div { + padding-left: 8px; + background: url(../images/importStepsLeftLabelsBackground.png) repeat-x 0 0px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.currentProcessing div span { + padding-right: 8px; + background: url(../images/importStepsLeftLabelsBackground.png) repeat-x right -23px; +} + +/* @group Steps separator */ +div.importWizardStepsBox table.importWizardSteps tbody tr td.stepSeparator div { + width: 18px; + max-width: 18px; + min-width: 18px; + + background: url(../images/importStepsSeparator.png) no-repeat 0 2px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.stepSeparator div span { + display: none; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.stepSeparatorProcessing div { + width: 18px; + max-width: 18px; + min-width: 18px; + + background: url(../images/importActiveStepsSeparator.png) no-repeat 0 2px; +} + +div.importWizardStepsBox table.importWizardSteps tbody tr td.stepSeparatorProcessing div span { + display: none; +} + + +/* @end */ + +/* +importStepsSeparator.png +importActiveStepsSeparator.png +*/ + +/* @end */ + + +div.importStepParameters { + padding-bottom: 10px; +} +/* @group CSV steps */ + +div.importStepBlocks div.step_2 div.importStepParameters span { + padding-left: 5px; + font-size: 9pt; + color: #999999; + +} + +div.importStepBlocks div.step_4 div.importStepParameters span { + padding-left: 5px; + font-size: 9pt; + color: #999999; + +} + + + +/* @end */ + + +/* @end */ + +div.importPreviewDiv { + height: 250px; + max-height: 250px; + overflow: auto; + + border: 1px solid #333366; + margin-bottom: 10px; +} + +textarea.importTextArea { + width: 500px; + height: 200px; +} + +body.masked div.importPreviewDiv { + overflow: hidden; +} + +div.importPreviewCommandsDiv { + width: 500px; +} + +div.importOptions { + color: #666666; + font-size: 10pt; + padding: 3px; +} + +div.importOptions span { + padding-left: 4px; +} + +/* @group Options */ + +div.importOptionsDescription { + padding: 10px 0px; + font-size: 10pt; + color: #666666; +} + +div.importStepDescription { + padding: 10px 0px; + font-size: 10pt; + color: #666666; +} + +div.CSVImportOptionsParameters ul { + padding-bottom: 10px; +} + +div.CSVImportOptionsParameters ul li { + padding-right: 15px; + display: inline; +} + +div.CSVImportOptionsParameters ul li label { + padding-right: 5px; + font-size: 9pt; + color: #999999; + +} + +div.importOptionsButtons { + padding: 10px; +} + +/* @end */ + +/* @group PasswordPlus */ +/* @end */ + +/* @group KeePass */ + +table#KeePassSettings { + margin: 15px 0px; + border-top: 3px double #cccccc; + border-bottom: 3px double #cccccc; + padding: 10px 10px; +} + +table#KeePassSettings td { + padding: 2px 0px; +} + +table#KeePassSettings span.keePassFieldLabel { + font-size: 10pt; + color: #666666; + padding-left: 5px; +} + +table#KeePassSettings span.keePassFieldLabel.disabled { + color: #aaaaaa; +} + + + +/* @end */ + +/* @group CSV */ + +div.csvImportPreview { + width: 700px; + max-width: 700px; + min-width: 700px; + + height: 300px; + max-height: 300px; + min-height: 300px; + + overflow: auto; +} + +table.csvImportPreview { +/* + border: 1px solid #333366; + margin-bottom: 10px; +*/ +} + +table.csvImportPreview thead tr th { + font-size: 10pt; + color: white; + background-color: #666666; + padding: 5px; + border-right: 1px solid #dddddd; +} + +table.csvImportPreview thead tr th span { + padding-left: 5px; +} + +table.csvImportPreview.header thead tr th input { + font-size: 9pt; + margin: 3px 0px; +} + +table.csvImportPreview tr.CSV_previewData_header td { + padding: 3px; + color: white; + border-right: 1px solid #dddddd; + background-color: #666666; +/* + padding-bottom: 15px; + border-bottom: 1px solid #333366; + border-bottom: 5px solid white; +*/ +} + +/* @group Columns */ + +table.csvImportPreview.columns th { + padding: 10px; + border-right: 1px solid white; +} + +table.csvImportPreview.columns th.selectedColumn { + background-color: #666666; +} + +table.csvImportPreview.columns th.skippedColumn { + background-color: #bbbbbb; +} + +table.csvImportPreview.columns td.selectedColumn { +} + +table.csvImportPreview.columns td.skippedColumn { + color: #aaaaaa; +} + +/* @end */ + +/* @group titleColumn */ + +table.csvImportPreview tr th.titleColumn { + background-color: #333366; +} + +table.csvImportPreview tbody tr.zebra_even td.titleColumn { + background-color: #e0e0ff; +/* + background-color: #ffffcc; +*/ +} + +table.csvImportPreview tbody td.titleColumn { + background-color: #f0f0ff; +/* + background-color: #ffffee; +*/ +} + +/* @end */ + +/* @group title */ + +table.csvImportPreview tr th.title, table.csvImportPreview tr.CSV_previewData_header td.title { + padding-left: 10px; + background-color: #333366; +} + +table.csvImportPreview tbody tr.zebra_even td.title { +} + +table.csvImportPreview tbody td.title { + font-weight: bold; +} + +/* @end */ + +/* @group notesColumn */ + +table.csvImportPreview tr th.notesColumn { + background-color: #333366; +} + +table.csvImportPreview tbody tr.zebra_even td.notesColumn { + background-color: #e0e0ff; +} + +table.csvImportPreview tbody td.notesColumn { + background-color: #f0f0ff; +} + +/* @end */ + +/* @group notes */ + +table.csvImportPreview tr.CSV_previewData_header td.notes { + padding-left: 10px; + font-style: normal; + background-color: #333366; +} + +table.csvImportPreview tbody tr.zebra_even td.notes { +} + +table.csvImportPreview tbody td.notes { + font-style: italic; +} + +/* @end */ + +/* @group Fields */ +table.csvImportPreview tr.CSV_previewData_header td span { + padding-left: 5px; + display: block; +} + +table.csvImportPreview tr.CSV_previewData_header td.missingLabelWarning { + background-color: #eeeeee; + border: 2px double red; +} + +table.csvImportPreview tr.CSV_previewData_header td.missingLabelWarning span { + color: red; +} + +table.csvImportPreview tr.CSV_previewData_header td.configuredColumn { + font-style: normal; + background-color: #333366; +} + +table.csvImportPreview td.configuredColumn { +} + +table.csvImportPreview td.unconfiguredColumn { + color: bbbbbb; +} + +/* @end */ + +table.csvImportPreview tr.CSV_previewData_header td:last-child { + border-right: 0px; +} + +table.csvImportPreview thead td { + font-size: 9pt; + padding: 4px 4px 3px; +} + +table.csvImportPreview tbody td { + border-right: 1px solid #dddddd; + color: #666666; + font-size: 9pt; + padding: 4px 4px 3px; +} + + + +table.csvImportPreview tbody td:last-child { + border-right: 0px; +} + +table.csvImportPreview tbody tr.zebra_even { + background-color: #f2f2f2; +} + + + +/* @end */ + +/* @group Preview */ + +table#importPreview { + width: 400px; +/* + margin: 15px 0px; + border-top: 3px double #cccccc; + border-bottom: 3px double #cccccc; + padding: 10px 0px; +*/ +} + +table#importPreview input { + margin: 4px 4px 0px 10px; +} + +table#importPreview tr.zebra_even { + background-color: #f2f2f2; +} + +span.importPreview_title { + font-size: 11pt; + + font-weight: bold; + padding: 4px 4px; + color: #333366; +} + +span.importPreview_notes { + display: block; + width: 150px; + padding: 4px; + font-size: 8pt; + color: #999999; +} + +table.importPreview_record { + padding-bottom: 10px; + padding-top: 10px; +} + +table.importPreview_record tbody tr td.importPreview_fieds { + border-left: 1px solid #dddddd; +} + +table.importPreview_fields { +/* + border-left: 1px solid #dddddd; +*/ + padding-left: 5px; +} + +span.importPreview_fields_label { + font-size: 9pt; + color: #666666; + display: block; + width: 150px; +} + +span.importPreview_fields_value { + font-size: 9pt; + color: #333366; +} + + +/* @end */ + + + +/* @end */ + +span.clickableSpan { + cursor: pointer; +} + + + +/* +div.importStepBlocks { + height: 220px; + min-height: 220px; + max-height: 220px; + width: 600px; + min-width: 600px; + max-width: 600px; + overflow: auto; +} +*/ + +hr { + margin-top: 20px; + border: 0px; + border-top: 1px dotted #aaaaaa; +} diff --git a/frontend/beta/css/clipperz/compact.css b/frontend/beta/css/clipperz/compact.css new file mode 100644 index 0000000..7c9252a --- /dev/null +++ b/frontend/beta/css/clipperz/compact.css @@ -0,0 +1,162 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* @override https://www.example.com/css/compact.css */ + +body.compact div#mainDiv { +/* + width: 250px; + height: 95%; + border: 1px solid #333366; +*/ + padding: 0px; +} + +body.compact div#compactHeader { + background-color: #333366; +} + +body.compact div#compactHeader img { + padding: 2px 20px 2px 4px; + width: 60; +} + +body.compact div#compactHeader a { + color: white; + text-decoration: none; + font-size: 10pt; +/* position: absolute; */ + right: 10px; + top: 6px; +} + +body.compact div#compactHeader a:hover { + color: #ff9400; +} + +body.compact h4 { + color: #999999; + text-align: center; + padding: 20px; + font-weight: normal; + font-size: 12pt; + font-style: italic; +} + +body.compact div.loginPanel form { + padding: 10px; +} + +body.compact div.loginPanel dt { + color: #aaaaaa; + font-size: 10pt; +} + +body.compact div.loginPanel input { + width: 180px; +} + +body.compact ul#directLogins { + background-image: none; + padding: 4px 0px; +} + +body.compact ul#directLogins li { + width:auto; +} + +body.compact ul#directLogins li.hover { + width:auto; + padding-right: 0px; +} + +body.compact div.lockPanel { + color: #999999; + font-size: 10pt; + padding: 10px; +} + +div#compactMiscLinks ul { +/* text-align: center; */ + display: block; + padding-left: 22px; + background-color: #ff9400; +} + +div#compactMiscLinks ul li { + display: inline; + padding: 2px 5px; +} + +div#compactHeader div#compactMiscLinks ul li a { + font-size: 9pt; +} + +div#compactHeader div#compactMiscLinks ul li a:hover { + color: #333366; +} + +div#lockBlock { + position: absolute; + right: 10px; + top: 6px; +} + +div#lockBlock input { + width: auto; + padding-bottom: 2px; +} + +div#lockBlock span { + font-size: 9pt; + padding: 0px 5px 0px 4px; + color: #aaaaaa; +} + +div#lockBlock a#lock { + font-size: 9pt; +} + +/* @group Donate */ + +a#donateHeaderLink { + font-weight: bold; +} + +div#compactMiscLinks a#donateHeaderIconLink img#donateHeaderLinkIcon { + display: inline; + position: absolute; + top: 22px; + left: 1px; + width: 12px; + height: 12px; +} + + + +/* @end */ \ No newline at end of file diff --git a/frontend/beta/css/clipperz/ie.css b/frontend/beta/css/clipperz/ie.css new file mode 100644 index 0000000..02b09f2 --- /dev/null +++ b/frontend/beta/css/clipperz/ie.css @@ -0,0 +1,351 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + + + + + + diff --git a/frontend/beta/css/clipperz/ytheme-clipperz.css b/frontend/beta/css/clipperz/ytheme-clipperz.css new file mode 100644 index 0000000..71ca4d1 --- /dev/null +++ b/frontend/beta/css/clipperz/ytheme-clipperz.css @@ -0,0 +1,141 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* @override + http://localhost:8080/pm-restyle/css/ytheme-clipperz.css + http://proxy/css/ytheme-clipperz.css + http://proxy/pm-497/css/ytheme-clipperz.css + https://www.example.com/css/ytheme-clipperz.css +*/ + +/* @group new Message dialog */ + +#mb-dlg .ext-mb-progress { + height:18px; +/* background:transparent url(../images/default/basic-dialog/progress2.gif) repeat-x 1px 1px; */ + background:transparent url(data:image/gif;charset=utf-8;base64,R0lGODlhHwEPAPQAAICAgLrW8u70+/X4/Pj6/ff5/PD1+/P3/M3h9dHj9s/i9eDs+Ovy+ufw+uTu+cvg9bzX8t3q+Nvp98rf9MXc88Ha88bd9Nno99bm9tTl9gAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAAACwAAAAAHwEPAAQF/2CGXaRlVRR1oqY1TZUpzVJk3xMEUW/vvpVY7UaMPB47Xu/1Ew6LttxuuTzJoLcjhPoDorBE5Jbbi1meUG2K6nOB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zZK4gMwE2qfEAIAAAh/h1CdWlsdCB3aXRoIEdJRiBNb3ZpZSBHZWFyIDQuMAAh/hVNYWRlIGJ5IEFqYXhMb2FkLmluZm8AOwo=) repeat-x 1px 1px; +} + +.ydlg .ydlg-hd { +/* background: url(../images/clipperz/basic-dialog/hd-sprite.gif) repeat-x 0 -82px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAwB7AIABADMzZv///yH5BAEAAAEALAAAAAADAHsAAAITBGKpy+0Po5y0Houz3rz7D4ZUAQA7Cg==) repeat-x 0 -82px; + background-color:navy; + color:#ffffff; + font:bold 12px "sans serif", Helvetica, Arial, Geneva, sans-serif; + overflow:hidden; + padding:5px; +} +.ydlg .ydlg-hd-left { +/* background: url(../images/clipperz/basic-dialog/hd-sprite.gif) no-repeat 0 -41px; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAwB7AIABADMzZv///yH5BAEAAAEALAAAAAADAHsAAAITBGKpy+0Po5y0Houz3rz7D4ZUAQA7Cg==) no-repeat 0 -41px; + padding-left:3px; + margin:0px; +} +.ydlg .ydlg-hd-right { +/* background: url(../images/clipperz/basic-dialog/hd-sprite.gif) no-repeat right 0; */ + background: url(data:image/gif;charset=utf-8;base64,R0lGODlhAwB7AIABADMzZv///yH5BAEAAAEALAAAAAADAHsAAAITBGKpy+0Po5y0Houz3rz7D4ZUAQA7Cg==) no-repeat right 0; + padding-right:3px; +} +.ydlg .ydlg-dlg-body { +/* background:url(../images/clipperz/layout/gradient-bg.gif);*/ + background-color: white; + border:1px solid #333366; + border-top:0 none; + padding:10px; + overflow:hidden; +} + +/* +.ydlg .ydlg-dlg-body .ydlg-ft{ + padding-top: 7px; + border-top: 1px dotted #333366; +} +*/ + +.ydlg .ydlg-close { + position:absolute; + top:4px; + right:4px; + z-index:6; + height:15px; + width:15px; + margin:0; + padding:0; + line-height:1px; + font-size:1px; + background-repeat:no-repeat; + cursor:pointer; + visibility:inherit; +/* background-image:url(../images/clipperz/basic-dialog/close.gif); */ + background-image:url(data:image/gif;charset=utf-8;base64,R0lGODlhDwAPANUAADk1bpeVs5+dub27z+Df6LGvxo2KqzIyZdfW4jk0brq4zNbU4cTD1ImGqVZSg/f2+Y+MraKgu9/e6NjX4qyqwjIyZtrZ5Pn5+mZij0pGenx4n0A7c7Oxx8C/0XZzm/39/Tw3cLCvxX57obe1yrCuxX16oP///zMzZjYxbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAPAA8AAAZ9wJNQSAgJKIuh8oTAoJ5PB2M5AEGvKMEQYcVeFUInqmSBoDyTwDNzIEAtJlPnY7oAngMSFBLvF6AGAlcdfRIJUBoUUB50fWpPDQtQE3EScQ93KBwnDk8BFwUJAQ8jTxsVJwxQmSisEUOCXk8iSwoZWBuvSycHAwYaDRyoQ0EAOwo=); +} + +/* @end */ + +/* @group Message dialog */ + +div#mb-dlg div div div.ydlg-hd { + background-color: #35306b; +} + +div#mb-dlg div.ydlg-dlg-body { + border-color: #333366; +} + +div#mb-dlg div.ydlg-dlg-body span.ext-mb-text { + font-size: 10pt; + color: #999999; +} + +div.ydlg-btns-center table tbody tr td { + text-align: center; +} + +/* @end */ + +body .ybtn-left{ +/* background:url(../images/default/basic-dialog/btn-sprite.gif) no-repeat 0 0; */ + background:url(data:image/gif;charset=utf-8;base64,R0lGODlhAwCTAIcAAAA8dBZNfiVXg0hukEpxk1V9okD/QGaHoGeIoGqLomyMpHqVqHuVqX2ZqoOEb4SGceWXAPiyMPizMPi0Nfi1Nfm0Nfi3O/m3Ovm3O/m4O+21R++1Sfm6Qfm6Qvq6Qfm9SPm9Sfq9Sfq+SfrAUPrAUfrBUPrDWPrEWPrEWfrHYfvHYfvIYPvKavzKafvPcvzOcfzOcvzRevzSefzSeo2eoaOutLG3tra9vb/Hyr/O27/O3P3Vgf3Vgv3Yif3bj/7dlf7fmu7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grn+49uG6h2sermfMAPDiBYAWLACoWAHABAoAI0oAACECgIcOADJgAFCBQoANEQ48gOATqNArNBjIfwgiQIYQADJ+oPeBvgf6HehjAHABAwCLFgBSqABw4jgJ5SF8AAAHHABgwQUAUDABABJoEAAEDvDll2lYVNjDhYY1glgiignCWCCO4QHZGpKlQZkWlmWB2RKaJcHZEZ4NEZoSNEZgIwQ4mkahhRee6OOPQAYp5JAn2hgBjhCYFhAAOwo=) no-repeat 0 0; +} +body .ybtn-right{ +/* background:url(../images/default/basic-dialog/btn-sprite.gif) no-repeat 0 -21px; */ + background:url(data:image/gif;charset=utf-8;base64,R0lGODlhAwCTAIcAAAA8dBZNfiVXg0hukEpxk1V9okD/QGaHoGeIoGqLomyMpHqVqHuVqX2ZqoOEb4SGceWXAPiyMPizMPi0Nfi1Nfm0Nfi3O/m3Ovm3O/m4O+21R++1Sfm6Qfm6Qvq6Qfm9SPm9Sfq9Sfq+SfrAUPrAUfrBUPrDWPrEWPrEWfrHYfvHYfvIYPvKavzKafvPcvzOcfzOcvzRevzSefzSeo2eoaOutLG3tra9vb/Hyr/O27/O3P3Vgf3Vgv3Yif3bj/7dlf7fmu7crf3gm8DCycfJzsDP3dvXzdbY39Xf6Nrc4d3e4t3f5ODd1OLf1uTi2eTi2uXi2+bj3Obj3efk3ejl3ujl3+/o0vjt0//wz+Di6OPn6+nm4Orn4Oro4evo4evo4uvq4+vr5ezr5Ozr5ezr5u3q5u3s5e7t5u7t5+jq7+/u6Ovt8vDv6fDu6vDw6vDw6/Hw6vHw6/Hx7PPx7vLy7fLy7vPz7vT07/Dy9fT08PX18fX08vX18vb08vb28vb28/b29PP1+Pb3+vf4+fj49vj49/r6+fr6+vv7+vn8/f39/P7+/f7+/v7+/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAYALAAAAAADAJMAAAj/AA0sELCgQBEBOhgBUKQIwCFDAAoRAgAIEIA/fwD44QNAjx4AefIAuHMHgB07AOrUAUCHDgA5cgC8cQOATJgAOJocIFDDQAMBARAYQFKAwaIcAhD1AbCnDYA5ZQDE+QIAjhcAbLgAULMFAJoqAM5QAWBmCoAxUgCIiQIADBQAXZwAeMIEgJEbAWwMSBBAgQEAgB0JZkS4keFEiAUpDsQYj+M1kNNI1kI5i+UlmJNoPsJ5iGcioEOHHkQaMACBBGlYERBEBgAgrn+49uG6h2sermfMAPDiBYAWLACoWAHABAoAI0oAACECgIcOADJgAFCBQoANEQ48gOATqNArNBjIfwgiQIYQADJ+oPeBvgf6HehjAHABAwCLFgBSqABw4jgJ5SF8AAAHHABgwQUAUDABABJoEAAEDvDll2lYVNjDhYY1glgiignCWCCO4QHZGpKlQZkWlmWB2RKaJcHZEZ4NEZoSNEZgIwQ4mkahhRee6OOPQAYp5JAn2hgBjhCYFhAAOwo=) no-repeat 0 -21px; +} +body .ybtn-center{ +/* background:url(../images/default/basic-dialog/btn-sprite.gif) repeat-x 0 -42px; */ + background:url(data:image/gif;charset=utf-8;base64,R0lGODlhAwCTAIcAAAA8dBZNfiVXg0hukEpxk1V9okD/QGaHoGeIoGqLomyMpHqVqHuVqX2ZqoOEb4SGceWXAPiyMPizMPi0Nfi1N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cQOATJgAOJocIFDDQAMBARAYQFKAwaIcAhD1AbCnDYA5ZQDE+QIAjhcAbLgAULMFAJoqAM5QAWBmCoAxUgCIiQIADBQAXZwAeMIEgJEbAWwMSBBAgQEAgB0JZkS4keFEiAUpDsQYj+M1kNNI1kI5i+UlmJNoPsJ5iGcioEOHHkQaMACBBGlYERBEBgAgrn+49uG6h2sermfMAPDiBYAWLACoWAHABAoAI0oAACECgIcOADJgAFCBQoANEQ48gOATqNArNBjIfwgiQIYQADJ+oPeBvgf6HehjAHABAwCLFgBSqABw4jgJ5SF8AAAHHABgwQUAUDABABJoEAAEDvDll2lYVNjDhYY1glgiignCWCCO4QHZGpKlQZkWlmWB2RKaJcHZEZ4NEZoSNEZgIwQ4mkahhRee6OOPQAYp5JAn2hgBjhCYFhAAOwo=) repeat-x 0 -42px; +} + +.ext-el-mask { + zoom:100%; +} + + +body.masked textarea { + overflow: hidden; +} diff --git a/frontend/beta/css/yui-extensions/basic-dialog.css b/frontend/beta/css/yui-extensions/basic-dialog.css new file mode 100644 index 0000000..f1b6375 --- /dev/null +++ b/frontend/beta/css/yui-extensions/basic-dialog.css @@ -0,0 +1,250 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ydlg-proxy { + background-image: url(../images/default/gradient-bg.gif); + background-color:#c3daf9; + border:1px solid #6593cf; + z-index:10001; + overflow:hidden; + position:absolute; + left:0;top:0; +} +.ydlg-shadow{ + background:#aaaaaa; + position:absolute; + left:0;top:0; +} +.ydlg-focus{ + -moz-outline:0 none; + outline:0 none; + width:0; + height:0; + overflow:hidden; + position:absolute; + top:0; + left:0; +} +.ydlg-mask{ + z-index:10000; + display:none; + position:absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity:.50; + filter: alpha(opacity=50); + background-color:#CCC; +} +body.masked{ +} +body.masked select { + visibility:hidden; +} +body.masked .ydlg select { + visibility:visible; +} +.ydlg{ + z-index:10001; + overflow:hidden; + position:absolute; + left:300;top:0; +} +.yresizable-proxy{ + z-index:10002; +} +.ydlg .ydlg-hd { + background: url(../images/default/basic-dialog/hd-sprite.gif) repeat-x 0 -82px; + background-color:navy; + color:#ffffff; + font:bold 12px "sans serif", tahoma, verdana, helvetica; + overflow:hidden; + padding:5px; +} +.ydlg .ydlg-hd-left { + background: url(../images/default/basic-dialog/hd-sprite.gif) no-repeat 0 -41px; + padding-left:3px; + margin:0px; +} +.ydlg .ydlg-hd-right { + background: url(../images/default/basic-dialog/hd-sprite.gif) no-repeat right 0; + padding-right:3px; +} +.ydlg .ydlg-dlg-body{ + background:url(../images/default/layout/gradient-bg.gif); + border:1px solid #6593cf; + border-top:0 none; + padding:10px; + overflow:hidden; +} +.ydlg .ydlg-bd{ + overflow:hidden; +} +.ydlg .ydlg-ft{ + overflow:hidden; + padding:5px; + padding-bottom:0; +} +.ydlg .yui-ext-tabbody{ + background:white; + overflow:auto; +} +.ydlg .ytabs-top .yui-ext-tabbody{ + border:1px solid #6593cf; + border-top:0 none; +} +.ydlg .ytabs-bottom .yui-ext-tabbody{ + border:1px solid #6593cf; + border-bottom:0 none; +} +.ydlg .ylayout-container .yui-ext-tabbody{ + border:0 none; +} +.ydlg .inner-tab{ + margin:5px; +} +.ydlg .ydlg-ft .ybtn{ + margin-right:5px; + float:right; + clear:none; +} +.ydlg .ydlg-ft .ydlg-btns td { + border:0; + padding:0; +} +.ydlg .ydlg-ft .ydlg-btns-right table{ + float:right; + clear:none; +} +.ydlg .ydlg-ft .ydlg-btns-left table{ + float:left; + clear:none; +} +.ydlg .ydlg-ft .ydlg-btns-center{ + text-align:center; /*ie*/ +} +.ydlg .ydlg-ft .ydlg-btns-center table{ + margin:0 auto; /*everyone else*/ +} +.ydlg-draggable .ydlg-hd{ + cursor:move; +} +.ydlg-closable .ydlg-hd{ + padding-right:22px; +} +.ydlg .ydlg-close { + position:absolute; + top:4px; + right:4px; + z-index:6; + height:15px; + width:15px; + margin:0; + padding:0; + line-height:1px; + font-size:1px; + background-repeat:no-repeat; + cursor:pointer; + visibility:inherit; + background-image:url(../images/default/basic-dialog/close.gif); +} +.ydlg div.yresizable-handle-east{ + background-image:url(../images/default/sizer/e-handle-dark.gif); + border:0; + background-position:left; + margin-right:0; +} +.ydlg div.yresizable-handle-south{ + background-image:url(../images/default/sizer/s-handle-dark.gif); + border:0; + height:6px; +} +.ydlg div.yresizable-handle-west{ + background-image:url(../images/default/sizer/e-handle-dark.gif); + border:0; + background-position:1px; +} +.ydlg div.yresizable-handle-north{ + background-image:url(../images/default/s.gif); + border:0; +} +.ydlg div.yresizable-handle-northeast, .ytheme-gray .ydlg div.yresizable-handle-northeast{ + background-image:url(../images/default/s.gif); + border:0; +} +.ydlg div.yresizable-handle-northwest, .ytheme-gray .ydlg div.yresizable-handle-northwest{ + background-image:url(../images/default/s.gif); + border:0; +} +.ydlg div.yresizable-handle-southeast{ + background-image:url(../images/default/sizer/corners-sprite.gif); + background-position: top left; + width:8px; + height:8px; + border:0; +} +.ydlg div.yresizable-handle-southwest{ + background-image:url(../images/default/sizer/corners-sprite.gif); + background-position: top right; + margin-left:1px; + margin-bottom:1px; + border:0; +} + +#mb-dlg .ydlg-ft .ybtn{ + float:none; + clear:none; + margin:0 3px; +} + +#mb-dlg .ydlg-bd { + padding:5px; + overflow:hidden !important; +} +#mb-dlg .ext-mb-input { + margin-top:4px; + width:95%; +} +#mb-dlg .ext-mb-textarea { + margin-top:4px; + font:normal 13px verdana,tahoma,sans-serif; +} +#mb-dlg .ext-mb-progress-wrap { + margin-top:4px; + border:1px solid #6593cf; +} +#mb-dlg .ext-mb-progress { + height:18px; + background:transparent url(../images/default/basic-dialog/progress2.gif) repeat-x 1px 1px; +} +#mb-dlg .ext-mb-progress-bar { + height:18px; + overflow:hidden; + width:0; + background:#8bb8f3; +} diff --git a/frontend/beta/css/yui-extensions/button.css b/frontend/beta/css/yui-extensions/button.css new file mode 100644 index 0000000..ee2d86f --- /dev/null +++ b/frontend/beta/css/yui-extensions/button.css @@ -0,0 +1,86 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ybtn{ + font:normal 11px arial, tahoma, verdana, helvetica; + cursor:pointer; + white-space: nowrap; +} +.ybtn-left, .ybtn-right{ + font-size:1px; + line-height:1px; +} +.ybtn-left{ + width:3px; + height:21px; + background:url(../images/default/basic-dialog/btn-sprite.gif) no-repeat 0 0; +} +.ybtn-right{ + width:3px; + height:21px; + background:url(../images/default/basic-dialog/btn-sprite.gif) no-repeat 0 -21px; +} +.ybtn-focus{ + text-decoration:none !important; + color:black !important; + display: -moz-inline-block; + display:inline-block; + width:auto; + position:relative; + white-space: nowrap; +} +.ybtn-center{ + background:url(../images/default/basic-dialog/btn-sprite.gif) repeat-x 0 -42px; + font:normal 11px "san serif",tahoma,verdana,helvetica; + vertical-align: middle; + text-align:center; + padding:0 5px; + cursor:pointer; + white-space:nowrap; + -moz-user-select: none; + -khtml-user-select: none; +} +.ybtn-over .ybtn-left{ + background-position:0 -63px; +} +.ybtn-over .ybtn-right{ + background-position:0 -84px; +} +.ybtn-over .ybtn-center{ + background-position:0 -105px; +} +.ybtn-click .ybtn-center{ + background-position:0 -126px; +} +.ybtn-disabled{ + cursor:default; +} +.ybtn-disabled .ybtn-center{ + color:gray; + cursor:default; +} diff --git a/frontend/beta/css/yui-extensions/core.css b/frontend/beta/css/yui-extensions/core.css new file mode 100644 index 0000000..3cd8b6e --- /dev/null +++ b/frontend/beta/css/yui-extensions/core.css @@ -0,0 +1,53 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ext-el-mask { + z-index:20000; + position:absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity:.50; + filter: alpha(opacity=50); + background-color:#CCC; + width:100%; + height:100%; + zoom:1; +} +.ext-masked { + overflow:hidden !important; +} +.ext-masked select,.ext-masked object,.ext-masked embed{ + visibility:hidden; +} +.ylayer-shadow{ + background:#cccccc; + opacity:.3; + -moz-opacity:.3; + filter: alpha(opacity=30); +} \ No newline at end of file diff --git a/frontend/beta/css/yui-extensions/dd.css b/frontend/beta/css/yui-extensions/dd.css new file mode 100644 index 0000000..ac2ba40 --- /dev/null +++ b/frontend/beta/css/yui-extensions/dd.css @@ -0,0 +1,81 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ydd-drag-proxy{ + position:absolute; + left:0;top:0; + visibility:hidden; + z-index:15000; +} +.ydd-drag-ghost{ + color: black; + font: normal 11px arial, helvetica, sans-serif; + -moz-opacity: 0.85; + opacity:.85; + filter: alpha(opacity=85); + border-top:1px solid #dddddd; + border-left:1px solid #dddddd; + border-right:1px solid #bbbbbb; + border-bottom:1px solid #bbbbbb; + padding:3px; + padding-left:20px; + background-color:white; + white-space:nowrap; +} +.ydd-drag-repair .ydd-drag-ghost{ + -moz-opacity: 0.4; + opacity:.4; + filter: alpha(opacity=40); + border:0 none; + padding:0; + background-color:transparent; +} +.ydd-drag-repair .ydd-drop-icon{ + visibility:hidden; +} +.ydd-drop-icon{ + position:absolute; + top:3px; + left:3px; + display:block; + width:16px; + height:16px; + background-color:transparent; + background-position: center; + background-repeat: no-repeat; + z-index:1; +} +.ydd-drop-nodrop .ydd-drop-icon{ + background-image: url(../images/default/dd/drop-no.gif); +} +.ydd-drop-ok .ydd-drop-icon{ + background-image: url(../images/default/dd/drop-yes.gif); +} +.ydd-drop-ok-add .ydd-drop-icon{ + background-image: url(../images/default/dd/drop-add.gif); +} diff --git a/frontend/beta/css/yui-extensions/grid.css b/frontend/beta/css/yui-extensions/grid.css new file mode 100644 index 0000000..01be8d5 --- /dev/null +++ b/frontend/beta/css/yui-extensions/grid.css @@ -0,0 +1,584 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ygrid-cell-text { + display: block; + overflow: hidden; + padding: 3px 5px; + white-space: nowrap; +} +.ygrid-col{ + cursor: default; + height:21px !important; + box-sizing: border-box; + -moz-box-sizing: border-box; + position:absolute; + display:block; + -moz-outline: none; + -moz-user-focus: normal; + overflow: hidden; + border-left: 1px solid #f1efe2; +} +.yeditgrid .ygrid-col{ + -moz-outline: normal; +} +.ygrid-col, .ygrid-hd { + -o-text-overflow: ellipsis; + text-overflow: ellipsis; +} +.ygrid-col-0{ + border-left: 0; +} +.ygrid-col-last{ + border-right: 1px solid #f1efe2; +} +.ygrid-editor{ + box-sizing: border-box; + -moz-box-sizing: border-box; + position:absolute; + visibility:hidden; + font: normal 8pt arial; + border: 1px solid #afbdc9; + z-index:10; +} +.ygrid-editor input{ + font: normal 8pt arial; + border: 0; + padding-top:2px; + padding-left:3px; +} +.ygrid-editor-container{ + overflow:hidden; + display:block; + background-color:white; +} +.ygrid-editor .pick-button{ + width:15px; + height:20px; + position:absolute; + display:block; + right:0; + top:0; + z-index:2; + background-image: url(../images/default/grid/pick-button.gif); + background-repeat: no-repeat; +} +.ygrid-editor-invalid{ + background-image: url(../images/default/grid/invalid_line.gif); + background-repeat: repeat-x; + background-position: bottom; + border: 1px solid #afbdc9; +} +.ygrid-checkbox-editor{ + text-align: center; + overflow:hidden; + display:block; + background-color:white; +} +.ygrid-checkbox-editor input{ + margin-top:3px; + height:13px; + width:13px; +} +select.ygrid-editor{ + padding: 0; + -moz-outline: none; + border: 1px solid #afbdc9; +} +.ygrid-num-editor{ + text-align:right; + padding-top:2px; + padding-left:3px; +} +.ygrid-text-editor{ + padding-top:2px; + padding-left:3px; +} +.ygrid-hd{ + font: normal 8pt arial; + background-color: #ebeadb; + box-sizing: border-box; + -moz-box-sizing: border-box; + display: block; + position: absolute; + overflow:hidden; +} +.ygrid-column-sizer { + width:1px; + border-right:1px dashed #6593cf; + background:none; + cursor: col-resize; +} +.ygrid-drag-proxy{ + width:150px; + height:24px; + background-color:#3366cc; + border: 1px solid #002266; + position:absolute; + visibility:hidden; + z-index:10000; +} +.ygrid-drag-text{ + font: normal 8pt arial; + color:white; + position:absolute; + top:0; + left:26px; + padding:3px; + display:block; +} +.ygrid-drop-icon{ + position:absolute; + top:0; + left:0; + display:block; + width:24px; + height:100%; + background-position: center; + background-repeat: no-repeat; +} +.ygrid-drop-nodrop{ + background-image: url(../images/default/grid/drop-no.gif); +} +.ygrid-drop-ok{ + background-image: url(../images/default/grid/drop-yes.gif); +} +.ygrid-hd .sort-asc { + background-image: url(../images/default/grid/sort_asc.gif); + background-position: right; + background-repeat: no-repeat; + display: none; + height: 14px; + width: 16px; +} +.ygrid-hd .sort-desc { + background-image: url(../images/default/grid/sort_desc.gif); + background-position: right; + background-repeat: no-repeat; + display: none; + height: 14px; + width: 16px; +} +.ygrid-hd-body { + cursor: default; + display: block; + font: normal 8pt arial; + left: 0; + overflow: hidden; + padding: 3px 5px; + position: relative; + top: 0; + white-space: nowrap; +} +.ygrid-hd-body span { + font: normal 8pt arial; + white-space: nowrap; +} +.ygrid-hd-over{ + border-bottom: 2px solid #fcc247; +} +.ygrid-hd-over .ygrid-hd-body{ + background-color: #faf9f4; + border-bottom: 1px solid #f9a900; +} +.ygrid-hd-split { + background-image: url(../images/default/grid/grid-split.gif); + background-position: center; + background-repeat: no-repeat; + cursor: e-resize; + display: block; + font-size: 1px; + height: 16px; + overflow: hidden; + position: absolute; + top: 2px; + width: 6px; + z-index: 3; +} +.ygrid-hrow{ + background: #ebeadb url(../images/default/grid/grid-hrow.gif) repeat-x; + display: block; + height: 22px; + left: 0; + position: relative; + top: 0; + width: 10000px; + overflow:hidden; + z-index:2; +} +.ygrid-hrow-frame{ + height: 22px; + left: 0; + display:block; + position: absolute; + top: 0; + width: 10000px; + z-index:1; +} +.ygrid-footer .ytoolbar{ + border:0; +} +.ygrid-page-number{ + width:24px; + height:14px; +} +.ygrid-page-first{ + background-image: url(../images/default/grid/page-first.gif); +} +.ygrid-loading{ + background-image: url(../images/default/grid/done.gif); +} +.ygrid-page-last{ + background-image: url(../images/default/grid/page-last.gif); +} +.ygrid-page-next{ + background-image: url(../images/default/grid/page-next.gif); +} +.ygrid-page-prev{ + background-image: url(../images/default/grid/page-prev.gif); +} +.ytb-button-disabled .ygrid-loading{ + background-image: url(../images/default/grid/loading.gif); +} +.ytb-button-disabled .ygrid-page-first{ + background-image: url(../images/default/grid/page-first-disabled.gif); +} +.ytb-button-disabled .ygrid-page-last{ + background-image: url(../images/default/grid/page-last-disabled.gif); +} +.ytb-button-disabled .ygrid-page-next{ + background-image: url(../images/default/grid/page-next-disabled.gif); +} +.ytb-button-disabled .ygrid-page-prev{ + background-image: url(../images/default/grid/page-prev-disabled.gif); +} +.ygrid-mso{ +} +.ygrid-mso .ygrid-hd{ + background:none; + border-bottom:0; +} +.ygrid-mso .ygrid-footer { + border-top: 1px solid #6593cf; +} + +.ygrid-mso .ygrid-footer .ygrid-fbutton{ + border:0; +} +.ygrid-mso .ygrid-hd-body { + border-bottom:0; +} +.ygrid-mso .ygrid-hd-over{ + border-bottom:0; +} +.ygrid-mso .ygrid-hd-over .ygrid-hd-body{ + background-color: transparent; +} +.ygrid-mso .ygrid-hd-split { + background-image: url(../images/default/grid/grid-blue-split.gif); +} +.ygrid-mso .ytoolbar .ytb-sep { + background-image: url(../images/default/grid/grid-blue-split.gif); +} +.ygrid-mso .ygrid-hrow{ + background: url(../images/default/grid/mso-hd.gif); + border-bottom: 1px solid #6593cf; + height: 21px; +} +.ygrid-mso .ygrid-row{ + color: black; + border-bottom: 1px solid #ddecfe; +} +.ygrid-mso .ygrid-row-alt{ + background-color: #f5f5f5; +} +.ygrid-mso .ygrid-row-selected{ + background-color: #b3c8e8 !important; + color: black; +} +.ygrid-mso .ygrid-row-selected span{ + color: black !important; +} +.yprops-grid .ygrid-col-1{ + background-color: #f1efe2; +} +.yprops-grid .ygrid-col-1 .ygrid-cell-text{ + background-color: white; +} +.yprops-grid .ygrid-col-0{ + background-color: #f1efe2; +} +.yprops-grid .ygrid-col-0 .ygrid-cell-text{ + background-color: white; + margin-left:10px; +} +.yprops-grid .ygrid-prop-edting .ygrid-col-0 .ygrid-cell-text{ + background-color: #316ac5; + color: white; +} +.yprops-grid .ygrid-prop-edting .ygrid-col-0{ + color: white; +} +.yprops-grid .ygrid-num-editor{ + text-align:left; +} +.ygrid-row{ + font: normal 8pt arial; + border-bottom: 1px solid #f1efe2; + overflow: visible; + white-space: nowrap; + height:21px; + width:10000px; + box-sizing: border-box; + -moz-box-sizing: border-box; + display:block; + position:absolute; +} +.ygrid-row-alt{ + background-color: #fcfaf6; +} +.ygrid-row-over{ + background-color: #f1f1f1; + color: black; +} +.ygrid-row-selected{ + background-color: #316ac5 !important; + color: white; +} +.ygrid-row-selected span{ + color: white !important; +} +.ygrid-vista{ + border:1px solid #535353; +} +.ygrid-vista .ygrid-hd{ + border-bottom:0px; + background:none; +} +.ygrid-vista .ygrid-hd-body { + border-bottom: 1px solid #b3bcc0; +} +.ygrid-vista .ygrid-hd-over{ + border-bottom:0px; +} +.ygrid-vista .ygrid-hd-over .ygrid-hd-body{ + background-color: transparent; + border-bottom:0; +} +.ygrid-vista .ygrid-hd-split { + background-image: url(../images/default/grid/grid-split.gif); +} +.ygrid-vista .ygrid-hrow{ + background: url(../images/default/grid/grid-vista-hd.gif); + height: 21px; +} +.ygrid-vista .ygrid-row-alt{ + background-color: #f5f5f5; +} +.ygrid-vista .ygrid-row-selected{ + background-color: #535353 !important; + color: white; +} +.ygrid-vista .ygrid-row-selected span{ + color: white !important; +} +.ygrid-vista .ygrid-wrap-body { +} +.ygrid-vista .ytoolbar{ + border: 0px none; + background: url(../images/default/grid/grid-vista-hd.gif); +} +.ygrid-vista .ytoolbar .ytb-sep{ + background-image: url(../images/default/grid/grid-split.gif); +} +/* + To have the scrollbars overlap the header, change .ygrid-wrap top style to 0 and + and ygrid-wrap-body top to 22px + Then grid.getView().scrollbarMode = YAHOO.ext.grid.GridView.SCROLLBARS_OVERLAP; + */ +.ygrid-wrap { + height: 100%; + left: 0; + overflow: auto; + position: relative; + top: 22px; + width: 100%; +} +.ygrid-footer{ + display: block; + padding:0; + border-top: 1px solid #cbc7b8; +} +.ygrid-wrap-footer { + display: block; + overflow: hidden; + width:100%; + height:25px; + box-sizing: border-box; + -moz-box-sizing: border-box; + background-color: #ebeadb; + position:absolute; + bottom:0; +} +.ygrid-wrap-body { + left: 0; + overflow: hidden; + position: absolute; + top: 0; + display: block; +} +.ygrid-wrap-headers { + left: 0; + overflow: hidden; + position: absolute; + top: 0; + z-index: 12; +} +.ypopcal{ + background: white; + padding:2px; + border: 1px solid gray; + z-index:12001; + -moz-outline:none; + position:absolute; + display:none; + top:0; + left:0; +} +.ypopcal-shadow { + background: #dddddd; + filter: progid:DXImageTransform.Microsoft.Blur(MakeShadow=true,pixelradius=1) Alpha(opacity=35,style=1,startX=0,finishX=200,FinishOpacity=35); + padding: 0; + position:absolute; + z-index:12000; + display:none; + top:0; + left:0; +} +.ypopcal-head{ + width:150px; + background: #93b5e4; +} +.ypopcal-head td{ + padding:1px; +} +.ypopcal-month{ + color: white; + font: bold 7pt verdana; + text-decoration: none; + text-align:center; +} +.ypopcal-head .ypopcal-arrow{ + width:16px; + text-align:center; + cursor:pointer; + -moz-user-select: none; +} + +.ypopcal-head .next-month{ + width:16px; + background-image: url(../images/default/grid/arrow-right-white.gif); + background-position: center; + background-repeat: no-repeat; + cursor:pointer; +} +.ypopcal-head .prev-month{ + width:16px; + background-image: url(../images/default/grid/arrow-left-white.gif); + background-position: center; + background-repeat: no-repeat; + cursor:pointer; +} + +.ypopcal-table { + background:white; + border-bottom: 1px solid #cccccc; +} +.ypopcal-table tr{ + +} +.ypopcal-table td{ + box-sizing: border-box; + -moz-box-sizing: border-box; + border: 1px solid white; + text-align:right; + color:#aaaaaa; + cursor:pointer; + font:normal 8pt arial; + background:white; + padding:1px 2px; + width:12px; + height:12px; +} +.ypopcal-table td.today{ + border: 1px solid darkred; +} +.ypopcal-table .ypopcal-daynames td{ + text-align:center !important; + border:0; + border-bottom: 1px solid #cccccc; + font-size: 8pt; + font-weight: normal; + text-align:right; + color:black; + cursor:default; +} +.ypopcal-table td.active{ + cursor:pointer; + color:black; +} +.ypopcal-table td.ypopcal-disabled{ + cursor:default; + background:#eeeeee; + border: 1px solid #eeeeee; + color:#bbbbbb; +} +.ypopcal-table td.selected{ + background: #ddecfe; + border: 1px solid #c3daf9; +} +.ypopcal-today{ + color: black; + cursor: hand; + display: inline-block; + font: normal 8pt arial; + margin-left: 2px; + text-decoration: none; + margin-top:2px; +} + +.ygrid-simple-view .ygrid-col{ + height:100% !important; + position:static; + display:table-cell; + display:inline-block; +} +.ygrid-simple-view .ygrid-row{ + position:static; + display: table-row; +} diff --git a/frontend/beta/css/yui-extensions/inline-editor.css b/frontend/beta/css/yui-extensions/inline-editor.css new file mode 100644 index 0000000..1ef560a --- /dev/null +++ b/frontend/beta/css/yui-extensions/inline-editor.css @@ -0,0 +1,60 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.yinline-editor { + border: 1px solid #a3bac9; + font: normal 11px arial,helvetica,sans-serif; + left: 0; + overflow: hidden; + padding: 1px 0 0 1px; + position: absolute; + top: 0; +} +.yinline-editor-multiline { + overflow: hidden; + padding: 0; + white-space: nowrap; +} +.yinline-editor-sizer { + font: normal 11px arial,helvetica,sans-serif; + left: -1000px; + padding: 3px; + padding-right: 6px; + position: absolute; + top: -1000px; + visibility: hidden; + white-space: nowrap; +} +.yinline-editor-wrap { + color: white; + overflow: auto; + position: absolute; + top: 0; + visibility: hidden; + z-index: 15002; +} diff --git a/frontend/beta/css/yui-extensions/layout.css b/frontend/beta/css/yui-extensions/layout.css new file mode 100644 index 0000000..58456ac --- /dev/null +++ b/frontend/beta/css/yui-extensions/layout.css @@ -0,0 +1,228 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ylayout-container{ + width:100%; + height:100%; + overflow:hidden; + background-color:#c3daf9; +} +.ylayout-collapsed{ + position:absolute; + left:-10000px; + top:-10000px; + visibility:hidden; + background-color:#c3daf9; + width:20px; + height:20px; + overflow:hidden; + border:1px solid #98c0f4; + z-index:20; +} +.ylayout-collapsed-over{ + cursor:pointer; + background-color:#d9e8fb; +} +.ylayout-collapsed-west .ylayout-tools-button{ + float:right; +} +.ylayout-collapsed-east .ylayout-tools-button{ + float:left; +} +.ylayout-collapsed-north, .ylayout-collapsed-south{ + text-align:right; +} +.ylayout-collapsed .ylayout-tools-button{ + margin:2px; + width:12px; + text-align:center; +} +.ylayout-inactive-content{ + position:absolute; + left:-10000px; + top:-10000px; + visibility:hidden; +} +.ylayout-active-content{ + visibility:visible; +} +.ylayout-panel{ + position:absolute;border:1px solid #98c0f4;overflow:hidden;background-color:white; +} +.ylayout-panel-east, .ylayout-panel-west { + z-index:10; +} +.ylayout-panel-north, .ylayout-panel-south { + z-index:11; +} +.ylayout-collapsed-north, .ylayout-collapsed-south, .ylayout-collapsed-east, .ylayout-collapsed-west { + z-index:12; +} +.ylayout-panel-body{ + overflow:hidden; +} +.ylayout-grid-wrapper{ + +} +.ylayout-split{ + position:absolute; + height:5px; + width:5px; + line-height:1px; + font-size:1px; + z-index:3; + background-color:#c3daf9; +} +.ylayout-panel-hd{ + background-image: url(../images/default/layout/panel-title-light-bg.gif); + color: black; + border-bottom:1px solid #98c0f4; + position:relative; +} +.ylayout-panel-hd-text{ + font:normal 11px tahoma, verdana, helvetica; + padding: 4px; + padding-left: 4px; + display:block; + white-space:nowrap; +} +.ylayout-panel-hd-tools{ + position:absolute; + right:0; + top:0; + text-align:right; + padding-top:2px; + padding-right:2px;width:40px; +} +.ylayout-tools-button{ + z-index:6; + padding:2px; + cursor:pointer; +} +.ylayout-tools-button-over{ + padding:1px; + border:1px solid #98c0f4; + background-color:white; +} +.ylayout-tools-button-inner{ + height:12px; + width:12px; + line-height:1px; + font-size:1px; + background-repeat:no-repeat; + background-position:center; +} +.ylayout-close{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -48px; +} +.ylayout-collapse-west,.ylayout-expand-east{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% 0; +} +.ylayout-expand-west,.ylayout-collapse-east{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -12px; +} +.ylayout-collapse-north,.ylayout-expand-south{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -24px; +} +.ylayout-expand-north,.ylayout-collapse-south{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -36px; +} +.ylayout-split-h{ + background-image:url(../images/default/sizer/e-handle.gif); + background-position: left; +} +.ylayout-split-v{ + background-image:url(../images/default/sizer/s-handle.gif); + background-position: top; +} +.ylayout-panel .ytab-wrap{ + background:url(../images/default/layout/gradient-bg.gif); +} +.ylayout-panel .yui-ext-tabbody { + background-color:white; + overflow:auto;height:100%; +} +.ylayout-component-panel, .ylayout-nested-layout { + position:relative; + padding:0; + overflow:hidden; + width:200px; + height:200px; +} +.ylayout-nested-layout .ylayout-panel { + border:0 none; +} +.ylayout-nested-layout .ylayout-panel-north { + border-bottom:1px solid #98c0f4; +} +.ylayout-nested-layout .ylayout-panel-south { + border-top:1px solid #98c0f4; +} +.ylayout-nested-layout .ylayout-panel-east { + border-left:1px solid #98c0f4; +} +.ylayout-nested-layout .ylayout-panel-west { + border-right:1px solid #98c0f4; +} +.yui-ext-repaint{ + zoom:1; + background-color: transparent; +} +.ylayout-panel-dragover { + border: 2px solid #6593cf; +} +.ylayout-panel-proxy { + background-image: url(../images/default/layout/gradient-bg.gif); + background-color:#c3daf9; + border:1px dashed #6593cf; + z-index:10001; + overflow:hidden; + position:absolute; + left:0;top:0; +} +.ylayout-slider { + z-index:15; + overflow:hidden; + position:absolute; +} + +.yunselectable{ + -moz-user-select: none; + -khtml-user-select: none; + cursor:default; +} diff --git a/frontend/beta/css/yui-extensions/qtips.css b/frontend/beta/css/yui-extensions/qtips.css new file mode 100644 index 0000000..4165168 --- /dev/null +++ b/frontend/beta/css/yui-extensions/qtips.css @@ -0,0 +1,70 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ytip{ + position: absolute; + top: 0; + visibility: hidden; + z-index: 11000; +} +.ytip .ytip-bd{ + background: #e0e8f3 url(../images/default/qtip/bg.gif) repeat-x; + border: 1px solid #a3bad9; + font: normal 11px arial,helvetica,sans-serif; + padding: 5px; +} +.ytip .ytip-close{ + background-image: url(../images/default/basic-dialog/close.gif); + height: 15px; + position: absolute; + right: 3px; + top: 3px; + width: 15px; +} +.ytip .ytip-hd { + background: url(../images/default/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; + background-color: navy; + color: #FFF; + display: block; + font: bold 11px tahoma, arial, verdana, helvetica; + padding: 4px; +} +.ytip .ytip-hd-left { + background: url(../images/default/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; + display: block; + margin: 0px; + padding-left: 3px; +} +.ytip .ytip-hd-right { + background: url(../images/default/basic-dialog/hd-sprite.gif) no-repeat right 0px; + display: block; + padding-right: 3px; +} +y\:qtip, qtip{ + display: none; +} diff --git a/frontend/beta/css/yui-extensions/reset-min.css b/frontend/beta/css/yui-extensions/reset-min.css new file mode 100644 index 0000000..25a5158 --- /dev/null +++ b/frontend/beta/css/yui-extensions/reset-min.css @@ -0,0 +1,29 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;}q:before,q:after{content:'';} \ No newline at end of file diff --git a/frontend/beta/css/yui-extensions/resizable.css b/frontend/beta/css/yui-extensions/resizable.css new file mode 100644 index 0000000..46fef2a --- /dev/null +++ b/frontend/beta/css/yui-extensions/resizable.css @@ -0,0 +1,160 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.yresizable-handle { + position:absolute; + z-index:100; + /* ie needs these */ + font-size:1px; + line-height:6px; + overflow:hidden; + background:white; + filter:alpha(opacity=0); + opacity:0; + zoom:1; +} +.yresizable-handle-east{ + width:6px; + cursor:e-resize; + right:0px; + top:0px; + height:100%; + margin-right:-1px; /*IE rounding error*/ +} +.yresizable-handle-south{ + width:100%; + cursor:s-resize; + left:0px; + bottom:0px; + height:6px; + margin-bottom:-1px; /*IE rounding error*/ +} +.yresizable-handle-west{ + width:6px; + cursor:w-resize; + left:0px; + top:0px; + height:100%; +} +.yresizable-handle-north{ + width:100%; + cursor:n-resize; + left:0px; + top:0px; + height:6px; +} +.yresizable-handle-southeast{ + width:6px; + cursor:se-resize; + right:0px; + bottom:0px; + height:6px; + z-index:101; +} +.yresizable-handle-northwest{ + width:6px; + cursor:nw-resize; + left:0px; + top:0px; + height:6px; + z-index:101; +} +.yresizable-handle-northeast{ + width:6px; + cursor:ne-resize; + right:0px; + top:0px; + height:6px; + z-index:101; +} +.yresizable-handle-southwest{ + width:6px; + cursor:sw-resize; + left:0px; + bottom:0px; + height:6px; + z-index:101; +} +.yresizable-over .yresizable-handle, .yresizable-pinned .yresizable-handle{ + filter:alpha(opacity=100); + opacity:1; +} +.yresizable-over .yresizable-handle-east, .yresizable-pinned .yresizable-handle-east{ + background:url(../images/default/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-west, .yresizable-pinned .yresizable-handle-west{ + background:url(../images/default/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-south, .yresizable-pinned .yresizable-handle-south{ + background:url(../images/default/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-north, .yresizable-pinned .yresizable-handle-north{ + background:url(../images/default/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-southeast, .yresizable-pinned .yresizable-handle-southeast{ + background:url(../images/default/sizer/corners-sprite.gif); + background-position: top left; +} +.yresizable-over .yresizable-handle-northwest, .yresizable-pinned .yresizable-handle-northwest{ + background:url(../images/default/sizer/corners-sprite.gif); + background-position:bottom right; +} +.yresizable-over .yresizable-handle-northeast, .yresizable-pinned .yresizable-handle-northeast{ + background:url(../images/default/sizer/corners-sprite.gif); + background-position: bottom left; +} +.yresizable-over .yresizable-handle-southwest, .yresizable-pinned .yresizable-handle-southwest{ + background:url(../images/default/sizer/corners-sprite.gif); + background-position: top right; +} +.yresizable-proxy{ + border: 1px dashed #6593cf; + position:absolute; + overflow:hidden; + visibility:hidden; + left:0;top:0; + z-index:1001; +} +.yresizable-overlay{ + width:100%; + height:100%; + display:none; + position:absolute; + left:0; + top:0; + background:white; + z-index:20000; + -moz-opacity: 0; + opacity:0; + filter: alpha(opacity=0); + border:1px solid red; +} diff --git a/frontend/beta/css/yui-extensions/tabs.css b/frontend/beta/css/yui-extensions/tabs.css new file mode 100644 index 0000000..8eb81e0 --- /dev/null +++ b/frontend/beta/css/yui-extensions/tabs.css @@ -0,0 +1,152 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ytab-wrap { + border-bottom:1px solid #6593cf; + padding-top:2px; +} +.ytab-strip-wrap{ + width:100%; +} +.ytab-wrap table{ + position:relative; + top:0; left:0; +} +.ytab-strip td{ + padding:0; + padding-left:2px; +} +.ytab-strip a, .ytab-strip span, .ytab-strip em { + display:block; +} +.ytab-strip a { + text-decoration:none !important; + -moz-outline: none; + outline: none; + cursor:pointer; +} +.ytab-strip .ytab-text { + font:bold 11px tahoma,arial,helvetica; + color:#666; + overflow:hidden; + white-space: nowrap; + cursor:pointer; + text-overflow: ellipsis; +} +.ytab-strip .on .ytab-text { + cursor:default; + color:#083772; +} +.ytab-strip .disabled .ytab-text { + cursor:default; + color:#aaaaaa; +} +.ytab-strip .ytab-inner { + padding:4px 10px; +} + +.ytab-strip .on .ytab-right { + background: url(../images/default/tabs/tab-sprite.gif) no-repeat right 0; +} +.ytab-strip .on .ytab-left { + background: url(../images/default/tabs/tab-sprite.gif) no-repeat 0 -100px; +} +.ytab-strip .ytab-right { + background: url(../images/default/tabs/tab-sprite.gif) no-repeat right -50px; +} +.ytab-strip .ytab-left { + background: url(../images/default/tabs/tab-sprite.gif) no-repeat 0 -150px; +} + +.ytab-strip a { + position:relative; + top:1px; left:0; +} +.ytab-strip .on a { + position:relative; +} +.ytab-strip .on .ytab-inner { + padding-bottom:5px; +} +/** closable tabs */ +.ytab-strip .ytab-closable .ytab-inner{ + padding-right:22px; + position:relative; +} +.ytab-strip .ytab-closable .close-icon{ + line-height: 1px; + font-size:1px; + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -60px; + display:block; + position:absolute; + right:5px;top:4px; + width:12px;height:11px; + cursor:pointer; +} +.ytab-strip .on .close-icon{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -60px; +} +.ytab-strip .ytab-closable .close-over{ + background-image:url(../images/default/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -72px; +} + +.ytabs-bottom .ytab-wrap { + border-top:1px solid #6593cf; + border-bottom:0 none; + padding-top:0; + padding-bottom:2px; +} +.ytabs-bottom .ytab-strip .ytab-right { + background: url(../images/default/tabs/tab-btm-inactive-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .ytab-left { + background: url(../images/default/tabs/tab-btm-inactive-left-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .ytab-strip .on .ytab-right { + background: url(../images/default/tabs/tab-btm-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .on .ytab-left { + background: url(../images/default/tabs/tab-btm-left-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .ytab-strip a { + position:relative; + top:0; left:0; +} +.ytabs-bottom .ytab-strip .on a { + margin-top:-1px; +} +.ytabs-bottom .ytab-strip .on .ytab-inner { + padding-top:5px; +} + diff --git a/frontend/beta/css/yui-extensions/toolbar.css b/frontend/beta/css/yui-extensions/toolbar.css new file mode 100644 index 0000000..df91c83 --- /dev/null +++ b/frontend/beta/css/yui-extensions/toolbar.css @@ -0,0 +1,115 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ytoolbar{ + background-color: #ebeadb; + border: 1px solid #cbc7b8; + display: block; + padding:2px; +} + +.mso .ytoolbar, .ygrid-mso .ytoolbar{ + border: 0px none; + background: url(../images/default/grid/mso-hd.gif); +} +.ytoolbar td,.ytoolbar span,.ytoolbar input,.ytoolbar div{ + white-space: nowrap; + font:normal 8pt arial,helvetica; +} +.ytoolbar .ytb-button-disabled .ytb-button-inner{ + color:gray; + cursor:default; +} + +/* + Default button class is icon only. Add a class with a background-image property + to your toolbar button +*/ +.ytoolbar .ytb-button-inner{ + background-position: center; + background-repeat: no-repeat; + display: block; + height: 16px; + width: 16px; + cursor:pointer; + white-space: nowrap; +} + +/* + Button class for icon and text. Add this class and a class with a background-image + to your toolbar button for both text and icon +*/ +.ytoolbar .ytb-text-icon{ + background-position: 0px 0px; + background-repeat: no-repeat; + padding-left:18px; + padding-top:1px; + width:auto; + display:block; +} + +/* + Button class for a button with only text. Add this class + to your toolbar button for a just text button +*/ +.ytoolbar .ytb-text-only{ + background:none; + padding-left:0px; + padding-top:1px; + width:auto; + display:block; +} +.ytoolbar .ytb-text{ + padding:2px; +} +.ytoolbar .ytb-button{ + padding:2px 3px; + display:block; +} +.ytoolbar .ytb-button-over{ + background:#c3d3ed url(../images/default/toolbar/btn-over-bg.gif) repeat-x; + border:1px solid #6593cf; + padding:1px 2px; +} +.ytoolbar .ytb-sep { + background-image: url(../images/default/grid/grid-split.gif); + background-position: center; + background-repeat: no-repeat; + display: block; + font-size: 1px; + height: 16px; + width:4px; + overflow: hidden; + cursor:default; + margin: 0px 2px 0px; + border:0px; +} +.mso .ytoolbar .ytb-sep, .ygrid-mso .ytoolbar .ytb-sep{ + background-image: url(../images/default/grid/grid-blue-split.gif); +} + diff --git a/frontend/beta/css/yui-extensions/tree.css b/frontend/beta/css/yui-extensions/tree.css new file mode 100644 index 0000000..9667f83 --- /dev/null +++ b/frontend/beta/css/yui-extensions/tree.css @@ -0,0 +1,193 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +.ytree-icon, .ytree-ec-icon, .ytree-elbow-line, .ytree-elbow, .ytree-elbow-end, .ytree-elbow-plus, .ytree-elbow-minus, .ytree-elbow-end-plus, .ytree-elbow-end-minus{ + border: 0 none; + height: 18px; + margin: 0px; + padding: 0px; + vertical-align: middle; + width: 16px; +} +.ytree-node-collapsed .ytree-node-icon, .ytree-node-expanded .ytree-node-icon, .ytree-node-leaf .ytree-node-icon{ + border: 0 none; + height: 16px; + margin: 0px; + padding: 0px; + vertical-align: middle; + width: 16px; + background-position:center; +} + +/* some default icons for leaf/folder */ +.ytree-node-collapsed .ytree-node-icon{ + background:transparent url(../images/default/tree/folder.gif); +} +.ytree-node-expanded .ytree-node-icon{ + background:transparent url(../images/default/tree/folder-open.gif); +} +.ytree-node-leaf .ytree-node-icon{ + background:transparent url(../images/default/tree/leaf.gif); +} + +/* loading icon */ +.ytree-node-loading .ytree-node-icon{ + background:transparent url(../images/default/tree/loading.gif) !important; +} +.ytree-node-loading a span{ + font-style: italic; + color:#444444; +} + +/* Line styles */ +.ytree-lines .ytree-elbow{ + background:transparent url(../images/default/tree/elbow.gif); +} +.ytree-lines .ytree-elbow-plus{ + background:transparent url(../images/default/tree/elbow-plus.gif); +} +.ytree-lines .ytree-elbow-minus{ + background:transparent url(../images/default/tree/elbow-minus.gif); +} +.ytree-lines .ytree-elbow-end{ + background:transparent url(../images/default/tree/elbow-end.gif); +} +.ytree-lines .ytree-elbow-end-plus{ + background:transparent url(../images/default/tree/elbow-end-plus.gif); +} +.ytree-lines .ytree-elbow-end-minus{ + background:transparent url(../images/default/tree/elbow-end-minus.gif); +} +.ytree-lines .ytree-elbow-line{ + background:transparent url(../images/default/tree/elbow-line.gif); +} + +/* No line styles */ +.ytree-no-lines .ytree-elbow{ + background:transparent; +} +.ytree-no-lines .ytree-elbow-plus{ + background:transparent url(../images/default/tree/elbow-plus-nl.gif); +} +.ytree-no-lines .ytree-elbow-minus{ + background:transparent url(../images/default/tree/elbow-minus-nl.gif); +} +.ytree-no-lines .ytree-elbow-end{ + background:transparent; +} +.ytree-no-lines .ytree-elbow-end-plus{ + background:transparent url(../images/default/tree/elbow-end-plus-nl.gif); +} +.ytree-no-lines .ytree-elbow-end-minus{ + background:transparent url(../images/default/tree/elbow-end-minus-nl.gif); +} +.ytree-no-lines .ytree-elbow-line{ + background:transparent; +} + +.ytree-elbow-plus, .ytree-elbow-minus, .ytree-elbow-end-plus, .ytree-elbow-end-minus{ + cursor:pointer; +} + +.ytree-node{ + color: black; + font: normal 11px arial, helvetica, sans-serif; + white-space: nowrap; +} +.ytree-node a, .ydd-drag-ghost a{ + text-decoration:none; + color:black; + -khtml-user-select:normal; + -moz-user-select:normal; +} +.ytree-node a span, .ydd-drag-ghost a span{ + text-decoration:none; + color:black; + padding:1px 3px 1px 2px; +} +.ytree-node .ytree-node-disabled a span{ + color:gray !important; +} +.ytree-node .ytree-node-disabled .ytree-node-icon{ + -moz-opacity: 0.5; + opacity:.5; + filter: alpha(opacity=50); +} +.ytree-node .ytree-node-inline-icon{ + background:transparent; +} +.ytree-node a:hover, .ydd-drag-ghost a:hover{ + text-decoration:none; +} +.ytree-node div.ytree-drag-insert-below{ + border-bottom:1px dotted #3366cc; +} +.ytree-node div.ytree-drag-insert-above{ + border-top:1px dotted #3366cc; +} +.ytree-dd-underline .ytree-node div.ytree-drag-insert-below{ + border-bottom:0px none; +} +.ytree-dd-underline .ytree-node div.ytree-drag-insert-above{ + border-top:0px none; +} +.ytree-dd-underline .ytree-node div.ytree-drag-insert-below a{ + border-bottom:2px solid #3366cc; +} +.ytree-dd-underline .ytree-node div.ytree-drag-insert-above a{ + border-top:2px solid #3366cc; +} +.ytree-node .ytree-drag-append a span{ + background:#dddddd; + border:1px dotted gray; +} +.ytree-node .ytree-selected a span{ + background:#3366cc; + color:white; +} +.ydd-drag-ghost .ytree-node-indent, .ydd-drag-ghost .ytree-ec-icon{ + display:none !important; +} +.ytree-drop-ok-append .ydd-drop-icon{ + background-image: url(../images/default/tree/drop-add.gif); +} +.ytree-drop-ok-above .ydd-drop-icon{ + background-image: url(../images/default/tree/drop-over.gif); +} +.ytree-drop-ok-below .ydd-drop-icon{ + background-image: url(../images/default/tree/drop-under.gif); +} +.ytree-drop-ok-between .ydd-drop-icon{ + background-image: url(../images/default/tree/drop-between.gif); +} +.ylayer-shadow{ + background:#cccccc; + opacity:.3; + -moz-opacity:.3; + filter: alpha(opacity=30); +} diff --git a/frontend/beta/css/yui-extensions/ytheme-aero.css b/frontend/beta/css/yui-extensions/ytheme-aero.css new file mode 100644 index 0000000..10d8ec0 --- /dev/null +++ b/frontend/beta/css/yui-extensions/ytheme-aero.css @@ -0,0 +1,361 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/** +* Tabs +*/ +.ytab-wrap, .ylayout-panel .ytabs-top .ytab-wrap { + background:#deecfd; + border:1px solid #8db2e3; + padding-bottom:2px; + padding-top:0px; +} +.ytab-strip-wrap{ + padding-top:1px; + background:#cedff5 url(../images/aero/tabs/tab-strip-bg.gif) repeat-x bottom; + border-bottom:1px solid #8db2e3; +} +.ytab-strip .ytab-text { + color:#15428b; + font-weight:normal; +} +.ytab-strip .on .ytab-text { + cursor:default; + color:#15428b; +} +.ytabs-top .ytab-strip .on .ytab-right { + background: url(../images/aero/tabs/tab-sprite.gif) no-repeat right 0px; +} +.ytabs-top .ytab-strip .on .ytab-left,.ytabs-top .ytab-strip .on a:hover .ytab-left{ + background: url(../images/aero/tabs/tab-sprite.gif) no-repeat 0px -100px; +} +.ytabs-top .ytab-strip .ytab-right { + background:transparent url(../images/aero/tabs/tab-sprite.gif) no-repeat right -50px; +} +.ytabs-top .ytab-strip .ytab-left { + background:transparent url(../images/aero/tabs/tab-sprite.gif) no-repeat 0px -150px; +} +.ytabs-top .yui-ext-tabbody { + border:1px solid #8db2e3; + border-top:0px none; +} +.ytabs-bottom .ytab-wrap, .ylayout-panel .ytabs-bottom .ytab-wrap { + background:#deecfd; + border:1px solid #8db2e3; + padding-top:2px; + padding-bottom:0px; +} +.ytabs-bottom .ytab-strip-wrap{ + padding-top:0px; + padding-bottom:1px; + background:#cedff5 url(../images/aero/tabs/tab-strip-btm-bg.gif) repeat-x top; + border-top:1px solid #8db2e3; + border-bottom:0px none; +} +.ytabs-bottom .ytab-strip .ytab-right { + background:transparent url(../images/aero/tabs/tab-btm-inactive-right-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .ytab-strip .ytab-left { + background:transparent url(../images/aero/tabs/tab-btm-inactive-left-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .on .ytab-right,.ytabs-bottom .ytab-strip .on a:hover { + background: url(../images/aero/tabs/tab-btm-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .on .ytab-left,.ytabs-bottom .ytab-strip .on a:hover .ytab-left { + background: url(../images/aero/tabs/tab-btm-left-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .yui-ext-tabbody { + border:1px solid #8db2e3; + border-bottom:0px none; +} +/** +* Basic-Dialog +*/ +.ydlg-proxy { + background:#C7DFFC; + border:1px solid #A5CCF9; +} +.ydlg-shadow{ + background:#cccccc; + opacity:.3; + -moz-opacity:.3; + filter: alpha(opacity=30); +} +.ydlg { + background:transparent; +} +.ydlg .ydlg-hd { + background: url(../images/aero/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; + background-color:#aabaca; + color:#15428b; + zoom:1; + padding-top:7px; +} +.ydlg .ydlg-hd-left { + opacity:.85;-moz-opacity:.85;filter:alpha(opacity=80); + background: url(../images/aero/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; + zoom:1; +} +.ydlg-modal .ydlg-hd-left { + opacity:.75;-moz-opacity:.75;filter:alpha(opacity=70); +} + +.ydlg .ydlg-hd-right { + background: url(../images/aero/basic-dialog/hd-sprite.gif) no-repeat right 0px; + zoom:1; +} +.ydlg .ydlg-dlg-body{ + padding:0px 0px 0px; + position:absolute; + top:24px;left:0px; + z-index:1; + border:0px none; + background:transparent; +} +.ydlg .ydlg-bd{ + background:#fff; + border:1px solid #96b9e6; +} +.ydlg .ydlg-ft{ + border:0px none; + background:transparent; + padding-bottom:8px; +} +.ydlg .ydlg-bg{ + filter:alpha(opacity=80); + opacity:.85; + -moz-opacity:.85; + zoom:1; +} +.ydlg-modal .ydlg-bg { + opacity:.75;-moz-opacity:.75;filter:alpha(opacity=70); +} +.ydlg .ydlg-bg-center { + padding: 2px 7px 7px 7px; + background:transparent url(../images/aero/basic-dialog/bg-center.gif) repeat-x bottom; + zoom:1; +} +.ydlg .ydlg-bg-left{ + padding-left:7px; + background:transparent url(../images/aero/basic-dialog/bg-left.gif) no-repeat bottom left; + zoom:1; +} +.ydlg .ydlg-bg-right{ + padding-right:7px; + background:transparent url(../images/aero/basic-dialog/bg-right.gif) no-repeat bottom right; + zoom:1; +} +.ydlg-auto-tabs .ydlg-dlg-body, .ydlg-auto-layout .ydlg-dlg-body{ + background:transparent; + border:0px none; +} +.ydlg-auto-tabs .ydlg-bd, .ydlg-auto-layout .ydlg-bd{ + background:#fff; + border:1px solid #e9f3f5; +} +.ydlg-auto-tabs .ytabs-top .yui-ext-tabbody,.ydlg-auto-tabs .ytabs-bottom .yui-ext-tabbody{ + border-color:#8db2e3; +} +.ydlg-auto-tabs .ytabs-top .ytab-wrap,.ydlg-auto-tabs .ytabs-bottom .ytab-wrap{ + border-color:#8db2e3; +} +.ydlg .ydlg-close { + width:21px; + height:20px; + top:5px; + right:5px; + opacity:.85;-moz-opacity:.85;filter:alpha(opacity=80); + background-image:url(../images/aero/basic-dialog/aero-close.gif); + zoom:1; +} +.ydlg .ydlg-close-over { + background-image:url(../images/aero/basic-dialog/aero-close-over.gif); +} +.ydlg div.yresizable-handle-east{ + background-image:url(../images/aero/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-south{ + background-image:url(../images/aero/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-west{ + background-image:url(../images/aero/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-southeast{ + background-image:url(../images/aero/basic-dialog/se-handle.gif); + background-position: bottom right; + width:9px; + height:9px; + border:0px; + right:2px; + bottom:2px; +} +.ydlg div.yresizable-handle-southwest{ + background-image:url(../images/aero/s.gif); + background-position: top right; + margin-left:1px; + margin-bottom:1px; + border:0px; +} +.ydlg div.yresizable-handle-north{ + background-image:url(../images/aero/s.gif); + border:0px none; +} + +#mb-dlg .ydlg-bd{ + background:#CFE0F5; + border:0px none; +} + +/* BorderLayout */ +.ylayout-container{ + background:#deecfd; +} +.ylayout-collapsed{ + background-color:#deecfd; + border:1px solid #99bbe8; +} +.ylayout-collapsed-over{ + background-color:#F5F9FE; +} +.ylayout-panel{ + border:1px solid #99bbe8; +} +.ylayout-nested-layout .ylayout-panel { + border:0px none; +} +.ylayout-split{ + background-color:#deecfd; +} +.ylayout-panel-hd{ + background-image: url(../images/aero/layout/panel-title-light-bg.gif); + border-bottom:1px solid #c0d7f4; +} +.ylayout-panel-hd-text { + color:#15428b; +} + +.ylayout-split-h{ + background:#deecfd; +} +.ylayout-split-v{ + background:#deecfd; +} +.ylayout-panel .ytabs-top .ytab-wrap{ + border:0px none; + border-bottom:1px solid #8db2e3; +} +.ylayout-panel .ytabs-bottom .ytab-wrap{ + border:0px none; + border-top:1px solid #8db2e3; +} +.ylayout-container .yui-ext-tabbody{ + border:0px none; +} + +.ylayout-nested-layout .ylayout-panel-north { + border-bottom:1px solid #99bbe8; +} +.ylayout-nested-layout .ylayout-panel-south { + border-top:1px solid #99bbe8; +} +.ylayout-nested-layout .ylayout-panel-east { + border-left:1px solid #99bbe8; +} +.ylayout-nested-layout .ylayout-panel-west { + border-right:1px solid #99bbe8; +} +.ylayout-panel-dragover { + border: 2px solid #99bbe8; +} +.ylayout-panel-proxy { + background-image: url(../images/aero/layout/gradient-bg.gif); + background-color:#f3f2e7; + border:1px dashed #99bbe8; +} +/** Resizable */ + +.yresizable-proxy{ + border: 1px dashed #3b5a82; +} + +/* grid */ +.ygrid-hd{ + border-bottom:0px; + background:none; +} +.ygrid-hd-body { + border-bottom:0px none; +} +.ygrid-hd-over { + border-bottom:0px none; +} +.ygrid-hd-over .ygrid-hd-body{ + background:none; + border-bottom:0px none; +} +.ygrid-hd-over .ygrid-hd-body{ + background-color: transparent; + border-bottom:0px; +} +.ygrid-hd-split { + background-image: url(../images/aero/grid/grid-split.gif); +} +.ygrid-hrow{ + background: url(../images/aero/grid/grid-hrow.gif); + height: 22px; + border:0px none; +} +.ygrid-row-alt{ + background-color: #f5f5f5; +} +.ygrid-row{ + border-bottom: 1px solid #eeeeee; +} +.ygrid-col{ + border-right:1px solid #eeeeee; +} +.ygrid-sort-col .ygrid-hd-body { + padding-bottom:4px; +} + +/** Toolbar */ +.ytoolbar{ + border:0px none; + background: #E2ECF8; + padding:1px 3px; + border-bottom:1px solid #c0d7f4; +} +.ytoolbar .ytb-button-over{ + border:1px solid #8db2e3; +} +.ytoolbar .ytb-sep{ + background-image: url(../images/aero/grid/grid-blue-split.gif); +} diff --git a/frontend/beta/css/yui-extensions/ytheme-gray.css b/frontend/beta/css/yui-extensions/ytheme-gray.css new file mode 100644 index 0000000..675fed1 --- /dev/null +++ b/frontend/beta/css/yui-extensions/ytheme-gray.css @@ -0,0 +1,300 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/** +* Basic-Dialog +*/ +.ydlg-proxy { + background-image: url(../images/gray/layout/gradient-bg.gif); + background-color:#EAE8D5; + border:1px solid #b3b6b0; +} +.ydlg-shadow{ + background:#aaaaaa; +} +.ydlg-proxy .tabset{ + background:url(../images/gray/layout/gradient-bg.gif); +} +.ydlg .ydlg-hd { + background: url(../images/gray/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; + background-color:#333333; +} +.ydlg .ydlg-hd-left { + background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; +} +.ydlg .ydlg-hd-right { + background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat right 0px; +} +.ydlg .ydlg-dlg-body{ + background:#efefec; + border:1px solid #b3b6b0; + border-top:0px none; +} +.ydlg .ytabs-top .yui-ext-tabbody{ + border:1px solid #b3b6b0; + border-top:0px none; +} +.ydlg .ytabs-bottom .yui-ext-tabbody{ + border:1px solid #b3b6b0; + border-bottom:0px none; +} +.ydlg .ylayout-container .yui-ext-tabbody{ + border:0px none; +} +.ydlg .ydlg-close { + background-image:url(../images/gray/basic-dialog/close.gif); +} +.ydlg div.yresizable-handle-east{ + background-image:url(../images/gray/basic-dialog/e-handle.gif); + border:0px none; +} +.ydlg div.yresizable-handle-south{ + background-image:url(../images/gray/basic-dialog/s-handle.gif); + border:0px none; +} +.ydlg div.yresizable-handle-west{ + background-image:url(../images/gray/basic-dialog/e-handle.gif); + border:0px none; +} +.ydlg div.yresizable-handle-southeast{ + background-image:url(../images/gray/basic-dialog/se-handle.gif); + background-position: bottom right; + width:8px; + height:8px; + border:0px; +} +.ydlg div.yresizable-handle-southwest{ + background-image:url(../images/gray/sizer/sw-handle-dark.gif); + background-position: top right; + margin-left:1px; + margin-bottom:1px; + border:0px; +} +.ydlg div.yresizable-handle-north{ + background-image:url(../images/gray/s.gif); + border:0px none; +} + +/** +* Tabs +*/ +.ytab-wrap { + border-bottom:1px solid #aca899; +} +.ytab-strip .on .ytab-text { + cursor:default; + color:#333333; +} +.ytabs-top .ytab-strip .on .ytab-right { + background: url(../images/gray/tabs/tab-sprite.gif) no-repeat right 0px; +} +.ytabs-top .ytab-strip .on .ytab-left { + background: url(../images/gray/tabs/tab-sprite.gif) no-repeat 0px -100px; +} +.ytabs-top .ytab-strip .ytab-right { + background: url(../images/gray/tabs/tab-sprite.gif) no-repeat right -50px; +} +.ytabs-top .ytab-strip .ytab-left { + background: url(../images/gray/tabs/tab-sprite.gif) no-repeat 0px -150px; +} +.ytab-strip .ytab-closable .close-icon{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-position: 50% -60px; +} +.ytab-strip .on .close-icon{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-position: 50% -60px; +} +.ytab-strip .ytab-closable .close-over{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-position: 50% -72px; +} + +.ytabs-bottom .ytab-wrap { + border-bottom:0px none; + padding-top:0px; + border-top:1px solid #aca899; +} +.ytabs-bottom .ytab-strip .ytab-right { + background: url(../images/gray/tabs/tab-btm-inactive-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .ytab-left { + background: url(../images/gray/tabs/tab-btm-inactive-left-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .ytab-strip .on .ytab-right { + background: url(../images/gray/tabs/tab-btm-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .on .ytab-left { + background: url(../images/gray/tabs/tab-btm-left-bg.gif) no-repeat bottom right; +} + +/* QuickTips */ + +.ytip .ytip-hd-right{ + background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat right 0px; +} +.ytip .ytip-hd-left{ + background: url(../images/gray/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; +} +.ytip .ytip-hd{ + background: url(../images/gray/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; +} +.ytip .ytip-close{ + background-image: url(../images/gray/basic-dialog/close.gif); +} +.ytip .ytip-bd{ + background: #e7e7e7 url(../images/gray/qtip/bg.gif); + border: 1px solid #ababab; +} + +/* BorderLayout */ + +.ylayout-container{ + background-color:#f3f2e7; +} +.ylayout-collapsed{ + background-color:#f3f2e7; + border:1px solid #aca899; +} +.ylayout-collapsed-over{ + background-color:#fbfbef; +} +.ylayout-panel{ + border:1px solid #aca899; +} +.ylayout-nested-layout .ylayout-panel { + border:0px none; +} +.ylayout-split{ + background-color:#f3f2e7; +} +.ylayout-panel-hd{ + background-image: url(../images/gray/layout/panel-title-light-bg.gif); + border-bottom:1px solid #aca899; +} +.ylayout-tools-button-over{ + border:1px solid #aca899; +} +.ylayout-close{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -48px; +} +.ylayout-collapse-west,.ylayout-expand-east{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% 0; +} +.ylayout-expand-west,.ylayout-collapse-east{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -12px; +} +.ylayout-collapse-north,.ylayout-expand-south{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -24px; +} +.ylayout-expand-north,.ylayout-collapse-south{ + background-image:url(../images/gray/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -36px; +} +.ylayout-split-h{ + background-image:url(../images/gray/sizer/e-handle-dark.gif); +} +.ylayout-split-v{ + background-image:url(../images/gray/sizer/s-handle-dark.gif); +} +.ylayout-panel .ytab-wrap{ + background:url(../images/gray/layout/gradient-bg.gif); +} +.ylayout-nested-layout .ylayout-panel-north { + border-bottom:1px solid #aca899; +} +.ylayout-nested-layout .ylayout-panel-south { + border-top:1px solid #aca899; +} +.ylayout-nested-layout .ylayout-panel-east { + border-left:1px solid #aca899; +} +.ylayout-nested-layout .ylayout-panel-west { + border-right:1px solid #aca899; +} +.ylayout-panel-dragover { + border: 2px solid #aca899; +} +.ylayout-panel-proxy { + background-image: url(../images/gray/layout/gradient-bg.gif); + background-color:#f3f2e7; + border:1px dashed #aca899; +} +/** Resizable */ + +.yresizable-over .yresizable-handle-east, .yresizable-pinned .yresizable-handle-east{ + background:url(../images/gray/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-east, .yresizable-pinned .yresizable-handle-west{ + background:url(../images/gray/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-south, .yresizable-pinned .yresizable-handle-south{ + background:url(../images/gray/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-south, .yresizable-pinned .yresizable-handle-north{ + background:url(../images/gray/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-southeast, .yresizable-pinned .yresizable-handle-southeast{ + background:url(../images/gray/sizer/se-handle.gif); + background-position: top left; +} +.yresizable-over .yresizable-handle-northwest,.yresizable-pinned .yresizable-handle-northwest{ + background:url(../images/gray/sizer/nw-handle.gif); + background-position:bottom right; +} +.yresizable-over .yresizable-handle-northeast,.yresizable-pinned .yresizable-handle-northeast{ + background:url(../images/gray/sizer/ne-handle.gif); + background-position: bottom left; +} +.yresizable-over .yresizable-handle-southwest,.yresizable-pinned .yresizable-handle-southwest{ + background:url(../images/gray/sizer/sw-handle.gif); + background-position: top right; +} +.yresizable-proxy{ + border: 1px dashed #615e55; +} + +/** Toolbar */ +.ytoolbar{ + border:0px none; + background: #efefe3 url(../images/gray/toolbar/gray-bg.gif) repeat-x; + padding:3px; +} diff --git a/frontend/beta/css/yui-extensions/ytheme-vista.css b/frontend/beta/css/yui-extensions/ytheme-vista.css new file mode 100644 index 0000000..2770566 --- /dev/null +++ b/frontend/beta/css/yui-extensions/ytheme-vista.css @@ -0,0 +1,403 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/** +* Tabs +*/ +.ytab-wrap { + background:#4f4f4f; + border-bottom:1px solid #b3b6b0; +} +.ytab-strip .ytab-text { + color:white; + font-weight:normal; +} +.ytab-strip .on .ytab-text { + cursor:default; + color:#333333; +} +.ytabs-top .ytab-strip a:hover { + background:transparent url(../images/vista/tabs/tab-sprite.gif) no-repeat right -50px; +} +.ytabs-top .ytab-strip a:hover .ytab-left { + background:transparent url(../images/vista/tabs/tab-sprite.gif) no-repeat 0 -150px; +} +.ytabs-top .ytab-strip .on .ytab-right, .ytabs-top .ytab-strip .on a:hover { + background: url(../images/vista/tabs/tab-sprite.gif) no-repeat right 0; +} +.ytabs-top .ytab-strip .on .ytab-left, .ytabs-top .ytab-strip .on a:hover .ytab-left { + background: url(../images/vista/tabs/tab-sprite.gif) no-repeat 0 -100px; +} +.ytabs-top .ytab-strip .ytab-right { + background:transparent; +} +.ytabs-top .ytab-strip .ytab-left { + background:transparent; +} +.ytab-strip .ytab-closable .close-icon{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-position: 50% -60px; +} +.ytab-strip .on .close-icon{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-position: 50% -72px; +} +.ytab-strip .ytab-closable .close-over{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-position: 50% -72px; +} + +.ytabs-bottom .ytab-strip { + background:#4f4f4f; +} +.ytabs-bottom .ytab-strip a:hover { + background:transparent url(../images/vista/tabs/tab-btm-inactive-right-bg.gif) no-repeat bottom right; +} +.ytabs-bottom .ytab-strip a:hover .ytab-left{ + background:transparent url(../images/vista/tabs/tab-btm-inactive-left-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-wrap { + border-bottom:0px none; + padding-top:0px; + border-top:1px solid #b3b6b0; +} +.ytabs-bottom .ytab-strip .ytab-right { + background:transparent; +} +.ytabs-bottom .ytab-strip .ytab-left { + background:transparent; +} +.ytabs-bottom .ytab-strip .on .ytab-right,.ytabs-bottom .ytab-strip .on a:hover { + background: url(../images/vista/tabs/tab-btm-right-bg.gif) no-repeat bottom left; +} +.ytabs-bottom .ytab-strip .on .ytab-left,.ytabs-bottom .ytab-strip .on a:hover .ytab-left { + background: url(../images/vista/tabs/tab-btm-left-bg.gif) no-repeat bottom right; +} +/** +* Basic-Dialog +*/ +.ydlg-proxy { + background:#d3d6d0; + border:2px solid #b3b6b0; +} +.ydlg-shadow{ + background:#cccccc; + opacity:.3; + -moz-opacity:.3; + filter: alpha(opacity=30); +} +.ydlg .ydlg-hd { + background: url(../images/vista/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; + background-color:#333333; + zoom:1; +} +.ydlg .ydlg-hd-left { + opacity:.95;-moz-opacity:.95;filter:alpha(opacity=90); + background: url(../images/vista/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; + zoom:1; +} +.ydlg .ydlg-hd-right { + background: url(../images/vista/basic-dialog/hd-sprite.gif) no-repeat right 0px; + zoom:1; +} +.ydlg .ydlg-dlg-body{ + background:#fff; + border:0 none; + border-top:0px none; + padding:0px 0px 0px; + position:absolute; + top:24px;left:0px; + z-index:1; +} +.ydlg-auto-tabs .ydlg-dlg-body{ + background:transparent; +} +.ydlg-auto-tabs .ytabs-top .ytab-wrap{ + background:transparent; +} +.ydlg .ydlg-ft{ + border-top:1px solid #b3b6b0; + background:#F0F0F0; + padding-bottom:8px; +} +.ydlg .ydlg-bg{ + opacity:.90;-moz-opacity:.90;filter:alpha(opacity=85); + zoom:1; +} +.ydlg .ydlg-bg-left,.ydlg .ydlg-bg-center,.ydlg .ydlg-bg-right{ +} +.ydlg .ydlg-bg-center { + padding: 0px 4px 4px 4px; + background:transparent url(../images/vista/basic-dialog/bg-center.gif) repeat-x bottom; + zoom:1; +} +.ydlg .ydlg-bg-left{ + padding-left:4px; + background:transparent url(../images/vista/basic-dialog/bg-left.gif) no-repeat bottom left; + zoom:1; +} +.ydlg .ydlg-bg-right{ + padding-right:4px; + background:transparent url(../images/vista/basic-dialog/bg-right.gif) no-repeat bottom right; + zoom:1; +} +.ydlg .ytabs-top .yui-ext-tabbody{ + border:0px none; +} +.ydlg .ytabs-bottom .yui-ext-tabbody{ + border:1px solid #b3b6b0; + border-bottom:0px none; +} +.ydlg .ylayout-container .yui-ext-tabbody{ + border:0px none; +} +.ydlg .ydlg-close { + background-image:url(../images/vista/basic-dialog/close.gif); +} +.ydlg div.yresizable-handle-east{ + background-image:url(../images/vista/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-south{ + background-image:url(../images/vista/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-west{ + background-image:url(../images/vista/s.gif); + border:0px none; +} +.ydlg div.yresizable-handle-southeast{ + background-image:url(../images/vista/s.gif); + background-position: bottom right; + width:8px; + height:8px; + border:0px; +} +.ydlg div.yresizable-handle-southwest{ + background-image:url(../images/vista/s.gif); + background-position: top right; + margin-left:1px; + margin-bottom:1px; + border:0px; +} +.ydlg div.yresizable-handle-north{ + background-image:url(../images/vista/s.gif); + border:0px none; +} + +/* QuickTips */ + +.ytip .ytip-hd-right{ + background: url(../images/vista/basic-dialog/hd-sprite.gif) no-repeat right 0px; +} +.ytip .ytip-hd-left{ + background: url(../images/vista/basic-dialog/hd-sprite.gif) no-repeat 0px -41px; +} +.ytip .ytip-hd{ + background: url(../images/vista/basic-dialog/hd-sprite.gif) repeat-x 0px -82px; +} +.ytip .ytip-close{ + background-image: url(../images/vista/basic-dialog/close.gif); +} +.ytip .ytip-bd{ + background: #e7e7e7 url(../images/vista/qtip/bg.gif); + border: 1px solid #ababab; +} + +/* BorderLayout */ +.ylayout-container{ + background:#4f4f4f; +} +.ylayout-collapsed{ + background-color:#9f9f9f; + border:1px solid #4c535c; +} +.ylayout-collapsed-over{ + background-color:#bfbfbf; +} +.ylayout-panel{ + border:1px solid #4c535c; +} +.ylayout-nested-layout .ylayout-panel { + border:0px none; +} +.ylayout-split{ + background-color:#f3f2e7; +} +.ylayout-panel-hd{ + background-image: url(../images/vista/layout/panel-title-bg.gif); + border-bottom:1px solid #b5bac1; +} +.ylayout-panel-hd-text{ + color:white; +} +.ylayout-tools-button-over{ + border:1px solid #4c535c; + background:#9f9f9f url(../images/vista/layout/panel-title-bg.gif) repeat-x; +} +.ylayout-close{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -60px; +} +.ylayout-collapse-west,.ylayout-expand-east{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% 0; +} +.ylayout-expand-west,.ylayout-collapse-east{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -12px; +} +.ylayout-collapse-north,.ylayout-expand-south{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -24px; +} +.ylayout-expand-north,.ylayout-collapse-south{ + background-image:url(../images/vista/layout/layout-sprite.gif); + background-repeat: no-repeat; + background-position: 50% -36px; +} +.ylayout-split-h{ + background:#9f9f9f; +} +.ylayout-split-v{ + background:#9f9f9f; +} +.ylayout-panel .ytab-wrap{ + background:#4f4f4f; +} +.ylayout-nested-layout .ylayout-panel-north { + border-bottom:1px solid #4c535c; +} +.ylayout-nested-layout .ylayout-panel-south { + border-top:1px solid #4c535c; +} +.ylayout-nested-layout .ylayout-panel-east { + border-left:1px solid #4c535c; +} +.ylayout-nested-layout .ylayout-panel-west { + border-right:1px solid #4c535c; +} +.ylayout-panel-dragover { + border: 2px solid #4c535c; +} +.ylayout-panel-proxy { + background-image: url(../images/vista/layout/gradient-bg.gif); + background-color:#f3f2e7; + border:1px dashed #4c535c; +} +/** Resizable */ + +.yresizable-over .yresizable-handle-east, .yresizable-pinned .yresizable-handle-east{ + background:url(../images/vista/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-east, .yresizable-pinned .yresizable-handle-west{ + background:url(../images/vista/sizer/e-handle.gif); + background-position: left; +} +.yresizable-over .yresizable-handle-south, .yresizable-pinned .yresizable-handle-south{ + background:url(../images/vista/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-south, .yresizable-pinned .yresizable-handle-north{ + background:url(../images/vista/sizer/s-handle.gif); + background-position: top; +} +.yresizable-over .yresizable-handle-southeast, .yresizable-pinned .yresizable-handle-southeast{ + background:url(../images/vista/sizer/se-handle.gif); + background-position: top left; +} +.yresizable-over .yresizable-handle-northwest,.yresizable-pinned .yresizable-handle-northwest{ + background:url(../images/vista/sizer/nw-handle.gif); + background-position:bottom right; +} +.yresizable-over .yresizable-handle-northeast,.yresizable-pinned .yresizable-handle-northeast{ + background:url(../images/vista/sizer/ne-handle.gif); + background-position: bottom left; +} +.yresizable-over .yresizable-handle-southwest,.yresizable-pinned .yresizable-handle-southwest{ + background:url(../images/vista/sizer/sw-handle.gif); + background-position: top right; +} +.yresizable-proxy{ + border: 1px dashed #615e55; +} + +/** Toolbar */ +.ytoolbar{ + border:0px none; + background: #efefe3 url(../images/vista/toolbar/gray-bg.gif) repeat-x; + padding:3px; +} +.ytoolbar .ytb-button-over{ + border:1px solid transparent; + border-bottom:1px solid #bbbbbb; + border-top:1px solid #eeeeee; + background:#9f9f9f url(../images/vista/grid/grid-vista-hd.gif) repeat-x; +} +/* grid */ +.ygrid-hd{ + border-bottom:0px; + background:none; +} +.ygrid-hd-body { + border-bottom: 1px solid #b3bcc0; +} +.ygrid-hd-over{ + border-bottom:0px; +} +.ygrid-hd-over .ygrid-hd-body{ + background-color: transparent; + border-bottom:0px; +} +.ygrid-hd-split { + background-image: url(../images/vista/grid/grid-split.gif); +} +.ygrid-hrow{ + background: url(../images/vista/grid/grid-vista-hd.gif); + height: 21px; +} +.ygrid-row-alt{ + background-color: #f5f5f5; +} +.ygrid-row-selected{ + background-color: #535353 !important; + color: white; +} +.ygrid-row-selected span{ + color: white !important; +} +.ygrid-wrap-body { +} +.ytoolbar .ytb-sep{ + background-image: url(../images/vista/grid/grid-split.gif); +} diff --git a/frontend/beta/css/yui/calendar.css b/frontend/beta/css/yui/calendar.css new file mode 100644 index 0000000..a634e50 --- /dev/null +++ b/frontend/beta/css/yui/calendar.css @@ -0,0 +1,189 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +Version 0.11.3 +*/ + +.yui-cal2upwrapper {*height:1%;} /* IE */ +.yui-cal2upwrapper:after {content:'.';clear:both;display:block;visibility:hidden;height:0;} /* others */ + +.yui-calcontainer { + float:left; + padding:5px; + background-color:#F7F9FB; + border:1px solid #7B9EBD; +} + +.yui-calcontainer .title { + font:100% sans-serif; + color:#000; + font-weight:bold; + margin-bottom:5px; + height:auto; + position:relative; +} + +.yui-calcontainer .title .close-icon { + position:absolute; + right:0; + top:0; + border:none; +} + +.yui-calcontainer .cal2up { + float:left; +} + +.yui-calendar .calnavleft { + position:absolute; + background-repeat:no-repeat; + cursor:pointer; + top:2px; + bottom:0; + width:9px; + height:12px; + left:2px; +} + +.yui-calendar .calnavright { + position:absolute; + background-repeat:no-repeat; + cursor:pointer; + top:2px; + bottom:0; + width:9px; + height:12px; + right:2px; +} + +/* Calendar element styles */ + +.yui-calendar { + font:100% sans-serif; + text-align:center; + border-spacing:0; + border-collapse:separate; +} + +.yui-calendar td.calcell { + padding:.1em .2em; + border:1px solid #E0E0E0; + background-color:#FFF; +} + +.yui-calendar td.calcell a { + color:#003DB8; + text-decoration:none; +} + +.yui-calendar td.calcell.today { + border:1px solid #000; +} + +.yui-calendar td.calcell.oom { + cursor:default; + color:#999; + background-color:#EEE; + border:1px solid #E0E0E0; +} + +.yui-calendar td.calcell.selected { + color:#003DB8; + background-color:#FFF19F; + border:1px solid #FF9900; +} + +.yui-calendar td.calcell.calcellhover { + cursor:pointer; + color:#FFF; + background-color:#FF9900; + border:1px solid #FF9900; +} + +.yui-calendar td.calcell.calcellhover a { + color:#FFF; +} + +.yui-calendar td.calcell.restricted { + text-decoration:line-through; +} + +.yui-calendar td.calcell.previous { + color:#CCC; +} + +.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; } +.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; } +.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; } +.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; } + + +.yui-calendar .calhead { + border:1px solid #E0E0E0; + vertical-align:middle; + background-color:#FFF; +} + +.yui-calendar .calheader { + position:relative; + width:100%; + text-align:center; +} + +.yui-calendar .calheader img { + border:none; +} + +.yui-calendar .calweekdaycell { + color:#666; + font-weight:normal; +} + +.yui-calendar .calfoot { + background-color:#EEE; +} + +.yui-calendar .calrowhead, .yui-calendar .calrowfoot { + color:#666; + font-size:9px; + font-style:italic; + font-weight:normal; + width:15px; +} + +.yui-calendar .calrowhead { + border-right-width:2px; +} + +/*Specific changes for calendar running under fonts/reset */ +.yui-calendar a:hover {background:inherit;} +p#clear {clear:left; padding-top:10px;} diff --git a/frontend/beta/css/yui/container.css b/frontend/beta/css/yui/container.css new file mode 100644 index 0000000..1d7154c --- /dev/null +++ b/frontend/beta/css/yui/container.css @@ -0,0 +1,240 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +Version 0.11.4 +*/ + +.overlay { + position:absolute; + display:block; +} + +.tt { + visibility:hidden; + position:absolute; + color:#333; + background-color:#FDFFB4; + font-family:arial,helvetica,verdana,sans-serif; + padding:2px; + border:1px solid #FCC90D; + font:100% sans-serif; + width:auto; +} + +* html body.masked select { + visibility:hidden; +} + +* html div.panel-container select { + visibility:inherit; +} + +* html div.drag select { + visibility:hidden; +} + +* html div.hide-select select { + visibility:hidden; +} + +.mask { + z-index:0; + display:none; + position:absolute; + top:0; + left:0; + -moz-opacity: 0.5; + opacity:.50; + filter: alpha(opacity=50); + background-color:#CCC; +} + +.hide-scrollbars * { + overflow:hidden; +} + +.hide-scrollbars textarea, .hide-scrollbars select { + overflow:hidden; + display:none; +} + +.show-scrollbars textarea, .show-scrollbars select { + overflow:visible; +} + +.panel-container { + position:absolute; + background-color:transparent; + z-index:6; + visibility:hidden; + overflow:visible; + width:auto; +} + +.panel-container.matte { + padding:3px; + background-color:#FFF; +} + +.panel-container.matte .underlay { + display:none; +} + +.panel-container.shadow { + padding:0px; + background-color:transparent; +} + +.panel-container.shadow .underlay { + visibility:inherit; + position:absolute; + background-color:#CCC; + top:3px;left:3px; + z-index:0; + width:100%; + height:100%; + -moz-opacity: 0.7; + opacity:.70; + filter:alpha(opacity=70); + zoom:1; +} + +.panel { + visibility:hidden; + border-collapse:separate; + position:relative; + left:0px;top:0px; + font:1em Arial; + background-color:#FFF; + border:1px solid #000; + z-index:1; + overflow:hidden; +} + +.panel .hd { + background-color:#3d77cb; + color:#FFF; + font-size:100%; + line-height:100%; + border:1px solid #FFF; + border-bottom:1px solid #000; + font-weight:bold; + overflow:hidden; + padding:4px; +} + +.panel .bd { + overflow:hidden; + padding:4px; +} + +.panel .bd p { + margin:0 0 1em; +} + +.panel .close { + position:absolute; + top:5px; + right:4px; + z-index:6; + height:12px; + width:12px; + margin:0px; + padding:0px; + background-repeat:no-repeat; + cursor:pointer; + visibility:inherit; +} + +.panel .close.nonsecure { + background-image:url(../../images/yui/container/close12_1.gif); +} + +.panel .close.secure { + background-image:url(../../images/yui/container/close12_1.gif); +} + +.panel .ft { + padding:4px; + overflow:hidden; +} + +.simple-dialog .bd .icon { + background-repeat:no-repeat; + width:16px; + height:16px; + margin-right:10px; + float:left; +} + +.dialog .ft, .simple-dialog .ft { + padding-bottom:5px; + padding-right:5px; + text-align:right; +} + +.dialog form, .simple-dialog form { + margin:0; +} + +.button-group button { + font:100 76% verdana; + text-decoration:none; + background-color: #E4E4E4; + color: #333; + cursor: hand; + vertical-align: middle; + border: 2px solid #797979; + border-top-color:#FFF; + border-left-color:#FFF; + margin:2px; + padding:2px; +} + +.button-group button.default { + font-weight:bold; +} + +.button-group button:hover, .button-group button.hover { + border:2px solid #90A029; + background-color:#EBF09E; + border-top-color:#FFF; + border-left-color:#FFF; +} + +.button-group button:active { + border:2px solid #E4E4E4; + background-color:#BBB; + border-top-color:#333; + border-left-color:#333; +} + diff --git a/frontend/beta/css/yui/fonts.css b/frontend/beta/css/yui/fonts.css new file mode 100644 index 0000000..ea8dd16 --- /dev/null +++ b/frontend/beta/css/yui/fonts.css @@ -0,0 +1,62 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.11.3 +*/ + +/** + * 84.5% for !IE, keywords for IE + * Percents could work for IE, but for backCompat purposes, we are using + keywords. + * x-small is for IE < 6 and IE6 quirks mode. + * + */ +body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x- +small;} +table {font-size:inherit;font:100%;} + +/** + * 99% for safari; 100% is too large + */ +select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} + +/** + * Bump up !IE to get to 13px equivalent + */ +pre, code {font:115% monospace;*font-size:100%;} + +/** + * Default line-height based on font-size rather than "computed-value" + * see: http://www.w3.org/TR/CSS21/visudet.html#line-height + */ +body * {line-height:1.22em;} + diff --git a/frontend/beta/css/yui/grids.css b/frontend/beta/css/yui/grids.css new file mode 100644 index 0000000..8b64f89 --- /dev/null +++ b/frontend/beta/css/yui/grids.css @@ -0,0 +1,116 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.11.3 +*/ +body { + text-align:center; +} + +#doc { + width:57.69em; + *width:56.3em; /* IE */ + min-width:750px; + margin:auto; + text-align:left; +} + +#hd,#bd {margin-bottom:1em;text-align:left;} +#ft {font-size:77%;font-family:verdana;clear:both;} + +/* rules for main templates */ +.yui-t1 #yui-main .yui-b, .yui-t2 #yui-main .yui-b, .yui-t3 #yui-main .yui-b, +.yui-t4 .yui-b, .yui-t5 .yui-b, .yui-t6 .yui-b {float:right;} +.yui-t1 .yui-b, .yui-t2 .yui-b, .yui-t3 .yui-b, .yui-t4 #yui-main .yui-b, .yui- +t5 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {float:left;} + +/* t1: L160 */ +.yui-t1 #yui-main .yui-b {width:76%;min-width:570px;} +.yui-t1 .yui-b {width:21.33%;min-width:160px;} + +/* t2 & t4: L180 & R180 */ +.yui-t2 #yui-main .yui-b, .yui-t4 #yui-main .yui-b {width:73.4%;min- +width:550px;} +.yui-t2 .yui-b, .yui-t4 .yui-b {width:24%;min-width:180px;} + +/* t3 & t6: L300 & R300 */ +.yui-t3 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {width:57.6%;min- +width:430px;} +.yui-t3 .yui-b, .yui-t6 .yui-b {width:40%;min-width:300px;} + +/* t5: R240 */ +.yui-t5 #yui-main .yui-b {width:65.4%;min-width:490px;} +.yui-t5 .yui-b {width:32%;min-width:240px;} + +/* t7: 750 */ + + + +/* grid-generic rules for all templates */ + +/* all modules and grids nested in a grid get floated */ +.yui-g .yui-u, .yui-g .yui-g, .yui-ge .yui-u, .yui-gf .yui-u { + float:right; + display:inline; /* IE */ +} + +/* float left and kill margin on first for added flex */ +.yui-g .first, .yui-gd .first, .yui-ge .first, .yui-gf .first {float:left; } + +/* 2 col */ +.yui-g .yui-u, .yui-g .yui-g {width:49.1%;} +.yui-g .yui-g .yui-u {width:48.1%;} /* smaller for nested to preserve margins */ + +/* 3 col */ +.yui-gb .yui-u, .yui-gc .yui-u, .yui-gd .yui-u { + float:left; /* need to reverse the order for 3 */ + margin-left:2%; *margin-left:1.895%; + width:32%; +} + +.yui-gb .first, .yui-gc .first, .yui-gd .first {margin-left:0;} + +/* colspan 2 */ +.yui-gc .first, .yui-gd .yui-u {width:66%;} +.yui-gd .first {width:32%;} + +/* colspan 3 */ +.yui-ge .yui-u {width:24%;} +.yui-ge .first, .yui-gf .yui-u {width:74.2%;} +.yui-gf .first {width:24%;} +.yui-ge .first {width:74.2%;} + +/* self clear floated parent containers */ +#bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui- +ge:after, .yui-gf:after +{content:".";display:block;height:0;clear:both;visibility:hidden;} +#bd, .yui-g, .yui-gb, .yui-gc, .yui-gd, .yui-ge, .yui-gf {zoom:1;} /* IE */ diff --git a/frontend/beta/css/yui/logger.css b/frontend/beta/css/yui/logger.css new file mode 100644 index 0000000..1a00f44 --- /dev/null +++ b/frontend/beta/css/yui/logger.css @@ -0,0 +1,49 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* Copyright (c) 2006, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt Version: 0.11.3 */ +/* logger default styles */ +/* font size is controlled here: default 77% */ +#yui-log {position:absolute;top:1em;right:1em;font-size:77%;text-align:left;} +/* width is controlled here: default 31em */ +.yui-log {padding:1em;width:31em;background-color:#AAA;border:1px solid black;font-family:monospace;z-index:9000;} +.yui-log p {margin:1px;padding:.1em;} +.yui-log button {font-family:monospace;} +.yui-log .yui-log-hd {margin-top:1em;padding:.5em;background-color:#575757;color:#FFF;} +/* height is controlled here: default 20em*/ +.yui-log .yui-log-bd {width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;} +.yui-log .yui-log-ft {margin-top:.5em;margin-bottom:1em;} +.yui-log .yui-log-ft .yui-log-categoryfilters {} +.yui-log .yui-log-ft .yui-log-sourcefilters {width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;} +.yui-log .yui-log-btns {position:relative;float:right;bottom:.25em;} +.yui-log .yui-log-filtergrp {margin-right:.5em;} +.yui-log .info {background-color:#A7CC25;} /* A7CC25 green */ +.yui-log .warn {background-color:#F58516;} /* F58516 orange */ +.yui-log .error {background-color:#E32F0B;} /* E32F0B red */ +.yui-log .time {background-color:#A6C9D7;} /* A6C9D7 blue */ +.yui-log .window {background-color:#F2E886;} /* F2E886 tan */ diff --git a/frontend/beta/css/yui/menu.css b/frontend/beta/css/yui/menu.css new file mode 100644 index 0000000..ab3daea --- /dev/null +++ b/frontend/beta/css/yui/menu.css @@ -0,0 +1,328 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.com/yui/license.txt +Version: 0.11.3 +*/ + + + +/* Menu styles */ + +div.yuimenu { + + z-index:1; + visibility:hidden; + background-color:#f6f7ee; + border:solid 1px #c4c4be; + padding:1px; + +} + + +/* MenuBar Styles */ + +div.yuimenubar { + + background-color:#f6f7ee; + +} + +/* + Application of "zoom:1" triggers "haslayout" in IE so that the module's + body clears its floated elements +*/ +div.yuimenubar div.bd { + + zoom:1; + +} + +/* + Clear the module body for other browsers +*/ +div.yuimenubar div.bd:after { + + content:'.'; + display:block; + clear:both; + visibility:hidden; + height:0; + +} + + +/* Matches the group title (H6) inside a Menu or MenuBar instance */ + +div.yuimenu h6, +div.yuimenubar h6 { + + font-size:100%; + font-weight:normal; + margin:0; + border:solid 1px #c4c4be; + color:#b9b9b9; + +} + +div.yuimenubar h6 { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + padding:4px 12px; + border-width:0 1px 0 0; + +} + +div.yuimenu h6 { + + float:none; + display:block; + border-width:1px 0 0 0; + padding:5px 10px 0 10px; + +} + + +/* Matches the UL inside a Menu or MenuBar instance */ + +div.yuimenubar ul { + + list-style-type:none; + margin:0; + padding:0; + +} + +div.yuimenu ul { + + list-style-type:none; + border:solid 1px #c4c4be; + border-width:1px 0 0 0; + margin:0; + padding:10px 0; + +} + + +div.yuimenu ul.first-of-type, +div.yuimenu ul.hastitle, +div.yuimenu h6.first-of-type { + + border-width:0; + +} + + +/* MenuItem and MenuBarItem styles */ + +div.yuimenu li, +div.yuimenubar li { + + font-size:85%; + cursor:pointer; + cursor:hand; + white-space:nowrap; + text-align:left; + +} + +div.yuimenu li.yuimenuitem { + + padding:2px 24px; + +} + +div.yuimenu li li, +div.yuimenubar li li { + + font-size:100%; + +} + + +/* Matches the help text for a menu item */ + +div.yuimenu li em { + + font-style:normal; + margin:0 0 0 40px; + +} + +div.yuimenu li a em { + + margin:0; + +} + +div.yuimenu li a, +div.yuimenubar li a { + + /* + "zoom:1" triggers "haslayout" in IE to ensure that the mouseover and + mouseout events bubble to the parent LI in IE. + */ + zoom:1; + color:#000; + text-decoration:none; + +} + +div.yuimenu li.hassubmenu, +div.yuimenu li.hashelptext { + + text-align:right; + +} + +div.yuimenu li.hassubmenu a.hassubmenu, +div.yuimenu li.hashelptext a.hashelptext { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + text-align:left; + +} + + +/* Matches focused and selected menu items */ + +div.yuimenu li.selected, +div.yuimenubar li.selected { + + background-color:#8c8ad0; + +} + +div.yuimenu li.selected a.selected, +div.yuimenubar li.selected a.selected { + + text-decoration:underline; + +} + +div.yuimenu li.selected a.selected, +div.yuimenu li.selected em.selected, +div.yuimenubar li.selected a.selected { + + color:#fff; + +} + + +/* Matches disabled menu items */ + +div.yuimenu li.disabled, +div.yuimenubar li.disabled { + + cursor:default; + +} + +div.yuimenu li.disabled a.disabled, +div.yuimenu li.disabled em.disabled, +div.yuimenubar li.disabled a.disabled { + + color:#b9b9b9; + cursor:default; + +} + +div.yuimenubar li.yuimenubaritem { + + float:left; + display:inline; /* Prevent margin doubling in IE */ + border-width:0 0 0 1px; + border-style:solid; + border-color:#c4c4be; + padding:4px 24px; + margin:0; + +} + +div.yuimenubar li.yuimenubaritem.first-of-type { + + border-width:0; + +} + + +/* Matches the submenu indicator for menu items */ + +div.yuimenubar li.yuimenubaritem img { + + height:8px; + width:8px; + margin:0 0 0 10px; + vertical-align:middle; + +} + +div.yuimenu li.yuimenuitem img { + + height:8px; + width:8px; + margin:0 -16px 0 10px; + border:0; + + *margin-left:0; + *border-left-width:10px; + *border-style:solid; + *border-color:#f6f7ee; + +} + +div.yuimenu li.yuimenuitem.selected img.selected { + + *border-color:#8c8ad0; + +} + +div.yuimenu li.checked { + + position:relative; + +} + +div.yuimenu li.checked img.checked { + + height:8px; + width:8px; + margin:0; + border:0; + position:absolute; + left:6px; + _left:-16px; /* Underscore hack b/c this is for IE 5.5 and IE 6 only */ + top:.5em; + +} + diff --git a/frontend/beta/css/yui/reset.css b/frontend/beta/css/yui/reset.css new file mode 100644 index 0000000..c72ae7b --- /dev/null +++ b/frontend/beta/css/yui/reset.css @@ -0,0 +1,43 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.11.3 +*/ +body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;} +table{border-collapse:collapse;border-spacing:0;} +fieldset,img{border:0;} +address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;} +ol,ul {list-style:none;} +caption,th {text-align:left;} +h1,h2,h3,h4,h5,h6{font-size:100%;} +q:before,q:after{content:'';} + diff --git a/frontend/beta/css/yui/tree.css b/frontend/beta/css/yui/tree.css new file mode 100644 index 0000000..8f537ac --- /dev/null +++ b/frontend/beta/css/yui/tree.css @@ -0,0 +1,132 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.com/yui/license.txt +Version: 0.11.3 +*/ + +/* first or middle sibling, no children */ +.ygtvtn { + width:16px; height:22px; + background: url(../../images/yui/treeview/tn.gif) 0 0 no-repeat; +} + +/* first or middle sibling, collapsable */ +.ygtvtm { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/tm.gif) 0 0 no-repeat; +} + +/* first or middle sibling, collapsable, hover */ +.ygtvtmh { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/tmh.gif) 0 0 no-repeat; +} + +/* first or middle sibling, expandable */ +.ygtvtp { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/tp.gif) 0 0 no-repeat; +} + +/* first or middle sibling, expandable, hover */ +.ygtvtph { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/tph.gif) 0 0 no-repeat; +} + +/* last sibling, no children */ +.ygtvln { + width:16px; height:22px; + background: url(../../images/yui/treeview/ln.gif) 0 0 no-repeat; +} + +/* Last sibling, collapsable */ +.ygtvlm { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/lm.gif) 0 0 no-repeat; +} + +/* Last sibling, collapsable, hover */ +.ygtvlmh { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/lmh.gif) 0 0 no-repeat; +} + +/* Last sibling, expandable */ +.ygtvlp { + width:16px; height:22px; + cursor:pointer ; + background: url(../../images/yui/treeview/lp.gif) 0 0 no-repeat; +} + +/* Last sibling, expandable, hover */ +.ygtvlph { + width:16px; height:22px; cursor:pointer ; + background: url(../../images/yui/treeview/lph.gif) 0 0 no-repeat; +} + +/* Loading icon */ +.ygtvloading { + width:16px; height:22px; + background: url(../../images/yui/treeview/loading.gif) 0 0 no-repeat; +} + +/* the style for the empty cells that are used for rendering the depth + * of the node */ +.ygtvdepthcell { + width:16px; height:22px; + background: url(../../images/yui/treeview/vline.gif) 0 0 no-repeat; +} + +.ygtvblankdepthcell { width:16px; height:22px; } + +/* the style of the div around each node */ +.ygtvitem { } + +/* the style of the div around each node's collection of children */ +.ygtvchildren { } +* html .ygtvchildren { height:2%; } + +/* the style of the text label in ygTextNode */ +.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { + margin-left:2px; + text-decoration: none; +} + +.ygtvspacer { height: 10px; width: 10px; margin: 2px; } + diff --git a/frontend/beta/html/index_template.html b/frontend/beta/html/index_template.html new file mode 100644 index 0000000..9862518 --- /dev/null +++ b/frontend/beta/html/index_template.html @@ -0,0 +1,100 @@ + + + @page.title@ + + + +@css@ + + + + + + + + + +@js_DEBUG@ + + + +
      + + +
      +

      loading ...

      + +@js_INSTALL@ + + + +
      +

      Attention!

      +

      If you can read this message, the chances are that your browser does not properly support JavaScript? or you have disabled this functionality yourself.

      +

      Javascript is required to access Clipperz.

      +
      Please enable scripting or upgrade your browser.
      +
      +
      + + +
      +
      +
      + +
      + + + diff --git a/frontend/beta/images/cardBlockLowerBorder.gif b/frontend/beta/images/cardBlockLowerBorder.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/cardBlockLowerRoundedCorner.gif b/frontend/beta/images/cardBlockLowerRoundedCorner.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/cardFiltersSprite.gif b/frontend/beta/images/cardFiltersSprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/cardsBlockRoundCorners.gif b/frontend/beta/images/cardsBlockRoundCorners.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/btn-sprite.gif b/frontend/beta/images/clipperz/basic-dialog/btn-sprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/close.gif b/frontend/beta/images/clipperz/basic-dialog/close.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/close.png b/frontend/beta/images/clipperz/basic-dialog/close.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/close_over.gif b/frontend/beta/images/clipperz/basic-dialog/close_over.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/e-handle.gif b/frontend/beta/images/clipperz/basic-dialog/e-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/hd-sprite.gif b/frontend/beta/images/clipperz/basic-dialog/hd-sprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/progress.gif b/frontend/beta/images/clipperz/basic-dialog/progress.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/progress2.gif b/frontend/beta/images/clipperz/basic-dialog/progress2.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/s-handle.gif b/frontend/beta/images/clipperz/basic-dialog/s-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/clipperz/basic-dialog/se-handle.gif b/frontend/beta/images/clipperz/basic-dialog/se-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/btn-sprite.gif b/frontend/beta/images/default/basic-dialog/btn-sprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/close.gif b/frontend/beta/images/default/basic-dialog/close.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/e-handle.gif b/frontend/beta/images/default/basic-dialog/e-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/hd-sprite.gif b/frontend/beta/images/default/basic-dialog/hd-sprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/progress.gif b/frontend/beta/images/default/basic-dialog/progress.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/progress2.gif b/frontend/beta/images/default/basic-dialog/progress2.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/s-handle.gif b/frontend/beta/images/default/basic-dialog/s-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/default/basic-dialog/se-handle.gif b/frontend/beta/images/default/basic-dialog/se-handle.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/directLogin/toggle.png b/frontend/beta/images/directLogin/toggle.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/directLoginBox.png b/frontend/beta/images/directLoginBox.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/entropyBackground.gif b/frontend/beta/images/entropyBackground.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/exportLogo.png b/frontend/beta/images/exportLogo.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/favicon.ico b/frontend/beta/images/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/br.png b/frontend/beta/images/flags/br.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/cn.png b/frontend/beta/images/flags/cn.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/de.png b/frontend/beta/images/flags/de.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/en.png b/frontend/beta/images/flags/en.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/es.png b/frontend/beta/images/flags/es.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/it.png b/frontend/beta/images/flags/it.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/jp.png b/frontend/beta/images/flags/jp.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/flags/ru.png b/frontend/beta/images/flags/ru.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/grippie.png b/frontend/beta/images/grippie.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/importActiveStepsSeparator.png b/frontend/beta/images/importActiveStepsSeparator.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/importStepsBackground.png b/frontend/beta/images/importStepsBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/importStepsLabelsBackground.png b/frontend/beta/images/importStepsLabelsBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/importStepsLeftLabelsBackground.png b/frontend/beta/images/importStepsLeftLabelsBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/importStepsSeparator.png b/frontend/beta/images/importStepsSeparator.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/languageBox.png b/frontend/beta/images/languageBox.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/loginFormBox.png b/frontend/beta/images/loginFormBox.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/loginInfoBackground.png b/frontend/beta/images/loginInfoBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/loginInfoInnerBackground.png b/frontend/beta/images/loginInfoInnerBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/logo.gif b/frontend/beta/images/logo.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/menubarSprite.gif b/frontend/beta/images/menubarSprite.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/newRecordPanelBackground.gif b/frontend/beta/images/newRecordPanelBackground.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/newRecordPanelBackground.png b/frontend/beta/images/newRecordPanelBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/passwordAssistant.png b/frontend/beta/images/passwordAssistant.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/read-only.gif b/frontend/beta/images/read-only.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/read-only.png b/frontend/beta/images/read-only.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/read-only_background.png b/frontend/beta/images/read-only_background.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/recordFilterBackground.png b/frontend/beta/images/recordFilterBackground.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/rss.gif b/frontend/beta/images/rss.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/scrambledValue.gif b/frontend/beta/images/scrambledValue.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/scrambledValue.png b/frontend/beta/images/scrambledValue.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/smiles.gif b/frontend/beta/images/smiles.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/smiles_big.gif b/frontend/beta/images/smiles_big.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/smiles_small.gif b/frontend/beta/images/smiles_small.gif new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/images/test-database.png b/frontend/beta/images/test-database.png new file mode 100644 index 0000000..e69de29 diff --git a/frontend/beta/js/Bookmarklet.js b/frontend/beta/js/Bookmarklet.js new file mode 100644 index 0000000..b8a0c0e --- /dev/null +++ b/frontend/beta/js/Bookmarklet.js @@ -0,0 +1,400 @@ +/* + +Copyright 2008-2011 Clipperz Srl + +This file is part of Clipperz's Javascript Crypto Library. +Javascript Crypto Library provides web developers with an extensive +and efficient set of cryptographic functions. The library aims to +obtain maximum execution speed while preserving modularity and +reusability. +For further information about its features and functionalities please +refer to http://www.clipperz.com + +* Javascript Crypto Library is free software: you can redistribute + it and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + +* Javascript Crypto Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Affero General Public License for more details. + +* You should have received a copy of the GNU Affero General Public + License along with Javascript Crypto Library. If not, see + . + +*/ + +_cble = null; + +//----------------------------------------------------------------------------- + +isLoginForm = function(aForm) { + var inputFields; + var passwordFieldsFound; + var i,c; + +//console.log('is login form: ' + aForm.name + ' (' + aForm.id + ')'); + passwordFieldsFound = 0; + inputFields = aForm.elements; + c = inputFields.length; + for (i=0; i
    + * + * @return {CustomEvent} the custom event + * + */ + createEvent: function(p_type, p_config) { + + this.__yui_events = this.__yui_events || {}; + var opts = p_config || {}; + var events = this.__yui_events; + + if (events[p_type]) { + } else { + + var scope = opts.scope || this; + var silent = opts.silent || null; + + var ce = new YAHOO.util.CustomEvent(p_type, scope, silent, + YAHOO.util.CustomEvent.FLAT); + events[p_type] = ce; + + if (opts.onSubscribeCallback) { + ce.subscribeEvent.subscribe(opts.onSubscribeCallback); + } + + this.__yui_subscribers = this.__yui_subscribers || {}; + var qs = this.__yui_subscribers[p_type]; + + if (qs) { + for (var i=0; i + *
  • The first argument fire() was executed with
  • + *
  • The custom object (if any) that was passed into the subscribe() + * method
  • + *
+ * @method fireEvent + * @param p_type {string} the type, or name of the event + * @param arguments {Object*} an arbitrary set of parameters to pass to + * the handler. + * @return {boolean} the return value from CustomEvent.fire, or null if + * the custom event does not exist. + */ + fireEvent: function(p_type, arg1, arg2, etc) { + + this.__yui_events = this.__yui_events || {}; + var ce = this.__yui_events[p_type]; + + if (ce) { + var args = []; + for (var i=1; i", label, " ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + "

", + sourceAndDetail, + ":

", + msg, + "

"] : + + ["

", label, " ", + totalTime, "ms (+", elapsedTime, ") ", + localTime, ": ", + sourceAndDetail, ": ", + msg,"

"]; + + return output.join(""); +}; + +/** + * Converts input chars "<", ">", and "&" to HTML entities. + * + * @method html2Text + * @param sHtml {String} String to convert. + * @private + */ +YAHOO.widget.LogReader.prototype.html2Text = function(sHtml) { + if(sHtml) { + sHtml += ""; + return sHtml.replace(/&/g, "&").replace(//g, ">"); + } + return ""; +}; + +///////////////////////////////////////////////////////////////////////////// +// +// Private member variables +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Internal class member to index multiple log reader instances. + * + * @property _memberName + * @static + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader._index = 0; + +/** + * Name of LogReader instance. + * + * @property _sName + * @type String + * @private + */ +YAHOO.widget.LogReader.prototype._sName = null; + +/** + * A class member shared by all log readers if a container needs to be + * created during instantiation. Will be null if a container element never needs to + * be created on the fly, such as when the implementer passes in their own element. + * + * @property _elDefaultContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader._elDefaultContainer = null; + +/** + * Buffer of log message objects for batch output. + * + * @property _buffer + * @type Object[] + * @private + */ +YAHOO.widget.LogReader.prototype._buffer = null; + +/** + * Number of log messages output to console. + * + * @property _consoleMsgCount + * @type Number + * @default 0 + * @private + */ +YAHOO.widget.LogReader.prototype._consoleMsgCount = 0; + +/** + * Date of last output log message. + * + * @property _lastTime + * @type Date + * @private + */ +YAHOO.widget.LogReader.prototype._lastTime = null; + +/** + * Batched output timeout ID. + * + * @property _timeout + * @type Number + * @private + */ +YAHOO.widget.LogReader.prototype._timeout = null; + +/** + * Array of filters for log message categories. + * + * @property _categoryFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._categoryFilters = null; + +/** + * Array of filters for log message sources. + * + * @property _sourceFilters + * @type String[] + * @private + */ +YAHOO.widget.LogReader.prototype._sourceFilters = null; + +/** + * Log reader container element. + * + * @property _elContainer + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elContainer = null; + +/** + * Log reader header element. + * + * @property _elHd + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elHd = null; + +/** + * Log reader collapse element. + * + * @property _elCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCollapse = null; + +/** + * Log reader collapse button element. + * + * @property _btnCollapse + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnCollapse = null; + +/** + * Log reader title header element. + * + * @property _title + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._title = null; + +/** + * Log reader console element. + * + * @property _elConsole + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elConsole = null; + +/** + * Log reader footer element. + * + * @property _elFt + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elFt = null; + +/** + * Log reader buttons container element. + * + * @property _elBtns + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elBtns = null; + +/** + * Container element for log reader category filter checkboxes. + * + * @property _elCategoryFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elCategoryFilters = null; + +/** + * Container element for log reader source filter checkboxes. + * + * @property _elSourceFilters + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._elSourceFilters = null; + +/** + * Log reader pause button element. + * + * @property _btnPause + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnPause = null; + +/** + * Clear button element. + * + * @property _btnClear + * @type HTMLElement + * @private + */ +YAHOO.widget.LogReader.prototype._btnClear = null; + +///////////////////////////////////////////////////////////////////////////// +// +// Private methods +// +///////////////////////////////////////////////////////////////////////////// + +/** + * Creates the UI for a category filter in the log reader footer element. + * + * @method _createCategoryCheckbox + * @param sCategory {String} Category name. + * @private + */ +YAHOO.widget.LogReader.prototype._createCategoryCheckbox = function(sCategory) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elCategoryFilters; + var filters = this._categoryFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkCategory = document.createElement("input"); + chkCategory.id = "yui-log-filter-" + sCategory + this._sName; + chkCategory.className = "yui-log-filter-" + sCategory; + chkCategory.type = "checkbox"; + chkCategory.category = sCategory; + chkCategory = elFilter.appendChild(chkCategory); + chkCategory.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sCategory); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkCategory,'click',oSelf._onCheckCategory,oSelf); + + // Create and class the text label + var lblCategory = elFilter.appendChild(document.createElement("label")); + lblCategory.htmlFor = chkCategory.id; + lblCategory.className = sCategory; + lblCategory.innerHTML = sCategory; + } +}; + +/** + * Creates a checkbox in the log reader footer element to filter by source. + * + * @method _createSourceCheckbox + * @param sSource {String} Source name. + * @private + */ +YAHOO.widget.LogReader.prototype._createSourceCheckbox = function(sSource) { + var oSelf = this; + + if(this._elFt) { + var elParent = this._elSourceFilters; + var filters = this._sourceFilters; + + var elFilter = elParent.appendChild(document.createElement("span")); + elFilter.className = "yui-log-filtergrp"; + + // Append el at the end so IE 5.5 can set "type" attribute + // and THEN set checked property + var chkSource = document.createElement("input"); + chkSource.id = "yui-log-filter" + sSource + this._sName; + chkSource.className = "yui-log-filter" + sSource; + chkSource.type = "checkbox"; + chkSource.source = sSource; + chkSource = elFilter.appendChild(chkSource); + chkSource.checked = true; + + // Add this checked filter to the internal array of filters + filters.push(sSource); + // Subscribe to the click event + YAHOO.util.Event.addListener(chkSource,'click',oSelf._onCheckSource,oSelf); + + // Create and class the text label + var lblSource = elFilter.appendChild(document.createElement("label")); + lblSource.htmlFor = chkSource.id; + lblSource.className = sSource; + lblSource.innerHTML = sSource; + } +}; + +/** + * Reprints all log messages in the stack through filters. + * + * @method _filterLogs + * @private + */ +YAHOO.widget.LogReader.prototype._filterLogs = function() { + // Reprint stack with new filters + if (this._elConsole !== null) { + this._clearConsole(); + this._printToConsole(YAHOO.widget.Logger.getStack()); + } +}; + +/** + * Clears all outputted log messages from the console and resets the time of the + * last output log message. + * + * @method _clearConsole + * @private + */ +YAHOO.widget.LogReader.prototype._clearConsole = function() { + // Clear the buffer of any pending messages + this._timeout = null; + this._buffer = []; + this._consoleMsgCount = 0; + + // Reset the rolling timer + this._lastTime = YAHOO.widget.Logger.getStartTime(); + + var elConsole = this._elConsole; + while(elConsole.hasChildNodes()) { + elConsole.removeChild(elConsole.firstChild); + } +}; + +/** + * Sends buffer of log messages to output and clears buffer. + * + * @method _printBuffer + * @private + */ +YAHOO.widget.LogReader.prototype._printBuffer = function() { + this._timeout = null; + + if(this._elConsole !== null) { + var thresholdMax = this.thresholdMax; + thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500; + if(this._consoleMsgCount < thresholdMax) { + var entries = []; + for (var i=0; i this.thresholdMax)) { + thresholdMin = 0; + } + var entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0; + + // Iterate through all log entries + var sourceFiltersLen = this._sourceFilters.length; + var categoryFiltersLen = this._categoryFilters.length; + for(var i=entriesStartIndex; i tag instead of
 tag (for wrapping)

+            var container = (this.verboseOutput) ? "CODE" : "PRE";

+            var oNewElement = (this.newestOnTop) ?

+                this._elConsole.insertBefore(

+                    document.createElement(container),this._elConsole.firstChild):

+                this._elConsole.appendChild(document.createElement(container));

+

+            oNewElement.innerHTML = output;

+            this._consoleMsgCount++;

+            this._lastTime = entry.time.getTime();

+        }

+    }

+};

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// Private event handlers

+//

+/////////////////////////////////////////////////////////////////////////////

+

+/**

+ * Handles Logger's categoryCreateEvent.

+ *

+ * @method _onCategoryCreate

+ * @param sType {String} The event.

+ * @param aArgs {Object[]} Data passed from event firer.

+ * @param oSelf {Object} The LogReader instance.

+ * @private

+ */

+YAHOO.widget.LogReader.prototype._onCategoryCreate = function(sType, aArgs, oSelf) {

+    var category = aArgs[0];

+    if(oSelf._elFt) {

+        oSelf._createCategoryCheckbox(category);

+    }

+};

+

+/**

+ * Handles Logger's sourceCreateEvent.

+ *

+ * @method _onSourceCreate

+ * @param sType {String} The event.

+ * @param aArgs {Object[]} Data passed from event firer.

+ * @param oSelf {Object} The LogReader instance.

+ * @private

+ */

+YAHOO.widget.LogReader.prototype._onSourceCreate = function(sType, aArgs, oSelf) {

+    var source = aArgs[0];

+    if(oSelf._elFt) {

+        oSelf._createSourceCheckbox(source);

+    }

+};

+

+/**

+ * Handles check events on the category filter checkboxes.

+ *

+ * @method _onCheckCategory

+ * @param v {HTMLEvent} The click event.

+ * @param oSelf {Object} The LogReader instance.

+ * @private

+ */

+YAHOO.widget.LogReader.prototype._onCheckCategory = function(v, oSelf) {

+    var newFilter = this.category;

+    var filtersArray = oSelf._categoryFilters;

+

+    if(!this.checked) { // Remove category from filters

+        for(var i=0; i 0) {

+                // Substring until first space

+                sClass = sSource.substring(0,spaceIndex);

+                // The rest of the source

+                sDetail = sSource.substring(spaceIndex,sSource.length);

+            }

+            else {

+                sClass = sSource;

+            }

+            if(this._isNewSource(sClass)) {

+                this._createNewSource(sClass);

+            }

+        }

+

+        var timestamp = new Date();

+        var logEntry = new YAHOO.widget.LogMsg({

+            msg: sMsg,

+            time: timestamp,

+            category: sCategory,

+            source: sClass,

+            sourceDetail: sDetail

+        });

+

+        var stack = this._stack;

+        var maxStackEntries = this.maxStackEntries;

+        if(maxStackEntries && !isNaN(maxStackEntries) &&

+            (stack.length >= maxStackEntries)) {

+            stack.shift();

+        }

+        stack.push(logEntry);

+        this.newLogEvent.fire(logEntry);

+

+        if(this._browserConsoleEnabled) {

+            this._printToBrowserConsole(logEntry);

+        }

+        return true;

+    }

+    else {

+        return false;

+    }

+};

+

+/**

+ * Resets internal stack and startTime, enables Logger, and fires logResetEvent.

+ *

+ * @method reset

+ */

+YAHOO.widget.Logger.reset = function() {

+    this._stack = [];

+    this._startTime = new Date().getTime();

+    this.loggerEnabled = true;

+    this.log("Logger reset");

+    this.logResetEvent.fire();

+};

+

+/**

+ * Public accessor to internal stack of log message objects.

+ *

+ * @method getStack

+ * @return {Object[]} Array of log message objects.

+ */

+YAHOO.widget.Logger.getStack = function() {

+    return this._stack;

+};

+

+/**

+ * Public accessor to internal start time.

+ *

+ * @method getStartTime

+ * @return {Date} Internal date of when Logger singleton was initialized.

+ */

+YAHOO.widget.Logger.getStartTime = function() {

+    return this._startTime;

+};

+

+/**

+ * Disables output to the browser's global console.log() function, which is used

+ * by the Firebug extension to Firefox as well as Safari.

+ *

+ * @method disableBrowserConsole

+ */

+YAHOO.widget.Logger.disableBrowserConsole = function() {

+    YAHOO.log("Logger output to the function console.log() has been disabled.");

+    this._browserConsoleEnabled = false;

+};

+

+/**

+ * Enables output to the browser's global console.log() function, which is used

+ * by the Firebug extension to Firefox as well as Safari.

+ *

+ * @method enableBrowserConsole

+ */

+YAHOO.widget.Logger.enableBrowserConsole = function() {

+    this._browserConsoleEnabled = true;

+    YAHOO.log("Logger output to the function console.log() has been enabled.");

+};

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// Public events

+//

+/////////////////////////////////////////////////////////////////////////////

+

+ /**

+ * Fired when a new category has been created.

+ *

+ * @event categoryCreateEvent

+ * @param sCategory {String} Category name.

+ */

+YAHOO.widget.Logger.categoryCreateEvent =

+    new YAHOO.util.CustomEvent("categoryCreate", this, true);

+

+ /**

+ * Fired when a new source has been named.

+ *

+ * @event sourceCreateEvent

+ * @param sSource {String} Source name.

+ */

+YAHOO.widget.Logger.sourceCreateEvent =

+    new YAHOO.util.CustomEvent("sourceCreate", this, true);

+

+ /**

+ * Fired when a new log message has been created.

+ *

+ * @event newLogEvent

+ * @param sMsg {String} Log message.

+ */

+YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true);

+

+/**

+ * Fired when the Logger has been reset has been created.

+ *

+ * @event logResetEvent

+ */

+YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true);

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// Private methods

+//

+/////////////////////////////////////////////////////////////////////////////

+

+/**

+ * Creates a new category of log messages and fires categoryCreateEvent.

+ *

+ * @method _createNewCategory

+ * @param sCategory {String} Category name.

+ * @private

+ */

+YAHOO.widget.Logger._createNewCategory = function(sCategory) {

+    this.categories.push(sCategory);

+    this.categoryCreateEvent.fire(sCategory);

+};

+

+/**

+ * Checks to see if a category has already been created.

+ *

+ * @method _isNewCategory

+ * @param sCategory {String} Category name.

+ * @return {Boolean} Returns true if category is unknown, else returns false.

+ * @private

+ */

+YAHOO.widget.Logger._isNewCategory = function(sCategory) {

+    for(var i=0; i < this.categories.length; i++) {

+        if(sCategory == this.categories[i]) {

+            return false;

+        }

+    }

+    return true;

+};

+

+/**

+ * Creates a new source of log messages and fires sourceCreateEvent.

+ *

+ * @method _createNewSource

+ * @param sSource {String} Source name.

+ * @private

+ */

+YAHOO.widget.Logger._createNewSource = function(sSource) {

+    this.sources.push(sSource);

+    this.sourceCreateEvent.fire(sSource);

+};

+

+/**

+ * Checks to see if a source already exists.

+ *

+ * @method _isNewSource

+ * @param sSource {String} Source name.

+ * @return {Boolean} Returns true if source is unknown, else returns false.

+ * @private

+ */

+YAHOO.widget.Logger._isNewSource = function(sSource) {

+    if(sSource) {

+        for(var i=0; i < this.sources.length; i++) {

+            if(sSource == this.sources[i]) {

+                return false;

+            }

+        }

+        return true;

+    }

+};

+

+/**

+ * Outputs a log message to global console.log() function.

+ *

+ * @method _printToBrowserConsole

+ * @param oEntry {Object} Log entry object.

+ * @private

+ */

+YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) {

+    if(window.console && console.log) {

+        var category = oEntry.category;

+        var label = oEntry.category.substring(0,4).toUpperCase();

+

+        var time = oEntry.time;

+        if (time.toLocaleTimeString) {

+            var localTime  = time.toLocaleTimeString();

+        }

+        else {

+            localTime = time.toString();

+        }

+

+        var msecs = time.getTime();

+        var elapsedTime = (YAHOO.widget.Logger._lastTime) ?

+            (msecs - YAHOO.widget.Logger._lastTime) : 0;

+        YAHOO.widget.Logger._lastTime = msecs;

+

+        var output =

+            localTime + " (" +

+            elapsedTime + "ms): " +

+            oEntry.source + ": " +

+            oEntry.msg;

+

+        console.log(output);

+    }

+};

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// Private event handlers

+//

+/////////////////////////////////////////////////////////////////////////////

+

+/**

+ * Handles logging of messages due to window error events.

+ *

+ * @method _onWindowError

+ * @param sMsg {String} The error message.

+ * @param sUrl {String} URL of the error.

+ * @param sLine {String} Line number of the error.

+ * @private

+ */

+YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) {

+    // Logger is not in scope of this event handler

+    try {

+        YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window");

+        if(YAHOO.widget.Logger._origOnWindowError) {

+            YAHOO.widget.Logger._origOnWindowError();

+        }

+    }

+    catch(e) {

+        return false;

+    }

+};

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// Enable handling of native JavaScript errors

+// NB: Not all browsers support the window.onerror event

+//

+/////////////////////////////////////////////////////////////////////////////

+

+if(window.onerror) {

+    // Save any previously defined handler to call

+    YAHOO.widget.Logger._origOnWindowError = window.onerror;

+}

+window.onerror = YAHOO.widget.Logger._onWindowError;

+

+/////////////////////////////////////////////////////////////////////////////

+//

+// First log

+//

+/////////////////////////////////////////////////////////////////////////////

+

+YAHOO.widget.Logger.log("Logger initialized");

+

diff --git a/frontend/beta/js/YUI/menu.js b/frontend/beta/js/YUI/menu.js
new file mode 100644
index 0000000..50eb0cf
--- /dev/null
+++ b/frontend/beta/js/YUI/menu.js
@@ -0,0 +1,6780 @@
+/*
+Copyright (c) 2006, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.txt
+version: 0.12.0
+*/
+
+/**
+* @module menu
+* @description 

The Menu Library features a collection of widgets that make +* it easy to add menus to your website or web application. With the Menu +* Library you can create website fly-out menus, customized context menus, or +* application-style menu bars with just a small amount of scripting.

+*
    +*
  • Screen-reader accessibility.
  • +*
  • Keyboard and mouse navigation.
  • +*
  • A rich event model that provides access to all of a menu's +* interesting moments.
  • +*
  • Support for +* Progressive +* Enhancement; Menus can be created from simple, +* semantic markup on the page or purely through JavaScript.
  • +*
+* @title Menu Library +* @namespace YAHOO.widget +* @requires Event, Dom, Container +*/ +(function() { + +var Dom = YAHOO.util.Dom; +var Event = YAHOO.util.Event; + +/** +* Singleton that manages a collection of all menus and menu items. Listens for +* DOM events at the document level and dispatches the events to the +* corresponding menu or menu item. +* +* @namespace YAHOO.widget +* @class MenuManager +* @static +*/ +YAHOO.widget.MenuManager = new function() { + + // Private member variables + + // Flag indicating if the DOM event handlers have been attached + + var m_bInitializedEventHandlers = false; + + // Collection of menus + + var m_oMenus = {}; + + + // Collection of menu items + + var m_oItems = {}; + + // Collection of visible menus + + var m_oVisibleMenus = {}; + + // Logger + + + // Private methods + + /** + * Adds an item to the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be added. + */ + var addItem = function(p_oItem) { + + var sYUIId = Dom.generateId(); + + if(p_oItem && m_oItems[sYUIId] != p_oItem) { + + p_oItem.element.setAttribute("yuiid", sYUIId); + + m_oItems[sYUIId] = p_oItem; + + p_oItem.destroyEvent.subscribe(onItemDestroy, p_oItem); + + + } + + }; + + /** + * Removes an item from the collection of known menu items. + * @private + * @param {YAHOO.widget.MenuItem} p_oItem Object specifying the MenuItem + * instance to be removed. + */ + var removeItem = function(p_oItem) { + + var sYUIId = p_oItem.element.getAttribute("yuiid"); + + if(sYUIId && m_oItems[sYUIId]) { + + delete m_oItems[sYUIId]; + + + } + + }; + + /** + * Finds the root DIV node of a menu or the root LI node of a menu item. + * @private + * @param {HTMLElement} p_oElement Object specifying + * an HTML element. + */ + var getMenuRootElement = function(p_oElement) { + + var oParentNode; + + if(p_oElement && p_oElement.tagName) { + + switch(p_oElement.tagName.toUpperCase()) { + + case "DIV": + + oParentNode = p_oElement.parentNode; + + // Check if the DIV is the inner "body" node of a menu + + if( + Dom.hasClass(p_oElement, "bd") && + oParentNode && + oParentNode.tagName && + oParentNode.tagName.toUpperCase() == "DIV" + ) { + + return oParentNode; + + } + else { + + return p_oElement; + + } + + break; + + case "LI": + + return p_oElement; + + default: + + oParentNode = p_oElement.parentNode; + + if(oParentNode) { + + return getMenuRootElement(oParentNode); + + } + + break; + + } + + } + + }; + + // Private event handlers + + /** + * Generic, global event handler for all of a menu's DOM-based + * events. This listens for events against the document object. If the + * target of a given event is a member of a menu or menu item's DOM, the + * instance's corresponding Custom Event is fired. + * @private + * @param {Event} p_oEvent Object representing the DOM event object passed + * back by the event utility (YAHOO.util.Event). + */ + var onDOMEvent = function(p_oEvent) { + + // Get the target node of the DOM event + + var oTarget = Event.getTarget(p_oEvent); + + // See if the target of the event was a menu, or a menu item + + var oElement = getMenuRootElement(oTarget); + + var oMenuItem; + var oMenu; + + if(oElement) { + + var sTagName = oElement.tagName.toUpperCase(); + + if(sTagName == "LI") { + + var sYUIId = oElement.getAttribute("yuiid"); + + if(sYUIId) { + + oMenuItem = m_oItems[sYUIId]; + oMenu = oMenuItem.parent; + + } + + } + else if(sTagName == "DIV") { + + if(oElement.id) { + + oMenu = m_oMenus[oElement.id]; + + } + + } + + } + + if(oMenu) { + + // Map of DOM event names to CustomEvent names + + var oEventTypes = { + "click": "clickEvent", + "mousedown": "mouseDownEvent", + "mouseup": "mouseUpEvent", + "mouseover": "mouseOverEvent", + "mouseout": "mouseOutEvent", + "keydown": "keyDownEvent", + "keyup": "keyUpEvent", + "keypress": "keyPressEvent" + }; + + var sCustomEventType = oEventTypes[p_oEvent.type]; + + // Fire the Custom Even that corresponds the current DOM event + + if(oMenuItem && !oMenuItem.cfg.getProperty("disabled")) { + + oMenuItem[sCustomEventType].fire(p_oEvent); + + } + + oMenu[sCustomEventType].fire(p_oEvent, oMenuItem); + + } + else if(p_oEvent.type == "mousedown") { + + /* + If the target of the event wasn't a menu, hide all + dynamically positioned menus + */ + + var oActiveItem; + + for(var i in m_oMenus) { + + if(m_oMenus.hasOwnProperty(i)) { + + oMenu = m_oMenus[i]; + + if( + oMenu.cfg.getProperty("clicktohide") && + oMenu.cfg.getProperty("position") == "dynamic" + ) { + + oMenu.hide(); + + } + else { + + oMenu.clearActiveItem(true); + + } + + } + + } + + } + + }; + + /** + * "destroy" event handler for a menu. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + var onMenuDestroy = function(p_sType, p_aArgs, p_oMenu) { + + this.removeMenu(p_oMenu); + + }; + + /** + * "destroy" event handler for a MenuItem instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + var onItemDestroy = function(p_sType, p_aArgs, p_oItem) { + + var sYUIId = p_oItem.element.getAttribute("yuiid"); + + if(sYUIId) { + + delete m_oItems[sYUIId]; + + } + + }; + + /** + * Event handler for when the "visible" configuration property + * of a Menu instance changes. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that + * fired the event. + */ + var onMenuVisibleConfigChange = function(p_sType, p_aArgs, p_oMenu) { + + var bVisible = p_aArgs[0]; + + if(bVisible) { + + m_oVisibleMenus[p_oMenu.id] = p_oMenu; + + + } + else if(m_oVisibleMenus[p_oMenu.id]) { + + delete m_oVisibleMenus[p_oMenu.id]; + + + } + + }; + + /** + * "itemadded" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + var onItemAdded = function(p_sType, p_aArgs) { + + addItem(p_aArgs[0]); + + }; + + + /** + * "itemremoved" event handler for a Menu instance. + * @private + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + */ + var onItemRemoved = function(p_sType, p_aArgs) { + + removeItem(p_aArgs[0]); + + }; + + // Privileged methods + + /** + * @method addMenu + * @description Adds a menu to the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu instance + * to be added. + */ + this.addMenu = function(p_oMenu) { + + if(p_oMenu && p_oMenu.id && !m_oMenus[p_oMenu.id]) { + + m_oMenus[p_oMenu.id] = p_oMenu; + + + if(!m_bInitializedEventHandlers) { + + var oDoc = document; + + Event.addListener(oDoc, "mouseover", onDOMEvent, this, true); + Event.addListener(oDoc, "mouseout", onDOMEvent, this, true); + Event.addListener(oDoc, "mousedown", onDOMEvent, this, true); + Event.addListener(oDoc, "mouseup", onDOMEvent, this, true); + Event.addListener(oDoc, "click", onDOMEvent, this, true); + Event.addListener(oDoc, "keydown", onDOMEvent, this, true); + Event.addListener(oDoc, "keyup", onDOMEvent, this, true); + Event.addListener(oDoc, "keypress", onDOMEvent, this, true); + + m_bInitializedEventHandlers = true; + + + } + + p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, this); + + p_oMenu.cfg.subscribeToConfigEvent( + "visible", + onMenuVisibleConfigChange, + p_oMenu + ); + + p_oMenu.itemAddedEvent.subscribe(onItemAdded); + p_oMenu.itemRemovedEvent.subscribe(onItemRemoved); + + + } + + }; + + /** + * @method removeMenu + * @description Removes a menu from the collection of known menus. + * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu instance + * to be removed. + */ + this.removeMenu = function(p_oMenu) { + + if(p_oMenu && m_oMenus[p_oMenu.id]) { + + delete m_oMenus[p_oMenu.id]; + + + } + + }; + + /** + * @method hideVisible + * @description Hides all visible, dynamically positioned menus. + */ + this.hideVisible = function() { + + var oMenu; + + for(var i in m_oVisibleMenus) { + + if(m_oVisibleMenus.hasOwnProperty(i)) { + + oMenu = m_oVisibleMenus[i]; + + if(oMenu.cfg.getProperty("position") == "dynamic") { + + oMenu.hide(); + + } + + } + + } + + }; + + /** + * @method getMenus + * @description Returns an array of all menus registered with the + * menu manger. + * @return {Array} + */ + this.getMenus = function() { + + return m_oMenus; + + }; + + /** + * @method getMenu + * @description Returns a menu with the specified id. + * @param {String} p_sId String specifying the id of the menu to + * be retrieved. + * @return {YAHOO.widget.Menu} + */ + this.getMenu = function(p_sId) { + + if(m_oMenus[p_sId]) { + + return m_oMenus[p_sId]; + + } + + }; + + + /** + * @method toString + * @description Returns a string representing the menu manager. + * @return {String} + */ + this.toString = function() { + + return ("MenuManager"); + + }; + +}; + +})(); + +(function() { + +var Dom = YAHOO.util.Dom; +var Event = YAHOO.util.Event; + +/** +* The Menu class creates a container that holds a vertical list representing +* a set of options or commands. Menu is the base class for all +* menu containers. +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source +* for the menu. +* @param {HTMLDivElement} p_oElement Object +* specifying the <div> element of the menu. +* @param {HTMLSelectElement} p_oElement +* Object specifying the <select> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +* @namespace YAHOO.widget +* @class Menu +* @constructor +* @extends YAHOO.widget.Overlay +*/ +YAHOO.widget.Menu = function(p_oElement, p_oConfig) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + + this.lazyLoad = p_oConfig.lazyLoad || p_oConfig.lazyload; + + this.itemData = p_oConfig.itemData || p_oConfig.itemdata; + + } + + YAHOO.widget.Menu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + +YAHOO.extend(YAHOO.widget.Menu, YAHOO.widget.Overlay, { + +// Constants + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* menu's <div> element. +* @default "yuimenu" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenu", + +/** +* @property ITEM_TYPE +* @description Object representing the type of menu item to instantiate and +* add when parsing the child nodes (either <li> element, +* <optgroup> element or <option>) +* of the menu's source HTML element. +* @default YAHOO.widget.MenuItem +* @final +* @type YAHOO.widget.MenuItem +*/ +ITEM_TYPE: null, + +/** +* @property GROUP_TITLE_TAG_NAME +* @description String representing the tagname of the HTML element used to +* title the menu's item groups. +* @default H6 +* @final +* @type String +*/ +GROUP_TITLE_TAG_NAME: "h6", + +// Private properties + +/** +* @property _nHideDelayId +* @description Number representing the time-out setting used to cancel the +* hiding of a menu. +* @default null +* @private +* @type Number +*/ +_nHideDelayId: null, + +/** +* @property _nShowDelayId +* @description Number representing the time-out setting used to cancel the +* showing of a menu. +* @default null +* @private +* @type Number +*/ +_nShowDelayId: null, + +/** +* @property _hideDelayEventHandlersAssigned +* @description Boolean indicating if the "mouseover" and "mouseout" event +* handlers used for hiding the menu via a call to "window.setTimeout" have +* already been assigned. +* @default false +* @private +* @type Boolean +*/ +_hideDelayEventHandlersAssigned: false, + +/** +* @property _bHandledMouseOverEvent +* @description Boolean indicating the current state of the menu's +* "mouseover" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOverEvent: false, + +/** +* @property _bHandledMouseOutEvent +* @description Boolean indicating the current state of the menu's +* "mouseout" event. +* @default false +* @private +* @type Boolean +*/ +_bHandledMouseOutEvent: false, + +/** +* @property _aGroupTitleElements +* @description Array of HTML element used to title groups of menu items. +* @default [] +* @private +* @type Array +*/ +_aGroupTitleElements: null, + +/** +* @property _aItemGroups +* @description Array of menu items. +* @default [] +* @private +* @type Array +*/ +_aItemGroups: null, + +/** +* @property _aListElements +* @description Array of <ul> elements, each of which is +* the parent node for each item's <li> element. +* @default [] +* @private +* @type Array +*/ +_aListElements: null, + +// Public properties + +/** +* @property lazyLoad +* @description Boolean indicating if the menu's "lazy load" feature is +* enabled. If set to "true," initialization and rendering of the menu's +* items will be deferred until the first time it is made visible. This +* property should be set via the constructor using the configuration +* object literal. +* @default false +* @type Boolean +*/ +lazyLoad: false, + +/** +* @property itemData +* @description Array of items to be added to the menu. The array can contain +* strings representing the text for each item to be created, object literals +* representing the menu item configuration properties, or MenuItem instances. +* This property should be set via the constructor using the configuration +* object literal. +* @default null +* @type Array +*/ +itemData: null, + +/** +* @property activeItem +* @description Object reference to the item in the menu that has focus. +* @default null +* @type YAHOO.widget.MenuItem +*/ +activeItem: null, + +/** +* @property parent +* @description Object reference to the menu's parent menu or menu item. +* This property can be set via the constructor using the configuration +* object literal. +* @default null +* @type YAHOO.widget.MenuItem +*/ +parent: null, + +/** +* @property srcElement +* @description Object reference to the HTML element (either +* <select> or <div>) used to +* create the menu. +* @default null +* @type HTMLSelectElement|HTMLDivElement +*/ +srcElement: null, + +// Events + +/** +* @event mouseOverEvent +* @description Fires when the mouse has entered the menu. Passes back +* the DOM Event object as an argument. +*/ +mouseOverEvent: null, + +/** +* @event mouseOutEvent +* @description Fires when the mouse has left the menu. Passes back the DOM +* Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseOutEvent: null, + +/** +* @event mouseDownEvent +* @description Fires when the user mouses down on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseDownEvent: null, + +/** +* @event mouseUpEvent +* @description Fires when the user releases a mouse button while the mouse is +* over the menu. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +mouseUpEvent: null, + +/** +* @event clickEvent +* @description Fires when the user clicks the on the menu. Passes back the +* DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +clickEvent: null, + +/** +* @event keyPressEvent +* @description Fires when the user presses an alphanumeric key when one of the +* menu's items has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyPressEvent: null, + +/** +* @event keyDownEvent +* @description Fires when the user presses a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyDownEvent: null, + +/** +* @event keyUpEvent +* @description Fires when the user releases a key when one of the menu's items +* has focus. Passes back the DOM Event object as an argument. +* @type YAHOO.util.CustomEvent +*/ +keyUpEvent: null, + +/** +* @event itemAddedEvent +* @description Fires when an item is added to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemAddedEvent: null, + +/** +* @event itemRemovedEvent +* @description Fires when an item is removed to the menu. +* @type YAHOO.util.CustomEvent +*/ +itemRemovedEvent: null, + +/** +* @method init +* @description The Menu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the menu. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source +* for the menu. +* @param {HTMLDivElement} p_oElement Object +* specifying the <div> element of the menu. +* @param {HTMLSelectElement} p_oElement +* Object specifying the <select> element to be used as +* the data source for the menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + this._aItemGroups = []; + this._aListElements = []; + this._aGroupTitleElements = []; + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuItem; + + } + + var oElement; + + if(typeof p_oElement == "string") { + + oElement = document.getElementById(p_oElement); + + } + else if(p_oElement.tagName) { + + oElement = p_oElement; + + } + + if(oElement && oElement.tagName) { + + switch(oElement.tagName.toUpperCase()) { + + case "DIV": + + this.srcElement = oElement; + + if(!oElement.id) { + + oElement.setAttribute("id", Dom.generateId()); + + } + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + + break; + + case "SELECT": + + this.srcElement = oElement; + + + /* + The source element is not something that we can use + outright, so we need to create a new Overlay + + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, Dom.generateId()); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + break; + + } + + } + else { + + /* + Note: we don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.Menu.superclass.init.call(this, p_oElement); + + this.beforeInitEvent.fire(YAHOO.widget.Menu); + + } + + if(this.element) { + + var oEl = this.element; + + Dom.addClass(oEl, this.CSS_CLASS_NAME); + + // Subscribe to Custom Events + + this.initEvent.subscribe(this._onInit, this, true); + this.beforeRenderEvent.subscribe(this._onBeforeRender, this, true); + this.renderEvent.subscribe(this._onRender, this, true); + this.beforeShowEvent.subscribe(this._onBeforeShow, this, true); + this.showEvent.subscribe(this._onShow, this, true); + this.beforeHideEvent.subscribe(this._onBeforeHide, this, true); + this.mouseOverEvent.subscribe(this._onMouseOver, this, true); + this.mouseOutEvent.subscribe(this._onMouseOut, this, true); + this.clickEvent.subscribe(this._onClick, this, true); + this.keyDownEvent.subscribe(this._onKeyDown, this, true); + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + // Register the Menu instance with the MenuManager + + YAHOO.widget.MenuManager.addMenu(this); + + + this.initEvent.fire(YAHOO.widget.Menu); + + } + +}, + +// Private methods + +/** +* @method _initSubTree +* @description Iterates the childNodes of the source element to find nodes +* used to instantiate menu and menu items. +* @private +*/ +_initSubTree: function() { + + var oNode; + + if(this.srcElement.tagName == "DIV") { + + /* + Populate the collection of item groups and item + group titles + */ + + oNode = this.body.firstChild; + + var nGroup = 0; + var sGroupTitleTagName = this.GROUP_TITLE_TAG_NAME.toUpperCase(); + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case sGroupTitleTagName: + + this._aGroupTitleElements[nGroup] = oNode; + + break; + + case "UL": + + this._aListElements[nGroup] = oNode; + this._aItemGroups[nGroup] = []; + nGroup++; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + /* + Apply the "first-of-type" class to the first UL to mimic + the "first-of-type" CSS3 psuedo class. + */ + + if(this._aListElements[0]) { + + Dom.addClass(this._aListElements[0], "first-of-type"); + + } + + } + + oNode = null; + + if(this.srcElement.tagName) { + + switch(this.srcElement.tagName.toUpperCase()) { + + case "DIV": + + if(this._aListElements.length > 0) { + + + var i = this._aListElements.length - 1; + + do { + + oNode = this._aListElements[i].firstChild; + + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "LI": + + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ), + i + ); + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + } + while(i--); + + } + + break; + + case "SELECT": + + + oNode = this.srcElement.firstChild; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "OPTGROUP": + case "OPTION": + + + this.addItem( + new this.ITEM_TYPE( + oNode, + { parent: this } + ) + ); + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + break; + + } + + } + +}, + +/** +* @method _getFirstEnabledItem +* @description Returns the first enabled item in the menu. +* @return {YAHOO.widget.MenuItem} +* @private +*/ +_getFirstEnabledItem: function() { + + var nGroups = this._aItemGroups.length; + var oItem; + var aItemGroup; + + for(var i=0; i= aGroup.length); + + if(aGroup[p_nItemIndex]) { + + aGroup.splice(p_nItemIndex, 0, oItem); + + } + else { + + aGroup[p_nItemIndex] = oItem; + + } + + oGroupItem = aGroup[p_nItemIndex]; + + if(oGroupItem) { + + if( + bAppend && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + else { + + + /** + * Returns the next sibling of an item in an array. + * @private + * @param {p_aArray} Array to search. + * @param {p_nStartIndex} Number indicating the index to + * start searching the array. + * @return {Object} + */ + var getNextItemSibling = + + function(p_aArray, p_nStartIndex) { + + return ( + p_aArray[p_nStartIndex] || + getNextItemSibling( + p_aArray, + (p_nStartIndex+1) + ) + ); + + }; + + + var oNextItemSibling = + getNextItemSibling(aGroup, (p_nItemIndex+1)); + + if( + oNextItemSibling && + ( + !oGroupItem.element.parentNode || + oGroupItem.element.parentNode.nodeType == 11 + ) + ) { + + this._aListElements[nGroupIndex].insertBefore( + oGroupItem.element, + oNextItemSibling.element + ); + + } + + } + + + oGroupItem.parent = this; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + this._updateItemProperties(nGroupIndex); + + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + else { + + var nItemIndex = aGroup.length; + + aGroup[nItemIndex] = oItem; + + oGroupItem = aGroup[nItemIndex]; + + + if(oGroupItem) { + + if( + !Dom.isAncestor( + this._aListElements[nGroupIndex], + oGroupItem.element + ) + ) { + + this._aListElements[nGroupIndex].appendChild( + oGroupItem.element + ); + + } + + oGroupItem.element.setAttribute("groupindex", nGroupIndex); + oGroupItem.element.setAttribute("index", nItemIndex); + + oGroupItem.parent = this; + + oGroupItem.index = nItemIndex; + oGroupItem.groupIndex = nGroupIndex; + + this._subscribeToItemEvents(oGroupItem); + + this._configureSubmenu(oGroupItem); + + if(nItemIndex === 0) { + + Dom.addClass(oGroupItem.element, "first-of-type"); + + } + + + + this.itemAddedEvent.fire(oGroupItem); + + return oGroupItem; + + } + + } + + } + +}, + +/** +* @method _removeItemFromGroupByIndex +* @description Removes a menu item from a group by index. Returns the menu +* item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the menu +* item belongs. +* @param {Number} p_nItemIndex Number indicating the index of the menu item +* to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByIndex: function(p_nGroupIndex, p_nItemIndex) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0; + var aGroup = this._getItemGroup(nGroupIndex); + + if(aGroup) { + + var aArray = aGroup.splice(p_nItemIndex, 1); + var oItem = aArray[0]; + + if(oItem) { + + // Update the index and className properties of each member + + this._updateItemProperties(nGroupIndex); + + if(aGroup.length === 0) { + + // Remove the UL + + var oUL = this._aListElements[nGroupIndex]; + + if(this.body && oUL) { + + this.body.removeChild(oUL); + + } + + // Remove the group from the array of items + + this._aItemGroups.splice(nGroupIndex, 1); + + + // Remove the UL from the array of ULs + + this._aListElements.splice(nGroupIndex, 1); + + + /* + Assign the "first-of-type" class to the new first UL + in the collection + */ + + oUL = this._aListElements[0]; + + if(oUL) { + + Dom.addClass(oUL, "first-of-type"); + + } + + } + + + this.itemRemovedEvent.fire(oItem); + + // Return a reference to the item that was removed + + return oItem; + + } + + } + +}, + +/** +* @method _removeItemFromGroupByValue +* @description Removes a menu item from a group by reference. Returns the +* menu item that was removed. +* @private +* @param {Number} p_nGroupIndex Number indicating the group to which the +* menu item belongs. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be removed. +* @return {YAHOO.widget.MenuItem} +*/ +_removeItemFromGroupByValue: function(p_nGroupIndex, p_oItem) { + + var aGroup = this._getItemGroup(p_nGroupIndex); + + if(aGroup) { + + var nItems = aGroup.length; + var nItemIndex = -1; + + if(nItems > 0) { + + var i = nItems-1; + + do { + + if(aGroup[i] == p_oItem) { + + nItemIndex = i; + break; + + } + + } + while(i--); + + if(nItemIndex > -1) { + + return this._removeItemFromGroupByIndex( + p_nGroupIndex, + nItemIndex + ); + + } + + } + + } + +}, + +/** +* @method _updateItemProperties +* @description Updates the "index," "groupindex," and "className" properties +* of the menu items in the specified group. +* @private +* @param {Number} p_nGroupIndex Number indicating the group of items to update. +*/ +_updateItemProperties: function(p_nGroupIndex) { + + var aGroup = this._getItemGroup(p_nGroupIndex); + var nItems = aGroup.length; + + if(nItems > 0) { + + var i = nItems - 1; + var oItem; + var oLI; + + // Update the index and className properties of each member + + do { + + oItem = aGroup[i]; + + if(oItem) { + + oLI = oItem.element; + + oItem.index = i; + oItem.groupIndex = p_nGroupIndex; + + oLI.setAttribute("groupindex", p_nGroupIndex); + oLI.setAttribute("index", i); + + Dom.removeClass(oLI, "first-of-type"); + + } + + } + while(i--); + + if(oLI) { + + Dom.addClass(oLI, "first-of-type"); + + } + + } + +}, + +/** +* @method _createItemGroup +* @description Creates a new menu item group (array) and its associated +* <ul> element. Returns an aray of menu item groups. +* @private +* @param {Number} p_nIndex Number indicating the group to create. +* @return {Array} +*/ +_createItemGroup: function(p_nIndex) { + + if(!this._aItemGroups[p_nIndex]) { + + this._aItemGroups[p_nIndex] = []; + + var oUL = document.createElement("ul"); + + this._aListElements[p_nIndex] = oUL; + + return this._aItemGroups[p_nIndex]; + + } + +}, + +/** +* @method _getItemGroup +* @description Returns the menu item group at the specified index. +* @private +* @param {Number} p_nIndex Number indicating the index of the menu item group +* to be retrieved. +* @return {Array} +*/ +_getItemGroup: function(p_nIndex) { + + var nIndex = ((typeof p_nIndex == "number") ? p_nIndex : 0); + + return this._aItemGroups[nIndex]; + +}, + +/** +* @method _configureSubmenu +* @description Subscribes the menu item's submenu to its parent menu's events. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance with the submenu to be configured. +*/ +_configureSubmenu: function(p_oItem) { + + var oSubmenu = p_oItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + /* + Listen for configuration changes to the parent menu + so they they can be applied to the submenu. + */ + + this.cfg.configChangedEvent.subscribe( + this._onParentMenuConfigChange, + oSubmenu, + true + ); + + this.renderEvent.subscribe( + this._onParentMenuRender, + oSubmenu, + true + ); + + oSubmenu.beforeShowEvent.subscribe( + this._onSubmenuBeforeShow, + oSubmenu, + true + ); + + oSubmenu.showEvent.subscribe( + this._onSubmenuShow, + oSubmenu, + true + ); + + oSubmenu.hideEvent.subscribe( + this._onSubmenuHide, + oSubmenu, + true + ); + + } + +}, + +/** +* @method _subscribeToItemEvents +* @description Subscribes a menu to a menu item's event. +* @private +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance whose events should be subscribed to. +*/ +_subscribeToItemEvents: function(p_oItem) { + + p_oItem.focusEvent.subscribe(this._onMenuItemFocus, p_oItem, this); + + p_oItem.blurEvent.subscribe(this._onMenuItemBlur, this, true); + + p_oItem.cfg.configChangedEvent.subscribe( + this._onMenuItemConfigChange, + p_oItem, + this + ); + +}, + +/** +* @method _getOffsetWidth +* @description Returns the offset width of the menu's +* <div> element. +* @private +*/ +_getOffsetWidth: function() { + + var oClone = this.element.cloneNode(true); + + Dom.setStyle(oClone, "width", ""); + + document.body.appendChild(oClone); + + var sWidth = oClone.offsetWidth; + + document.body.removeChild(oClone); + + return sWidth; + +}, + +/** +* @method _cancelHideDelay +* @description Cancels the call to "hideMenu." +* @private +*/ +_cancelHideDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nHideDelayId) { + + window.clearTimeout(oRoot._nHideDelayId); + + } + +}, + +/** +* @method _execHideDelay +* @description Hides the menu after the number of milliseconds specified by +* the "hidedelay" configuration property. +* @private +*/ +_execHideDelay: function() { + + this._cancelHideDelay(); + + var oRoot = this.getRoot(); + var me = this; + + var hideMenu = function() { + + if(oRoot.activeItem) { + + oRoot.clearActiveItem(); + + } + + if(oRoot == me && me.cfg.getProperty("position") == "dynamic") { + + me.hide(); + + } + + }; + + oRoot._nHideDelayId = + window.setTimeout(hideMenu, oRoot.cfg.getProperty("hidedelay")); + +}, + +/** +* @method _cancelShowDelay +* @description Cancels the call to the "showMenu." +* @private +*/ +_cancelShowDelay: function() { + + var oRoot = this.getRoot(); + + if(oRoot._nShowDelayId) { + + window.clearTimeout(oRoot._nShowDelayId); + + } + +}, + +/** +* @method _execShowDelay +* @description Shows the menu after the number of milliseconds specified by +* the "showdelay" configuration property have ellapsed. +* @private +* @param {YAHOO.widget.Menu} p_oMenu Object specifying the menu that should +* be made visible. +*/ +_execShowDelay: function(p_oMenu) { + + this._cancelShowDelay(); + + var oRoot = this.getRoot(); + + var showMenu = function() { + + p_oMenu.show(); + + }; + + oRoot._nShowDelayId = + window.setTimeout(showMenu, oRoot.cfg.getProperty("showdelay")); + +}, + +// Protected methods + +/** +* @method _onMouseOver +* @description "mouseover" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOver: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + var oItem = p_aArgs[1]; + var oTarget = Event.getTarget(oEvent); + + if( + !this._bHandledMouseOverEvent && + (oTarget == this.element || Dom.isAncestor(this.element, oTarget)) + ) { + + // MENU MOUSEOVER LOGIC HERE + + this.clearActiveItem(); + + this._bHandledMouseOverEvent = true; + this._bHandledMouseOutEvent = false; + + } + + if( + oItem && !oItem.handledMouseOverEvent && + (oTarget == oItem.element || Dom.isAncestor(oItem.element, oTarget)) + ) { + + var oItemCfg = oItem.cfg; + + // Select and focus the current menu item + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + if(this.cfg.getProperty("autosubmenudisplay")) { + + // Show the submenu this menu item + + var oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(this.cfg.getProperty("showdelay") > 0) { + + this._execShowDelay(oSubmenu); + + } + else { + + oSubmenu.show(); + + } + + } + + } + + oItem.handledMouseOverEvent = true; + oItem.handledMouseOutEvent = false; + + } + +}, + +/** +* @method _onMouseOut +* @description "mouseout" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onMouseOut: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + var oItem = p_aArgs[1]; + var oRelatedTarget = Event.getRelatedTarget(oEvent); + var bMovingToSubmenu = false; + + if(oItem) { + + var oItemCfg = oItem.cfg; + var oSubmenu = oItemCfg.getProperty("submenu"); + + if( + oSubmenu && + ( + oRelatedTarget == oSubmenu.element || + Dom.isAncestor(oSubmenu.element, oRelatedTarget) + ) + ) { + + bMovingToSubmenu = true; + + } + + if( + !oItem.handledMouseOutEvent && + ( + ( + oRelatedTarget != oItem.element && + !Dom.isAncestor(oItem.element, oRelatedTarget) + ) || bMovingToSubmenu + ) + ) { + + if(this.cfg.getProperty("showdelay") > 0) { + + this._cancelShowDelay(); + + } + + if(!bMovingToSubmenu) { + + oItemCfg.setProperty("selected", false); + + } + + if(this.cfg.getProperty("autosubmenudisplay")) { + + if(oSubmenu) { + + if( + !( + oRelatedTarget == oSubmenu.element || + YAHOO.util.Dom.isAncestor( + oSubmenu.element, + oRelatedTarget + ) + ) + ) { + + oSubmenu.hide(); + + } + + } + + } + + oItem.handledMouseOutEvent = true; + oItem.handledMouseOverEvent = false; + + } + + } + + if( + !this._bHandledMouseOutEvent && + ( + ( + oRelatedTarget != this.element && + !Dom.isAncestor(this.element, oRelatedTarget) + ) + || bMovingToSubmenu + ) + ) { + + this._bHandledMouseOutEvent = true; + this._bHandledMouseOverEvent = false; + + } + +}, + +/** +* @method _onClick +* @description "click" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + var oItem = p_aArgs[1]; + var oTarget = Event.getTarget(oEvent); + + if(oItem) { + + var oItemCfg = oItem.cfg; + var oSubmenu = oItemCfg.getProperty("submenu"); + + /* + ACCESSIBILITY FEATURE FOR SCREEN READERS: + Expand/collapse the submenu when the user clicks + on the submenu indicator image. + */ + + if(oTarget == oItem.submenuIndicator && oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + } + else { + + this.clearActiveItem(); + + this.activeItem = oItem; + + oItem.cfg.setProperty("selected", true); + + oSubmenu.show(); + + } + + } + else { + + var sURL = oItemCfg.getProperty("url"); + var bCurrentPageURL = (sURL.substr((sURL.length-1),1) == "#"); + var sTarget = oItemCfg.getProperty("target"); + var bHasTarget = (sTarget && sTarget.length > 0); + + /* + Prevent the browser from following links + equal to "#" + */ + + if( + oTarget.tagName.toUpperCase() == "A" && + bCurrentPageURL && !bHasTarget + ) { + + Event.preventDefault(oEvent); + + } + + if( + oTarget.tagName.toUpperCase() != "A" && + !bCurrentPageURL && !bHasTarget + ) { + + /* + Follow the URL of the item regardless of + whether or not the user clicked specifically + on the anchor element. + */ + + document.location = sURL; + + } + + /* + If the item doesn't navigate to a URL and it doesn't have + a submenu, then collapse the menu tree. + */ + + if(bCurrentPageURL && !oSubmenu) { + + var oRoot = this.getRoot(); + + if(oRoot.cfg.getProperty("position") == "static") { + + oRoot.clearActiveItem(); + + } + else { + + oRoot.hide(); + + } + + } + + } + + } + +}, + +/** +* @method _onKeyDown +* @description "keydown" event handler for the menu. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenu) { + + var oEvent = p_aArgs[0]; + var oItem = p_aArgs[1]; + var oSubmenu; + + if(oItem) { + + var oItemCfg = oItem.cfg; + var oParentItem = this.parent; + var oRoot; + var oNextItem; + + switch(oEvent.keyCode) { + + case 38: // Up arrow + case 40: // Down arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + oNextItem = (oEvent.keyCode == 38) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + oNextItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + + case 39: // Right arrow + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(!oItemCfg.getProperty("selected")) { + + oItemCfg.setProperty("selected", true); + + } + + oSubmenu.show(); + + oSubmenu.setInitialSelection(); + + } + else { + + oRoot = this.getRoot(); + + if(oRoot instanceof YAHOO.widget.MenuBar) { + + oNextItem = oRoot.activeItem.getNextEnabledSibling(); + + if(oNextItem) { + + oRoot.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + + } + + + Event.preventDefault(oEvent); + + break; + + + case 37: // Left arrow + + if(oParentItem) { + + var oParentMenu = oParentItem.parent; + + if(oParentMenu instanceof YAHOO.widget.MenuBar) { + + oNextItem = + oParentMenu.activeItem.getPreviousEnabledSibling(); + + if(oNextItem) { + + oParentMenu.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + + } + + oNextItem.focus(); + + } + + } + else { + + this.hide(); + + oParentItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + } + + } + + if(oEvent.keyCode == 27) { // Esc key + + if(this.cfg.getProperty("position") == "dynamic") { + + this.hide(); + + if(this.parent) { + + this.parent.focus(); + + } + + } + else if(this.activeItem) { + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + } + + Event.preventDefault(oEvent); + + } + +}, + +// Private methods + +/** +* @method _onInit +* @description "init" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onInit: function(p_sType, p_aArgs, p_oMenu) { + + if( + ( + (this.parent && !this.lazyLoad) || + (!this.parent && this.cfg.getProperty("position") == "static") || + ( + !this.parent && + !this.lazyLoad && + this.cfg.getProperty("position") == "dynamic" + ) + ) && + this.getItemGroups().length === 0 + ) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + if(this.itemData) { + + this.addItems(this.itemData); + + } + + } + else if(this.lazyLoad) { + + this.cfg.fireQueue(); + + } + +}, + +/** +* @method _onBeforeRender +* @description "beforerender" event handler for the menu. Appends all of the +* <ul>, <li> and their accompanying +* title elements to the body element of the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeRender: function(p_sType, p_aArgs, p_oMenu) { + + var oConfig = this.cfg; + var oEl = this.element; + var nListElements = this._aListElements.length; + + if(nListElements > 0) { + + var i = 0; + var bFirstList = true; + var oUL; + var oGroupTitle; + + do { + + oUL = this._aListElements[i]; + + if(oUL) { + + if(bFirstList) { + + Dom.addClass(oUL, "first-of-type"); + bFirstList = false; + + } + + if(!Dom.isAncestor(oEl, oUL)) { + + this.appendToBody(oUL); + + } + + oGroupTitle = this._aGroupTitleElements[i]; + + if(oGroupTitle) { + + if(!Dom.isAncestor(oEl, oGroupTitle)) { + + oUL.parentNode.insertBefore(oGroupTitle, oUL); + + } + + Dom.addClass(oUL, "hastitle"); + + } + + } + + i++; + + } + while(i < nListElements); + + } + +}, + +/** +* @method _onRender +* @description "render" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onRender: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + var sWidth = + this.element.parentNode.tagName.toUpperCase() == "BODY" ? + this.element.offsetWidth : this._getOffsetWidth(); + + this.cfg.setProperty("width", (sWidth + "px")); + + } + +}, + +/** +* @method _onBeforeShow +* @description "beforeshow" event handler for the menu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +_onBeforeShow: function(p_sType, p_aArgs, p_oMenu) { + + if(this.lazyLoad && this.getItemGroups().length === 0) { + + if(this.srcElement) { + + this._initSubTree(); + + } + + if(this.itemData) { + + if( + this.parent && this.parent.parent && + this.parent.parent.srcElement && + this.parent.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + var nOptions = this.itemData.length; + + for(var n=0; n 0) { + + oConfig.showdelay = nShowDelay; + + } + + var nHideDelay = oParentMenu.cfg.getProperty("hidedelay"); + + if(nHideDelay > 0) { + + oConfig.hidedelay = nHideDelay; + + } + + /* + Only sync the "iframe" configuration property if the parent + menu's "position" configuration is the same. + */ + + if( + this.cfg.getProperty("position") == + oParentMenu.cfg.getProperty("position") + ) { + + oConfig.iframe = oParentMenu.cfg.getProperty("iframe"); + + } + + + p_oSubmenu.cfg.applyConfig(oConfig); + + if(!this.lazyLoad) { + + if(Dom.inDocument(this.element)) { + + this.render(); + + } + else { + + this.render(this.parent.element); + + } + + } + +}, + +/** +* @method _onSubmenuBeforeShow +* @description "beforeshow" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuBeforeShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + var aAlignment = oParent.parent.cfg.getProperty("submenualignment"); + + this.cfg.setProperty( + "context", + [oParent.element, aAlignment[0], aAlignment[1]] + ); + + oParent.submenuIndicator.alt = oParent.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT; + +}, + +/** +* @method _onSubmenuShow +* @description "show" event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuShow: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.alt = oParent.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT; + +}, + +/** +* @method _onSubmenuHide +* @description "hide" Custom Event handler for a submenu. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that +* subscribed to the event. +*/ +_onSubmenuHide: function(p_sType, p_aArgs, p_oSubmenu) { + + var oParent = this.parent; + + oParent.submenuIndicator.alt = oParent.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT; + +}, + +/** +* @method _onMenuItemFocus +* @description "focus" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemFocus: function(p_sType, p_aArgs, p_oItem) { + + this.activeItem = p_oItem; + +}, + +/** +* @method _onMenuItemBlur +* @description "blur" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event +* that was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +*/ +_onMenuItemBlur: function(p_sType, p_aArgs) { + + this.activeItem = null; + +}, + +/** +* @method _onMenuItemConfigChange +* @description "configchange" event handler for the menu's items. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item +* that fired the event. +*/ +_onMenuItemConfigChange: function(p_sType, p_aArgs, p_oItem) { + + var sProperty = p_aArgs[0][0]; + + switch(sProperty) { + + case "submenu": + + var oSubmenu = p_aArgs[0][1]; + + if(oSubmenu) { + + this._configureSubmenu(p_oItem); + + } + + break; + + case "text": + case "helptext": + + /* + A change to an item's "text" or "helptext" + configuration properties requires the width of the parent + menu to be recalculated. + */ + + if(this.element.style.width) { + + var sWidth = this._getOffsetWidth() + "px"; + + Dom.setStyle(this.element, "width", sWidth); + + } + + break; + + } + +}, + +// Public event handlers for configuration properties + +/** +* @method enforceConstraints +* @description The default event handler executed when the moveEvent is fired, +* if the "constraintoviewport" configuration property is set to true. +* @param {String} type The name of the event that was fired. +* @param {Array} args Collection of arguments sent when the +* event was fired. +* @param {Array} obj Array containing the current Menu instance +* and the item that fired the event. +*/ +enforceConstraints: function(type, args, obj) { + + var oConfig = this.cfg; + + var pos = args[0]; + + var x = pos[0]; + var y = pos[1]; + + var bod = document.getElementsByTagName('body')[0]; + var htm = document.getElementsByTagName('html')[0]; + + var bodyOverflow = Dom.getStyle(bod, "overflow"); + var htmOverflow = Dom.getStyle(htm, "overflow"); + + var offsetHeight = this.element.offsetHeight; + var offsetWidth = this.element.offsetWidth; + + var viewPortWidth = Dom.getClientWidth(); + var viewPortHeight = Dom.getClientHeight(); + + var scrollX = window.scrollX || document.body.scrollLeft; + var scrollY = window.scrollY || document.body.scrollTop; + + var topConstraint = scrollY + 10; + var leftConstraint = scrollX + 10; + var bottomConstraint = scrollY + viewPortHeight - offsetHeight - 10; + var rightConstraint = scrollX + viewPortWidth - offsetWidth - 10; + + var aContext = oConfig.getProperty("context"); + var oContextElement = aContext ? aContext[0] : null; + + + if (x < 10) { + + x = leftConstraint; + + } else if ((x + offsetWidth) > viewPortWidth) { + + if( + oContextElement && + ((x - oContextElement.offsetWidth) > offsetWidth) + ) { + + x = (x - (oContextElement.offsetWidth + offsetWidth)); + + } + else { + + x = rightConstraint; + + } + + } + + if (y < 10) { + + y = topConstraint; + + } else if (y > bottomConstraint) { + + if(oContextElement && (y > offsetHeight)) { + + y = ((y + oContextElement.offsetHeight) - offsetHeight); + + } + else { + + y = bottomConstraint; + + } + + } + + oConfig.setProperty("x", x, true); + oConfig.setProperty("y", y, true); + +}, + +/** +* @method configVisible +* @description Event handler for when the "visible" configuration property +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configVisible: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configVisible.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + else { + + var bVisible = p_aArgs[0]; + var sDisplay = Dom.getStyle(this.element, "display"); + + if(bVisible) { + + if(sDisplay != "block") { + this.beforeShowEvent.fire(); + Dom.setStyle(this.element, "display", "block"); + this.showEvent.fire(); + } + + } + else { + + if(sDisplay == "block") { + this.beforeHideEvent.fire(); + Dom.setStyle(this.element, "display", "none"); + this.hideEvent.fire(); + } + + } + + } + +}, + +/** +* @method configPosition +* @description Event handler for when the "position" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configPosition: function(p_sType, p_aArgs, p_oMenu) { + + var sCSSPosition = p_aArgs[0] == "static" ? "static" : "absolute"; + var oCfg = this.cfg; + + Dom.setStyle(this.element, "position", sCSSPosition); + + if(sCSSPosition == "static") { + + /* + Remove the iframe for statically positioned menus since it will + intercept mouse events. + */ + + oCfg.setProperty("iframe", false); + + // Statically positioned menus are visible by default + + Dom.setStyle(this.element, "display", "block"); + + oCfg.setProperty("visible", true); + + } + else { + + /* + Even though the "visible" property is queued to + "false" by default, we need to set the "visibility" property to + "hidden" since Overlay's "configVisible" implementation checks the + element's "visibility" style property before deciding whether + or not to show an Overlay instance. + */ + + Dom.setStyle(this.element, "visibility", "hidden"); + + } + + if(sCSSPosition == "absolute") { + + var nZIndex = oCfg.getProperty("zindex"); + + if(!nZIndex || nZIndex === 0) { + + nZIndex = this.parent ? + (this.parent.parent.cfg.getProperty("zindex") + 1) : 1; + + oCfg.setProperty("zindex", nZIndex); + + } + + } + +}, + +/** +* @method configIframe +* @description Event handler for when the "iframe" configuration property of +* the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configIframe: function(p_sType, p_aArgs, p_oMenu) { + + if(this.cfg.getProperty("position") == "dynamic") { + + YAHOO.widget.Menu.superclass.configIframe.call( + this, + p_sType, + p_aArgs, + p_oMenu + ); + + } + +}, + +/** +* @method configHideDelay +* @description Event handler for when the "hidedelay" configuration property +* of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configHideDelay: function(p_sType, p_aArgs, p_oMenu) { + + var nHideDelay = p_aArgs[0]; + var oMouseOutEvent = this.mouseOutEvent; + var oMouseOverEvent = this.mouseOverEvent; + var oKeyDownEvent = this.keyDownEvent; + + if(nHideDelay > 0) { + + /* + Only assign event handlers once. This way the user change + the value for the hidedelay as many times as they want. + */ + + if(!this._hideDelayEventHandlersAssigned) { + + oMouseOutEvent.subscribe(this._execHideDelay, true); + oMouseOverEvent.subscribe(this._cancelHideDelay, this, true); + oKeyDownEvent.subscribe(this._cancelHideDelay, this, true); + + this._hideDelayEventHandlersAssigned = true; + + } + + } + else { + + oMouseOutEvent.unsubscribe(this._execHideDelay, this); + oMouseOverEvent.unsubscribe(this._cancelHideDelay, this); + oKeyDownEvent.unsubscribe(this._cancelHideDelay, this); + + this._hideDelayEventHandlersAssigned = false; + + } + +}, + +/** +* @method configContainer +* @description Event handler for when the "container" configuration property +of the menu changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that +* fired the event. +*/ +configContainer: function(p_sType, p_aArgs, p_oMenu) { + + var oElement = p_aArgs[0]; + + if(typeof oElement == 'string') { + + this.cfg.setProperty( + "container", + document.getElementById(oElement), + true + ); + + } + +}, + +// Public methods + +/** +* Event handler called when the resize monitor element's "resize" evet is fired. +*/ +onDomResize: function(e, obj) { + + if(!this._handleResize) { + + this._handleResize = true; + return; + + } + + var oConfig = this.cfg; + + if(oConfig.getProperty("position") == "dynamic") { + + oConfig.setProperty("width", (this._getOffsetWidth() + "px")); + + } + + YAHOO.widget.Menu.superclass.onDomResize.call(this, e, obj); + +}, + +/** +* @method initEvents +* @description Initializes the custom events for the menu. +*/ +initEvents: function() { + + YAHOO.widget.Menu.superclass.initEvents.call(this); + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.itemAddedEvent = new CustomEvent("itemAddedEvent", this); + this.itemRemovedEvent = new CustomEvent("itemRemovedEvent", this); + +}, + +/** +* @method getRoot +* @description Finds the menu's root menu. +*/ +getRoot: function() { + + var oItem = this.parent; + + if(oItem) { + + var oParentMenu = oItem.parent; + + return oParentMenu ? oParentMenu.getRoot() : this; + + } + else { + + return this; + + } + +}, + +/** +* @method toString +* @description Returns a string representing the menu. +* @return {String} +*/ +toString: function() { + + return ("Menu " + this.id); + +}, + +/** +* @method setItemGroupTitle +* @description Sets the title of a group of menu items. +* @param {String} p_sGroupTitle String specifying the title of the group. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to which +* the title belongs. +*/ +setItemGroupTitle: function(p_sGroupTitle, p_nGroupIndex) { + + if(typeof p_sGroupTitle == "string" && p_sGroupTitle.length > 0) { + + var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0; + var oTitle = this._aGroupTitleElements[nGroupIndex]; + + if(oTitle) { + + oTitle.innerHTML = p_sGroupTitle; + + } + else { + + oTitle = document.createElement(this.GROUP_TITLE_TAG_NAME); + + oTitle.innerHTML = p_sGroupTitle; + + this._aGroupTitleElements[nGroupIndex] = oTitle; + + } + + var i = this._aGroupTitleElements.length - 1; + var nFirstIndex; + + do { + + if(this._aGroupTitleElements[i]) { + + Dom.removeClass(this._aGroupTitleElements[i], "first-of-type"); + + nFirstIndex = i; + + } + + } + while(i--); + + if(nFirstIndex !== null) { + + Dom.addClass( + this._aGroupTitleElements[nFirstIndex], + "first-of-type" + ); + + } + + } + +}, + +/** +* @method addItem +* @description Appends an item to the menu. +* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem +* instance to be added to the menu. +* @param {String} p_oItem String specifying the text of the item to be added +* to the menu. +* @param {Object} p_oItem Object literal containing a set of menu item +* configuration properties. +* @param {Number} p_nGroupIndex Optional. Number indicating the group to +* which the item belongs. +* @return {YAHOO.widget.MenuItem} +*/ +addItem: function(p_oItem, p_nGroupIndex) { + + if(p_oItem) { + + return this._addItemToGroup(p_nGroupIndex, p_oItem); + + } + +}, + +/** +* @method addItems +* @description Adds an array of items to the menu. +* @param {Array} p_aItems Array of items to be added to the menu. The array +* can contain strings specifying the text for each item to be created, object +* literals specifying each of the menu item configuration properties, +* or MenuItem instances. +* @param {Number} p_nGroupIndex Optional. Number specifying the group to +* which the items belongs. +* @return {Array} +*/ +addItems: function(p_aItems, p_nGroupIndex) { + + function isArray(p_oValue) { + + return (typeof p_oValue == "object" && p_oValue.constructor == Array); + + } + + if(isArray(p_aItems)) { + + var nItems = p_aItems.length; + var aItems = []; + var oItem; + + for(var i=0; i<div> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove Custom Event listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + + var nItemGroups = this._aItemGroups.length; + var nItems; + var oItemGroup; + var oItem; + var i; + var n; + + // Remove all items + + if(nItemGroups > 0) { + + i = nItemGroups - 1; + + do { + + oItemGroup = this._aItemGroups[i]; + + if(oItemGroup) { + + nItems = oItemGroup.length; + + if(nItems > 0) { + + n = nItems - 1; + + do { + + oItem = this._aItemGroups[i][n]; + + if(oItem) { + + oItem.destroy(); + } + + } + while(n--); + + } + + } + + } + while(i--); + + } + + // Continue with the superclass implementation of this method + + YAHOO.widget.Menu.superclass.destroy.call(this); + + +}, + +/** +* @method setInitialFocus +* @description Sets focus to the menu's first enabled item. +*/ +setInitialFocus: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.focus(); + } + +}, + +/** +* @method setInitialSelection +* @description Sets the "selected" configuration property of the menu's first +* enabled item to "true." +*/ +setInitialSelection: function() { + + var oItem = this._getFirstEnabledItem(); + + if(oItem) { + + oItem.cfg.setProperty("selected", true); + } + +}, + +/** +* @method clearActiveItem +* @description Sets the "selected" configuration property of the menu's active +* item to "false" and hides the item's submenu. +* @param {Boolean} p_bBlur Boolean indicating if the menu's active item +* should be blurred. +*/ +clearActiveItem: function(p_bBlur) { + + if(this.cfg.getProperty("showdelay") > 0) { + + this._cancelShowDelay(); + + } + + var oActiveItem = this.activeItem; + + if(oActiveItem) { + + var oConfig = oActiveItem.cfg; + + oConfig.setProperty("selected", false); + + var oSubmenu = oConfig.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.hide(); + + } + + if(p_bBlur) { + + oActiveItem.blur(); + + } + + } + +}, + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.Menu.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration properties + + /* + Change the default value for the "visible" configuration + property to "false" by re-adding the property. + */ + + /** + * @config visible + * @description Boolean indicating whether or not the menu is visible. If + * the menu's "position" configuration property is set to "dynamic" (the + * default), this property toggles the menu's <div> + * element's "visibility" style property between "visible" (true) or + * "hidden" (false). If the menu's "position" configuration property is + * set to "static" this property toggles the menu's + * <div> element's "display" style property + * between "block" (true) or "none" (false). + * @default false + * @type Boolean + */ + oConfig.addProperty( + "visible", + { + value:false, + handler:this.configVisible, + validator:this.cfg.checkBoolean + } + ); + + /* + Change the default value for the "constraintoviewport" configuration + property to "true" by re-adding the property. + */ + + /** + * @config constraintoviewport + * @description Boolean indicating if the menu will try to remain inside + * the boundaries of the size of viewport. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "constraintoviewport", + { + value:true, + handler:this.configConstrainToViewport, + validator:this.cfg.checkBoolean, + supercedes:["iframe","x","y","xy"] + } + ); + + /** + * @config position + * @description String indicating how a menu should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menus are + * visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menus are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and + * can overlay other elements on the screen. + * @default dynamic + * @type String + */ + oConfig.addProperty( + "position", + { + value: "dynamic", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu item. The format is: [itemCorner, submenuCorner]. By default + * a submenu's top left corner is aligned to its parent menu item's top + * right corner. + * @default ["tl","tr"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","tr"] } ); + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu's items. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + /** + * @config showdelay + * @description Number indicating the time (in milliseconds) that should + * expire before a submenu is made visible when the user mouses over + * the menu's items. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "showdelay", + { + value: 0, + validator: oConfig.checkNumber + } + ); + + /** + * @config hidedelay + * @description Number indicating the time (in milliseconds) that should + * expire before the menu is hidden. + * @default 0 + * @type Number + */ + oConfig.addProperty( + "hidedelay", + { + value: 0, + validator: oConfig.checkNumber, + handler: this.configHideDelay, + suppressEvent: true + } + ); + + /** + * @config clicktohide + * @description Boolean indicating if the menu will automatically be + * hidden if the user clicks outside of it. + * @default true + * @type Boolean + */ + oConfig.addProperty( + "clicktohide", + { + value: true, + validator: oConfig.checkBoolean + } + ); + + /** + * @config container + * @description HTML element reference or string specifying the id + * attribute of the HTML element that the menu's markup should be rendered into. + * @type HTMLElement|String + * @default document.body + */ + this.cfg.addProperty( + "container", + { value:document.body, handler:this.configContainer } + ); + +} + +}); // END YAHOO.extend + +})(); + +/** +* The base class for all menuing containers. +* +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the menu module. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source for the +* menu module. +* @param {HTMLDivElement} p_oElement Object +* specifying the <div> element of the menu module. +* @param {HTMLSelectElement} p_oElement Object +* specifying the <select> element to be used as the data +* source for the menu module. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu module. See configuration class documentation for +* more details. +* @class MenuModule +* @constructor +* @extends YAHOO.widget.Overlay +* @deprecated As of version 0.12, all MenuModule functionality has been +* implemented directly in YAHOO.widget.Menu, making YAHOO.widget.Menu the base +* class for all menuing containers. +*/ +YAHOO.widget.MenuModule = YAHOO.widget.Menu; + +(function() { + +var Dom = YAHOO.util.Dom; +var Module = YAHOO.widget.Module; +var Menu = YAHOO.widget.Menu; + +/** +* Creates an item for a menu. +* +* @param {String} p_oObject String specifying the text of the menu item. +* @param {HTMLLIElement} p_oObject Object specifying +* the <li> element of the menu item. +* @param {HTMLOptGroupElement} p_oObject Object +* specifying the <optgroup> element of the menu item. +* @param {HTMLOptionElement} p_oObject Object +* specifying the <option> element of the menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu item. See configuration class documentation +* for more details. +* @class MenuItem +* @constructor +*/ +YAHOO.widget.MenuItem = function(p_oObject, p_oConfig) { + + if(p_oObject) { + + if(p_oConfig) { + + this.parent = p_oConfig.parent; + this.value = p_oConfig.value; + + } + + this.init(p_oObject, p_oConfig); + + } + +}; + +YAHOO.widget.MenuItem.prototype = { + + // Constants + + /** + * @property SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * menu item's submenu arrow indicator. + * @default "nt/ic/ut/alt1/menuarorght8_nrm_1.gif" + * @final + * @type String + */ + SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarorght8_nrm_1.gif", + + /** + * @property SELECTED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is selected. + * @default "nt/ic/ut/alt1/menuarorght8_hov_1.gif" + * @final + * @type String + */ + SELECTED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_hov_1.gif", + + /** + * @property DISABLED_SUBMENU_INDICATOR_IMAGE_PATH + * @description String representing the path to the image to be used for the + * submenu arrow indicator when the menu item is disabled. + * @default "nt/ic/ut/alt1/menuarorght8_dim_1.gif" + * @final + * @type String + */ + DISABLED_SUBMENU_INDICATOR_IMAGE_PATH: + "nt/ic/ut/alt1/menuarorght8_dim_1.gif", + + /** + * @property COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator. + * @default "Collapsed. Click to expand." + * @final + * @type String + */ + COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT: "Collapsed. Click to expand.", + + /** + * @property EXPANDED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the submenu is visible. + * @default "Expanded. Click to collapse." + * @final + * @type String + */ + EXPANDED_SUBMENU_INDICATOR_ALT_TEXT: "Expanded. Click to collapse.", + + /** + * @property DISABLED_SUBMENU_INDICATOR_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the submenu arrow indicator when the menu item is disabled. + * @default "Disabled." + * @final + * @type String + */ + DISABLED_SUBMENU_INDICATOR_ALT_TEXT: "Disabled.", + + /** + * @property CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the checked state. + * @default "nt/ic/ut/bsc/menuchk8_nrm_1.gif" + * @final + * @type String + */ + CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_nrm_1.gif", + + + /** + * @property SELECTED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the selected checked state. + * @default "nt/ic/ut/bsc/menuchk8_hov_1.gif" + * @final + * @type String + */ + SELECTED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_hov_1.gif", + + + /** + * @property DISABLED_CHECKED_IMAGE_PATH + * @description String representing the path to the image to be used for + * the disabled checked state. + * @default "nt/ic/ut/bsc/menuchk8_dim_1.gif" + * @final + * @type String + */ + DISABLED_CHECKED_IMAGE_PATH: "nt/ic/ut/bsc/menuchk8_dim_1.gif", + + + /** + * @property CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image. + * @default "Checked." + * @final + * @type String + */ + CHECKED_IMAGE_ALT_TEXT: "Checked.", + + + /** + * @property DISABLED_CHECKED_IMAGE_ALT_TEXT + * @description String representing the alt text for the image to be used + * for the checked image when the item is disabled. + * @default "Checked. (Item disabled.)" + * @final + * @type String + */ + DISABLED_CHECKED_IMAGE_ALT_TEXT: "Checked. (Item disabled.)", + + /** + * @property CSS_CLASS_NAME + * @description String representing the CSS class(es) to be applied to the + * <li> element of the menu item. + * @default "yuimenuitem" + * @final + * @type String + */ + CSS_CLASS_NAME: "yuimenuitem", + + /** + * @property SUBMENU_TYPE + * @description Object representing the type of menu to instantiate and + * add when parsing the child nodes of the menu item's source HTML element. + * @final + * @type YAHOO.widget.Menu + */ + SUBMENU_TYPE: null, + + /** + * @property IMG_ROOT + * @description String representing the prefix path to use for + * non-secure images. + * @default "http://us.i1.yimg.com/us.yimg.com/i/" + * @type String + */ + IMG_ROOT: "http://us.i1.yimg.com/us.yimg.com/i/", + + + /** + * @property IMG_ROOT_SSL + * @description String representing the prefix path to use for securely + * served images. + * @default "https://a248.e.akamai.net/sec.yimg.com/i/" + * @type String + */ + IMG_ROOT_SSL: "https://a248.e.akamai.net/sec.yimg.com/i/", + + // Private member variables + + /** + * @property _oAnchor + * @description Object reference to the menu item's + * <a> element. + * @default null + * @private + * @type HTMLAnchorElement + */ + _oAnchor: null, + + + /** + * @property _oText + * @description Object reference to the menu item's text node. + * @default null + * @private + * @type TextNode + */ + _oText: null, + + + /** + * @property _oHelpTextEM + * @description Object reference to the menu item's help text + * <em> element. + * @default null + * @private + * @type HTMLElement + */ + _oHelpTextEM: null, + + + /** + * @property _oSubmenu + * @description Object reference to the menu item's submenu. + * @default null + * @private + * @type YAHOO.widget.Menu + */ + _oSubmenu: null, + + /** + * @property _checkImage + * @description Object reference to the menu item's checkmark image. + * @default null + * @private + * @type HTMLImageElement + */ + _checkImage: null, + + // Public properties + + /** + * @property constructor + * @description Object reference to the menu item's constructor function. + * @default YAHOO.widget.MenuItem + * @type YAHOO.widget.MenuItem + */ + constructor: YAHOO.widget.MenuItem, + + /** + * @property imageRoot + * @description String representing the root path for all of the menu + * item's images. + * @type String + */ + imageRoot: null, + + /** + * @property isSecure + * @description Boolean representing whether or not the current browsing + * context is secure (HTTPS). + * @type Boolean + */ + isSecure: Module.prototype.isSecure, + + /** + * @property index + * @description Number indicating the ordinal position of the menu item in + * its group. + * @default null + * @type Number + */ + index: null, + + /** + * @property groupIndex + * @description Number indicating the index of the group to which the menu + * item belongs. + * @default null + * @type Number + */ + groupIndex: null, + + /** + * @property parent + * @description Object reference to the menu item's parent menu. + * @default null + * @type YAHOO.widget.Menu + */ + parent: null, + + /** + * @property element + * @description Object reference to the menu item's + * <li> element. + * @default HTMLLIElement + * @type HTMLLIElement + */ + element: null, + + /** + * @property srcElement + * @description Object reference to the HTML element (either + * <li>, <optgroup> or + * <option>) used create the menu item. + * @default HTMLLIElement|HTMLOptGroupElement|HTMLOptionElement + * @type HTMLLIElement| + * HTMLOptGroupElement|HTMLOptionElement + */ + srcElement: null, + + /** + * @property value + * @description Object reference to the menu item's value. + * @default null + * @type Object + */ + value: null, + + /** + * @property submenuIndicator + * @description Object reference to the <img> element + * used to create the submenu indicator for the menu item. + * @default HTMLImageElement + * @type HTMLImageElement + */ + submenuIndicator: null, + + /** + * @property browser + * @description String representing the browser. + * @type String + */ + browser: Module.prototype.browser, + + // Events + + /** + * @event destroyEvent + * @description Fires when the menu item's <li> + * element is removed from its parent <ul> element. + * @type YAHOO.util.CustomEvent + */ + destroyEvent: null, + + /** + * @event mouseOverEvent + * @description Fires when the mouse has entered the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOverEvent: null, + + /** + * @event mouseOutEvent + * @description Fires when the mouse has left the menu item. Passes back + * the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseOutEvent: null, + + /** + * @event mouseDownEvent + * @description Fires when the user mouses down on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseDownEvent: null, + + /** + * @event mouseUpEvent + * @description Fires when the user releases a mouse button while the mouse + * is over the menu item. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + mouseUpEvent: null, + + /** + * @event clickEvent + * @description Fires when the user clicks the on the menu item. Passes + * back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + clickEvent: null, + + /** + * @event keyPressEvent + * @description Fires when the user presses an alphanumeric key when the + * menu item has focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyPressEvent: null, + + /** + * @event keyDownEvent + * @description Fires when the user presses a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyDownEvent: null, + + /** + * @event keyUpEvent + * @description Fires when the user releases a key when the menu item has + * focus. Passes back the DOM Event object as an argument. + * @type YAHOO.util.CustomEvent + */ + keyUpEvent: null, + + /** + * @event focusEvent + * @description Fires when the menu item receives focus. + * @type YAHOO.util.CustomEvent + */ + focusEvent: null, + + /** + * @event blurEvent + * @description Fires when the menu item loses the input focus. + * @type YAHOO.util.CustomEvent + */ + blurEvent: null, + + /** + * @method init + * @description The MenuItem class's initialization method. This method is + * automatically called by the constructor, and sets up all DOM references + * for pre-existing markup, and creates required markup if it is not + * already present. + * @param {String} p_oObject String specifying the text of the menu item. + * @param {HTMLLIElement} p_oObject Object specifying + * the <li> element of the menu item. + * @param {HTMLOptGroupElement} p_oObject Object + * specifying the <optgroup> element of the menu item. + * @param {HTMLOptionElement} p_oObject Object + * specifying the <option> element of the menu item. + * @param {Object} p_oConfig Optional. Object literal specifying the + * configuration for the menu item. See configuration class documentation + * for more details. + */ + init: function(p_oObject, p_oConfig) { + + this.imageRoot = (this.isSecure) ? this.IMG_ROOT_SSL : this.IMG_ROOT; + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = Menu; + + } + + // Create the config object + + this.cfg = new YAHOO.util.Config(this); + + this.initDefaultConfig(); + + var oConfig = this.cfg; + + if(this._checkString(p_oObject)) { + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject); + + } + else if(this._checkDOMNode(p_oObject)) { + + switch(p_oObject.tagName.toUpperCase()) { + + case "OPTION": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.text); + + this.srcElement = p_oObject; + + break; + + case "OPTGROUP": + + this._createRootNodeStructure(); + + oConfig.setProperty("text", p_oObject.label); + + this.srcElement = p_oObject; + + this._initSubTree(); + + break; + + case "LI": + + // Get the anchor node (if it exists) + + var oAnchor = this._getFirstElement(p_oObject, "A"); + var sURL = "#"; + var sTarget = null; + var sText = null; + + // Capture the "text" and/or the "URL" + + if(oAnchor) { + + sURL = oAnchor.getAttribute("href"); + sTarget = oAnchor.getAttribute("target"); + + if(oAnchor.innerText) { + + sText = oAnchor.innerText; + + } + else { + + var oRange = oAnchor.ownerDocument.createRange(); + + oRange.selectNodeContents(oAnchor); + + sText = oRange.toString(); + + } + + } + else { + + var oText = p_oObject.firstChild; + + sText = oText.nodeValue; + + oAnchor = document.createElement("a"); + + oAnchor.setAttribute("href", sURL); + + p_oObject.replaceChild(oAnchor, oText); + + oAnchor.appendChild(oText); + + } + + this.srcElement = p_oObject; + this.element = p_oObject; + this._oAnchor = oAnchor; + + + // Check if emphasis has been applied to the MenuItem + + var oEmphasisNode = this._getFirstElement(oAnchor); + var bEmphasis = false; + var bStrongEmphasis = false; + + if(oEmphasisNode) { + + // Set a reference to the text node + + this._oText = oEmphasisNode.firstChild; + + switch(oEmphasisNode.tagName.toUpperCase()) { + + case "EM": + + bEmphasis = true; + + break; + + case "STRONG": + + bStrongEmphasis = true; + + break; + + } + + } + else { + + // Set a reference to the text node + + this._oText = oAnchor.firstChild; + + } + + /* + Set these properties silently to sync up the + configuration object without making changes to the + element's DOM + */ + + oConfig.setProperty("text", sText, true); + oConfig.setProperty("url", sURL, true); + oConfig.setProperty("target", sTarget, true); + oConfig.setProperty("emphasis", bEmphasis, true); + oConfig.setProperty( + "strongemphasis", + bStrongEmphasis, + true + ); + + this._initSubTree(); + + break; + + } + + } + + if(this.element) { + + Dom.addClass(this.element, this.CSS_CLASS_NAME); + + // Create custom events + + var CustomEvent = YAHOO.util.CustomEvent; + + this.destroyEvent = new CustomEvent("destroyEvent", this); + this.mouseOverEvent = new CustomEvent("mouseOverEvent", this); + this.mouseOutEvent = new CustomEvent("mouseOutEvent", this); + this.mouseDownEvent = new CustomEvent("mouseDownEvent", this); + this.mouseUpEvent = new CustomEvent("mouseUpEvent", this); + this.clickEvent = new CustomEvent("clickEvent", this); + this.keyPressEvent = new CustomEvent("keyPressEvent", this); + this.keyDownEvent = new CustomEvent("keyDownEvent", this); + this.keyUpEvent = new CustomEvent("keyUpEvent", this); + this.focusEvent = new CustomEvent("focusEvent", this); + this.blurEvent = new CustomEvent("blurEvent", this); + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig); + + } + + oConfig.fireQueue(); + + } + + }, + + // Private methods + + /** + * @method _getFirstElement + * @description Returns an HTML element's first HTML element node. + * @private + * @param {HTMLElement} p_oElement Object + * reference specifying the element to be evaluated. + * @param {String} p_sTagName Optional. String specifying the tagname of + * the element to be retrieved. + * @return {HTMLElement} + */ + _getFirstElement: function(p_oElement, p_sTagName) { + + var oElement; + + if(p_oElement.firstChild && p_oElement.firstChild.nodeType == 1) { + + oElement = p_oElement.firstChild; + + } + else if( + p_oElement.firstChild && + p_oElement.firstChild.nextSibling && + p_oElement.firstChild.nextSibling.nodeType == 1 + ) { + + oElement = p_oElement.firstChild.nextSibling; + + } + + if(p_sTagName) { + + return (oElement && oElement.tagName.toUpperCase() == p_sTagName) ? + oElement : false; + + } + + return oElement; + + }, + + /** + * @method _checkString + * @description Determines if an object is a string. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkString: function(p_oObject) { + + return (typeof p_oObject == "string"); + + }, + + /** + * @method _checkDOMNode + * @description Determines if an object is an HTML element. + * @private + * @param {Object} p_oObject Object to be evaluated. + * @return {Boolean} + */ + _checkDOMNode: function(p_oObject) { + + return (p_oObject && p_oObject.tagName); + + }, + + /** + * @method _createRootNodeStructure + * @description Creates the core DOM structure for the menu item. + * @private + */ + _createRootNodeStructure: function () { + + this.element = document.createElement("li"); + + this._oText = document.createTextNode(""); + + this._oAnchor = document.createElement("a"); + this._oAnchor.appendChild(this._oText); + + this.cfg.refireEvent("url"); + + this.element.appendChild(this._oAnchor); + + }, + + /** + * @method _initSubTree + * @description Iterates the source element's childNodes collection and uses + * the child nodes to instantiate other menus. + * @private + */ + _initSubTree: function() { + + var oSrcEl = this.srcElement; + var oConfig = this.cfg; + + if(oSrcEl.childNodes.length > 0) { + + if( + this.parent.lazyLoad && + this.parent.srcElement && + this.parent.srcElement.tagName.toUpperCase() == "SELECT" + ) { + + oConfig.setProperty( + "submenu", + { id: Dom.generateId(), itemdata: oSrcEl.childNodes } + ); + + } + else { + + var oNode = oSrcEl.firstChild; + var aOptions = []; + + do { + + if(oNode && oNode.tagName) { + + switch(oNode.tagName.toUpperCase()) { + + case "DIV": + + oConfig.setProperty("submenu", oNode); + + break; + + case "OPTION": + + aOptions[aOptions.length] = oNode; + + break; + + } + + } + + } + while((oNode = oNode.nextSibling)); + + + var nOptions = aOptions.length; + + if(nOptions > 0) { + + var oMenu = new this.SUBMENU_TYPE(Dom.generateId()); + + oConfig.setProperty("submenu", oMenu); + + for(var n=0; n 0) { + + oAnchor.setAttribute("target", sTarget); + + } + else { + + oAnchor.removeAttribute("target"); + + } + + }, + + /** + * @method configEmphasis + * @description Event handler for when the "emphasis" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bEmphasis = p_aArgs[0]; + var oAnchor = this._oAnchor; + var oText = this._oText; + var oConfig = this.cfg; + var oEM; + + if(bEmphasis && oConfig.getProperty("strongemphasis")) { + + oConfig.setProperty("strongemphasis", false); + + } + + if(oAnchor) { + + if(bEmphasis) { + + oEM = document.createElement("em"); + oEM.appendChild(oText); + + oAnchor.appendChild(oEM); + + } + else { + + oEM = this._getFirstElement(oAnchor, "EM"); + + oAnchor.removeChild(oEM); + oAnchor.appendChild(oText); + + } + + } + + }, + + /** + * @method configStrongEmphasis + * @description Event handler for when the "strongemphasis" configuration + * property of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configStrongEmphasis: function(p_sType, p_aArgs, p_oItem) { + + var bStrongEmphasis = p_aArgs[0]; + var oAnchor = this._oAnchor; + var oText = this._oText; + var oConfig = this.cfg; + var oStrong; + + if(bStrongEmphasis && oConfig.getProperty("emphasis")) { + + oConfig.setProperty("emphasis", false); + + } + + if(oAnchor) { + + if(bStrongEmphasis) { + + oStrong = document.createElement("strong"); + oStrong.appendChild(oText); + + oAnchor.appendChild(oStrong); + + } + else { + + oStrong = this._getFirstElement(oAnchor, "STRONG"); + + oAnchor.removeChild(oStrong); + oAnchor.appendChild(oText); + + } + + } + + }, + + /** + * @method configChecked + * @description Event handler for when the "checked" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configChecked: function(p_sType, p_aArgs, p_oItem) { + + var bChecked = p_aArgs[0]; + var oEl = this.element; + var oConfig = this.cfg; + var oImg; + + + if(bChecked) { + + this._preloadImage(this.CHECKED_IMAGE_PATH); + this._preloadImage(this.SELECTED_CHECKED_IMAGE_PATH); + this._preloadImage(this.DISABLED_CHECKED_IMAGE_PATH); + + oImg = document.createElement("img"); + oImg.src = (this.imageRoot + this.CHECKED_IMAGE_PATH); + oImg.alt = this.CHECKED_IMAGE_ALT_TEXT; + + var oSubmenu = this.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oEl.insertBefore(oImg, oSubmenu.element); + + } + else { + + oEl.appendChild(oImg); + + } + + Dom.addClass([oEl, oImg], "checked"); + + this._checkImage = oImg; + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + else { + + oImg = this._checkImage; + + Dom.removeClass([oEl, oImg], "checked"); + + if(oImg) { + + oEl.removeChild(oImg); + + } + + this._checkImage = null; + + } + + }, + + /** + * @method configDisabled + * @description Event handler for when the "disabled" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configDisabled: function(p_sType, p_aArgs, p_oItem) { + + var bDisabled = p_aArgs[0]; + var oAnchor = this._oAnchor; + var aNodes = [this.element, oAnchor]; + var oEM = this._oHelpTextEM; + var oConfig = this.cfg; + var oImg; + var sImgSrc; + var sImgAlt; + + if(oEM) { + + aNodes[2] = oEM; + + } + + if(this.cfg.getProperty("checked")) { + + sImgAlt = this.CHECKED_IMAGE_ALT_TEXT; + sImgSrc = this.CHECKED_IMAGE_PATH; + oImg = this._checkImage; + + if(bDisabled) { + + sImgAlt = this.DISABLED_CHECKED_IMAGE_ALT_TEXT; + sImgSrc = this.DISABLED_CHECKED_IMAGE_PATH; + + } + + oImg.src = document.images[(this.imageRoot + sImgSrc)].src; + oImg.alt = sImgAlt; + + } + + oImg = this.submenuIndicator; + + if(bDisabled) { + + if(oConfig.getProperty("selected")) { + + oConfig.setProperty("selected", false); + + } + + oAnchor.removeAttribute("href"); + + Dom.addClass(aNodes, "disabled"); + + sImgSrc = this.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH; + sImgAlt = this.DISABLED_SUBMENU_INDICATOR_ALT_TEXT; + + } + else { + + oAnchor.setAttribute("href", oConfig.getProperty("url")); + + Dom.removeClass(aNodes, "disabled"); + + sImgSrc = this.SUBMENU_INDICATOR_IMAGE_PATH; + sImgAlt = this.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT; + + } + + if(oImg) { + + oImg.src = this.imageRoot + sImgSrc; + oImg.alt = sImgAlt; + + } + + }, + + /** + * @method configSelected + * @description Event handler for when the "selected" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSelected: function(p_sType, p_aArgs, p_oItem) { + + if(!this.cfg.getProperty("disabled")) { + + var bSelected = p_aArgs[0]; + var oEM = this._oHelpTextEM; + var aNodes = [this.element, this._oAnchor]; + var oImg = this.submenuIndicator; + var sImgSrc; + + if(oEM) { + + aNodes[aNodes.length] = oEM; + + } + + if(oImg) { + + aNodes[aNodes.length] = oImg; + + } + + + if(this.cfg.getProperty("checked")) { + + sImgSrc = this.imageRoot + (bSelected ? + this.SELECTED_CHECKED_IMAGE_PATH : this.CHECKED_IMAGE_PATH); + + this._checkImage.src = document.images[sImgSrc].src; + + } + + if(bSelected) { + + Dom.addClass(aNodes, "selected"); + sImgSrc = this.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH; + + } + else { + + Dom.removeClass(aNodes, "selected"); + sImgSrc = this.SUBMENU_INDICATOR_IMAGE_PATH; + + } + + if(oImg) { + + oImg.src = document.images[(this.imageRoot + sImgSrc)].src; + + } + + } + + }, + + /** + * @method configSubmenu + * @description Event handler for when the "submenu" configuration property + * of the menu item changes. + * @param {String} p_sType String representing the name of the event that + * was fired. + * @param {Array} p_aArgs Array of arguments sent when the event was fired. + * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item + * that fired the event. + */ + configSubmenu: function(p_sType, p_aArgs, p_oItem) { + + var oEl = this.element; + var oSubmenu = p_aArgs[0]; + var oImg = this.submenuIndicator; + var oConfig = this.cfg; + var aNodes = [this.element, this._oAnchor]; + var oMenu; + var bLazyLoad = this.parent && this.parent.lazyLoad; + + if(oSubmenu) { + + if(oSubmenu instanceof Menu) { + + oMenu = oSubmenu; + oMenu.parent = this; + oMenu.lazyLoad = bLazyLoad; + + } + else if( + typeof oSubmenu == "object" && + oSubmenu.id && + !oSubmenu.nodeType + ) { + + var sSubmenuId = oSubmenu.id; + var oSubmenuConfig = oSubmenu; + + delete oSubmenu["id"]; + + oSubmenuConfig.lazyload = bLazyLoad; + oSubmenuConfig.parent = this; + + oMenu = new this.SUBMENU_TYPE(sSubmenuId, oSubmenuConfig); + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + else { + + oMenu = new this.SUBMENU_TYPE( + oSubmenu, + { lazyload: bLazyLoad, parent: this } + ); + + // Set the value of the property to the Menu instance + + this.cfg.setProperty("submenu", oMenu, true); + + } + + if(oMenu) { + + this._oSubmenu = oMenu; + + if(!oImg) { + + this._preloadImage(this.SUBMENU_INDICATOR_IMAGE_PATH); + this._preloadImage( + this.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH + ); + + this._preloadImage( + this.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH + ); + + oImg = document.createElement("img"); + + oImg.src = + (this.imageRoot + this.SUBMENU_INDICATOR_IMAGE_PATH); + + oImg.alt = this.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT; + + oEl.appendChild(oImg); + + this.submenuIndicator = oImg; + + Dom.addClass(aNodes, "hassubmenu"); + + if(oConfig.getProperty("disabled")) { + + oConfig.refireEvent("disabled"); + + } + + if(oConfig.getProperty("selected")) { + + oConfig.refireEvent("selected"); + + } + + } + + } + + } + else { + + Dom.removeClass(aNodes, "hassubmenu"); + + if(oImg) { + + oEl.removeChild(oImg); + + } + + if(this._oSubmenu) { + + this._oSubmenu.destroy(); + + } + + } + + }, + + // Public methods + + /** + * @method initDefaultConfig + * @description Initializes an item's configurable properties. + */ + initDefaultConfig : function() { + + var oConfig = this.cfg; + var CheckBoolean = oConfig.checkBoolean; + + // Define the config properties + + /** + * @config text + * @description String specifying the text label for the menu item. + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default "" + * @type String + */ + oConfig.addProperty( + "text", + { + value: "", + handler: this.configText, + validator: this._checkString, + suppressEvent: true + } + ); + + + /** + * @config helptext + * @description String specifying additional instructional text to + * accompany the text for the nenu item. + * @default null + * @type String| + * HTMLElement + */ + oConfig.addProperty("helptext", { handler: this.configHelpText }); + + /** + * @config url + * @description String specifying the URL for the menu item's anchor's + * "href" attribute. When building a menu from existing HTML the value + * of this property will be interpreted from the menu's markup. + * @default "#" + * @type String + */ + oConfig.addProperty( + "url", + { value: "#", handler: this.configURL, suppressEvent: true } + ); + + /** + * @config target + * @description String specifying the value for the "target" attribute + * of the menu item's anchor element. Specifying a target will + * require the user to click directly on the menu item's anchor node in + * order to cause the browser to navigate to the specified URL. + * When building a menu from existing HTML the value of this property + * will be interpreted from the menu's markup. + * @default null + * @type String + */ + oConfig.addProperty( + "target", + { handler: this.configTarget, suppressEvent: true } + ); + + /** + * @config emphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with emphasis. When building a menu from existing HTML the + * value of this property will be interpreted from the menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "emphasis", + { + value: false, + handler: this.configEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + /** + * @config strongemphasis + * @description Boolean indicating if the text of the menu item will be + * rendered with strong emphasis. When building a menu from existing + * HTML the value of this property will be interpreted from the + * menu's markup. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "strongemphasis", + { + value: false, + handler: this.configStrongEmphasis, + validator: CheckBoolean, + suppressEvent: true + } + ); + + /** + * @config checked + * @description Boolean indicating if the menu item should be rendered + * with a checkmark. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "checked", + { + value: false, + handler: this.configChecked, + validator: this.cfg.checkBoolean, + suppressEvent: true, + supercedes:["disabled"] + } + ); + + /** + * @config disabled + * @description Boolean indicating if the menu item should be disabled. + * (Disabled menu items are dimmed and will not respond to user input + * or fire events.) + * @default false + * @type Boolean + */ + oConfig.addProperty( + "disabled", + { + value: false, + handler: this.configDisabled, + validator: CheckBoolean, + suppressEvent: true + } + ); + + /** + * @config selected + * @description Boolean indicating if the menu item should + * be highlighted. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "selected", + { + value: false, + handler: this.configSelected, + validator: CheckBoolean, + suppressEvent: true + } + ); + + /** + * @config submenu + * @description Object specifying the submenu to be appended to the + * menu item. The value can be one of the following:
  • Object + * specifying a Menu instance.
  • Object literal specifying the + * menu to be created. Format: { id: [menu id], itemdata: + * [array of values for + * items] }.
  • String specifying the id attribute + * of the <div> element of the menu.
  • + * Object specifying the <div> element of the + * menu.
+ * @default null + * @type Menu|String|Object| + * HTMLElement + */ + oConfig.addProperty("submenu", { handler: this.configSubmenu }); + + }, + + /** + * @method getNextEnabledSibling + * @description Finds the menu item's next enabled sibling. + * @return YAHOO.widget.MenuItem + */ + getNextEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + /** + * Finds the next item in an array. + * @private + * @param {p_aArray} Array to search. + * @param {p_nStartIndex} Number indicating the index to + * start searching the array. + * @return {Object} + */ + var getNextArrayItem = function(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getNextArrayItem(p_aArray, (p_nStartIndex+1)); + + }; + + + var aItemGroups = this.parent.getItemGroups(); + var oNextItem; + + + if(this.index < (aItemGroups[nGroupIndex].length - 1)) { + + oNextItem = getNextArrayItem( + aItemGroups[nGroupIndex], + (this.index+1) + ); + + } + else { + + var nNextGroupIndex; + + if(nGroupIndex < (aItemGroups.length - 1)) { + + nNextGroupIndex = nGroupIndex + 1; + + } + else { + + nNextGroupIndex = 0; + + } + + var aNextGroup = getNextArrayItem(aItemGroups, nNextGroupIndex); + + // Retrieve the first menu item in the next group + + oNextItem = getNextArrayItem(aNextGroup, 0); + + } + + return ( + oNextItem.cfg.getProperty("disabled") || + oNextItem.element.style.display == "none" + ) ? + oNextItem.getNextEnabledSibling() : oNextItem; + + } + + }, + + /** + * @method getPreviousEnabledSibling + * @description Finds the menu item's previous enabled sibling. + * @return {YAHOO.widget.MenuItem} + */ + getPreviousEnabledSibling: function() { + + if(this.parent instanceof Menu) { + + var nGroupIndex = this.groupIndex; + + /** + * Returns the previous item in an array + * @private + * @param {p_aArray} Array to search. + * @param {p_nStartIndex} Number indicating the index to + * start searching the array. + * @return {Object} + */ + var getPreviousArrayItem = function(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] || + getPreviousArrayItem(p_aArray, (p_nStartIndex-1)); + + }; + + /** + * Get the index of the first item in an array + * @private + * @param {p_aArray} Array to search. + * @param {p_nStartIndex} Number indicating the index to + * start searching the array. + * @return {Object} + */ + var getFirstItemIndex = function(p_aArray, p_nStartIndex) { + + return p_aArray[p_nStartIndex] ? + p_nStartIndex : + getFirstItemIndex(p_aArray, (p_nStartIndex+1)); + + }; + + var aItemGroups = this.parent.getItemGroups(); + var oPreviousItem; + + if( + this.index > getFirstItemIndex(aItemGroups[nGroupIndex], 0) + ) { + + oPreviousItem = + getPreviousArrayItem( + aItemGroups[nGroupIndex], + (this.index-1) + ); + + } + else { + + var nPreviousGroupIndex; + + if(nGroupIndex > getFirstItemIndex(aItemGroups, 0)) { + + nPreviousGroupIndex = nGroupIndex - 1; + + } + else { + + nPreviousGroupIndex = aItemGroups.length - 1; + + } + + var aPreviousGroup = + getPreviousArrayItem(aItemGroups, nPreviousGroupIndex); + + oPreviousItem = + getPreviousArrayItem( + aPreviousGroup, + (aPreviousGroup.length - 1) + ); + + } + + return ( + oPreviousItem.cfg.getProperty("disabled") || + oPreviousItem.element.style.display == "none" + ) ? + oPreviousItem.getPreviousEnabledSibling() : oPreviousItem; + + } + + }, + + /** + * @method focus + * @description Causes the menu item to receive the focus and fires the + * focus event. + */ + focus: function() { + + var oParent = this.parent; + var oAnchor = this._oAnchor; + var oActiveItem = oParent.activeItem; + + if( + !this.cfg.getProperty("disabled") && + oParent && + oParent.cfg.getProperty("visible") && + this.element.style.display != "none" + ) { + + if(oActiveItem) { + + oActiveItem.blur(); + + } + + try { + + oAnchor.focus(); + + } + catch(e) { + + } + + this.focusEvent.fire(); + + } + + }, + + /** + * @method blur + * @description Causes the menu item to lose focus and fires the + * onblur event. + */ + blur: function() { + + var oParent = this.parent; + + if( + !this.cfg.getProperty("disabled") && + oParent && + Dom.getStyle(oParent.element, "visibility") == "visible" + ) { + + this._oAnchor.blur(); + + this.blurEvent.fire(); + + } + + }, + + /** + * @method destroy + * @description Removes the menu item's <li> element + * from its parent <ul> element. + */ + destroy: function() { + + var oEl = this.element; + + if(oEl) { + + // Remove CustomEvent listeners + + this.mouseOverEvent.unsubscribeAll(); + this.mouseOutEvent.unsubscribeAll(); + this.mouseDownEvent.unsubscribeAll(); + this.mouseUpEvent.unsubscribeAll(); + this.clickEvent.unsubscribeAll(); + this.keyPressEvent.unsubscribeAll(); + this.keyDownEvent.unsubscribeAll(); + this.keyUpEvent.unsubscribeAll(); + this.focusEvent.unsubscribeAll(); + this.blurEvent.unsubscribeAll(); + this.cfg.configChangedEvent.unsubscribeAll(); + + // Remove the element from the parent node + + var oParentNode = oEl.parentNode; + + if(oParentNode) { + + oParentNode.removeChild(oEl); + + this.destroyEvent.fire(); + + } + + this.destroyEvent.unsubscribeAll(); + + } + + }, + + /** + * @method toString + * @description Returns a string representing the menu item. + * @return {String} + */ + toString: function() { + + return ("MenuItem: " + this.cfg.getProperty("text")); + + } + +}; + +})(); + +/** +* Creates an item for a menu module. +* +* @param {String} p_oObject String specifying the text of the menu module item. +* @param {HTMLLIElement} p_oObject Object specifying the +* <li> element of the menu module item. +* @param {HTMLOptGroupElement} p_oObject Object specifying +* the <optgroup> element of the menu module item. +* @param {HTMLOptionElement} p_oObject Object specifying the +* <option> element of the menu module item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu module item. See configuration class documentation +* for more details. +* @class MenuModuleItem +* @constructor +* @deprecated As of version 0.12, all MenuModuleItem functionality has been +* implemented directly in YAHOO.widget.MenuItem, making YAHOO.widget.MenuItem +* the base class for all menu items. +*/ +YAHOO.widget.MenuModuleItem = YAHOO.widget.MenuItem; + +/** +* Creates a list of options or commands which are made visible in response to +* an HTML element's "contextmenu" event ("mousedown" for Opera). +* +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source for the +* context menu. +* @param {HTMLDivElement} p_oElement Object specifying the +* <div> element of the context menu. +* @param {HTMLSelectElement} p_oElement Object specifying +* the <select> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +* @class ContextMenu +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.ContextMenu = function(p_oElement, p_oConfig) { + + YAHOO.widget.ContextMenu.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + +YAHOO.extend(YAHOO.widget.ContextMenu, YAHOO.widget.Menu, { + +// Private properties + +/** +* @property _oTrigger +* @description Object reference to the current value of the "trigger" +* configuration property. +* @default null +* @private +* @type String|HTMLElement|Array +*/ +_oTrigger: null, + +// Public properties + +/** +* @property contextEventTarget +* @description Object reference for the HTML element that was the target of the +* "contextmenu" DOM event ("mousedown" for Opera) that triggered the display of +* the context menu. +* @default null +* @type HTMLElement +*/ +contextEventTarget: null, + +/** +* @method init +* @description The ContextMenu class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the context menu. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source for +* the context menu. +* @param {HTMLDivElement} p_oElement Object specifying the +* <div> element of the context menu. +* @param {HTMLSelectElement} p_oElement Object specifying +* the <select> element to be used as the data source for +* the context menu. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu. See configuration class documentation +* for more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.ContextMenuItem; + + } + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.ContextMenu.superclass.init.call(this, p_oElement); + + this.beforeInitEvent.fire(YAHOO.widget.ContextMenu); + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + + this.initEvent.fire(YAHOO.widget.ContextMenu); + +}, + +// Private methods + +/** +* @method _removeEventHandlers +* @description Removes all of the DOM event handlers from the HTML element(s) +* whose "context menu" event ("click" for Opera) trigger the display of +* the context menu. +* @private +*/ +_removeEventHandlers: function() { + + var Event = YAHOO.util.Event; + var oTrigger = this._oTrigger; + var bOpera = (this.browser == "opera"); + + // Remove the event handlers from the trigger(s) + + Event.removeListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu + ); + + if(bOpera) { + + Event.removeListener(oTrigger, "click", this._onTriggerClick); + + } + +}, + +// Private event handlers + +/** +* @method _onTriggerClick +* @description "click" event handler for the HTML element(s) identified as the +* "trigger" for the context menu. Used to cancel default behaviors in Opera. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerClick: function(p_oEvent, p_oMenu) { + + if(p_oEvent.ctrlKey) { + + YAHOO.util.Event.stopEvent(p_oEvent); + + } + +}, + +/** +* @method _onTriggerContextMenu +* @description "contextmenu" event handler ("mousedown" for Opera) for the HTML +* element(s) that trigger the display of the context menu. +* @private +* @param {Event} p_oEvent Object representing the DOM event object passed back +* by the event utility (YAHOO.util.Event). +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that is handling the event. +*/ +_onTriggerContextMenu: function(p_oEvent, p_oMenu) { + + // Hide any other ContextMenu instances that might be visible + + YAHOO.widget.MenuManager.hideVisible(); + + var Event = YAHOO.util.Event; + var oConfig = this.cfg; + + if(p_oEvent.type == "mousedown" && !p_oEvent.ctrlKey) { + + return; + + } + + this.contextEventTarget = Event.getTarget(p_oEvent); + + // Position and display the context menu + + var nX = Event.getPageX(p_oEvent); + var nY = Event.getPageY(p_oEvent); + + oConfig.applyConfig( { xy:[nX, nY], visible:true } ); + oConfig.fireQueue(); + + /* + Prevent the browser's default context menu from appearing and + stop the propagation of the "contextmenu" event so that + other ContextMenu instances are not displayed. + */ + + Event.stopEvent(p_oEvent); + +}, + +// Public methods + +/** +* @method toString +* @description Returns a string representing the context menu. +* @return {String} +*/ +toString: function() { + + return ("ContextMenu " + this.id); + +}, + +/** +* @method initDefaultConfig +* @description Initializes the class's configurable properties which can be +* changed using the context menu's Config object ("cfg"). +*/ +initDefaultConfig: function() { + + YAHOO.widget.ContextMenu.superclass.initDefaultConfig.call(this); + + /** + * @config trigger + * @description The HTML element(s) whose "contextmenu" event ("mousedown" + * for Opera) trigger the display of the context menu. Can be a string + * representing the id attribute of the HTML element, an object reference + * for the HTML element, or an array of strings or HTML element references. + * @default null + * @type String|HTMLElement|Array + */ + this.cfg.addProperty("trigger", { handler: this.configTrigger }); + +}, + +/** +* @method destroy +* @description Removes the context menu's <div> element +* (and accompanying child nodes) from the document. +*/ +destroy: function() { + + // Remove the DOM event handlers from the current trigger(s) + + this._removeEventHandlers(); + + + // Continue with the superclass implementation of this method + + YAHOO.widget.ContextMenu.superclass.destroy.call(this); + +}, + +// Public event handlers for configuration properties + +/** +* @method configTrigger +* @description Event handler for when the value of the "trigger" configuration +* property changes. +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context +* menu that fired the event. +*/ +configTrigger: function(p_sType, p_aArgs, p_oMenu) { + + var Event = YAHOO.util.Event; + var oTrigger = p_aArgs[0]; + + if(oTrigger) { + + /* + If there is a current "trigger" - remove the event handlers + from that element(s) before assigning new ones + */ + + if(this._oTrigger) { + + this._removeEventHandlers(); + + } + + this._oTrigger = oTrigger; + + /* + Listen for the "mousedown" event in Opera b/c it does not + support the "contextmenu" event + */ + + var bOpera = (this.browser == "opera"); + + Event.addListener( + oTrigger, + (bOpera ? "mousedown" : "contextmenu"), + this._onTriggerContextMenu, + this, + true + ); + + /* + Assign a "click" event handler to the trigger element(s) for + Opera to prevent default browser behaviors. + */ + + if(bOpera) { + + Event.addListener( + oTrigger, + "click", + this._onTriggerClick, + this, + true + ); + + } + + } + else { + + this._removeEventHandlers(); + + } + +} + +}); // END YAHOO.extend + +/** +* Creates an item for a context menu. +* +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {HTMLLIElement} p_oObject Object specifying the +* <li> element of the context menu item. +* @param {HTMLOptGroupElement} p_oObject Object +* specifying the <optgroup> element of the context +* menu item. +* @param {HTMLOptionElement} p_oObject Object specifying +* the <option> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +* @class ContextMenuItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.ContextMenuItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.ContextMenuItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.extend(YAHOO.widget.ContextMenuItem, YAHOO.widget.MenuItem, { + +/** +* @method init +* @description The ContextMenuItem class's initialization method. This method +* is automatically called by the constructor, and sets up all DOM references +* for pre-existing markup, and creates required markup if it is not +* already present. +* @param {String} p_oObject String specifying the text of the context menu item. +* @param {HTMLLIElement} p_oObject Object specifying the +* <li> element of the context menu item. +* @param {HTMLOptGroupElement} p_oObject Object +* specifying the <optgroup> element of the context +* menu item. +* @param {HTMLOptionElement} p_oObject Object specifying +* the <option> element of the context menu item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the context menu item. See configuration class +* documentation for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.ContextMenu; + + } + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.ContextMenuItem.superclass.init.call(this, p_oObject); + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + +// Public methods + +/** +* @method toString +* @description Returns a string representing the context menu item. +* @return {String} +*/ +toString: function() { + + return ("MenuBarItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.extend + +/** +* Horizontal collection of items, each of which can contain a submenu. +* +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source for the +* menu bar. +* @param {HTMLDivElement} p_oElement Object specifying +* the <div> element of the menu bar. +* @param {HTMLSelectElement} p_oElement Object +* specifying the <select> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +* @class Menubar +* @constructor +* @extends YAHOO.widget.Menu +* @namespace YAHOO.widget +*/ +YAHOO.widget.MenuBar = function(p_oElement, p_oConfig) { + + YAHOO.widget.MenuBar.superclass.constructor.call( + this, + p_oElement, + p_oConfig + ); + +}; + +YAHOO.extend(YAHOO.widget.MenuBar, YAHOO.widget.Menu, { + +/** +* @method init +* @description The MenuBar class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oElement String specifying the id attribute of the +* <div> element of the menu bar. +* @param {String} p_oElement String specifying the id attribute of the +* <select> element to be used as the data source for the +* menu bar. +* @param {HTMLDivElement} p_oElement Object specifying +* the <div> element of the menu bar. +* @param {HTMLSelectElement} p_oElement Object +* specifying the <select> element to be used as the data +* source for the menu bar. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar. See configuration class documentation for +* more details. +*/ +init: function(p_oElement, p_oConfig) { + + if(!this.ITEM_TYPE) { + + this.ITEM_TYPE = YAHOO.widget.MenuBarItem; + + } + + // Call the init of the superclass (YAHOO.widget.Menu) + + YAHOO.widget.MenuBar.superclass.init.call(this, p_oElement); + + this.beforeInitEvent.fire(YAHOO.widget.MenuBar); + + if(p_oConfig) { + + this.cfg.applyConfig(p_oConfig, true); + + } + + this.initEvent.fire(YAHOO.widget.MenuBar); + +}, + +// Constants + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the menu +* bar's <div> element. +* @default "yuimenubar" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubar", + +// Protected event handlers + +/** +* @method _onKeyDown +* @description "keydown" Custom Event handler for the menu bar. +* @private +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onKeyDown: function(p_sType, p_aArgs, p_oMenuBar) { + + var Event = YAHOO.util.Event; + var oEvent = p_aArgs[0]; + var oItem = p_aArgs[1]; + var oItemCfg = oItem.cfg; + var oSubmenu; + + switch(oEvent.keyCode) { + + case 27: // Esc key + + if(this.cfg.getProperty("position") == "dynamic") { + + this.hide(); + + if(this.parent) { + + this.parent.focus(); + + } + + } + else if(this.activeItem) { + + oSubmenu = this.activeItem.cfg.getProperty("submenu"); + + if(oSubmenu && oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + this.activeItem.focus(); + + } + else { + + this.activeItem.cfg.setProperty("selected", false); + this.activeItem.blur(); + + } + + } + + + Event.preventDefault(oEvent); + + break; + + case 37: // Left arrow + case 39: // Right arrow + + if( + oItem == this.activeItem && + !oItemCfg.getProperty("selected") + ) { + + oItemCfg.setProperty("selected", true); + + } + else { + + var oNextItem = (oEvent.keyCode == 37) ? + oItem.getPreviousEnabledSibling() : + oItem.getNextEnabledSibling(); + + if(oNextItem) { + + this.clearActiveItem(); + + oNextItem.cfg.setProperty("selected", true); + + if(this.cfg.getProperty("autosubmenudisplay")) { + + oSubmenu = oNextItem.cfg.getProperty("submenu"); + + if(oSubmenu) { + + oSubmenu.show(); + oSubmenu.activeItem.blur(); + oSubmenu.activeItem = null; + + } + + } + + oNextItem.focus(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + case 40: // Down arrow + + if(this.activeItem != oItem) { + + this.clearActiveItem(); + + oItemCfg.setProperty("selected", true); + oItem.focus(); + + } + + oSubmenu = oItemCfg.getProperty("submenu"); + + if(oSubmenu) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.setInitialSelection(); + oSubmenu.setInitialFocus(); + + } + else { + + oSubmenu.show(); + + } + + } + + Event.preventDefault(oEvent); + + break; + + } + +}, + +/** +* @method _onClick +* @description "click" event handler for the menu bar. +* @protected +* @param {String} p_sType String representing the name of the event that +* was fired. +* @param {Array} p_aArgs Array of arguments sent when the event was fired. +* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar +* that fired the event. +*/ +_onClick: function(p_sType, p_aArgs, p_oMenuBar) { + + YAHOO.widget.MenuBar.superclass._onClick.call( + this, + p_sType, + p_aArgs, + p_oMenuBar + ); + + var oItem = p_aArgs[1]; + + if(oItem) { + + var Event = YAHOO.util.Event; + var Dom = YAHOO.util.Dom; + + var oEvent = p_aArgs[0]; + var oTarget = Event.getTarget(oEvent); + + var oActiveItem = this.activeItem; + var oConfig = this.cfg; + + // Hide any other submenus that might be visible + + if(oActiveItem && oActiveItem != oItem) { + + this.clearActiveItem(); + + } + + + // Select and focus the current item + + oItem.cfg.setProperty("selected", true); + oItem.focus(); + + + // Show the submenu for the item + + var oSubmenu = oItem.cfg.getProperty("submenu"); + + if(oSubmenu && oTarget != oItem.submenuIndicator) { + + if(oSubmenu.cfg.getProperty("visible")) { + + oSubmenu.hide(); + + } + else { + + oSubmenu.show(); + + } + + } + + } + +}, + +// Public methods + +/** +* @method toString +* @description Returns a string representing the menu bar. +* @return {String} +*/ +toString: function() { + + return ("MenuBar " + this.id); + +}, + +/** +* @description Initializes the class's configurable properties which can be +* changed using the menu bar's Config object ("cfg"). +* @method initDefaultConfig +*/ +initDefaultConfig: function() { + + YAHOO.widget.MenuBar.superclass.initDefaultConfig.call(this); + + var oConfig = this.cfg; + + // Add configuration properties + + /* + Set the default value for the "position" configuration property + to "static" by re-adding the property. + */ + + /** + * @config position + * @description String indicating how a menu bar should be positioned on the + * screen. Possible values are "static" and "dynamic." Static menu bars + * are visible by default and reside in the normal flow of the document + * (CSS position: static). Dynamic menu bars are hidden by default, reside + * out of the normal flow of the document (CSS position: absolute), and can + * overlay other elements on the screen. + * @default static + * @type String + */ + oConfig.addProperty( + "position", + { + value: "static", + handler: this.configPosition, + validator: this._checkPosition, + supercedes: ["visible"] + } + ); + + /* + Set the default value for the "submenualignment" configuration property + to ["tl","bl"] by re-adding the property. + */ + + /** + * @config submenualignment + * @description Array defining how submenus should be aligned to their + * parent menu bar item. The format is: [itemCorner, submenuCorner]. + * @default ["tl","bl"] + * @type Array + */ + oConfig.addProperty("submenualignment", { value: ["tl","bl"] } ); + + /* + Change the default value for the "autosubmenudisplay" configuration + property to "false" by re-adding the property. + */ + + /** + * @config autosubmenudisplay + * @description Boolean indicating if submenus are automatically made + * visible when the user mouses over the menu bar's items. + * @default false + * @type Boolean + */ + oConfig.addProperty( + "autosubmenudisplay", + { value: false, validator: oConfig.checkBoolean } + ); + +} + +}); // END YAHOO.extend + +/** +* Creates an item for a menu bar. +* +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {HTMLLIElement} p_oObject Object specifying the +* <li> element of the menu bar item. +* @param {HTMLOptGroupElement} p_oObject Object +* specifying the <optgroup> element of the menu bar item. +* @param {HTMLOptionElement} p_oObject Object specifying +* the <option> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +* @class MenuBarItem +* @constructor +* @extends YAHOO.widget.MenuItem +*/ +YAHOO.widget.MenuBarItem = function(p_oObject, p_oConfig) { + + YAHOO.widget.MenuBarItem.superclass.constructor.call( + this, + p_oObject, + p_oConfig + ); + +}; + +YAHOO.extend(YAHOO.widget.MenuBarItem, YAHOO.widget.MenuItem, { + +/** +* @method init +* @description The MenuBarItem class's initialization method. This method is +* automatically called by the constructor, and sets up all DOM references for +* pre-existing markup, and creates required markup if it is not already present. +* @param {String} p_oObject String specifying the text of the menu bar item. +* @param {HTMLLIElement} p_oObject Object specifying the +* <li> element of the menu bar item. +* @param {HTMLOptGroupElement} p_oObject Object +* specifying the <optgroup> element of the menu bar item. +* @param {HTMLOptionElement} p_oObject Object specifying +* the <option> element of the menu bar item. +* @param {Object} p_oConfig Optional. Object literal specifying the +* configuration for the menu bar item. See configuration class documentation +* for more details. +*/ +init: function(p_oObject, p_oConfig) { + + if(!this.SUBMENU_TYPE) { + + this.SUBMENU_TYPE = YAHOO.widget.Menu; + + } + + /* + Call the init of the superclass (YAHOO.widget.MenuItem) + Note: We don't pass the user config in here yet + because we only want it executed once, at the lowest + subclass level. + */ + + YAHOO.widget.MenuBarItem.superclass.init.call(this, p_oObject); + + var oConfig = this.cfg; + + if(p_oConfig) { + + oConfig.applyConfig(p_oConfig, true); + + } + + oConfig.fireQueue(); + +}, + +// Constants + +/** +* @property CSS_CLASS_NAME +* @description String representing the CSS class(es) to be applied to the +* <li> element of the menu bar item. +* @default "yuimenubaritem" +* @final +* @type String +*/ +CSS_CLASS_NAME: "yuimenubaritem", + +/** +* @property SUBMENU_INDICATOR_IMAGE_PATH +* @description String representing the path to the image to be used for the +* menu bar item's submenu arrow indicator. +* @default "nt/ic/ut/alt1/menuarodwn8_nrm_1.gif" +* @final +* @type String +*/ +SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarodwn8_nrm_1.gif", + +/** +* @property SELECTED_SUBMENU_INDICATOR_IMAGE_PATH +* @description String representing the path to the image to be used for the +* submenu arrow indicator when the menu bar item is selected. +* @default "nt/ic/ut/alt1/menuarodwn8_hov_1.gif" +* @final +* @type String +*/ +SELECTED_SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarodwn8_hov_1.gif", + +/** +* @property DISABLED_SUBMENU_INDICATOR_IMAGE_PATH +* @description String representing the path to the image to be used for the +* submenu arrow indicator when the menu bar item is disabled. +* @default "nt/ic/ut/alt1/menuarodwn8_dim_1.gif" +* @final +* @type String +*/ +DISABLED_SUBMENU_INDICATOR_IMAGE_PATH: "nt/ic/ut/alt1/menuarodwn8_dim_1.gif", + +// Public methods + +/** +* @method toString +* @description Returns a string representing the menu bar item. +* @return {String} +*/ +toString: function() { + + return ("MenuBarItem: " + this.cfg.getProperty("text")); + +} + +}); // END YAHOO.extend + diff --git a/frontend/beta/js/YUI/slider.js b/frontend/beta/js/YUI/slider.js new file mode 100644 index 0000000..8d3cd62 --- /dev/null +++ b/frontend/beta/js/YUI/slider.js @@ -0,0 +1,1113 @@ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.12.0 +*/ + +/** + * The Slider component is a UI control that enables the user to adjust + * values in a finite range along one or two axes. Typically, the Slider + * control is used in a web application as a rich, visual replacement + * for an input box that takes a number as input. The Slider control can + * also easily accommodate a second dimension, providing x,y output for + * a selection point chosen from a rectangular region. + * + * @module slider + * @title Slider Widget + * @namespace YAHOO.widget + * @requires yahoo,dom,dragdrop,event + * @optional animation + */ + +/** + * A DragDrop implementation that can be used as a background for a + * slider. It takes a reference to the thumb instance + * so it can delegate some of the events to it. The goal is to make the + * thumb jump to the location on the background when the background is + * clicked. + * + * @class Slider + * @extends YAHOO.util.DragDrop + * @constructor + * @param {String} id The id of the element linked to this instance + * @param {String} sGroup The group of related DragDrop items + * @param {String} sType The type of slider (horiz, vert, region) + */ +YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) { + if (sElementId) { + + /** + * The type of the slider (horiz, vert, region) + * @property type + * @type string + */ + this.type = sType; + + this.init(sElementId, sGroup, true); + + //this.removeInvalidHandleType("A"); + + + var self = this; + + /** + * Event the fires when the value of the control changes. If + * the control is animated the event will fire every point + * along the way. + * @event change + * @param {int} new + * @param {int} firstOffset the number of pixels the thumb has moved + * from its start position. Normal horizontal and vertical sliders will only + * have the firstOffset. Regions will have both, the first is the horizontal + * offset, the second the vertical. + * @param {int} secondOffset the y offset for region sliders + */ + this.createEvent("change", this); + + /** + * Event that fires at the end of a slider thumb move. + * @event slideStart + */ + this.createEvent("slideStart", this); + + /** + * Event that fires at the end of a slider thumb move + * @event slideEnd + */ + this.createEvent("slideEnd", this); + + /** + * A YAHOO.widget.SliderThumb instance that we will use to + * reposition the thumb when the background is clicked + * @property thumb + * @type YAHOO.widget.SliderThumb + */ + this.thumb = oThumb; + + // add handler for the handle onchange event + oThumb.onChange = function() { + self.handleThumbChange(); + }; + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * Flag that determines if the thumb will animate when moved + * @property animate + * @type boolean + */ + this.animate = YAHOO.widget.Slider.ANIM_AVAIL; + + /** + * Set to false to disable a background click thumb move + * @property backgroundEnabled + * @type boolean + */ + this.backgroundEnabled = true; + + /** + * Adjustment factor for tick animation, the more ticks, the + * faster the animation (by default) + * @property tickPause + * @type int + */ + this.tickPause = 40; + + /** + * Enables the arrow, home and end keys, defaults to true. + * @property enableKeys + * @type boolean + */ + this.enableKeys = true; + + /** + * Specifies the number of pixels the arrow keys will move the slider. + * Default is 25. + * @property keyIncrement + * @type int + */ + this.keyIncrement = 20; + + /** + * moveComplete is set to true when the slider has moved to its final + * destination. For animated slider, this value can be checked in + * the onChange handler to make it possible to execute logic only + * when the move is complete rather than at all points along the way. + * + * @property moveComplete + * @type Boolean + */ + this.moveComplete = true; + + /** + * If animation is configured, specifies the length of the animation + * in seconds. + * @property animationDuration + * @type int + * @default 0.2 + */ + this.animationDuration = 0.2; + + if (oThumb._isHoriz && oThumb.xTicks && oThumb.xTicks.length) { + this.tickPause = Math.round(360 / oThumb.xTicks.length); + } else if (oThumb.yTicks && oThumb.yTicks.length) { + this.tickPause = Math.round(360 / oThumb.yTicks.length); + } + + + // delegate thumb methods + oThumb.onMouseDown = function () { return self.focus(); }; + //oThumb.b4MouseDown = function () { return self.b4MouseDown(); }; + // oThumb.lock = function() { self.lock(); }; + // oThumb.unlock = function() { self.unlock(); }; + oThumb.onMouseUp = function() { self.thumbMouseUp(); }; + oThumb.onDrag = function() { self.fireEvents(); }; + oThumb.onAvailable = function() { return self.setStartSliderState(); }; + } +}; + +/** + * Factory method for creating a horizontal slider + * @method YAHOO.widget.Slider.getHorizSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a horizontal slider control + */ +YAHOO.widget.Slider.getHorizSlider = + function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, + iLeft, iRight, 0, 0, iTickSize), "horiz"); +}; + +/** + * Factory method for creating a vertical slider + * @method YAHOO.widget.Slider.getVertSlider + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a vertical slider control + */ +YAHOO.widget.Slider.getVertSlider = + function (sBGElId, sHandleElId, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, + iUp, iDown, iTickSize), "vert"); +}; + +/** + * Factory method for creating a slider region like the one in the color + * picker example + * @method YAHOO.widget.Slider.getSliderRegion + * @static + * @param {String} sBGElId the id of the slider's background element + * @param {String} sHandleElId the id of the thumb element + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + * @return {Slider} a slider region control + */ +YAHOO.widget.Slider.getSliderRegion = + function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) { + return new YAHOO.widget.Slider(sBGElId, sBGElId, + new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, + iUp, iDown, iTickSize), "region"); +}; + +/** + * By default, animation is available if the animation library is detected. + * @property YAHOO.widget.Slider.ANIM_AVAIL + * @static + * @type boolean + */ +YAHOO.widget.Slider.ANIM_AVAIL = true; + +YAHOO.extend(YAHOO.widget.Slider, YAHOO.util.DragDrop, { + + onAvailable: function() { + var Event = YAHOO.util.Event; + Event.on(this.id, "keydown", this.handleKeyDown, this, true); + Event.on(this.id, "keypress", this.handleKeyPress, this, true); + }, + + handleKeyPress: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + var kc = Event.getCharCode(e); + switch (kc) { + case 0x25: // left + case 0x26: // up + case 0x27: // right + case 0x28: // down + case 0x24: // home + case 0x23: // end + Event.preventDefault(e); + break; + default: + } + } + }, + + handleKeyDown: function(e) { + if (this.enableKeys) { + var Event = YAHOO.util.Event; + + var kc = Event.getCharCode(e), t=this.thumb; + var h=this.getXValue(),v=this.getYValue(); + + var horiz = false; + var changeValue = true; + switch (kc) { + + // left + case 0x25: h -= this.keyIncrement; break; + + // up + case 0x26: v -= this.keyIncrement; break; + + // right + case 0x27: h += this.keyIncrement; break; + + // down + case 0x28: v += this.keyIncrement; break; + + // home + case 0x24: h = t.leftConstraint; + v = t.topConstraint; + break; + + // end + case 0x23: h = t.rightConstraint; + v = t.bottomConstraint; + break; + + default: changeValue = false; + } + + if (changeValue) { + if (t._isRegion) { + this.setRegionValue(h, v, true); + } else { + var newVal = (t._isHoriz) ? h : v; + this.setValue(newVal, true); + } + Event.stopEvent(e); + } + + } + }, + + /** + * Initialization that sets up the value offsets once the elements are ready + * @method setSliderStartState + */ + setStartSliderState: function() { + + + this.setThumbCenterPoint(); + + /** + * The basline position of the background element, used + * to determine if the background has moved since the last + * operation. + * @property baselinePos + * @type [int, int] + */ + this.baselinePos = YAHOO.util.Dom.getXY(this.getEl()); + + this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos); + + if (this.thumb._isRegion) { + if (this.deferredSetRegionValue) { + this.setRegionValue.apply(this, this.deferredSetRegionValue, true); + this.deferredSetRegionValue = null; + } else { + this.setRegionValue(0, 0, true); + } + } else { + if (this.deferredSetValue) { + this.setValue.apply(this, this.deferredSetValue, true); + this.deferredSetValue = null; + } else { + this.setValue(0, true, true); + } + } + }, + + /** + * When the thumb is available, we cache the centerpoint of the element so + * we can position the element correctly when the background is clicked + * @method setThumbCenterPoint + */ + setThumbCenterPoint: function() { + + var el = this.thumb.getEl(); + + if (el) { + /** + * The center of the slider element is stored so we can position + * place it in the correct position when the background is clicked + * @property thumbCenterPoint + * @type {"x": int, "y": int} + */ + this.thumbCenterPoint = { + x: parseInt(el.offsetWidth/2, 10), + y: parseInt(el.offsetHeight/2, 10) + }; + } + + }, + + /** + * Locks the slider, overrides YAHOO.util.DragDrop + * @method lock + */ + lock: function() { + this.thumb.lock(); + this.locked = true; + }, + + /** + * Unlocks the slider, overrides YAHOO.util.DragDrop + * @method unlock + */ + unlock: function() { + this.thumb.unlock(); + this.locked = false; + }, + + /** + * Handles mouseup event on the slider background + * @method thumbMouseUp + * @private + */ + thumbMouseUp: function() { + if (!this.isLocked() && !this.moveComplete) { + this.endMove(); + } + + }, + + /** + * Returns a reference to this slider's thumb + * @method getThumb + * @return {SliderThumb} this slider's thumb + */ + getThumb: function() { + return this.thumb; + }, + + /** + * Try to focus the element when clicked so we can add + * accessibility features + * @method focus + * @private + */ + focus: function() { + + // Focus the background element if possible + var el = this.getEl(); + + if (el.focus) { + try { + el.focus(); + } catch(e) { + // Prevent permission denied unhandled exception in FF that can + // happen when setting focus while another element is handling + // the blur. @TODO this is still writing to the error log + // (unhandled error) in FF1.5 with strict error checking on. + } + } + + this.verifyOffset(); + + if (this.isLocked()) { + return false; + } else { + this.onSlideStart(); + return true; + } + }, + + /** + * Event that fires when the value of the slider has changed + * @method onChange + * @param {int} firstOffset the number of pixels the thumb has moved + * from its start position. Normal horizontal and vertical sliders will only + * have the firstOffset. Regions will have both, the first is the horizontal + * offset, the second the vertical. + * @param {int} secondOffset the y offset for region sliders + * @deprecated use instance.subscribe("change") instead + */ + onChange: function (firstOffset, secondOffset) { + /* override me */ + }, + + /** + * Event that fires when the at the beginning of the slider thumb move + * @method onSlideStart + * @deprecated use instance.subscribe("slideStart") instead + */ + onSlideStart: function () { + /* override me */ + }, + + /** + * Event that fires at the end of a slider thumb move + * @method onSliderEnd + * @deprecated use instance.subscribe("slideEnd") instead + */ + onSlideEnd: function () { + /* override me */ + }, + + /** + * Returns the slider's thumb offset from the start position + * @method getValue + * @return {int} the current value + */ + getValue: function () { + return this.thumb.getValue(); + }, + + /** + * Returns the slider's thumb X offset from the start position + * @method getXValue + * @return {int} the current horizontal offset + */ + getXValue: function () { + return this.thumb.getXValue(); + }, + + /** + * Returns the slider's thumb Y offset from the start position + * @method getYValue + * @return {int} the current vertical offset + */ + getYValue: function () { + return this.thumb.getYValue(); + }, + + /** + * Internal handler for the slider thumb's onChange event + * @method handleThumbChange + * @private + */ + handleThumbChange: function () { + var t = this.thumb; + if (t._isRegion) { + t.onChange(t.getXValue(), t.getYValue()); + this.fireEvent("change", { x: t.getXValue(), y: t.getYValue() } ); + } else { + t.onChange(t.getValue()); + this.fireEvent("change", t.getValue()); + } + + }, + + /** + * Provides a way to set the value of the slider in code. + * @method setValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setValue: function(newOffset, skipAnim, force) { + + if (!this.thumb.available) { + this.deferredSetValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + return false; + } + + if ( isNaN(newOffset) ) { + return false; + } + + var t = this.thumb; + var newX, newY; + this.verifyOffset(); + if (t._isRegion) { + return false; + } else if (t._isHoriz) { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + this.moveThumb(newX, t.initPageY, skipAnim); + } else { + this.onSlideStart(); + // this.fireEvent("slideStart"); + newY = t.initPageY + newOffset + this.thumbCenterPoint.y; + this.moveThumb(t.initPageX, newY, skipAnim); + } + + return true; + }, + + /** + * Provides a way to set the value of the region slider in code. + * @method setRegionValue + * @param {int} newOffset the number of pixels the thumb should be + * positioned away from the initial start point (x axis for region) + * @param {int} newOffset2 the number of pixels the thumb should be + * positioned away from the initial start point (y axis for region) + * @param {boolean} skipAnim set to true to disable the animation + * for this move action (but not others). + * @param {boolean} force ignore the locked setting and set value anyway + * @return {boolean} true if the move was performed, false if it failed + */ + setRegionValue: function(newOffset, newOffset2, skipAnim) { + + if (!this.thumb.available) { + this.deferredSetRegionValue = arguments; + return false; + } + + if (this.isLocked() && !force) { + return false; + } + + if ( isNaN(newOffset) ) { + return false; + } + + var t = this.thumb; + if (t._isRegion) { + this.onSlideStart(); + var newX = t.initPageX + newOffset + this.thumbCenterPoint.x; + var newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y; + this.moveThumb(newX, newY, skipAnim); + return true; + } + + return false; + + }, + + /** + * Checks the background position element position. If it has moved from the + * baseline position, the constraints for the thumb are reset + * @method verifyOffset + * @return {boolean} True if the offset is the same as the baseline. + */ + verifyOffset: function() { + + var newPos = YAHOO.util.Dom.getXY(this.getEl()); + + if (newPos[0] != this.baselinePos[0] || newPos[1] != this.baselinePos[1]) { + this.thumb.resetConstraints(); + this.baselinePos = newPos; + return false; + } + + return true; + }, + + /** + * Move the associated slider moved to a timeout to try to get around the + * mousedown stealing moz does when I move the slider element between the + * cursor and the background during the mouseup event + * @method moveThumb + * @param {int} x the X coordinate of the click + * @param {int} y the Y coordinate of the click + * @param {boolean} skipAnim don't animate if the move happend onDrag + * @private + */ + moveThumb: function(x, y, skipAnim) { + + + var t = this.thumb; + var self = this; + + if (!t.available) { + return; + } + + + // this.verifyOffset(); + + t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y); + + var _p = t.getTargetCoord(x, y); + var p = [_p.x, _p.y]; + + this.fireEvent("slideStart"); + + if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && t._graduated && !skipAnim) { + // this.thumb._animating = true; + this.lock(); + + setTimeout( function() { self.moveOneTick(p); }, this.tickPause ); + + } else if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && !skipAnim) { + + // this.thumb._animating = true; + this.lock(); + + var oAnim = new YAHOO.util.Motion( + t.id, { points: { to: p } }, + this.animationDuration, + YAHOO.util.Easing.easeOut ); + + oAnim.onComplete.subscribe( function() { self.endMove(); } ); + oAnim.animate(); + } else { + t.setDragElPos(x, y); + // this.fireEvents(); + this.endMove(); + } + }, + + /** + * Move the slider one tick mark towards its final coordinate. Used + * for the animation when tick marks are defined + * @method moveOneTick + * @param {int[]} the destination coordinate + * @private + */ + moveOneTick: function(finalCoord) { + + var t = this.thumb; + var curCoord = YAHOO.util.Dom.getXY(t.getEl()); + var tmp; + + // var thresh = Math.min(t.tickSize + (Math.floor(t.tickSize/2)), 10); + // var thresh = 10; + // var thresh = t.tickSize + (Math.floor(t.tickSize/2)); + + var nextCoord = null; + + if (t._isRegion) { + nextCoord = this._getNextX(curCoord, finalCoord); + var tmpX = (nextCoord) ? nextCoord[0] : curCoord[0]; + nextCoord = this._getNextY([tmpX, curCoord[1]], finalCoord); + + } else if (t._isHoriz) { + nextCoord = this._getNextX(curCoord, finalCoord); + } else { + nextCoord = this._getNextY(curCoord, finalCoord); + } + + + if (nextCoord) { + + // move to the next coord + // YAHOO.util.Dom.setXY(t.getEl(), nextCoord); + + // var el = t.getEl(); + // YAHOO.util.Dom.setStyle(el, "left", (nextCoord[0] + this.thumb.deltaSetXY[0]) + "px"); + // YAHOO.util.Dom.setStyle(el, "top", (nextCoord[1] + this.thumb.deltaSetXY[1]) + "px"); + + this.thumb.alignElWithMouse(t.getEl(), nextCoord[0], nextCoord[1]); + + // check if we are in the final position, if not make a recursive call + if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) { + var self = this; + setTimeout(function() { self.moveOneTick(finalCoord); }, + this.tickPause); + } else { + this.endMove(); + } + } else { + this.endMove(); + } + + //this.tickPause = Math.round(this.tickPause/2); + }, + + /** + * Returns the next X tick value based on the current coord and the target coord. + * @method _getNextX + * @private + */ + _getNextX: function(curCoord, finalCoord) { + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + if (curCoord[0] > finalCoord[0]) { + thresh = t.tickSize - this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[0] < finalCoord[0]) { + thresh = t.tickSize + this.thumbCenterPoint.x; + tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Returns the next Y tick value based on the current coord and the target coord. + * @method _getNextY + * @private + */ + _getNextY: function(curCoord, finalCoord) { + var t = this.thumb; + var thresh; + var tmp = []; + var nextCoord = null; + + if (curCoord[1] > finalCoord[1]) { + thresh = t.tickSize - this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh ); + nextCoord = [tmp.x, tmp.y]; + } else if (curCoord[1] < finalCoord[1]) { + thresh = t.tickSize + this.thumbCenterPoint.y; + tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh ); + nextCoord = [tmp.x, tmp.y]; + } else { + // equal, do nothing + } + + return nextCoord; + }, + + /** + * Resets the constraints before moving the thumb. + * @method b4MouseDown + * @private + */ + b4MouseDown: function(e) { + this.thumb.autoOffset(); + this.thumb.resetConstraints(); + }, + + /** + * Handles the mousedown event for the slider background + * @method onMouseDown + * @private + */ + onMouseDown: function(e) { + // this.resetConstraints(true); + // this.thumb.resetConstraints(true); + + if (! this.isLocked() && this.backgroundEnabled) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + + this.focus(); + this.moveThumb(x, y); + } + + }, + + /** + * Handles the onDrag event for the slider background + * @method onDrag + * @private + */ + onDrag: function(e) { + if (! this.isLocked()) { + var x = YAHOO.util.Event.getPageX(e); + var y = YAHOO.util.Event.getPageY(e); + this.moveThumb(x, y, true); + } + }, + + /** + * Fired when the slider movement ends + * @method endMove + * @private + */ + endMove: function () { + // this._animating = false; + this.unlock(); + this.moveComplete = true; + this.fireEvents(); + }, + + /** + * Fires the change event if the value has been changed. Ignored if we are in + * the middle of an animation as the event will fire when the animation is + * complete + * @method fireEvents + * @private + */ + fireEvents: function () { + + var t = this.thumb; + + t.cachePosition(); + + if (! this.isLocked()) { + if (t._isRegion) { + var newX = t.getXValue(); + var newY = t.getYValue(); + + if (newX != this.previousX || newY != this.previousY) { + this.onChange(newX, newY); + this.fireEvent("change", { x: newX, y: newY }); + } + + this.previousX = newX; + this.previousY = newY; + + } else { + var newVal = t.getValue(); + if (newVal != this.previousVal) { + this.onChange( newVal ); + this.fireEvent("change", newVal); + } + this.previousVal = newVal; + } + + if (this.moveComplete) { + this.onSlideEnd(); + this.fireEvent("slideEnd"); + this.moveComplete = false; + } + + } + }, + + /** + * Slider toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return ("Slider (" + this.type +") " + this.id); + } + +}); + +YAHOO.augment(YAHOO.widget.Slider, YAHOO.util.EventProvider); + +/** + * A drag and drop implementation to be used as the thumb of a slider. + * @class SliderThumb + * @extends YAHOO.util.DD + * @constructor + * @param {String} id the id of the slider html element + * @param {String} sGroup the group of related DragDrop items + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize optional parameter for specifying that the element + * should move a certain number pixels at a time. + */ +YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) { + + if (id) { + this.init(id, sGroup); + + /** + * The id of the thumbs parent HTML element (the slider background + * element). + * @property parentElId + * @type string + */ + this.parentElId = sGroup; + } + + //this.removeInvalidHandleType("A"); + + + /** + * Overrides the isTarget property in YAHOO.util.DragDrop + * @property isTarget + * @private + */ + this.isTarget = false; + + /** + * The tick size for this slider + * @property tickSize + * @type int + * @private + */ + this.tickSize = iTickSize; + + /** + * Informs the drag and drop util that the offsets should remain when + * resetting the constraints. This preserves the slider value when + * the constraints are reset + * @property maintainOffset + * @type boolean + * @private + */ + this.maintainOffset = true; + + this.initSlider(iLeft, iRight, iUp, iDown, iTickSize); + + /** + * Turns off the autoscroll feature in drag and drop + * @property scroll + * @private + */ + this.scroll = false; + +}; + +YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, { + + /** + * The (X and Y) difference between the thumb location and its parent + * (the slider background) when the control is instantiated. + * @property startOffset + * @type [int, int] + */ + startOffset: null, + + /** + * Flag used to figure out if this is a horizontal or vertical slider + * @property _isHoriz + * @type boolean + * @private + */ + _isHoriz: false, + + /** + * Cache the last value so we can check for change + * @property _prevVal + * @type int + * @private + */ + _prevVal: 0, + + /** + * The slider is _graduated if there is a tick interval defined + * @property _graduated + * @type boolean + * @private + */ + _graduated: false, + + /** + * Returns the difference between the location of the thumb and its parent. + * @method getOffsetFromParent + * @param {[int, int]} parentPos Optionally accepts the position of the parent + * @type [int, int] + */ + getOffsetFromParent: function(parentPos) { + var myPos = YAHOO.util.Dom.getXY(this.getEl()); + var ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); + + return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; + }, + + /** + * Set up the slider, must be called in the constructor of all subclasses + * @method initSlider + * @param {int} iLeft the number of pixels the element can move left + * @param {int} iRight the number of pixels the element can move right + * @param {int} iUp the number of pixels the element can move up + * @param {int} iDown the number of pixels the element can move down + * @param {int} iTickSize the width of the tick interval. + */ + initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) { + + this.setXConstraint(iLeft, iRight, iTickSize); + this.setYConstraint(iUp, iDown, iTickSize); + + if (iTickSize && iTickSize > 1) { + this._graduated = true; + } + + this._isHoriz = (iLeft || iRight); + this._isVert = (iUp || iDown); + this._isRegion = (this._isHoriz && this._isVert); + + }, + + /** + * Clear's the slider's ticks + * @method clearTicks + */ + clearTicks: function () { + YAHOO.widget.SliderThumb.superclass.clearTicks.call(this); + this._graduated = false; + }, + + /** + * Gets the current offset from the element's start position in + * pixels. + * @method getValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved from the start position. + */ + getValue: function () { + if (!this.available) { return 0; } + var val = (this._isHoriz) ? this.getXValue() : this.getYValue(); + return val; + }, + + /** + * Gets the current X offset from the element's start position in + * pixels. + * @method getXValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved horizontally from the start position. + */ + getXValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[0] - this.startOffset[0]); + }, + + /** + * Gets the current Y offset from the element's start position in + * pixels. + * @method getYValue + * @return {int} the number of pixels (positive or negative) the + * slider has moved vertically from the start position. + */ + getYValue: function () { + if (!this.available) { return 0; } + var newOffset = this.getOffsetFromParent(); + return (newOffset[1] - this.startOffset[1]); + }, + + /** + * Thumb toString + * @method toString + * @return {string} string representation of the instance + */ + toString: function () { + return "SliderThumb " + this.id; + }, + + /** + * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider + * instance it belongs to. + * @method onChange + * @private + */ + onChange: function (x, y) { + } + +}); + +if ("undefined" == typeof YAHOO.util.Anim) { + YAHOO.widget.Slider.ANIM_AVAIL = false; +} + diff --git a/frontend/beta/js/YUI/tabview.js b/frontend/beta/js/YUI/tabview.js new file mode 100644 index 0000000..34a09bb --- /dev/null +++ b/frontend/beta/js/YUI/tabview.js @@ -0,0 +1,1950 @@ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.12.0 +*/ +(function() { + + YAHOO.util.Lang = { + isArray: function(val) { // frames lose type, so test constructor string + if (val.constructor && val.constructor.toString().indexOf('Array') > -1) { + return true; + } else { + return YAHOO.util.Lang.isObject(val) && val.constructor == Array; + } + }, + + isBoolean: function(val) { + return typeof val == 'boolean'; + }, + + isFunction: function(val) { + return typeof val == 'function'; + }, + + isNull: function(val) { + return val === null; + }, + + isNumber: function(val) { + return !isNaN(val); + }, + + isObject: function(val) { + return typeof val == 'object' || YAHOO.util.Lang.isFunction(val); + }, + + isString: function(val) { + return typeof val == 'string'; + }, + + isUndefined: function(val) { + return typeof val == 'undefined'; + } + }; +})();/** + * Provides Attribute configurations. + * @namespace YAHOO.util + * @class Attribute + * @constructor + * @param hash {Object} The intial Attribute. + * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance. + */ + +YAHOO.util.Attribute = function(hash, owner) { + if (owner) { + this.owner = owner; + this.configure(hash, true); + } +}; + +YAHOO.util.Attribute.prototype = { + /** + * The name of the attribute. + * @property name + * @type String + */ + name: undefined, + + /** + * The value of the attribute. + * @property value + * @type String + */ + value: null, + + /** + * The owner of the attribute. + * @property owner + * @type YAHOO.util.AttributeProvider + */ + owner: null, + + /** + * Whether or not the attribute is read only. + * @property readOnly + * @type Boolean + */ + readOnly: false, + + /** + * Whether or not the attribute can only be written once. + * @property writeOnce + * @type Boolean + */ + writeOnce: false, + + /** + * The attribute's initial configuration. + * @private + * @property _initialConfig + * @type Object + */ + _initialConfig: null, + + /** + * Whether or not the attribute's value has been set. + * @private + * @property _written + * @type Boolean + */ + _written: false, + + /** + * The method to use when setting the attribute's value. + * The method recieves the new value as the only argument. + * @property method + * @type Function + */ + method: null, + + /** + * The validator to use when setting the attribute's value. + * @property validator + * @type Function + * @return Boolean + */ + validator: null, + + /** + * Retrieves the current value of the attribute. + * @method getValue + * @return {any} The current value of the attribute. + */ + getValue: function() { + return this.value; + }, + + /** + * Sets the value of the attribute and fires beforeChange and change events. + * @method setValue + * @param {Any} value The value to apply to the attribute. + * @param {Boolean} silent If true the change events will not be fired. + * @return {Boolean} Whether or not the value was set. + */ + setValue: function(value, silent) { + var beforeRetVal; + var owner = this.owner; + var name = this.name; + + var event = { + type: name, + prevValue: this.getValue(), + newValue: value + }; + + if (this.readOnly || ( this.writeOnce && this._written) ) { + return false; // write not allowed + } + + if (this.validator && !this.validator.call(owner, value) ) { + return false; // invalid value + } + + if (!silent) { + beforeRetVal = owner.fireBeforeChangeEvent(event); + if (beforeRetVal === false) { + YAHOO.log('setValue ' + name + + 'cancelled by beforeChange event', 'info', 'Attribute'); + return false; + } + } + + if (this.method) { + this.method.call(owner, value); + } + + this.value = value; + this._written = true; + + event.type = name; + + if (!silent) { + this.owner.fireChangeEvent(event); + } + + return true; + }, + + /** + * Allows for configuring the Attribute's properties. + * @method configure + * @param {Object} map A key-value map of Attribute properties. + * @param {Boolean} init Whether or not this should become the initial config. + */ + configure: function(map, init) { + map = map || {}; + this._written = false; // reset writeOnce + this._initialConfig = this._initialConfig || {}; + + for (var key in map) { + if ( key && map.hasOwnProperty(key) ) { + this[key] = map[key]; + if (init) { + this._initialConfig[key] = map[key]; + } + } + } + }, + + /** + * Resets the value to the initial config value. + * @method resetValue + * @return {Boolean} Whether or not the value was set. + */ + resetValue: function() { + return this.setValue(this._initialConfig.value); + }, + + /** + * Resets the attribute config to the initial config state. + * @method resetConfig + */ + resetConfig: function() { + this.configure(this._initialConfig); + }, + + /** + * Resets the value to the current value. + * Useful when values may have gotten out of sync with actual properties. + * @method refresh + * @return {Boolean} Whether or not the value was set. + */ + refresh: function(silent) { + this.setValue(this.value, silent); + } +};(function() { + var Lang = YAHOO.util.Lang; + + /* + Copyright (c) 2006, Yahoo! Inc. All rights reserved. + Code licensed under the BSD License: + http://developer.yahoo.net/yui/license.txt + */ + + /** + * Provides and manages YAHOO.util.Attribute instances + * @namespace YAHOO.util + * @class AttributeProvider + * @uses YAHOO.util.EventProvider + */ + YAHOO.util.AttributeProvider = function() {}; + + YAHOO.util.AttributeProvider.prototype = { + + /** + * A key-value map of Attribute configurations + * @property _configs + * @protected (may be used by subclasses and augmentors) + * @private + * @type {Object} + */ + _configs: null, + /** + * Returns the current value of the attribute. + * @method get + * @param {String} key The attribute whose value will be returned. + */ + get: function(key){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + YAHOO.log(key + ' not found', 'error', 'AttributeProvider'); + return undefined; + } + + return config.value; + }, + + /** + * Sets the value of a config. + * @method set + * @param {String} key The name of the attribute + * @param {Any} value The value to apply to the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set. + */ + set: function(key, value, silent){ + var configs = this._configs || {}; + var config = configs[key]; + + if (!config) { + YAHOO.log('set failed: ' + key + ' not found', + 'error', 'AttributeProvider'); + return false; + } + + return config.setValue(value, silent); + }, + + /** + * Returns an array of attribute names. + * @method getAttributeKeys + * @return {Array} An array of attribute names. + */ + getAttributeKeys: function(){ + var configs = this._configs; + var keys = []; + var config; + for (var key in configs) { + config = configs[key]; + if ( configs.hasOwnProperty(key) && + !Lang.isUndefined(config) ) { + keys[keys.length] = key; + } + } + + return keys; + }, + + /** + * Sets multiple attribute values. + * @method setAttributes + * @param {Object} map A key-value map of attributes + * @param {Boolean} silent Whether or not to suppress change events + */ + setAttributes: function(map, silent){ + for (var key in map) { + if ( map.hasOwnProperty(key) ) { + this.set(key, map[key], silent); + } + } + }, + + /** + * Resets the specified attribute's value to its initial value. + * @method resetValue + * @param {String} key The name of the attribute + * @param {Boolean} silent Whether or not to suppress change events + * @return {Boolean} Whether or not the value was set + */ + resetValue: function(key, silent){ + var configs = this._configs || {}; + if (configs[key]) { + this.set(key, configs[key]._initialConfig.value, silent); + return true; + } + return false; + }, + + /** + * Sets the attribute's value to its current value. + * @method refresh + * @param {String | Array} key The attribute(s) to refresh + * @param {Boolean} silent Whether or not to suppress change events + */ + refresh: function(key, silent){ + var configs = this._configs; + + key = ( ( Lang.isString(key) ) ? [key] : key ) || + this.getAttributeKeys(); + + for (var i = 0, len = key.length; i < len; ++i) { + if ( // only set if there is a value and not null + configs[key[i]] && + ! Lang.isUndefined(configs[key[i]].value) && + ! Lang.isNull(configs[key[i]].value) ) { + configs[key[i]].refresh(silent); + } + } + }, + + /** + * Adds an Attribute to the AttributeProvider instance. + * @method register + * @param {String} key The attribute's name + * @param {Object} map A key-value map containing the + * attribute's properties. + */ + register: function(key, map) { + this._configs = this._configs || {}; + + if (this._configs[key]) { // dont override + return false; + } + + map.name = key; + this._configs[key] = new YAHOO.util.Attribute(map, this); + return true; + }, + + /** + * Returns the attribute's properties. + * @method getAttributeConfig + * @param {String} key The attribute's name + * @private + * @return {object} A key-value map containing all of the + * attribute's properties. + */ + getAttributeConfig: function(key) { + var configs = this._configs || {}; + var config = configs[key] || {}; + var map = {}; // returning a copy to prevent overrides + + for (key in config) { + if ( config.hasOwnProperty(key) ) { + map[key] = config[key]; + } + } + + return map; + }, + + /** + * Sets or updates an Attribute instance's properties. + * @method configureAttribute + * @param {String} key The attribute's name. + * @param {Object} map A key-value map of attribute properties + * @param {Boolean} init Whether or not this should become the intial config. + */ + configureAttribute: function(key, map, init) { + var configs = this._configs || {}; + + if (!configs[key]) { + YAHOO.log('unable to configure, ' + key + ' not found', + 'error', 'AttributeProvider'); + return false; + } + + configs[key].configure(map, init); + }, + + /** + * Resets an attribute to its intial configuration. + * @method resetAttributeConfig + * @param {String} key The attribute's name. + * @private + */ + resetAttributeConfig: function(key){ + var configs = this._configs || {}; + configs[key].resetConfig(); + }, + + /** + * Fires the attribute's beforeChange event. + * @method fireBeforeChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to handlers. + */ + fireBeforeChangeEvent: function(e) { + var type = 'before'; + type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change'; + e.type = type; + return this.fireEvent(e.type, e); + }, + + /** + * Fires the attribute's change event. + * @method fireChangeEvent + * @param {String} key The attribute's name. + * @param {Obj} e The event object to pass to the handlers. + */ + fireChangeEvent: function(e) { + e.type += 'Change'; + return this.fireEvent(e.type, e); + } + }; + + YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider); +})();(function() { +// internal shorthand +var Dom = YAHOO.util.Dom, + Lang = YAHOO.util.Lang, + EventPublisher = YAHOO.util.EventPublisher, + AttributeProvider = YAHOO.util.AttributeProvider; + +/** + * Element provides an interface to an HTMLElement's attributes and common + * methods. Other commonly used attributes are added as well. + * @namespace YAHOO.util + * @class Element + * @uses YAHOO.util.AttributeProvider + * @constructor + * @param el {HTMLElement | String} The html element that + * represents the Element. + * @param {Object} map A key-value map of initial config names and values + */ +YAHOO.util.Element = function(el, map) { + if (arguments.length) { + this.init(el, map); + } +}; + +YAHOO.util.Element.prototype = { + /** + * Dom events supported by the Element instance. + * @property DOM_EVENTS + * @type Object + */ + DOM_EVENTS: null, + + /** + * Wrapper for HTMLElement method. + * @method appendChild + * @param {Boolean} deep Whether or not to do a deep clone + */ + appendChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').appendChild(child); + }, + + /** + * Wrapper for HTMLElement method. + * @method getElementsByTagName + * @param {String} tag The tagName to collect + */ + getElementsByTagName: function(tag) { + return this.get('element').getElementsByTagName(tag); + }, + + /** + * Wrapper for HTMLElement method. + * @method hasChildNodes + * @return {Boolean} Whether or not the element has childNodes + */ + hasChildNodes: function() { + return this.get('element').hasChildNodes(); + }, + + /** + * Wrapper for HTMLElement method. + * @method insertBefore + * @param {HTMLElement} element The HTMLElement to insert + * @param {HTMLElement} before The HTMLElement to insert + * the element before. + */ + insertBefore: function(element, before) { + element = element.get ? element.get('element') : element; + before = (before && before.get) ? before.get('element') : before; + + this.get('element').insertBefore(element, before); + }, + + /** + * Wrapper for HTMLElement method. + * @method removeChild + * @param {HTMLElement} child The HTMLElement to remove + */ + removeChild: function(child) { + child = child.get ? child.get('element') : child; + this.get('element').removeChild(child); + return true; + }, + + /** + * Wrapper for HTMLElement method. + * @method replaceChild + * @param {HTMLElement} newNode The HTMLElement to insert + * @param {HTMLElement} oldNode The HTMLElement to replace + */ + replaceChild: function(newNode, oldNode) { + newNode = newNode.get ? newNode.get('element') : newNode; + oldNode = oldNode.get ? oldNode.get('element') : oldNode; + return this.get('element').replaceChild(newNode, oldNode); + }, + + + /** + * Registers Element specific attributes. + * @method initAttributes + * @param {Object} map A key-value map of initial attribute configs + */ + initAttributes: function(map) { + map = map || {}; + var element = Dom.get(map.element) || null; + + /** + * The HTMLElement the Element instance refers to. + * @config element + * @type HTMLElement + */ + this.register('element', { + value: element, + readOnly: true + }); + }, + + /** + * Adds a listener for the given event. These may be DOM or + * customEvent listeners. Any event that is fired via fireEvent + * can be listened for. All handlers receive an event object. + * @method addListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The handler to call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + addListener: function(type, fn, obj, scope) { + var el = this.get('element'); + var scope = scope || this; + + el = this.get('id') || el; + + if (!this._events[type]) { // create on the fly + if ( this.DOM_EVENTS[type] ) { + YAHOO.util.Event.addListener(el, type, function(e) { + if (e.srcElement && !e.target) { // supplement IE with target + e.target = e.srcElement; + } + this.fireEvent(type, e); + }, obj, scope); + } + + this.createEvent(type, this); + this._events[type] = true; + } + + this.subscribe.apply(this, arguments); // notify via customEvent + }, + + + /** + * Alias for addListener + * @method on + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + * @param {Any} obj A variable to pass to the handler + * @param {Object} scope The object to use for the scope of the handler + */ + on: function() { this.addListener.apply(this, arguments); }, + + + /** + * Remove an event listener + * @method removeListener + * @param {String} type The name of the event to listen for + * @param {Function} fn The function call when the event fires + */ + removeListener: function(type, fn) { + this.unsubscribe.apply(this, arguments); + }, + + /** + * Wrapper for Dom method. + * @method addClass + * @param {String} className The className to add + */ + addClass: function(className) { + Dom.addClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method getElementsByClassName + * @param {String} className The className to collect + * @param {String} tag (optional) The tag to use in + * conjunction with class name + * @return {Array} Array of HTMLElements + */ + getElementsByClassName: function(className, tag) { + return Dom.getElementsByClassName(className, tag, + this.get('element') ); + }, + + /** + * Wrapper for Dom method. + * @method hasClass + * @param {String} className The className to add + * @return {Boolean} Whether or not the element has the class name + */ + hasClass: function(className) { + return Dom.hasClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method removeClass + * @param {String} className The className to remove + */ + removeClass: function(className) { + return Dom.removeClass(this.get('element'), className); + }, + + /** + * Wrapper for Dom method. + * @method replaceClass + * @param {String} oldClassName The className to replace + * @param {String} newClassName The className to add + */ + replaceClass: function(oldClassName, newClassName) { + return Dom.replaceClass(this.get('element'), + oldClassName, newClassName); + }, + + /** + * Wrapper for Dom method. + * @method setStyle + * @param {String} property The style property to set + * @param {String} value The value to apply to the style property + */ + setStyle: function(property, value) { + return Dom.setStyle(this.get('element'), property, value); + }, + + /** + * Wrapper for Dom method. + * @method getStyle + * @param {String} property The style property to retrieve + * @return {String} The current value of the property + */ + getStyle: function(property) { + return Dom.getStyle(this.get('element'), property); + }, + + /** + * Apply any queued set calls. + * @method fireQueue + */ + fireQueue: function() { + var queue = this._queue; + for (var i = 0, len = queue.length; i < len; ++i) { + this[queue[i][0]].apply(this, queue[i][1]); + } + }, + + /** + * Appends the HTMLElement into either the supplied parentNode. + * @method appendTo + * @param {HTMLElement | Element} parentNode The node to append to + * @param {HTMLElement | Element} before An optional node to insert before + */ + appendTo: function(parent, before) { + parent = (parent.get) ? parent.get('element') : Dom.get(parent); + + before = (before && before.get) ? + before.get('element') : Dom.get(before); + var element = this.get('element'); + + var newAddition = !Dom.inDocument(element); + + if (!element) { + YAHOO.log('appendTo failed: element not available', + 'error', 'Element'); + return false; + } + + if (!parent) { + YAHOO.log('appendTo failed: parent not available', + 'error', 'Element'); + return false; + } + + if (element.parent != parent) { + if (before) { + parent.insertBefore(element, before); + } else { + parent.appendChild(element); + } + } + + YAHOO.log(element + 'appended to ' + parent); + + if (!newAddition) { + return false; // note return; no refresh if in document + } + + // if a new addition, refresh HTMLElement any applied attributes + var keys = this.getAttributeKeys(); + + for (var key in keys) { // only refresh HTMLElement attributes + if ( !Lang.isUndefined(element[key]) ) { + this.refresh(key); + } + } + }, + + get: function(key) { + var configs = this._configs || {}; + var el = configs.element; // avoid loop due to 'element' + if (el && !configs[key] && !Lang.isUndefined(el.value[key]) ) { + return el.value[key]; + } + + return AttributeProvider.prototype.get.call(this, key); + }, + + set: function(key, value, silent) { + var el = this.get('element'); + if (!el) { + this._queue[key] = ['set', arguments]; + return false; + } + + // set it on the element if not a property + if ( !this._configs[key] && !Lang.isUndefined(el[key]) ) { + _registerHTMLAttr(this, key); + } + + return AttributeProvider.prototype.set.apply(this, arguments); + }, + + register: function(key) { // protect html attributes + var configs = this._configs || {}; + var element = this.get('element') || null; + + if ( element && !Lang.isUndefined(element[key]) ) { + YAHOO.log(key + ' is reserved for ' + element, + 'error', 'Element'); + return false; + } + + return AttributeProvider.prototype.register.apply(this, arguments); + }, + + configureAttribute: function(property, map, init) { // protect html attributes + if (!this._configs[property] && this._configs.element && + !Lang.isUndefined(this._configs.element[property]) ) { + _registerHTMLAttr(this, property, map); + return false; + } + + return AttributeProvider.prototype.configure.apply(this, arguments); + }, + + getAttributeKeys: function() { + var el = this.get('element'); + var keys = AttributeProvider.prototype.getAttributeKeys.call(this); + + //add any unconfigured element keys + for (var key in el) { + if (!this._configs[key]) { + keys[key] = keys[key] || el[key]; + } + } + + return keys; + }, + + init: function(el, attr) { + this._queue = this._queue || []; + this._events = this._events || {}; + this._configs = this._configs || {}; + attr = attr || {}; + attr.element = attr.element || el || null; + + this.DOM_EVENTS = { + 'click': true, + 'keydown': true, + 'keypress': true, + 'keyup': true, + 'mousedown': true, + 'mousemove': true, + 'mouseout': true, + 'mouseover': true, + 'mouseup': true + }; + + var readyHandler = function() { + this.initAttributes(attr); + + this.setAttributes(attr, true); + this.fireQueue(); + this.fireEvent('contentReady', { + type: 'contentReady', + target: attr.element + }); + }; + + if ( Lang.isString(el) ) { + _registerHTMLAttr(this, 'id', { value: el }); + YAHOO.util.Event.onAvailable(el, function() { + attr.element = Dom.get(el); + this.fireEvent('available', { + type: 'available', + target: attr.element + }); + }, this, true); + + YAHOO.util.Event.onContentReady(el, function() { + readyHandler.call(this); + }, this, true); + } else { + readyHandler.call(this); + } + } +}; + +/** + * Sets the value of the property and fires beforeChange and change events. + * @private + * @method _registerHTMLAttr + * @param {YAHOO.util.Element} element The Element instance to + * register the config to. + * @param {String} key The name of the config to register + * @param {Object} map A key-value map of the config's params + */ +var _registerHTMLAttr = function(self, key, map) { + var el = self.get('element'); + map = map || {}; + map.name = key; + map.method = map.method || function(value) { + el[key] = value; + }; + map.value = map.value || el[key]; + self._configs[key] = new YAHOO.util.Attribute(map, self); +}; + +/** + * Fires when the Element's HTMLElement can be retrieved by Id. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type available
+ * <HTMLElement> + * target the HTMLElement bound to this Element instance
+ *

Usage:
+ * var handler = function(e) {var target = e.target};
+ * myTabs.addListener('available', handler);

+ * @event available + */ + +/** + * Fires when the Element's HTMLElement subtree is rendered. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type contentReady
+ * <HTMLElement> + * target the HTMLElement bound to this Element instance
+ *

Usage:
+ * var handler = function(e) {var target = e.target};
+ * myTabs.addListener('contentReady', handler);

+ * @event contentReady + */ + +YAHOO.augment(YAHOO.util.Element, AttributeProvider); +})();(function() { + var Dom = YAHOO.util.Dom, + Event = YAHOO.util.Event, + Lang = YAHOO.util.Lang; + + /** + * A representation of a Tab's label and content. + * @namespace YAHOO.widget + * @class Tab + * @extends YAHOO.util.Element + * @constructor + * @param element {HTMLElement | String} (optional) The html element that + * represents the TabView. An element will be created if none provided. + * @param {Object} properties A key map of initial properties + */ + Tab = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) { + attr = el; + el = attr.element; + } + + if (!el && !attr.element) { + el = _createTabElement.call(this, attr); + } + + this.loadHandler = { + success: function(o) { + this.set('content', o.responseText); + }, + failure: function(o) { + YAHOO.log('loading failed: ' + o.statusText, + 'error', 'Tab'); + } + }; + + Tab.superclass.constructor.call(this, el, attr); + + this.DOM_EVENTS = {}; // delegating to tabView + }; + + YAHOO.extend(Tab, YAHOO.util.Element); + var proto = Tab.prototype; + + /** + * The default tag name for a Tab's inner element. + * @property LABEL_INNER_TAGNAME + * @type String + * @default "em" + */ + proto.LABEL_TAGNAME = 'em'; + + /** + * The class name applied to active tabs. + * @property ACTIVE_CLASSNAME + * @type String + * @default "on" + */ + proto.ACTIVE_CLASSNAME = 'selected'; + + /** + * The class name applied to disabled tabs. + * @property DISABLED_CLASSNAME + * @type String + * @default "disabled" + */ + proto.DISABLED_CLASSNAME = 'disabled'; + + /** + * The class name applied to dynamic tabs while loading. + * @property LOADING_CLASSNAME + * @type String + * @default "disabled" + */ + proto.LOADING_CLASSNAME = 'loading'; + + /** + * Provides a reference to the connection request object when data is + * loaded dynamically. + * @property dataConnection + * @type Object + */ + proto.dataConnection = null; + + /** + * Object containing success and failure callbacks for loading data. + * @property loadHandler + * @type object + */ + proto.loadHandler = null; + + /** + * Provides a readable name for the tab. + * @method toString + * @return String + */ + proto.toString = function() { + var el = this.get('element'); + var id = el.id || el.tagName; + return "Tab " + id; + }; + + /** + * Registers TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + attr = attr || {}; + Tab.superclass.initAttributes.call(this, attr); + + var el = this.get('element'); + + /** + * The event that triggers the tab's activation. + * @config activationEvent + * @type String + */ + this.register('activationEvent', { + value: attr.activationEvent || 'click' + }); + + /** + * The element that contains the tab's label. + * @config labelEl + * @type HTMLElement + */ + this.register('labelEl', { + value: attr.labelEl || _getlabelEl.call(this), + method: function(value) { + var current = this.get('labelEl'); + + if (current) { + if (current == value) { + return false; // already set + } + + this.replaceChild(value, current); + } else if (el.firstChild) { // ensure label is firstChild by default + this.insertBefore(value, el.firstChild); + } else { + this.appendChild(value); + } + } + }); + + /** + * The tab's label text (or innerHTML). + * @config label + * @type String + */ + this.register('label', { + value: attr.label || _getLabel.call(this), + method: function(value) { + var labelEl = this.get('labelEl'); + if (!labelEl) { // create if needed + this.set('labelEl', _createlabelEl.call(this)); + } + + _setLabel.call(this, value); + } + }); + + /** + * The HTMLElement that contains the tab's content. + * @config contentEl + * @type HTMLElement + */ + this.register('contentEl', { // TODO: apply className? + value: attr.contentEl || document.createElement('div'), + method: function(value) { + var current = this.get('contentEl'); + + if (current) { + if (current == value) { + return false; // already set + } + this.replaceChild(value, current); + } + } + }); + + /** + * The tab's content. + * @config content + * @type String + */ + this.register('content', { + value: attr.content, // TODO: what about existing? + method: function(value) { + this.get('contentEl').innerHTML = value; + } + }); + + var _dataLoaded = false; + + /** + * The tab's data source, used for loading content dynamically. + * @config dataSrc + * @type String + */ + this.register('dataSrc', { + value: attr.dataSrc + }); + + /** + * Whether or not content should be reloaded for every view. + * @config cacheData + * @type Boolean + * @default false + */ + this.register('cacheData', { + value: attr.cacheData || false, + validator: Lang.isBoolean + }); + + /** + * The method to use for the data request. + * @config loadMethod + * @type String + * @default "GET" + */ + this.register('loadMethod', { + value: attr.loadMethod || 'GET', + validator: Lang.isString + }); + + /** + * Whether or not any data has been loaded from the server. + * @config dataLoaded + * @type Boolean + */ + this.register('dataLoaded', { + value: false, + validator: Lang.isBoolean, + writeOnce: true + }); + + /** + * Number if milliseconds before aborting and calling failure handler. + * @config dataTimeout + * @type Number + * @default null + */ + this.register('dataTimeout', { + value: attr.dataTimeout || null, + validator: Lang.isNumber + }); + + /** + * Whether or not the tab is currently active. + * If a dataSrc is set for the tab, the content will be loaded from + * the given source. + * @config active + * @type Boolean + */ + this.register('active', { + value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME), + method: function(value) { + if (value === true) { + this.addClass(this.ACTIVE_CLASSNAME); + this.set('title', 'active'); + } else { + this.removeClass(this.ACTIVE_CLASSNAME); + this.set('title', ''); + } + }, + validator: function(value) { + return Lang.isBoolean(value) && !this.get('disabled') ; + } + }); + + /** + * Whether or not the tab is disabled. + * @config disabled + * @type Boolean + */ + this.register('disabled', { + value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME), + method: function(value) { + if (value === true) { + Dom.addClass(this.get('element'), this.DISABLED_CLASSNAME); + } else { + Dom.removeClass(this.get('element'), this.DISABLED_CLASSNAME); + } + }, + validator: Lang.isBoolean + }); + + /** + * The href of the tab's anchor element. + * @config href + * @type String + * @default '#' + */ + this.register('href', { + value: attr.href || '#', + method: function(value) { + this.getElementsByTagName('a')[0].href = value; + }, + validator: Lang.isString + }); + + /** + * The Whether or not the tab's content is visible. + * @config contentVisible + * @type Boolean + * @default false + */ + this.register('contentVisible', { + value: attr.contentVisible, + method: function(value) { + if (value == true) { + this.get('contentEl').style.display = 'block'; + + if ( this.get('dataSrc') ) { + // load dynamic content unless already loaded and caching + if ( !this.get('dataLoaded') || !this.get('cacheData') ) { + _dataConnect.call(this); + } + } + } else { + this.get('contentEl').style.display = 'none'; + } + }, + validator: Lang.isBoolean + }); + }; + + var _createTabElement = function(attr) { + var el = document.createElement('li'); + var a = document.createElement('a'); + + a.href = attr.href || '#'; + + el.appendChild(a); + + var label = attr.label || null; + var labelEl = attr.labelEl || null; + + if (labelEl) { // user supplied labelEl + if (!label) { // user supplied label + label = _getLabel.call(this, labelEl); + } + } else { + labelEl = _createlabelEl.call(this); + } + + a.appendChild(labelEl); + + return el; + }; + + var _getlabelEl = function() { + return this.getElementsByTagName(this.LABEL_TAGNAME)[0]; + }; + + var _createlabelEl = function() { + var el = document.createElement(this.LABEL_TAGNAME); + return el; + }; + + var _setLabel = function(label) { + var el = this.get('labelEl'); + el.innerHTML = label; + }; + + var _getLabel = function() { + var label, + el = this.get('labelEl'); + + if (!el) { + return undefined; + } + + return el.innerHTML; + }; + + var _dataConnect = function() { + if (!YAHOO.util.Connect) { + YAHOO.log('YAHOO.util.Connect dependency not met', + 'error', 'Tab'); + return false; + } + + Dom.addClass(this.get('contentEl').parentNode, this.LOADING_CLASSNAME); + + this.dataConnection = YAHOO.util.Connect.asyncRequest( + this.get('loadMethod'), + this.get('dataSrc'), + { + success: function(o) { + this.loadHandler.success.call(this, o); + this.set('dataLoaded', true); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + failure: function(o) { + this.loadHandler.failure.call(this, o); + this.dataConnection = null; + Dom.removeClass(this.get('contentEl').parentNode, + this.LOADING_CLASSNAME); + }, + scope: this, + timeout: this.get('dataTimeout') + } + ); + }; + + YAHOO.widget.Tab = Tab; + + /** + * Fires before the active state is changed. + *

See: Element.addListener

+ *

If handler returns false, the change will be cancelled, and the value will not + * be set.

+ *

Event fields:
+ * <String> type beforeActiveChange
+ * <Boolean> + * prevValue the current value
+ * <Boolean> + * newValue the new value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('beforeActiveChange', handler);

+ * @event beforeActiveChange + */ + + /** + * Fires after the active state is changed. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type activeChange
+ * <Boolean> + * prevValue the previous value
+ * <Boolean> + * newValue the updated value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('activeChange', handler);

+ * @event activeChange + */ + + /** + * Fires before the tab label is changed. + *

See: Element.addListener

+ *

If handler returns false, the change will be cancelled, and the value will not + * be set.

+ *

Event fields:
+ * <String> type beforeLabelChange
+ * <String> + * prevValue the current value
+ * <String> + * newValue the new value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('beforeLabelChange', handler);

+ * @event beforeLabelChange + */ + + /** + * Fires after the tab label is changed. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type labelChange
+ * <String> + * prevValue the previous value
+ * <String> + * newValue the updated value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('labelChange', handler);

+ * @event labelChange + */ + + /** + * Fires before the tab content is changed. + *

See: Element.addListener

+ *

If handler returns false, the change will be cancelled, and the value will not + * be set.

+ *

Event fields:
+ * <String> type beforeContentChange
+ * <String> + * prevValue the current value
+ * <String> + * newValue the new value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('beforeContentChange', handler);

+ * @event beforeContentChange + */ + + /** + * Fires after the tab content is changed. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type contentChange
+ * <String> + * prevValue the previous value
+ * <Boolean> + * newValue the updated value

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('contentChange', handler);

+ * @event contentChange + */ +})();(function() { + + /** + * The tabview module provides a widget for managing content bound to tabs. + * @module tabview + * + */ + /** + * A widget to control tabbed views. + * @namespace YAHOO.widget + * @class TabView + * @extends YAHOO.util.Element + * @constructor + * @param {HTMLElement | String | Object} el(optional) The html + * element that represents the TabView, or the attribute object to use. + * An element will be created if none provided. + * @param {Object} attr (optional) A key map of the tabView's + * initial attributes. Ignored if first arg is attributes object. + */ + YAHOO.widget.TabView = function(el, attr) { + attr = attr || {}; + if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) { + attr = el; // treat first arg as attr object + el = attr.element || null; + } + + if (!el && !attr.element) { // create if we dont have one + el = _createTabViewElement.call(this, attr); + } + YAHOO.widget.TabView.superclass.constructor.call(this, el, attr); + }; + + YAHOO.extend(YAHOO.widget.TabView, YAHOO.util.Element); + + var proto = YAHOO.widget.TabView.prototype; + var Dom = YAHOO.util.Dom; + var Lang = YAHOO.util.Lang; + var Event = YAHOO.util.Event; + var Tab = YAHOO.widget.Tab; + + + /** + * The className to add when building from scratch. + * @property CLASSNAME + * @default "navset" + */ + proto.CLASSNAME = 'yui-navset'; + + /** + * The className of the HTMLElement containing the TabView's tab elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the tab container are treated as Tabs when building + * from existing markup. + * @property TAB_PARENT_CLASSNAME + * @default "nav" + */ + proto.TAB_PARENT_CLASSNAME = 'yui-nav'; + + /** + * The className of the HTMLElement containing the TabView's label elements + * to look for when building from existing markup, or to add when building + * from scratch. + * All childNodes of the content container are treated as content elements when + * building from existing markup. + * @property CONTENT_PARENT_CLASSNAME + * @default "nav-content" + */ + proto.CONTENT_PARENT_CLASSNAME = 'yui-content'; + + proto._tabParent = null; + proto._contentParent = null; + + /** + * Adds a Tab to the TabView instance. + * If no index is specified, the tab is added to the end of the tab list. + * @method addTab + * @param {YAHOO.widget.Tab} tab A Tab instance to add. + * @param {Integer} index The position to add the tab. + * @return void + */ + proto.addTab = function(tab, index) { + var tabs = this.get('tabs'); + if (!tabs) { // not ready yet + this._queue[this._queue.length] = ['addTab', arguments]; + return false; + } + + index = (index === undefined) ? tabs.length : index; + + var before = this.getTab(index); + + var self = this; + var el = this.get('element'); + var tabParent = this._tabParent; + var contentParent = this._contentParent; + + var tabElement = tab.get('element'); + var contentEl = tab.get('contentEl'); + + if ( before ) { + tabParent.insertBefore(tabElement, before.get('element')); + } else { + tabParent.appendChild(tabElement); + } + + if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) { + contentParent.appendChild(contentEl); + } + + if ( !tab.get('active') ) { + tab.set('contentVisible', false, true); /* hide if not active */ + } else { + this.set('activeTab', tab, true); + + } + + var activate = function(e) { + YAHOO.util.Event.preventDefault(e); + self.set('activeTab', this); + }; + + tab.addListener( tab.get('activationEvent'), activate); + + tab.addListener('activationEventChange', function(e) { + if (e.prevValue != e.newValue) { + tab.removeListener(e.prevValue, activate); + tab.addListener(e.newValue, activate); + } + }); + + tabs.splice(index, 0, tab); + }; + + /** + * Routes childNode events. + * @method DOMEventHandler + * @param {event} e The Dom event that is being handled. + * @return void + */ + proto.DOMEventHandler = function(e) { + var el = this.get('element'); + var target = YAHOO.util.Event.getTarget(e); + var tabParent = this._tabParent; + + if (Dom.isAncestor(tabParent, target) ) { + var tabEl; + var tab = null; + var contentEl; + var tabs = this.get('tabs'); + + for (var i = 0, len = tabs.length; i < len; i++) { + tabEl = tabs[i].get('element'); + contentEl = tabs[i].get('contentEl'); + + if ( target == tabEl || Dom.isAncestor(tabEl, target) ) { + tab = tabs[i]; + break; // note break + } + } + + if (tab) { + tab.fireEvent(e.type, e); + } + } + }; + + /** + * Returns the Tab instance at the specified index. + * @method getTab + * @param {Integer} index The position of the Tab. + * @return YAHOO.widget.Tab + */ + proto.getTab = function(index) { + return this.get('tabs')[index]; + }; + + /** + * Returns the index of given tab. + * @method getTabIndex + * @param {YAHOO.widget.Tab} tab The tab whose index will be returned. + * @return int + */ + proto.getTabIndex = function(tab) { + var index = null; + var tabs = this.get('tabs'); + for (var i = 0, len = tabs.length; i < len; ++i) { + if (tab == tabs[i]) { + index = i; + break; + } + } + + return index; + }; + + /** + * Removes the specified Tab from the TabView. + * @method removeTab + * @param {YAHOO.widget.Tab} item The Tab instance to be removed. + * @return void + */ + proto.removeTab = function(tab) { + var tabCount = this.get('tabs').length; + + var index = this.getTabIndex(tab); + var nextIndex = index + 1; + if ( tab == this.get('activeTab') ) { // select next tab + if (tabCount > 1) { + if (index + 1 == tabCount) { + this.set('activeIndex', index - 1); + } else { + this.set('activeIndex', index + 1); + } + } + } + + this._tabParent.removeChild( tab.get('element') ); + this._contentParent.removeChild( tab.get('contentEl') ); + this._configs.tabs.value.splice(index, 1); + + }; + + /** + * Provides a readable name for the TabView instance. + * @method toString + * @return String + */ + proto.toString = function() { + var name = this.get('id') || this.get('tagName'); + return "TabView " + name; + }; + + /** + * The transiton to use when switching between tabs. + * @method contentTransition + */ + proto.contentTransition = function(newTab, oldTab) { + newTab.set('contentVisible', true); + oldTab.set('contentVisible', false); + }; + + /** + * Registers TabView specific properties. + * @method initAttributes + * @param {Object} attr Hash of initial attributes + */ + proto.initAttributes = function(attr) { + YAHOO.widget.TabView.superclass.initAttributes.call(this, attr); + + if (!attr.orientation) { + attr.orientation = 'top'; + } + + var el = this.get('element'); + + /** + * The Tabs belonging to the TabView instance. + * @config tabs + * @type Array + */ + this.register('tabs', { + value: [], + readOnly: true + }); + + /** + * The container of the tabView's label elements. + * @property _tabParent + * @private + * @type HTMLElement + */ + this._tabParent = + this.getElementsByClassName(this.TAB_PARENT_CLASSNAME, + 'ul' )[0] || _createTabParent.call(this); + + /** + * The container of the tabView's content elements. + * @property _contentParent + * @type HTMLElement + * @private + */ + this._contentParent = + this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME, + 'div')[0] || _createContentParent.call(this); + + /** + * How the Tabs should be oriented relative to the TabView. + * @config orientation + * @type String + * @default "top" + */ + this.register('orientation', { + value: attr.orientation, + method: function(value) { + var current = this.get('orientation'); + this.addClass('yui-navset-' + value); + + if (current != value) { + this.removeClass('yui-navset-' + current); + } + + switch(value) { + case 'bottom': + this.appendChild(this._tabParent); + break; + } + } + }); + + /** + * The index of the tab currently active. + * @config activeIndex + * @type Int + */ + this.register('activeIndex', { + value: attr.activeIndex, + method: function(value) { + this.set('activeTab', this.getTab(value)); + }, + validator: function(value) { + return !this.getTab(value).get('disabled'); // cannot activate if disabled + } + }); + + /** + * The tab currently active. + * @config activeTab + * @type YAHOO.widget.Tab + */ + this.register('activeTab', { + value: attr.activeTab, + method: function(tab) { + var activeTab = this.get('activeTab'); + + if (tab) { + tab.set('active', true); + } + + if (activeTab && activeTab != tab) { + activeTab.set('active', false); + } + + if (activeTab && tab != activeTab) { // no transition if only 1 + this.contentTransition(tab, activeTab); + } else if (tab) { + tab.set('contentVisible', true); + } + }, + validator: function(value) { + return !value.get('disabled'); // cannot activate if disabled + } + }); + + if ( this._tabParent ) { + _initTabs.call(this); + } + + for (var type in this.DOM_EVENTS) { + if ( this.DOM_EVENTS.hasOwnProperty(type) ) { + this.addListener.call(this, type, this.DOMEventHandler); + } + } + }; + + /** + * Creates Tab instances from a collection of HTMLElements. + * @method createTabs + * @private + * @param {Array|HTMLCollection} elements The elements to use for Tabs. + * @return void + */ + var _initTabs = function() { + var tab, + attr, + contentEl; + + var el = this.get('element'); + var tabs = _getChildNodes(this._tabParent); + var contentElements = _getChildNodes(this._contentParent); + + for (var i = 0, len = tabs.length; i < len; ++i) { + attr = {}; + + if (contentElements[i]) { + attr.contentEl = contentElements[i]; + } + + tab = new YAHOO.widget.Tab(tabs[i], attr); + this.addTab(tab); + + if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) { + this._configs.activeTab.value = tab; // dont invoke method + } + } + }; + + var _createTabViewElement = function(attr) { + var el = document.createElement('div'); + + if ( this.CLASSNAME ) { + el.className = this.CLASSNAME; + } + + return el; + }; + + var _createTabParent = function(attr) { + var el = document.createElement('ul'); + + if ( this.TAB_PARENT_CLASSNAME ) { + el.className = this.TAB_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _createContentParent = function(attr) { + var el = document.createElement('div'); + + if ( this.CONTENT_PARENT_CLASSNAME ) { + el.className = this.CONTENT_PARENT_CLASSNAME; + } + + this.get('element').appendChild(el); + + return el; + }; + + var _getChildNodes = function(el) { + var nodes = []; + var childNodes = el.childNodes; + + for (var i = 0, len = childNodes.length; i < len; ++i) { + if (childNodes[i].nodeType == 1) { + nodes[nodes.length] = childNodes[i]; + } + } + + return nodes; + }; + +/** + * Fires before the activeTab is changed. + *

See: Element.addListener

+ *

If handler returns false, the change will be cancelled, and the value will not + * be set.

+ *

Event fields:
+ * <String> type beforeActiveTabChange
+ * <YAHOO.widget.Tab> + * prevValue the currently active tab
+ * <YAHOO.widget.Tab> + * newValue the tab to be made active

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('beforeActiveTabChange', handler);

+ * @event beforeActiveTabChange + */ + +/** + * Fires after the activeTab is changed. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type activeTabChange
+ * <YAHOO.widget.Tab> + * prevValue the formerly active tab
+ * <YAHOO.widget.Tab> + * newValue the new active tab

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('activeTabChange', handler);

+ * @event activeTabChange + */ + +/** + * Fires before the orientation is changed. + *

See: Element.addListener

+ *

If handler returns false, the change will be cancelled, and the value will not + * be set.

+ *

Event fields:
+ * <String> type beforeOrientationChange
+ * <String> + * prevValue the current orientation
+ * <String> + * newValue the new orientation to be applied

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('beforeOrientationChange', handler);

+ * @event beforeOrientationChange + */ + +/** + * Fires after the orientation is changed. + *

See: Element.addListener

+ *

Event fields:
+ * <String> type orientationChange
+ * <String> + * prevValue the former orientation
+ * <String> + * newValue the new orientation

+ *

Usage:
+ * var handler = function(e) {var previous = e.prevValue};
+ * myTabs.addListener('orientationChange', handler);

+ * @event orientationChange + */ +})(); \ No newline at end of file diff --git a/frontend/beta/js/YUI/treeview.js b/frontend/beta/js/YUI/treeview.js new file mode 100644 index 0000000..ea6b6ef --- /dev/null +++ b/frontend/beta/js/YUI/treeview.js @@ -0,0 +1,2182 @@ +/* +Copyright (c) 2006, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 0.12.0 +*/ + +/** + * The treeview widget is a generic tree building tool. + * @module treeview + * @title TreeView Widget + * @requires yahoo + * @optional animation + * @namespace YAHOO.widget + */ + +/** + * Contains the tree view state data and the root node. + * + * @class TreeView + * @constructor + * @param {string|HTMLElement} id The id of the element, or the element + * itself that the tree will be inserted into. + */ +YAHOO.widget.TreeView = function(id) { + if (id) { this.init(id); } +}; + +YAHOO.widget.TreeView.prototype = { + + /** + * The id of tree container element + * @property id + * @type String + */ + id: null, + + /** + * The host element for this tree + * @property _el + * @private + */ + _el: null, + + /** + * Flat collection of all nodes in this tree + * @property _nodes + * @type Node[] + * @private + */ + _nodes: null, + + /** + * We lock the tree control while waiting for the dynamic loader to return + * @property locked + * @type boolean + */ + locked: false, + + /** + * The animation to use for expanding children, if any + * @property _expandAnim + * @type string + * @private + */ + _expandAnim: null, + + /** + * The animation to use for collapsing children, if any + * @property _collapseAnim + * @type string + * @private + */ + _collapseAnim: null, + + /** + * The current number of animations that are executing + * @property _animCount + * @type int + * @private + */ + _animCount: 0, + + /** + * The maximum number of animations to run at one time. + * @property maxAnim + * @type int + */ + maxAnim: 2, + + /** + * Sets up the animation for expanding children + * @method setExpandAnim + * @param {string} type the type of animation (acceptable values defined + * in YAHOO.widget.TVAnim) + */ + setExpandAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._expandAnim = type; + } + }, + + /** + * Sets up the animation for collapsing children + * @method setCollapseAnim + * @param {string} the type of animation (acceptable values defined in + * YAHOO.widget.TVAnim) + */ + setCollapseAnim: function(type) { + if (YAHOO.widget.TVAnim.isValid(type)) { + this._collapseAnim = type; + } + }, + + /** + * Perform the expand animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateExpand + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateExpand: function(el, node) { + + if (this._expandAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._expandAnim, el, + function() { tree.expandComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "expand" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Perform the collapse animation if configured, or just show the + * element if not configured or too many animations are in progress + * @method animateCollapse + * @param el {HTMLElement} the element to animate + * @param node {YAHOO.util.Node} the node that was expanded + * @return {boolean} true if animation could be invoked, false otherwise + */ + animateCollapse: function(el, node) { + + if (this._collapseAnim && this._animCount < this.maxAnim) { + // this.locked = true; + var tree = this; + var a = YAHOO.widget.TVAnim.getAnim(this._collapseAnim, el, + function() { tree.collapseComplete(node); }); + if (a) { + ++this._animCount; + this.fireEvent("animStart", { + "node": node, + "type": "collapse" + }); + a.animate(); + } + + return true; + } + + return false; + }, + + /** + * Function executed when the expand animation completes + * @method expandComplete + */ + expandComplete: function(node) { + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "expand" + }); + // this.locked = false; + }, + + /** + * Function executed when the collapse animation completes + * @method collapseComplete + */ + collapseComplete: function(node) { + --this._animCount; + this.fireEvent("animComplete", { + "node": node, + "type": "collapse" + }); + // this.locked = false; + }, + + /** + * Initializes the tree + * @method init + * @parm {string|HTMLElement} id the id of the element that will hold the tree + * @private + */ + init: function(id) { + + this.id = id; + + if ("string" !== typeof id) { + this._el = id; + this.id = this.generateId(id); + } + + /** + * When animation is enabled, this event fires when the animation + * starts + * @event animStart + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animStart", this); + + /** + * When animation is enabled, this event fires when the animation + * completes + * @event animComplete + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + * @parm {String} type the type of animation ("expand" or "collapse") + */ + this.createEvent("animComplete", this); + + /** + * Fires when a node is going to be expanded. Return false to stop + * the expand. + * @event collapse + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + */ + this.createEvent("collapse", this); + + /** + * Fires when a node is going to be collapsed. Return false to stop + * the collapse. + * @event expand + * @type CustomEvent + * @param {YAHOO.widget.Node} node the node that is expanding/collapsing + */ + this.createEvent("expand", this); + + this._nodes = []; + + // store a global reference + YAHOO.widget.TreeView.trees[this.id] = this; + + // Set up the root node + this.root = new YAHOO.widget.RootNode(this); + + + }, + + /** + * Renders the tree boilerplate and visible nodes + * @method draw + */ + draw: function() { + var html = this.root.getHtml(); + this.getEl().innerHTML = html; + this.firstDraw = false; + }, + + /** + * Returns the tree's host element + * @method getEl + * @return {HTMLElement} the host element + */ + getEl: function() { + if (! this._el) { + this._el = document.getElementById(this.id); + } + return this._el; + }, + + /** + * Nodes register themselves with the tree instance when they are created. + * @method regNode + * @param node {Node} the node to register + * @private + */ + regNode: function(node) { + this._nodes[node.index] = node; + }, + + /** + * Returns the root node of this tree + * @method getRoot + * @return {Node} the root node + */ + getRoot: function() { + return this.root; + }, + + /** + * Configures this tree to dynamically load all child data + * @method setDynamicLoad + * @param {function} fnDataLoader the function that will be called to get the data + * @param iconMode {int} configures the icon that is displayed when a dynamic + * load node is expanded the first time without children. By default, the + * "collapse" icon will be used. If set to 1, the leaf node icon will be + * displayed. + */ + setDynamicLoad: function(fnDataLoader, iconMode) { + this.root.setDynamicLoad(fnDataLoader, iconMode); + }, + + /** + * Expands all child nodes. Note: this conflicts with the "multiExpand" + * node property. If expand all is called in a tree with nodes that + * do not allow multiple siblings to be displayed, only the last sibling + * will be expanded. + * @method expandAll + */ + expandAll: function() { + if (!this.locked) { + this.root.expandAll(); + } + }, + + /** + * Collapses all expanded child nodes in the entire tree. + * @method collapseAll + */ + collapseAll: function() { + if (!this.locked) { + this.root.collapseAll(); + } + }, + + /** + * Returns a node in the tree that has the specified index (this index + * is created internally, so this function probably will only be used + * in html generated for a given node.) + * @method getNodeByIndex + * @param {int} nodeIndex the index of the node wanted + * @return {Node} the node with index=nodeIndex, null if no match + */ + getNodeByIndex: function(nodeIndex) { + var n = this._nodes[nodeIndex]; + return (n) ? n : null; + }, + + /** + * Returns a node that has a matching property and value in the data + * object that was passed into its constructor. + * @method getNodeByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Node} the matching node, null if no match + */ + getNodeByProperty: function(property, value) { + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + return n; + } + } + + return null; + }, + + /** + * Returns a collection of nodes that have a matching property + * and value in the data object that was passed into its constructor. + * @method getNodesByProperty + * @param {object} property the property to search (usually a string) + * @param {object} value the value we want to find (usuall an int or string) + * @return {Array} the matching collection of nodes, null if no match + */ + getNodesByProperty: function(property, value) { + var values = []; + for (var i in this._nodes) { + var n = this._nodes[i]; + if (n.data && value == n.data[property]) { + values.push(n); + } + } + + return (values.length) ? values : null; + }, + + /** + * Removes the node and its children, and optionally refreshes the + * branch of the tree that was affected. + * @method removeNode + * @param {Node} The node to remove + * @param {boolean} autoRefresh automatically refreshes branch if true + * @return {boolean} False is there was a problem, true otherwise. + */ + removeNode: function(node, autoRefresh) { + + // Don't delete the root node + if (node.isRoot()) { + return false; + } + + // Get the branch that we may need to refresh + var p = node.parent; + if (p.parent) { + p = p.parent; + } + + // Delete the node and its children + this._deleteNode(node); + + // Refresh the parent of the parent + if (autoRefresh && p && p.childrenRendered) { + p.refresh(); + } + + return true; + }, + + /** + * Deletes this nodes child collection, recursively. Also collapses + * the node, and resets the dynamic load flag. The primary use for + * this method is to purge a node and allow it to fetch its data + * dynamically again. + * @method removeChildren + * @param {Node} node the node to purge + */ + removeChildren: function(node) { + while (node.children.length) { + this._deleteNode(node.children[0]); + } + + node.childrenRendered = false; + node.dynamicLoadComplete = false; + if (node.expanded) { + node.collapse(); + } else { + node.updateIcon(); + } + }, + + /** + * Deletes the node and recurses children + * @method _deleteNode + * @private + */ + _deleteNode: function(node) { + // Remove all the child nodes first + this.removeChildren(node); + + // Remove the node from the tree + this.popNode(node); + }, + + /** + * Removes the node from the tree, preserving the child collection + * to make it possible to insert the branch into another part of the + * tree, or another tree. + * @method popNode + * @param {Node} the node to remove + */ + popNode: function(node) { + var p = node.parent; + + // Update the parent's collection of children + var a = []; + + for (var i=0, len=p.children.length;i '; + } + + var f = document.createElement("div"); + var s = f.style; + s.position = "absolute"; + s.top = "-1000px"; + s.left = "-1000px"; + f.innerHTML = sb.join(""); + + document.body.appendChild(f); + + YAHOO.widget.TreeView.removeHandler(window, + "load", YAHOO.widget.TreeView.preload); + +}; + +YAHOO.widget.TreeView.addHandler(window, + "load", YAHOO.widget.TreeView.preload); + +/** + * The base class for all tree nodes. The node's presentation and behavior in + * response to mouse events is handled in Node subclasses. + * @namespace YAHOO.widget + * @class Node + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + * @constructor + */ +YAHOO.widget.Node = function(oData, oParent, expanded) { + if (oData) { this.init(oData, oParent, expanded); } +}; + +YAHOO.widget.Node.prototype = { + + /** + * The index for this instance obtained from global counter in YAHOO.widget.TreeView. + * @property index + * @type int + */ + index: 0, + + /** + * This node's child node collection. + * @property children + * @type Node[] + */ + children: null, + + /** + * Tree instance this node is part of + * @property tree + * @type TreeView + */ + tree: null, + + /** + * The data linked to this node. This can be any object or primitive + * value, and the data can be used in getNodeHtml(). + * @property data + * @type object + */ + data: null, + + /** + * Parent node + * @property parent + * @type Node + */ + parent: null, + + /** + * The depth of this node. We start at -1 for the root node. + * @property depth + * @type int + */ + depth: -1, + + /** + * The href for the node's label. If one is not specified, the href will + * be set so that it toggles the node. + * @property href + * @type string + */ + href: null, + + /** + * The label href target, defaults to current window + * @property target + * @type string + */ + target: "_self", + + /** + * The node's expanded/collapsed state + * @property expanded + * @type boolean + */ + expanded: false, + + /** + * Can multiple children be expanded at once? + * @property multiExpand + * @type boolean + */ + multiExpand: true, + + /** + * Should we render children for a collapsed node? It is possible that the + * implementer will want to render the hidden data... @todo verify that we + * need this, and implement it if we do. + * @property renderHidden + * @type boolean + */ + renderHidden: false, + + /** + * This flag is set to true when the html is generated for this node's + * children, and set to false when new children are added. + * @property childrenRendered + * @type boolean + */ + childrenRendered: false, + + /** + * Dynamically loaded nodes only fetch the data the first time they are + * expanded. This flag is set to true once the data has been fetched. + * @property dynamicLoadComplete + * @type boolean + */ + dynamicLoadComplete: false, + + /** + * This node's previous sibling + * @property previousSibling + * @type Node + */ + previousSibling: null, + + /** + * This node's next sibling + * @property nextSibling + * @type Node + */ + nextSibling: null, + + /** + * We can set the node up to call an external method to get the child + * data dynamically. + * @property _dynLoad + * @type boolean + * @private + */ + _dynLoad: false, + + /** + * Function to execute when we need to get this node's child data. + * @property dataLoader + * @type function + */ + dataLoader: null, + + /** + * This is true for dynamically loading nodes while waiting for the + * callback to return. + * @property isLoading + * @type boolean + */ + isLoading: false, + + /** + * The toggle/branch icon will not show if this is set to false. This + * could be useful if the implementer wants to have the child contain + * extra info about the parent, rather than an actual node. + * @property hasIcon + * @type boolean + */ + hasIcon: true, + + /** + * Used to configure what happens when a dynamic load node is expanded + * and we discover that it does not have children. By default, it is + * treated as if it still could have children (plus/minus icon). Set + * iconMode to have it display like a leaf node instead. + * @property iconMode + * @type int + */ + iconMode: 0, + + /** + * The node type + * @property _type + * @private + */ + _type: "Node", + + /* + spacerPath: "http://us.i1.yimg.com/us.yimg.com/i/space.gif", + expandedText: "Expanded", + collapsedText: "Collapsed", + loadingText: "Loading", + */ + + /** + * Initializes this node, gets some of the properties from the parent + * @method init + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ + init: function(oData, oParent, expanded) { + + this.data = oData; + this.children = []; + this.index = YAHOO.widget.TreeView.nodeCount; + ++YAHOO.widget.TreeView.nodeCount; + this.expanded = expanded; + + /** + * The parentChange event is fired when a parent element is applied + * to the node. This is useful if you need to apply tree-level + * properties to a tree that need to happen if a node is moved from + * one tre to another. + * + * @event parentChange + * @type CustomEvent + */ + this.createEvent("parentChange", this); + + // oParent should never be null except when we create the root node. + if (oParent) { + oParent.appendChild(this); + } + }, + + /** + * Certain properties for the node cannot be set until the parent + * is known. This is called after the node is inserted into a tree. + * the parent is also applied to this node's children in order to + * make it possible to move a branch from one tree to another. + * @method applyParent + * @param {Node} parentNode this node's parent node + * @return {boolean} true if the application was successful + */ + applyParent: function(parentNode) { + if (!parentNode) { + return false; + } + + this.tree = parentNode.tree; + this.parent = parentNode; + this.depth = parentNode.depth + 1; + + if (!this.href) { + this.href = "javascript:" + this.getToggleLink(); + } + + if (! this.multiExpand) { + this.multiExpand = parentNode.multiExpand; + } + + this.tree.regNode(this); + parentNode.childrenRendered = false; + + // cascade update existing children + for (var i=0, len=this.children.length;i 0 || + (checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) ); + }, + + /** + * Expands if node is collapsed, collapses otherwise. + * @method toggle + */ + toggle: function() { + if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) { + if (this.expanded) { this.collapse(); } else { this.expand(); } + } + }, + + /** + * Returns the markup for this node and its children. + * @method getHtml + * @return {string} the markup for this node and its expanded children. + */ + getHtml: function() { + + this.childrenRendered = false; + + var sb = []; + sb[sb.length] = '
'; + sb[sb.length] = this.getNodeHtml(); + sb[sb.length] = this.getChildrenHtml(); + sb[sb.length] = '
'; + return sb.join(""); + }, + + /** + * Called when first rendering the tree. We always build the div that will + * contain this nodes children, but we don't render the children themselves + * unless this node is expanded. + * @method getChildrenHtml + * @return {string} the children container div html and any expanded children + * @private + */ + getChildrenHtml: function() { + + var sb = []; + sb[sb.length] = '
= this.depth || depth < 0) { + return null; + } + + var p = this.parent; + + while (p.depth > depth) { + p = p.parent; + } + + return p; + }, + + /** + * Returns the css class for the spacer at the specified depth for + * this node. If this node's ancestor at the specified depth + * has a next sibling the presentation is different than if it + * does not have a next sibling + * @method getDepthStyle + * @param {int} depth the depth of the ancestor. + * @return {string} the css class for the spacer + */ + getDepthStyle: function(depth) { + return (this.getAncestor(depth).nextSibling) ? + "ygtvdepthcell" : "ygtvblankdepthcell"; + }, + + /** + * Get the markup for the node. This is designed to be overrided so that we can + * support different types of nodes. + * @method getNodeHtml + * @return {string} The HTML that will render this node. + */ + getNodeHtml: function() { + return ""; + }, + + /** + * Regenerates the html for this node and its children. To be used when the + * node is expanded and new children have been added. + * @method refresh + */ + refresh: function() { + // this.loadComplete(); + this.getChildrenEl().innerHTML = this.completeRender(); + + if (this.hasIcon) { + var el = this.getToggleEl(); + if (el) { + el.className = this.getStyle(); + } + } + }, + + /** + * Node toString + * @method toString + * @return {string} string representation of the node + */ + toString: function() { + return "Node (" + this.index + ")"; + } + +}; + +YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider); + +/** + * A custom YAHOO.widget.Node that handles the unique nature of + * the virtual, presentationless root node. + * @namespace YAHOO.widget + * @class RootNode + * @extends YAHOO.widget.Node + * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to + * @constructor + */ +YAHOO.widget.RootNode = function(oTree) { + // Initialize the node with null params. The root node is a + // special case where the node has no presentation. So we have + // to alter the standard properties a bit. + this.init(null, null, true); + + /* + * For the root node, we get the tree reference from as a param + * to the constructor instead of from the parent element. + */ + this.tree = oTree; +}; + +YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, { + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + return ""; + }, + + toString: function() { + return "RootNode"; + }, + + loadComplete: function() { + this.tree.draw(); + } + +}); +/** + * The default node presentation. The first parameter should be + * either a string that will be used as the node's label, or an object + * that has a string propery called label. By default, the clicking the + * label will toggle the expanded/collapsed state of the node. By + * changing the href property of the instance, this behavior can be + * changed so that the label will go to the specified href. + * @namespace YAHOO.widget + * @class TextNode + * @extends YAHOO.widget.Node + * @constructor + * @param oData {object} a string or object containing the data that will + * be used to render this node + * @param oParent {YAHOO.widget.Node} this node's parent node + * @param expanded {boolean} the initial expanded/collapsed state + */ +YAHOO.widget.TextNode = function(oData, oParent, expanded) { + + if (oData) { + this.init(oData, oParent, expanded); + this.setUpLabel(oData); + } + +}; + +YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, { + + /** + * The CSS class for the label href. Defaults to ygtvlabel, but can be + * overridden to provide a custom presentation for a specific node. + * @property labelStyle + * @type string + */ + labelStyle: "ygtvlabel", + + /** + * The derived element id of the label for this node + * @property labelElId + * @type string + */ + labelElId: null, + + /** + * The text for the label. It is assumed that the oData parameter will + * either be a string that will be used as the label, or an object that + * has a property called "label" that we will use. + * @property label + * @type string + */ + label: null, + + textNodeParentChange: function() { + + /** + * Custom event that is fired when the text node label is clicked. The + * custom event is defined on the tree instance, so there is a single + * event that handles all nodes in the tree. The node clicked is + * provided as an argument + * + * @event labelClick + * @for YAHOO.widget.TreeView + * @param {YAHOO.widget.Node} node the node clicked + */ + if (this.tree && !this.tree.hasEvent("labelClick")) { + this.tree.createEvent("labelClick", this.tree); + } + + }, + + /** + * Sets up the node label + * @method setUpLabel + * @param oData string containing the label, or an object with a label property + */ + setUpLabel: function(oData) { + + // set up the custom event on the tree + this.textNodeParentChange(); + this.subscribe("parentChange", this.textNodeParentChange); + + if (typeof oData == "string") { + oData = { label: oData }; + } + this.label = oData.label; + + // update the link + if (oData.href) { + this.href = oData.href; + } + + // set the target + if (oData.target) { + this.target = oData.target; + } + + if (oData.style) { + this.labelStyle = oData.style; + } + + this.labelElId = "ygtvlabelel" + this.index; + }, + + /** + * Returns the label element + * @for YAHOO.widget.TextNode + * @method getLabelEl + * @return {object} the element + */ + getLabelEl: function() { + return document.getElementById(this.labelElId); + }, + + // overrides YAHOO.widget.Node + getNodeHtml: function() { + var sb = []; + + sb[sb.length] = ''; + sb[sb.length] = ''; + + for (var i=0;i '; + } + + var getNode = 'YAHOO.widget.TreeView.getNode(\'' + + this.tree.id + '\',' + this.index + ')'; + + sb[sb.length] = ''; + + /* + sb[sb.length] = ' '; + } + + if (this.hasIcon) { + sb[sb.length] = ' + * YAHOO.namespace("property.package"); + * YAHOO.namespace("YAHOO.property.package"); + * + * Either of the above would create YAHOO.property, then + * YAHOO.property.package + * + * Be careful when naming packages. Reserved words may work in some browsers + * and not others. For instance, the following will fail in Safari: + *
+ * YAHOO.namespace("really.long.nested.namespace");
+ * 
+ * This fails because "long" is a future reserved word in ECMAScript + * + * @method namespace + * @static + * @param {String*} arguments 1-n namespaces to create + * @return {Object} A reference to the last namespace object created + */ +YAHOO.namespace = function() { + var a=arguments, o=null, i, j, d; + for (i=0; i. + +*/ + +/* @override + https://www.example.com/DEVELOPMENT/css/clipperz.css + http://www.example.com/DEVELOPMENT/css/clipperz.css + https://www.clipperz.com/gamma/css/clipperz.css + https://www.example.com/iPHONE/css/clipperz.css +*/ + +/* +Color list: +- login box: + light #ff9955 + dark #ff6622 +- login button: + regular #dd5500 + hover #773311 +- login translations: + box: #cc6622; + not-selected: + color: #ddaa99 + background: #994422 + selected: #772211; + +*/ + +html { + height: 100%; +} + +body { +/* margin-left: 15px; margin-right: 15px;*/ + font-family: Helvetica, Arial, Geneva, sans-serif; + margin: 0px; +/* + min-width: 600px; +*/ + height: 100%; +} + +img.favicon { + height: 16px; + width: 16px; +} + +/* @group Misc */ + +.clear { + clear: both; +} + +.hidden_none { + display: none; + visibility: hidden; +} + +.keepTogether { + display: inline-block; + white-space: nowrap; +} + +body.ext-gecko .keepTogether { + display: -moz-inline-box; +} + +/* @end */ + +/* @group Loading */ + +div#loading { + margin-left: auto; + margin-right: auto; + text-align: center; + margin-top: 60px; + width: 200px; +} + +div#loading img { + border: 0px; +} + +div#loading h5 { + font-size: 16pt; + padding: 0px; + color: #333366; +} + +div#loading h2 { + padding-left: 20px; + color: #ff9200; +} + + +/* @end */ + +/* @group Login page */ + +/* @group Header */ + +div.pageHeader { + background-color: #1f2148; + min-width: 1013px; +} + +div#logoFrame { + padding: 16px 16px 60px 16px; + min-height: 44px; +} + + +div#logoFrame div#logo { + background: url(../images/old/logo.png); + width: 150px; + height: 39px; +} + + +div#loading div#logo { + background: url(../images/old/logo_blue.png); + width: 193px; + height: 58px; + display: block; +} + +h5.clipperzPayoff { + color: white; + font-size: 13pt; + font-weight: normal; + padding-left: 20px; + white-space: nowrap; + margin: 0px; + padding-left: 4px; +} + + +/* @group Misc links */ + +div#miscLinks { + float: right; +} + +div#miscLinks ul { + margin: 12px 0px 0px; + padding: 15px; +} + +div#miscLinks ul li { + display: inline; + margin: 0px; padding: 0px; border: 0px; +} + +div#miscLinks ul li a { +/* + color: #ccccff; +*/ + color: white; + margin: 0px; padding: 0px; border: 0px; + font-weight: normal; + text-decoration: none; + font-size: 12pt; + border-left: 1px solid #45486b; + padding: 15px; + margin: 0px; + min-width: 70px; +} + +div#miscLinks ul li a#donateHeaderLink { + border-left: 0px; +} + +div#miscLinks ul li a:hover { + color: #ff9200; +} + + + +/* @end */ + + +/* @group Features Tabs */ +#featureTabs table { + width: 100%; + padding: 6px; + padding-bottom: 46px; +} + +#featureTabs table tr td { + width: 25%; + vertical-align: top; + font-size: 11pt; + color: white; +} + +#featureTabs table tr td img { + float: left; +} + +#featureTabs table tr td span { + display: block; + padding: 5 10 5 85; +} + +div#featureTabs canvas.featureIcon { + width: 76px; + height: 76px; + display: block; + float: left; + + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9955), to(#ff6622), color-stop(1,#333333)); + background: -moz-linear-gradient(0% 100% 90deg,#ff6622, #ff9955); + + -webkit-border-radius: 38px; + -moz-border-radius: 38px; + border-radius: 38px; +} +/* +div#featureTabs div.featureIcon.storeIcon { + background-image: url(../images/old/home/features/store.png); +} + +div#featureTabs div.featureIcon.protectIcon { + background-image: url(../images/old/home/features/protect.png); +} + +div#featureTabs div.featureIcon.directLoginIcon { + background-image: url(../images/old/home/features/directLogin.png); +} + +div#f