Documentation is available at standard_shop_basket.obj.php
1 <?php
2 #IPW METAZO 2.0 OBJECT
3 $_objoldid = 314146;
4 function objfile_314146 () {
5 $obj = owNew('template');
6 $objdata['name'] = "standard_shop_basket";
7 $objdata['content'] = "{if \$result.basket|@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 <th class=\"extshopheader\"> Antal </th>
13 {if \$result.viewdisc == true}
14 <th class=\"extshopheader\"> Normalpris </th>
15 <th class=\"extshopheader\"> Rabat </th>
16 {/if}
17 <th class=\"extshopheader\"> Pris </th>
18 </tr>
19 <tr>
20 <td class=\"extshopdarkcell\" colspan=\"10\"><div style=\"float: left; padding-top: 3px;\"><b>INDKØBSKURV</b></div> <div style=\"float: right\"><input type=\"button\" onclick=\"location.href='{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_cmd=order'\" value=\"Bestil\" class=\"extshopbutton\" style=\"width: 125px\"> <input type=\"button\" onclick=\"location.href='{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_ext_goto=basket&_cmd=empty'\" class=\"extshopbutton\" value=\"Tøm indkøbskurv\" style=\"width: 125px\"> {include file=\"standard_shop_nav\"}</div></td>
21 </tr>
22 {section name=i loop=\$result.basket}
23 <tr>
24 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"left\" nowrap><a href=\"{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_ext_parentid={\$request.parentid}&_ext_itemid={\$result.basket[i].objectid}&_cmd=item\">{\$result.basket[i].item.name}</A></td>
25 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"70%\"><a href=\"{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_ext_parentid={\$request.parentid}&_ext_itemid={\$result.basket[i].objectid}&_cmd=item\">{\$result.basket[i].item.content1}</A></td>
26 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" align=\"right\" nowrap>{\$result.basket[i].num}</td>
27 {if \$result.viewdisc == true}
28 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.basket[i].price}) <strong>{\$result.basket[i].pricevat}</strong></td>
29 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.basket[i].disc}) <strong>{\$result.basket[i].discvat}</td>
30 {/if}
31 <td class=\"{if \$smarty.section.i.index is odd}extshopcolorcell{else}extshoplightcell{/if}\" width=\"15%\" align=\"right\" nowrap>({\$result.basket[i].sumactpricecur}) <strong>{\$result.basket[i].sumactpricecurvat}</strong></td>
32 </tr>
33 {/section}
34 <tr>
35 <td class=\"extshopdarkcell\" colspan=\"10\"> </td>
36 </tr>
37 </table>
38
39 {else}
40 Din indkøbskurv er tom.
41 {/if}";
42 $objdata['param'] = "";
43 $objdata['setting'] = "";
44 $objdata['tpltype'] = "2";
45 $objdata['header'] = "";
46 $objdata['style'] = ".extshoptablebg {
47 BACKGROUND-COLOR: #a9b8c2
48 }
49 .extshopcolorcell {
50 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #dce1e5
51 }
52 .extshoplightcell {
53 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #ececec
54 }
55 .extshopdarkcell {
56 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #c0c8d0
57 }
58 .extshopheader {
59 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
60 }
61 .extshopbutton {
62 background-color: #c0c8d0; font-style: bold; font-size: 80%; font-weight: bold;
63 }";
64 $objdata['doctype'] = "0";
65 $obj->createObject($objdata);
66 return $obj;
67 }
68 ?>
Documentation generated on Thu, 9 Jun 2005 06:53:27 +0200 by phpDocumentor 1.2.3