minor tweak and new CSS theme
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 26 Aug 2005 23:50:05 +0000 (23:50 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 26 Aug 2005 23:50:05 +0000 (23:50 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@80 8392b6e1-25fa-0310-8288-cc32f8e212ea

conf/BackupPC_lite.css [new file with mode: 0644]
configure.pl
lib/BackupPC/SearchLib.pm

diff --git a/conf/BackupPC_lite.css b/conf/BackupPC_lite.css
new file mode 100644 (file)
index 0000000..80c5403
--- /dev/null
@@ -0,0 +1,172 @@
+/*
+ * BackupPC standard CSS definitions
+ *
+ * Version 2.1.0, released 20 Jun 2004.
+ *
+ * See http://backuppc.sourceforge.net.
+ *
+ * AUTHOR
+ *   Craig Barratt  <cbarratt@users.sourceforge.net>
+ *
+ * COPYRIGHT
+ *   Copyright (C) 2004  Craig Barratt
+ */
+
+body {
+    font-family:arial,sans-serif;
+    font-size:11pt;
+    background-color:#ffffff;
+    margin:2px 5px 0px 2px;
+    height:100%
+}
+
+h1 {
+    font-family:arial,sans-serif;
+    font-size:16pt;
+    color:#000000
+}
+
+h2 {
+    font-family:arial,sans-serif;
+    font-size:12pt;
+    color:#000000
+}
+
+a {
+    font-family:arial,sans-serif;
+    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:arial,sans-serif;
+    font-size:16pt;
+    color:#000000;
+    font-weight:bold;
+    background-color:#99cc33;
+    padding:3px;
+    padding-left:6px;
+    margin-bottom:5px;
+}
+
+.h2 {
+    font-family:arial,sans-serif;
+    font-size:12pt;
+    color:#000000;
+    font-weight:bold;
+    background-color:#ddeeee;
+    padding:3px;
+    padding-left:6px;
+    margin-top:3px;
+    margin-bottom:1px;
+}
+
+.tableStnd {
+    font-size:11pt;
+}
+
+.tableheader {
+    font-size:9pt;
+    font-weight:bold;
+    background-color:#cccccc;
+}
+
+.border {
+    font-size:10pt;
+}
+
+.fviewheader {
+    font-weight:bold;
+    font-size:10pt;
+    color:#ffffff;
+    background-color:#999999;
+}
+
+.fviewborder {
+    border-bottom:1px solid #ffffff;
+    border-left:1px dotted #ffffff;
+    background-color:#dddddd;
+    font-size:11pt;
+}
+
+.fviewon {
+    background-color:#cccccc;
+}
+
+.fviewoff {
+    background-color:#ffffff;
+}
+
+.fview {
+    font-size:9pt;
+    font-family:arial,sans-serif;
+    text-decoration:none;
+    line-height:15px;
+}
+
+.fviewbold {
+    font-size:10pt;
+    font-family:arial,sans-serif;
+    text-decoration:none;
+    line-height:15px;
+    font-weight:bold;
+}
+
+.histView {
+    border-bottom:1px solid #000000;
+    border-left:2px solid #ffffff;
+    background-color:#dddddd;
+    font-size:10pt;
+}
+
+.histViewMis {
+    border-bottom:1px solid #000000;
+    background-color:#ffdddd;
+}
+
+div.NavMenu {
+    width:18%;
+    margin:0px;
+    background-color:#ddeeee;
+}
+
+div.NavMenu a {
+    font-size:10pt;
+    display:block;
+    margin-left:8px;
+    padding:2px;
+}
+
+div.NavTitle {
+    padding-left:10px;
+    background-color:#99cc33;
+    font-family:arial,sans-serif;
+    color:#000000;
+    font-weight:bold;
+    margin-bottom:2px;
+}
+
+#Content {
+    float:right;
+    width:80%;
+    left:20%;
+    top:10px;
+    position:absolute;
+}
index 5d41a72..8afd0ab 100755 (executable)
@@ -556,6 +556,8 @@ if ( $Conf{CgiImageDir} ne "" ) {
     }
     InstallFile("conf/BackupPC_stnd.css",
                "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", 0444, 0);
+    InstallFile("conf/BackupPC_lite.css",
+               "$DestDir$Conf{CgiImageDir}/BackupPC_lite.css", 0444, 0);
 }
 
 printf("Making init.d scripts\n");
index 68e29ba..fd019e7 100644 (file)
@@ -231,7 +231,7 @@ EOF3
               $retHTML .= q{<input type="hidden" value="results" name="search_results">};
        }
        $retHTML .= qq{
-               <table style="fview" border="1" cellspacing="1" cellpadding="3">
+               <table style="fview" border="1" cellspacing="0" cellpadding="3">
                <tr class="tableheader">
        };
 
@@ -357,7 +357,7 @@ sub displayGrid($$$$) {
 
                $retHTML .=
                        qq{<td class="fviewborder" align="right">} . $file->{'sharename'} . qq{</td>} .
-                       qq{<td class="fviewborder"><img src="$Conf{CgiImageDirURL}/icon-$typeStr.gif" alt="$typeStr">&nbsp;} . hilite_html( $file->{'fpath'}, $hilite ) . qq{</td>} .
+                       qq{<td class="fviewborder"><img src="$Conf{CgiImageDirURL}/icon-$typeStr.gif" alt="$typeStr" align="middle">&nbsp;} . hilite_html( $file->{'fpath'}, $hilite ) . qq{</td>} .
                        qq{<td class="fviewborder" align="center">} . restore_link( $typeStr, ${EscURI( $file->{'hname'} )}, $file->{'backupno'}, ${EscURI( $file->{'sname'})}, ${EscURI( $file->{'fpath'} )}, $file->{'backupno'} ) . qq{</td>} .
                        qq{<td class="fviewborder" align="right">} . $file->{'size'} . qq{</td>} .
                        qq{<td class="fviewborder">} . epoch_to_iso( $file->{'date'} ) . qq{</td>} .