Hi all, i've done some little mods to my BackupPC 3.2.0 installations. This allow to: 1. give fixed position to the Navigation Menu - always on left-top (also when scrolling down page); it works with Firefox, Opera but not with IE (that does not handle position:fixed style); 2. allow you to collapse menu entry (host, host list, server) - it works with every browser;
To do that, i've: a. modified /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm b. modifies /usr/share/backuppc/image/BackupPC_stnd.css c. created the new utils.js file (that contains only 1 function, for now) in /usr/share/backuppc/image/ In specific: a. look at attached Lib.pm.patch for more information; I've modified the div management, and some subs. To apply this patch: # patch /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm Lib.pm.patch b. look at the BackupPC_stnd.css attached; i've modified some entries, and created a new one (div.logo_top); You need to replace the original file with this new one (of course, make a backup of the original file) c. look at the attached utils.js file; it must be copied into /usr/share/backuppc/image/ folder (remember to chown correctly the file). I can't guarantee my work; anyway I've tested those mods with success. The Lib.pm patch is done for BackupPC 3.2.0, but the specific modifications work also with the previous release. Feel free to report anything. Mirco TO DO: 1. make collapsable also the sections in the Summary pages.
/* * BackupPC standard CSS definitions * * Version 3.2.0, released 26 Mar 2009. * * See http://backuppc.sourceforge.net. * * AUTHOR * Craig Barratt <cbarr...@users.sourceforge.net> * * COPYRIGHT * Copyright (C) 2004-2009 Craig Barratt */ body { font-family:tahoma,arial,sans-serif,helvetica; font-size:10pt; background-color:#ffffff; margin:2px 5px 0px 2px; height:100% } table { border-collapse: collapse; color: #000000; padding: 2px; } h1 { font-family:Trebuchet MS,Trebuchet,tahoma,arial,sans-serif,helvetica; font-size:16pt; color:#000000 } h2 { font-family:Trebuchet MS,Trebuchet,tahoma,arial,sans-serif,helvetica; font-size:12pt; color:#000000 } a { font-family:tahoma,arial,sans-serif,helvetica; color:#3333ff } dt { color:#3333ff } a:hover { color:#cc0000; text-decoration:none } a.NavCurrent { font-weight:bold; } a.navbar { padding-left:5px; padding-right:5px; } .h1 { font-family:Trebuchet MS,Trebuchet,tahoma,arial,sans-serif,helvetica; font-size:16pt; color:#000000; font-weight:bold; background-color:#95B8DB; padding:3px; padding-left:6px; margin-bottom:5px; } .h2 { font-family:Trebuchet MS,Trebuchet,tahoma,arial,sans-serif,helvetica; font-size:12pt; color:#000000; font-weight:bold; background-color:#eeeeee; padding:3px; padding-left:6px; margin-top:3px; margin-bottom:1px; } .tableStnd { font-size:10pt; } .tableheader { font-size:10pt; font-weight:bold; background-color:#eeeeee; } table.sortable a.sortheader { background-color:#eeeeee; font-weight: bold; text-decoration: none; display: block; } .border { font-size:10pt; } .editHeader { font-family:arial,sans-serif; font-size:12pt; color:#000000; font-weight:bold; background-color:#95B8DB; } .editTabSel { font-family:arial,sans-serif; font-size:14pt; color:#000000; font-weight:bold; background-color:#95B8DB; padding:3px; padding-left:6px; margin-bottom:5px; } .editTabNoSel { font-family:arial,sans-serif; font-size:14pt; color:#000000; font-weight:bold; padding:3px; padding-left:6px; margin-bottom:5px; } .editSaveButton { color:#c0c0c0; font-size:14pt; font-weight:bold; } .editError { color:#ff0000; font-weight:bold; } .editComment { font-size:10pt; } .editTextInput { font-family:courier; font-size:10pt; } .fviewheader { font-weight:bold; font-size:9pt; color:#ffffff; background-color:#999999; } .fviewborder { border-left:1px solid #666666; border-bottom:1px solid #000000; border-right:1px solid #666666; background-color:#eeeeee; font-size:9pt; } .fviewon { background-color:#cccccc; } .fviewoff { background-color:#ffffff; } .fview { font-size:9pt; font-family:tahoma,arial,sans-serif,helvetica; text-decoration:none; line-height:15px; } .fviewbold { font-size:9pt; font-family:tahoma,arial,sans-serif,helvetica; text-decoration:none; line-height:15px; font-weight:bold; } .histView { border-bottom:1px solid #000000; border-left:1px solid #000000; background-color:#eeeeee; font-size:10pt; } .histViewMis { border-bottom:1px solid #000000; border-left:1px solid #000000; background-color:#ffdddd; } div.logo_top { position:fixed; top:10; left:5; } div.NavMenu { width:18%; /*margin:0px;*/ font-size:9pt; background-color:#eeeeee; position: fixed; overflow: auto; top:80; left:5; } div.NavMenu a { font-size:9pt; font-family:arial,sans-serif; display:block; margin-left:8px; padding:2px; } div.NavTitle, div.NavTitle td { font-size:12pt; padding-left:10px; background-color:#95B8DB; font-family:Trebuchet MS,Trebuchet,tahoma,arial,sans-serif,helvetica; color:#000000; font-weight:bold; margin-bottom:2px; } #Content { float:right; width:79%; left:20%; top:10px; right:10px; position:absolute; }
utils.js
Description: JavaScript source
Lib.pm.patch
Description: Binary data
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/