Akopia Akopia Services

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

Re: [mv] results page



******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******

Andreas Kotowicz schrieb:
> 
> ******    message to minivend-users from Andreas Kotowicz <koto@mynetix.de>     ******
> 
> hi,
> 
> I have a problem generating a results page. usually you take some <tr> tags
> into a loop and then everything will be automatically generated like this:
> 
> item1
> item2
> ..
> itemX
> 
> but now I thougt about results being displayed like that:
> 
> item1             item2
> item3             item4
> ...
> itemX-1         itemX
> 
> I really don't know how to generate the code. you need one loop for creating
> new fields, and an other one the items. but how? anyone a hint?


[seti flag]0[(seti] 
[seti end]0[(seti] 
at the top of your results page

<TABLE>

[search-list]....

[perl arg=scratch]
my $out = "";
if($Safe{´scratch´}->{´flag´} == 0) {
   $Safe{´scratch´}->{´flag´} = 1;
   $out = "<TR>";
  }
[/perl]


some <TD></TD> stuff...

[perl arg=scratch]
my $out = "";
if($Safe{´scratch´}->{´flag´} == 0) {
   $Safe{´scratch´}->{´flag´} = 2;
   $Safe{´scratch´}->{´end´} = 1;
  } 
  else {
   $Safe{´scratch´}->{´flag´} = 0;
   $Safe{´scratch´}->{´end´} = 0;
   $out = "</TR>";
  }
[/perl]

[/search-list]

[if scratch end == 1]
</TR>
[/if]


Joachim

-- 
-------------Hans-Joachim Leidinger---------------------

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: