File: tab

package info (click to toggle)
libtemplate-perl 2.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 5,496 kB
  • ctags: 667
  • sloc: perl: 15,349; makefile: 62; xml: 7; sh: 5
file content (47 lines) | stat: -rw-r--r-- 1,959 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[%  # ARGS:
    #	content	    # tab content
    #   width       # tab width
    #   style       # style
    SET
	default = splash.style.default
    ;
    DEFAULT 
	style   = default
	col     = style.col.fore  or default.col.fore
	bgcol   = style.col.back  or default.col.back
        align   = style.tab.align or default.tab.align
    ;
    SET
	rgbfore = splash.rgb.$col
	rgbback = splash.rgb.$bgcol
	imgfore = "$splash.images/$col"
	imgback = "$splash.images/$bgcol"
        imgsize = splash.imgsize
        imgtype = splash.imgtype
	up      = invert ? 'bottom' : 'top'
	down    = invert ? 'top'    : 'bottom'
    ;
-%]
<!-- tt2.splash.tab (style: [% style.name %]) -->  
<table border="0" [% IF width  %]width="[% width %]"[% END %]
       bgcolor="[% rgbfore %]" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="[% rgbback %]" align="right" valign="[% down %]"
          width="[% imgsize %]"><img src="[% imgfore %]/[% invert ? 'tr' :'br' %].[% imgtype %]" 
  	  width="[% imgsize %]" height="[% imgsize %]" alt=""></td>
    <td bgcolor="[% rgbfore %]" align="left" valign="[% up %]"
          width="[% imgsize %]"><img src="[% imgback %]/[% invert ? 'bl' : 'tl' %].[% imgtype %]" 
  	  width="[% imgsize %]" height="[% imgsize %]" alt=""></td>
    <td bgcolor="[% rgbfore %]" 
         valign="middle"[% IF align %] align="[% align %]"[% END %]
		[%- IF width %] width="100%"[% END %]>
        [%- content.length ? content : '&nbsp;' -%]</td>
    <td bgcolor="[% rgbfore %]" align="right" valign="[% up %]"
          width="[% imgsize %]"><img src="[% imgback %]/[% invert ? 'br' : 'tr' %].[% imgtype %]" 
          width="[% imgsize %]" height="[% imgsize %]" alt=""></td>
    <td bgcolor="[% rgbback %]" align="left" valign="[% down %]"
          width="[% imgsize %]"><img src="[% imgfore %]/[% invert ? 'tl' : 'bl' %].[% imgtype %]"
  	  width="[% imgsize %]" height="[% imgsize %]" alt=""></td>
  </tr>
</table>
<!-- /tt2.splash.tab -->