Source for file standard_indexadv_list.obj.php

Documentation is available at standard_indexadv_list.obj.php


1 <?php
2 #IPW METAZO 2.0 OBJECT
3 $_objoldid = 314125;
4 function objfile_314125 () {
5 $obj = owNew('template');
6 $objdata['name'] = "standard_indexadv_list";
7 $objdata['content'] = "<table class=\"exttablebg\" width=\"100%\" cellspacing=\"1\">
8 <tr>
9 <th class=\"extheader\" align=\"center\">&nbsp;Dokumentnavn&nbsp;</th>
10 <th class=\"extheader\" align=\"center\">&nbsp;Forfatter&nbsp;</th>
11 <th class=\"extheader\" align=\"center\">&nbsp;Skrevet&nbsp;</th>
12 </tr>
13 <tr>
14 <td class=\"extdarkcell\" colspan=\"10\" valign=\"middle\"><div style=\"float: left; padding-top: 3px;\">&nbsp;<b>DOKUMENT OVERSIGT</b></div> <div style=\"float: right\">
15 <form method=\"get\" style=\"margin: 0px; padding: 0px;\">
16 <input type=\"hidden\" name=\"pageid\" value=\"{\$document.objectid}\">
17 <input type=\"text\" class=\"extbutton\" name=\"search\" value=\"{\$get.search}\">
18 <input type=\"submit\" value=\"Søg\" class=\"extbutton\">
19 <select class=\"extbutton\" name=\"categoryid\" onChange=\"location.href='{\$server.PHP_SELF}?pageid={\$document.objectid}&categoryid=' + this.options[this.selectedIndex].value;\">
20 {listobj type=\"category\" assign=\"res\"}
21 <option value=\"\">Vælg kategori</option>
22 {section loop=\$res name=\"standard\"}
23 <option value=\"{\$res[standard].objectid}\" {if \$res[standard].objectid == \$get.categoryid} SELECTED{/if}>{\$res[standard].name}</option>
24 {/section}
25 </select>
26 </form></div></td>
27 </tr>
28 {if \$get.search != \"\" || \$get.categoryid != \"\"}
29 {listobj type=\"document\" sortcol=\"name\" sort=\"asc\" assign=\"res\" searchcol=\"name\" search=\$get.search categoryid=\$get.categoryid}
30 {else}
31 {listobj type=\"document\" sortcol=\"name\" sort=\"asc\" assign=\"res\"}
32 {/if}
33 {if \$res|@sizeof != 0}
34 {section loop=\$res name=i}
35 <tr>
36 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\"><a href=\"showpage.php?pageid={\$res[i].objectid}\">{\$res[i].name}</A></td>
37 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\" width=\"100\" align=\"center\">{\$res[i].createdbyname}</td>
38 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\" width=\"120\" align=\"center\">{\$res[i].object.changed}</td>
39 </tr>
40 {/section}
41 {else}
42 <tr>
43 <td class=\"extlightcell\" colspan=\"10\">Ingen resultater af søgning i index</td>
44 </tr>
45 {/if}
46 <tr>
47 <td class=\"extdarkcell\" colspan=\"10\">{if \$res|@sizeof != 0}Antal dokumenter fundet: {\$res|@sizeof}{else}&nbsp;{/if}</td>
48 </tr>
49 </table>";
50 $objdata['param'] = "";
51 $objdata['setting'] = "";
52 $objdata['tpltype'] = "2";
53 $objdata['header'] = "";
54 $objdata['style'] = ".extcolorcell {
55 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #dce1e5
56 }
57 .extlightcell {
58 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #ececec
59 }
60 .extdarkcell {
61 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #c0c8d0
62 }
63 .extheader {
64 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 85%; BACKGROUND-IMAGE: url(img/design/standard/extbg.gif); COLOR: #ffffff; WHITE-SPACE: nowrap; HEIGHT: 24px; BACKGROUND-COLOR: #006699
65 }
66 .exttablebg {
67 BACKGROUND-COLOR: #a9b8c2
68 }
69 .extmsgbody {
70 LINE-HEIGHT: 140%
71 }
72 .extbutton {
73 background-color: #c0c8d0; font-style: bold; font-size: 80%; font-weight: bold;
74 }";
75 $objdata['doctype'] = "0";
76 $obj->createObject($objdata);
77 return $obj;
78 }
79 ?>

Documentation generated on Thu, 9 Jun 2005 06:53:22 +0200 by phpDocumentor 1.2.3