Source for file standard_search_result.obj.php

Documentation is available at standard_search_result.obj.php


1 <?php
2 #IPW METAZO 2.0 OBJECT
3 $_objoldid = 314096;
4 function objfile_314096 () {
5 $obj = owNew('template');
6 $objdata['name'] = "standard_search_result";
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>SØGNING I DOKUMENTER</b></div><div style=\"float: right\"><form method=\"get\" action=\"showpage.php?pageid={\$config.pageid_result}\" style=\"margin: 0px; padding: 0px;\">
15 <input type=\"hidden\" name=\"pageid\" value=\"{\$config.pageid_result}\">
16 <input type=\"hidden\" name=\"_cmd\" value=\"{\$_cmd}\">
17 <input type=\"hidden\" name=\"_ext\" value=\"{\$_ext}\">
18 <input type=\"hidden\" name=\"_extcf\" value=\"{\$_extcf}\">
19 &nbsp;<b>Søgeord:</b> <input type=\"text\" name=\"keyword\" size=25 value=\"{\$get.keyword}\" class=\"extbutton\">
20 <input type=\"submit\" value=\"Søg\" class=\"extbutton\">
21 </form></div></td>
22 </tr>
23 {if \$result|@sizeof != 0}
24 {section loop=\$result name=i}
25 <tr style=\"height: 42px;\">
26 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\"><a href=\"{\$result[i].url}&_search_key={\$get.keyword}\">{\$result[i].name|default:\"[noname document]\"}</A>
27 <BR>{\$result[i].content|truncate:160}</td>
28 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\" width=\"100\" align=\"center\">{\$result[i].createdbyname}</td>
29 <td class=\"{if \$smarty.section.i.index is odd}extcolorcell{else}extlightcell{/if}\" width=\"120\" align=\"center\">{\$result[i].changed}</td>
30 </tr>
31 {/section}
32 {else}
33 <tr>
34 <td class=\"extlightcell\" colspan=\"10\">Ingen resultater af søgning i index</td>
35 </tr>
36 {/if}
37 <tr>
38 <td class=\"extdarkcell\" colspan=\"10\">{if \$result|@sizeof != 0}Antal dokumenter fundet: {\$result|@sizeof}{else}&nbsp;{/if}</td>
39 </tr>
40 </table>";
41 $objdata['param'] = "";
42 $objdata['setting'] = "";
43 $objdata['tpltype'] = "2";
44 $objdata['header'] = "";
45 $objdata['style'] = ".extcolorcell {
46 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #dce1e5
47 }
48 .extlightcell {
49 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #ececec
50 }
51 .extdarkcell {
52 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #c0c8d0
53 }
54 .extheader {
55 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
56 }
57 .exttablebg {
58 BACKGROUND-COLOR: #a9b8c2
59 }
60 .extmsgbody {
61 LINE-HEIGHT: 140%
62 }
63 .extbutton {
64 background-color: #c0c8d0; font-style: bold; font-size: 80%; font-weight: bold;
65 }";
66 $objdata['doctype'] = "0";
67 $obj->createObject($objdata);
68 return $obj;
69 }
70 ?>

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