Documentation is available at standard_shop_list.obj.php
1 <?php
2 #IPW METAZO 2.0 OBJECT
3 $_objoldid = 314149;
4 function objfile_314149 () {
5 $obj = owNew('template');
6 $objdata['name'] = "standard_shop_list";
7 $objdata['content'] = "{if \$result.items|@sizeof != 0}
8 <table class=\"extshoptablebg\" width=\"100%\" cellspacing=\"1\">
9 <tr>
10 <th class=\"extshopheader\"> Varenr </th>
11 <th class=\"extshopheader\"> Varetekst </th>
12 {if \$result.viewdisc == true}
13 <th class=\"extshopheader\"> Normalpris </th>
14 <th class=\"extshopheader\"> Rabat </th>
15 {/if}
16 <th class=\"extshopheader\"> Pris </th>
17 <th class=\"extshopheader\"> </th>
18 </tr>
19 <tr>
20 <td class=\"extshopdarkcell\" colspan=\"10\"><div style=\"float: left; padding-top: 3px;\"><b>VAREOVERSIGT</b></div> <div style=\"float: right\">{include file=\"standard_shop_nav\"}</div></td>
21 </tr>
22 {section name=i loop=\$result.items}
23 <tr>
24 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"left\"><a href=\"{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_ext_parentid={\$request.parentid}&_ext_itemid={\$result.items[i].objectid}&_cmd=item\">{\$result.items[i].name}</A></td>
25 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"70%\" nowrap><a href=\"{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_ext_parentid={\$request.parentid}&_ext_itemid={\$result.items[i].objectid}&_cmd=item\">{\$result.items[i].content1}</A></td>
26 {if \$result.viewdisc == true}
27 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.items[i].price}) <strong>{\$result.items[i].pricevat}</strong></td>
28 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.items[i].disc}) <strong>{\$result.items[i].discvat}</td>
29 {/if}
30 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.items[i].actpricecur}) <strong>{\$result.items[i].actpricecurvat}</strong></td>
31 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap><form action=\"{\$me}\" method=\"post\" style=\"margin: 0px;\">
32 <input type=\"hidden\" name=\"_ext\" value=\"{\$_ext}\">
33 <input type=\"hidden\" name=\"_extcf\" value=\"{\$_extcf}\">
34 <input type=\"hidden\" name=\"_ext_itemid\" value=\"{\$result.items[i].objectid}\">
35 <input type=\"hidden\" name=\"_ext_goto\" value=\"list\">
36 <input type=\"hidden\" name=\"_cmd\" value=\"add\">
37 <input type=\"text\" style=\"width:20px;\" name=\"_ext_num\">
38 <input type=\"image\" src=\"img/design/standard/basket.gif\" border=\"0\"></form></td>
39 </tr>
40 {/section}
41 <tr>
42 <td class=\"extshopdarkcell\" colspan=\"10\"> </td>
43 </tr>
44 </table>
45 {/if}
46
47 <!--
48 <h1>Særtilbud</h1>
49 <h1>Mest købte varer</h1>
50 <h1>Nyeste varer</h1>
51 <h1>Mine mest købte varer</h1>
52 <h1>Mine foretrukne varer</h1>
53 <h1>Mine ordrer</h1>-->";
54 $objdata['param'] = "";
55 $objdata['setting'] = "";
56 $objdata['tpltype'] = "2";
57 $objdata['header'] = "";
58 $objdata['style'] = ".extshoptablebg {
59 BACKGROUND-COLOR: #a9b8c2
60 }
61 .extshopcolorcell {
62 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #dce1e5
63 }
64 .extshoplightcell {
65 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #ececec
66 }
67 .extshopdarkcell {
68 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #c0c8d0
69 }
70 .extshopheader {
71 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
72 }
73 .extshopbutton {
74 background-color: #c0c8d0; font-style: bold; font-size: 80%; font-weight: bold;
75 }";
76 $objdata['doctype'] = "0";
77 $obj->createObject($objdata);
78 return $obj;
79 }
80 ?>
Documentation generated on Thu, 9 Jun 2005 06:53:28 +0200 by phpDocumentor 1.2.3