MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Cut long lists



Hallo,

-----Original Message-----
From: Ben-Nes Michael <miki@canaan.co.il>
To: minivend <minivend-users@minivend.com>
Date: Donnerstag, 16. September 1999 20:43
Subject: [mv] Cut long lists


>******    message to minivend-users from Ben-Nes Michael
<miki@canaan.co.il>     ******
>
>I querry MySQL and the items are showed on the page.
>How can i control a max of 10 products per page and if there are more
>then 10 items it will say:
>click on page: 2,3,4 for next items.


I use into the leftside file following command:

<A HREF="[area scan
sf=category/df=yes/se=TV-Rückwandprojektor/ml=2]">[loc]Rückwandprojektor[/lo
c]</A>

importand is ml=2 with this param you can controll how many products come
back from the search engine.

And here is the top of my result.html page.

<HTML>
[tag flag build][value mv_searchspec][/tag]
<HEAD>
<TITLE>[Loc]Suchergebnis[/Loc]</TITLE>
</HEAD>
<BODY MV="body 1">

__LOGOBAR__
__MENUBAR__
__LEFTSIDE__

[comment] This perl part is used in browse 1  [/comment]

[perl arg=scratch]
 $start = tag_data('session', 'arg') || 1;
 $chunk = 1;
 if($start =~ /(\d+):(\d*)/) {
  $start = $1;
  $chunk = $2 || 1;
 }
 $prev = $start - $chunk;
 if($prev < 1) {
  $prev = 0;
 }
 $Safe{'scratch'}{'start'} = $start;
 $Safe{'scratch'}{'chunk'} = $chunk;
 $Safe{'scratch'}{'next'} = $start + $chunk;
 $Safe{'scratch'}{'prev'} = $prev;
 $Safe{'scratch'}{'not_shown'} = 1;
 return '';
[/perl]

I hope it helps you.

regards

Mit freundlichen Gruessen
Gilbert Waitz
Ihr Internet Service Provider in Mainz - Gonsenheim
WEB http://www.deutsch.de
Tel. 06131-941510 Fax. 06131-941558




Search for: Match: Format: Sort by: