[limb-svn] r6477 - in 3.x/trunk/limb/cms: shared/images/icon shared/images/menu shared/js shared/styles template template/_cms template/admin_documents template/example
svn at limb-project.com
svn at limb-project.com
Thu Nov 1 10:56:41 MSK 2007
Author: momental
Date: 2007-11-01 10:56:41 +0300 (Thu, 01 Nov 2007)
New Revision: 6477
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6477
Added:
3.x/trunk/limb/cms/shared/images/icon/arrow.gif
3.x/trunk/limb/cms/shared/images/icon/arrow_hover.gif
3.x/trunk/limb/cms/shared/images/menu/sub_current_bottom2.gif
3.x/trunk/limb/cms/template/example/
3.x/trunk/limb/cms/template/example/create.html
3.x/trunk/limb/cms/template/example/delete.html
3.x/trunk/limb/cms/template/example/display.html
3.x/trunk/limb/cms/template/example/edit.html
3.x/trunk/limb/cms/template/example/form_fields.html
Removed:
3.x/trunk/limb/cms/shared/images/icon/collapse.gif
3.x/trunk/limb/cms/shared/images/icon/expand.gif
Modified:
3.x/trunk/limb/cms/shared/images/menu/sub_current.gif
3.x/trunk/limb/cms/shared/images/menu/sub_current_bottom.gif
3.x/trunk/limb/cms/shared/js/cp.js
3.x/trunk/limb/cms/shared/styles/cp.css
3.x/trunk/limb/cms/template/_cms/menu.html
3.x/trunk/limb/cms/template/_cms/page.html
3.x/trunk/limb/cms/template/admin_documents/form_fields.html
Log:
-- improve styles
Added: 3.x/trunk/limb/cms/shared/images/icon/arrow.gif
===================================================================
(Binary files differ)
Property changes on: 3.x/trunk/limb/cms/shared/images/icon/arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: 3.x/trunk/limb/cms/shared/images/icon/arrow_hover.gif
===================================================================
(Binary files differ)
Property changes on: 3.x/trunk/limb/cms/shared/images/icon/arrow_hover.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: 3.x/trunk/limb/cms/shared/images/icon/collapse.gif
===================================================================
(Binary files differ)
Deleted: 3.x/trunk/limb/cms/shared/images/icon/expand.gif
===================================================================
(Binary files differ)
Modified: 3.x/trunk/limb/cms/shared/images/menu/sub_current.gif
===================================================================
(Binary files differ)
Modified: 3.x/trunk/limb/cms/shared/images/menu/sub_current_bottom.gif
===================================================================
(Binary files differ)
Added: 3.x/trunk/limb/cms/shared/images/menu/sub_current_bottom2.gif
===================================================================
(Binary files differ)
Property changes on: 3.x/trunk/limb/cms/shared/images/menu/sub_current_bottom2.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: 3.x/trunk/limb/cms/shared/js/cp.js
===================================================================
--- 3.x/trunk/limb/cms/shared/js/cp.js 2007-10-31 11:59:44 UTC (rev 6476)
+++ 3.x/trunk/limb/cms/shared/js/cp.js 2007-11-01 07:56:41 UTC (rev 6477)
@@ -1,4 +1,6 @@
var LIMB_WINDOW_DEFAULT_PARAMS = { width: 890, height:500, resizable: true, noautoresize: true };
+var ShowFilterDefault = 'Показать фильтр';
+var HideFilterDefault = 'Скрыть фильтр';
function toggle_selected(toggle_obj)
{
@@ -22,8 +24,8 @@
if (!filter.is('div'))
return;
- var activeFilterHTML = '<a class="active_filter"><span>Показать фильтр</span></a>';
- var htmlText = '<div class="filter_bottom"><a class="active_filter_bottom"><span>Показать фильтр</span></a></div>';
+ var activeFilterHTML = '<a class="active_filter"><span>' + ShowFilterDefault + '</span></a>';
+ var htmlText = '<div class="filter_bottom"><a class="active_filter_bottom"><span>' + ShowFilterDefault + '</span></a></div>';
filter.prepend(activeFilterHTML);
list.css('margin','0');
@@ -35,13 +37,13 @@
if(Limb.cookie(window.location + '.filter') == 1){
filterForm.show();
- this.activeFilter.text('Скрыть фильтр');
+ this.activeFilter.text(HideFilterDefault);
this.activeFilter.addClass('show');
}
else {
filterForm.hide();
- this.activeFilter.text('Показать фильтр');
+ this.activeFilter.text(ShowFilterDefault);
}
},
@@ -53,11 +55,11 @@
if (filterFormBelowList.is('form')){
filterFormBelowList.hide();
- filterFormBelowList.clone().appendTo(".filter").animate({height: 'show'}, "fast");
+ filterFormBelowList.clone().appendTo(".filter").show('slow');
filterFormBelowList.remove();
}
else
- filterForm.animate({height: 'toggle'}, "fast");
+ filterForm.toggle('slow');
this.setFilterCookie();
this.initActiveFilter();
@@ -69,10 +71,10 @@
var filterFormBelowList = jQuery('.filter_bottom form');
if (filterFormBelowList.is('form'))
- filterFormBelowList.animate({height: 'toggle'}, "fast");
+ filterFormBelowList.toggle('slow');
else {
filterForm.hide();
- filterForm.clone().prependTo(".filter_bottom").animate({height: 'show'}, "fast");
+ filterForm.clone().prependTo(".filter_bottom").show('slow');
filterForm.remove();
}
@@ -87,19 +89,19 @@
if (filterForm.is('form')){
if (this.activeFilter.attr('class')== 'show')
- this.activeFilter.removeClass('show').text('Показать фильтр');
+ this.activeFilter.removeClass('show').text(ShowFilterDefault);
else {
- this.activeFilter.addClass('show').text('Скрыть фильтр');
- this.activeFilterBelowList.removeClass('show').text('Показать фильтр');
+ this.activeFilter.addClass('show').text(HideFilterDefault);
+ this.activeFilterBelowList.removeClass('show').text(ShowFilterDefault);
}
}
else{
if (this.activeFilterBelowList.attr('class')== 'show')
- this.activeFilterBelowList.removeClass('show').text('Показать фильтр');
+ this.activeFilterBelowList.removeClass('show').text(ShowFilterDefault);
else {
- this.activeFilterBelowList.addClass('show').text('Скрыть фильтр');
- this.activeFilter.removeClass('show').text('Показать фильтр');
+ this.activeFilterBelowList.addClass('show').text(HideFilterDefault);
+ this.activeFilter.removeClass('show').text(ShowFilterDefault);
}
}
@@ -302,71 +304,162 @@
}
});
-function changed_field_highlighter()
+function initImgResize(){
+jQuery('img[@resize]')
+ .one('load', function()
+ {
+ var current_img = jQuery(this);
+ var size = current_img.attr('resize').replace('x','');
+ var width_bool = false;
+ var height_bool = false;
+ var width = current_img.width();
+ var height = current_img.height();
+
+ current_img.css({position:'absolute',top:'3000'});
+
+ if (current_img.attr('resize').indexOf('x') == 0)
+ height_bool = true;
+ else if (current_img.attr('resize').indexOf('x') == current_img.attr('resize').length - 1)
+ width_bool = true;
+ else if (current_img.attr('resize').indexOf('x') < 0)
+ if (width > height)
+ height_bool = true;
+ else
+ width_bool = true;
+
+ var link = jQuery('<a class="magnifier" href="' + this.src + '" target="_blank"><img src="/shared/cms/images/icon/magnifier.gif" width="13" height="13" alt="magnifier"/></a>').get()[0];
+
+ if(height_bool)
+ {
+ current_img.height(size);
+ }
+ else if (width_bool)
+ {
+ current_img.width(size);
+ }
+
+ jQuery(link).css('top', current_img.height() - 13);
+ jQuery(link).css('left', current_img.width() - 16);
+
+ current_img.css({position : 'static', top : '0'});
+ current_img.before(link);
+
+ });
+};
+
+Limb.Class('CMS.SidebarToggle',
{
- jQuery(this).change(function(){jQuery(this).prev('label').css({color: 'green'})});
-}
+ __construct:function()
+ {
+ this.sidebar = jQuery('#sidebar');
+ this.content = jQuery('#content');
+ this.bool = false;
-jQuery(window).ready(function(){
- jQuery('.button').wrap('<span class="button_wrapper"></span>');
+ var SidebarHTML = this.sidebar.html();
+ var toggleHTML = '<div class="sidebar_toggle"><span class="text">Навигация</span><a href="#" class="arrow"><img src="images/1x1.gif" width="8" height="7" alt="<<" /></a></div>';
- // Fiter up/down sliding control
- new CMS.Filter('filter');
- jQuery('.message_error .show_hidden').bind('click', control_error);
+ this.sidebar.empty();
+ this.sidebar.prepend('<div class="inner"></div>');
+ this.inner = jQuery('#sidebar .inner');
+ this.inner.prepend(SidebarHTML);
- jQuery('img[@src$=.png], .shadow_bottom span, .shadow_left span, .shadow_right span').ifixpng()
+ this.sidebar.prepend(toggleHTML);
+ this.toggle = jQuery('.sidebar_toggle');
+ this.toggle_text = jQuery('.sidebar_toggle .text');
+ this.toggle_arrow = jQuery('.sidebar_toggle .arrow');
- //resized images
- jQuery('img[@resize]')
- .one('load', function()
- {
- var current_img = jQuery(this);
- var size = current_img.attr('resize').replace('x','');
- var width_bool = false;
- var height_bool = false;
- var width = current_img.width();
- var height = current_img.height();
+ if(Limb.cookie('sidebar_toggle') == 1){
+ this.inner.hide();
+ this.toggle_text.hide();
+ this.hideSidebar();
+ }
+ this._initBehavior();
+ },
- current_img.css({position:'absolute',top:'3000'});
+ initSidebarStatus: function(){
+ if (this.sidebar.attr('class') == 'hide')
+ this.bool = true;
+ else
+ this.bool = false;
+ return this.bool;
+ },
- if (current_img.attr('resize').indexOf('x') == 0)
- height_bool = true;
- else if (current_img.attr('resize').indexOf('x') == current_img.attr('resize').length - 1)
- width_bool = true;
- else if (current_img.attr('resize').indexOf('x') < 0)
- if (width > height)
- height_bool = true;
- else
- width_bool = true;
+ showSidebar: function(){
+ this.inner.show('slow');
+ this.toggle_text.show('slow');
+ this.sidebar.removeClass('hide');
+ this.toggle.css('height','');
+ this.content.css('margin-left','225px');
- var link = jQuery('<a class="magnifier" href="' + this.src + '" target="_blank"><img src="/shared/cms/images/icon/magnifier.gif" width="13" height="13" alt="magnifier"/></a>').get()[0];
+ },
- if(height_bool)
- {
- current_img.height(size);
- }
- else if (width_bool)
- {
- current_img.width(size);
- }
+ hideSidebar: function(){
+ this.inner.hide('slow');
+ this.toggle_text.hide('slow');
+ this.sidebar.addClass('hide');
+ this.toggle.height(jQuery('body').height()-53);
+ this.sidebar.height(jQuery('body').height()-40);
+ this.content.css('margin-left','38px');
+ },
- jQuery(link).css('top', current_img.height() - 13);
- jQuery(link).css('left', current_img.width() - 16);
- current_img.css({position : 'static', top : '0'});
- current_img.before(link);
+ initToggleClick:function(){
+ if (this.initSidebarStatus())
+ this.showSidebar();
+ else
+ this.hideSidebar();
- });
+ this.setToggleCookie();
- //duplicating h1 popup in title
- jQuery('.popup h1').each(
- function()
- {
- document.title = jQuery(this).text();
- }
- );
+ return false;
+ },
+ setToggleCookie: function(){
+ if(Limb.cookie('sidebar_toggle') == 1)
+ Limb.cookie('sidebar_toggle', 0);
+ else
+ Limb.cookie('sidebar_toggle', 1);
+ },
+
+ _initBehavior: function(){
+ jQuery('.sidebar_toggle .arrow').click(this.initToggleClick.bind(this));
+ }
+
+});
+
+
+function initDocumentStructure(){
+ var container = jQuery('#container');
+ var sidebar = jQuery('#sidebar');
+ container.css({
+ position:'absolute',
+ overflow: 'auto',
+ top: '38px',
+ left: '0',
+ zIndex: 10
+ });
+ sidebar.css({
+ position:'absolute',
+ overflow: 'auto',
+ top: '38px',
+ left: '0',
+ zIndex: 20
+ });
+
+ var bodyHeight = jQuery('body').height()-40;
+ container.height(bodyHeight);
+ sidebar.height(bodyHeight);
+
+};
+
+
+function changed_field_highlighter()
+{
+ jQuery(this).change(function(){jQuery(this).prev('label').css({color: 'green'})});
+}
+
+function initMainMenu(){
//left navigation current item highlight
var url = window.location.toString();
var max = 0;
@@ -384,9 +477,44 @@
if(link)
jQuery(link).parent().attr('class', 'current');
+
//sliding navigation support
if(Limb.isFunction(jQuery.fn.accordion_cp))
jQuery('#main_menu').accordion_cp();
+
+};
+
+
+/*WINDOW READY ==========================================*/
+jQuery(window).ready(function(){
+ initDocumentStructure();
+ jQuery(window).resize(initDocumentStructure);
+
+ jQuery('.button').wrap('<span class="button_wrapper"></span>');
+
+ new CMS.SidebarToggle('sidebar_toggle');
+
+ // Fiter up/down sliding control
+ new CMS.Filter('filter');
+
+ jQuery('.message_error .show_hidden').bind('click', control_error);
+
+ jQuery('img[@src$=.png], .shadow_bottom span, .shadow_left span, .shadow_right span').ifixpng();
+
+ initImgResize();
+
+ //resized images
+
+ //duplicating h1 popup in title
+ jQuery('.popup h1').each(
+ function()
+ {
+ document.title = jQuery(this).text();
+ }
+ );
+
+ initMainMenu();
+
});
Limb.namespace('rt.Util');
Modified: 3.x/trunk/limb/cms/shared/styles/cp.css
===================================================================
--- 3.x/trunk/limb/cms/shared/styles/cp.css 2007-10-31 11:59:44 UTC (rev 6476)
+++ 3.x/trunk/limb/cms/shared/styles/cp.css 2007-11-01 07:56:41 UTC (rev 6477)
@@ -12,7 +12,6 @@
a:focus { outline: none; }
/*TAGS*/
- * {vertical-align:middle;}
h1{font:bold 2.1em Arial; color:#010101; margin:15px 0 20px;padding: 0;}
#header_block h1 {font:bold 2em Arial;margin:0 0 20px;}
.popup h1 {margin:0 24px;padding:10px 0 0;}
@@ -26,8 +25,8 @@
ul {margin:0;padding: 10px 20px;}
table {empty-cells:show;border-spacing:0;border-collapse:collapse;}
table td {padding:0;vertical-align:top;}
- input {font:1.1em Arial;}
- select {font:1.1em Arial;}
+ input {font:1.1em Arial;margin:0 3px;vertical-align:middle;}
+ select {font:1.1em Arial;vertical-align:middle;}
label {font:bold 1em Arial;color:#000}
input {margin:0 3px;}
@@ -35,18 +34,20 @@
/*FONT*/
body {font:62.5%/1.5 Arial;color:#000;}
table, td, th, ul {font-size: 1em;}
+ #admin_panel {font:1.3em/1.5 Arial;color:#fff;}
+ #admin_panel a {color:#fff;}
+ #admin_panel #user_data, #admin_panel #user_data a {font:1em/38px Arial;}
#content_block {font:1.1em Arial;color:#000;}
#header_block {font:1.1em Arial;}
#login_form #form_body label {font:1.3em Arial;color:#000}
#login_form #form_body .input {font:bold 1.3em Arial;}
- #main_menu dt {font:1.5em/24px Arial;color:#000}
+ #main_menu dt {font:1.3em/24px Arial;color:#000}
#main_menu dt span.current {color:#fff}
#main_menu li a{font:1.1em Arial;color:#000;text-decoration:none;}
#main_menu li a:hover{text-decoration: underline;}
#main_menu li.current a{color:#fff}
- #top {font:1.3em/1.5 Arial;color:#fff;}
- #top a {color:#fff;}
+
.create, .add {font:bold 1.1em/18px Arial;color:#0c4ea6;}
.active_filter, .active_filter_bottom {font:bold 1em Arial;color:#333;text-decoration:none;}
.notify_zone {font:1.2em Arial;}
@@ -57,11 +58,13 @@
.bookmarks .active a {color:#fff;}
.bookmarks .active a:hover {text-decoration:none;}
.list td, .list th{font:1.1em Arial}
+ .form_buttons label, input {font-size:12px;}
.popup small {font:0.9em Arial;color:666666}
.popup {font:0.7em Arial;}
- .form_buttons label, input {font-size:12px;}
+ .sidebar_toggle {font:bold 1.1em/1 Arial;color:#000;}
+
/*MISC*/
.notify_zone {position:relative;clear:both;margin:10px 0 25px;padding:13px 16px;background: #dff6dd;border:1px solid #c4e4b1;overflow:hidden;_height:1%;_overflow:visible;}
.notify_zone .close {position:absolute;right:10px;padding:0 16px 0 0;background: url(../images/icon/close.gif) no-repeat right center;}
@@ -81,77 +84,29 @@
.width100 {width:98%;}
.yes {background: url(../images/marker/yes.gif) no-repeat left top;padding:3px 0 0 20px;}
-/*MESSAGE ERROR*/
- .message_error {margin:0 15px -40px;}
- .message_error .border_c .content {padding:1px 0;}
- .message_error .title {background: #fff;padding:0 3px;color:#0c4ea6;position:relative;left:9;z-index:2}
- .message_error ol {margin: 0 0 0 10px;padding:10px;}
- .message_error .border_h, .message_error .border_c, .message_error .border_b {position:relative;top:-13px;z-index:1}
- .show_hidden {float:right;cursor:pointer;position:relative;right:10px;top:5px;z-index:2}
-/*BOOKMARKS*/
- .bookmarks {list-style:none;margin:0 0 0 24px;padding:10px 0 0 0;}
- .bookmarks li {background:#eeeeee url(../images/bgr/bookmarks/left.gif) no-repeat left top;float:left;margin:0 2px 0 0;padding:0;height:23px;cursor:pointer}
- .bookmarks a {background:url(../images/bgr/bookmarks/right.gif) no-repeat right top;padding:3px 15px 4px;display:block;}
- .bookmarks .active {background:#7d7d7d url(../images/bgr/bookmarks/current_left.gif) no-repeat left top;}
- .bookmarks .active a {background:url(../images/bgr/bookmarks/current_right.gif) no-repeat right top;}
- .bookmarks_content {border:1px solid #ddd;border-top:3px solid #7d7d7d;border-bottom:0px;min-height:320px;clear:both;margin:0 15px 0;padding:10px 10px 1px;overflow:auto}
- *html .bookmarks_content {height:320px;overflow:visible}
- .bookmarks_content .left_side {width:400px;float:left;}
- .bookmarks_content .right_side {width:400px;float:right;}
+ /*BOOKMARKS*/
+ .bookmarks {list-style:none;margin:0 0 0 24px;padding:10px 0 0 0;}
+ .bookmarks li {background:#eeeeee url(../images/bgr/bookmarks/left.gif) no-repeat left top;float:left;margin:0 2px 0 0;padding:0;height:23px;cursor:pointer}
+ .bookmarks a {background:url(../images/bgr/bookmarks/right.gif) no-repeat right top;padding:3px 15px 4px;display:block;}
+ .bookmarks .active {background:#7d7d7d url(../images/bgr/bookmarks/current_left.gif) no-repeat left top;}
+ .bookmarks .active a {background:url(../images/bgr/bookmarks/current_right.gif) no-repeat right top;}
+ .bookmarks_content {border:1px solid #ddd;border-top:3px solid #7d7d7d;border-bottom:0px;min-height:320px;clear:both;margin:0 15px 0;padding:10px 10px 1px;overflow:auto}
+ *html .bookmarks_content {height:320px;overflow:visible}
+ .bookmarks_content .left_side {width:400px;float:left;}
+ .bookmarks_content .right_side {width:400px;float:right;}
-/*BORDER*/
- .border_h {background: url(../images/bgr/border/hor.gif) repeat-x left top;display:block;height:4px;font-size:0;margin-top:5px;}
- .border_h .l {background: url(../images/bgr/border/lt.gif) no-repeat left top;float:left;width:4px;height:4px}
- .border_h .r {background: url(../images/bgr/border/rt.gif) no-repeat left top;float:right;width:4px;height:4px}
- .border_c {background: url(../images/bgr/border/ver.gif) repeat-y left top;padding-left: 9px;}
- .border_c .content {background: url(../images/bgr/border/ver.gif) repeat-y right top;padding: 0 9px 14px 0;;}
- .border_c .content .title {background: #fff;position:relative;top:-11px;display:inline;padding:0 3px;color:#0c4ea6}
- .border_b {background: url(../images/bgr/border/hor.gif) repeat-x left bottom;display:block;height:4px;font-size:0;margin-bottom:20px}
- .border_b .l {background: url(../images/bgr/border/lb.gif) no-repeat left top;float:left;width:4px;height:4px;}
- .border_b .r {background: url(../images/bgr/border/rb.gif) no-repeat left top;float:right;width:4px;height:4px}
+ /*BORDER*/
+ .border_h {background: url(../images/bgr/border/hor.gif) repeat-x left top;display:block;height:4px;font-size:0;margin-top:5px;}
+ .border_h .l {background: url(../images/bgr/border/lt.gif) no-repeat left top;float:left;width:4px;height:4px}
+ .border_h .r {background: url(../images/bgr/border/rt.gif) no-repeat left top;float:right;width:4px;height:4px}
+ .border_c {background: url(../images/bgr/border/ver.gif) repeat-y left top;padding-left: 9px;}
+ .border_c .content {background: url(../images/bgr/border/ver.gif) repeat-y right top;padding: 0 9px 14px 0;;}
+ .border_c .content .title {background: #fff;position:relative;top:-11px;display:inline;padding:0 3px;color:#0c4ea6}
+ .border_b {background: url(../images/bgr/border/hor.gif) repeat-x left bottom;display:block;height:4px;font-size:0;margin-bottom:20px}
+ .border_b .l {background: url(../images/bgr/border/lb.gif) no-repeat left top;float:left;width:4px;height:4px;}
+ .border_b .r {background: url(../images/bgr/border/rb.gif) no-repeat left top;float:right;width:4px;height:4px}
-/*PAGER*/
- .pager {clear:both;height:19px;margin:-40px 0 10px;padding:0 10px;text-align:right;font:1.1em Arial;color:#7d7d7d;}
- .pager b {background: #7d7d7d;font:bold 1em Arial;color:#fff;padding:1px 4px 1px 5px;margin:0 3px;}
- .pager a {font:1em Arial;color:#00529b;vertical-align:middle;margin:0 3px;}
-
-/*LAYOUT*/
-
- /*TOP*/
- #top {background:#31374f url(../images/bgr/header.gif) repeat left top;width:100%;float:left;}
- #top #logo {margin:5px 0 8px 60px;float:left;}
- #top .jip_button {background: url(../images/marker/jip.gif) no-repeat left center;float:left;margin:7px 0 0 75px;padding:2px 0 4px 22px;}
- #top #user_data {float:right;margin:0 15px 0;}
- #top #user_data .name, #top #user_data .profile {background: url(../images/bgr/user_data.gif) repeat-y right top;float:left;margin:0 5px;padding:8px 14px 10px 0;}
- #top #user_data .logout {float:left;padding:8px 0 10px 0;}
-
- /*DASHBOARD*/
- #dashboard {border:1px solid #ddd;border-top:3px solid #7d7d7d;margin:25px 15px 20px 20px;padding:1px 10px 1px;overflow:hidden;}
- #dashboard h2 {background: url(../images/bgr/dashboard.section.gif) repeat left top;padding:0;margin:0 0 0 0;}
- #dashboard h2 span {background: url(../images/bgr/dashboard.section.right.gif) no-repeat right top;display:block;margin:0;padding:10px 7px 5px;}
- #dashboard .section {border:1px solid #e4e2e2;border-top:0 none;padding:10px 7px 20px;margin:0 0 20px 0;}
- #dashboard .add {background: url(../images/bgr/create.gif) no-repeat left center;padding:3px 0 0px 25px;margin-bottom:10px;display:block;}
-
- /*CONTENT*/
- #center {margin:20px 20px 0;padding:0 0 20px;}
-
- /*HEADER CONTEXT*/
- #header_block {padding:0 10px 1px 10px;}
- #header_block .header_actions {margin:0 0 20px;overflow:hidden;_height:1%;_overflow:visible;}
-
- /*FILTER*/
- .filter, .filter_bottom{clear:both;margin:0;padding:0;overflow:hidden;_height:1%;_overflow:visible;}
- .filter_bottom {margin:0 0 50px;}
- .filter form, .filter_bottom form {padding:10px;border:1px solid #ddd;border-width:1px 1px 0;clear:both;}
- .filter_bottom form {border-width:0 1px 1px;clear:both;}
- .active_filter {float:right;margin:0 10px 0 0;padding:0 0 0 8px;background: url(../images/bgr/filter.gif) no-repeat left top;cursor:pointer;}
- .active_filter span {display:block;padding:5px 18px 5px 0;background: url(../images/bgr/filter_arrow_t.gif) no-repeat right top;}
- .active_filter span.show {background: url(../images/bgr/filter_arrow_b.gif) no-repeat right top;}
- .active_filter_bottom {float:right;margin:0 10px 0 0;padding:0 0 0 8px;background: url(../images/bgr/filter_bottom.gif) no-repeat left bottom;cursor:pointer;}
- .active_filter_bottom span {display:block;padding:5px 18px 5px 0;background: url(../images/bgr/filter_bottom_arrow_b.gif) no-repeat right bottom;}
- .active_filter_bottom span.show {background: url(../images/bgr/filter_bottom_arrow_t.gif) no-repeat right bottom;}
-
/*LIST*/
.list {clear:both;padding:0;margin:0 0 60px;_height:1%}
.popup .list {margin:0 10px;}
@@ -159,7 +114,7 @@
.list tr.even {background-color:#f9f9f9;}
.list table {width:100%;border-right:1px solid #bbbbbb;}
.list th {padding:13px 8px;background: #e5e5e5 url(../images/bgr/th_border.gif) repeat-y left top;border:1px solid #bbbbbb;border-width:1px 0;text-align:left;white-space:nowrap;}
- .list td {padding:5px 8px;background: url(../images/bgr/td_border.gif) repeat-y left top;border-top:1px solid #dddddd;text-align:left;vertical-align:middle;}
+ .list td {padding:5px 8px;background-image: url(../images/bgr/td_border.gif);background-position:left top;background-repeat:repeat-y;border-top:1px solid #dddddd;text-align:left;vertical-align:middle;}
.list td.actions {white-space:nowrap}
.list td.actions img{vertical-align:middle;margin:5px;white-space:nowrap}
.list th.selector {width:23px;}
@@ -170,7 +125,101 @@
.list .list_actions {background: #e5e5e5;border:1px solid #bbb;padding:3px 8px;font-size:0;clear:both}
.list .list_actions .button_wrapper {margin:0 10px 0 0;}
- /*LOGIN FORM*/
+
+ /*FILTER*/
+ .filter, .filter_bottom{clear:both;margin:0;padding:0;overflow:hidden;_height:1%;_overflow:visible;}
+ .filter_bottom {margin:0 0 50px;}
+ .filter form, .filter_bottom form {padding:10px;border:1px solid #ddd;border-width:1px 1px 0;clear:both;}
+ .filter_bottom form {border-width:0 1px 1px;clear:both;}
+ .active_filter {float:right;margin:0 10px 0 0;padding:0 0 0 8px;background: url(../images/bgr/filter.gif) no-repeat left top;cursor:pointer;}
+ .active_filter span {display:block;padding:5px 18px 5px 0;background: url(../images/bgr/filter_arrow_t.gif) no-repeat right top;}
+ .active_filter span.show {background: url(../images/bgr/filter_arrow_b.gif) no-repeat right top;}
+ .active_filter_bottom {float:right;margin:0 10px 0 0;padding:0 0 0 8px;background: url(../images/bgr/filter_bottom.gif) no-repeat left bottom;cursor:pointer;}
+ .active_filter_bottom span {display:block;padding:5px 18px 5px 0;background: url(../images/bgr/filter_bottom_arrow_b.gif) no-repeat right bottom;}
+ .active_filter_bottom span.show {background: url(../images/bgr/filter_bottom_arrow_t.gif) no-repeat right bottom;}
+
+ /*MESSAGE ERROR*/
+ .message_error {margin:0 15px -40px;}
+ .message_error .border_c .content {padding:1px 0;}
+ .message_error .title {background: #fff;padding:0 3px;color:#0c4ea6;position:relative;left:9;z-index:2}
+ .message_error ol {margin: 0 0 0 10px;padding:10px;}
+ .message_error .border_h, .message_error .border_c, .message_error .border_b {position:relative;top:-13px;z-index:1}
+ .show_hidden {float:right;cursor:pointer;position:relative;right:10px;top:5px;z-index:2}
+
+
+ /*PAGER*/
+ .pager {float:right;clear:both;height:19px;margin:-40px 0 10px;padding:0 10px;text-align:right;font:1.1em Arial;color:#7d7d7d;position:relative;z-index:20;}
+ .pager b {background: #7d7d7d;font:bold 1em Arial;color:#fff;padding:1px 4px 1px 5px;margin:0 3px;vertical-align:middle;}
+ .pager a {font:1em Arial;color:#00529b;vertical-align:middle;margin:0 3px;vertical-align:middle;}
+ .pager a img {vertical-align:middle;}
+
+
+
+/*LAYOUT*/
+
+ /*HEADER =======================================================================================*/
+
+ /*ADMIN PANEL*/
+ #admin_panel {background:#31374f url(../images/bgr/header.gif) repeat left top;height:38px;overflow:hidden;}
+ #admin_panel #logo_project {margin:5px 0 8px 60px;float:left;}
+ #admin_panel .jip_button {background: url(../images/marker/jip.gif) no-repeat left center;float:left;margin:7px 0 0 75px;padding:2px 0 4px 22px;}
+ #admin_panel #user_data {float:right;margin:0 15px 0;}
+ #admin_panel #user_data .name, #admin_panel #user_data .profile {float:left;margin:0 0 0 14px;padding:0 16px 0 0;background: url(../images/bgr/user_data.gif) repeat-y right top;}
+ #admin_panel #user_data .logout {float:left;margin:0 0 0 14px;}
+
+ /*CONTENT ======================================================================================*/
+
+
+ /*=CONTENT*/
+ #wrapper {position:relative;min-height:100%;_height:100%;}
+ #container {float: right;width:100%;}
+ #content {margin: 25px 15px 0 225px;_height:1%;}
+
+
+ /*HEADER CONTEXT*/
+ #header_block {padding:0 10px 1px 10px;position:relative;z-index:10;}
+ #header_block .header_actions {margin:0 0 20px;overflow:hidden;_height:1%;_overflow:visible;}
+
+
+ /*DASHBOARD*/
+ #dashboard {border:1px solid #ddd;border-top:3px solid #7d7d7d;margin:0 0 20px 0;padding:1px 10px 1px;overflow:hidden;}
+ #dashboard h2 {background: url(../images/bgr/dashboard.section.gif) repeat left top;padding:0;margin:0 0 0 0;}
+ #dashboard h2 span {background: url(../images/bgr/dashboard.section.right.gif) no-repeat right top;display:block;margin:0;padding:10px 7px 5px;}
+ #dashboard .section {border:1px solid #e4e2e2;border-top:0 none;padding:10px 7px 20px;margin:0 0 20px 0;}
+ #dashboard .add {background: url(../images/bgr/create.gif) no-repeat left center;padding:3px 0 0px 25px;margin-bottom:10px;display:block;}
+
+
+ /*SIDEBAR ======================================================================================*/
+ #sidebar {float: left;width: 225px;margin: 0 -225px 0 0;}
+ #sidebar .sidebar_toggle {width:198px;height:auto;overflow:hidden;_height:1%;_overflow:visible;margin:1px 0 1px 1px;padding:5px 0;background-color:#E5E5E5;border:1px solid #bbbbbb;}
+ #sidebar.hide .sidebar_toggle {position:absolute;top:0;padding:5px;width:10px;}
+ #sidebar .sidebar_toggle .text {margin:0 10px 0 6px;float:left;}
+ #sidebar .sidebar_toggle .arrow {float:right;display:block;width:10px;height:9px;margin:1px 6px 0 0;background: url(../images/icon/arrow.gif) no-repeat left top;}
+ #sidebar .sidebar_toggle .arrow:hover {background-image: url(../images/icon/arrow_hover.gif);}
+ #sidebar.hide .sidebar_toggle .arrow {background-position: right top;float:none;margin:1px 0 0;}
+
+ /*MENU*/
+ #main_menu {margin:20px 0 0 15px;width:186px}
+ #main_menu dt {background:#fcdeb3 url(../images/menu/bg.gif) no-repeat left top;margin-bottom:2px;cursor:pointer;}
+ #main_menu dt.current {background:#7d7d7d url(../images/menu/current.gif) no-repeat left top;}
+ #main_menu span {display:block;padding:0 10px 0 28px}
+ #main_menu .content span{background: url(../images/menu/content.gif) no-repeat 7px center;}
+ #main_menu .content.current span{background: url(../images/menu/content_current.gif) no-repeat 7px center;}
+ #main_menu .interactive span{background: url(../images/menu/interactive.gif) no-repeat 7px center;}
+ #main_menu .interactive.current span{background: url(../images/menu/interactive_current.gif) no-repeat 7px center;}
+ #main_menu .guests span{background: url(../images/menu/guests.gif) no-repeat 8px center;}
+ #main_menu .guests.current span{background: url(../images/menu/guests_current.gif) no-repeat 8px center;}
+ #main_menu .other span{background: url(../images/menu/other.gif) no-repeat 7px center;}
+ #main_menu .other.current span{background: url(../images/menu/other_current.gif) no-repeat 7px center;}
+ #main_menu .banners span{background: url(../images/menu/banners.gif) no-repeat 7px center;}
+ #main_menu ul {list-style-type:none;margin:0 0 0 21px;padding:0;font-size:0;}
+ #main_menu li {margin-bottom:3px;font-size:0;}
+ #main_menu li a {display:block;padding:3px 0 4px 7px;font-size:12px;}
+ #main_menu li.current {background:#7d7d7d url(../images/menu/sub_current_bottom.gif) no-repeat left bottom;}
+ #main_menu li.current a {background: url(../images/menu/sub_current.gif) no-repeat left top;}
+
+
+ /*LOGIN FORM ===================================================================================*/
#login_form {background:#d9d9d9 url(../images/bgr/admin.gif) repeat-x left top;}
#login_form .notify_zone {margin:10px 0 0;}
#login_form_wrapper {position:absolute;left:50%;top:50%;margin:-135px 0 0 -200px;_height:260px;}
@@ -195,25 +244,6 @@
#login_form .shadow_right .center {top:19px;bottom:18px;left:0;width:9px;height:expression(parseFloat(this.parentNode.offsetHeight)-37);background: url(../images/bgr/shadow/login_r.png) repeat-y left top;}
#login_form .shadow_right .bottom {bottom:0;left:0;width:9px;height:18px;background: url(../images/bgr/shadow/login_rb.png) no-repeat left bottom;}
- /*MENU*/
- #main_menu {margin:20px 9px 0 15px;}
- #main_menu dt {background:#fcdeb3 url(../images/menu/bg.gif) no-repeat left top;margin-bottom:2px;cursor:pointer;}
- #main_menu dt.current {background:#7d7d7d url(../images/menu/current.gif) no-repeat left top;}
- #main_menu span {display:block;padding:0 10px 0 28px}
- #main_menu .content span{background: url(../images/menu/content.gif) no-repeat 7px center;}
- #main_menu .content.current span{background: url(../images/menu/content_current.gif) no-repeat 7px center;}
- #main_menu .interactive span{background: url(../images/menu/interactive.gif) no-repeat 7px center;}
- #main_menu .interactive.current span{background: url(../images/menu/interactive_current.gif) no-repeat 7px center;}
- #main_menu .guests span{background: url(../images/menu/guests.gif) no-repeat 8px center;}
- #main_menu .guests.current span{background: url(../images/menu/guests_current.gif) no-repeat 8px center;}
- #main_menu .other span{background: url(../images/menu/other.gif) no-repeat 7px center;}
- #main_menu .other.current span{background: url(../images/menu/other_current.gif) no-repeat 7px center;}
- #main_menu .banners span{background: url(../images/menu/banners.gif) no-repeat 7px center;}
- #main_menu ul {list-style-type:none;margin:0 0 0 21px;padding:0;}
- #main_menu li {margin-bottom:3px}
- #main_menu li a {display:block;padding:3px 0 4px 7px;}
- #main_menu li.current {background:#7d7d7d url(../images/menu/sub_current.gif) no-repeat left top;}
- #main_menu li.current a {background: url(../images/menu/sub_current_bottom.gif) no-repeat left bottom;}
/*FORM*/
.filter label {padding:0 5px 0 0;}
Modified: 3.x/trunk/limb/cms/template/_cms/menu.html
===================================================================
--- 3.x/trunk/limb/cms/template/_cms/menu.html 2007-10-31 11:59:44 UTC (rev 6476)
+++ 3.x/trunk/limb/cms/template/_cms/menu.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -4,10 +4,7 @@
<list:list id='navigation'>
<list:item>
<dt class='{$id}'><span>{$title}</span></dt>
- <dd>
- <list:list from='children'>
- <ul><list:item><li><a href='{$url}'>{$title}</a></li></list:item></ul></list:list>
- </dd>
+ <dd><list:list from='children'><ul><list:item><li><a href='{$url}'>{$title}</a></li></list:item></ul></list:list></dd>
</list:item>
</list:list>
</dl>
Modified: 3.x/trunk/limb/cms/template/_cms/page.html
===================================================================
--- 3.x/trunk/limb/cms/template/_cms/page.html 2007-10-31 11:59:44 UTC (rev 6476)
+++ 3.x/trunk/limb/cms/template/_cms/page.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -1,5 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/strict.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Powered by LIMB | http://www.limb-project.com/ -->
<!-- Designed by BIT | http://www.bit-creative.com/ -->
<core:SET title="Панель управления">
@@ -13,50 +12,27 @@
<core:INCLUDE file='_cms/js.html'/>
<core:INCLUDE file='_cms/extjs.html'/>
<script type="text/javascript" src="/shared/cms/js/accordion.js"></script>
- <script type="text/javascript">
- cpLayout = function(){
- return {
- init : function(){
- var layout = new Ext.BorderLayout(document.body, {
- west: { split:false, initialSize: 210, titlebar: true, collapsible: true},
- north: { split:false, initialSize: 38, collapsible:false, titlebar: false },
- center: { autoScroll: true, titlebar: false, fitToFrame: false}
- });
-
- layout.beginUpdate();
- layout.add('west', new Ext.ContentPanel('left', {title: 'Navigation', fitToFrame:true, closable:false}));
- layout.add('center', new Ext.ContentPanel('center'));
- layout.add('north', new Ext.ContentPanel('top'));
- layout.endUpdate();
- layout.restoreState();
- }
- };
-
- }();
-
- Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
- Ext.EventManager.onDocumentReady(cpLayout.init, cpLayout, true);
- </script>
</head>
<body>
+<div id="wrapper">
-<!--BEGIN: header-->
-<div id='top'>
- <img src="/shared/cms/images/limb_admin.gif" width='94' height='25' alt='LIMB' id='logo'/>
+ <div id='admin_panel'>
+ <img src="/shared/cms/images/limb_admin.gif" width='94' height='25' alt='LIMB' id='logo_project'/>
+ <core:INCLUDE file='_cms/user_data.html'/>
+ </div>
- <core:INCLUDE file='_cms/user_data.html'/>
-</div>
-<!--END: header-->
+ <div id='container'>
+ <div id="content">
+ <core:PLACEHOLDER id='content_zone'/>
+ </div>
+ </div>
-<!--BEGIN:[ body ]-->
-<div id='center'>
- <core:PLACEHOLDER id='content_zone'/>
-</div>
-<!--END:[ body ]-->
+ <div id='sidebar'>
+ <core:INCLUDE file='_cms/menu.html'/>
+ </div>
-<div id='left'>
- <core:INCLUDE file='_cms/menu.html'/>
</div>
+
</body>
</html>
Modified: 3.x/trunk/limb/cms/template/admin_documents/form_fields.html
===================================================================
--- 3.x/trunk/limb/cms/template/admin_documents/form_fields.html 2007-10-31 11:59:44 UTC (rev 6476)
+++ 3.x/trunk/limb/cms/template/admin_documents/form_fields.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -37,7 +37,7 @@
<div class="field">
<label for="annotation">Аннотация</label>
- <textarea name="annotation" title='Аннотация' class='width100' style='height:95px'></textarea>
+ <textarea name="annotation" title='Аннотация'></textarea>
</div>
</div>
Added: 3.x/trunk/limb/cms/template/example/create.html
===================================================================
--- 3.x/trunk/limb/cms/template/example/create.html (rev 0)
+++ 3.x/trunk/limb/cms/template/example/create.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -0,0 +1,15 @@
+<core:wrap file="_cms/popup.html" in="content_zone">
+
+ <form id='example_form' name='example_form' method='post' enctype="multipart/form-data" runat='server'>
+
+ <h1>Create example</h1>
+
+ <core:include file='_cms/form_errors.html'/>
+
+ <core:include file='example/form_fields.html'/>
+
+ <core:include file='_cms/create_common_elements.html'/>
+
+ </form>
+
+</core:wrap>
Added: 3.x/trunk/limb/cms/template/example/delete.html
===================================================================
--- 3.x/trunk/limb/cms/template/example/delete.html (rev 0)
+++ 3.x/trunk/limb/cms/template/example/delete.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -0,0 +1,31 @@
+<core:wrap file="_cms/popup.html" in="content_zone">
+
+ <h1 class='delete'>Delete example</h1>
+
+ <form id='delete_form' name='delete_form' method='post' runat='server' class="list">
+
+ <ar:fetch class_path='ExampleObject' target="items_to_delete">
+ <fetch:param record_ids="{$#request.ids}">
+ </active_record:fetch>
+
+ <table>
+ <tr>
+ <th class='selector'><core:INCLUDE file='_cms/selector.html'></th>
+ <th>Name</th>
+ </tr>
+ <list:list id='items_to_delete'>
+ <list:ITEM>
+ <tr class='{$Parity}'>
+ <td><input type='checkbox' name='ids[]' value='{$id}' checked='true'/></td>
+ <td>{$title}</td>
+ </tr>
+ </list:ITEM>
+ </list:LIST>
+ </table>
+
+ <core:include file='_cms/delete_common_elements.html'/>
+
+ </form>
+
+
+</core:wrap>
Added: 3.x/trunk/limb/cms/template/example/display.html
===================================================================
--- 3.x/trunk/limb/cms/template/example/display.html (rev 0)
+++ 3.x/trunk/limb/cms/template/example/display.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -0,0 +1,80 @@
+ <div id="header_block">
+
+ <h1>Example</h1>
+
+ <div class="header_actions">
+ <a href='#'>Create example</a>
+ </div>
+
+ </div>
+
+ <div id="content_block">
+
+ <ar:fetch class_path='ExampleObject' target='list' order='title' navigator='pager'/>
+ <core:include file='_cms/pager.html'/>
+
+ <core:INCLUDE file='_cms/notify_zone.html'/>
+
+ <div class="filter">
+
+ <form id='filter_form' name='filter_form' runat='server' method='post'>
+
+ <div class="field">
+ <label for='status'>Search:</label>
+ <input type="text" name="Search" id="Search" />
+
+ <input type="submit" name='submitted' value='Применить' class='button'>
+ </div>
+
+ </form>
+
+ </div>
+
+
+ <form name='list_form' method='post' class="list">
+
+ <div class='list_actions'>
+ <route_url_set field='delete_url' params="action:delete" />
+ <input type="button" class='button' value='Delete' onclick='Limb.Form.submitPopup(this.form, "{$delete_url}");return false;'/>
+
+ <route_url_set field='approve_url' params="action:approve" />
+ <input type="button" class='button' value='Approve' onclick='Limb.Form.submit(this.form, "{$approve_url}");return false;'/>
+ </div>
+
+ <table>
+ <tr>
+ <th class='selector'><core:INCLUDE file='_cms/selector.html'></th>
+ <th width='100%'>Name</th>
+ <th>Actions</th>
+ </tr>
+ <list:list id='list'>
+ <list:item>
+ <tr class='{$Parity}'>
+ <td class='selector'><input type='checkbox' name='ids[]' value='{$id}' runat='client'/></td>
+ <td>{$title}</td>
+ <td class='actions'>
+ <route_url params="controller:admin_city,action:edit,id:{$id}" extra='?popup=1' alt='Edit'><img src='/shared/cms/images/icon/action/edit.gif' width='16' height='17' alt='Edit'/></route_url>
+ <route_url params="controller:admin_city,action:delete" extra='?popup=1&ids[]={$id}' alt='Delete'><img src='/shared/cms/images/icon/action/delete.gif' width='14' height='17' alt='Delete'/></route_url>
+ </td>
+ </tr>
+ </list:item>
+ </list:list>
+ </table>
+
+ <div class='list_actions'>
+
+ <route_url_set field='delete_url' params="controller:admin_city,action:delete" />
+ <input type="button" class='button' value='Delete' onclick='Limb.Form.submitPopup(this.form, "{$delete_url}");return false;'/>
+
+ <route_url_set field='approve_url' params="action:" />
+ <input type="button" class='button' value='Approve' onclick='Limb.Form.submit(this.form, "{$approve_url}");return false;'/>
+
+ </div>
+
+ </form>
+
+ <core:include file='_cms/pager_mirror.html'/>
+
+ </div>
+
+</core:wrap>
Added: 3.x/trunk/limb/cms/template/example/edit.html
===================================================================
--- 3.x/trunk/limb/cms/template/example/edit.html (rev 0)
+++ 3.x/trunk/limb/cms/template/example/edit.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -0,0 +1,13 @@
+<core:wrap file="_cms/popup.html" in="content_zone">
+
+ <form id='example_form' name='example_form' method='post' enctype="multipart/form-data" runat='server'>
+
+ <h1>Edit example</h1>
+
+ <core:include file='example/form_fields.html'/>
+
+ <core:include file='_cms/edit_common_elements.html'/>
+
+ </form>
+
+</core:wrap>
Added: 3.x/trunk/limb/cms/template/example/form_fields.html
===================================================================
--- 3.x/trunk/limb/cms/template/example/form_fields.html (rev 0)
+++ 3.x/trunk/limb/cms/template/example/form_fields.html 2007-11-01 07:56:41 UTC (rev 6477)
@@ -0,0 +1,32 @@
+<core:include file='_cms/form_errors.html'/>
+<div class='tabs'>
+
+ <ul>
+ <li id='properties'><a>Property</a></li>
+ <li id='content'><a>Text</a></li>
+ </ul>
+
+ <div id="tab_properties">
+
+ <div class="required field">
+ <label for="identifier">Identifier</label>
+ <input type="text" name="identifier" id='identifier' size="40" title='Identifier'/>
+ </div>
+
+ <div class="required field">
+ <label for="title">Title</label>
+ <input type="text" name="title" size="40" title='Title'/>
+ </div>
+
+ <div class="field">
+ <label for="annotation">Annotation</label>
+ <textarea name="annotation" title='Annotation'></textarea>
+ </div>
+
+ </div>
+
+ <div id="tab_content">
+ <wysiwyg id='content' name='content' width='100%' height='310' title="Content"></wysiwyg>
+ </div>
+
+</div>
\ No newline at end of file
More information about the limb-svn
mailing list