ika's modification to the backend

This commit is contained in:
chris2tof 2011-11-16 18:34:54 +08:00
parent c1d77fa6d6
commit 0556dc9297
12 changed files with 317 additions and 299 deletions

BIN
app/assets/images/body.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

BIN
app/assets/images/icon1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

BIN
app/assets/images/icon2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 198 B

View File

@ -1,5 +1,14 @@
html, body{
height: 100%;
margin: 0;
padding: 0;
}
html{
background: url(<%= asset_path "body.jpg" %>) no-repeat scroll 0 0 transparent;
background-size: cover;
}
body{
background: url("/assets/orbitbar.png") repeat-x scroll 0 0;
color: #000000;
font-family: helvetica,arial,sans-serif;
margin: 0;
@ -7,9 +16,12 @@ body{
}
#panel_banner_link{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 10px 0 transparent;
height: 43px;
position: relative;
background: url(<%= asset_path "orbitbar.png" %>) repeat-x scroll 0 0;
height: 52px;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.hmenu{
height: 40px;
@ -20,6 +32,48 @@ body{
}
#orbit{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 0 0 transparent;
cursor:pointer;
height: 43px;
left: 10px;
position: relative;
width: 41px;
}
#orbit:hover{
background-position:0 -43px;
box-shadow: 0 3px 3px #000000;
}
#orbit:hover #orblist{
display:block;
}
#orblist{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 0 3px 3px 3px;
box-shadow: 0 3px 3px #000000;
display: none;
margin: 0;
padding: 10px;
position: absolute;
top: 43px;
width: 130px;
}
#orblist li{
border-bottom:1px solid #aaa;
list-style:none;
}
.orblink{
color: #333333;
display: block;
font: 12px/100% arial,sans-serif;
padding: 5px;
text-decoration: none;
}
.orblink:hover{
background:#eee;
color:#333;
}
#log_out a{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right 0 transparent;
@ -56,13 +110,15 @@ body{
}
#panel_container{
margin: 9px 0 0;
height: 100%;
}
#panel_container h1{
font: 28px/100% helvetica,arial,sans-serif;
color: #FFFFFF;
font: 32px/100% helvetica,arial,sans-serif;
margin: 0 0 20px;
padding: 0;
text-shadow: 0 0 5px #000000;
}
#panel_header{
@ -70,7 +126,7 @@ body{
border-bottom: 1px solid #818181;
padding: 10px;
}
#panel_header:after {
#panel_header :after {
content: ".";
display: block;
height: 0;
@ -107,96 +163,116 @@ body{
}
#panel_content{
background: none repeat scroll 0 0 #FFFFFF;
clear:both;
padding: 20px 10px;
height: 100%;
}
min-height : 430px;
height:auto !important;
height:430px;
}
#panel_content:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.main{
float:left;
min-width: 700px;
width: 60%;
float: left;
height: 100%;
padding: 0 1%;
width: 81%;
}
.main2{
padding: 62px 0 0;
}
.main table{
border-collapse: collapse;
width:100%;
}
.main table th{
background: none repeat scroll 0 0 #EEEEEE;
border-bottom:1px solid #c7c7c7;
font: 17px/100% helvetica,arial,sans-serif;
border-bottom: 1px solid #222222;
color: #FFFFFF;
font: 20px/100% helvetica,arial,sans-serif;
letter-spacing: 0.05em;
padding: 10px;
text-shadow: 0 0 3px #000000;
}
.main table td{
border-bottom: 1px solid #EEEEEE;
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
border-bottom: 1px solid #222222;
color: #FFFFFF;
padding: 10px;
text-align: center;
}
.main table td a{
background: none repeat scroll 0 0 #EEEEEE;
border-radius: 13px 13px 13px 13px;
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
color: #000000;
padding: 5px 10px;
padding: 5px;
text-decoration: none;
}
.main table td a:hover{
background: none repeat scroll 0 0 #818181;
border-radius: 13px 13px 13px 13px;
color: #fff;
background: none repeat scroll 0 0 #eee;
border-radius: 5px 5px 5px 5px;
color: #333;
}
.secondary{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
box-shadow: 3px 0 3px #000000;
float: left;
margin: 47px 0 0 20px;
min-width: 250px;
width: 10%;
height: 100%;
padding: 0 1%;
width: 14%;
}
.secondary2{
padding: 62px 0 0;
}
.secondary ul{
border: 1px solid #818181;
border-radius: 5px 5px 5px 5px;
margin: 0;
padding: 10px;
padding: 0;
}
.secondary ul li{
list-style:none;
}
.secondary ul li a{
background: none repeat scroll 0 0 #EEEEEE;
border: 1px solid #CCCCCC;
border-radius: 5px 5px 5px 5px;
color: #333333;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
margin: 5px 0;
padding: 5px;
padding: 14px 0;
text-align: left;
text-decoration: none;
}
.seclink1{
background: url(<%= asset_path "icon1.png" %>) no-repeat scroll 20px 8px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.seclink2{
background: url(<%= asset_path "icon2.png" %>) no-repeat scroll 20px 14px transparent;
border-bottom: 1px solid #333;
color: #AAAAAA;
display: block;
padding: 14px 0 14px 60px !important;
text-align: left;
text-decoration: none;
}
.secondary ul li a:hover{
background: none repeat scroll 0 0 #cccccc;
border:1px solid #818181;
color: #000;
color: #fff;
}
#panel_footer{
background: none repeat scroll 0 0 #FFFFFF;
display:none;
clear: both;
padding: 10px;
}
#panel_footer p{
margin:0;
}
label{
color: #FFFFFF;
display: block;
text-shadow: 0 0 5px #000000;
width: 130px;
}
p{
margin:0 0 10px;
}
#panel_main p label{
float: left;
@ -217,9 +293,36 @@ p{
width: 205px;
}
#site_info{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 5px #000000;
height: 289px;
margin: 0 0 20px;
overflow: hidden;
width: 600px;
}
#siteinfo_title{
background: none repeat scroll 0 0 #333333;
color: #FFFFFF;
font: 24px/50px arial,sans-serif;
height: 50px;
margin: 0;
padding: 0 0 0 20px;
text-shadow: 0 1px 0 #000000;
}
#siteinfo_tb{
background: none repeat scroll 0 0 #FFFFFF;
}
#siteinfo_tb td{
background: none repeat scroll 0 0 transparent;
border-bottom: 1px solid #333333;
color: #333333;
}
.buy_btn{
float:left;
margin:0 20px 0 0;
margin: 0 10px 0 0;
}
.buy_btn a{
background: url("/assets/buy_btn.png") no-repeat scroll 0 0 transparent;
@ -243,6 +346,7 @@ p{
font-size: 22px;
height: 37px;
line-height: 37px;
margin: 0 10px 0 0;
text-align: center;
text-shadow: 0 1px 0 #C06408;
width: 170px;

View File

@ -1,107 +1,14 @@
/*
#panel_header ul, #panel_sidebar ul{
margin:0;
padding:0;
}
#panel_header ul li, #panel_sidebar ul li{
list-style:none;
}
#panel_header a, #panel_sidebar a {
text-decoration:none;
}
html{
height:100%;
width:100%;
}
body{
height:100%;
margin:0;
width:100%;
}
#panel_content{
height:100%;
width:100%;
}
#panel_header{
background:url(<%= asset_path 'bar_bg.png' %>) repeat-x 0 0;
font-size:12px;
height:41px;
}
#panel_header ul{
margin:0 0 0 10px;
}
#panel_header a:link,#panel_header a:visited{
color:#fff;
}
#panel_header a:hover,#panel_header a:active{
color:#ececec;
}
#panel_nav{
float:left;
margin:0 0 0 10px;
}
#panel_nav li{
float: left;
line-height: 38px;
list-style: none outside none;
margin: 0 10px 0 0;
}
.panel_hmenu{
color: #FFFFFF;
float: right;
}
.panel_hmenu li{
float: left;
line-height: 41px;
list-style: none outside none;
margin: 0 10px 0 0;
}
#panel_sidebar{
background: none repeat scroll 0 0 #323232;
color: #FFFFFF;
float: left;
html, body{
height: 100%;
min-width: 250px;
padding:5px 5px 0 0;
margin: 0;
padding: 0;
}
#panel_sidebar a:link,#panel_sidebar a:visited{
color:#fff;
}
#panel_sidebar a:hover,#panel_sidebar a:active{
color:#ececec;
}
#panel_sidebar ul{
background: url(<%= asset_path 'tree_list.png' %>) repeat scroll 0 0 transparent;
}
#panel_sidebar li{
font-size: 12px;
line-height: 29px;
list-style:none;
padding: 0 0 0 10px;
}
#panel_sidebar ul {
}
#panel_sidebar ul li{
padding:0 0 0 20px;
}
.new_page{}
.new_link{}
.del_page{}
#panel_main{
margin:10px;
}
*/
html{
background: url(<%= asset_path "html.png" %>) repeat-y scroll 0 0;
background: url(<%= asset_path "body.jpg" %>) no-repeat scroll 0 0 transparent;
background-size: cover;
}
body{
background: url(<%= asset_path "orbitbar.png" %>) repeat-x scroll 0 0;
color: #000000;
font-family: helvetica,arial,sans-serif;
margin: 0;
@ -109,9 +16,12 @@ body{
}
#panel_banner_link{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 10px 0 transparent;
height: 43px;
position: relative;
background: url(<%= asset_path "orbitbar.png" %>) repeat-x scroll 0 0;
height: 52px;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.hmenu{
height: 40px;
@ -122,6 +32,49 @@ body{
}
#orbit{
background: url(<%= asset_path "bar_orbit.png" %>) no-repeat scroll 0 0 transparent;
cursor:pointer;
height: 43px;
left: 10px;
position: relative;
width: 41px;
}
#orbit:hover{
background-position:0 -43px;
box-shadow: 0 3px 3px #000000;
}
#orbit:hover #orblist{
display:block;
}
#orblist{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 0 3px 3px 3px;
box-shadow: 0 3px 3px #000000;
display: none;
margin: 0;
padding: 10px;
position: absolute;
top: 43px;
width: 130px;
z-index:10;
}
#orblist li{
border-bottom:1px solid #aaa;
list-style:none;
}
.orblink{
color: #333333;
display: block;
font: 12px/100% arial,sans-serif;
padding: 5px;
text-decoration: none;
}
.orblink:hover{
background:#eee;
color:#333;
}
#log_out a{
background: url(<%= asset_path "service_btn.png" %>) no-repeat scroll right 0 transparent;
@ -158,15 +111,9 @@ body{
}
#panel_container{
margin: 9px 0 0;
}
#panel_container:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
height: 100%;
}
#panel_container h1{
font: 28px/100% helvetica,arial,sans-serif;
margin: 0 0 20px;
@ -215,134 +162,58 @@ body{
}
#panel_content{
clear:both;
position:relative;
}
#panel_content:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.main{
float:left;
min-width: 700px;
width: 60%;
}
.main table{
border-collapse: collapse;
width:100%;
}
.main table th{
background: none repeat scroll 0 0 #EEEEEE;
border-bottom:1px solid #c7c7c7;
font: 17px/100% helvetica,arial,sans-serif;
letter-spacing: 0.05em;
padding: 10px;
}
.main table td{
border-bottom: 1px solid #EEEEEE;
padding: 10px;
text-align: center;
height: 100%;
}
.main table td a{
background: none repeat scroll 0 0 #EEEEEE;
border-radius: 13px 13px 13px 13px;
color: #000000;
padding: 5px 10px;
text-decoration: none;
}
.main table td a:hover{
background: none repeat scroll 0 0 #818181;
border-radius: 13px 13px 13px 13px;
color: #fff;
}
.secondary{
#panel_sidebar2{
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.75);
box-shadow: 3px 0 3px #000000;
float: left;
margin: 47px 0 0 20px;
min-width: 250px;
width: 10%;
height: 100%;
width: 16%;
}
.secondary ul{
border: 1px solid #818181;
border-radius: 5px 5px 5px 5px;
margin: 0;
padding: 10px;
}
.secondary ul li{
list-style:none;
}
.secondary ul li a{
background: none repeat scroll 0 0 #EEEEEE;
border: 1px solid #CCCCCC;
border-radius: 5px 5px 5px 5px;
color: #333333;
display: block;
margin: 5px 0;
padding: 5px;
text-decoration: none;
}
.secondary ul li a:hover{
background: none repeat scroll 0 0 #cccccc;
border:1px solid #818181;
color: #000;
}
#footer{
background: none repeat scroll 0 0 #FFFFFF;
clear: both;
padding: 10px;
}
#footer p{
margin:0;
}
#panel_sidebar{
color: white;
left: 0;
padding: 5px 0 0 5px;
position: absolute;
top: 0;
width: 290px;
padding: 62px 0 0;
}
#panel_sidebar ul{
background: url(<%= asset_path "tree_list.png" %>) repeat-x 0 0;
background: none repeat scroll 0 0 #13547C;
margin: 0;
padding: 0 0 0 15px;
padding: 0 0 0 10px;
}
#panel_sidebar ul li{
line-height: 28px;
background: none repeat scroll 0 0 #13547C;
border-top: 1px solid #145B87;
color: #FFFFFF;
font-size: 11px;
line-height: 29px;
list-style: none outside none;
}
#panel_sidebar li ul{
margin: 0 0 0 -15px;
padding: 0 0 0 25px;
}
#panel_sidebar li ul ul{
margin: 0 0 0 -25px;
padding: 0 0 0 25px;
}
#panel_sidebar a{
color: #FFFFFF;
font-size: 12px;
font-size: 11px;
text-decoration: none;
}
#panel_sidebar a:hover{}
#panel_main2{
background:#fff;
float: left;
height: 100%;
padding: 0 1%;
width: 82%;
}
#panel_main{
left:300px;
min-width: 1024px;
position:absolute;
top:0;
padding: 62px 0 0;
}
#panel_main p label{
float: left;
display: block;
padding: 3px;
width: 100px;
}
#panel_main .translation_missing{
float: left;

View File

@ -1,7 +1,7 @@
<% content_for :secondary do %>
<ul class="list">
<li><%= link_to t(:new_design, :scope => :admin), new_admin_design_path %></li>
<li><%= link_to t('admin.upload_design'), upload_package_admin_designs_path %></li>
<li><%= link_to t(:new_design, :scope => :admin), new_admin_design_path, :class => 'seclink1' %></li>
<li><%= link_to t('admin.upload_design'), upload_package_admin_designs_path, :class => 'seclink2' %></li>
</ul>
<% end -%>

View File

@ -1,4 +1,5 @@
<% if @site && @site.registered? %>
<%# if @site && @site.registered? %>
<% if @site %>
<div class="bought_btn">
<%= t('admin.registered') %>
</div>

View File

@ -1,4 +1,5 @@
<% if @site.up_to_date? %>
<%# if @site.up_to_date? %>
<% if true %>
<div class="bought_btn">
<%= t('admin.up_to_date') %>
</div>

View File

@ -1,3 +1,32 @@
<div id="site_info">
<h2 id="siteinfo_title">Site Information</h2>
<table id="siteinfo_tb">
<tr>
<td>School Name</td>
<td>RulingDigital Universitry</td>
</tr>
<tr>
<td>Department</td>
<td>Design Deptartment</td>
</tr>
<tr>
<td>Version</td>
<td>v0.1</td>
</tr>
<tr>
<td>Administrator</td>
<td>admin</td>
</tr>
<tr>
<td>Visitor Counter</td>
<td>1112201</td>
</tr>
<tr>
<td>Site Status</td>
<td>Available</td>
</tr>
</table>
</div>
<%= render 'registration' %>
<%= render 'update' %>

View File

@ -14,6 +14,21 @@
<body>
<div id="panel_banner_link" >
<div id="orbit">
<ul id="orblist">
<li><%= link_to t('homepage'), root_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.item'), admin_items_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.design'), admin_designs_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.purchase'), admin_purchases_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.asset'), admin_assets_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.user_info'), admin_user_info_models_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.user_role'), admin_user_role_models_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.translation'), admin_translations_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.site'), admin_sites_path, :class => 'orblink' %></li>
</ul>
</div>
<div class="hmenu">
<div class="lang">
<%= render 'layouts/lang_menu' %>
@ -21,27 +36,25 @@
<%= render 'devise/menu/login_items' %>
</div>
</div>
<div id="panel_container">
<div id="panel_header">
<h1>Orbit <%= t('admin.admin') %></h1>
<ul id="nav">
<li><%= link_to t('homepage'), root_path %></li>
<li><%= link_to t('admin.item'), admin_items_path %></li>
<li><%= link_to t('admin.design'), admin_designs_path %></li>
<li><%= link_to t('admin.purchase'), admin_purchases_path %></li>
<li><%= link_to t('admin.asset'), admin_assets_path %></li>
<li><%= link_to t('admin.user_info'), admin_user_info_models_path %></li>
<li><%= link_to t('admin.user_role'), admin_user_role_models_path %></li>
<li><%= link_to t('admin.translation'), admin_translations_path %></li>
<li><%= link_to t('admin.site'), admin_sites_path %></li>
</ul>
</div>
<div id="panel_content">
<div class="main"><%= yield %></div>
<div class="secondary"><%= yield :secondary %></div>
<div class="secondary">
<div class="secondary2">
<%= yield :secondary %>
</div>
</div>
<div class="main">
<div class="main2">
<%= yield %>
</div>
</div>
<div class="tertiary"><%= yield :tertiary %></div>
</div>

View File

@ -22,6 +22,21 @@
<body>
<div id="panel_banner_link" >
<div id="orbit">
<ul id="orblist">
<li><%= link_to t('homepage'), root_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.item'), admin_items_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.design'), admin_designs_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.purchase'), admin_purchases_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.asset'), admin_assets_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.user_info'), admin_user_info_models_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.user_role'), admin_user_role_models_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.translation'), admin_translations_path, :class => 'orblink' %></li>
<li><%= link_to t('admin.site'), admin_sites_path, :class => 'orblink' %></li>
</ul>
</div>
<div class="hmenu">
<div class="lang">
<%= render 'layouts/lang_menu' %>
@ -32,25 +47,9 @@
</div>
<div id="panel_container">
<div id="panel_header">
<h1>Orbit <%= t('admin.item') %></h1>
<ul id="panel_nav">
<li><%= link_to t('homepage'), root_path %></li>
<li><%= link_to t('admin.item'), admin_items_path %></li>
<li><%= link_to t('admin.design'), admin_designs_path %></li>
<li><%= link_to t('admin.purchase'), admin_purchases_path %></li>
<li><%= link_to t('admin.asset'), admin_assets_path %></li>
<li><%= link_to t('admin.user_info'), admin_user_info_models_path %></li>
<li><%= link_to t('admin.user_role'), admin_user_role_models_path %></li>
<li><%= link_to t('admin.translation'), admin_translations_path %></li>
<li><%= link_to t('admin.site'), admin_sites_path %></li>
</ul>
</div>
<div id="panel_content">
<div id="panel_sidebar"><%= yield :sidebar %></div>
<div id="panel_main"><%= yield %></div>
<div id="panel_sidebar2"><div id="panel_sidebar"><%= yield :sidebar %></div></div>
<div id="panel_main2"><div id="panel_main"><%= yield %></div></div>
</div>
<div id="panel_footer"><%= yield :footer %></div>