diff --git a/ui/cloudkit/cloudkit.jsp b/ui/cloudkit/cloudkit.jsp deleted file mode 100644 index 148e8edc22d..00000000000 --- a/ui/cloudkit/cloudkit.jsp +++ /dev/null @@ -1,385 +0,0 @@ -<% long now = System.currentTimeMillis(); %> - - - - - - - - - - - - - - - - - - - - - - - - - - - myCloud - - - - - - - - - diff --git a/ui/cloudkit/css/main.css b/ui/cloudkit/css/main.css deleted file mode 100644 index 06a6ee3ebd0..00000000000 --- a/ui/cloudkit/css/main.css +++ /dev/null @@ -1,1551 +0,0 @@ -@charset "UTF-8"; -/* CSS Document */ - - -*{ - margin:0; - padding:0; -} - -html,body{ - font-family:Arial, Helvetica, sans-serif; - font-size:11px; - color:#111111; - font-weight:normal; - background:#cbcbcb url(../images/main_bg.gif) repeat-x top left; - margin:0; - padding:0; - -} - - -a { - width:auto; - height:auto; - color:#2c8bbc; - font-size:11px; - font-weight:normal; - text-align:left; - text-decoration:none; - margin:0; - padding:0; -} - -a:link, a:visited { - text-decoration:none; -} - -a:hover { - text-decoration:underline; -} - - -#loginmain { - width:680px; - height:auto; - margin:0 auto; - padding:0; -} - -#main { - width:957px; - height:auto; - margin:0 auto; - padding:0; -} - -#header { - width:957px; - height:62px; - float:left; - background:url(../images/header_bg.gif) repeat-x top left; - margin:0; - padding:0; -} - -.logo { - width:440px; - height:22px; - float:left; - background:url(../images/logo.gif) no-repeat top left; - margin:20px 0 0 24px; - display:inline; - padding:0; -} - -.user_links { - width:auto; - height:20px; - float:right; - margin:15px 20px 0 0; - padding:0; -} - -.user_links p{ - width:auto; - height:auto; - float:left; - font-size:11px; - color:#FFF; - font-weight:normal; - text-align:left; - margin:0 0 0 15px; - display:inline; - padding:0; -} - -.user_links a{ - width:auto; - height:auto; - float:left; - font-size:11px; - font-weight:normal; - text-align:left; - color:#c6e3fe; - text-decoration:none; - margin:0; - padding:0; -} - -.user_links a:link, .user_links a:visited { - text-decoration:none; -} - -.user_links a:hover { - text-decoration:underline; -} - -.main_regcontentbg { - width:100%; - min-height:700px; - height:auto; - float:left; - background:#FFF url(../images/main_contentbg.gif) repeat-x top left; - margin:0; - padding:0 0 40px 0; -} - -.main_contentbg { - width:100%; - min-height:700px; - height:auto; - float:left; - background:#FFF; - margin:0; - padding:0 0 40px 0; -} - -.main_regleft { - width:388px; - height:auto; - float:left; - margin:0; - padding:0; -} - -.main_regright { - width:569px; - height:auto; - float:right; - margin:0; - padding:0; -} - -.header_bot { - width:569px; - height:103px; - float:left; - margin:0; - padding:0; -} - -.header_cloudbg { - width:166px; - height:103px; - float:right; - background:url(../images/header_cloudbg.gif) no-repeat top left; - margin:0; - padding:0; -} - -.header_comments { - width:400px; - height:auto; - float:left; - margin:10px 0 0 0; - padding:0; -} - -.header_comments p{ - width:auto; - height:auto; - float:left; - color:#FFF; - font-size:24px; - font-weight:bold; - text-align:left; - margin:0 0 0 15px; - display:inline; - padding:0; -} - -.header_comments span{ - width:auto; - height:auto; - color:#6884a2; - font-size:24px; - font-weight:bold; - text-align:left; - margin:0; - padding:0; -} - -.main_rightcontentbox { - width:569px; - height:auto; - float:left; - background:#FFF; - margin:0; - padding:0; -} - -.login_box { - width:681px; - height:auto; - float:left; - margin:30% 0 0 0; - display:inline; - padding:0; -} - -.login_box_top { - width:681px; - height:77px; - float:left; - background:url(../images/login_top.png) no-repeat top left; - margin:0; - padding:0; - overflow:hidden; -} -.login_logo { - width:450px; - height:26px; - float:left; - background:url(../images/login_logo.gif) no-repeat top left; - margin:52px 0 0 40px; - display:inline; - padding:0; -} - -.login_box_mid { - width:681px; - height:auto; - float:left; - background:url(../images/login_mid.png) repeat-y top left; - margin:0; - padding:0; -} - -.login_box_mid h2{ - width:500px; - height:auto; - float:left; - color:#dbedff; - font-weight:normal; - text-align:left; - font-size:24px; - margin:30px 0 0 40px; - display:inline; - padding:0; -} - -.login_formbox { - width:500px; - height:auto; - float:left; - margin:0 0 0 40px; - display:inline; - padding:0; - list-style:none; -} - -.login_formbox li { - width:500px; - height:auto; - float:left; - margin:22px 0 0 0; - padding:0; - list-style:none; -} - -.login_formbox label { - width:100px; - height:auto; - float:left; - color:#FFF; - font-size:15px; - font-weight:normal; - margin:7px 0 0 0; - padding:0; - list-style:none; -} - -.login_formbox .text { - width:240px; - height:24px; - float:left; - color:#666; - background:#FFF; - border:1px solid #dbdbdb; - font-size:12px; - font-weight:normal; - margin:0 0 0 10px; - padding:0; - list-style:none; -} - -.login_submitbox { - width:500px; - height:35px; - float:left; - margin:40px 0 0 0; - padding:0; -} - -.login_submitbox a { - width:auto; - height:auto; - float:left; - color:#2c8bbc; - font-size:14px; - font-weight:normal; - margin:8px 0 0 15px; - display:inline; - padding:0; - text-decoration:none; -} - -.login_submitbox a:link, .login_submitbox a:visited { - text-decoration:none; -} - -.login_submitbox a:hover { - text-decoration:underline; -} - - -.login_button { - width:143px; - height:35px; - float:left; - background:url(../images/login_button.png) no-repeat top left; - margin:0; - padding:0; - border:none; -} - -.login_button:hover { - background:url(../images/login_button_hover.png) no-repeat top left; -} - -.login_errormsgbox { - width:500px; - height:auto; - float:left; - background:#ffecec; - border:1px solid #ffaeae; - margin:15px 0 0 0; - padding:0 0 10px 0; -} - -.login_errormsgbox p{ - width:470px; - height:auto; - float:left; - margin:10px 0 0 10px; - padding:0; - color:#333; - text-align:left; - font-weight:normal; -} - -.login_box_bot { - width:681px; - height:117px; - float:left; - background:url(../images/login_bot.png) no-repeat top left; - margin:0; - padding:0; -} - -.main_rightcontentarea { - width:555px; - height:auto; - float:left; - background:#FFF; - margin:30px 0 0 10px; - display:inline; - padding:0; -} - -.main_rightcontentarea h2 { - width:555px; - height:auto; - float:left; - color:#092e64; - font-size:20px; - font-weight:normal; - line-height:30px; - text-align:left; - margin:0; - padding:0; -} - -.main_rightcontentarea h3 { - width:555px; - height:auto; - float:left; - color:#092e64; - font-size:20px; - font-weight:normal; - line-height:30px; - text-align:left; - margin:20px 0 0 0; - padding:0; -} - -.main_rightcontentarea_banner { - width:522px; - height:114px; - float:left; - background:url(../images/banner.gif) no-repeat top left; - margin:30px 0 0 0; - padding:0; -} - -.main_regbulletbox { - width:555px; - height:auto; - float:left; - margin:0; - padding:0; - list-style:none; -} - - -.main_regbulletbox li{ - width:520px; - height:auto; - float:left; - margin:0; - padding:0; - list-style:none; - background:url(../images/orange_bullet.gif) no-repeat 0 4px; - color:#333; - font-size:13px; - font-weight:normal; - margin:10px 0 0 0; - padding:0 0 5px 15px; -} - -.registration_formpanel{ - width:375px; - height:auto; - float:left; - margin:0 0 0 13px; - display:inline; - padding:0; -} - -.registration_formpanel_left { - width:13px; - height:175px; - float:left; - background:url(../images/regbox_left.gif) no-repeat top left; - margin:0; - padding:0; -} - -.registration_formpanel_mid { - width:345px; - height:auto; - float:left; - margin:0; - padding:0; -} - -.registration_formpanel_midtop { - width:345px; - height:18px; - float:left; - background:url(../images/regbox_midtop.gif) repeat-x top left; - margin:0; - padding:0; -} - -.registration_formbox { - width:345px; - height:auto; - float:left; - background:#FFF url(../images/reg_formbg.gif) repeat-x top left; - border:1px solid #c7c7c7; - margin:0; - padding:0; -} - - -.registration_titlebox { - width:315px; - height:42px; - float:left; - background:url(../images/reg_titlebox.gif) no-repeat top left; - margin:11px 0 0 -1px; - padding:0; -} - -.registration_titlebox h2{ - width:auto; - height:auto; - float:left; - color:#FFF; - font-size:16px; - font-weight:normal; - text-align:left; - margin:10px 0 0 10px; - display:inline; - padding:0; -} - -.regwizard_container { - width:300px; - height:auto; - float:left; - margin:20px 0 0 20px; - display:inline; - padding:0; -} - -.regwizard_container h3 { - width:300px; - height:auto; - float:left; - color:#bdbdbd; - font-size:18px; - font-weight:bold; - text-align:left; - margin:0; - padding:0; -} - -.regwizard_formbox { - width:300px; - height:auto; - float:left; - margin:0; - padding:0 0 20px 0; - list-style:none; -} - -.regwizard_formbox p{ - width:auto; - height:auto; - float:left; - font-size:11px; - color:#333; - text-align:left; - margin:11px 0 0 10px; - padding:0; -} - - - -.regwizard_formbox li { - width:150px; - height:auto; - float:left; - margin:18px 0 0 0; - padding:0; - list-style:none; -} - -.regwizard_formbox label { - width:95%; - height:auto; - float:left; - color:#073668; - font-size:14px; - font-weight:normal; - text-align:left; - margin:0; - padding:0; -} - -.regwizard_formbox .text { - width:130px; - height:22px; - float:left; - background:#FFF; - border:1px solid #c3c3c3; - color:#333; - font-size:12px; - font-weight:normal; - text-align:left; - margin:7px 0 0 0; - padding:0; -} - - -.regwizard_formbox .select { - width:130px; - height:22px; - float:left; - background:#FFF; - border:1px solid #c3c3c3; - color:#333; - font-size:12px; - font-weight:normal; - text-align:left; - margin:7px 0 0 0; - padding:0; -} - -.regwizard_formbox .checkbox { - width:15px; - height:15px; - float:left; - background:#FFF; - border:1px solid #c3c3c3; - color:#333; - font-size:12px; - font-weight:normal; - text-align:left; - margin:7px 0 0 0; - padding:0; -} - -.reg_submitbox { - width:100%; - height:auto; - float:left; - margin:25px 0 0 0; - padding:0; -} - -.reg_submitbutton { - width:224px; - height:52px; - float:left; - text-align:center; - background:url(../images/submit_button.gif) no-repeat top left; - margin:0 0 0 35px; - display:inline; - padding:0; - border:none; -} - -.reg_submitbutton:hover { - background:url(../images/submit_button_hover.gif) no-repeat top left; - -} - -.registration_formpanel_right { - width:15px; - height:175px; - float:left; - background:url(../images/regbox_right.gif) no-repeat top left; - margin:0; - padding:0; -} - -#footer { - width:100%; - height:90px; - float:left; - background:#e4e4e4; - margin:0 0 0 0; - padding:0; -} - - -.footer_left { - width:750px; - height:90px; - float:left; - margin:0; - padding:0; -} - -.footer_left p{ - width:auto; - height:auto; - float:left; - font-size:11px; - font-weight:normal; - color:#999; - margin:30px 0 0 15px; - display:inline; - padding:0; -} - -.footer_right { - width:200px; - height:90px; - float:left; - margin:0; - padding:0; -} - -.poweredby { - width:98px; - height:32px; - float:right; - background:url(../images/pweredby.gif) no-repeat top left; - text-decoration:none; - margin:20px 20px 0 0; - display:inline; - padding:0; -} - -.poweredby:hover { - background:url(../images/pweredby.gif) no-repeat top left; -} - -.db_tabcontent { - width:920px; - height:auto; - float:left; - margin:0; - padding:0; -} -.db_gridcontainer { - width:920px; - height:auto; - float:left; - margin:40px 0 0 17px; - padding:0; - position:relative; - z-index:1; -} - -.db_gridcontainer_topbox { - width:920px; - height:30px; - float:left; - margin:0; - padding:0; -} - -.db_gridcontainer_topbox_left { - width:450px; - height:30px; - float:left; - margin:0; - padding:0; -} - -.db_gridcontainer_topbox_left h2{ - width:auto; - height:auto; - float:left; - color:#648bb3; - font-size:20px; - font-weight:normal; - background:url(../images/title_sidebar.gif) no-repeat top right; - text-align:left; - margin:2px 0 0 0; - padding:0 20px 0 0; -} - -.db_grid_searchbox { - width:175px; - height:18px; - float:left; - background:#FFF; - border:1px solid #d9d9d9; - margin:2px 0 0 20px; - display:inline; - padding:0; -} - -.db_grid_searchbox .text { - width:133px; - height:16px; - float:left; - background:#FFF; - border:1px solid #FFF; - margin:0 0 0 5px; - display:inline; - padding:0; -} - - -.db_grid_searchicon { - width:13px; - height:14px; - float:left; - background:url(../images/search_icon.gif) no-repeat top left; - margin:2px 0 0 3px; - display:inline; - padding:0; -} - -.db_grid_search_closeicon { - width:13px; - height:14px; - float:left; - background:url(../images/search_closeicon.gif) no-repeat top left; - margin:2px 0 0 3px; - display:inline; - padding:0; - text-decoration:none; -} - -.db_grid_search_closeicon:hover { - background:url(../images/search_closeicon_hover.gif) no-repeat top left; - text-decoration:none; -} - -.db_gridcontainer_refreshbox{ - width:auto; - height:20px; - float:left; - color:#648bb3; - font-size:20px; - font-weight:normal; - text-align:left; - margin:0 0 0 10px; - padding:0 0 0 5px; -} - -.db_gridcontainer_refreshbox a{ - width:auto; - height:aut; - float:left; - color:#2c8bbc; - font-size:12px; - font-weight:normal; - text-align:left; - margin:6px 0 0 0; - padding:0; - text-decoration:underline; -} - -.db_gridcontainer_refreshbox a:link, .db_gridcontainer_refreshbox a:visited{ - text-decoration:underline; -} - -.db_gridcontainer_refreshbox a:hover{ - text-decoration:none; -} - - -.db_refreshbutton { - width:20px; - height:18px; - float:left; - background:url(../images/refresh_button.gif) no-repeat top left; - text-decoration:none; - margin:2px 0 0 0; - padding:0; -} - -.db_refreshbutton:hover { - background:url(../images/refresh_button_hover.gif) no-repeat top left; - -} - -.db_gridcontainer_topbox_right { - width:450px; - height:27px; - float:right; - margin:0; - padding:0; -} - -.db_grid_tabbox { - width:auto; - height:30px; - float:right; - margin:0; - padding:0; -} - -.db_grid_tabs { - width:100px; - height:23px; - float:left; - text-align:center; - font-size:11px; - font-weight:normal; - margin:0; - padding:7px 0 0 0; - text-decoration:none; -} - -.db_grid_tabs.on{ - background:#a4c5e7 url(../images/grid_tabbg.gif) repeat-x top left; - color:#FFF; - border:1px solid #CCC; - border-bottom:none; - font-weight:bold; -} - -.db_grid_tabs.off{ - background:none; - color:#CCC; - text-decoration:none; - cursor:pointer; - cursor:hand; -} - -.db_grid_tabs.off:hover{ - background:none; - color:#333; - text-decoration:none; -} - - -.db_gridbox { - width:918px; - height:auto; - float:left; - background:#FFF; - border:1px solid #CCC; - border-top:none; - margin:0; - padding:0; - overflow:hidden; -} - -.db_maingrid { - width:918px; - height:575px; - float:left; - margin:0; - padding:0; - overflow-x:hidden; - overflow-y:scoll; - overflow-y:auto; -} - -.db_gridrows { - width:100%; - height:auto; - float:left; - background:#FFF url(../images/db_gridrowbg.gif) repeat-x bottom left; - margin:0; - padding:0; - position:relative; -} - -.db_gridrows.header { - background:url(../images/db_gridheaderbg.gif) repeat-x top left; - height:31px; -} - - -.db_gridcolumns{ - width:auto; - height:auto; - float:left; - margin:0; - padding:0; - overflow:hidden; -} - -.db_gridcolumns.header { - height:31px; -} - -.db_gridcelltitles { - width:auto; - height:auto; - float:left; - font-size:11px; - font-weight:normal; - margin:15px 0 0 8px; - display:inline; - padding:0 0 15px 0; -} - -.db_gridcelltitles.green{ - color:#546c00; - font-weight:bold; -} - -.db_gridcelltitles.red{ - color:#c50000; - font-weight:bold; -} - -.db_gridcelltitles.gray{ - color:#666; - font-weight:bold; - -} - -.db_gridcelltitles.header{ - color:#333; - font-weight:bold; - margin:9px 0 0 8px; - padding:0; -} - -.db_statistics_icon { - width:21px; - height:21px; - float:left; - background:url(../images/statistics_icon.gif) no-repeat top left; - margin:10px 0 0 8px; - display:inline; - padding:0; -} - -.db_statistics_icon:hover { - background:url(../images/statistics_icon_hover.gif) no-repeat top left; -} - - - -.db_delete_icon { - width:21px; - height:21px; - float:left; - background:url(../images/delete_icon.gif) no-repeat top left; - margin:10px 0 0 8px; - display:inline; - padding:0; -} - -.db_delete_icon:hover { - background:url(../images/delete_icon_hover.gif) no-repeat top left; -} - -.db_grid_navigationpanel { - width:100%; - height:25px; - float:left; - background:url(../images/grid_navbg.gif) repeat-x top left; - margin:0; - padding:0; -} - -.db_gridb_paginationbox { - width:auto; - height:auto; - float:left; - margin:7px 0 0 20px; - display:inline; - padding:0; -} - -.db_gridb_paginationbox p{ - width:auto; - height:auto; - float:left; - color:#999; - font-size:11px; - font-weight:normal; - margin: 0 0; - padding:0; -} - -.db_gridb_paginationbox span{ - width:auto; - height:auto; - color:#999; - font-size:11px; - font-weight:bold; - margin: 0 0; - padding:0; -} - -.db_gridb_navbox { - width:auto; - height:auto; - float:right; - margin:7px 20px 0 0; - padding:0; -} - - -.db_gridmsgbox { - width:100%; - height:auto; - float:left; - background:#fff9d3 url(../images/stats_rowodd.gif) repeat-x bottom left; - border-bottom:1px solid #CCC; - margin:0; - padding:0; -} - -.db_gridmsgbox_content { - width:750px; - height:auto; - float:left; - margin:0 0 0 10px; - display:inline; - padding:0 0 10px 0; -} - -.db_gridmsgbox_content p { - width:auto; - height:auto; - float:left; - color:#333; - font-size:11px; - font-weight:bold; - text-align:left; - margin:10px 0 0 0; - padding:0; -} - -.db_gridmsg_button { - width:84px; - height:20px; - float:left; - background:url(../images/gridmsg_button.png) no-repeat top left; - color:#FFF; - text-align:center; - margin:8px 0 0 10px; - display:inline; - text-decoration:none; - padding:4px 0 5px 0; -} - -.db_gridmsg_button:hover { - background:url(../images/gridmsg_button_hover.png) no-repeat top left; - text-decoration:none; - -} - - -.db_gridb_navbox a:link, .db_gridb_navbox a:visited { - width:auto; - height:auto; - float:left; - color:#333; - font-size:11px; - font-weight:normal; - margin:0 0 0 25px; - display:inline; - padding:0; - text-decoration:none; -} - -.db_gridb_navbox a:hover { - width:auto; - height:auto; - float:left; - color:#333; - font-size:11px; - font-weight:normal; - margin:0 0 0 25px; - display:inline; - padding:0; - text-decoration:underline; -} - -.dbinstruction_contentarea { - width:890px; - height:auto; - float:left; - margin:0 0 0 15px; - display:inline; - padding:0; -} - - -.dbinstruction_submenubox { - width:880px; - height:auto; - float:left; - background:#FFF url(../images/db_gridrowbg.gif) repeat-x left bottom; - margin:0; - padding:0; -} - -.dbinstruction_submenubox_content { - width:800px; - height:auto; - float:left; - margin:10px 0 0 10px; - display:inline; - padding:0 0 15px 0; - list-style:none; -} - -.dbinstruction_submenubox_content li { - width:600px; - height:auto; - float:left; - margin:15px 0 0 10px; - list-style:none; - font-size:15px; - background:url(../images/menu_icon.png) no-repeat top left; - padding:1px 0 0 35px; -} - -.dbinstruction_submenubox_content a { - color:#2c8bbc; - text-align:left; - font-size:15px; - font-weight:normal; - text-decoration:none; -} - -.dbinstruction_submenubox_content a:link,.dbinstruction_submenubox_content a:visited { - text-decoration:none; -} - -.dbinstruction_submenubox_content a:hover { - text-decoration:underline; -} - - -.dbinstruction_contentarea p { - width:880px; - height:auto; - float:left; - color:#333; - font-size:12px; - font-weight:normal; - line-height:16px; - margin:15px 0 0 0; - padding:0; -} - - -.dbinstruction_contentarea h3 { - width:880px; - height:auto; - float:left; - color:#f19d00; - font-size:18px; - font-weight:normal; - margin:30px 0 0 0; - padding:0; -} - -.dbinstruction_contentarea h4 { - width:880px; - height:auto; - float:left; - color:#666; - font-size:13px; - font-weight:bold; - margin:20px 0 0 0; - padding:0; -} - -.db_downlaodbox { - width:880px; - height:78px; - float:left; - background:url(../images/instructiondownload_bg.gif) no-repeat top left; - margin:10px 0 0 0; - padding:0; -} - -.db_downlaodbox p{ - width:400px; - height:auto; - float:left; - color:#666; - font-size:14px; - font-weight:normal; - text-align:left; - margin:20px 0 0 30px; - display:inline; - padding:0; -} - -.db_instructiondownlaodbutton { - width:133px; - height:21px; - float:right; - background:url(../images/download_button.png) no-repeat top left; - margin:15px 50px 0 0; - color:#FFF; - font-size:13px; - text-align:center; - text-decoration:none; - padding:6px 0 0 15px; -} - -.db_instructiondownlaodbutton:hover { - background:url(../images/download_button_hover.png) no-repeat top left; - text-decoration:none; - -} - -.dbinstruction_bulletbox { - width:880px; - height:auto; - float:left; - color:#333; - font-size:11px; - font-weight:normal; - list-style:none; - margin:0; - padding:0; -} - -.dbinstruction_bulletbox_codebox { - width:820px; - height:auto; - float:left; - background:#f1f1f1; - color:#333; - font-size:11px; - font-weight:normal; - list-style:none; - margin:7px 0 0 0; - padding:5px 0 5px 10px; -} - -.dbinstruction_bulletbox li{ - width:800px; - height:auto; - float:left; - margin:0; - padding:0; - list-style:none; - background:url(../images/orange_bullet.gif) no-repeat 0 4px; - color:#333; - font-size:12px; - font-weight:normal; - margin:10px 0 0 0; - padding:0 0 5px 15px; -} - - -.overlay_black{ - display: block; - position: absolute; - top: 0%; - left: 0%; - width: 100%; - min-height: 1000px; - height: 100%; - background-color: black; - z-index:5; - -moz-opacity: 0.4; - opacity:.40; - filter: alpha(opacity=40); - overflow:hidden; -} - -.overlay_dialogbox { - width:485px; - height:auto; - float:left; - position:absolute; - background:#FFF; - border:1px solid #666; - margin:0; - padding:0; - z-index:10; - top:25%; - left:36%; -} - -.overlay_dialogbox_top { - width:525px; - height:29px; - float:left; - background:url(../images/overlaybox_top.png) no-repeat top left; - margin:0; - padding:0; - overflow:hidden; -} - -.overlay_dialogbox_closeicon { - width:33px; - height:32px; - float:right; - background:url(../images/overlaybox_closeicon.png) no-repeat top left; - margin:-2px 0 0 0; - padding:0; - text-decoration:none; -} - - -.overlay_dialogbox_closeicon:hover { - background:url(../images/overlaybox_closeicon_hover.png) no-repeat top left; -} - -.overlay_dialogbox_mid { - width:525px; - height:auto; - float:left; - background:url(../images/overlaybox_mid.png) repeat-y top left; - margin:0; - padding:0; -} - -.overlay_dialogbox_contentarea { - width:450px; - height:auto; - float:left; - margin:15px 0 0 16px; - display:inline; - padding:0 0 15px 0; -} - -.overlay_dialogbox_titlearea { - width:450px; - height:25px; - float:left; - background:url(../images/db_gridheaderbg.gif) repeat-x top left; - border:1px solid #CCC; - margin:0; - padding:0; -} - -.overlay_dialogbox_titlearea h2{ - width:400px; - height:auto; - float:left; - color:#FFF; - font-size:14px; - font-weight:normal; - text-align:left; - margin:5px 0 0 10px; - display:inline; - padding:0; -} - -.overlay_dialogbox_content { - width:450px; - height:auto; - float:left; - margin:15px 0 0 0; - padding:0; -} - -.overlay_dialogbox_content p { - width:450px; - height:auto; - float:left; - margin:10px 0 0 0; - color:#333; - font-size:11px; - font-weight:normal; - padding:0; -} - - -.db_stats_gridbox { - width:450px; - height:auto; - float:left; - margin:0; - padding:0; - border:1px solid #CCC; -} - -.db_stats_gridrow { - width:450px; - height:auto; - float:left; - background:url(../images/stats_row.gif) repeat-x bottom left; - margin:0; - padding:0; - border-bottom:1px solid #CCC; -} - -.db_stats_gridcolumns { - width:auto; - height:auto; - float:left; - margin:0; - padding:0; -} - -.db_stats_gridcelltitles { - width:auto; - height:auto; - float:left; - font-size:11px; - font-weight:normal; - margin:8px 0 0 8px; - display:inline; - padding:0 0 8px 0; -} - -.overlay_dialogbox_confirmationbox { - width:450px; - height:auto; - float:left; - border-top:1px solid #CCC; - margin:20px 0 0 0; - padding:0; -} - -.overlay_dialogbox_confirmationbuttonbox { - width:auto; - height:aut; - float:right; - margin:8px 0 0 0; - padding:0; -} - -.overlay_dialogbox_confirmationbuttonbox a{ - width:auto; - height:aut; - float:left; - color:#2c8bbc; - font-size:12px; - font-weight:normal; - text-align:left; - margin:8px 0 0 0; - padding:0; - text-decoration:none; -} - -.overlay_dialogbox_confirmationbuttonbox a:link, .overlay_dialogbox_confirmationbuttonbox a:visited{ - text-decoration:none; -} - -.overlay_dialogbox_confirmationbuttonbox a:hover{ - text-decoration:underline; -} - - -.overlay_dialog_button { - width:98px; - height:19px; - float:left; - background:url(../images/dialogbox_button.gif) no-repeat top left; - border:none; - color:#FFF; - text-align:center; - font-size:11px; - font-weight:normal; - margin:0 0 0 15px; - display:inline; - padding:7px 0 0 0; - cursor:button; - cursor:pointer; -} - -.overlay_dialog_button:hover { - background:url(../images/dialogbox_button_hover.gif) no-repeat top left; -} - - - - -.overlay_dialogbox_bot { - width:525px; - height:29px; - float:left; - background:url(../images/overlaybox_bot.png) no-repeat top left; - margin:0; - padding:0; -} - - - - diff --git a/ui/cloudkit/images/.DS_Store b/ui/cloudkit/images/.DS_Store deleted file mode 100644 index cdba7b3090c..00000000000 Binary files a/ui/cloudkit/images/.DS_Store and /dev/null differ diff --git a/ui/cloudkit/images/banner.gif b/ui/cloudkit/images/banner.gif deleted file mode 100644 index d5ddaef6f99..00000000000 Binary files a/ui/cloudkit/images/banner.gif and /dev/null differ diff --git a/ui/cloudkit/images/db_gridheaderbg.gif b/ui/cloudkit/images/db_gridheaderbg.gif deleted file mode 100644 index 6f023cedc0f..00000000000 Binary files a/ui/cloudkit/images/db_gridheaderbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/db_gridrowbg.gif b/ui/cloudkit/images/db_gridrowbg.gif deleted file mode 100644 index 417de28bfce..00000000000 Binary files a/ui/cloudkit/images/db_gridrowbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/delete_icon.gif b/ui/cloudkit/images/delete_icon.gif deleted file mode 100644 index 085c9693c85..00000000000 Binary files a/ui/cloudkit/images/delete_icon.gif and /dev/null differ diff --git a/ui/cloudkit/images/delete_icon_hover.gif b/ui/cloudkit/images/delete_icon_hover.gif deleted file mode 100644 index e9674e7b0d4..00000000000 Binary files a/ui/cloudkit/images/delete_icon_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/dialogbox_button.gif b/ui/cloudkit/images/dialogbox_button.gif deleted file mode 100644 index f5938848933..00000000000 Binary files a/ui/cloudkit/images/dialogbox_button.gif and /dev/null differ diff --git a/ui/cloudkit/images/dialogbox_button_hover.gif b/ui/cloudkit/images/dialogbox_button_hover.gif deleted file mode 100644 index 326e8aca39f..00000000000 Binary files a/ui/cloudkit/images/dialogbox_button_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/download_button.png b/ui/cloudkit/images/download_button.png deleted file mode 100644 index ac54972dac4..00000000000 Binary files a/ui/cloudkit/images/download_button.png and /dev/null differ diff --git a/ui/cloudkit/images/download_button_hover.png b/ui/cloudkit/images/download_button_hover.png deleted file mode 100644 index 460e74df40a..00000000000 Binary files a/ui/cloudkit/images/download_button_hover.png and /dev/null differ diff --git a/ui/cloudkit/images/grid_navbg.gif b/ui/cloudkit/images/grid_navbg.gif deleted file mode 100644 index f57ed8b56ff..00000000000 Binary files a/ui/cloudkit/images/grid_navbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/grid_tabbg.gif b/ui/cloudkit/images/grid_tabbg.gif deleted file mode 100644 index d74246f3655..00000000000 Binary files a/ui/cloudkit/images/grid_tabbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/gridmsg_button.png b/ui/cloudkit/images/gridmsg_button.png deleted file mode 100644 index 2d498777785..00000000000 Binary files a/ui/cloudkit/images/gridmsg_button.png and /dev/null differ diff --git a/ui/cloudkit/images/gridmsg_button_hover.png b/ui/cloudkit/images/gridmsg_button_hover.png deleted file mode 100644 index e49624a07a4..00000000000 Binary files a/ui/cloudkit/images/gridmsg_button_hover.png and /dev/null differ diff --git a/ui/cloudkit/images/header_bg.gif b/ui/cloudkit/images/header_bg.gif deleted file mode 100644 index 67be3be3782..00000000000 Binary files a/ui/cloudkit/images/header_bg.gif and /dev/null differ diff --git a/ui/cloudkit/images/header_bot.gif b/ui/cloudkit/images/header_bot.gif deleted file mode 100644 index bbc3782f069..00000000000 Binary files a/ui/cloudkit/images/header_bot.gif and /dev/null differ diff --git a/ui/cloudkit/images/header_cloudbg.gif b/ui/cloudkit/images/header_cloudbg.gif deleted file mode 100644 index 33ace16a8aa..00000000000 Binary files a/ui/cloudkit/images/header_cloudbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/instructiondownload_bg.gif b/ui/cloudkit/images/instructiondownload_bg.gif deleted file mode 100644 index 8f3d4f181d1..00000000000 Binary files a/ui/cloudkit/images/instructiondownload_bg.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_bot.gif b/ui/cloudkit/images/login_bot.gif deleted file mode 100644 index 1607dbf4af7..00000000000 Binary files a/ui/cloudkit/images/login_bot.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_bot.png b/ui/cloudkit/images/login_bot.png deleted file mode 100644 index 51bdbc3b129..00000000000 Binary files a/ui/cloudkit/images/login_bot.png and /dev/null differ diff --git a/ui/cloudkit/images/login_button.gif b/ui/cloudkit/images/login_button.gif deleted file mode 100644 index f80453671e3..00000000000 Binary files a/ui/cloudkit/images/login_button.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_button.png b/ui/cloudkit/images/login_button.png deleted file mode 100644 index 3d626c20ec5..00000000000 Binary files a/ui/cloudkit/images/login_button.png and /dev/null differ diff --git a/ui/cloudkit/images/login_button_hover.gif b/ui/cloudkit/images/login_button_hover.gif deleted file mode 100644 index 97f631c1fd3..00000000000 Binary files a/ui/cloudkit/images/login_button_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_button_hover.png b/ui/cloudkit/images/login_button_hover.png deleted file mode 100644 index 65ee97ee6f7..00000000000 Binary files a/ui/cloudkit/images/login_button_hover.png and /dev/null differ diff --git a/ui/cloudkit/images/login_logo.gif b/ui/cloudkit/images/login_logo.gif deleted file mode 100644 index 1b1895f0562..00000000000 Binary files a/ui/cloudkit/images/login_logo.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_mid.gif b/ui/cloudkit/images/login_mid.gif deleted file mode 100644 index 530860c8b80..00000000000 Binary files a/ui/cloudkit/images/login_mid.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_mid.png b/ui/cloudkit/images/login_mid.png deleted file mode 100644 index e926624a010..00000000000 Binary files a/ui/cloudkit/images/login_mid.png and /dev/null differ diff --git a/ui/cloudkit/images/login_top.gif b/ui/cloudkit/images/login_top.gif deleted file mode 100644 index c9d577c3597..00000000000 Binary files a/ui/cloudkit/images/login_top.gif and /dev/null differ diff --git a/ui/cloudkit/images/login_top.png b/ui/cloudkit/images/login_top.png deleted file mode 100644 index ebabbb36ab6..00000000000 Binary files a/ui/cloudkit/images/login_top.png and /dev/null differ diff --git a/ui/cloudkit/images/logo.gif b/ui/cloudkit/images/logo.gif deleted file mode 100644 index 8caea42afeb..00000000000 Binary files a/ui/cloudkit/images/logo.gif and /dev/null differ diff --git a/ui/cloudkit/images/main_bg.gif b/ui/cloudkit/images/main_bg.gif deleted file mode 100644 index e90090949df..00000000000 Binary files a/ui/cloudkit/images/main_bg.gif and /dev/null differ diff --git a/ui/cloudkit/images/main_contentbg.gif b/ui/cloudkit/images/main_contentbg.gif deleted file mode 100644 index 068ff0c8947..00000000000 Binary files a/ui/cloudkit/images/main_contentbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/menu_icon.png b/ui/cloudkit/images/menu_icon.png deleted file mode 100644 index aab668109af..00000000000 Binary files a/ui/cloudkit/images/menu_icon.png and /dev/null differ diff --git a/ui/cloudkit/images/orange_bullet.gif b/ui/cloudkit/images/orange_bullet.gif deleted file mode 100644 index f93679e87ba..00000000000 Binary files a/ui/cloudkit/images/orange_bullet.gif and /dev/null differ diff --git a/ui/cloudkit/images/overlaybox_bot.png b/ui/cloudkit/images/overlaybox_bot.png deleted file mode 100644 index 1293d9a5c31..00000000000 Binary files a/ui/cloudkit/images/overlaybox_bot.png and /dev/null differ diff --git a/ui/cloudkit/images/overlaybox_closeicon.png b/ui/cloudkit/images/overlaybox_closeicon.png deleted file mode 100644 index 7df01472f05..00000000000 Binary files a/ui/cloudkit/images/overlaybox_closeicon.png and /dev/null differ diff --git a/ui/cloudkit/images/overlaybox_closeicon_hover.png b/ui/cloudkit/images/overlaybox_closeicon_hover.png deleted file mode 100644 index 8a853a1244f..00000000000 Binary files a/ui/cloudkit/images/overlaybox_closeicon_hover.png and /dev/null differ diff --git a/ui/cloudkit/images/overlaybox_mid.png b/ui/cloudkit/images/overlaybox_mid.png deleted file mode 100644 index 7eb3ade6186..00000000000 Binary files a/ui/cloudkit/images/overlaybox_mid.png and /dev/null differ diff --git a/ui/cloudkit/images/overlaybox_top.png b/ui/cloudkit/images/overlaybox_top.png deleted file mode 100644 index 8c72498c132..00000000000 Binary files a/ui/cloudkit/images/overlaybox_top.png and /dev/null differ diff --git a/ui/cloudkit/images/pweredby.gif b/ui/cloudkit/images/pweredby.gif deleted file mode 100644 index 08458769867..00000000000 Binary files a/ui/cloudkit/images/pweredby.gif and /dev/null differ diff --git a/ui/cloudkit/images/refresh_button.gif b/ui/cloudkit/images/refresh_button.gif deleted file mode 100644 index 2a400a23cdb..00000000000 Binary files a/ui/cloudkit/images/refresh_button.gif and /dev/null differ diff --git a/ui/cloudkit/images/refresh_button_hover.gif b/ui/cloudkit/images/refresh_button_hover.gif deleted file mode 100644 index 40608b0ddaa..00000000000 Binary files a/ui/cloudkit/images/refresh_button_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/reg_formbg.gif b/ui/cloudkit/images/reg_formbg.gif deleted file mode 100644 index 69c99b722ea..00000000000 Binary files a/ui/cloudkit/images/reg_formbg.gif and /dev/null differ diff --git a/ui/cloudkit/images/reg_titlebox.gif b/ui/cloudkit/images/reg_titlebox.gif deleted file mode 100644 index 396668958df..00000000000 Binary files a/ui/cloudkit/images/reg_titlebox.gif and /dev/null differ diff --git a/ui/cloudkit/images/regbox_left.gif b/ui/cloudkit/images/regbox_left.gif deleted file mode 100644 index 8502db1f915..00000000000 Binary files a/ui/cloudkit/images/regbox_left.gif and /dev/null differ diff --git a/ui/cloudkit/images/regbox_midtop.gif b/ui/cloudkit/images/regbox_midtop.gif deleted file mode 100644 index 6bbb41dfa40..00000000000 Binary files a/ui/cloudkit/images/regbox_midtop.gif and /dev/null differ diff --git a/ui/cloudkit/images/regbox_right.gif b/ui/cloudkit/images/regbox_right.gif deleted file mode 100644 index 76a6741152f..00000000000 Binary files a/ui/cloudkit/images/regbox_right.gif and /dev/null differ diff --git a/ui/cloudkit/images/search_closeicon.gif b/ui/cloudkit/images/search_closeicon.gif deleted file mode 100644 index 53314862177..00000000000 Binary files a/ui/cloudkit/images/search_closeicon.gif and /dev/null differ diff --git a/ui/cloudkit/images/search_closeicon_hover.gif b/ui/cloudkit/images/search_closeicon_hover.gif deleted file mode 100644 index b76df834d1c..00000000000 Binary files a/ui/cloudkit/images/search_closeicon_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/search_icon.gif b/ui/cloudkit/images/search_icon.gif deleted file mode 100644 index f8513c0b26a..00000000000 Binary files a/ui/cloudkit/images/search_icon.gif and /dev/null differ diff --git a/ui/cloudkit/images/statistics_icon.gif b/ui/cloudkit/images/statistics_icon.gif deleted file mode 100644 index 1fded07b312..00000000000 Binary files a/ui/cloudkit/images/statistics_icon.gif and /dev/null differ diff --git a/ui/cloudkit/images/statistics_icon_hover.gif b/ui/cloudkit/images/statistics_icon_hover.gif deleted file mode 100644 index 716176f88f2..00000000000 Binary files a/ui/cloudkit/images/statistics_icon_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/statiticsarrow.png b/ui/cloudkit/images/statiticsarrow.png deleted file mode 100644 index baa2aa2883b..00000000000 Binary files a/ui/cloudkit/images/statiticsarrow.png and /dev/null differ diff --git a/ui/cloudkit/images/stats_row.gif b/ui/cloudkit/images/stats_row.gif deleted file mode 100644 index 46d7e1d3e23..00000000000 Binary files a/ui/cloudkit/images/stats_row.gif and /dev/null differ diff --git a/ui/cloudkit/images/stats_roweven.gif b/ui/cloudkit/images/stats_roweven.gif deleted file mode 100644 index 68cce5d0c82..00000000000 Binary files a/ui/cloudkit/images/stats_roweven.gif and /dev/null differ diff --git a/ui/cloudkit/images/stats_rowodd.gif b/ui/cloudkit/images/stats_rowodd.gif deleted file mode 100644 index 6564c58436f..00000000000 Binary files a/ui/cloudkit/images/stats_rowodd.gif and /dev/null differ diff --git a/ui/cloudkit/images/submit_button.gif b/ui/cloudkit/images/submit_button.gif deleted file mode 100644 index 8c9cecf8263..00000000000 Binary files a/ui/cloudkit/images/submit_button.gif and /dev/null differ diff --git a/ui/cloudkit/images/submit_button_hover.gif b/ui/cloudkit/images/submit_button_hover.gif deleted file mode 100644 index 7320f1f9985..00000000000 Binary files a/ui/cloudkit/images/submit_button_hover.gif and /dev/null differ diff --git a/ui/cloudkit/images/title_sidebar.gif b/ui/cloudkit/images/title_sidebar.gif deleted file mode 100644 index 7f1055f1b8b..00000000000 Binary files a/ui/cloudkit/images/title_sidebar.gif and /dev/null differ diff --git a/ui/cloudkit/login.html b/ui/cloudkit/login.html deleted file mode 100644 index 6de39576ceb..00000000000 --- a/ui/cloudkit/login.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Untitled Document - - - - -
- -
- -
- -
- - diff --git a/ui/cloudkit/login.jsp b/ui/cloudkit/login.jsp deleted file mode 100644 index 46268deedee..00000000000 --- a/ui/cloudkit/login.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<% long now = System.currentTimeMillis(); %> - - - - - - - - - - - - - - - - - - - - - - - - - - - myCloud - Login - - - - - - diff --git a/ui/cloudkit/scripts/cloudkit.docs.js b/ui/cloudkit/scripts/cloudkit.docs.js deleted file mode 100644 index 5532828fcde..00000000000 --- a/ui/cloudkit/scripts/cloudkit.docs.js +++ /dev/null @@ -1,19 +0,0 @@ - /** - * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. - * - * This software is licensed under the GNU General Public License v3 or later. - * - * It is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ -$(document).ready(function() { -}); diff --git a/ui/cloudkit/scripts/cloudkit.hosts.js b/ui/cloudkit/scripts/cloudkit.hosts.js deleted file mode 100644 index 25338f1b019..00000000000 --- a/ui/cloudkit/scripts/cloudkit.hosts.js +++ /dev/null @@ -1,287 +0,0 @@ - /** - * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. - * - * This software is licensed under the GNU General Public License v3 or later. - * - * It is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -function convertBytes(bytes) { - if (bytes < 1024 * 1024) { - return (bytes / 1024).toFixed(2) + " KB"; - } else if (bytes < 1024 * 1024 * 1024) { - return (bytes / 1024 / 1024).toFixed(2) + " MB"; - } else if (bytes < 1024 * 1024 * 1024 * 1024) { - return (bytes / 1024 / 1024 / 1024).toFixed(2) + " GB"; - } else { - return (bytes / 1024 / 1024 / 1024 / 1024).toFixed(2) + " TB"; - } -} - -function convertHz(hz) { - if (hz == null) - return ""; - - if (hz < 1000) { - return hz + " MHZ"; - } else { - return (hz / 1000).toFixed(2) + " GHZ"; - } -} - -$(document).ready(function() { - if (g_loginResponse == null) { - logout(); - return; - } - - // setup dialog - var dialog = $("#dialog_overlay"); - dialog.find("#dialog_cancel, #dialog_ok").bind("click", function(event) { - dialog.hide(); - }); - dialog.find("#dialog_confirm").bind("click", function(event) { - var id = $(this).data("hostid"); - $.ajax({ - data: createURL("command=deleteHost&id="+id), - success: function(json) { - $("#host_"+id).slideUp("slow", function() { - $(this).remove(); - }); - } - }); - dialog.hide(); - }); - - // setup host template and container - var hostTemplate = $("#host_template"); - var hostContainer = $("#host_container"); - - hostContainer.bind("click", function(event) { - var $container = $(this); - var target = $(event.target); - var targetId = target.attr("id"); - - switch (targetId) { - case "host_details" : - var details = dialog.find("#dialog_host_details").show(); - dialog.find("#dialog_delete_host").hide(); - var jsonObj = target.data("jsonObj"); - - details.find("#host_id").text(jsonObj.id); - details.find("#host_cpu_total").text((jsonObj.cpuspeed == null)? "": (jsonObj.cpunumber + "x" + convertHz(jsonObj.cpuspeed))); - details.find("#host_cpu_allocated").text((jsonObj.cpuallocated == null)? "": jsonObj.cpuallocated); - details.find("#host_cpu_used").text((jsonObj.cpuused == null)? "": jsonObj.cpuused); - details.find("#host_mem_total").text((jsonObj.memorytotal == null)? "": convertBytes(jsonObj.memorytotal)); - details.find("#host_mem_allocated").text((jsonObj.memoryallocated == null)? "": convertBytes(jsonObj.memoryallocated)); - details.find("#host_mem_used").text((jsonObj.memeoryused == null)? "": convertBytes(jsonObj.memeoryused)); - details.find("#host_net_read").text((jsonObj.networkkbsread == null)? "": convertBytes(jsonObj.networkkbsread * 1024)); - details.find("#host_net_sent").text((jsonObj.networkkbswrite == null)? "": convertBytes(jsonObj.networkkbswrite *1024)); - - if (jsonObj.created != null) { - var created = new Date(); - created.setISO8601(jsonObj.created); - details.find("#host_added").text(created.format("m/d/Y H:i:s")); - } - else { - details.find("#host_added").text(""); - } - dialog.show(); - break; - case "host_delete" : - dialog.find("#dialog_host_details").hide(); - dialog.find("#dialog_delete_host").show(); - var jsonObj = target.data("jsonObj"); - dialog.find("#hostname").text(jsonObj.name); - dialog.find("#dialog_confirm").data("hostid", jsonObj.id); - dialog.show(); - break; - } - }); - - - var page = 1; - var midmenuItemCount = 13; - function listHosts() { - if(page > 1) - $("#prev_page_button").show(); - else - $("#prev_page_button").hide(); - - var cmdString = "command=listHosts&type=Routing"+"&pagesize="+midmenuItemCount+"&page="+page; - var searchInput = $("#search_panel").find("#search_input").val(); - if (searchInput != null && searchInput.length > 0) - cmdString += ("&keyword="+searchInput); - - $.ajax({ - data: createURL(cmdString), - success: function(json) { - hostContainer.empty(); - $("#page_number").text(page); - var hosts = json.listhostsresponse.host; - if (hosts != null && hosts.length >0) { - if(hosts.length >= midmenuItemCount) - $("#next_page_button").show(); - else - $("#next_page_button").hide(); - - for (var i = 0; i < hosts.length; i++) { - var host = hosts[i]; - var template = hostTemplate.clone(true).attr("id", "host_"+host.id); - template.find("#host_details").data("jsonObj", host); - template.find("#host_delete").data("jsonObj", host); - template.find("#hostname").text(host.name); - template.find("#ip").text(host.ipaddress); - template.find("#version").text(host.version); - - if (host.disconnected != null) { - var disconnected = new Date(); - disconnected.setISO8601(host.disconnected); - template.find("#disconnected").text(disconnected.format("m/d/Y H:i:s")); - } - var state = host.state; - template.find("#state").text(state); - if (state == 'Up') { - template.find("#state").removeClass("red").addClass("green"); - } - else { - template.find("#state").removeClass("green").addClass("red"); - } - hostContainer.append(template.show()); - } - } - else { - $("#next_page_button").hide(); - } - } - }); - } - - - // *** Setup tab clicks (begin) *** - $("#tab_hosts").bind("click", function(event) { - $(this).removeClass("off").addClass("on"); - $("#tab_docs").removeClass("on").addClass("off"); - $("#tab_docs_content").hide(); - $("#tab_hosts_content").show(); - $("#search_input").val(""); - $("#search_panel").show(); - page = 1; //reset pagination to the first page - listHosts(); - return false; - }); - - $("#tab_docs").bind("click", function(event) { - $(this).removeClass("off").addClass("on"); - $("#tab_hosts").removeClass("on").addClass("off"); - $("#tab_hosts_content").hide(); - $("#tab_docs_content").show(); - $("#search_panel").hide(); - - $.ajax({ - data: createURL("command=listZones&domainid="+g_loginResponse.domainid), // Setup zone key - success: function(json) { - var zones = json.listzonesresponse.zone; - if (zones != null && zones.length >0) { - $("#zone_token").text(zones[0].zonetoken); - } - } - }); - - return false; - }); - // *** Setup tab clicks (end) *** - - // *** Pagination (begin) *** - $("#tab_hosts_content").find("#prev_page_button").bind("click", function(event){ - page-- - listHosts(); - return false; - }); - - $("#tab_hosts_content").find("#next_page_button").bind("click", function(event){ - page++ - listHosts(); - return false; - }); - // *** Pagination (begin) *** - - // *** Search (begin) *** - $("#search_input").bind("keypress", function(event) { - if(event.keyCode == keycode_Enter) { - page = 1; //reset pagination to the first page - listHosts(); - } - else { - $("#clear_search_button").show(); - } - return true; - }); - $("#clear_search_button").bind("click", function(event){ - $("#search_input").val(""); - page = 1; //reset pagination to the first page - listHosts(); - $(this).hide(); - return false; - }); - // *** Search (end) *** - - // *** Refresh button (begin) *** - $("#refresh_button").bind("click", function(event){ - listHosts(); - return false; - }); - // *** Refresh button (end) *** - - var oneHostUp = false; - var atLeastOneHost = false; - $.ajax({ - data: createURL("command=listHosts&type=Routing"), - success: function(json) { - hostContainer.empty(); - var hosts = json.listhostsresponse.host; - if (hosts != null && hosts.length >0) { - atLeastOneHost = true; - for (var i = 0; i < hosts.length; i++) { - var host = hosts[i]; - if (host.state == 'Up') { - oneHostUp = true; - } - } - } - } - }); - - if (g_loginResponse.registered == "false") { - if (!atLeastOneHost) { - $("#tab_docs").click(); - } - else if (oneHostUp) { - $("#registration_complete_link").attr("href","https://my.rightscale.com/cloud_registrations/my_cloud/cloud_stack/new?callback_url="+encodeURIComponent("http://216.38.159.3:8080/client/cloudkit/complete?token="+g_loginResponse.registrationtoken)); - $("#registration_complete_container").show(); - $("#tab_hosts").click(); - } - else { - $("#tab_hosts").click(); - } - } - else { - $("#registration_complete_container").hide(); - $("#tab_hosts").click(); - } - - $("#registration_complete_doc_link").attr("href","https://my.rightscale.com/cloud_registrations/my_cloud/cloud_stack/new?callback_url="+encodeURIComponent("http://216.38.159.3:8080/client/cloudkit/complete?token="+g_loginResponse.registrationtoken)); - $("#main").show(); -}); - - diff --git a/ui/cloudkit/scripts/cloudkit.js b/ui/cloudkit/scripts/cloudkit.js deleted file mode 100644 index df4895c68f8..00000000000 --- a/ui/cloudkit/scripts/cloudkit.js +++ /dev/null @@ -1,52 +0,0 @@ - /** - * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. - * - * This software is licensed under the GNU General Public License v3 or later. - * - * It is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ -var g_loginResponse = null; -$.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); if (!results) { return 0; } return results[1] || 0;} - -function logout() { - window.location='/client/cloudkit/login.jsp'; - g_loginResponse = null; - return true; -} - -$(document).ready(function() { - - var url = $.urlParam("loginUrl"); - if (url != undefined && url != null && url.length > 0) { - url = unescape("/client/api?"+url); - $.ajax({ - url: url, - dataType: "json", - async: false, - success: function(json) { - g_loginResponse = json.loginresponse; - $("#registration_complete_link").attr("href","https://my.rightscale.com/cloud_registrations/cloudkit/new?callback_url="+encodeURIComponent("http://localhost:8080/client/cloudkit/complete?token="+g_loginResponse.registrationtoken)); - }, - error: function() { - logout(); - }, - beforeSend: function(XMLHttpRequest) { - return true; - } - }); - } else { - logout(); - } -}); - - diff --git a/ui/cloudkit/scripts/cloudkit.login.js b/ui/cloudkit/scripts/cloudkit.login.js deleted file mode 100644 index ae1bbba4036..00000000000 --- a/ui/cloudkit/scripts/cloudkit.login.js +++ /dev/null @@ -1,74 +0,0 @@ - /** - * Copyright (C) 2010 Cloud.com, Inc. All rights reserved. - * - * This software is licensed under the GNU General Public License v3 or later. - * - * It is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ -$.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); if (!results) { return 0; } return results[1] || 0;} - -$(document).ready(function() { - var url = $.urlParam("loginUrl"); - if (url != undefined && url != null && url.length > 0) { - // single signon process - url = unescape("/client/api?"+url); - $.ajax({ - url: url, - dataType: "json", - async: false, - type: "POST", - success: function(json) { - login(json); - }, - error: function() { - logout(); - }, - beforeSend: function(XMLHttpRequest) { - return true; - } - }); - } else { - $("#loginmain").show(); - - $("#login_submit").click("click", function(event) { - var username = escape($("#login_username").val()); - var password = $.md5($("#login_password").val()); - var domain = escape("/"+username+"_domain"); - $.ajax({ - url: "/client/api?command=login&response=json&username="+username+"&password="+password+"&domain="+domain, - dataType: "json", - async: false, - type: "POST", - success: function(json) { - $("#login_error").hide(); - login(json); - }, - error: function(XMLHttpRequest) { - $("#login_password").val(""); - $("#login_error").show(); - $("#login_username").focus(); - }, - beforeSend: function(XMLHttpRequest) { - return true; - } - }); - return false; - }); - - $("#login_form").keypress(function(event) { - if(event.keyCode == keycode_Enter) { - $("#login_submit").click(); - } - }); - } -}); \ No newline at end of file diff --git a/ui/cloudkit/scripts/json2.js b/ui/cloudkit/scripts/json2.js deleted file mode 100644 index 8fe2d9c8ecf..00000000000 --- a/ui/cloudkit/scripts/json2.js +++ /dev/null @@ -1,480 +0,0 @@ -/* - http://www.JSON.org/json2.js - 2011-02-23 - - Public Domain. - - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. - - See http://www.JSON.org/js.html - - - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html - - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. - - - This file creates a global JSON object containing two methods: stringify - and parse. - - JSON.stringify(value, replacer, space) - value any JavaScript value, usually an object or array. - - replacer an optional parameter that determines how object - values are stringified for objects. It can be a - function or an array of strings. - - space an optional parameter that specifies the indentation - of nested structures. If it is omitted, the text will - be packed without extra whitespace. If it is a number, - it will specify the number of spaces to indent at each - level. If it is a string (such as '\t' or ' '), - it contains the characters used to indent at each level. - - This method produces a JSON text from a JavaScript value. - - When an object value is found, if the object contains a toJSON - method, its toJSON method will be called and the result will be - stringified. A toJSON method does not serialize: it returns the - value represented by the name/value pair that should be serialized, - or undefined if nothing should be serialized. The toJSON method - will be passed the key associated with the value, and this will be - bound to the value - - For example, this would serialize Dates as ISO strings. - - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; - - You can provide an optional replacer method. It will be passed the - key and value of each member, with this bound to the containing - object. The value that is returned from your method will be - serialized. If your method returns undefined, then the member will - be excluded from the serialization. - - If the replacer parameter is an array of strings, then it will be - used to select the members to be serialized. It filters the results - such that only members with keys listed in the replacer array are - stringified. - - Values that do not have JSON representations, such as undefined or - functions, will not be serialized. Such values in objects will be - dropped; in arrays they will be replaced with null. You can use - a replacer function to replace those with JSON values. - JSON.stringify(undefined) returns undefined. - - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. - - If the space parameter is a non-empty string, then that string will - be used for indentation. If the space parameter is a number, then - the indentation will be that many spaces. - - Example: - - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' - - - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' - - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' - - - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. - - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. - - Example: - - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. - - myData = JSON.parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); - - myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { - var d; - if (typeof value === 'string' && - value.slice(0, 5) === 'Date(' && - value.slice(-1) === ')') { - d = new Date(value.slice(5, -1)); - if (d) { - return d; - } - } - return value; - }); - - - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ - -/*jslint evil: true, strict: false, regexp: false */ - -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, - call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, - getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, - lastIndex, length, parse, prototype, push, replace, slice, stringify, - test, toJSON, toString, valueOf -*/ - - -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. - -var JSON; -if (!JSON) { - JSON = {}; -} - -(function () { - "use strict"; - - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } - - if (typeof Date.prototype.toJSON !== 'function') { - - Date.prototype.toJSON = function (key) { - - return isFinite(this.valueOf()) ? - this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z' : null; - }; - - String.prototype.toJSON = - Number.prototype.toJSON = - Boolean.prototype.toJSON = function (key) { - return this.valueOf(); - }; - } - - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - gap, - indent, - meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }, - rep; - - - function quote(string) { - -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can safely slap some quotes around it. -// Otherwise we must also replace the offending characters with safe escape -// sequences. - - escapable.lastIndex = 0; - return escapable.test(string) ? '"' + string.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 'string' ? c : - '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + string + '"'; - } - - - function str(key, holder) { - -// Produce a string from holder[key]. - - var i, // The loop counter. - k, // The member key. - v, // The member value. - length, - mind = gap, - partial, - value = holder[key]; - -// If the value has a toJSON method, call it to obtain a replacement value. - - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); - } - -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. - - if (typeof rep === 'function') { - value = rep.call(holder, key, value); - } - -// What happens next depends on the value's type. - - switch (typeof value) { - case 'string': - return quote(value); - - case 'number': - -// JSON numbers must be finite. Encode non-finite numbers as null. - - return isFinite(value) ? String(value) : 'null'; - - case 'boolean': - case 'null': - -// If the value is a boolean or null, convert it to a string. Note: -// typeof null does not produce 'null'. The case is included here in -// the remote chance that this gets fixed someday. - - return String(value); - -// If the type is 'object', we might be dealing with an object or an array or -// null. - - case 'object': - -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. - - if (!value) { - return 'null'; - } - -// Make an array to hold the partial results of stringifying this object value. - - gap += indent; - partial = []; - -// Is the value an array? - - if (Object.prototype.toString.apply(value) === '[object Array]') { - -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. - - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } - -// Join all of the elements together, separated with commas, and wrap them in -// brackets. - - v = partial.length === 0 ? '[]' : gap ? - '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : - '[' + partial.join(',') + ']'; - gap = mind; - return v; - } - -// If the replacer is an array, use it to select the members to be stringified. - - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - if (typeof rep[i] === 'string') { - k = rep[i]; - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { - -// Otherwise, iterate through all of the keys in the object. - - for (k in value) { - if (Object.prototype.hasOwnProperty.call(value, k)) { - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } - -// Join all of the member texts together, separated with commas, -// and wrap them in braces. - - v = partial.length === 0 ? '{}' : gap ? - '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : - '{' + partial.join(',') + '}'; - gap = mind; - return v; - } - } - -// If the JSON object does not yet have a stringify method, give it one. - - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { - -// The stringify method takes a value and an optional replacer, and an optional -// space parameter, and returns a JSON text. The replacer can be a function -// that can replace values, or an array of strings that will select the keys. -// A default replacer method can be provided. Use of the space parameter can -// produce text that is more easily readable. - - var i; - gap = ''; - indent = ''; - -// If the space parameter is a number, make an indent string containing that -// many spaces. - - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } - -// If the space parameter is a string, it will be used as the indent string. - - } else if (typeof space === 'string') { - indent = space; - } - -// If there is a replacer, it must be a function or an array. -// Otherwise, throw an error. - - rep = replacer; - if (replacer && typeof replacer !== 'function' && - (typeof replacer !== 'object' || - typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); - } - -// Make a fake root object containing our value under the key of ''. -// Return the result of stringifying the value. - - return str('', {'': value}); - }; - } - - -// If the JSON object does not yet have a parse method, give it one. - - if (typeof JSON.parse !== 'function') { - JSON.parse = function (text, reviver) { - -// The parse method takes a text and an optional reviver function, and returns -// a JavaScript value if the text is a valid JSON text. - - var j; - - function walk(holder, key) { - -// The walk method is used to recursively walk the resulting structure so -// that modifications can be made. - - var k, v, value = holder[key]; - if (value && typeof value === 'object') { - for (k in value) { - if (Object.prototype.hasOwnProperty.call(value, k)) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - } - } - } - return reviver.call(holder, key, value); - } - - -// Parsing happens in four stages. In the first stage, we replace certain -// Unicode characters with escape sequences. JavaScript handles many characters -// incorrectly, either silently deleting them, or treating them as line endings. - - text = String(text); - cx.lastIndex = 0; - if (cx.test(text)) { - text = text.replace(cx, function (a) { - return '\\u' + - ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }); - } - -// In the second stage, we run the text against regular expressions that look -// for non-JSON patterns. We are especially concerned with '()' and 'new' -// because they can cause invocation, and '=' because it can cause mutation. -// But just to be safe, we want to reject all unexpected forms. - -// We split the second stage into 4 regexp operations in order to work around -// crippling inefficiencies in IE's and Safari's regexp engines. First we -// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we -// replace all simple value tokens with ']' characters. Third, we delete all -// open brackets that follow a colon or comma or that begin the text. Finally, -// we look to see that the remaining characters are only whitespace or ']' or -// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. - - if (/^[\],:{}\s]*$/ - .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') - .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') - .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { - -// In the third stage we use the eval function to compile the text into a -// JavaScript structure. The '{' operator is subject to a syntactic ambiguity -// in JavaScript: it can begin a block or an object literal. We wrap the text -// in parens to eliminate the ambiguity. - - j = eval('(' + text + ')'); - -// In the optional fourth stage, we recursively walk the new structure, passing -// each name/value pair to a reviver function for possible transformation. - - return typeof reviver === 'function' ? - walk({'': j}, '') : j; - } - -// If the text is not JSON parseable, then a SyntaxError is thrown. - - throw new SyntaxError('JSON.parse'); - }; - } -}()); \ No newline at end of file