summaryrefslogtreecommitdiff
path: root/skins/stone/mlresearch.tmpl
blob: 9fb0e294ebbd5dbffe29fed679007fc3e4e3aa32 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!--media research -->
<body class="frame">
<div id="body">

<h1>
<?% IF param.hitcount < 1 %?>
<?% gettext("Search result : None title found.") %?>
<?% ELSIF param.hitcount == 1 %?>
<?% gettext("Search result : One title found.") %?>
<?% ELSE %?>
<?% topic = gettext("Search results : %s titles found."); topic | replace('%s',param.hitcount) %?>
<?% END %?>
</h1>


<?% FOREACH zeile IN data %?>
  <?% IF verbose;"<!-- Item: ";FOREACH x IN zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
    <?% importurl = zeile.0;imgurl=zeile.1;title=zeile.2;description=zeile.3 %?>
    <div class="areabegin">
      <table class="fieldtable" summary="">
        <tr>
          <td class="fieldhead">
            <div class="fieldhead">
              <?% title %?>
            </div>
        </tr>
    <tr>
      <td class="fieldtext">
        <div class="actor">
          <a href="?cmd=mlimport&__import=<?% importurl %?>&__id=<?% param.id %?>&__range=<?% param.range %?>&__source=<?% param.source %?>">
            <?% IF imgurl %?>      
              <img class="actor" src="<?% imgurl %?>" alt="<?% title %?>" />
            <?% ELSE %?>
              <img class="actor" src="images/nocover.<?% global.imagetyp %?>" alt="<?% title %?>" />
            <?% END %?>
          </a>
        </div>
      </td>
    </tr>
          <tr>
            <td class="fieldtext">
               <div class="epgdescription">
                  <a href="?cmd=mlimport&__import=<?% importurl %?>&__id=<?% param.id %?>&__range=<?% param.range %?>&__source=<?% param.source %?>">
                    <?% chop(description,35,3) %?>
         				  </a>
              </div>
            </td>
          </tr>

    <tr>
      <td class="fieldbottom"></td>
    </tr>
  </table>
</div>
<?% END %?>
<div class="areaclose"></div>

</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Media library",20) %?></td></tr>
    <tr>
    <td class="sidetext">
        <a href="javascript:back()"><img src="images/back.<?% global.imagetyp %?>" alt="" title="<?% gettext("Back",20) %?>" /></a>&nbsp;
        <a href="javascript:back()"><?% gettext("Back",20) %?></a><br />
    </td>
    </tr>
    <tr><td class="sidebottom"></td></tr>
  </table>

<?% pages = 20 %?>
<?% maximum = param.hitcount %?>
<?% IF maximum > pages %?>
<?% url = "?cmd=mlresearch&__source=${param.source}&__title=${param.title}&__start=" %?>
<?% offset = cgi.param('__start') %?>
<?% backpage = offset - pages %?>
<?% backpageenable = backpage >= 0 ? 1 : 0 %?>
<?% nextpage = offset + pages %?>
<?% nextpageenable = nextpage < maximum ? 1 : 0 %?>

<?% BLOCK PAGES %?>    
        <?% IF enable %?><a href="<?% url %?><?% page %?>"><?% END %?>
            <img src="images/<?% image %?>.<?% global.imagetyp %?>" alt="" title="<?% label %?>" />
        <?% "</a>" IF enable %?>
        &nbsp;
        <?% IF enable %?><a href="<?% url %?><?% page %?>"><?% END %?>
        <?% IF !enable %?><font class="deactive"><?% END %?>
        <?% label %?>
        <?% IF !enable %?></font><?% END %?>
        <?% "</a>" IF enable %?>
    <br />
<?% END %?>
  <table summary="">
    <tr><td class="sidehead"><?% gettext("Page",20) %?>&nbsp;<?% ( offset div pages ) + 1 %?></td></tr>
    <tr>
        <td class="sidetext">
<?% PROCESS PAGES page="0"      enable=backpageenable   image='home'    label=gettext('First page',20) %?>
<?% PROCESS PAGES page=backpage enable=backpageenable   image='back'    label=gettext('Previous page',20) %?>
<?% PROCESS PAGES page=nextpage enable=nextpageenable   image='forward' label=gettext('Next page',20) %?>
        </td>
    </tr>
    <tr><td class="sidebottom"></td></tr>
  </table>
<?% END %?>

  <p id="sidefooter">&nbsp;</p>
</div>
<?% INCLUDE header.inc %?>