Revision: 2763
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2763&view=rev
Author:   riddles
Date:     2009-05-01 10:32:18 +0000 (Fri, 01 May 2009)

Log Message:
-----------
Add theme now in header.pl to a separate set of files

Added Paths:
-----------
    ipcop/branches/template-branch/html/html/themes/
    ipcop/branches/template-branch/html/html/themes/default/
    ipcop/branches/template-branch/html/html/themes/default/closebigbox.tpl
    ipcop/branches/template-branch/html/html/themes/default/closebox.tpl
    ipcop/branches/template-branch/html/html/themes/default/errorbox.tpl
    ipcop/branches/template-branch/html/html/themes/default/footer.tpl
    ipcop/branches/template-branch/html/html/themes/default/header.tpl
    ipcop/branches/template-branch/html/html/themes/default/jsmenu.tpl
    ipcop/branches/template-branch/html/html/themes/default/openbigbox.tpl
    ipcop/branches/template-branch/html/html/themes/default/openbox.tpl
    ipcop/branches/template-branch/html/html/themes/default/vars.tpl
    ipcop/branches/template-branch/html/html/themes/default/warningbox.tpl

Added: ipcop/branches/template-branch/html/html/themes/default/closebigbox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/closebigbox.tpl     
                        (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/closebigbox.tpl     
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1 @@
+</td></tr></table></td></tr></table>

Added: ipcop/branches/template-branch/html/html/themes/default/closebox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/closebox.tpl        
                        (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/closebox.tpl        
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,8 @@
+            </td></tr></table></td>
+            <td style='background: url(/images/[% boxframe 
%]boxright.png);'><img src='/images/null.gif' width='12' alt='' /></td></tr>
+        <tr><td style='background: url(/images/[% boxframe 
%]boxbottom1.png);background-repeat:no-repeat;'><img src='/images/null.gif' 
width='18' height='18' alt='' /></td>
+            <td style='background: url(/images/[% boxframe 
%]boxbottom2.png);background-repeat:repeat-x;' colspan='3'><img 
src='/images/null.gif' width='1' height='18' alt='' /></td>
+            <td style='background: url(/images/[% boxframe 
%]boxbottom3.png);background-repeat:no-repeat;'><img src='/images/null.gif' 
width='18' height='18' alt='' /></td></tr>
+<tr><td colspan='5'><img src='/images/null.gif' width='1' height='5' alt='' 
/></td></tr>
+        </table>
+

Added: ipcop/branches/template-branch/html/html/themes/default/errorbox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/errorbox.tpl        
                        (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/errorbox.tpl        
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,16 @@
+[%# Display Error messages %]
+[% IF page.errormessages.size > 0 %]
+    [% caption = 'error messages' |loc %]
+    [% INCLUDE "$page.theme/openbox.tpl"
+        width = '100%'
+        align = 'left'
+        caption = caption
+        boxframe = 'error' %]
+    <font class='base'>
+    [% FOREACH m IN page.errormessages %]
+        [% m %]<br />
+    [% END %]
+    </font>
+    [% INCLUDE "$page.theme/closebox.tpl"
+        boxframe = 'error' %]
+[% END %]

Added: ipcop/branches/template-branch/html/html/themes/default/footer.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/footer.tpl          
                (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/footer.tpl  
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,10 @@
+<!-- IPCOP FOOTER -->
+    <table width='100%' border='0'><tr>
+       <td width='175' align='left'><img src='/images/null.gif' width='15' 
height='12' alt='' /><a href='http://sourceforge.net/' target='_blank'><img 
src='/images/sflogo.png' width='159' height='12' alt='Sourceforge logo' 
/></a></td>
+       <td align='center' valign='middle'><span
+class='ipcop_StatusBig'>[% system.connstate %]</span><br />[% page.datetime %]
+<br /><br /><small>IPCop v[% system.version %] &copy; 2001-2009 The IPCop 
Team</small></td>
+       <td width='175' align='right' valign='bottom'><a 
href='http://www.ipcop.org/' target='_blank'><img src='/images/shieldedtux.png' 
width='113' height='82' alt='IPCop Tux' /></a><img src='/images/null.gif' 
width='15' height='12' alt='' /></td>
+    </tr></table>
+</body></html>
+

Added: ipcop/branches/template-branch/html/html/themes/default/header.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/header.tpl          
                (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/header.tpl  
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,46 @@
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+<html><head>
+    <title>[% page.title_prefix%] - [% title %]</title>
+    [% page.extrahead %]
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <link rel="shortcut icon" href="/favicon.ico" />
+    <style type="text/css">@import url(/include/ipcop.css);</style>
+    [% IF page.javascript %]
+        [% INCLUDE "$page.theme/jsmenu.tpl" %]
+    [% END %]
+</head>
+<body [% IF page.javascript -%]
+    onload="domMenu_activate('domMenu_main');" 
+[%- END %]>
+
+    <!-- IPCOP HEADER -->
+    <table width='100%' border='0' cellpadding='0' cellspacing='0'>
+    <tr><td align='center' colspan='3'><img src='/images/header_top.png' 
alt='' /></td></tr>
+    <tr><td width='719' style='background: url(/images/header_left.png); 
background-repeat:no-repeat;'>
+            <table width='100%' border='0' cellpadding='0' cellspacing='0' 
style='table-layout:fixed;'>
+                <col width='75' />
+                <col width='182' />
+                <col />
+                <tr valign='bottom'>
+                    <td></td>
+                    <td class='ipcop_menuLocationMain' colspan='2' height='25'>
+                        <img src='/images/null.gif' width='8' height='1' 
alt='' />[% location %]
+                        <img src='/images/null.gif' width='16' alt='' />
+                        <img src='/images/header_arrow.gif' width='20' 
height='12' alt='' />
+                        <img src='/images/null.gif' width='24' height='1' 
alt='' />
+                        <font style='font-size: 12px;'>[% sublocation %]</font>
+                    </td>
+                </tr>
+                <tr valign='bottom'><td colspan='3' /tdheight='3'></td></tr>
+                <tr valign='bottom'><td height='27'></td>
+                    <td colspan='2'>
+                       <div id='domMenu_main'></div>   
+                </td></tr>
+            </table>
+        </td>
+        <td valign='top' style='background: 
url(/images/header_dyn.png);background-repeat:repeat-x;'>&nbsp;</td>
+        <td width='32' style='background: url(/images/header_right.png); 
background-repeat:no-repeat;'>&nbsp;</td>
+    </tr></table>

Added: ipcop/branches/template-branch/html/html/themes/default/jsmenu.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/jsmenu.tpl          
                (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/jsmenu.tpl  
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,291 @@
+
+    <script type='text/javascript' src='/include/domLib.js'></script>
+    <script type='text/javascript' src='/include/domMenu.js'></script>
+    <script type='text/javascript'>
+    domMenu_data.set('domMenu_main', new Hash(
+    1, new Hash(
+       'contents', 'System',
+       'uri', '',
+       'statusText', 'IPCop System',
+           1, new Hash(
+               'contents', 'Home',
+               'uri', '/cgi-bin/index.cgi',
+               'statusText', 'IPCop Home'
+           ),
+           2, new Hash(
+               'contents', 'Scheduler',
+               'uri', '/cgi-bin/scheduler.cgi',
+               'statusText', 'IPCop Scheduler'
+           ),
+           3, new Hash(
+               'contents', 'Updates',
+               'uri', '/cgi-bin/updates.cgi',
+               'statusText', 'IPCop Updates'
+           ),
+           4, new Hash(
+               'contents', 'Passwords',
+               'uri', '/cgi-bin/changepw.cgi',
+               'statusText', 'IPCop Passwords'
+           ),
+           5, new Hash(
+               'contents', 'SSH Access',
+               'uri', '/cgi-bin/remote.cgi',
+               'statusText', 'IPCop SSH Access'
+           ),
+           6, new Hash(
+               'contents', 'GUI Settings',
+               'uri', '/cgi-bin/gui.cgi',
+               'statusText', 'IPCop GUI Settings'
+           ),
+           7, new Hash(
+               'contents', 'Backup',
+               'uri', '/cgi-bin/backup.cgi',
+               'statusText', 'IPCop Backup / Restore'
+           ),
+           8, new Hash(
+               'contents', 'Shutdown',
+               'uri', '/cgi-bin/shutdown.cgi',
+               'statusText', 'IPCop Shutdown / Reboot'
+           ),
+           9, new Hash(
+               'contents', 'Credits',
+               'uri', '/cgi-bin/credits.cgi',
+               'statusText', 'IPCop Credits'
+           )
+    ),
+    2, new Hash(
+       'contents', 'Status',
+       'uri', '',
+       'statusText', 'IPCop Status information',
+           1, new Hash(
+               'contents', 'System Status',
+               'uri', '/cgi-bin/status.cgi',
+               'statusText', 'IPCop System Status Information'
+           ),
+           2, new Hash(
+               'contents', 'System Info',
+               'uri', '/cgi-bin/sysinfo.cgi',
+               'statusText', 'IPCop System Info'
+           ),
+           3, new Hash(
+               'contents', 'Network Status',
+               'uri', '/cgi-bin/netstatus.cgi',
+               'statusText', 'IPCop Network Status Information'
+           ),
+           4, new Hash(
+               'contents', 'System Graphs',
+               'uri', '/cgi-bin/graphs.cgi',
+               'statusText', 'IPCop System Graphs'
+           ),
+           5, new Hash(
+               'contents', 'Traffic Graphs',
+               'uri', '/cgi-bin/graphs.cgi?graph=network',
+               'statusText', 'IPCop Network traffic graphs'
+           ),
+           6, new Hash(
+               'contents', 'Proxy Graphs',
+               'uri', '/cgi-bin/proxygraphs.cgi',
+               'statusText', 'IPCop Proxy access graphs'
+           ),
+           7, new Hash(
+               'contents', 'Traffic',
+               'uri', '/cgi-bin/traffic.cgi',
+               'statusText', 'IPCop Traffic'
+           ),
+           8, new Hash(
+               'contents', 'Connections',
+               'uri', '/cgi-bin/connections.cgi',
+               'statusText', 'IPCop Connections'
+           ),
+           9, new Hash(
+               'contents', 'IPTables',
+               'uri', '/cgi-bin/iptablesgui.cgi',
+               'statusText', 'IPCop IPTables'
+           )
+    ),
+    3, new Hash(
+       'contents', 'Network',
+       'uri', '',
+       'statusText', 'IPCop Network Configuration',
+           1, new Hash(
+               'contents', 'Dialup',
+               'uri', '/cgi-bin/pppsetup.cgi',
+               'statusText', 'IPCop Dialup Settings'
+           ),
+           2, new Hash(
+               'contents', 'Upload',
+               'uri', '/cgi-bin/upload.cgi',
+               'statusText', 'Upload Firmware/Drivers'
+           ),
+           3, new Hash(
+               'contents', 'Modem',
+               'uri', '/cgi-bin/modem.cgi',
+               'statusText', 'IPCop Modem configuration'
+           ),
+           4, new Hash(
+               'contents', 'Aliases',
+               'uri', '/cgi-bin/aliases.cgi',
+               'statusText', 'IPCop External aliases configuration'
+           )
+    ),
+    4, new Hash(
+       'contents', 'Services',
+       'uri', '',
+       'statusText', 'IPCop Services',
+           1, new Hash(
+               'contents', 'Proxy',
+               'uri', '/cgi-bin/proxy.cgi',
+               'statusText', 'IPCop Web proxy configuration'
+           ),
+           2, new Hash(
+               'contents', 'DHCP Server',
+               'uri', '/cgi-bin/dhcp.cgi',
+               'statusText', 'IPCop DHCP configuration'
+           ),
+           3, new Hash(
+               'contents', 'Dynamic DNS',
+               'uri', '/cgi-bin/ddns.cgi',
+               'statusText', 'IPCop Dynamic DNS Client'
+           ),
+           4, new Hash(
+               'contents', 'Edit Hosts',
+               'uri', '/cgi-bin/hosts.cgi',
+               'statusText', 'IPCop Host Configuration'
+           ),
+           5, new Hash(
+               'contents', 'Time Server',
+               'uri', '/cgi-bin/time.cgi',
+               'statusText', 'IPCop Time Server'
+           ),
+           6, new Hash(
+               'contents', 'Traffic Shaping',
+               'uri', '/cgi-bin/shaping.cgi',
+               'statusText', 'IPCop Traffic Shaping Settings'
+           )
+    ),
+    5, new Hash(
+       'contents', 'Firewall',
+       'uri', '',
+       'statusText', 'IPCop Firewall',
+           1, new Hash(
+               'contents', 'Firewall Settings',
+               'uri', '/cgi-bin/fwrulesadm.cgi',
+               'statusText', 'IPCop Firewall Settings'
+           ),
+           2, new Hash(
+               'contents', 'Port Forwarding',
+               'uri', '/cgi-bin/portfw.cgi',
+               'statusText', 'IPCop Port forwarding configuration'
+           ),
+           3, new Hash(
+               'contents', 'Wireless',
+               'uri', '/cgi-bin/wireless.cgi',
+               'statusText', 'IPCop Wireless'
+           ),
+           4, new Hash(
+               'contents', 'Services',
+               'uri', '/cgi-bin/services.cgi',
+               'statusText', 'IPCop Services'
+           ),
+           5, new Hash(
+               'contents', 'Service Groups',
+               'uri', '/cgi-bin/servicegrps.cgi',
+               'statusText', 'IPCop Service Groups'
+           ),
+           6, new Hash(
+               'contents', 'Addresses',
+               'uri', '/cgi-bin/addresses.cgi',
+               'statusText', 'IPCop Addresses'
+           ),
+           7, new Hash(
+               'contents', 'Address Groups',
+               'uri', '/cgi-bin/addressgrps.cgi',
+               'statusText', 'IPCop Address Groups'
+           ),
+           8, new Hash(
+               'contents', 'Interfaces',
+               'uri', '/cgi-bin/ifaces.cgi',
+               'statusText', 'IPCop Interfaces'
+           ),
+           9, new Hash(
+               'contents', 'Firewall Rules',
+               'uri', '/cgi-bin/fwrules.cgi',
+               'statusText', 'IPCop Firewall Rules'
+           )
+    ),
+    6, new Hash(
+       'contents', 'VPNs',
+       'uri', '',
+       'statusText', 'IPCop Virtual Private Networking',
+           1, new Hash(
+               'contents', 'IPsec',
+               'uri', '/cgi-bin/ipsec.cgi',
+               'statusText', 'IPCop Virtual Private Networking'
+           ),
+           2, new Hash(
+               'contents', 'OpenVPN',
+               'uri', '/cgi-bin/ovpnmain.cgi',
+               'statusText', 'IPCop Virtual Private Networking'
+           ),
+           3, new Hash(
+               'contents', 'CA',
+               'uri', '/cgi-bin/vpnca.cgi',
+               'statusText', 'IPCop Virtual Private Networking'
+           )
+    ),
+    7, new Hash(
+       'contents', 'Logs',
+       'uri', '',
+       'statusText', 'IPCop Logs',
+           1, new Hash(
+               'contents', 'Log Settings',
+               'uri', '/cgi-bin/logs.cgi/config.dat',
+               'statusText', 'IPCop Log Settings'
+           ),
+           2, new Hash(
+               'contents', 'Log Summary',
+               'uri', '/cgi-bin/logs.cgi/summary.dat',
+               'statusText', 'IPCop Log Summary'
+           ),
+           3, new Hash(
+               'contents', 'Proxy Logs',
+               'uri', '/cgi-bin/logs.cgi/proxylog.dat',
+               'statusText', 'IPCop Proxy log viewer'
+           ),
+           4, new Hash(
+               'contents', 'Firewall Logs',
+               'uri', '/cgi-bin/logs.cgi/firewalllog.dat',
+               'statusText', 'IPCop Firewall Log Viewer'
+           ),
+           5, new Hash(
+               'contents', 'System Logs',
+               'uri', '/cgi-bin/logs.cgi/log.dat',
+               'statusText', 'IPCop System Log Viewer'
+           )
+    )
+    ));
+
+    domMenu_settings.set('domMenu_main', new Hash(
+       'menuBarWidth', '0%',
+       'menuBarClass', 'ipcop_menuBar',
+       'menuElementClass', 'ipcop_menuElement',
+       'menuElementHoverClass', 'ipcop_menuElementHover',
+       'menuElementActiveClass', 'ipcop_menuElementHover',
+       'subMenuBarClass', 'ipcop_subMenuBar',
+       'subMenuElementClass', 'ipcop_subMenuElement',
+       'subMenuElementHoverClass', 'ipcop_subMenuElementHover',
+       'subMenuElementActiveClass', 'ipcop_subMenuElementHover',
+       'subMenuMinWidth', 'auto',
+       'distributeSpace', false,
+       'openMouseoverMenuDelay', 0,
+       'openMousedownMenuDelay', 0,
+       'closeClickMenuDelay', 0,
+       'closeMouseoutMenuDelay', 800
+    ));
+    </script>
+           <script type="text/javascript">
+           document.onmouseup = function()
+           {
+               domMenu_deactivate('domMenu_main');
+           }
+           </script>

Added: ipcop/branches/template-branch/html/html/themes/default/openbigbox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/openbigbox.tpl      
                        (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/openbigbox.tpl      
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,7 @@
+<table width='100%' border='0'>
+<tr>
+[% IF sideimg %]
+    <td valign='top'><img src='/images/[% sideimg %]' width='65' height='345' 
alt='' /></td>
+[% END %]
+    <td valign='top' align='center'><table width='[% width %]' cellspacing='0' 
cellpadding='10' border='0'>
+    <tr><td align='[% align %]' valign='top'>

Added: ipcop/branches/template-branch/html/html/themes/default/openbox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/openbox.tpl         
                (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/openbox.tpl 
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,26 @@
+    <table cellspacing='0' cellpadding='0' width='[% width %]' border='0'>
+        <col width='18' />
+        <col width='12' />
+        <col width='100%' />
+        <col width='145' />
+        <col width='18' />
+
+        <tr><td width='18'  ><img src='/images/null.gif' width='18'  
height='1' alt='' /></td>
+            <td width='12'  ><img src='/images/null.gif' width='12'  
height='1' alt='' /></td>
+            <td width='100%'><img src='/images/null.gif' width='257' 
height='1' alt='' /></td>
+            <td width='145' ><img src='/images/null.gif' width='145' 
height='1' alt='' /></td>
+            <td width='18'  ><img src='/images/null.gif' width='18'  
height='1' alt='' /></td></tr>
+
+        <tr><td colspan='2' ><img src='/images/[% boxframe %]boxtop1.png' 
width='30' height='53' alt='' /></td>
+            <td style='background: url(/images/[% boxframe %]boxtop2.png);'>
+    [% IF caption %]
+        <b>[% caption %]</b>
+    [% ELSE %]
+        &nbsp;
+    [% END %]
+            </td>
+            <td colspan='2'><img src='/images/[% boxframe %]boxtop3.png' 
width='163' height='53' alt='' /></td></tr></table>
+            <table cellspacing='0' cellpadding='0' width='[% width %]' 
border='0'>
+        <tr><td style='background: url(/images/[% boxframe 
%]boxleft.png);'><img src='/images/null.gif' width='18' height='1' alt='' 
/></td>
+            <td colspan='3' style='background-color: #E0E0E0;' width='100%'>
+            <table width='100%' cellpadding='5'><tr><td align='[% align %]' 
valign='top'>

Added: ipcop/branches/template-branch/html/html/themes/default/vars.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/vars.tpl            
                (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/vars.tpl    
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,3 @@
+[% mytheme.colourred    = '#993333' %]
+[% mytheme.table1colour = '#C0C0C0' %]
+[% mytheme.table2colour = '#F2F2F2' %]

Added: ipcop/branches/template-branch/html/html/themes/default/warningbox.tpl
===================================================================
--- ipcop/branches/template-branch/html/html/themes/default/warningbox.tpl      
                        (rev 0)
+++ ipcop/branches/template-branch/html/html/themes/default/warningbox.tpl      
2009-05-01 10:32:18 UTC (rev 2763)
@@ -0,0 +1,16 @@
+[%# Display Error messages %]
+[% IF page.warnmessages.size > 0 %]
+    [% caption = 'warning messages' |loc %]
+    [% INCLUDE "$page.theme/openbox.tpl"
+        width = '100%'
+        align = 'left'
+        caption = caption
+        boxframe = 'warning' %]
+    <font class='base'>
+    [% FOREACH m IN page.warnmessages %]
+        [% m %]<br />
+    [% END %]
+    </font>
+    [% INCLUDE "$page.theme/closebox.tpl"
+        boxframe = 'warning' %]
+[% END %]


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

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to