[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [685] trunk



Revision: 685
          http://svn.sourceforge.net/ledger-smb/?rev=685&view=rev
Author:   tetragon
Date:     2006-11-22 07:26:58 -0800 (Wed, 22 Nov 2006)

Log Message:
-----------
Adding an images directory

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm
    trunk/LedgerSMB/Sysconfig.pm
    trunk/ledger-smb.conf.default
    trunk/templates/Default-letterhead.html
    trunk/templates/Default-letterhead.tex
    trunk/templates/Estonian-letterhead.html
    trunk/templates/Estonian-letterhead.tex
    trunk/templates/Estonian_UTF8-letterhead.html
    trunk/templates/Estonian_UTF8-letterhead.tex
    trunk/templates/Traditional_Chinese_Big5-letterhead.html
    trunk/templates/Traditional_Chinese_Big5-letterhead.tex
    trunk/templates/Traditional_Chinese_UTF8-letterhead.html
    trunk/templates/Traditional_Chinese_UTF8-letterhead.tex
    trunk/templates/demo/letterhead.html
    trunk/templates/demo/letterhead.tex

Added Paths:
-----------
    trunk/images/

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/LedgerSMB/Form.pm	2006-11-22 15:26:58 UTC (rev 685)
@@ -572,6 +572,7 @@
 
 	my %include = ();
 	my $ok;
+	$self->{images} = "${LedgerSMB::Sysconfig::images}/$self->{templates}";
 
 	if ($self->{language_code}) {
 

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/LedgerSMB/Sysconfig.pm	2006-11-22 15:26:58 UTC (rev 685)
@@ -33,6 +33,9 @@
 # path to user configuration files
 $userspath = "users";
 
+# images base directory
+$images = "images";
+
 # templates base directory
 $templates = "templates";
 
@@ -85,6 +88,7 @@
 $localepath = $config{paths}{localepath} if $config{paths}{localepath};
 $spool = $config{paths}{spool} if $config{paths}{spool};
 $templates = $config{paths}{templates} if $config{paths}{templates};
+$images = $config{paths}{images} if $config{paths}{images};
 
 $gzip = $config{programs}{gzip} if $config{programs}{gzip};
 

Modified: trunk/ledger-smb.conf.default
===================================================================
--- trunk/ledger-smb.conf.default	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/ledger-smb.conf.default	2006-11-22 15:26:58 UTC (rev 685)
@@ -25,6 +25,8 @@
 userspath  = users
 # templates base directory
 templates  = templates
+# images base directory
+images  = images
 # member file
 memberfile = users/members
 localepath = locale/po

Modified: trunk/templates/Default-letterhead.html
===================================================================
--- trunk/templates/Default-letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Default-letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=<?lsmb templates ?>/<?lsmb language_code ?>/logo.png border=0 height=58></th>
+          <th><img src=<?lsmb images ?>/logo.png border=0 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/Default-letterhead.tex
===================================================================
--- trunk/templates/Default-letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Default-letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/<?lsmb language_code ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\

Modified: trunk/templates/Estonian-letterhead.html
===================================================================
--- trunk/templates/Estonian-letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Estonian-letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=../<?lsmb templates ?>/logo.png border=0 width=84 height=58></th>
+          <th><img src=../<?lsmb images ?>/logo.png border=0 width=84 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/Estonian-letterhead.tex
===================================================================
--- trunk/templates/Estonian-letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Estonian-letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\

Modified: trunk/templates/Estonian_UTF8-letterhead.html
===================================================================
--- trunk/templates/Estonian_UTF8-letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Estonian_UTF8-letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=../<?lsmb templates ?>/logo.png border=0 width=84 height=58></th>
+          <th><img src=../<?lsmb images ?>/logo.png border=0 width=84 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/Estonian_UTF8-letterhead.tex
===================================================================
--- trunk/templates/Estonian_UTF8-letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Estonian_UTF8-letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\

Modified: trunk/templates/Traditional_Chinese_Big5-letterhead.html
===================================================================
--- trunk/templates/Traditional_Chinese_Big5-letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Traditional_Chinese_Big5-letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=../<?lsmb templates ?>/logo.png border=0 width=84 height=58></th>
+          <th><img src=../<?lsmb images ?>/logo.png border=0 width=84 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/Traditional_Chinese_Big5-letterhead.tex
===================================================================
--- trunk/templates/Traditional_Chinese_Big5-letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Traditional_Chinese_Big5-letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\

Modified: trunk/templates/Traditional_Chinese_UTF8-letterhead.html
===================================================================
--- trunk/templates/Traditional_Chinese_UTF8-letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Traditional_Chinese_UTF8-letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=../<?lsmb templates ?>/logo.png border=0 width=84 height=58></th>
+          <th><img src=../<?lsmb images ?>/logo.png border=0 width=84 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/Traditional_Chinese_UTF8-letterhead.tex
===================================================================
--- trunk/templates/Traditional_Chinese_UTF8-letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/Traditional_Chinese_UTF8-letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\

Modified: trunk/templates/demo/letterhead.html
===================================================================
--- trunk/templates/demo/letterhead.html	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/demo/letterhead.html	2006-11-22 15:26:58 UTC (rev 685)
@@ -11,7 +11,7 @@
             </h4>
           </td>
 
-          <th><img src=<?lsmb templates ?>/<?lsmb language_code ?>/logo.png border=0 height=58></th>
+          <th><img src=<?lsmb images ?>/logo.png border=0 height=58></th>
 
           <td align=right>
             <h4>

Modified: trunk/templates/demo/letterhead.tex
===================================================================
--- trunk/templates/demo/letterhead.tex	2006-11-22 14:48:54 UTC (rev 684)
+++ trunk/templates/demo/letterhead.tex	2006-11-22 15:26:58 UTC (rev 685)
@@ -5,7 +5,7 @@
     <?lsmb address ?>
   }
   \parbox[b]{.2\textwidth}{
-    \includegraphics[scale=0.3]{../<?lsmb templates ?>/<?lsmb language_code ?>/logo}
+    \includegraphics[scale=0.3]{../<?lsmb images ?>/logo}
   }\hfill
   ..hidden..
   Tel: & <?lsmb tel ?>\\


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.