This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/
browse.html
123 lines (109 loc) · 3.49 KB
/
browse.html
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<HTML>
<HEAD>[tag flag build][/tag]
<TITLE>[L]Browse[/L] __COMPANY__</TITLE>
</HEAD>
<BODY MV="body 1">
[comment]
The __VALUES__ below are MiniVend Variable settings.
In this case, they come from these settings in catalog.cfg:
## Set some menubars and headers
ConfigDir pages
Variable LEFTSIDE <leftside
Variable RIGHTSIDE <rightside
Variable NO_RIGHT <no_right
Variable MENUBAR <menubar
Variable MENUBOTTOM <menubottom
Variable LOGOBAR <logobar
Variable COPYRIGHT <copyright
ConfigDir config
Each one comes from a file in this directory which
corresponds to the variable.
They have the effect of predefining a page layout without
having to maintain different pages.
[/comment]
__LOGOBAR__
__MENUBAR__
__LEFTSIDE__
[comment]
This page just uses an in page search (the [loop search=...])
to return all products from the database. The parameter
"ra=yes" sets the MiniVend search variable mv_return_all to "yes",
meaning just start returning records from the file.
If there are more than 50 then it will be truncated because of
the mv_matchlimit default of 100. If you wanted to return up
to 100 then you would set the search setting to "ra=yes/ml=100".
See the browse1.html page for a page that returns 1 or more
at a time with paging.
[/comment]
<FONT SIZE="-1">
[L]Browse[/L] [page browse1 1:1]one</A>
or [page browse1 1:2]two</A> at a time </FONT></BR>
[loop search="ra=yes"]
[sort products:category products:price:rn]
[comment]
The [loop-next] simply skips a product if it is in the
category "Accessory". The [calc] tag is a little embedded
Perl.
[/comment]
[loop-next][calc]'[loop-field category]' eq 'Accessory'[/calc][/loop-next]
[comment]
[loop-change] is a way of setting up headers. You place a possibly
changing value in the [condition] container, and when the value
changes the contents of the [loop-change] container are output.
There can also be an [else] [/else] area.
[/comment]
[loop-change 1]
[condition][loop-field category][/condition]
<TABLE WIDTH="80%"><TR BGCOLOR="#cccccc" TEXT="WHITE"><TD ALIGN=CENTER>
<BR><FONT FACE="arial, helvetica"><H3>[loop-field category]</H3>
</TD></TR></TABLE>
[/loop-change 1]
<TABLE CELLPADDING="3">
<TR>
<TD VALIGN="top">
<TABLE>
<TR>
<TD VALIGN="top">
<A HREF="[area [loop-code]]">
<IMG SRC="[loop-field image]" ALT="[loop-field title]" BORDER="0"></A>
</TD>
<TD VALIGN="top">
<FONT SIZE="3" FACE="verdana,arial,helvetica">
<B>[loop-field title]</B>
</FONT><BR>
<FONT SIZE="2" FACE="verdana,arial,helvetica">
By <A HREF="[area scan
st=glimpse
sf=artist
se=[loop-field artist]
]"><B><FONT COLOR="#0000CC">
[loop-field artist]
</FONT></B></A><P>
</FONT>
Our Price:</FONT><B><FONT SIZE="3" COLOR="#FF0000">
[loop-price]
</B></FONT>
<NOBR><A HREF="[area order [loop-code]]" CLASS="buybtn">
<FONT FACE="verdana,arial,helvetica" COLOR="#0000cc">
<BR>Buy Now</FONT></A></NOBR><BR>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<FONT SIZE="2"><P>
[loop-field comment]
</FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
[/loop]
[comment] And the footer as above. [/comment]
__NO_RIGHT__
__MENUBOTTOM__
__COPYRIGHT__
<!-- current page: @@MV_PAGE@@ -->
</BODY>
</HTML>